blob: dc58bcb4d0d7f557f3c686a7f50d82623d8b9e2a [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
cristy14fefe52012-05-21 00:59:18 +00003# Generated by GNU Autoconf 2.69 for ImageMagick 7.0.0-0.
cristy3ed852e2009-09-05 21:47:34 +00004#
5# Report bugs to <http://www.imagemagick.org>.
6#
cristycd4c5312009-11-22 01:19:08 +00007#
cristy14fefe52012-05-21 00:59:18 +00008# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
cristycd4c5312009-11-22 01:19:08 +00009#
cristy8b350f62009-11-15 23:12:43 +000010#
cristy3ed852e2009-09-05 21:47:34 +000011# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
cristy8b350f62009-11-15 23:12:43 +000013## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000016
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000019if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26else
cristy8b350f62009-11-15 23:12:43 +000027 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
cristy3ed852e2009-09-05 21:47:34 +000032esac
cristy3ed852e2009-09-05 21:47:34 +000033fi
34
35
cristy3ed852e2009-09-05 21:47:34 +000036as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000043# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000050 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000060 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000061 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81fi
82
cristy3ed852e2009-09-05 21:47:34 +000083
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000092as_myself=
cristy8b350f62009-11-15 23:12:43 +000093case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000094 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +0000100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
cristy3ed852e2009-09-05 21:47:34 +0000102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +0000113 exit 1
cristy3ed852e2009-09-05 21:47:34 +0000114fi
115
cristy8b350f62009-11-15 23:12:43 +0000116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +0000123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
cristy8b350f62009-11-15 23:12:43 +0000134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
cristy14fefe52012-05-21 00:59:18 +0000137# Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
cristy8b350f62009-11-15 23:12:43 +0000162if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
177fi
178"
179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
cristy14fefe52012-05-21 00:59:18 +0000195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
cristy8b350f62009-11-15 23:12:43 +0000197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
cristy0c60a692010-11-04 01:09:47 +0000201test \$(( 1 + 1 )) = 2 || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
cristy8b350f62009-11-15 23:12:43 +0000210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212else
213 as_have_required=no
214fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235fi
236fi
237 done;;
238 esac
239 as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
cristy14fefe52012-05-21 00:59:18 +0000249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
cristy8b350f62009-11-15 23:12:43 +0000268fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: http://www.imagemagick.org about your system, including
279$0: any error possibly output before this message. Then
280$0: install a modern shell, or manually run the script
281$0: under such a shell if you do have one."
282 fi
283 exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301 { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310 return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318 set +e
319 as_fn_set_status $1
320 exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +0000366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +0000367
368
369} # as_fn_mkdir_p
cristy14fefe52012-05-21 00:59:18 +0000370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376 test -f "$1" && test -x "$1"
377} # as_fn_executable_p
cristy8b350f62009-11-15 23:12:43 +0000378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411fi # as_fn_arith
412
413
cristy98dddb52010-11-04 00:30:15 +0000414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +0000416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +0000418# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +0000419as_fn_error ()
420{
cristy98dddb52010-11-04 00:30:15 +0000421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +0000425 fi
cristy98dddb52010-11-04 00:30:15 +0000426 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +0000427 as_fn_exit $as_status
428} # as_fn_error
429
cristy3ed852e2009-09-05 21:47:34 +0000430if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433else
434 as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439else
440 as_basename=false
441fi
442
cristy8b350f62009-11-15 23:12:43 +0000443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445else
446 as_dirname=false
447fi
cristy3ed852e2009-09-05 21:47:34 +0000448
cristy3ed852e2009-09-05 21:47:34 +0000449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
cristy8b350f62009-11-15 23:12:43 +0000468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +0000474
475
cristy8b350f62009-11-15 23:12:43 +0000476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
cristy3ed852e2009-09-05 21:47:34 +0000481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
cristy8b350f62009-11-15 23:12:43 +0000497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
cristy3ed852e2009-09-05 21:47:34 +0000498
cristy14fefe52012-05-21 00:59:18 +0000499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
cristy3ed852e2009-09-05 21:47:34 +0000503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509}
510
cristy3ed852e2009-09-05 21:47:34 +0000511ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +0000512case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +0000513-n*)
cristy8b350f62009-11-15 23:12:43 +0000514 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +0000515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +0000516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +0000519 esac;;
520*)
521 ECHO_N='-n';;
522esac
cristy3ed852e2009-09-05 21:47:34 +0000523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cristy14fefe52012-05-21 00:59:18 +0000537 # In both cases, we have to default to `cp -pR'.
cristy3ed852e2009-09-05 21:47:34 +0000538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cristy14fefe52012-05-21 00:59:18 +0000539 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +0000540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
cristy14fefe52012-05-21 00:59:18 +0000543 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +0000544 fi
545else
cristy14fefe52012-05-21 00:59:18 +0000546 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +0000547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +0000552 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +0000553else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556fi
557
cristy14fefe52012-05-21 00:59:18 +0000558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
cristy3ed852e2009-09-05 21:47:34 +0000560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
cristy73bd4a52010-10-05 11:24:23 +0000567SHELL=${CONFIG_SHELL-/bin/sh}
568
cristy0c60a692010-11-04 01:09:47 +0000569
cristycd4c5312009-11-22 01:19:08 +0000570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
cristy3ed852e2009-09-05 21:47:34 +0000572
573# Name of the host.
cristy98dddb52010-11-04 00:30:15 +0000574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
cristy3ed852e2009-09-05 21:47:34 +0000575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
cristy3ed852e2009-09-05 21:47:34 +0000589
590# Identity of this package.
591PACKAGE_NAME='ImageMagick'
cristy09b53e12011-10-14 12:47:22 +0000592PACKAGE_TARNAME='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +0000593PACKAGE_VERSION='7.0.0-0'
594PACKAGE_STRING='ImageMagick 7.0.0-0'
cristy3ed852e2009-09-05 21:47:34 +0000595PACKAGE_BUGREPORT='http://www.imagemagick.org'
cristy8b350f62009-11-15 23:12:43 +0000596PACKAGE_URL=''
cristy3ed852e2009-09-05 21:47:34 +0000597
cristy4c08aed2011-07-01 19:47:50 +0000598ac_unique_file="MagickCore/MagickCore.h"
cristy3ed852e2009-09-05 21:47:34 +0000599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613# include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618# include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
cristycd4c5312009-11-22 01:19:08 +0000635ac_header_list=
cristy5eef09f2012-10-16 12:08:28 +0000636ac_subst_vars='am__EXEEXT_FALSE
cristy73bd4a52010-10-05 11:24:23 +0000637am__EXEEXT_TRUE
638LTLIBOBJS
cristy3ed852e2009-09-05 21:47:34 +0000639MAGICK_LIBS
640MAGICK_LDFLAGS
641MAGICK_PCFLAGS
642MAGICK_CPPFLAGS
643MAGICK_CXXFLAGS
644MAGICK_CFLAGS
645MAGICK_DEP_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000646OSX_GCOV_LDFLAG
cristyfa161182012-12-19 15:45:28 +0000647MAGICK_FEATURES
cristy422d5502012-12-22 22:20:57 +0000648MAGICK_DELEGATES
cristy3ed852e2009-09-05 21:47:34 +0000649MAGICKCORE_PATH
650PERL_SUPPORTS_DESTDIR
cristy73bd4a52010-10-05 11:24:23 +0000651WITH_PERL_DYNAMIC_FALSE
652WITH_PERL_DYNAMIC_TRUE
653WITH_PERL_STATIC_FALSE
654WITH_PERL_STATIC_TRUE
655WITH_PERL_FALSE
656WITH_PERL_TRUE
657PERL_VERSION
cristy3ed852e2009-09-05 21:47:34 +0000658GSVersion
659GSPSDevice
660GSPDFDevice
661GSMonoDevice
662GSEPSDevice
663GSColorDevice
664GSCMYKDevice
665GSAlphaDevice
666XPSVersion
667XPSCMYKDevice
668XPSColorDevice
669XPSMonoDevice
670PCLVersion
671PCLCMYKDevice
672PCLColorDevice
673PCLMonoDevice
cristy73bd4a52010-10-05 11:24:23 +0000674ZIP_DELEGATE_FALSE
675ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000676ZIP
cristy73bd4a52010-10-05 11:24:23 +0000677P7ZIP_DELEGATE_FALSE
678P7ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000679P7ZIP
cristy73bd4a52010-10-05 11:24:23 +0000680RPM_DELEGATE_FALSE
681RPM_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000682RPM
683PERL
684TAR
685ShowImageDelegate
686type_include_files
687ghostscript_font_dir
688windows_font_dir
cristy430a7312010-01-21 20:44:04 +0000689dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +0000690PrintDelegate
691ZipDelegate
692XPSDelegate
693WWWDecodeDelegate
694WMFDecodeDelegate
cristy86e86092013-08-04 17:43:57 +0000695WebPEncodeDelegate
696WebPDecodeDelegate
cristy5ac9ac82010-07-29 13:24:24 +0000697UniconvertorDelegate
cristy3ed852e2009-09-05 21:47:34 +0000698TXTDelegate
cristyec6934f2012-08-14 18:38:40 +0000699SVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000700SCANDecodeDelegate
cristy4689cf02010-02-17 21:15:45 +0000701RSVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000702RMDelegate
703RLEEncodeDelegate
704PSDelegate
705POVDelegate
706PGPDecodeDelegate
707PCLDelegate
708MVDelegate
cristy935c86e2010-06-05 23:50:07 +0000709MrSIDDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000710MPEGEncodeDelegate
711MPEGDecodeDelegate
712MANDelegate
713LaunchDelegate
cristy3ed852e2009-09-05 21:47:34 +0000714LPRDelegate
715LPDelegate
cristy71f53d52013-04-27 13:33:59 +0000716JXREncodeDelegate
717JXRDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000718ILBMEncodeDelegate
719ILBMDecodeDelegate
720HTMLDecodeDelegate
721HPGLDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000722GnuplotDecodeDelegate
723MogrifyDelegate
724DisplayDelegate
725ConvertDelegate
cristy3ed852e2009-09-05 21:47:34 +0000726EditorDelegate
727EchoDelegate
728DVIDecodeDelegate
729GVCDecodeDelegate
730DNGDecodeDelegate
731CatDelegate
cristy3ed852e2009-09-05 21:47:34 +0000732BrowseDelegate
733BZIPDelegate
734BlenderDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000735AutotraceDecodeDelegate
cristy670aa3c2011-11-03 00:54:00 +0000736SHAREARCH_PATH
cristy54378032012-12-04 15:52:20 +0000737SHAREARCH_RELATIVE_PATH
738SHAREARCH_DIRNAME
739SHAREARCH_BASEDIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000740SHARE_PATH
cristy4f820712011-04-01 12:35:43 +0000741CONFIGURE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000742DOCUMENTATION_PATH
743FILTER_PATH
cristy01ff9f32012-12-01 18:15:29 +0000744FILTER_DIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000745CODER_PATH
cristy01ff9f32012-12-01 18:15:29 +0000746CODER_DIRNAME
747MODULES_PATH
748MODULES_RELATIVE_PATH
749MODULES_DIRNAME
750MODULES_BASEDIRNAME
cristy8d0ff762013-03-10 20:33:28 +0000751LIB_BIN_DIR_PATH
752LIB_BIN_DIR_RELATIVE_PATH
753LIB_BIN_DIR
754LIB_BIN_BASEDIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000755LIBRARY_PATH
756EXECUTABLE_PATH
cristye52f12f2012-12-31 15:32:36 +0000757INCLUDEARCH_PATH
cristy2a11bef2011-10-28 18:33:11 +0000758INCLUDE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000759PERLMAINCC
760XML_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000761XML_DELEGATE_FALSE
762XML_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000763xml2_config
cristy03f7cf92011-12-15 01:40:41 +0000764WMF_LIBS_DEPS
cristy3ed852e2009-09-05 21:47:34 +0000765WMF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000766WMF_DELEGATE_FALSE
767WMF_DELEGATE_TRUE
cristyb1860752011-03-14 00:27:46 +0000768WEBP_LIBS
769WEBP_DELEGATE_FALSE
770WEBP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000771TIFF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000772TIFF_DELEGATE_FALSE
773TIFF_DELEGATE_TRUE
774CAIRO_DELEGATE_FALSE
775CAIRO_DELEGATE_TRUE
776RSVG_DELEGATE_FALSE
777RSVG_DELEGATE_TRUE
778CAIRO_SVG_LIBS
779CAIRO_SVG_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000780RSVG_LIBS
781RSVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +0000782PNG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000783PNG_DELEGATE_FALSE
784PNG_DELEGATE_TRUE
cristya054b762012-03-26 23:16:00 +0000785PANGOCAIRO_DELEGATE_FALSE
786PANGOCAIRO_DELEGATE_TRUE
cristy41cbe8a2011-10-27 01:35:18 +0000787PANGO_DELEGATE_FALSE
788PANGO_DELEGATE_TRUE
789PANGO_LIBS
790PANGO_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000791OPENEXR_DELEGATE_FALSE
792OPENEXR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000793OPENEXR_LIBS
794OPENEXR_CFLAGS
cristy854c9cf2013-08-10 21:03:06 +0000795MUPDF_LIBS
796MUPDF_DELEGATE_FALSE
797MUPDF_DELEGATE_TRUE
cristyfbb0ef02010-12-19 02:32:11 +0000798LZMA_DELEGATE_FALSE
799LZMA_DELEGATE_TRUE
cristyb94e5002011-11-14 13:20:10 +0000800LZMA_LIBS
801LZMA_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000802LQR_DELEGATE_FALSE
803LQR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000804LQR_LIBS
805LQR_CFLAGS
806LCMS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000807LCMS_DELEGATE_FALSE
808LCMS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000809JP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000810JP2_DELEGATE_FALSE
811JP2_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000812JPEG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000813JPEG_DELEGATE_FALSE
814JPEG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000815JBIG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000816JBIG_DELEGATE_FALSE
817JBIG_DELEGATE_TRUE
818GVC_DELEGATE_FALSE
819GVC_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000820GVC_LIBS
821GVC_CFLAGS
822GS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000823GS_DELEGATE_FALSE
824GS_DELEGATE_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000825FREETYPE_DELEGATE_FALSE
826FREETYPE_DELEGATE_TRUE
cristy03f187e2013-01-24 00:22:19 +0000827FREETYPE_LIBS
828FREETYPE_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000829FONTCONFIG_DELEGATE_FALSE
830FONTCONFIG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000831FONTCONFIG_LIBS
832FONTCONFIG_CFLAGS
833FPX_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000834FPX_DELEGATE_FALSE
835FPX_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000836FFTW_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000837FFTW_DELEGATE_FALSE
838FFTW_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000839DJVU_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000840DJVU_DELEGATE_FALSE
841DJVU_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000842DPS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000843DPS_DELEGATE_FALSE
844DPS_DELEGATE_TRUE
845AUTOTRACE_DELEGATE_FALSE
846AUTOTRACE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000847AUTOTRACE_LIBS
848AUTOTRACE_CFLAGS
849LIB_DL
cristy5eef09f2012-10-16 12:08:28 +0000850WITH_LTDL_FALSE
851WITH_LTDL_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000852ZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000853ZLIB_DELEGATE_FALSE
854ZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000855XEXT_LIBS
856X11_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000857X11_DELEGATE_FALSE
858X11_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000859X_EXTRA_LIBS
860X_LIBS
861X_PRE_LIBS
862X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000863XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000864BZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000865BZLIB_DELEGATE_FALSE
866BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000867CCMALLOCDelegate
868UMEM_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000869HasUMEM_FALSE
870HasUMEM_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000871GOMP_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000872WITH_MAGICK_PLUS_PLUS_FALSE
873WITH_MAGICK_PLUS_PLUS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000874OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000875MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000876POW_LIB
877LIBOBJS
cristy6d5e20f2011-04-25 13:48:54 +0000878UINTPTR_F
cristy3ed852e2009-09-05 21:47:34 +0000879UINTPTR_T
cristy6d5e20f2011-04-25 13:48:54 +0000880UINTMAX_F
cristy3ed852e2009-09-05 21:47:34 +0000881UINTMAX_T
cristy6d5e20f2011-04-25 13:48:54 +0000882UINT64_F
cristy3ed852e2009-09-05 21:47:34 +0000883UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000884INT64_F
cristy3ed852e2009-09-05 21:47:34 +0000885INT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000886UINT32_F
cristy3ed852e2009-09-05 21:47:34 +0000887UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +0000888INT32_F
cristy3ed852e2009-09-05 21:47:34 +0000889INT32_T
890UINT16_T
891INT16_T
892UINT8_T
893INT8_T
894LIBRARY_EXTRA_CPPFLAGS
895MODULE_EXTRA_CPPFLAGS
896LIBSTDCLDFLAGS
897PERL_MAKE_OPTIONS
cristy3a75f062012-09-08 23:29:40 +0000898MAGICK_LT_RELEASE_OPTS
cristy7a26abd2012-12-03 00:18:59 +0000899MAGICK_ABI_SUFFIX
cristy3ed852e2009-09-05 21:47:34 +0000900QUANTUM_DEPTH
cristy71d8c202012-03-20 17:05:01 +0000901LEGACY_SUPPORT_FALSE
902LEGACY_SUPPORT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000903MAINT
904MAINTAINER_MODE_FALSE
905MAINTAINER_MODE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000906MAGICK_HDRI
cristy73bd4a52010-10-05 11:24:23 +0000907WITH_MODULES_FALSE
908WITH_MODULES_TRUE
909WITH_SHARED_LIBS_FALSE
910WITH_SHARED_LIBS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000911LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +0000912CXXCPP
913OTOOL64
914OTOOL
915LIPO
916NMEDIT
917DSYMUTIL
cristyda16f162011-02-19 23:52:17 +0000918MANIFEST_TOOL
cristy73bd4a52010-10-05 11:24:23 +0000919RANLIB
cristyda16f162011-02-19 23:52:17 +0000920ac_ct_AR
cristy73bd4a52010-10-05 11:24:23 +0000921AR
922NM
923ac_ct_DUMPBIN
924DUMPBIN
925LIBTOOL
926OBJDUMP
927DLLTOOL
928AS
cristy3ed852e2009-09-05 21:47:34 +0000929LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000930CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000931CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000932OPENMP_CFLAGS
cristy1ae5c992013-07-30 14:55:07 +0000933THREAD_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000934PTHREAD_CFLAGS
935PTHREAD_LIBS
936PTHREAD_CC
937ax_pthread_config
cristy2ec87cc2013-02-18 17:46:50 +0000938pkgconfigdir
cristy670aa3c2011-11-03 00:54:00 +0000939SHAREARCH_DIR
940INCLUDEARCH_DIR
cristy3ed852e2009-09-05 21:47:34 +0000941WinPathScript
cristy73bd4a52010-10-05 11:24:23 +0000942USING_CL_FALSE
943USING_CL_TRUE
944CYGWIN_BUILD_FALSE
945CYGWIN_BUILD_TRUE
946WIN32_NATIVE_BUILD_FALSE
947WIN32_NATIVE_BUILD_TRUE
948WINGDI32_DELEGATE_FALSE
949WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000950GDI32_LIBS
cristy9b86f202012-11-28 21:55:35 +0000951HAVE_LD_VERSION_SCRIPT_FALSE
952HAVE_LD_VERSION_SCRIPT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000953PKG_CONFIG
cristy37110d62012-03-01 18:38:20 +0000954PRTDIAG
cristy3ed852e2009-09-05 21:47:34 +0000955LN_S
cristy3ed852e2009-09-05 21:47:34 +0000956LD
cristy73bd4a52010-10-05 11:24:23 +0000957FGREP
958SED
959am__fastdepCXX_FALSE
960am__fastdepCXX_TRUE
961CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000962ac_ct_CXX
963CXXFLAGS
964CXX
cristya0b81c32010-01-22 02:54:33 +0000965EGREP
966GREP
967CPP
cristy73bd4a52010-10-05 11:24:23 +0000968am__fastdepCC_FALSE
969am__fastdepCC_TRUE
970CCDEPMODE
cristy7247bba2012-02-05 16:37:27 +0000971am__nodep
cristy73bd4a52010-10-05 11:24:23 +0000972AMDEPBACKSLASH
973AMDEP_FALSE
974AMDEP_TRUE
975am__quote
976am__include
977DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000978OBJEXT
979EXEEXT
980ac_ct_CC
981CPPFLAGS
982LDFLAGS
983CFLAGS
984CC
985DIRSEP
986MAGICK_FILTER_MODULE_PATH
987MAGICK_CONFIGURE_BUILD_PATH
988MAGICK_CONFIGURE_SRC_PATH
989MAGICK_CODER_MODULE_PATH
990MAN_DIR
991INFO_DIR
992PERSISTINCLUDE_DIR
993INCLUDE_DIR
994LIB_DIR
995LOCALSTATE_DIR
996SHAREDSTATE_DIR
997SYSCONF_DIR
cristyd55889c2011-03-27 00:50:24 +0000998DOC_DIR
cristy3ed852e2009-09-05 21:47:34 +0000999DATA_DIR
1000LIBEXEC_DIR
1001SBIN_DIR
1002BIN_DIR
1003EXEC_PREFIX_DIR
1004PREFIX_DIR
1005CONFIG_STATUS_DEPENDENCIES
cristy5ed9c6e2013-07-14 21:20:31 +00001006MAGICKPP_LIB_VERSION_TEXT
1007MAGICKPP_LIB_VERSION
cristy3ed852e2009-09-05 21:47:34 +00001008MAGICK_LIB_VERSION_NUMBER
1009MAGICK_LIB_VERSION_TEXT
1010MAGICK_LIB_VERSION
cristy73bd4a52010-10-05 11:24:23 +00001011AM_BACKSLASH
1012AM_DEFAULT_VERBOSITY
cristyc3fb77b2012-02-06 01:49:41 +00001013AM_DEFAULT_V
1014AM_V
cristy73bd4a52010-10-05 11:24:23 +00001015am__untar
1016am__tar
1017AMTAR
1018am__leading_dot
1019SET_MAKE
1020AWK
1021mkdir_p
1022MKDIR_P
1023INSTALL_STRIP_PROGRAM
1024STRIP
1025install_sh
1026MAKEINFO
1027AUTOHEADER
1028AUTOMAKE
1029AUTOCONF
1030ACLOCAL
1031VERSION
1032PACKAGE
1033CYGPATH_W
1034am__isrc
1035INSTALL_DATA
1036INSTALL_SCRIPT
1037INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +00001038PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +00001039PACKAGE_RELEASE_DATE
1040PACKAGE_LIB_VERSION_NUMBER
1041PACKAGE_LIB_VERSION
1042PACKAGE_CHANGE_DATE
1043PACKAGE_RELEASE
cristy878c2f12011-08-19 00:25:19 +00001044PACKAGE_PERL_VERSION
cristy5ed9c6e2013-07-14 21:20:31 +00001045MAGICKPP_LIBRARY_VERSION_INFO
1046MAGICKPP_LIBRARY_CURRENT_MIN
1047MAGICKPP_LIBRARY_AGE
1048MAGICKPP_LIBRARY_REVISION
1049MAGICKPP_LIBRARY_CURRENT
cristybab87c32010-02-09 20:54:22 +00001050MAGICK_LIBRARY_VERSION_INFO
1051MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001052MAGICK_LIBRARY_AGE
1053MAGICK_LIBRARY_REVISION
1054MAGICK_LIBRARY_CURRENT
cristy37442762013-02-10 21:07:23 +00001055MAGICK_SVN_REVISION
1056MAGICK_VERSION
1057MAGICK_PATCHLEVEL_VERSION
1058MAGICK_MICRO_VERSION
1059MAGICK_MINOR_VERSION
1060MAGICK_MAJOR_VERSION
cristy3225a072010-04-17 01:47:28 +00001061MAGICK_TARGET_OS
1062MAGICK_TARGET_VENDOR
1063MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001064target_os
1065target_vendor
1066target_cpu
1067target
1068host_os
1069host_vendor
1070host_cpu
1071host
1072build_os
1073build_vendor
1074build_cpu
1075build
1076CONFIGURE_ARGS
1077DISTCHECK_CONFIG_FLAGS
1078target_alias
1079host_alias
1080build_alias
1081LIBS
1082ECHO_T
1083ECHO_N
1084ECHO_C
1085DEFS
1086mandir
1087localedir
1088libdir
1089psdir
1090pdfdir
1091dvidir
1092htmldir
1093infodir
1094docdir
1095oldincludedir
1096includedir
1097localstatedir
1098sharedstatedir
1099sysconfdir
1100datadir
1101datarootdir
1102libexecdir
1103sbindir
1104bindir
1105program_transform_name
1106prefix
1107exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001108PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001109PACKAGE_BUGREPORT
1110PACKAGE_STRING
1111PACKAGE_VERSION
1112PACKAGE_TARNAME
1113PACKAGE_NAME
1114PATH_SEPARATOR
1115SHELL'
1116ac_subst_files=''
1117ac_user_opts='
1118enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001119enable_silent_rules
1120enable_dependency_tracking
1121with_gnu_ld
1122with_dmalloc
cristy37110d62012-03-01 18:38:20 +00001123with_gcc_arch
cristy9b86f202012-11-28 21:55:35 +00001124enable_ld_version_script
cristy3ed852e2009-09-05 21:47:34 +00001125enable_bounds_checking
1126enable_osx_universal_binary
cristy670aa3c2011-11-03 00:54:00 +00001127with_includearch_dir
1128with_sharearch_dir
cristy2ec87cc2013-02-18 17:46:50 +00001129with_pkgconfigdir
cristy3ed852e2009-09-05 21:47:34 +00001130with_threads
1131enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001132enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001133enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001134enable_shared
1135enable_static
1136with_pic
1137enable_fast_install
cristyda16f162011-02-19 23:52:17 +00001138with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001139enable_libtool_lock
cristy3ed852e2009-09-05 21:47:34 +00001140with_modules
1141enable_delegate_build
1142enable_deprecated
1143enable_installed
1144enable_cipher
cristy6e3607c2011-09-13 13:59:17 +00001145enable_zero_configuration
cristy3ed852e2009-09-05 21:47:34 +00001146enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001147enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001148enable_maintainer_mode
cristy944e51f2013-04-16 18:45:02 +00001149enable_hugepages
cristy3ed852e2009-09-05 21:47:34 +00001150enable_ccmalloc
1151enable_efence
1152enable_prof
1153enable_gprof
1154enable_gcov
1155with_method_prefix
cristy71d8c202012-03-20 17:05:01 +00001156enable_legacy_support
cristy3ed852e2009-09-05 21:47:34 +00001157with_quantum_depth
1158with_cache
1159with_frozenpaths
1160with_magick_plus_plus
cristy3a75f062012-09-08 23:29:40 +00001161with_package_release_name
cristy3ed852e2009-09-05 21:47:34 +00001162with_perl
1163with_perl_options
1164with_umem
1165with_libstdc
1166with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001167with_x
cristy3ed852e2009-09-05 21:47:34 +00001168with_zlib
1169with_autotrace
1170with_dps
1171with_djvu
cristy430a7312010-01-21 20:44:04 +00001172with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001173with_fftw
1174with_fpx
1175with_fontconfig
1176with_freetype
1177with_gslib
1178with_fontpath
1179with_gs_font_dir
1180with_gvc
1181with_jbig
1182with_jpeg
1183with_jp2
1184with_lcms
cristy71203402010-06-18 13:12:03 +00001185with_lcms2
cristy3ed852e2009-09-05 21:47:34 +00001186with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001187with_lzma
cristy854c9cf2013-08-10 21:03:06 +00001188with_mupdf
cristy3ed852e2009-09-05 21:47:34 +00001189with_openexr
cristy41cbe8a2011-10-27 01:35:18 +00001190with_pango
cristy3ed852e2009-09-05 21:47:34 +00001191with_png
1192with_rsvg
1193with_tiff
cristyb1860752011-03-14 00:27:46 +00001194with_webp
cristy3ed852e2009-09-05 21:47:34 +00001195with_windows_font_dir
1196with_wmf
1197with_xml
1198'
1199 ac_precious_vars='build_alias
1200host_alias
1201target_alias
1202CC
1203CFLAGS
1204LDFLAGS
1205LIBS
1206CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001207CPP
cristy3ed852e2009-09-05 21:47:34 +00001208CXX
1209CXXFLAGS
1210CCC
cristy73bd4a52010-10-05 11:24:23 +00001211PKG_CONFIG
1212CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001213XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001214AUTOTRACE_CFLAGS
1215AUTOTRACE_LIBS
1216FONTCONFIG_CFLAGS
1217FONTCONFIG_LIBS
cristy03f187e2013-01-24 00:22:19 +00001218FREETYPE_CFLAGS
1219FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001220GVC_CFLAGS
1221GVC_LIBS
1222LQR_CFLAGS
1223LQR_LIBS
cristyb94e5002011-11-14 13:20:10 +00001224LZMA_CFLAGS
1225LZMA_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001226OPENEXR_CFLAGS
1227OPENEXR_LIBS
cristy41cbe8a2011-10-27 01:35:18 +00001228PANGO_CFLAGS
1229PANGO_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001230RSVG_CFLAGS
1231RSVG_LIBS
1232CAIRO_SVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +00001233CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001234
1235
1236# Initialize some variables set by options.
1237ac_init_help=
1238ac_init_version=false
1239ac_unrecognized_opts=
1240ac_unrecognized_sep=
1241# The variables have the same names as the options, with
1242# dashes changed to underlines.
1243cache_file=/dev/null
1244exec_prefix=NONE
1245no_create=
1246no_recursion=
1247prefix=NONE
1248program_prefix=NONE
1249program_suffix=NONE
1250program_transform_name=s,x,x,
1251silent=
1252site=
1253srcdir=
1254verbose=
1255x_includes=NONE
1256x_libraries=NONE
1257
1258# Installation directory options.
1259# These are left unexpanded so users can "make install exec_prefix=/foo"
1260# and all the variables that are supposed to be based on exec_prefix
1261# by default will actually change.
1262# Use braces instead of parens because sh, perl, etc. also accept them.
1263# (The list follows the same order as the GNU Coding Standards.)
1264bindir='${exec_prefix}/bin'
1265sbindir='${exec_prefix}/sbin'
1266libexecdir='${exec_prefix}/libexec'
1267datarootdir='${prefix}/share'
1268datadir='${datarootdir}'
1269sysconfdir='${prefix}/etc'
1270sharedstatedir='${prefix}/com'
1271localstatedir='${prefix}/var'
1272includedir='${prefix}/include'
1273oldincludedir='/usr/include'
1274docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1275infodir='${datarootdir}/info'
1276htmldir='${docdir}'
1277dvidir='${docdir}'
1278pdfdir='${docdir}'
1279psdir='${docdir}'
1280libdir='${exec_prefix}/lib'
1281localedir='${datarootdir}/locale'
1282mandir='${datarootdir}/man'
1283
1284ac_prev=
1285ac_dashdash=
1286for ac_option
1287do
1288 # If the previous option needs an argument, assign it.
1289 if test -n "$ac_prev"; then
1290 eval $ac_prev=\$ac_option
1291 ac_prev=
1292 continue
1293 fi
1294
1295 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001296 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1297 *=) ac_optarg= ;;
1298 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001299 esac
1300
1301 # Accept the important Cygnus configure options, so we can diagnose typos.
1302
1303 case $ac_dashdash$ac_option in
1304 --)
1305 ac_dashdash=yes ;;
1306
1307 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1308 ac_prev=bindir ;;
1309 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1310 bindir=$ac_optarg ;;
1311
1312 -build | --build | --buil | --bui | --bu)
1313 ac_prev=build_alias ;;
1314 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1315 build_alias=$ac_optarg ;;
1316
1317 -cache-file | --cache-file | --cache-fil | --cache-fi \
1318 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1319 ac_prev=cache_file ;;
1320 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1321 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1322 cache_file=$ac_optarg ;;
1323
1324 --config-cache | -C)
1325 cache_file=config.cache ;;
1326
1327 -datadir | --datadir | --datadi | --datad)
1328 ac_prev=datadir ;;
1329 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1330 datadir=$ac_optarg ;;
1331
1332 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1333 | --dataroo | --dataro | --datar)
1334 ac_prev=datarootdir ;;
1335 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1336 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1337 datarootdir=$ac_optarg ;;
1338
1339 -disable-* | --disable-*)
1340 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1341 # Reject names that are not valid shell variable names.
1342 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001343 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001344 ac_useropt_orig=$ac_useropt
1345 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1346 case $ac_user_opts in
1347 *"
1348"enable_$ac_useropt"
1349"*) ;;
1350 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1351 ac_unrecognized_sep=', ';;
1352 esac
1353 eval enable_$ac_useropt=no ;;
1354
1355 -docdir | --docdir | --docdi | --doc | --do)
1356 ac_prev=docdir ;;
1357 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1358 docdir=$ac_optarg ;;
1359
1360 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1361 ac_prev=dvidir ;;
1362 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1363 dvidir=$ac_optarg ;;
1364
1365 -enable-* | --enable-*)
1366 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1367 # Reject names that are not valid shell variable names.
1368 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001369 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001370 ac_useropt_orig=$ac_useropt
1371 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1372 case $ac_user_opts in
1373 *"
1374"enable_$ac_useropt"
1375"*) ;;
1376 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1377 ac_unrecognized_sep=', ';;
1378 esac
1379 eval enable_$ac_useropt=\$ac_optarg ;;
1380
1381 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1382 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1383 | --exec | --exe | --ex)
1384 ac_prev=exec_prefix ;;
1385 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1386 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1387 | --exec=* | --exe=* | --ex=*)
1388 exec_prefix=$ac_optarg ;;
1389
1390 -gas | --gas | --ga | --g)
1391 # Obsolete; use --with-gas.
1392 with_gas=yes ;;
1393
1394 -help | --help | --hel | --he | -h)
1395 ac_init_help=long ;;
1396 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1397 ac_init_help=recursive ;;
1398 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1399 ac_init_help=short ;;
1400
1401 -host | --host | --hos | --ho)
1402 ac_prev=host_alias ;;
1403 -host=* | --host=* | --hos=* | --ho=*)
1404 host_alias=$ac_optarg ;;
1405
1406 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1407 ac_prev=htmldir ;;
1408 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1409 | --ht=*)
1410 htmldir=$ac_optarg ;;
1411
1412 -includedir | --includedir | --includedi | --included | --include \
1413 | --includ | --inclu | --incl | --inc)
1414 ac_prev=includedir ;;
1415 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1416 | --includ=* | --inclu=* | --incl=* | --inc=*)
1417 includedir=$ac_optarg ;;
1418
1419 -infodir | --infodir | --infodi | --infod | --info | --inf)
1420 ac_prev=infodir ;;
1421 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1422 infodir=$ac_optarg ;;
1423
1424 -libdir | --libdir | --libdi | --libd)
1425 ac_prev=libdir ;;
1426 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1427 libdir=$ac_optarg ;;
1428
1429 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1430 | --libexe | --libex | --libe)
1431 ac_prev=libexecdir ;;
1432 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1433 | --libexe=* | --libex=* | --libe=*)
1434 libexecdir=$ac_optarg ;;
1435
1436 -localedir | --localedir | --localedi | --localed | --locale)
1437 ac_prev=localedir ;;
1438 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1439 localedir=$ac_optarg ;;
1440
1441 -localstatedir | --localstatedir | --localstatedi | --localstated \
1442 | --localstate | --localstat | --localsta | --localst | --locals)
1443 ac_prev=localstatedir ;;
1444 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1445 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1446 localstatedir=$ac_optarg ;;
1447
1448 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1449 ac_prev=mandir ;;
1450 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1451 mandir=$ac_optarg ;;
1452
1453 -nfp | --nfp | --nf)
1454 # Obsolete; use --without-fp.
1455 with_fp=no ;;
1456
1457 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1458 | --no-cr | --no-c | -n)
1459 no_create=yes ;;
1460
1461 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1462 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1463 no_recursion=yes ;;
1464
1465 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1466 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1467 | --oldin | --oldi | --old | --ol | --o)
1468 ac_prev=oldincludedir ;;
1469 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1470 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1471 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1472 oldincludedir=$ac_optarg ;;
1473
1474 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1475 ac_prev=prefix ;;
1476 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1477 prefix=$ac_optarg ;;
1478
1479 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1480 | --program-pre | --program-pr | --program-p)
1481 ac_prev=program_prefix ;;
1482 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1483 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1484 program_prefix=$ac_optarg ;;
1485
1486 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1487 | --program-suf | --program-su | --program-s)
1488 ac_prev=program_suffix ;;
1489 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1490 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1491 program_suffix=$ac_optarg ;;
1492
1493 -program-transform-name | --program-transform-name \
1494 | --program-transform-nam | --program-transform-na \
1495 | --program-transform-n | --program-transform- \
1496 | --program-transform | --program-transfor \
1497 | --program-transfo | --program-transf \
1498 | --program-trans | --program-tran \
1499 | --progr-tra | --program-tr | --program-t)
1500 ac_prev=program_transform_name ;;
1501 -program-transform-name=* | --program-transform-name=* \
1502 | --program-transform-nam=* | --program-transform-na=* \
1503 | --program-transform-n=* | --program-transform-=* \
1504 | --program-transform=* | --program-transfor=* \
1505 | --program-transfo=* | --program-transf=* \
1506 | --program-trans=* | --program-tran=* \
1507 | --progr-tra=* | --program-tr=* | --program-t=*)
1508 program_transform_name=$ac_optarg ;;
1509
1510 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1511 ac_prev=pdfdir ;;
1512 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1513 pdfdir=$ac_optarg ;;
1514
1515 -psdir | --psdir | --psdi | --psd | --ps)
1516 ac_prev=psdir ;;
1517 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1518 psdir=$ac_optarg ;;
1519
1520 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1521 | -silent | --silent | --silen | --sile | --sil)
1522 silent=yes ;;
1523
1524 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1525 ac_prev=sbindir ;;
1526 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1527 | --sbi=* | --sb=*)
1528 sbindir=$ac_optarg ;;
1529
1530 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1531 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1532 | --sharedst | --shareds | --shared | --share | --shar \
1533 | --sha | --sh)
1534 ac_prev=sharedstatedir ;;
1535 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1536 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1537 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1538 | --sha=* | --sh=*)
1539 sharedstatedir=$ac_optarg ;;
1540
1541 -site | --site | --sit)
1542 ac_prev=site ;;
1543 -site=* | --site=* | --sit=*)
1544 site=$ac_optarg ;;
1545
1546 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1547 ac_prev=srcdir ;;
1548 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1549 srcdir=$ac_optarg ;;
1550
1551 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1552 | --syscon | --sysco | --sysc | --sys | --sy)
1553 ac_prev=sysconfdir ;;
1554 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1555 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1556 sysconfdir=$ac_optarg ;;
1557
1558 -target | --target | --targe | --targ | --tar | --ta | --t)
1559 ac_prev=target_alias ;;
1560 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1561 target_alias=$ac_optarg ;;
1562
1563 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1564 verbose=yes ;;
1565
1566 -version | --version | --versio | --versi | --vers | -V)
1567 ac_init_version=: ;;
1568
1569 -with-* | --with-*)
1570 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1571 # Reject names that are not valid shell variable names.
1572 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001573 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001574 ac_useropt_orig=$ac_useropt
1575 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1576 case $ac_user_opts in
1577 *"
1578"with_$ac_useropt"
1579"*) ;;
1580 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1581 ac_unrecognized_sep=', ';;
1582 esac
1583 eval with_$ac_useropt=\$ac_optarg ;;
1584
1585 -without-* | --without-*)
1586 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1587 # Reject names that are not valid shell variable names.
1588 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001589 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001590 ac_useropt_orig=$ac_useropt
1591 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1592 case $ac_user_opts in
1593 *"
1594"with_$ac_useropt"
1595"*) ;;
1596 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1597 ac_unrecognized_sep=', ';;
1598 esac
1599 eval with_$ac_useropt=no ;;
1600
1601 --x)
1602 # Obsolete; use --with-x.
1603 with_x=yes ;;
1604
1605 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1606 | --x-incl | --x-inc | --x-in | --x-i)
1607 ac_prev=x_includes ;;
1608 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1609 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1610 x_includes=$ac_optarg ;;
1611
1612 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1613 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1614 ac_prev=x_libraries ;;
1615 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1616 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1617 x_libraries=$ac_optarg ;;
1618
cristy98dddb52010-11-04 00:30:15 +00001619 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1620Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001621 ;;
1622
1623 *=*)
1624 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1625 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001626 case $ac_envvar in #(
1627 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001628 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001629 esac
cristy3ed852e2009-09-05 21:47:34 +00001630 eval $ac_envvar=\$ac_optarg
1631 export $ac_envvar ;;
1632
1633 *)
1634 # FIXME: should be removed in autoconf 3.0.
1635 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1636 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1637 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001638 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001639 ;;
1640
1641 esac
1642done
1643
1644if test -n "$ac_prev"; then
1645 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001646 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001647fi
1648
1649if test -n "$ac_unrecognized_opts"; then
1650 case $enable_option_checking in
1651 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001652 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001653 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1654 esac
1655fi
1656
1657# Check all directory arguments for consistency.
1658for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1659 datadir sysconfdir sharedstatedir localstatedir includedir \
1660 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1661 libdir localedir mandir
1662do
1663 eval ac_val=\$$ac_var
1664 # Remove trailing slashes.
1665 case $ac_val in
1666 */ )
1667 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1668 eval $ac_var=\$ac_val;;
1669 esac
1670 # Be sure to have absolute directory names.
1671 case $ac_val in
1672 [\\/$]* | ?:[\\/]* ) continue;;
1673 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1674 esac
cristy98dddb52010-11-04 00:30:15 +00001675 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001676done
1677
1678# There might be people who depend on the old broken behavior: `$host'
1679# used to hold the argument of --host etc.
1680# FIXME: To remove some day.
1681build=$build_alias
1682host=$host_alias
1683target=$target_alias
1684
1685# FIXME: To remove some day.
1686if test "x$host_alias" != x; then
1687 if test "x$build_alias" = x; then
1688 cross_compiling=maybe
cristy3ed852e2009-09-05 21:47:34 +00001689 elif test "x$build_alias" != "x$host_alias"; then
1690 cross_compiling=yes
1691 fi
1692fi
1693
1694ac_tool_prefix=
1695test -n "$host_alias" && ac_tool_prefix=$host_alias-
1696
1697test "$silent" = yes && exec 6>/dev/null
1698
1699
1700ac_pwd=`pwd` && test -n "$ac_pwd" &&
1701ac_ls_di=`ls -di .` &&
1702ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001703 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001704test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001705 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001706
1707
1708# Find the source files, if location was not specified.
1709if test -z "$srcdir"; then
1710 ac_srcdir_defaulted=yes
1711 # Try the directory containing this script, then the parent directory.
1712 ac_confdir=`$as_dirname -- "$as_myself" ||
1713$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1714 X"$as_myself" : 'X\(//\)[^/]' \| \
1715 X"$as_myself" : 'X\(//\)$' \| \
1716 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1717$as_echo X"$as_myself" |
1718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1719 s//\1/
1720 q
1721 }
1722 /^X\(\/\/\)[^/].*/{
1723 s//\1/
1724 q
1725 }
1726 /^X\(\/\/\)$/{
1727 s//\1/
1728 q
1729 }
1730 /^X\(\/\).*/{
1731 s//\1/
1732 q
1733 }
1734 s/.*/./; q'`
1735 srcdir=$ac_confdir
1736 if test ! -r "$srcdir/$ac_unique_file"; then
1737 srcdir=..
1738 fi
1739else
1740 ac_srcdir_defaulted=no
1741fi
1742if test ! -r "$srcdir/$ac_unique_file"; then
1743 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001744 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001745fi
1746ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1747ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001748 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001749 pwd)`
1750# When building in place, set srcdir=.
1751if test "$ac_abs_confdir" = "$ac_pwd"; then
1752 srcdir=.
1753fi
1754# Remove unnecessary trailing slashes from srcdir.
1755# Double slashes in file names in object file debugging info
1756# mess up M-x gdb in Emacs.
1757case $srcdir in
1758*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1759esac
1760for ac_var in $ac_precious_vars; do
1761 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1762 eval ac_env_${ac_var}_value=\$${ac_var}
1763 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1764 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1765done
1766
1767#
1768# Report the --help message.
1769#
1770if test "$ac_init_help" = "long"; then
1771 # Omit some internal or obsolete options to make the list less imposing.
1772 # This message is too long to be a string in the A/UX 3.1 sh.
1773 cat <<_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00001774\`configure' configures ImageMagick 7.0.0-0 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001775
1776Usage: $0 [OPTION]... [VAR=VALUE]...
1777
1778To assign environment variables (e.g., CC, CFLAGS...), specify them as
1779VAR=VALUE. See below for descriptions of some of the useful variables.
1780
1781Defaults for the options are specified in brackets.
1782
1783Configuration:
1784 -h, --help display this help and exit
1785 --help=short display options specific to this package
1786 --help=recursive display the short help of all the included packages
1787 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001788 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001789 --cache-file=FILE cache test results in FILE [disabled]
1790 -C, --config-cache alias for \`--cache-file=config.cache'
1791 -n, --no-create do not create output files
1792 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1793
1794Installation directories:
1795 --prefix=PREFIX install architecture-independent files in PREFIX
1796 [$ac_default_prefix]
1797 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1798 [PREFIX]
1799
1800By default, \`make install' will install all the files in
1801\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1802an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1803for instance \`--prefix=\$HOME'.
1804
1805For better control, use the options below.
1806
1807Fine tuning of the installation directories:
1808 --bindir=DIR user executables [EPREFIX/bin]
1809 --sbindir=DIR system admin executables [EPREFIX/sbin]
1810 --libexecdir=DIR program executables [EPREFIX/libexec]
1811 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1812 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1813 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1814 --libdir=DIR object code libraries [EPREFIX/lib]
1815 --includedir=DIR C header files [PREFIX/include]
1816 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1817 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1818 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1819 --infodir=DIR info documentation [DATAROOTDIR/info]
1820 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1821 --mandir=DIR man documentation [DATAROOTDIR/man]
cristy09b53e12011-10-14 12:47:22 +00001822 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
cristy3ed852e2009-09-05 21:47:34 +00001823 --htmldir=DIR html documentation [DOCDIR]
1824 --dvidir=DIR dvi documentation [DOCDIR]
1825 --pdfdir=DIR pdf documentation [DOCDIR]
1826 --psdir=DIR ps documentation [DOCDIR]
1827_ACEOF
1828
1829 cat <<\_ACEOF
1830
cristy73bd4a52010-10-05 11:24:23 +00001831Program names:
1832 --program-prefix=PREFIX prepend PREFIX to installed program names
1833 --program-suffix=SUFFIX append SUFFIX to installed program names
1834 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1835
cristy3ed852e2009-09-05 21:47:34 +00001836X features:
1837 --x-includes=DIR X include files are in DIR
1838 --x-libraries=DIR X library files are in DIR
1839
1840System types:
1841 --build=BUILD configure for building on BUILD [guessed]
1842 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1843 --target=TARGET configure for building compilers for TARGET [HOST]
1844_ACEOF
1845fi
1846
1847if test -n "$ac_init_help"; then
1848 case $ac_init_help in
cristy29eb34e2011-10-16 00:46:08 +00001849 short | recursive ) echo "Configuration of ImageMagick 7.0.0-0:";;
cristy3ed852e2009-09-05 21:47:34 +00001850 esac
1851 cat <<\_ACEOF
1852
1853Optional Features:
1854 --disable-option-checking ignore unrecognized --enable/--with options
1855 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1856 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristyc0890a62012-07-19 00:18:20 +00001857 --enable-silent-rules less verbose build output (undo: "make V=1")
1858 --disable-silent-rules verbose build output (undo: "make V=0")
1859 --enable-dependency-tracking
1860 do not reject slow dependency extractors
1861 --disable-dependency-tracking
1862 speeds up one-time build
cristy9b86f202012-11-28 21:55:35 +00001863 --enable-ld-version-script
1864 enable linker version script (default is enabled
1865 when possible)
cristya3824692012-03-30 17:22:07 +00001866 --enable-bounds-checking
1867 enable run-time bounds-checking
cristy3ed852e2009-09-05 21:47:34 +00001868 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001869 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001870 --disable-openmp do not use OpenMP
cristy48794642012-09-02 15:19:08 +00001871 --enable-opencl enable OpenCL support
cristy3ed852e2009-09-05 21:47:34 +00001872 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001873 --enable-shared[=PKGS] build shared libraries [default=yes]
1874 --enable-static[=PKGS] build static libraries [default=yes]
1875 --enable-fast-install[=PKGS]
1876 optimize for fast installation [default=yes]
1877 --disable-libtool-lock avoid locking (might break parallel builds)
cristy3ed852e2009-09-05 21:47:34 +00001878 --enable-delegate-build look for delegate libraries in build directory
1879 --disable-deprecated exclude deprecated methods in MagickCore and
cristy3a75f062012-09-08 23:29:40 +00001880 MagickWand APIs
cristy3ed852e2009-09-05 21:47:34 +00001881 --disable-installed Formally install ImageMagick under PREFIX
1882 --disable-cipher disable enciphering and deciphering image pixels
cristy6e3607c2011-09-13 13:59:17 +00001883 --enable-zero-configuration
1884 enable self-contained, embeddable,
cristy3ed852e2009-09-05 21:47:34 +00001885 zero-configuration ImageMagick
cristyf314dbd2012-11-15 13:35:28 +00001886 --enable-hdri accurately represent the wide range of intensity
cristy3ed852e2009-09-05 21:47:34 +00001887 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001888 --disable-assert disable assert() statements in build
cristyc0890a62012-07-19 00:18:20 +00001889 --enable-maintainer-mode
1890 enable make rules and dependencies not useful (and
1891 sometimes confusing) to the casual installer
cristy944e51f2013-04-16 18:45:02 +00001892 --enable-hugepages enable 'huge pages' support
cristy3ed852e2009-09-05 21:47:34 +00001893 --enable-ccmalloc enable 'ccmalloc' memory debug support
1894 --enable-efence enable 'efence' memory debug support
1895 --enable-prof enable 'prof' profiling support
1896 --enable-gprof enable 'gprof' profiling support
1897 --enable-gcov enable 'gcov' profiling support
cristy71d8c202012-03-20 17:05:01 +00001898 --enable-legacy-support install legacy command-line utilities (default disabled)
cristya0b81c32010-01-22 02:54:33 +00001899 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001900
1901Optional Packages:
1902 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1903 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001904 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cristy7247bba2012-02-05 16:37:27 +00001905 --with-dmalloc use dmalloc, as in http://www.dmalloc.com
cristy37110d62012-03-01 18:38:20 +00001906 --with-gcc-arch=<arch> use architecture <arch> for gcc -march/-mtune,
1907 instead of guessing
cristy670aa3c2011-11-03 00:54:00 +00001908 --includearch-dir=DIR ARCH specific include directory
1909 --sharearch-dir=DIR ARCH specific config directory
cristy2ec87cc2013-02-18 17:46:50 +00001910 --with-pkgconfigdir=DIR Path to the pkgconfig directory [LIBDIR/pkgconfig]
cristy3ed852e2009-09-05 21:47:34 +00001911 --without-threads disable threads support
cristy99bd5232011-12-07 14:38:20 +00001912 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
cristy73bd4a52010-10-05 11:24:23 +00001913 both]
cristyda16f162011-02-19 23:52:17 +00001914 --with-sysroot=DIR Search for dependent libraries within DIR
1915 (or the compiler's sysroot if not specified).
cristy3ed852e2009-09-05 21:47:34 +00001916 --with-modules enable building dynamically loadable modules
1917 --with-method-prefix=PREFIX
1918 prefix MagickCore API methods
1919 --with-quantum-depth=DEPTH
1920 number of bits in a pixel quantum (default 16)
1921 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1922 memory)
1923 --with-frozenpaths freeze delegate paths
1924 --without-magick-plus-plus
1925 disable build/install of Magick++
cristy3a75f062012-09-08 23:29:40 +00001926 --with-package-release-name=NAME
1927 encode this name into the shared library
cristy3ed852e2009-09-05 21:47:34 +00001928 --with-perl enable build/install of PerlMagick
1929 --with-perl-options=OPTIONS
1930 options to pass on command-line when generating
cristyfc3d0222012-02-07 15:05:57 +00001931 PerlMagick build file
cristy3ed852e2009-09-05 21:47:34 +00001932 --with-umem enable umem memory allocation library support
1933 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1934 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001935 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001936 --without-zlib disable ZLIB support
1937 --with-autotrace enable autotrace support
1938 --without-dps disable Display Postscript support
1939 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001940 --with-dejavu-font-dir=DIR
1941 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001942 --without-fftw disable FFTW support
1943 --without-fpx disable FlashPIX support
1944 --without-fontconfig disable fontconfig support
cristy81beccd2011-10-03 18:17:24 +00001945 --without-freetype disable Freetype support
cristybdabdd62013-03-04 17:43:36 +00001946 --with-gslib enable Ghostscript library support
cristy3ed852e2009-09-05 21:47:34 +00001947 --with-fontpath=DIR prepend to default font search path
1948 --with-gs-font-dir=DIR Ghostscript font directory
cristybdabdd62013-03-04 17:43:36 +00001949 --with-gvc enable GVC support
cristy3ed852e2009-09-05 21:47:34 +00001950 --without-jbig disable JBIG support
1951 --without-jpeg disable JPEG support
1952 --without-jp2 disable JPEG-2000 support
cristy71203402010-06-18 13:12:03 +00001953 --without-lcms disable lcms (v1.1X) support
1954 --without-lcms2 disable lcms (v2.X) support
cristyf0c78232010-03-15 12:53:40 +00001955 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00001956 --without-lzma disable LZMA support
cristy854c9cf2013-08-10 21:03:06 +00001957 --with-mupdf enable MUPDF support
cristy3ed852e2009-09-05 21:47:34 +00001958 --without-openexr disable OpenEXR support
cristy41cbe8a2011-10-27 01:35:18 +00001959 --without-pango disable PANGO support
cristy3ed852e2009-09-05 21:47:34 +00001960 --without-png disable PNG support
cristy51633f52013-04-23 14:03:19 +00001961 --with-rsvg enable RSVG support
cristy3ed852e2009-09-05 21:47:34 +00001962 --without-tiff disable TIFF support
cristyb1860752011-03-14 00:27:46 +00001963 --without-webp disable WEBP support
cristy3ed852e2009-09-05 21:47:34 +00001964 --with-windows-font-dir=DIR
1965 directory containing MS-Windows fonts
cristyde3fc5d2012-02-12 15:40:47 +00001966 --with-wmf enable WMF support
cristy3ed852e2009-09-05 21:47:34 +00001967 --without-xml disable XML support
1968
1969Some influential environment variables:
1970 CC C compiler command
1971 CFLAGS C compiler flags
1972 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1973 nonstandard directory <lib dir>
1974 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001975 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001976 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001977 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001978 CXX C++ compiler command
1979 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00001980 PKG_CONFIG path to pkg-config utility
nicolas6237c462010-10-05 06:11:49 +00001981 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00001982 XMKMF Path to xmkmf, Makefile generator for X Window System
1983 AUTOTRACE_CFLAGS
1984 C compiler flags for AUTOTRACE, overriding pkg-config
1985 AUTOTRACE_LIBS
1986 linker flags for AUTOTRACE, overriding pkg-config
1987 FONTCONFIG_CFLAGS
1988 C compiler flags for FONTCONFIG, overriding pkg-config
1989 FONTCONFIG_LIBS
1990 linker flags for FONTCONFIG, overriding pkg-config
cristy03f187e2013-01-24 00:22:19 +00001991 FREETYPE_CFLAGS
1992 C compiler flags for FREETYPE, overriding pkg-config
1993 FREETYPE_LIBS
1994 linker flags for FREETYPE, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001995 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1996 GVC_LIBS linker flags for GVC, overriding pkg-config
1997 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
1998 LQR_LIBS linker flags for LQR, overriding pkg-config
cristyb94e5002011-11-14 13:20:10 +00001999 LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config
2000 LZMA_LIBS linker flags for LZMA, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002001 OPENEXR_CFLAGS
2002 C compiler flags for OPENEXR, overriding pkg-config
2003 OPENEXR_LIBS
2004 linker flags for OPENEXR, overriding pkg-config
cristy41cbe8a2011-10-27 01:35:18 +00002005 PANGO_CFLAGS
2006 C compiler flags for PANGO, overriding pkg-config
2007 PANGO_LIBS linker flags for PANGO, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002008 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
2009 RSVG_LIBS linker flags for RSVG, overriding pkg-config
2010 CAIRO_SVG_CFLAGS
2011 C compiler flags for CAIRO_SVG, overriding pkg-config
2012 CAIRO_SVG_LIBS
2013 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00002014
2015Use these variables to override the choices made by `configure' or to help
2016it to find libraries and programs with nonstandard names/locations.
2017
2018Report bugs to <http://www.imagemagick.org>.
2019_ACEOF
2020ac_status=$?
2021fi
2022
2023if test "$ac_init_help" = "recursive"; then
2024 # If there are subdirs, report their specific --help.
2025 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2026 test -d "$ac_dir" ||
2027 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2028 continue
2029 ac_builddir=.
2030
2031case "$ac_dir" in
2032.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2033*)
2034 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2035 # A ".." for each directory in $ac_dir_suffix.
2036 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2037 case $ac_top_builddir_sub in
2038 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2039 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2040 esac ;;
2041esac
2042ac_abs_top_builddir=$ac_pwd
2043ac_abs_builddir=$ac_pwd$ac_dir_suffix
2044# for backward compatibility:
2045ac_top_builddir=$ac_top_build_prefix
2046
2047case $srcdir in
2048 .) # We are building in place.
2049 ac_srcdir=.
2050 ac_top_srcdir=$ac_top_builddir_sub
2051 ac_abs_top_srcdir=$ac_pwd ;;
2052 [\\/]* | ?:[\\/]* ) # Absolute name.
2053 ac_srcdir=$srcdir$ac_dir_suffix;
2054 ac_top_srcdir=$srcdir
2055 ac_abs_top_srcdir=$srcdir ;;
2056 *) # Relative name.
2057 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2058 ac_top_srcdir=$ac_top_build_prefix$srcdir
2059 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2060esac
2061ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2062
2063 cd "$ac_dir" || { ac_status=$?; continue; }
2064 # Check for guested configure.
2065 if test -f "$ac_srcdir/configure.gnu"; then
2066 echo &&
2067 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2068 elif test -f "$ac_srcdir/configure"; then
2069 echo &&
2070 $SHELL "$ac_srcdir/configure" --help=recursive
2071 else
2072 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2073 fi || ac_status=$?
2074 cd "$ac_pwd" || { ac_status=$?; break; }
2075 done
2076fi
2077
2078test -n "$ac_init_help" && exit $ac_status
2079if $ac_init_version; then
2080 cat <<\_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00002081ImageMagick configure 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +00002082generated by GNU Autoconf 2.69
cristy3ed852e2009-09-05 21:47:34 +00002083
cristy14fefe52012-05-21 00:59:18 +00002084Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002085This configure script is free software; the Free Software Foundation
2086gives unlimited permission to copy, distribute and modify it.
2087_ACEOF
2088 exit
2089fi
cristy8b350f62009-11-15 23:12:43 +00002090
2091## ------------------------ ##
2092## Autoconf initialization. ##
2093## ------------------------ ##
2094
2095# ac_fn_c_try_compile LINENO
2096# --------------------------
2097# Try to compile conftest.$ac_ext, and return whether this succeeded.
2098ac_fn_c_try_compile ()
2099{
2100 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2101 rm -f conftest.$ac_objext
2102 if { { ac_try="$ac_compile"
2103case "(($ac_try" in
2104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2105 *) ac_try_echo=$ac_try;;
2106esac
2107eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2108$as_echo "$ac_try_echo"; } >&5
2109 (eval "$ac_compile") 2>conftest.err
2110 ac_status=$?
2111 if test -s conftest.err; then
2112 grep -v '^ *+' conftest.err >conftest.er1
2113 cat conftest.er1 >&5
2114 mv -f conftest.er1 conftest.err
2115 fi
2116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2117 test $ac_status = 0; } && {
2118 test -z "$ac_c_werror_flag" ||
2119 test ! -s conftest.err
2120 } && test -s conftest.$ac_objext; then :
2121 ac_retval=0
2122else
2123 $as_echo "$as_me: failed program was:" >&5
2124sed 's/^/| /' conftest.$ac_ext >&5
2125
2126 ac_retval=1
2127fi
cristyda16f162011-02-19 23:52:17 +00002128 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002129 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002130
2131} # ac_fn_c_try_compile
2132
cristy95646052009-11-28 23:05:30 +00002133# ac_fn_c_try_cpp LINENO
2134# ----------------------
2135# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2136ac_fn_c_try_cpp ()
2137{
2138 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2139 if { { ac_try="$ac_cpp conftest.$ac_ext"
2140case "(($ac_try" in
2141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2142 *) ac_try_echo=$ac_try;;
2143esac
2144eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2145$as_echo "$ac_try_echo"; } >&5
2146 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2147 ac_status=$?
2148 if test -s conftest.err; then
2149 grep -v '^ *+' conftest.err >conftest.er1
2150 cat conftest.er1 >&5
2151 mv -f conftest.er1 conftest.err
2152 fi
2153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002154 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002155 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2156 test ! -s conftest.err
2157 }; then :
2158 ac_retval=0
2159else
2160 $as_echo "$as_me: failed program was:" >&5
2161sed 's/^/| /' conftest.$ac_ext >&5
2162
2163 ac_retval=1
2164fi
cristyda16f162011-02-19 23:52:17 +00002165 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002166 as_fn_set_status $ac_retval
2167
2168} # ac_fn_c_try_cpp
2169
cristy8b350f62009-11-15 23:12:43 +00002170# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2171# -------------------------------------------------------
2172# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2173# the include files in INCLUDES and setting the cache variable VAR
2174# accordingly.
2175ac_fn_c_check_header_mongrel ()
2176{
2177 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002178 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2180$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002181if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002182 $as_echo_n "(cached) " >&6
2183fi
2184eval ac_res=\$$3
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2186$as_echo "$ac_res" >&6; }
2187else
2188 # Is the header compilable?
2189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2190$as_echo_n "checking $2 usability... " >&6; }
2191cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2192/* end confdefs.h. */
2193$4
2194#include <$2>
2195_ACEOF
2196if ac_fn_c_try_compile "$LINENO"; then :
2197 ac_header_compiler=yes
2198else
2199 ac_header_compiler=no
2200fi
2201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2203$as_echo "$ac_header_compiler" >&6; }
2204
2205# Is the header present?
2206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2207$as_echo_n "checking $2 presence... " >&6; }
2208cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2209/* end confdefs.h. */
2210#include <$2>
2211_ACEOF
2212if ac_fn_c_try_cpp "$LINENO"; then :
2213 ac_header_preproc=yes
2214else
2215 ac_header_preproc=no
2216fi
cristyda16f162011-02-19 23:52:17 +00002217rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2219$as_echo "$ac_header_preproc" >&6; }
2220
2221# So? What about this header?
2222case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2223 yes:no: )
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2225$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2227$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2228 ;;
2229 no:yes:* )
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2231$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2233$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2235$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2237$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2239$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002240( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002241## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002242## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002243 ) | sed "s/^/$as_me: WARNING: /" >&2
2244 ;;
2245esac
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2247$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002248if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002249 $as_echo_n "(cached) " >&6
2250else
2251 eval "$3=\$ac_header_compiler"
2252fi
2253eval ac_res=\$$3
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2255$as_echo "$ac_res" >&6; }
2256fi
cristyda16f162011-02-19 23:52:17 +00002257 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002258
2259} # ac_fn_c_check_header_mongrel
2260
2261# ac_fn_c_try_run LINENO
2262# ----------------------
2263# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2264# that executables *can* be run.
2265ac_fn_c_try_run ()
2266{
2267 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2268 if { { ac_try="$ac_link"
2269case "(($ac_try" in
2270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2271 *) ac_try_echo=$ac_try;;
2272esac
2273eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2274$as_echo "$ac_try_echo"; } >&5
2275 (eval "$ac_link") 2>&5
2276 ac_status=$?
2277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2278 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2279 { { case "(($ac_try" in
2280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2281 *) ac_try_echo=$ac_try;;
2282esac
2283eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2284$as_echo "$ac_try_echo"; } >&5
2285 (eval "$ac_try") 2>&5
2286 ac_status=$?
2287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2288 test $ac_status = 0; }; }; then :
2289 ac_retval=0
2290else
2291 $as_echo "$as_me: program exited with status $ac_status" >&5
2292 $as_echo "$as_me: failed program was:" >&5
2293sed 's/^/| /' conftest.$ac_ext >&5
2294
2295 ac_retval=$ac_status
2296fi
2297 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002298 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002299 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002300
2301} # ac_fn_c_try_run
2302
2303# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2304# -------------------------------------------------------
2305# Tests whether HEADER exists and can be compiled using the include files in
2306# INCLUDES, setting the cache variable VAR accordingly.
2307ac_fn_c_check_header_compile ()
2308{
2309 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2311$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002312if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002313 $as_echo_n "(cached) " >&6
2314else
2315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2316/* end confdefs.h. */
2317$4
2318#include <$2>
2319_ACEOF
2320if ac_fn_c_try_compile "$LINENO"; then :
2321 eval "$3=yes"
2322else
2323 eval "$3=no"
2324fi
2325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2326fi
2327eval ac_res=\$$3
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2329$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002330 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002331
2332} # ac_fn_c_check_header_compile
2333
cristya0b81c32010-01-22 02:54:33 +00002334# ac_fn_cxx_try_compile LINENO
2335# ----------------------------
2336# Try to compile conftest.$ac_ext, and return whether this succeeded.
2337ac_fn_cxx_try_compile ()
2338{
2339 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2340 rm -f conftest.$ac_objext
2341 if { { ac_try="$ac_compile"
2342case "(($ac_try" in
2343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2344 *) ac_try_echo=$ac_try;;
2345esac
2346eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2347$as_echo "$ac_try_echo"; } >&5
2348 (eval "$ac_compile") 2>conftest.err
2349 ac_status=$?
2350 if test -s conftest.err; then
2351 grep -v '^ *+' conftest.err >conftest.er1
2352 cat conftest.er1 >&5
2353 mv -f conftest.er1 conftest.err
2354 fi
2355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2356 test $ac_status = 0; } && {
2357 test -z "$ac_cxx_werror_flag" ||
2358 test ! -s conftest.err
2359 } && test -s conftest.$ac_objext; then :
2360 ac_retval=0
2361else
2362 $as_echo "$as_me: failed program was:" >&5
2363sed 's/^/| /' conftest.$ac_ext >&5
2364
2365 ac_retval=1
2366fi
cristyda16f162011-02-19 23:52:17 +00002367 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002368 as_fn_set_status $ac_retval
2369
2370} # ac_fn_cxx_try_compile
2371
cristy8b350f62009-11-15 23:12:43 +00002372# ac_fn_c_try_link LINENO
2373# -----------------------
2374# Try to link conftest.$ac_ext, and return whether this succeeded.
2375ac_fn_c_try_link ()
2376{
2377 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2378 rm -f conftest.$ac_objext conftest$ac_exeext
2379 if { { ac_try="$ac_link"
2380case "(($ac_try" in
2381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2382 *) ac_try_echo=$ac_try;;
2383esac
2384eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2385$as_echo "$ac_try_echo"; } >&5
2386 (eval "$ac_link") 2>conftest.err
2387 ac_status=$?
2388 if test -s conftest.err; then
2389 grep -v '^ *+' conftest.err >conftest.er1
2390 cat conftest.er1 >&5
2391 mv -f conftest.er1 conftest.err
2392 fi
2393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2394 test $ac_status = 0; } && {
2395 test -z "$ac_c_werror_flag" ||
2396 test ! -s conftest.err
2397 } && test -s conftest$ac_exeext && {
2398 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002399 test -x conftest$ac_exeext
cristy8b350f62009-11-15 23:12:43 +00002400 }; then :
2401 ac_retval=0
2402else
2403 $as_echo "$as_me: failed program was:" >&5
2404sed 's/^/| /' conftest.$ac_ext >&5
2405
2406 ac_retval=1
2407fi
2408 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2409 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2410 # interfere with the next link command; also delete a directory that is
2411 # left behind by Apple's compiler. We do this before executing the actions.
2412 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002413 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002414 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002415
2416} # ac_fn_c_try_link
2417
cristy73bd4a52010-10-05 11:24:23 +00002418# ac_fn_c_check_func LINENO FUNC VAR
2419# ----------------------------------
2420# Tests whether FUNC exists, setting the cache variable VAR accordingly
2421ac_fn_c_check_func ()
2422{
2423 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2425$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002426if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002427 $as_echo_n "(cached) " >&6
2428else
2429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2430/* end confdefs.h. */
2431/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2432 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2433#define $2 innocuous_$2
2434
2435/* System header to define __stub macros and hopefully few prototypes,
2436 which can conflict with char $2 (); below.
2437 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2438 <limits.h> exists even on freestanding compilers. */
2439
2440#ifdef __STDC__
2441# include <limits.h>
2442#else
2443# include <assert.h>
2444#endif
2445
2446#undef $2
2447
2448/* Override any GCC internal prototype to avoid an error.
2449 Use char because int might match the return type of a GCC
2450 builtin and then its argument prototype would still apply. */
2451#ifdef __cplusplus
2452extern "C"
2453#endif
2454char $2 ();
2455/* The GNU C library defines this for functions which it implements
2456 to always fail with ENOSYS. Some functions are actually named
2457 something starting with __ and the normal name is an alias. */
2458#if defined __stub_$2 || defined __stub___$2
2459choke me
2460#endif
2461
2462int
2463main ()
2464{
2465return $2 ();
2466 ;
2467 return 0;
2468}
2469_ACEOF
2470if ac_fn_c_try_link "$LINENO"; then :
2471 eval "$3=yes"
2472else
2473 eval "$3=no"
2474fi
2475rm -f core conftest.err conftest.$ac_objext \
2476 conftest$ac_exeext conftest.$ac_ext
2477fi
2478eval ac_res=\$$3
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2480$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002481 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002482
2483} # ac_fn_c_check_func
2484
2485# ac_fn_cxx_try_cpp LINENO
2486# ------------------------
2487# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2488ac_fn_cxx_try_cpp ()
2489{
2490 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2491 if { { ac_try="$ac_cpp conftest.$ac_ext"
2492case "(($ac_try" in
2493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2494 *) ac_try_echo=$ac_try;;
2495esac
2496eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2497$as_echo "$ac_try_echo"; } >&5
2498 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2499 ac_status=$?
2500 if test -s conftest.err; then
2501 grep -v '^ *+' conftest.err >conftest.er1
2502 cat conftest.er1 >&5
2503 mv -f conftest.er1 conftest.err
2504 fi
2505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002506 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002507 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2508 test ! -s conftest.err
2509 }; then :
2510 ac_retval=0
2511else
2512 $as_echo "$as_me: failed program was:" >&5
2513sed 's/^/| /' conftest.$ac_ext >&5
2514
2515 ac_retval=1
2516fi
cristyda16f162011-02-19 23:52:17 +00002517 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002518 as_fn_set_status $ac_retval
2519
2520} # ac_fn_cxx_try_cpp
2521
2522# ac_fn_cxx_try_link LINENO
2523# -------------------------
2524# Try to link conftest.$ac_ext, and return whether this succeeded.
2525ac_fn_cxx_try_link ()
2526{
2527 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2528 rm -f conftest.$ac_objext conftest$ac_exeext
2529 if { { ac_try="$ac_link"
2530case "(($ac_try" in
2531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2532 *) ac_try_echo=$ac_try;;
2533esac
2534eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2535$as_echo "$ac_try_echo"; } >&5
2536 (eval "$ac_link") 2>conftest.err
2537 ac_status=$?
2538 if test -s conftest.err; then
2539 grep -v '^ *+' conftest.err >conftest.er1
2540 cat conftest.er1 >&5
2541 mv -f conftest.er1 conftest.err
2542 fi
2543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2544 test $ac_status = 0; } && {
2545 test -z "$ac_cxx_werror_flag" ||
2546 test ! -s conftest.err
2547 } && test -s conftest$ac_exeext && {
2548 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002549 test -x conftest$ac_exeext
cristy73bd4a52010-10-05 11:24:23 +00002550 }; then :
2551 ac_retval=0
2552else
2553 $as_echo "$as_me: failed program was:" >&5
2554sed 's/^/| /' conftest.$ac_ext >&5
2555
2556 ac_retval=1
2557fi
2558 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2559 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2560 # interfere with the next link command; also delete a directory that is
2561 # left behind by Apple's compiler. We do this before executing the actions.
2562 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002563 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002564 as_fn_set_status $ac_retval
2565
2566} # ac_fn_cxx_try_link
2567
cristy8b350f62009-11-15 23:12:43 +00002568# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2569# -------------------------------------------
2570# Tests whether TYPE exists after having included INCLUDES, setting cache
2571# variable VAR accordingly.
2572ac_fn_c_check_type ()
2573{
2574 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2576$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002577if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002578 $as_echo_n "(cached) " >&6
2579else
2580 eval "$3=no"
2581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2582/* end confdefs.h. */
2583$4
2584int
2585main ()
2586{
2587if (sizeof ($2))
2588 return 0;
2589 ;
2590 return 0;
2591}
2592_ACEOF
2593if ac_fn_c_try_compile "$LINENO"; then :
2594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2595/* end confdefs.h. */
2596$4
2597int
2598main ()
2599{
2600if (sizeof (($2)))
2601 return 0;
2602 ;
2603 return 0;
2604}
2605_ACEOF
2606if ac_fn_c_try_compile "$LINENO"; then :
2607
2608else
2609 eval "$3=yes"
2610fi
2611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2612fi
2613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2614fi
2615eval ac_res=\$$3
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2617$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002618 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002619
2620} # ac_fn_c_check_type
2621
cristy92703d82010-04-26 00:18:18 +00002622# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2623# ----------------------------------------------------
2624# Tries to find if the field MEMBER exists in type AGGR, after including
2625# INCLUDES, setting cache variable VAR accordingly.
2626ac_fn_c_check_member ()
2627{
2628 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2630$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002631if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002632 $as_echo_n "(cached) " >&6
2633else
2634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2635/* end confdefs.h. */
2636$5
2637int
2638main ()
2639{
2640static $2 ac_aggr;
2641if (ac_aggr.$3)
2642return 0;
2643 ;
2644 return 0;
2645}
2646_ACEOF
2647if ac_fn_c_try_compile "$LINENO"; then :
2648 eval "$4=yes"
2649else
2650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2651/* end confdefs.h. */
2652$5
2653int
2654main ()
2655{
2656static $2 ac_aggr;
2657if (sizeof ac_aggr.$3)
2658return 0;
2659 ;
2660 return 0;
2661}
2662_ACEOF
2663if ac_fn_c_try_compile "$LINENO"; then :
2664 eval "$4=yes"
2665else
2666 eval "$4=no"
2667fi
2668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2669fi
2670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2671fi
2672eval ac_res=\$$4
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2674$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002675 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002676
2677} # ac_fn_c_check_member
2678
cristy5eef09f2012-10-16 12:08:28 +00002679# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2680# ---------------------------------------------
2681# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2682# accordingly.
2683ac_fn_c_check_decl ()
2684{
2685 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2686 as_decl_name=`echo $2|sed 's/ *(.*//'`
2687 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2689$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2690if eval \${$3+:} false; then :
2691 $as_echo_n "(cached) " >&6
2692else
2693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2694/* end confdefs.h. */
2695$4
2696int
2697main ()
2698{
2699#ifndef $as_decl_name
2700#ifdef __cplusplus
2701 (void) $as_decl_use;
2702#else
2703 (void) $as_decl_name;
2704#endif
2705#endif
2706
2707 ;
2708 return 0;
2709}
2710_ACEOF
2711if ac_fn_c_try_compile "$LINENO"; then :
2712 eval "$3=yes"
2713else
2714 eval "$3=no"
2715fi
2716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2717fi
2718eval ac_res=\$$3
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2720$as_echo "$ac_res" >&6; }
2721 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2722
2723} # ac_fn_c_check_decl
2724
cristy501c8042011-05-26 17:46:28 +00002725# ac_fn_c_find_intX_t LINENO BITS VAR
2726# -----------------------------------
2727# Finds a signed integer type with width BITS, setting cache variable VAR
2728# accordingly.
2729ac_fn_c_find_intX_t ()
2730{
2731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2733$as_echo_n "checking for int$2_t... " >&6; }
2734if eval \${$3+:} false; then :
2735 $as_echo_n "(cached) " >&6
2736else
2737 eval "$3=no"
2738 # Order is important - never check a type that is potentially smaller
2739 # than half of the expected target width.
2740 for ac_type in int$2_t 'int' 'long int' \
2741 'long long int' 'short int' 'signed char'; do
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 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
cristy14fefe52012-05-21 00:59:18 +00002750test_array [0] = 0;
2751return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002752
2753 ;
2754 return 0;
2755}
2756_ACEOF
2757if ac_fn_c_try_compile "$LINENO"; then :
2758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2759/* end confdefs.h. */
2760$ac_includes_default
2761 enum { N = $2 / 2 - 1 };
2762int
2763main ()
2764{
2765static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2766 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
cristy14fefe52012-05-21 00:59:18 +00002767test_array [0] = 0;
2768return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002769
2770 ;
2771 return 0;
2772}
2773_ACEOF
2774if ac_fn_c_try_compile "$LINENO"; then :
2775
2776else
2777 case $ac_type in #(
2778 int$2_t) :
2779 eval "$3=yes" ;; #(
2780 *) :
2781 eval "$3=\$ac_type" ;;
2782esac
2783fi
2784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2785fi
2786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2787 if eval test \"x\$"$3"\" = x"no"; then :
2788
2789else
2790 break
2791fi
2792 done
2793fi
2794eval ac_res=\$$3
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2796$as_echo "$ac_res" >&6; }
2797 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2798
2799} # ac_fn_c_find_intX_t
2800
2801# ac_fn_c_find_uintX_t LINENO BITS VAR
2802# ------------------------------------
2803# Finds an unsigned integer type with width BITS, setting cache variable VAR
2804# accordingly.
2805ac_fn_c_find_uintX_t ()
2806{
2807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2809$as_echo_n "checking for uint$2_t... " >&6; }
2810if eval \${$3+:} false; then :
2811 $as_echo_n "(cached) " >&6
2812else
2813 eval "$3=no"
2814 # Order is important - never check a type that is potentially smaller
2815 # than half of the expected target width.
2816 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2817 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2819/* end confdefs.h. */
2820$ac_includes_default
2821int
2822main ()
2823{
2824static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
cristy14fefe52012-05-21 00:59:18 +00002825test_array [0] = 0;
2826return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002827
2828 ;
2829 return 0;
2830}
2831_ACEOF
2832if ac_fn_c_try_compile "$LINENO"; then :
2833 case $ac_type in #(
2834 uint$2_t) :
2835 eval "$3=yes" ;; #(
2836 *) :
2837 eval "$3=\$ac_type" ;;
2838esac
2839fi
2840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2841 if eval test \"x\$"$3"\" = x"no"; then :
2842
2843else
2844 break
2845fi
2846 done
2847fi
2848eval ac_res=\$$3
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2850$as_echo "$ac_res" >&6; }
2851 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2852
2853} # ac_fn_c_find_uintX_t
2854
cristy8b350f62009-11-15 23:12:43 +00002855# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2856# --------------------------------------------
2857# Tries to find the compile-time value of EXPR in a program that includes
2858# INCLUDES, setting VAR accordingly. Returns whether the value could be
2859# computed
2860ac_fn_c_compute_int ()
2861{
2862 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2863 if test "$cross_compiling" = yes; then
2864 # Depending upon the size, compute the lo and hi bounds.
2865cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2866/* end confdefs.h. */
2867$4
2868int
2869main ()
2870{
2871static int test_array [1 - 2 * !(($2) >= 0)];
cristy14fefe52012-05-21 00:59:18 +00002872test_array [0] = 0;
2873return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002874
2875 ;
2876 return 0;
2877}
2878_ACEOF
2879if ac_fn_c_try_compile "$LINENO"; then :
2880 ac_lo=0 ac_mid=0
2881 while :; do
2882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2883/* end confdefs.h. */
2884$4
2885int
2886main ()
2887{
2888static int test_array [1 - 2 * !(($2) <= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002889test_array [0] = 0;
2890return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002891
2892 ;
2893 return 0;
2894}
2895_ACEOF
2896if ac_fn_c_try_compile "$LINENO"; then :
2897 ac_hi=$ac_mid; break
2898else
2899 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2900 if test $ac_lo -le $ac_mid; then
2901 ac_lo= ac_hi=
2902 break
2903 fi
2904 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2905fi
2906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2907 done
2908else
2909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2910/* end confdefs.h. */
2911$4
2912int
2913main ()
2914{
2915static int test_array [1 - 2 * !(($2) < 0)];
cristy14fefe52012-05-21 00:59:18 +00002916test_array [0] = 0;
2917return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002918
2919 ;
2920 return 0;
2921}
2922_ACEOF
2923if ac_fn_c_try_compile "$LINENO"; then :
2924 ac_hi=-1 ac_mid=-1
2925 while :; do
2926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2927/* end confdefs.h. */
2928$4
2929int
2930main ()
2931{
2932static int test_array [1 - 2 * !(($2) >= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002933test_array [0] = 0;
2934return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002935
2936 ;
2937 return 0;
2938}
2939_ACEOF
2940if ac_fn_c_try_compile "$LINENO"; then :
2941 ac_lo=$ac_mid; break
2942else
2943 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2944 if test $ac_mid -le $ac_hi; then
2945 ac_lo= ac_hi=
2946 break
2947 fi
2948 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2949fi
2950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2951 done
2952else
2953 ac_lo= ac_hi=
2954fi
2955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2956fi
2957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2958# Binary search between lo and hi bounds.
2959while test "x$ac_lo" != "x$ac_hi"; do
2960 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2962/* end confdefs.h. */
2963$4
2964int
2965main ()
2966{
2967static int test_array [1 - 2 * !(($2) <= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002968test_array [0] = 0;
2969return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002970
2971 ;
2972 return 0;
2973}
2974_ACEOF
2975if ac_fn_c_try_compile "$LINENO"; then :
2976 ac_hi=$ac_mid
2977else
2978 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2979fi
2980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2981done
2982case $ac_lo in #((
2983?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2984'') ac_retval=1 ;;
2985esac
2986 else
2987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2988/* end confdefs.h. */
2989$4
2990static long int longval () { return $2; }
2991static unsigned long int ulongval () { return $2; }
2992#include <stdio.h>
2993#include <stdlib.h>
2994int
2995main ()
2996{
2997
2998 FILE *f = fopen ("conftest.val", "w");
2999 if (! f)
3000 return 1;
3001 if (($2) < 0)
3002 {
3003 long int i = longval ();
3004 if (i != ($2))
3005 return 1;
3006 fprintf (f, "%ld", i);
3007 }
3008 else
3009 {
3010 unsigned long int i = ulongval ();
3011 if (i != ($2))
3012 return 1;
3013 fprintf (f, "%lu", i);
3014 }
3015 /* Do not output a trailing newline, as this causes \r\n confusion
3016 on some platforms. */
3017 return ferror (f) || fclose (f) != 0;
3018
3019 ;
3020 return 0;
3021}
3022_ACEOF
3023if ac_fn_c_try_run "$LINENO"; then :
3024 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3025else
3026 ac_retval=1
3027fi
3028rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3029 conftest.$ac_objext conftest.beam conftest.$ac_ext
3030rm -f conftest.val
3031
3032 fi
cristyda16f162011-02-19 23:52:17 +00003033 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00003034 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00003035
3036} # ac_fn_c_compute_int
3037
3038# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
3039# ---------------------------------------------------------
3040# Tests whether HEADER exists, giving a warning if it cannot be compiled using
3041# the include files in INCLUDES and setting the cache variable VAR
3042# accordingly.
3043ac_fn_cxx_check_header_mongrel ()
3044{
3045 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00003046 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3048$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003049if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003050 $as_echo_n "(cached) " >&6
3051fi
3052eval ac_res=\$$3
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3054$as_echo "$ac_res" >&6; }
3055else
3056 # Is the header compilable?
3057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3058$as_echo_n "checking $2 usability... " >&6; }
3059cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3060/* end confdefs.h. */
3061$4
3062#include <$2>
3063_ACEOF
3064if ac_fn_cxx_try_compile "$LINENO"; then :
3065 ac_header_compiler=yes
3066else
3067 ac_header_compiler=no
3068fi
3069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3071$as_echo "$ac_header_compiler" >&6; }
3072
3073# Is the header present?
3074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3075$as_echo_n "checking $2 presence... " >&6; }
3076cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3077/* end confdefs.h. */
3078#include <$2>
3079_ACEOF
3080if ac_fn_cxx_try_cpp "$LINENO"; then :
3081 ac_header_preproc=yes
3082else
3083 ac_header_preproc=no
3084fi
cristyda16f162011-02-19 23:52:17 +00003085rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00003086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3087$as_echo "$ac_header_preproc" >&6; }
3088
3089# So? What about this header?
3090case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3091 yes:no: )
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3093$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3095$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3096 ;;
3097 no:yes:* )
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3099$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3101$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3103$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3105$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3107$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003108( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00003109## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00003110## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00003111 ) | sed "s/^/$as_me: WARNING: /" >&2
3112 ;;
3113esac
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3115$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003116if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003117 $as_echo_n "(cached) " >&6
3118else
3119 eval "$3=\$ac_header_compiler"
3120fi
3121eval ac_res=\$$3
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3123$as_echo "$ac_res" >&6; }
3124fi
cristyda16f162011-02-19 23:52:17 +00003125 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00003126
3127} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003128cat >config.log <<_ACEOF
3129This file contains any messages produced by compilers while
3130running configure, to aid debugging if configure makes a mistake.
3131
cristy29eb34e2011-10-16 00:46:08 +00003132It was created by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +00003133generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003134
3135 $ $0 $@
3136
3137_ACEOF
3138exec 5>>config.log
3139{
3140cat <<_ASUNAME
3141## --------- ##
3142## Platform. ##
3143## --------- ##
3144
3145hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3146uname -m = `(uname -m) 2>/dev/null || echo unknown`
3147uname -r = `(uname -r) 2>/dev/null || echo unknown`
3148uname -s = `(uname -s) 2>/dev/null || echo unknown`
3149uname -v = `(uname -v) 2>/dev/null || echo unknown`
3150
3151/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3152/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3153
3154/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3155/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3156/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3157/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3158/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3159/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3160/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3161
3162_ASUNAME
3163
3164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3165for as_dir in $PATH
3166do
3167 IFS=$as_save_IFS
3168 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003169 $as_echo "PATH: $as_dir"
3170 done
cristy3ed852e2009-09-05 21:47:34 +00003171IFS=$as_save_IFS
3172
3173} >&5
3174
3175cat >&5 <<_ACEOF
3176
3177
3178## ----------- ##
3179## Core tests. ##
3180## ----------- ##
3181
3182_ACEOF
3183
3184
3185# Keep a trace of the command line.
3186# Strip out --no-create and --no-recursion so they do not pile up.
3187# Strip out --silent because we don't want to record it for future runs.
3188# Also quote any args containing shell meta-characters.
3189# Make two passes to allow for proper duplicate-argument suppression.
3190ac_configure_args=
3191ac_configure_args0=
3192ac_configure_args1=
3193ac_must_keep_next=false
3194for ac_pass in 1 2
3195do
3196 for ac_arg
3197 do
3198 case $ac_arg in
3199 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3200 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3201 | -silent | --silent | --silen | --sile | --sil)
3202 continue ;;
3203 *\'*)
3204 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3205 esac
3206 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003207 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003208 2)
cristy8b350f62009-11-15 23:12:43 +00003209 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003210 if test $ac_must_keep_next = true; then
3211 ac_must_keep_next=false # Got value, back to normal.
3212 else
3213 case $ac_arg in
3214 *=* | --config-cache | -C | -disable-* | --disable-* \
3215 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3216 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3217 | -with-* | --with-* | -without-* | --without-* | --x)
3218 case "$ac_configure_args0 " in
3219 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3220 esac
3221 ;;
3222 -* ) ac_must_keep_next=true ;;
3223 esac
3224 fi
cristy8b350f62009-11-15 23:12:43 +00003225 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003226 ;;
3227 esac
3228 done
3229done
cristy8b350f62009-11-15 23:12:43 +00003230{ ac_configure_args0=; unset ac_configure_args0;}
3231{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003232
3233# When interrupted or exit'd, cleanup temporary files, and complete
3234# config.log. We remove comments because anyway the quotes in there
3235# would cause problems or look ugly.
3236# WARNING: Use '\'' to represent an apostrophe within the trap.
3237# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3238trap 'exit_status=$?
3239 # Save into config.log some information that might help in debugging.
3240 {
3241 echo
3242
cristy98dddb52010-11-04 00:30:15 +00003243 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003244## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003245## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003246 echo
3247 # The following way of writing the cache mishandles newlines in values,
3248(
3249 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3250 eval ac_val=\$$ac_var
3251 case $ac_val in #(
3252 *${as_nl}*)
3253 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003254 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003255$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3256 esac
3257 case $ac_var in #(
3258 _ | IFS | as_nl) ;; #(
3259 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003260 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003261 esac ;;
3262 esac
3263 done
3264 (set) 2>&1 |
3265 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3266 *${as_nl}ac_space=\ *)
3267 sed -n \
3268 "s/'\''/'\''\\\\'\'''\''/g;
3269 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3270 ;; #(
3271 *)
3272 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3273 ;;
3274 esac |
3275 sort
3276)
3277 echo
3278
cristy98dddb52010-11-04 00:30:15 +00003279 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003280## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003281## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003282 echo
3283 for ac_var in $ac_subst_vars
3284 do
3285 eval ac_val=\$$ac_var
3286 case $ac_val in
3287 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3288 esac
3289 $as_echo "$ac_var='\''$ac_val'\''"
3290 done | sort
3291 echo
3292
3293 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003294 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003295## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003296## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003297 echo
3298 for ac_var in $ac_subst_files
3299 do
3300 eval ac_val=\$$ac_var
3301 case $ac_val in
3302 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3303 esac
3304 $as_echo "$ac_var='\''$ac_val'\''"
3305 done | sort
3306 echo
3307 fi
3308
3309 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003310 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003311## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003312## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003313 echo
3314 cat confdefs.h
3315 echo
3316 fi
3317 test "$ac_signal" != 0 &&
3318 $as_echo "$as_me: caught signal $ac_signal"
3319 $as_echo "$as_me: exit $exit_status"
3320 } >&5
3321 rm -f core *.core core.conftest.* &&
3322 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3323 exit $exit_status
3324' 0
3325for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003326 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003327done
3328ac_signal=0
3329
3330# confdefs.h avoids OS command line length limits that DEFS can exceed.
3331rm -f -r conftest* confdefs.h
3332
cristy8b350f62009-11-15 23:12:43 +00003333$as_echo "/* confdefs.h */" > confdefs.h
3334
cristy3ed852e2009-09-05 21:47:34 +00003335# Predefined preprocessor variables.
3336
3337cat >>confdefs.h <<_ACEOF
3338#define PACKAGE_NAME "$PACKAGE_NAME"
3339_ACEOF
3340
cristy3ed852e2009-09-05 21:47:34 +00003341cat >>confdefs.h <<_ACEOF
3342#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3343_ACEOF
3344
cristy3ed852e2009-09-05 21:47:34 +00003345cat >>confdefs.h <<_ACEOF
3346#define PACKAGE_VERSION "$PACKAGE_VERSION"
3347_ACEOF
3348
cristy3ed852e2009-09-05 21:47:34 +00003349cat >>confdefs.h <<_ACEOF
3350#define PACKAGE_STRING "$PACKAGE_STRING"
3351_ACEOF
3352
cristy3ed852e2009-09-05 21:47:34 +00003353cat >>confdefs.h <<_ACEOF
3354#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3355_ACEOF
3356
cristy8b350f62009-11-15 23:12:43 +00003357cat >>confdefs.h <<_ACEOF
3358#define PACKAGE_URL "$PACKAGE_URL"
3359_ACEOF
3360
cristy3ed852e2009-09-05 21:47:34 +00003361
3362# Let the site file select an alternate cache file if it wants to.
3363# Prefer an explicitly selected file to automatically selected ones.
3364ac_site_file1=NONE
3365ac_site_file2=NONE
3366if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003367 # We do not want a PATH search for config.site.
3368 case $CONFIG_SITE in #((
3369 -*) ac_site_file1=./$CONFIG_SITE;;
3370 */*) ac_site_file1=$CONFIG_SITE;;
3371 *) ac_site_file1=./$CONFIG_SITE;;
3372 esac
cristy3ed852e2009-09-05 21:47:34 +00003373elif test "x$prefix" != xNONE; then
3374 ac_site_file1=$prefix/share/config.site
3375 ac_site_file2=$prefix/etc/config.site
3376else
3377 ac_site_file1=$ac_default_prefix/share/config.site
3378 ac_site_file2=$ac_default_prefix/etc/config.site
3379fi
3380for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3381do
3382 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003383 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003384 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003385$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3386 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003387 . "$ac_site_file" \
3388 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3389$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3390as_fn_error $? "failed to load site script $ac_site_file
3391See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003392 fi
3393done
3394
3395if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003396 # Some versions of bash will fail to source /dev/null (special files
3397 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3398 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003399 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003400$as_echo "$as_me: loading cache $cache_file" >&6;}
3401 case $cache_file in
3402 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3403 *) . "./$cache_file";;
3404 esac
3405 fi
3406else
cristy8b350f62009-11-15 23:12:43 +00003407 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003408$as_echo "$as_me: creating cache $cache_file" >&6;}
3409 >$cache_file
3410fi
3411
cristycd4c5312009-11-22 01:19:08 +00003412as_fn_append ac_header_list " stdlib.h"
3413as_fn_append ac_header_list " unistd.h"
3414as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003415# Check that the precious variables saved in the cache have kept the same
3416# value.
3417ac_cache_corrupted=false
3418for ac_var in $ac_precious_vars; do
3419 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3420 eval ac_new_set=\$ac_env_${ac_var}_set
3421 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3422 eval ac_new_val=\$ac_env_${ac_var}_value
3423 case $ac_old_set,$ac_new_set in
3424 set,)
cristy8b350f62009-11-15 23:12:43 +00003425 { $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 +00003426$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3427 ac_cache_corrupted=: ;;
3428 ,set)
cristy8b350f62009-11-15 23:12:43 +00003429 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003430$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3431 ac_cache_corrupted=: ;;
3432 ,);;
3433 *)
3434 if test "x$ac_old_val" != "x$ac_new_val"; then
3435 # differences in whitespace do not lead to failure.
3436 ac_old_val_w=`echo x $ac_old_val`
3437 ac_new_val_w=`echo x $ac_new_val`
3438 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003439 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003440$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3441 ac_cache_corrupted=:
3442 else
cristy8b350f62009-11-15 23:12:43 +00003443 { $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 +00003444$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3445 eval $ac_var=\$ac_old_val
3446 fi
cristy8b350f62009-11-15 23:12:43 +00003447 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003448$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003449 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003450$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3451 fi;;
3452 esac
3453 # Pass precious variables to config.status.
3454 if test "$ac_new_set" = set; then
3455 case $ac_new_val in
3456 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3457 *) ac_arg=$ac_var=$ac_new_val ;;
3458 esac
3459 case " $ac_configure_args " in
3460 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003461 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003462 esac
3463 fi
3464done
3465if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003466 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003467$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003468 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003469$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003470 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003471fi
cristy8b350f62009-11-15 23:12:43 +00003472## -------------------- ##
3473## Main body of script. ##
3474## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003475
3476ac_ext=c
3477ac_cpp='$CPP $CPPFLAGS'
3478ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3479ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3480ac_compiler_gnu=$ac_cv_c_compiler_gnu
3481
3482
3483
3484ac_aux_dir=
3485for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003486 if test -f "$ac_dir/install-sh"; then
3487 ac_aux_dir=$ac_dir
3488 ac_install_sh="$ac_aux_dir/install-sh -c"
3489 break
3490 elif test -f "$ac_dir/install.sh"; then
3491 ac_aux_dir=$ac_dir
3492 ac_install_sh="$ac_aux_dir/install.sh -c"
3493 break
3494 elif test -f "$ac_dir/shtool"; then
3495 ac_aux_dir=$ac_dir
3496 ac_install_sh="$ac_aux_dir/shtool install -c"
3497 break
3498 fi
cristy3ed852e2009-09-05 21:47:34 +00003499done
3500if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003501 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003502fi
3503
3504# These three variables are undocumented and unsupported,
3505# and are intended to be withdrawn in a future Autoconf release.
3506# They can cause serious problems if a builder's source tree is in a directory
3507# whose full name contains unusual characters.
3508ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3509ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3510ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3511
3512
3513
3514
3515ac_config_headers="$ac_config_headers config/config.h"
3516
cristy24fc1fe2010-10-23 21:13:01 +00003517
cristy01ff9f32012-12-01 18:15:29 +00003518ac_config_commands="$ac_config_commands MagickCore/magick-baseconfig.h"
cristy73bd4a52010-10-05 11:24:23 +00003519
cristy8d0ff762013-03-10 20:33:28 +00003520ac_config_files="$ac_config_files common.shi config/configure.xml config/delegates.xml config/ImageMagick.rdf config/MagickCore.dox config/MagickWand.dox config/Magick++.dox config/type-dejavu.xml config/type-ghostscript.xml config/type-windows.xml config/type.xml ImageMagick.spec Magick++/bin/Magick++-config MagickCore/ImageMagick.pc Magick++/lib/Magick++.pc MagickCore/MagickCore-config MagickCore/MagickCore.pc MagickCore/version.h Makefile magick.sh PerlMagick/check.sh PerlMagick/default/Magick.pm PerlMagick/Makefile.PL PerlMagick/default/Makefile.PL PerlMagick/quantum/Makefile.PL PerlMagick/quantum/quantum.pm PerlMagick/quantum/quantum.xs PerlMagick/quantum/typemap utilities/animate.1 utilities/compare.1 utilities/composite.1 utilities/conjure.1 utilities/convert.1 utilities/display.1 utilities/identify.1 utilities/ImageMagick.1 utilities/import.1 utilities/mogrify.1 utilities/montage.1 utilities/stream.1 MagickWand/MagickWand-config MagickWand/MagickWand.pc"
cristy3ed852e2009-09-05 21:47:34 +00003521
3522
3523#
3524# Save initial user-tunable values
3525#
3526USER_LIBS=$LIBS
3527for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3528 eval isset=\${$var+set}
3529 if test "$isset" = 'set'; then
3530 eval val=$`echo $var`
3531 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3532 fi
3533done
3534
3535
3536CONFIGURE_ARGS="$0 ${ac_configure_args}"
3537
3538
3539# Source file containing package/library versioning information.
3540. ${srcdir}/version.sh
3541
cristy15a88782010-01-31 23:24:49 +00003542echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003543# Make sure we can run config.sub.
3544$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003545 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003546
cristy8b350f62009-11-15 23:12:43 +00003547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003548$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003549if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003550 $as_echo_n "(cached) " >&6
3551else
3552 ac_build_alias=$build_alias
3553test "x$ac_build_alias" = x &&
3554 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3555test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003556 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003557ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003558 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003559
3560fi
cristy8b350f62009-11-15 23:12:43 +00003561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003562$as_echo "$ac_cv_build" >&6; }
3563case $ac_cv_build in
3564*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003565*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003566esac
3567build=$ac_cv_build
3568ac_save_IFS=$IFS; IFS='-'
3569set x $ac_cv_build
3570shift
3571build_cpu=$1
3572build_vendor=$2
3573shift; shift
3574# Remember, the first character of IFS is used to create $*,
3575# except with old shells:
3576build_os=$*
3577IFS=$ac_save_IFS
3578case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3579
3580
cristy8b350f62009-11-15 23:12:43 +00003581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003582$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003583if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003584 $as_echo_n "(cached) " >&6
3585else
3586 if test "x$host_alias" = x; then
3587 ac_cv_host=$ac_cv_build
3588else
3589 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003590 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003591fi
3592
3593fi
cristy8b350f62009-11-15 23:12:43 +00003594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003595$as_echo "$ac_cv_host" >&6; }
3596case $ac_cv_host in
3597*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003598*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003599esac
3600host=$ac_cv_host
3601ac_save_IFS=$IFS; IFS='-'
3602set x $ac_cv_host
3603shift
3604host_cpu=$1
3605host_vendor=$2
3606shift; shift
3607# Remember, the first character of IFS is used to create $*,
3608# except with old shells:
3609host_os=$*
3610IFS=$ac_save_IFS
3611case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3612
3613
cristy8b350f62009-11-15 23:12:43 +00003614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003615$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003616if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003617 $as_echo_n "(cached) " >&6
3618else
3619 if test "x$target_alias" = x; then
3620 ac_cv_target=$ac_cv_host
3621else
3622 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003623 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003624fi
3625
3626fi
cristy8b350f62009-11-15 23:12:43 +00003627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003628$as_echo "$ac_cv_target" >&6; }
3629case $ac_cv_target in
3630*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003631*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003632esac
3633target=$ac_cv_target
3634ac_save_IFS=$IFS; IFS='-'
3635set x $ac_cv_target
3636shift
3637target_cpu=$1
3638target_vendor=$2
3639shift; shift
3640# Remember, the first character of IFS is used to create $*,
3641# except with old shells:
3642target_os=$*
3643IFS=$ac_save_IFS
3644case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3645
3646
3647# The aliases save the names the user supplied, while $host etc.
3648# will get canonicalized.
3649test -n "$target_alias" &&
3650 test "$program_prefix$program_suffix$program_transform_name" = \
3651 NONENONEs,x,x, &&
3652 program_prefix=${target_alias}-
3653
cristy837d6dc2010-02-27 01:16:57 +00003654
3655
3656
cristy8be34142012-06-17 14:07:18 +00003657
cristy19615b82011-04-13 20:02:01 +00003658MAGICK_TARGET_CPU=$host_cpu
cristy3225a072010-04-17 01:47:28 +00003659
3660
cristy27d53d62012-07-29 23:30:07 +00003661cat >>confdefs.h <<_ACEOF
3662#define MAGICK_TARGET_CPU $MAGICK_TARGET_CPU
3663_ACEOF
3664
3665
cristy19615b82011-04-13 20:02:01 +00003666MAGICK_TARGET_VENDOR=$host_vendor
cristy3225a072010-04-17 01:47:28 +00003667
3668
cristy27d53d62012-07-29 23:30:07 +00003669cat >>confdefs.h <<_ACEOF
3670#define MAGICK_TARGET_VENDOR $MAGICK_TARGET_VENDOR
3671_ACEOF
3672
3673
cristy19615b82011-04-13 20:02:01 +00003674MAGICK_TARGET_OS=$host_os
cristy3225a072010-04-17 01:47:28 +00003675
3676
cristy27d53d62012-07-29 23:30:07 +00003677cat >>confdefs.h <<_ACEOF
3678#define MAGICK_TARGET_OS $MAGICK_TARGET_OS
3679_ACEOF
3680
3681
cristy37442762013-02-10 21:07:23 +00003682
3683# Substitute versioning
3684MAGICK_MAJOR_VERSION=7
3685
3686MAGICK_MINOR_VERSION=0
3687
3688MAGICK_MICRO_VERSION=0
3689
3690MAGICK_PATCHLEVEL_VERSION=0
3691
3692MAGICK_VERSION=7.0.0-0
3693
cristy2ed434b2013-10-15 10:33:45 +00003694MAGICK_SVN_REVISION=13449:13452M
cristy37442762013-02-10 21:07:23 +00003695
3696
cristy3ed852e2009-09-05 21:47:34 +00003697# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003698MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3699
3700MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3701
cristy37442762013-02-10 21:07:23 +00003702
cristy5ed9c6e2013-07-14 21:20:31 +00003703MAGICKPP_LIBRARY_CURRENT_MIN=`expr $MAGICKPP_LIBRARY_CURRENT - $MAGICKPP_LIBRARY_AGE`
3704
3705MAGICKPP_LIBRARY_VERSION_INFO=$MAGICKPP_LIBRARY_CURRENT:$MAGICKPP_LIBRARY_REVISION:$MAGICKPP_LIBRARY_AGE
3706
3707
cristyd694ca32011-03-27 21:42:54 +00003708
cristy3ed852e2009-09-05 21:47:34 +00003709# Ensure that make can run correctly
cristy73bd4a52010-10-05 11:24:23 +00003710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3711$as_echo_n "checking whether build environment is sane... " >&6; }
cristy73bd4a52010-10-05 11:24:23 +00003712# Reject unsafe characters in $srcdir or the absolute working directory
3713# name. Accept space and tab only in the latter.
3714am_lf='
3715'
3716case `pwd` in
3717 *[\\\"\#\$\&\'\`$am_lf]*)
cristy98dddb52010-11-04 00:30:15 +00003718 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003719esac
3720case $srcdir in
3721 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristyc0890a62012-07-19 00:18:20 +00003722 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003723esac
cristy3ed852e2009-09-05 21:47:34 +00003724
cristyc0890a62012-07-19 00:18:20 +00003725# Do 'set' in a subshell so we don't clobber the current shell's
cristy73bd4a52010-10-05 11:24:23 +00003726# arguments. Must try -L first in case configure is actually a
3727# symlink; some systems play weird games with the mod time of symlinks
3728# (eg FreeBSD returns the mod time of the symlink's containing
3729# directory).
3730if (
cristyc0890a62012-07-19 00:18:20 +00003731 am_has_slept=no
3732 for am_try in 1 2; do
3733 echo "timestamp, slept: $am_has_slept" > conftest.file
3734 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3735 if test "$*" = "X"; then
3736 # -L didn't work.
3737 set X `ls -t "$srcdir/configure" conftest.file`
3738 fi
3739 if test "$*" != "X $srcdir/configure conftest.file" \
3740 && test "$*" != "X conftest.file $srcdir/configure"; then
cristy73bd4a52010-10-05 11:24:23 +00003741
cristyc0890a62012-07-19 00:18:20 +00003742 # If neither matched, then we have a broken ls. This can happen
3743 # if, for instance, CONFIG_SHELL is bash and it inherits a
3744 # broken ls alias from the environment. This has actually
3745 # happened. Such a system could not be considered "sane".
3746 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3747 alias in your environment" "$LINENO" 5
3748 fi
3749 if test "$2" = conftest.file || test $am_try -eq 2; then
3750 break
3751 fi
3752 # Just in case.
3753 sleep 1
3754 am_has_slept=yes
3755 done
cristy73bd4a52010-10-05 11:24:23 +00003756 test "$2" = conftest.file
3757 )
3758then
3759 # Ok.
3760 :
3761else
cristy98dddb52010-11-04 00:30:15 +00003762 as_fn_error $? "newly created file is older than distributed files!
cristy73bd4a52010-10-05 11:24:23 +00003763Check your system clock" "$LINENO" 5
3764fi
3765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3766$as_echo "yes" >&6; }
cristyc0890a62012-07-19 00:18:20 +00003767# If we didn't sleep, we still need to ensure time stamps of config.status and
3768# generated files are strictly newer.
3769am_sleep_pid=
3770if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3771 ( sleep 1 ) &
3772 am_sleep_pid=$!
3773fi
cristy73bd4a52010-10-05 11:24:23 +00003774
cristyc0890a62012-07-19 00:18:20 +00003775rm -f conftest.file
3776
3777
cristy58d34aa2013-01-24 15:11:54 +00003778am__api_version='1.13'
cristy73bd4a52010-10-05 11:24:23 +00003779
3780# Find a good install program. We prefer a C program (faster),
3781# so one script is as good as another. But avoid the broken or
3782# incompatible versions:
3783# SysV /etc/install, /usr/sbin/install
3784# SunOS /usr/etc/install
3785# IRIX /sbin/install
3786# AIX /bin/install
3787# AmigaOS /C/install, which installs bootblocks on floppy discs
3788# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3789# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3790# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3791# OS/2's system install, which has a completely different semantic
3792# ./install, which can be erroneously created by make from ./install.sh.
3793# Reject install programs that cannot install multiple files.
3794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3795$as_echo_n "checking for a BSD-compatible install... " >&6; }
3796if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003797if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003798 $as_echo_n "(cached) " >&6
3799else
3800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3801for as_dir in $PATH
3802do
3803 IFS=$as_save_IFS
3804 test -z "$as_dir" && as_dir=.
3805 # Account for people who put trailing slashes in PATH elements.
3806case $as_dir/ in #((
3807 ./ | .// | /[cC]/* | \
3808 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3809 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3810 /usr/ucb/* ) ;;
3811 *)
3812 # OSF1 and SCO ODT 3.0 have their own names for install.
3813 # Don't use installbsd from OSF since it installs stuff as root
3814 # by default.
3815 for ac_prog in ginstall scoinst install; do
3816 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003817 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003818 if test $ac_prog = install &&
3819 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3820 # AIX install. It has an incompatible calling convention.
3821 :
3822 elif test $ac_prog = install &&
3823 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3824 # program-specific install script used by HP pwplus--don't use.
3825 :
3826 else
3827 rm -rf conftest.one conftest.two conftest.dir
3828 echo one > conftest.one
3829 echo two > conftest.two
3830 mkdir conftest.dir
3831 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3832 test -s conftest.one && test -s conftest.two &&
3833 test -s conftest.dir/conftest.one &&
3834 test -s conftest.dir/conftest.two
3835 then
3836 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3837 break 3
3838 fi
3839 fi
3840 fi
3841 done
3842 done
3843 ;;
3844esac
3845
3846 done
3847IFS=$as_save_IFS
3848
3849rm -rf conftest.one conftest.two conftest.dir
3850
3851fi
3852 if test "${ac_cv_path_install+set}" = set; then
3853 INSTALL=$ac_cv_path_install
3854 else
3855 # As a last resort, use the slow shell script. Don't cache a
3856 # value for INSTALL within a source directory, because that will
3857 # break other packages using the cache if that directory is
3858 # removed, or if the value is a relative name.
3859 INSTALL=$ac_install_sh
3860 fi
3861fi
3862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3863$as_echo "$INSTALL" >&6; }
3864
3865# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3866# It thinks the first close brace ends the variable substitution.
3867test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3868
3869test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3870
3871test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3872
3873test "$program_prefix" != NONE &&
3874 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3875# Use a double $ so make ignores it.
3876test "$program_suffix" != NONE &&
3877 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3878# Double any \ or $.
3879# By default was `s,x,x', remove it if useless.
3880ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3881program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3882
3883# expand $ac_aux_dir to an absolute path
3884am_aux_dir=`cd $ac_aux_dir && pwd`
3885
3886if test x"${MISSING+set}" != xset; then
3887 case $am_aux_dir in
3888 *\ * | *\ *)
3889 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3890 *)
3891 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3892 esac
3893fi
3894# Use eval to expand $SHELL
cristy58d34aa2013-01-24 15:11:54 +00003895if eval "$MISSING --is-lightweight"; then
3896 am_missing_run="$MISSING "
cristy73bd4a52010-10-05 11:24:23 +00003897else
3898 am_missing_run=
cristyc0890a62012-07-19 00:18:20 +00003899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3900$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
cristy73bd4a52010-10-05 11:24:23 +00003901fi
3902
3903if test x"${install_sh}" != xset; then
3904 case $am_aux_dir in
3905 *\ * | *\ *)
3906 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3907 *)
3908 install_sh="\${SHELL} $am_aux_dir/install-sh"
3909 esac
3910fi
3911
cristyc0890a62012-07-19 00:18:20 +00003912# Installed binaries are usually stripped using 'strip' when the user
3913# run "make install-strip". However 'strip' might not be the right
cristy73bd4a52010-10-05 11:24:23 +00003914# tool to use in cross-compilation environments, therefore Automake
cristyc0890a62012-07-19 00:18:20 +00003915# will honor the 'STRIP' environment variable to overrule this program.
cristy73bd4a52010-10-05 11:24:23 +00003916if test "$cross_compiling" != no; then
3917 if test -n "$ac_tool_prefix"; then
3918 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3919set dummy ${ac_tool_prefix}strip; ac_word=$2
3920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3921$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003922if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003923 $as_echo_n "(cached) " >&6
3924else
3925 if test -n "$STRIP"; then
3926 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3927else
3928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3929for as_dir in $PATH
3930do
3931 IFS=$as_save_IFS
3932 test -z "$as_dir" && as_dir=.
3933 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003935 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3937 break 2
3938 fi
3939done
3940 done
3941IFS=$as_save_IFS
3942
3943fi
3944fi
3945STRIP=$ac_cv_prog_STRIP
3946if test -n "$STRIP"; then
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3948$as_echo "$STRIP" >&6; }
3949else
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3951$as_echo "no" >&6; }
3952fi
3953
3954
3955fi
3956if test -z "$ac_cv_prog_STRIP"; then
3957 ac_ct_STRIP=$STRIP
3958 # Extract the first word of "strip", so it can be a program name with args.
3959set dummy strip; ac_word=$2
3960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3961$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003962if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003963 $as_echo_n "(cached) " >&6
3964else
3965 if test -n "$ac_ct_STRIP"; then
3966 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3967else
3968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3969for as_dir in $PATH
3970do
3971 IFS=$as_save_IFS
3972 test -z "$as_dir" && as_dir=.
3973 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003975 ac_cv_prog_ac_ct_STRIP="strip"
3976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3977 break 2
3978 fi
3979done
3980 done
3981IFS=$as_save_IFS
3982
3983fi
3984fi
3985ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3986if test -n "$ac_ct_STRIP"; then
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3988$as_echo "$ac_ct_STRIP" >&6; }
3989else
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3991$as_echo "no" >&6; }
3992fi
3993
3994 if test "x$ac_ct_STRIP" = x; then
3995 STRIP=":"
3996 else
3997 case $cross_compiling:$ac_tool_warned in
3998yes:)
3999{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4000$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4001ac_tool_warned=yes ;;
4002esac
4003 STRIP=$ac_ct_STRIP
4004 fi
4005else
4006 STRIP="$ac_cv_prog_STRIP"
4007fi
4008
4009fi
4010INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4011
4012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4013$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4014if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00004015 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004016 $as_echo_n "(cached) " >&6
4017else
4018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4019for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4020do
4021 IFS=$as_save_IFS
4022 test -z "$as_dir" && as_dir=.
4023 for ac_prog in mkdir gmkdir; do
4024 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004025 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
cristy73bd4a52010-10-05 11:24:23 +00004026 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4027 'mkdir (GNU coreutils) '* | \
4028 'mkdir (coreutils) '* | \
4029 'mkdir (fileutils) '4.1*)
4030 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4031 break 3;;
4032 esac
4033 done
4034 done
4035 done
4036IFS=$as_save_IFS
4037
4038fi
4039
4040 test -d ./--version && rmdir ./--version
4041 if test "${ac_cv_path_mkdir+set}" = set; then
4042 MKDIR_P="$ac_cv_path_mkdir -p"
4043 else
4044 # As a last resort, use the slow shell script. Don't cache a
4045 # value for MKDIR_P within a source directory, because that will
4046 # break other packages using the cache if that directory is
4047 # removed, or if the value is a relative name.
4048 MKDIR_P="$ac_install_sh -d"
4049 fi
4050fi
4051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4052$as_echo "$MKDIR_P" >&6; }
4053
cristy73bd4a52010-10-05 11:24:23 +00004054for ac_prog in gawk mawk nawk awk
4055do
4056 # Extract the first word of "$ac_prog", so it can be a program name with args.
4057set dummy $ac_prog; ac_word=$2
4058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4059$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004060if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004061 $as_echo_n "(cached) " >&6
4062else
4063 if test -n "$AWK"; then
4064 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4065else
4066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4067for as_dir in $PATH
4068do
4069 IFS=$as_save_IFS
4070 test -z "$as_dir" && as_dir=.
4071 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00004073 ac_cv_prog_AWK="$ac_prog"
4074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4075 break 2
4076 fi
4077done
4078 done
4079IFS=$as_save_IFS
4080
4081fi
4082fi
4083AWK=$ac_cv_prog_AWK
4084if test -n "$AWK"; then
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4086$as_echo "$AWK" >&6; }
4087else
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4089$as_echo "no" >&6; }
4090fi
4091
4092
4093 test -n "$AWK" && break
4094done
4095
4096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4097$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4098set x ${MAKE-make}
4099ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00004100if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004101 $as_echo_n "(cached) " >&6
4102else
4103 cat >conftest.make <<\_ACEOF
4104SHELL = /bin/sh
4105all:
4106 @echo '@@@%%%=$(MAKE)=@@@%%%'
4107_ACEOF
cristy98dddb52010-11-04 00:30:15 +00004108# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00004109case `${MAKE-make} -f conftest.make 2>/dev/null` in
4110 *@@@%%%=?*=@@@%%%*)
4111 eval ac_cv_prog_make_${ac_make}_set=yes;;
4112 *)
4113 eval ac_cv_prog_make_${ac_make}_set=no;;
4114esac
4115rm -f conftest.make
4116fi
4117if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4119$as_echo "yes" >&6; }
4120 SET_MAKE=
4121else
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4123$as_echo "no" >&6; }
4124 SET_MAKE="MAKE=${MAKE-make}"
4125fi
4126
4127rm -rf .tst 2>/dev/null
4128mkdir .tst 2>/dev/null
4129if test -d .tst; then
4130 am__leading_dot=.
4131else
4132 am__leading_dot=_
4133fi
4134rmdir .tst 2>/dev/null
4135
cristya448bd22011-10-14 12:38:13 +00004136# Check whether --enable-silent-rules was given.
4137if test "${enable_silent_rules+set}" = set; then :
4138 enableval=$enable_silent_rules;
4139fi
4140
cristyc0890a62012-07-19 00:18:20 +00004141case $enable_silent_rules in # (((
4142 yes) AM_DEFAULT_VERBOSITY=0;;
4143 no) AM_DEFAULT_VERBOSITY=1;;
4144 *) AM_DEFAULT_VERBOSITY=1;;
cristya448bd22011-10-14 12:38:13 +00004145esac
cristyc3fb77b2012-02-06 01:49:41 +00004146am_make=${MAKE-make}
4147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4148$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4149if ${am_cv_make_support_nested_variables+:} false; then :
4150 $as_echo_n "(cached) " >&6
4151else
4152 if $as_echo 'TRUE=$(BAR$(V))
4153BAR0=false
4154BAR1=true
4155V=1
4156am__doit:
4157 @$(TRUE)
4158.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4159 am_cv_make_support_nested_variables=yes
4160else
4161 am_cv_make_support_nested_variables=no
4162fi
4163fi
4164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4165$as_echo "$am_cv_make_support_nested_variables" >&6; }
4166if test $am_cv_make_support_nested_variables = yes; then
4167 AM_V='$(V)'
4168 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4169else
4170 AM_V=$AM_DEFAULT_VERBOSITY
4171 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4172fi
cristya448bd22011-10-14 12:38:13 +00004173AM_BACKSLASH='\'
4174
cristy73bd4a52010-10-05 11:24:23 +00004175if test "`cd $srcdir && pwd`" != "`pwd`"; then
4176 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4177 # is not polluted with repeated "-I."
4178 am__isrc=' -I$(srcdir)'
4179 # test to see if srcdir already configured
4180 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00004181 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00004182 fi
4183fi
4184
4185# test whether we have cygpath
4186if test -z "$CYGPATH_W"; then
4187 if (cygpath --version) >/dev/null 2>/dev/null; then
4188 CYGPATH_W='cygpath -w'
4189 else
4190 CYGPATH_W=echo
4191 fi
4192fi
4193
4194
4195# Define the identity of the package.
cristy09b53e12011-10-14 12:47:22 +00004196 PACKAGE='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +00004197 VERSION='7.0.0-0'
cristy73bd4a52010-10-05 11:24:23 +00004198
4199
cristya448bd22011-10-14 12:38:13 +00004200cat >>confdefs.h <<_ACEOF
4201#define PACKAGE "$PACKAGE"
4202_ACEOF
4203
4204
4205cat >>confdefs.h <<_ACEOF
4206#define VERSION "$VERSION"
4207_ACEOF
4208
cristy73bd4a52010-10-05 11:24:23 +00004209# Some tools Automake needs.
4210
4211ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4212
4213
4214AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4215
4216
4217AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4218
4219
4220AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4221
4222
4223MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4224
cristyc0890a62012-07-19 00:18:20 +00004225# For better backward compatibility. To be removed once Automake 1.9.x
4226# dies out for good. For more background, see:
4227# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4228# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4229mkdir_p='$(MKDIR_P)'
4230
cristy73bd4a52010-10-05 11:24:23 +00004231# We need awk for the "check" target. The system "awk" is bad on
4232# some platforms.
cristyc3fb77b2012-02-06 01:49:41 +00004233# Always define AMTAR for backward compatibility. Yes, it's still used
4234# in the wild :-( We should find a proper way to deprecate it ...
4235AMTAR='$${TAR-tar}'
cristy73bd4a52010-10-05 11:24:23 +00004236
cristye69bdbe2013-05-03 21:40:44 +00004237
4238# We'll loop over all known methods to create a tar archive until one works.
4239_am_tools='gnutar pax cpio none'
4240
cristyc3fb77b2012-02-06 01:49:41 +00004241am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
cristy73bd4a52010-10-05 11:24:23 +00004242
4243
4244
4245
4246
cristy3ed852e2009-09-05 21:47:34 +00004247
cristye69bdbe2013-05-03 21:40:44 +00004248
cristy3ed852e2009-09-05 21:47:34 +00004249# Enable support for silent build rules
cristy73bd4a52010-10-05 11:24:23 +00004250# Check whether --enable-silent-rules was given.
4251if test "${enable_silent_rules+set}" = set; then :
4252 enableval=$enable_silent_rules;
4253fi
4254
cristyc0890a62012-07-19 00:18:20 +00004255case $enable_silent_rules in # (((
4256 yes) AM_DEFAULT_VERBOSITY=0;;
4257 no) AM_DEFAULT_VERBOSITY=1;;
4258 *) AM_DEFAULT_VERBOSITY=0;;
cristy73bd4a52010-10-05 11:24:23 +00004259esac
cristyc3fb77b2012-02-06 01:49:41 +00004260am_make=${MAKE-make}
4261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4262$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4263if ${am_cv_make_support_nested_variables+:} false; then :
4264 $as_echo_n "(cached) " >&6
4265else
4266 if $as_echo 'TRUE=$(BAR$(V))
4267BAR0=false
4268BAR1=true
4269V=1
4270am__doit:
4271 @$(TRUE)
4272.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4273 am_cv_make_support_nested_variables=yes
4274else
4275 am_cv_make_support_nested_variables=no
4276fi
4277fi
4278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4279$as_echo "$am_cv_make_support_nested_variables" >&6; }
4280if test $am_cv_make_support_nested_variables = yes; then
4281 AM_V='$(V)'
4282 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4283else
4284 AM_V=$AM_DEFAULT_VERBOSITY
4285 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4286fi
cristy73bd4a52010-10-05 11:24:23 +00004287AM_BACKSLASH='\'
4288
cristy3ed852e2009-09-05 21:47:34 +00004289
cristy5ed9c6e2013-07-14 21:20:31 +00004290# versionning of library
cristy3ed852e2009-09-05 21:47:34 +00004291MAGICK_LIB_VERSION="0x"
4292if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4293 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4294fi
4295MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4296if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4297 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4298fi
4299MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4300if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4301 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4302fi
4303MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4304
4305
4306# Definition used to define MagickLibVersionText in version.h
4307MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4308
4309
4310# Definition used to define MagickLibVersionNumber in version.h
4311MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4312
4313
cristy5ed9c6e2013-07-14 21:20:31 +00004314MAGICKPP_LIB_VERSION="0x"
4315if test ${MAGICKPP_LIBRARY_CURRENT} -lt 10 ; then
4316 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4317fi
4318MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_CURRENT}
4319if test ${MAGICKPP_LIBRARY_AGE} -lt 10 ; then
4320 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4321fi
4322MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_AGE}
4323if test ${MAGICKPP_LIBRARY_REVISION} -lt 10 ; then
4324 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4325fi
4326MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_REVISION}
4327
4328
4329# Definition used to define MagickLibVersionText in version.h
4330MAGICKPP_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4331
4332
4333# Definition used to define MagickLibVersionNumber in version.h
4334MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4335
4336
4337
4338
cristy3ed852e2009-09-05 21:47:34 +00004339# Regenerate config.status if ChangeLog or version.sh is updated.
4340CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4341
4342
4343PERLMAINCC=$CC
4344
4345MAGICK_CFLAGS=''
4346MAGICK_CPPFLAGS=$CPPFLAGS_USER
4347MAGICK_PCFLAGS=$CPPFLAGS_USER
4348MAGICK_LDFLAGS=''
4349MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004350MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004351
4352#
4353# Evaluate shell variable equivalents to Makefile directory variables
4354#
4355if test "x$prefix" = xNONE; then
4356 prefix=$ac_default_prefix
4357fi
4358# Let make expand exec_prefix.
4359if test "x$exec_prefix" = xNONE; then
4360 exec_prefix='${prefix}'
4361fi
4362
4363#
4364eval "eval PREFIX_DIR=${prefix}"
4365
4366eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4367
4368eval "eval BIN_DIR=$bindir"
4369
4370eval "eval SBIN_DIR=$sbindir"
4371
4372eval "eval LIBEXEC_DIR=$libexecdir"
4373
4374eval "eval DATA_DIR=$datadir"
4375
cristy4e65ec22012-04-08 01:33:27 +00004376eval "eval DOC_DIR=$datadir/doc"
cristyd55889c2011-03-27 00:50:24 +00004377
cristy3ed852e2009-09-05 21:47:34 +00004378eval "eval SYSCONF_DIR=$sysconfdir"
4379
4380eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4381
4382eval "eval LOCALSTATE_DIR=$localstatedir"
4383
4384eval "eval LIB_DIR=$libdir"
4385
4386eval "eval INCLUDE_DIR=$includedir"
4387
4388eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4389
4390eval "eval INFO_DIR=$infodir"
4391
4392eval "eval MAN_DIR=$mandir"
4393
4394
4395# Get full paths to source and build directories
4396srcdirfull="`cd $srcdir && pwd`"
4397builddir="`pwd`"
4398
4399#
4400# Compute variables useful for running uninstalled software.
4401#
4402MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4403MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4404MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4405MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4406DIRSEP=':'
4407case "${build_os}" in
4408 mingw* )
4409 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4410 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4411 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4412 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4413 DIRSEP=';'
4414 ;;
4415esac
4416case "${host_os}" in
4417 mingw* )
4418 DIRSEP=';'
4419 ;;
4420esac
4421
4422
4423
4424
4425
4426
cristya0b81c32010-01-22 02:54:33 +00004427
4428#
4429# Enable OS features.
4430#
cristy73bd4a52010-10-05 11:24:23 +00004431DEPDIR="${am__leading_dot}deps"
4432
4433ac_config_commands="$ac_config_commands depfiles"
4434
4435
4436am_make=${MAKE-make}
4437cat > confinc << 'END'
4438am__doit:
4439 @echo this is the am__doit target
4440.PHONY: am__doit
4441END
4442# If we don't find an include directive, just comment out the code.
4443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4444$as_echo_n "checking for style of include used by $am_make... " >&6; }
4445am__include="#"
4446am__quote=
4447_am_result=none
4448# First try GNU make style include.
4449echo "include confinc" > confmf
cristyc0890a62012-07-19 00:18:20 +00004450# Ignore all kinds of additional output from 'make'.
cristy73bd4a52010-10-05 11:24:23 +00004451case `$am_make -s -f confmf 2> /dev/null` in #(
4452*the\ am__doit\ target*)
4453 am__include=include
4454 am__quote=
4455 _am_result=GNU
4456 ;;
4457esac
4458# Now try BSD make style include.
4459if test "$am__include" = "#"; then
4460 echo '.include "confinc"' > confmf
4461 case `$am_make -s -f confmf 2> /dev/null` in #(
4462 *the\ am__doit\ target*)
4463 am__include=.include
4464 am__quote="\""
4465 _am_result=BSD
4466 ;;
4467 esac
4468fi
4469
4470
4471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4472$as_echo "$_am_result" >&6; }
4473rm -f confinc confmf
4474
4475# Check whether --enable-dependency-tracking was given.
4476if test "${enable_dependency_tracking+set}" = set; then :
4477 enableval=$enable_dependency_tracking;
4478fi
4479
4480if test "x$enable_dependency_tracking" != xno; then
4481 am_depcomp="$ac_aux_dir/depcomp"
4482 AMDEPBACKSLASH='\'
cristy7247bba2012-02-05 16:37:27 +00004483 am__nodep='_no'
cristy73bd4a52010-10-05 11:24:23 +00004484fi
4485 if test "x$enable_dependency_tracking" != xno; then
4486 AMDEP_TRUE=
4487 AMDEP_FALSE='#'
4488else
4489 AMDEP_TRUE='#'
4490 AMDEP_FALSE=
4491fi
4492
4493
cristy3ed852e2009-09-05 21:47:34 +00004494ac_ext=c
4495ac_cpp='$CPP $CPPFLAGS'
4496ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4497ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4498ac_compiler_gnu=$ac_cv_c_compiler_gnu
4499if test -n "$ac_tool_prefix"; then
4500 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4501set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004503$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004504if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004505 $as_echo_n "(cached) " >&6
4506else
4507 if test -n "$CC"; then
4508 ac_cv_prog_CC="$CC" # Let the user override the test.
4509else
4510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4511for as_dir in $PATH
4512do
4513 IFS=$as_save_IFS
4514 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004515 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004517 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004519 break 2
4520 fi
4521done
cristy8b350f62009-11-15 23:12:43 +00004522 done
cristy3ed852e2009-09-05 21:47:34 +00004523IFS=$as_save_IFS
4524
4525fi
4526fi
4527CC=$ac_cv_prog_CC
4528if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004530$as_echo "$CC" >&6; }
4531else
cristy8b350f62009-11-15 23:12:43 +00004532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004533$as_echo "no" >&6; }
4534fi
4535
4536
4537fi
4538if test -z "$ac_cv_prog_CC"; then
4539 ac_ct_CC=$CC
4540 # Extract the first word of "gcc", so it can be a program name with args.
4541set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004543$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004544if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004545 $as_echo_n "(cached) " >&6
4546else
4547 if test -n "$ac_ct_CC"; then
4548 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4549else
4550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4551for as_dir in $PATH
4552do
4553 IFS=$as_save_IFS
4554 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004555 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004557 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004559 break 2
4560 fi
4561done
cristy8b350f62009-11-15 23:12:43 +00004562 done
cristy3ed852e2009-09-05 21:47:34 +00004563IFS=$as_save_IFS
4564
4565fi
4566fi
4567ac_ct_CC=$ac_cv_prog_ac_ct_CC
4568if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004570$as_echo "$ac_ct_CC" >&6; }
4571else
cristy8b350f62009-11-15 23:12:43 +00004572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004573$as_echo "no" >&6; }
4574fi
4575
4576 if test "x$ac_ct_CC" = x; then
4577 CC=""
4578 else
4579 case $cross_compiling:$ac_tool_warned in
4580yes:)
cristy8b350f62009-11-15 23:12:43 +00004581{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004582$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4583ac_tool_warned=yes ;;
4584esac
4585 CC=$ac_ct_CC
4586 fi
4587else
4588 CC="$ac_cv_prog_CC"
4589fi
4590
4591if test -z "$CC"; then
4592 if test -n "$ac_tool_prefix"; then
4593 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4594set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004596$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004597if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004598 $as_echo_n "(cached) " >&6
4599else
4600 if test -n "$CC"; then
4601 ac_cv_prog_CC="$CC" # Let the user override the test.
4602else
4603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4604for as_dir in $PATH
4605do
4606 IFS=$as_save_IFS
4607 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004608 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004610 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004612 break 2
4613 fi
4614done
cristy8b350f62009-11-15 23:12:43 +00004615 done
cristy3ed852e2009-09-05 21:47:34 +00004616IFS=$as_save_IFS
4617
4618fi
4619fi
4620CC=$ac_cv_prog_CC
4621if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004623$as_echo "$CC" >&6; }
4624else
cristy8b350f62009-11-15 23:12:43 +00004625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004626$as_echo "no" >&6; }
4627fi
4628
4629
4630 fi
4631fi
4632if test -z "$CC"; then
4633 # Extract the first word of "cc", so it can be a program name with args.
4634set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004636$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004637if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004638 $as_echo_n "(cached) " >&6
4639else
4640 if test -n "$CC"; then
4641 ac_cv_prog_CC="$CC" # Let the user override the test.
4642else
4643 ac_prog_rejected=no
4644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4645for as_dir in $PATH
4646do
4647 IFS=$as_save_IFS
4648 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004649 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004651 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4652 ac_prog_rejected=yes
4653 continue
4654 fi
4655 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004657 break 2
4658 fi
4659done
cristy8b350f62009-11-15 23:12:43 +00004660 done
cristy3ed852e2009-09-05 21:47:34 +00004661IFS=$as_save_IFS
4662
4663if test $ac_prog_rejected = yes; then
4664 # We found a bogon in the path, so make sure we never use it.
4665 set dummy $ac_cv_prog_CC
4666 shift
4667 if test $# != 0; then
4668 # We chose a different compiler from the bogus one.
4669 # However, it has the same basename, so the bogon will be chosen
4670 # first if we set CC to just the basename; use the full file name.
4671 shift
4672 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4673 fi
4674fi
4675fi
4676fi
4677CC=$ac_cv_prog_CC
4678if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004680$as_echo "$CC" >&6; }
4681else
cristy8b350f62009-11-15 23:12:43 +00004682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004683$as_echo "no" >&6; }
4684fi
4685
4686
4687fi
4688if test -z "$CC"; then
4689 if test -n "$ac_tool_prefix"; then
4690 for ac_prog in cl.exe
4691 do
4692 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4693set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004695$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004696if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004697 $as_echo_n "(cached) " >&6
4698else
4699 if test -n "$CC"; then
4700 ac_cv_prog_CC="$CC" # Let the user override the test.
4701else
4702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4703for as_dir in $PATH
4704do
4705 IFS=$as_save_IFS
4706 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004707 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004709 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004711 break 2
4712 fi
4713done
cristy8b350f62009-11-15 23:12:43 +00004714 done
cristy3ed852e2009-09-05 21:47:34 +00004715IFS=$as_save_IFS
4716
4717fi
4718fi
4719CC=$ac_cv_prog_CC
4720if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004722$as_echo "$CC" >&6; }
4723else
cristy8b350f62009-11-15 23:12:43 +00004724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004725$as_echo "no" >&6; }
4726fi
4727
4728
4729 test -n "$CC" && break
4730 done
4731fi
4732if test -z "$CC"; then
4733 ac_ct_CC=$CC
4734 for ac_prog in cl.exe
4735do
4736 # Extract the first word of "$ac_prog", so it can be a program name with args.
4737set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004739$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004740if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004741 $as_echo_n "(cached) " >&6
4742else
4743 if test -n "$ac_ct_CC"; then
4744 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4745else
4746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747for as_dir in $PATH
4748do
4749 IFS=$as_save_IFS
4750 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004751 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004753 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004755 break 2
4756 fi
4757done
cristy8b350f62009-11-15 23:12:43 +00004758 done
cristy3ed852e2009-09-05 21:47:34 +00004759IFS=$as_save_IFS
4760
4761fi
4762fi
4763ac_ct_CC=$ac_cv_prog_ac_ct_CC
4764if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004766$as_echo "$ac_ct_CC" >&6; }
4767else
cristy8b350f62009-11-15 23:12:43 +00004768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004769$as_echo "no" >&6; }
4770fi
4771
4772
4773 test -n "$ac_ct_CC" && break
4774done
4775
4776 if test "x$ac_ct_CC" = x; then
4777 CC=""
4778 else
4779 case $cross_compiling:$ac_tool_warned in
4780yes:)
cristy8b350f62009-11-15 23:12:43 +00004781{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004782$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4783ac_tool_warned=yes ;;
4784esac
4785 CC=$ac_ct_CC
4786 fi
4787fi
4788
4789fi
4790
4791
cristy8b350f62009-11-15 23:12:43 +00004792test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004793$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004794as_fn_error $? "no acceptable C compiler found in \$PATH
4795See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004796
4797# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004798$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004799set X $ac_compile
4800ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004801for ac_option in --version -v -V -qversion; do
4802 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004803case "(($ac_try" in
4804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4805 *) ac_try_echo=$ac_try;;
4806esac
cristy8b350f62009-11-15 23:12:43 +00004807eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4808$as_echo "$ac_try_echo"; } >&5
4809 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004810 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004811 if test -s conftest.err; then
4812 sed '10a\
4813... rest of stderr output deleted ...
4814 10q' conftest.err >conftest.er1
4815 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004816 fi
cristycd4c5312009-11-22 01:19:08 +00004817 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4819 test $ac_status = 0; }
4820done
cristy3ed852e2009-09-05 21:47:34 +00004821
cristy8b350f62009-11-15 23:12:43 +00004822cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004823/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004824
cristy3ed852e2009-09-05 21:47:34 +00004825int
4826main ()
4827{
4828
4829 ;
4830 return 0;
4831}
4832_ACEOF
4833ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004834ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004835# Try to create an executable without -o first, disregard a.out.
4836# It will help us diagnose broken compilers, and finding out an intuition
4837# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4839$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004840ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4841
4842# The possible output files:
4843ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4844
4845ac_rmfiles=
4846for ac_file in $ac_files
4847do
4848 case $ac_file in
4849 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4850 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4851 esac
4852done
4853rm -f $ac_rmfiles
4854
cristy8b350f62009-11-15 23:12:43 +00004855if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004856case "(($ac_try" in
4857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4858 *) ac_try_echo=$ac_try;;
4859esac
cristy8b350f62009-11-15 23:12:43 +00004860eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4861$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004862 (eval "$ac_link_default") 2>&5
4863 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4865 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004866 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4867# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4868# in a Makefile. We should not override ac_cv_exeext if it was cached,
4869# so that the user can short-circuit this test for compilers unknown to
4870# Autoconf.
4871for ac_file in $ac_files ''
4872do
4873 test -f "$ac_file" || continue
4874 case $ac_file in
4875 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4876 ;;
4877 [ab].out )
4878 # We found the default executable, but exeext='' is most
4879 # certainly right.
4880 break;;
4881 *.* )
cristy8b350f62009-11-15 23:12:43 +00004882 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004883 then :; else
4884 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4885 fi
4886 # We set ac_cv_exeext here because the later test for it is not
4887 # safe: cross compilers may not add the suffix if given an `-o'
4888 # argument, so we may need to know it at that point already.
4889 # Even if this section looks crufty: it has the advantage of
4890 # actually working.
4891 break;;
4892 * )
4893 break;;
4894 esac
4895done
4896test "$ac_cv_exeext" = no && ac_cv_exeext=
4897
4898else
4899 ac_file=''
4900fi
cristy8b350f62009-11-15 23:12:43 +00004901if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4903$as_echo "no" >&6; }
4904$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004905sed 's/^/| /' conftest.$ac_ext >&5
4906
cristy8b350f62009-11-15 23:12:43 +00004907{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004908$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004909as_fn_error 77 "C compiler cannot create executables
4910See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004911else
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4913$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004914fi
cristycd4c5312009-11-22 01:19:08 +00004915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4916$as_echo_n "checking for C compiler default output file name... " >&6; }
4917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4918$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004919ac_exeext=$ac_cv_exeext
4920
cristycd4c5312009-11-22 01:19:08 +00004921rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004922ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004924$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004925if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004926case "(($ac_try" in
4927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4928 *) ac_try_echo=$ac_try;;
4929esac
cristy8b350f62009-11-15 23:12:43 +00004930eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4931$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004932 (eval "$ac_link") 2>&5
4933 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4935 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004936 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4937# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4938# work properly (i.e., refer to `conftest.exe'), while it won't with
4939# `rm'.
4940for ac_file in conftest.exe conftest conftest.*; do
4941 test -f "$ac_file" || continue
4942 case $ac_file in
4943 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4944 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4945 break;;
4946 * ) break;;
4947 esac
4948done
4949else
cristy8b350f62009-11-15 23:12:43 +00004950 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004951$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004952as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4953See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004954fi
cristycd4c5312009-11-22 01:19:08 +00004955rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004957$as_echo "$ac_cv_exeext" >&6; }
4958
4959rm -f conftest.$ac_ext
4960EXEEXT=$ac_cv_exeext
4961ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004962cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4963/* end confdefs.h. */
4964#include <stdio.h>
4965int
4966main ()
4967{
4968FILE *f = fopen ("conftest.out", "w");
4969 return ferror (f) || fclose (f) != 0;
4970
4971 ;
4972 return 0;
4973}
4974_ACEOF
4975ac_clean_files="$ac_clean_files conftest.out"
4976# Check that the compiler produces executables we can run. If not, either
4977# the compiler is broken, or we cross compile.
4978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4979$as_echo_n "checking whether we are cross compiling... " >&6; }
4980if test "$cross_compiling" != yes; then
4981 { { ac_try="$ac_link"
4982case "(($ac_try" in
4983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4984 *) ac_try_echo=$ac_try;;
4985esac
4986eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4987$as_echo "$ac_try_echo"; } >&5
4988 (eval "$ac_link") 2>&5
4989 ac_status=$?
4990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4991 test $ac_status = 0; }
4992 if { ac_try='./conftest$ac_cv_exeext'
4993 { { case "(($ac_try" in
4994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4995 *) ac_try_echo=$ac_try;;
4996esac
4997eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4998$as_echo "$ac_try_echo"; } >&5
4999 (eval "$ac_try") 2>&5
5000 ac_status=$?
5001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5002 test $ac_status = 0; }; }; then
5003 cross_compiling=no
5004 else
5005 if test "$cross_compiling" = maybe; then
5006 cross_compiling=yes
5007 else
5008 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5009$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005010as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00005011If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00005012See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00005013 fi
5014 fi
5015fi
5016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5017$as_echo "$cross_compiling" >&6; }
5018
5019rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5020ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00005021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00005022$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005023if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005024 $as_echo_n "(cached) " >&6
5025else
cristy8b350f62009-11-15 23:12:43 +00005026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005027/* end confdefs.h. */
5028
5029int
5030main ()
5031{
5032
5033 ;
5034 return 0;
5035}
5036_ACEOF
5037rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00005038if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00005039case "(($ac_try" in
5040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5041 *) ac_try_echo=$ac_try;;
5042esac
cristy8b350f62009-11-15 23:12:43 +00005043eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5044$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00005045 (eval "$ac_compile") 2>&5
5046 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00005047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5048 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00005049 for ac_file in conftest.o conftest.obj conftest.*; do
5050 test -f "$ac_file" || continue;
5051 case $ac_file in
5052 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5053 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5054 break;;
5055 esac
5056done
5057else
5058 $as_echo "$as_me: failed program was:" >&5
5059sed 's/^/| /' conftest.$ac_ext >&5
5060
cristy8b350f62009-11-15 23:12:43 +00005061{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005062$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005063as_fn_error $? "cannot compute suffix of object files: cannot compile
5064See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00005065fi
cristy3ed852e2009-09-05 21:47:34 +00005066rm -f conftest.$ac_cv_objext conftest.$ac_ext
5067fi
cristy8b350f62009-11-15 23:12:43 +00005068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005069$as_echo "$ac_cv_objext" >&6; }
5070OBJEXT=$ac_cv_objext
5071ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00005072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00005073$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005074if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005075 $as_echo_n "(cached) " >&6
5076else
cristy8b350f62009-11-15 23:12:43 +00005077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005078/* end confdefs.h. */
5079
5080int
5081main ()
5082{
5083#ifndef __GNUC__
5084 choke me
5085#endif
5086
5087 ;
5088 return 0;
5089}
5090_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005091if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005092 ac_compiler_gnu=yes
5093else
cristy8b350f62009-11-15 23:12:43 +00005094 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00005095fi
cristy3ed852e2009-09-05 21:47:34 +00005096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5097ac_cv_c_compiler_gnu=$ac_compiler_gnu
5098
5099fi
cristy8b350f62009-11-15 23:12:43 +00005100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00005101$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5102if test $ac_compiler_gnu = yes; then
5103 GCC=yes
5104else
5105 GCC=
5106fi
5107ac_test_CFLAGS=${CFLAGS+set}
5108ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00005109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005110$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005111if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005112 $as_echo_n "(cached) " >&6
5113else
5114 ac_save_c_werror_flag=$ac_c_werror_flag
5115 ac_c_werror_flag=yes
5116 ac_cv_prog_cc_g=no
5117 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005119/* end confdefs.h. */
5120
5121int
5122main ()
5123{
5124
5125 ;
5126 return 0;
5127}
5128_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005129if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005130 ac_cv_prog_cc_g=yes
5131else
cristy8b350f62009-11-15 23:12:43 +00005132 CFLAGS=""
5133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005134/* end confdefs.h. */
5135
5136int
5137main ()
5138{
5139
5140 ;
5141 return 0;
5142}
5143_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005144if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005145
cristy8b350f62009-11-15 23:12:43 +00005146else
5147 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00005148 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005150/* end confdefs.h. */
5151
5152int
5153main ()
5154{
5155
5156 ;
5157 return 0;
5158}
5159_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005160if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005161 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00005162fi
cristy3ed852e2009-09-05 21:47:34 +00005163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5164fi
cristy3ed852e2009-09-05 21:47:34 +00005165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5166fi
cristy3ed852e2009-09-05 21:47:34 +00005167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5168 ac_c_werror_flag=$ac_save_c_werror_flag
5169fi
cristy8b350f62009-11-15 23:12:43 +00005170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005171$as_echo "$ac_cv_prog_cc_g" >&6; }
5172if test "$ac_test_CFLAGS" = set; then
5173 CFLAGS=$ac_save_CFLAGS
5174elif test $ac_cv_prog_cc_g = yes; then
5175 if test "$GCC" = yes; then
5176 CFLAGS="-g -O2"
5177 else
5178 CFLAGS="-g"
5179 fi
5180else
5181 if test "$GCC" = yes; then
5182 CFLAGS="-O2"
5183 else
5184 CFLAGS=
5185 fi
5186fi
cristy8b350f62009-11-15 23:12:43 +00005187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005188$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005189if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005190 $as_echo_n "(cached) " >&6
5191else
5192 ac_cv_prog_cc_c89=no
5193ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005194cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005195/* end confdefs.h. */
5196#include <stdarg.h>
5197#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00005198struct stat;
cristy3ed852e2009-09-05 21:47:34 +00005199/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5200struct buf { int x; };
5201FILE * (*rcsopen) (struct buf *, struct stat *, int);
5202static char *e (p, i)
5203 char **p;
5204 int i;
5205{
5206 return p[i];
5207}
5208static char *f (char * (*g) (char **, int), char **p, ...)
5209{
5210 char *s;
5211 va_list v;
5212 va_start (v,p);
5213 s = g (p, va_arg (v,int));
5214 va_end (v);
5215 return s;
5216}
5217
5218/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5219 function prototypes and stuff, but not '\xHH' hex character constants.
5220 These don't provoke an error unfortunately, instead are silently treated
5221 as 'x'. The following induces an error, until -std is added to get
5222 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5223 array size at least. It's necessary to write '\x00'==0 to get something
5224 that's true only with -std. */
5225int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5226
5227/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5228 inside strings and character constants. */
5229#define FOO(x) 'x'
5230int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5231
5232int test (int i, double x);
5233struct s1 {int (*f) (int a);};
5234struct s2 {int (*f) (double a);};
5235int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5236int argc;
5237char **argv;
5238int
5239main ()
5240{
5241return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5242 ;
5243 return 0;
5244}
5245_ACEOF
5246for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5247 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5248do
5249 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005250 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005251 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005252fi
cristy3ed852e2009-09-05 21:47:34 +00005253rm -f core conftest.err conftest.$ac_objext
5254 test "x$ac_cv_prog_cc_c89" != "xno" && break
5255done
5256rm -f conftest.$ac_ext
5257CC=$ac_save_CC
5258
5259fi
5260# AC_CACHE_VAL
5261case "x$ac_cv_prog_cc_c89" in
5262 x)
cristy8b350f62009-11-15 23:12:43 +00005263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005264$as_echo "none needed" >&6; } ;;
5265 xno)
cristy8b350f62009-11-15 23:12:43 +00005266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005267$as_echo "unsupported" >&6; } ;;
5268 *)
5269 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005271$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5272esac
cristy8b350f62009-11-15 23:12:43 +00005273if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005274
cristy8b350f62009-11-15 23:12:43 +00005275fi
cristy3ed852e2009-09-05 21:47:34 +00005276
5277ac_ext=c
5278ac_cpp='$CPP $CPPFLAGS'
5279ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5280ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5281ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005282
cristy73bd4a52010-10-05 11:24:23 +00005283depcc="$CC" am_compiler_list=
5284
5285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5286$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005287if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00005288 $as_echo_n "(cached) " >&6
5289else
5290 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5291 # We make a subdir and do the tests there. Otherwise we can end up
5292 # making bogus files that we don't know about and never remove. For
5293 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00005294 # making a dummy file named 'D' -- because '-MD' means "put the output
5295 # in D".
cristy7247bba2012-02-05 16:37:27 +00005296 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00005297 mkdir conftest.dir
5298 # Copy depcomp to subdir because otherwise we won't find it if we're
5299 # using a relative directory.
5300 cp "$am_depcomp" conftest.dir
5301 cd conftest.dir
5302 # We will build objects and dependencies in a subdirectory because
5303 # it helps to detect inapplicable dependency modes. For instance
5304 # both Tru64's cc and ICC support -MD to output dependencies as a
5305 # side effect of compilation, but ICC will put the dependencies in
5306 # the current directory while Tru64 will put them in the object
5307 # directory.
5308 mkdir sub
5309
5310 am_cv_CC_dependencies_compiler_type=none
5311 if test "$am_compiler_list" = ""; then
5312 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5313 fi
5314 am__universal=false
5315 case " $depcc " in #(
5316 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5317 esac
5318
5319 for depmode in $am_compiler_list; do
5320 # Setup a source with many dependencies, because some compilers
5321 # like to wrap large dependency lists on column 80 (with \), and
5322 # we should not choose a depcomp mode which is confused by this.
5323 #
5324 # We need to recreate these files for each test, as the compiler may
5325 # overwrite some of them when testing with obscure command lines.
5326 # This happens at least with the AIX C compiler.
5327 : > sub/conftest.c
5328 for i in 1 2 3 4 5 6; do
5329 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00005330 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5331 # Solaris 10 /bin/sh.
5332 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00005333 done
5334 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5335
cristyc0890a62012-07-19 00:18:20 +00005336 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00005337 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00005338 # handle '-M -o', and we need to detect this. Also, some Intel
5339 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00005340 am__obj=sub/conftest.${OBJEXT-o}
5341 am__minus_obj="-o $am__obj"
5342 case $depmode in
5343 gcc)
5344 # This depmode causes a compiler race in universal mode.
5345 test "$am__universal" = false || continue
5346 ;;
5347 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00005348 # After this tag, mechanisms are not by side-effect, so they'll
5349 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00005350 if test "x$enable_dependency_tracking" = xyes; then
5351 continue
5352 else
5353 break
5354 fi
5355 ;;
cristy7247bba2012-02-05 16:37:27 +00005356 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00005357 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00005358 # not run yet. These depmodes are late enough in the game, and
5359 # so weak that their functioning should not be impacted.
5360 am__obj=conftest.${OBJEXT-o}
5361 am__minus_obj=
5362 ;;
5363 none) break ;;
5364 esac
5365 if depmode=$depmode \
5366 source=sub/conftest.c object=$am__obj \
5367 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5368 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5369 >/dev/null 2>conftest.err &&
5370 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5371 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5372 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5373 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5374 # icc doesn't choke on unknown options, it will just issue warnings
5375 # or remarks (even with -Werror). So we grep stderr for any message
5376 # that says an option was ignored or not supported.
5377 # When given -MP, icc 7.0 and 7.1 complain thusly:
5378 # icc: Command line warning: ignoring option '-M'; no argument required
5379 # The diagnosis changed in icc 8.0:
5380 # icc: Command line remark: option '-MP' not supported
5381 if (grep 'ignoring option' conftest.err ||
5382 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5383 am_cv_CC_dependencies_compiler_type=$depmode
5384 break
5385 fi
5386 fi
5387 done
5388
5389 cd ..
5390 rm -rf conftest.dir
5391else
5392 am_cv_CC_dependencies_compiler_type=none
5393fi
5394
5395fi
5396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5397$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5398CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5399
5400 if
5401 test "x$enable_dependency_tracking" != xno \
5402 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5403 am__fastdepCC_TRUE=
5404 am__fastdepCC_FALSE='#'
5405else
5406 am__fastdepCC_TRUE='#'
5407 am__fastdepCC_FALSE=
5408fi
5409
5410
cristy3ed852e2009-09-05 21:47:34 +00005411
cristya0b81c32010-01-22 02:54:33 +00005412ac_ext=c
5413ac_cpp='$CPP $CPPFLAGS'
5414ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5415ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5416ac_compiler_gnu=$ac_cv_c_compiler_gnu
5417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5418$as_echo_n "checking how to run the C preprocessor... " >&6; }
5419# On Suns, sometimes $CPP names a directory.
5420if test -n "$CPP" && test -d "$CPP"; then
5421 CPP=
5422fi
5423if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005424 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005425 $as_echo_n "(cached) " >&6
5426else
5427 # Double quotes because CPP needs to be expanded
5428 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5429 do
5430 ac_preproc_ok=false
5431for ac_c_preproc_warn_flag in '' yes
5432do
5433 # Use a header file that comes with gcc, so configuring glibc
5434 # with a fresh cross-compiler works.
5435 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5436 # <limits.h> exists even on freestanding compilers.
5437 # On the NeXT, cc -E runs the code through the compiler's parser,
5438 # not just through cpp. "Syntax error" is here to catch this case.
5439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5440/* end confdefs.h. */
5441#ifdef __STDC__
5442# include <limits.h>
5443#else
5444# include <assert.h>
5445#endif
5446 Syntax error
5447_ACEOF
5448if ac_fn_c_try_cpp "$LINENO"; then :
5449
5450else
5451 # Broken: fails on valid input.
5452continue
5453fi
cristyda16f162011-02-19 23:52:17 +00005454rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005455
5456 # OK, works on sane cases. Now check whether nonexistent headers
5457 # can be detected and how.
5458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5459/* end confdefs.h. */
5460#include <ac_nonexistent.h>
5461_ACEOF
5462if ac_fn_c_try_cpp "$LINENO"; then :
5463 # Broken: success on invalid input.
5464continue
5465else
5466 # Passes both tests.
5467ac_preproc_ok=:
5468break
5469fi
cristyda16f162011-02-19 23:52:17 +00005470rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005471
5472done
5473# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005474rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005475if $ac_preproc_ok; then :
5476 break
5477fi
5478
5479 done
5480 ac_cv_prog_CPP=$CPP
5481
5482fi
5483 CPP=$ac_cv_prog_CPP
5484else
5485 ac_cv_prog_CPP=$CPP
5486fi
5487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5488$as_echo "$CPP" >&6; }
5489ac_preproc_ok=false
5490for ac_c_preproc_warn_flag in '' yes
5491do
5492 # Use a header file that comes with gcc, so configuring glibc
5493 # with a fresh cross-compiler works.
5494 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5495 # <limits.h> exists even on freestanding compilers.
5496 # On the NeXT, cc -E runs the code through the compiler's parser,
5497 # not just through cpp. "Syntax error" is here to catch this case.
5498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5499/* end confdefs.h. */
5500#ifdef __STDC__
5501# include <limits.h>
5502#else
5503# include <assert.h>
5504#endif
5505 Syntax error
5506_ACEOF
5507if ac_fn_c_try_cpp "$LINENO"; then :
5508
5509else
5510 # Broken: fails on valid input.
5511continue
5512fi
cristyda16f162011-02-19 23:52:17 +00005513rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005514
5515 # OK, works on sane cases. Now check whether nonexistent headers
5516 # can be detected and how.
5517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5518/* end confdefs.h. */
5519#include <ac_nonexistent.h>
5520_ACEOF
5521if ac_fn_c_try_cpp "$LINENO"; then :
5522 # Broken: success on invalid input.
5523continue
5524else
5525 # Passes both tests.
5526ac_preproc_ok=:
5527break
5528fi
cristyda16f162011-02-19 23:52:17 +00005529rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005530
5531done
5532# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005533rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005534if $ac_preproc_ok; then :
5535
5536else
5537 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5538$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005539as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5540See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005541fi
5542
5543ac_ext=c
5544ac_cpp='$CPP $CPPFLAGS'
5545ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5546ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5547ac_compiler_gnu=$ac_cv_c_compiler_gnu
5548
5549
5550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5551$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005552if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005553 $as_echo_n "(cached) " >&6
5554else
5555 if test -z "$GREP"; then
5556 ac_path_GREP_found=false
5557 # Loop through the user's path and test for each of PROGNAME-LIST
5558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5559for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5560do
5561 IFS=$as_save_IFS
5562 test -z "$as_dir" && as_dir=.
5563 for ac_prog in grep ggrep; do
5564 for ac_exec_ext in '' $ac_executable_extensions; do
5565 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005566 as_fn_executable_p "$ac_path_GREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005567# Check for GNU ac_path_GREP and select it if it is found.
5568 # Check for GNU $ac_path_GREP
5569case `"$ac_path_GREP" --version 2>&1` in
5570*GNU*)
5571 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5572*)
5573 ac_count=0
5574 $as_echo_n 0123456789 >"conftest.in"
5575 while :
5576 do
5577 cat "conftest.in" "conftest.in" >"conftest.tmp"
5578 mv "conftest.tmp" "conftest.in"
5579 cp "conftest.in" "conftest.nl"
5580 $as_echo 'GREP' >> "conftest.nl"
5581 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5582 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5583 as_fn_arith $ac_count + 1 && ac_count=$as_val
5584 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5585 # Best one so far, save it but keep looking for a better one
5586 ac_cv_path_GREP="$ac_path_GREP"
5587 ac_path_GREP_max=$ac_count
5588 fi
5589 # 10*(2^10) chars as input seems more than enough
5590 test $ac_count -gt 10 && break
5591 done
5592 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5593esac
5594
5595 $ac_path_GREP_found && break 3
5596 done
5597 done
5598 done
5599IFS=$as_save_IFS
5600 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005601 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005602 fi
5603else
5604 ac_cv_path_GREP=$GREP
5605fi
5606
5607fi
5608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5609$as_echo "$ac_cv_path_GREP" >&6; }
5610 GREP="$ac_cv_path_GREP"
5611
5612
5613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5614$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005615if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005616 $as_echo_n "(cached) " >&6
5617else
5618 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5619 then ac_cv_path_EGREP="$GREP -E"
5620 else
5621 if test -z "$EGREP"; then
5622 ac_path_EGREP_found=false
5623 # Loop through the user's path and test for each of PROGNAME-LIST
5624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5625for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5626do
5627 IFS=$as_save_IFS
5628 test -z "$as_dir" && as_dir=.
5629 for ac_prog in egrep; do
5630 for ac_exec_ext in '' $ac_executable_extensions; do
5631 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005632 as_fn_executable_p "$ac_path_EGREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005633# Check for GNU ac_path_EGREP and select it if it is found.
5634 # Check for GNU $ac_path_EGREP
5635case `"$ac_path_EGREP" --version 2>&1` in
5636*GNU*)
5637 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5638*)
5639 ac_count=0
5640 $as_echo_n 0123456789 >"conftest.in"
5641 while :
5642 do
5643 cat "conftest.in" "conftest.in" >"conftest.tmp"
5644 mv "conftest.tmp" "conftest.in"
5645 cp "conftest.in" "conftest.nl"
5646 $as_echo 'EGREP' >> "conftest.nl"
5647 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5648 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5649 as_fn_arith $ac_count + 1 && ac_count=$as_val
5650 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5651 # Best one so far, save it but keep looking for a better one
5652 ac_cv_path_EGREP="$ac_path_EGREP"
5653 ac_path_EGREP_max=$ac_count
5654 fi
5655 # 10*(2^10) chars as input seems more than enough
5656 test $ac_count -gt 10 && break
5657 done
5658 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5659esac
5660
5661 $ac_path_EGREP_found && break 3
5662 done
5663 done
5664 done
5665IFS=$as_save_IFS
5666 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005667 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005668 fi
5669else
5670 ac_cv_path_EGREP=$EGREP
5671fi
5672
5673 fi
5674fi
5675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5676$as_echo "$ac_cv_path_EGREP" >&6; }
5677 EGREP="$ac_cv_path_EGREP"
5678
5679
5680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5681$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005682if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005683 $as_echo_n "(cached) " >&6
5684else
5685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5686/* end confdefs.h. */
5687#include <stdlib.h>
5688#include <stdarg.h>
5689#include <string.h>
5690#include <float.h>
5691
5692int
5693main ()
5694{
5695
5696 ;
5697 return 0;
5698}
5699_ACEOF
5700if ac_fn_c_try_compile "$LINENO"; then :
5701 ac_cv_header_stdc=yes
5702else
5703 ac_cv_header_stdc=no
5704fi
5705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5706
5707if test $ac_cv_header_stdc = yes; then
5708 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5710/* end confdefs.h. */
5711#include <string.h>
5712
5713_ACEOF
5714if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5715 $EGREP "memchr" >/dev/null 2>&1; then :
5716
5717else
5718 ac_cv_header_stdc=no
5719fi
5720rm -f conftest*
5721
5722fi
5723
5724if test $ac_cv_header_stdc = yes; then
5725 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5727/* end confdefs.h. */
5728#include <stdlib.h>
5729
5730_ACEOF
5731if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5732 $EGREP "free" >/dev/null 2>&1; then :
5733
5734else
5735 ac_cv_header_stdc=no
5736fi
5737rm -f conftest*
5738
5739fi
5740
5741if test $ac_cv_header_stdc = yes; then
5742 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5743 if test "$cross_compiling" = yes; then :
5744 :
5745else
5746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5747/* end confdefs.h. */
5748#include <ctype.h>
5749#include <stdlib.h>
5750#if ((' ' & 0x0FF) == 0x020)
5751# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5752# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5753#else
5754# define ISLOWER(c) \
5755 (('a' <= (c) && (c) <= 'i') \
5756 || ('j' <= (c) && (c) <= 'r') \
5757 || ('s' <= (c) && (c) <= 'z'))
5758# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5759#endif
5760
5761#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5762int
5763main ()
5764{
5765 int i;
5766 for (i = 0; i < 256; i++)
5767 if (XOR (islower (i), ISLOWER (i))
5768 || toupper (i) != TOUPPER (i))
5769 return 2;
5770 return 0;
5771}
5772_ACEOF
5773if ac_fn_c_try_run "$LINENO"; then :
5774
5775else
5776 ac_cv_header_stdc=no
5777fi
5778rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5779 conftest.$ac_objext conftest.beam conftest.$ac_ext
5780fi
5781
5782fi
5783fi
5784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5785$as_echo "$ac_cv_header_stdc" >&6; }
5786if test $ac_cv_header_stdc = yes; then
5787
5788$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5789
5790fi
5791
5792# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5793for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5794 inttypes.h stdint.h unistd.h
5795do :
5796 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5797ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5798"
cristy98dddb52010-11-04 00:30:15 +00005799if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005800 cat >>confdefs.h <<_ACEOF
5801#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5802_ACEOF
5803
5804fi
5805
5806done
5807
5808
5809
5810 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 +00005811if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00005812 MINIX=yes
5813else
5814 MINIX=
5815fi
5816
5817
5818 if test "$MINIX" = yes; then
5819
5820$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5821
5822
5823$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5824
5825
5826$as_echo "#define _MINIX 1" >>confdefs.h
5827
5828 fi
5829
5830
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5832$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005833if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005834 $as_echo_n "(cached) " >&6
5835else
5836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5837/* end confdefs.h. */
5838
cristy14fefe52012-05-21 00:59:18 +00005839# define __EXTENSIONS__ 1
5840 $ac_includes_default
cristya0b81c32010-01-22 02:54:33 +00005841int
5842main ()
5843{
5844
5845 ;
5846 return 0;
5847}
5848_ACEOF
5849if ac_fn_c_try_compile "$LINENO"; then :
5850 ac_cv_safe_to_define___extensions__=yes
5851else
5852 ac_cv_safe_to_define___extensions__=no
5853fi
5854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5855fi
5856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5857$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5858 test $ac_cv_safe_to_define___extensions__ = yes &&
5859 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5860
5861 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5862
5863 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5864
5865 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5866
5867 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5868
5869
5870
5871# Check for programs
5872ac_ext=c
5873ac_cpp='$CPP $CPPFLAGS'
5874ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5875ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5876ac_compiler_gnu=$ac_cv_c_compiler_gnu
5877if test -n "$ac_tool_prefix"; then
5878 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5879set dummy ${ac_tool_prefix}gcc; ac_word=$2
5880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5881$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005882if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005883 $as_echo_n "(cached) " >&6
5884else
5885 if test -n "$CC"; then
5886 ac_cv_prog_CC="$CC" # Let the user override the test.
5887else
5888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5889for as_dir in $PATH
5890do
5891 IFS=$as_save_IFS
5892 test -z "$as_dir" && as_dir=.
5893 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005895 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5897 break 2
5898 fi
5899done
5900 done
5901IFS=$as_save_IFS
5902
5903fi
5904fi
5905CC=$ac_cv_prog_CC
5906if test -n "$CC"; then
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5908$as_echo "$CC" >&6; }
5909else
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5911$as_echo "no" >&6; }
5912fi
5913
5914
5915fi
5916if test -z "$ac_cv_prog_CC"; then
5917 ac_ct_CC=$CC
5918 # Extract the first word of "gcc", so it can be a program name with args.
5919set dummy gcc; ac_word=$2
5920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5921$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005922if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005923 $as_echo_n "(cached) " >&6
5924else
5925 if test -n "$ac_ct_CC"; then
5926 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5927else
5928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5929for as_dir in $PATH
5930do
5931 IFS=$as_save_IFS
5932 test -z "$as_dir" && as_dir=.
5933 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005935 ac_cv_prog_ac_ct_CC="gcc"
5936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5937 break 2
5938 fi
5939done
5940 done
5941IFS=$as_save_IFS
5942
5943fi
5944fi
5945ac_ct_CC=$ac_cv_prog_ac_ct_CC
5946if test -n "$ac_ct_CC"; then
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5948$as_echo "$ac_ct_CC" >&6; }
5949else
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5951$as_echo "no" >&6; }
5952fi
5953
5954 if test "x$ac_ct_CC" = x; then
5955 CC=""
5956 else
5957 case $cross_compiling:$ac_tool_warned in
5958yes:)
5959{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5960$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5961ac_tool_warned=yes ;;
5962esac
5963 CC=$ac_ct_CC
5964 fi
5965else
5966 CC="$ac_cv_prog_CC"
5967fi
5968
5969if test -z "$CC"; then
5970 if test -n "$ac_tool_prefix"; then
5971 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5972set dummy ${ac_tool_prefix}cc; ac_word=$2
5973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5974$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005975if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005976 $as_echo_n "(cached) " >&6
5977else
5978 if test -n "$CC"; then
5979 ac_cv_prog_CC="$CC" # Let the user override the test.
5980else
5981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5982for as_dir in $PATH
5983do
5984 IFS=$as_save_IFS
5985 test -z "$as_dir" && as_dir=.
5986 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005988 ac_cv_prog_CC="${ac_tool_prefix}cc"
5989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5990 break 2
5991 fi
5992done
5993 done
5994IFS=$as_save_IFS
5995
5996fi
5997fi
5998CC=$ac_cv_prog_CC
5999if test -n "$CC"; then
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6001$as_echo "$CC" >&6; }
6002else
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6004$as_echo "no" >&6; }
6005fi
6006
6007
6008 fi
6009fi
6010if test -z "$CC"; then
6011 # Extract the first word of "cc", so it can be a program name with args.
6012set dummy cc; ac_word=$2
6013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6014$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006015if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006016 $as_echo_n "(cached) " >&6
6017else
6018 if test -n "$CC"; then
6019 ac_cv_prog_CC="$CC" # Let the user override the test.
6020else
6021 ac_prog_rejected=no
6022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6023for as_dir in $PATH
6024do
6025 IFS=$as_save_IFS
6026 test -z "$as_dir" && as_dir=.
6027 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006029 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6030 ac_prog_rejected=yes
6031 continue
6032 fi
6033 ac_cv_prog_CC="cc"
6034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6035 break 2
6036 fi
6037done
6038 done
6039IFS=$as_save_IFS
6040
6041if test $ac_prog_rejected = yes; then
6042 # We found a bogon in the path, so make sure we never use it.
6043 set dummy $ac_cv_prog_CC
6044 shift
6045 if test $# != 0; then
6046 # We chose a different compiler from the bogus one.
6047 # However, it has the same basename, so the bogon will be chosen
6048 # first if we set CC to just the basename; use the full file name.
6049 shift
6050 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6051 fi
6052fi
6053fi
6054fi
6055CC=$ac_cv_prog_CC
6056if test -n "$CC"; then
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6058$as_echo "$CC" >&6; }
6059else
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6061$as_echo "no" >&6; }
6062fi
6063
6064
6065fi
6066if test -z "$CC"; then
6067 if test -n "$ac_tool_prefix"; then
6068 for ac_prog in cl.exe
6069 do
6070 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6071set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6073$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006074if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006075 $as_echo_n "(cached) " >&6
6076else
6077 if test -n "$CC"; then
6078 ac_cv_prog_CC="$CC" # Let the user override the test.
6079else
6080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6081for as_dir in $PATH
6082do
6083 IFS=$as_save_IFS
6084 test -z "$as_dir" && as_dir=.
6085 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006087 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6089 break 2
6090 fi
6091done
6092 done
6093IFS=$as_save_IFS
6094
6095fi
6096fi
6097CC=$ac_cv_prog_CC
6098if test -n "$CC"; then
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6100$as_echo "$CC" >&6; }
6101else
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6103$as_echo "no" >&6; }
6104fi
6105
6106
6107 test -n "$CC" && break
6108 done
6109fi
6110if test -z "$CC"; then
6111 ac_ct_CC=$CC
6112 for ac_prog in cl.exe
6113do
6114 # Extract the first word of "$ac_prog", so it can be a program name with args.
6115set dummy $ac_prog; ac_word=$2
6116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6117$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006118if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006119 $as_echo_n "(cached) " >&6
6120else
6121 if test -n "$ac_ct_CC"; then
6122 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6123else
6124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6125for as_dir in $PATH
6126do
6127 IFS=$as_save_IFS
6128 test -z "$as_dir" && as_dir=.
6129 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006131 ac_cv_prog_ac_ct_CC="$ac_prog"
6132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6133 break 2
6134 fi
6135done
6136 done
6137IFS=$as_save_IFS
6138
6139fi
6140fi
6141ac_ct_CC=$ac_cv_prog_ac_ct_CC
6142if test -n "$ac_ct_CC"; then
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6144$as_echo "$ac_ct_CC" >&6; }
6145else
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6147$as_echo "no" >&6; }
6148fi
6149
6150
6151 test -n "$ac_ct_CC" && break
6152done
6153
6154 if test "x$ac_ct_CC" = x; then
6155 CC=""
6156 else
6157 case $cross_compiling:$ac_tool_warned in
6158yes:)
6159{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6160$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6161ac_tool_warned=yes ;;
6162esac
6163 CC=$ac_ct_CC
6164 fi
6165fi
6166
6167fi
6168
6169
6170test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6171$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00006172as_fn_error $? "no acceptable C compiler found in \$PATH
6173See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00006174
6175# Provide some information about the compiler.
6176$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6177set X $ac_compile
6178ac_compiler=$2
6179for ac_option in --version -v -V -qversion; do
6180 { { ac_try="$ac_compiler $ac_option >&5"
6181case "(($ac_try" in
6182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6183 *) ac_try_echo=$ac_try;;
6184esac
6185eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6186$as_echo "$ac_try_echo"; } >&5
6187 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6188 ac_status=$?
6189 if test -s conftest.err; then
6190 sed '10a\
6191... rest of stderr output deleted ...
6192 10q' conftest.err >conftest.er1
6193 cat conftest.er1 >&5
6194 fi
6195 rm -f conftest.er1 conftest.err
6196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6197 test $ac_status = 0; }
6198done
6199
6200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6201$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006202if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006203 $as_echo_n "(cached) " >&6
6204else
6205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6206/* end confdefs.h. */
6207
6208int
6209main ()
6210{
6211#ifndef __GNUC__
6212 choke me
6213#endif
6214
6215 ;
6216 return 0;
6217}
6218_ACEOF
6219if ac_fn_c_try_compile "$LINENO"; then :
6220 ac_compiler_gnu=yes
6221else
6222 ac_compiler_gnu=no
6223fi
6224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6225ac_cv_c_compiler_gnu=$ac_compiler_gnu
6226
6227fi
6228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6229$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6230if test $ac_compiler_gnu = yes; then
6231 GCC=yes
6232else
6233 GCC=
6234fi
6235ac_test_CFLAGS=${CFLAGS+set}
6236ac_save_CFLAGS=$CFLAGS
6237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6238$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006239if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006240 $as_echo_n "(cached) " >&6
6241else
6242 ac_save_c_werror_flag=$ac_c_werror_flag
6243 ac_c_werror_flag=yes
6244 ac_cv_prog_cc_g=no
6245 CFLAGS="-g"
6246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6247/* end confdefs.h. */
6248
6249int
6250main ()
6251{
6252
6253 ;
6254 return 0;
6255}
6256_ACEOF
6257if ac_fn_c_try_compile "$LINENO"; then :
6258 ac_cv_prog_cc_g=yes
6259else
6260 CFLAGS=""
6261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6262/* end confdefs.h. */
6263
6264int
6265main ()
6266{
6267
6268 ;
6269 return 0;
6270}
6271_ACEOF
6272if ac_fn_c_try_compile "$LINENO"; then :
6273
6274else
6275 ac_c_werror_flag=$ac_save_c_werror_flag
6276 CFLAGS="-g"
6277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6278/* end confdefs.h. */
6279
6280int
6281main ()
6282{
6283
6284 ;
6285 return 0;
6286}
6287_ACEOF
6288if ac_fn_c_try_compile "$LINENO"; then :
6289 ac_cv_prog_cc_g=yes
6290fi
6291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6292fi
6293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6294fi
6295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6296 ac_c_werror_flag=$ac_save_c_werror_flag
6297fi
6298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6299$as_echo "$ac_cv_prog_cc_g" >&6; }
6300if test "$ac_test_CFLAGS" = set; then
6301 CFLAGS=$ac_save_CFLAGS
6302elif test $ac_cv_prog_cc_g = yes; then
6303 if test "$GCC" = yes; then
6304 CFLAGS="-g -O2"
6305 else
6306 CFLAGS="-g"
6307 fi
6308else
6309 if test "$GCC" = yes; then
6310 CFLAGS="-O2"
6311 else
6312 CFLAGS=
6313 fi
6314fi
6315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6316$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006317if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006318 $as_echo_n "(cached) " >&6
6319else
6320 ac_cv_prog_cc_c89=no
6321ac_save_CC=$CC
6322cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6323/* end confdefs.h. */
6324#include <stdarg.h>
6325#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00006326struct stat;
cristya0b81c32010-01-22 02:54:33 +00006327/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6328struct buf { int x; };
6329FILE * (*rcsopen) (struct buf *, struct stat *, int);
6330static char *e (p, i)
6331 char **p;
6332 int i;
6333{
6334 return p[i];
6335}
6336static char *f (char * (*g) (char **, int), char **p, ...)
6337{
6338 char *s;
6339 va_list v;
6340 va_start (v,p);
6341 s = g (p, va_arg (v,int));
6342 va_end (v);
6343 return s;
6344}
6345
6346/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6347 function prototypes and stuff, but not '\xHH' hex character constants.
6348 These don't provoke an error unfortunately, instead are silently treated
6349 as 'x'. The following induces an error, until -std is added to get
6350 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6351 array size at least. It's necessary to write '\x00'==0 to get something
6352 that's true only with -std. */
6353int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6354
6355/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6356 inside strings and character constants. */
6357#define FOO(x) 'x'
6358int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6359
6360int test (int i, double x);
6361struct s1 {int (*f) (int a);};
6362struct s2 {int (*f) (double a);};
6363int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6364int argc;
6365char **argv;
6366int
6367main ()
6368{
6369return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6370 ;
6371 return 0;
6372}
6373_ACEOF
6374for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6375 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6376do
6377 CC="$ac_save_CC $ac_arg"
6378 if ac_fn_c_try_compile "$LINENO"; then :
6379 ac_cv_prog_cc_c89=$ac_arg
6380fi
6381rm -f core conftest.err conftest.$ac_objext
6382 test "x$ac_cv_prog_cc_c89" != "xno" && break
6383done
6384rm -f conftest.$ac_ext
6385CC=$ac_save_CC
6386
6387fi
6388# AC_CACHE_VAL
6389case "x$ac_cv_prog_cc_c89" in
6390 x)
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6392$as_echo "none needed" >&6; } ;;
6393 xno)
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6395$as_echo "unsupported" >&6; } ;;
6396 *)
6397 CC="$CC $ac_cv_prog_cc_c89"
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6399$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6400esac
6401if test "x$ac_cv_prog_cc_c89" != xno; then :
6402
6403fi
6404
6405ac_ext=c
6406ac_cpp='$CPP $CPPFLAGS'
6407ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6408ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6409ac_compiler_gnu=$ac_cv_c_compiler_gnu
6410
cristy73bd4a52010-10-05 11:24:23 +00006411depcc="$CC" am_compiler_list=
6412
6413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6414$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006415if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006416 $as_echo_n "(cached) " >&6
6417else
6418 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6419 # We make a subdir and do the tests there. Otherwise we can end up
6420 # making bogus files that we don't know about and never remove. For
6421 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006422 # making a dummy file named 'D' -- because '-MD' means "put the output
6423 # in D".
cristy7247bba2012-02-05 16:37:27 +00006424 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006425 mkdir conftest.dir
6426 # Copy depcomp to subdir because otherwise we won't find it if we're
6427 # using a relative directory.
6428 cp "$am_depcomp" conftest.dir
6429 cd conftest.dir
6430 # We will build objects and dependencies in a subdirectory because
6431 # it helps to detect inapplicable dependency modes. For instance
6432 # both Tru64's cc and ICC support -MD to output dependencies as a
6433 # side effect of compilation, but ICC will put the dependencies in
6434 # the current directory while Tru64 will put them in the object
6435 # directory.
6436 mkdir sub
6437
6438 am_cv_CC_dependencies_compiler_type=none
6439 if test "$am_compiler_list" = ""; then
6440 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6441 fi
6442 am__universal=false
6443 case " $depcc " in #(
6444 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6445 esac
6446
6447 for depmode in $am_compiler_list; do
6448 # Setup a source with many dependencies, because some compilers
6449 # like to wrap large dependency lists on column 80 (with \), and
6450 # we should not choose a depcomp mode which is confused by this.
6451 #
6452 # We need to recreate these files for each test, as the compiler may
6453 # overwrite some of them when testing with obscure command lines.
6454 # This happens at least with the AIX C compiler.
6455 : > sub/conftest.c
6456 for i in 1 2 3 4 5 6; do
6457 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006458 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6459 # Solaris 10 /bin/sh.
6460 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006461 done
6462 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6463
cristyc0890a62012-07-19 00:18:20 +00006464 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006465 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006466 # handle '-M -o', and we need to detect this. Also, some Intel
6467 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006468 am__obj=sub/conftest.${OBJEXT-o}
6469 am__minus_obj="-o $am__obj"
6470 case $depmode in
6471 gcc)
6472 # This depmode causes a compiler race in universal mode.
6473 test "$am__universal" = false || continue
6474 ;;
6475 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006476 # After this tag, mechanisms are not by side-effect, so they'll
6477 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006478 if test "x$enable_dependency_tracking" = xyes; then
6479 continue
6480 else
6481 break
6482 fi
6483 ;;
cristy7247bba2012-02-05 16:37:27 +00006484 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006485 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006486 # not run yet. These depmodes are late enough in the game, and
6487 # so weak that their functioning should not be impacted.
6488 am__obj=conftest.${OBJEXT-o}
6489 am__minus_obj=
6490 ;;
6491 none) break ;;
6492 esac
6493 if depmode=$depmode \
6494 source=sub/conftest.c object=$am__obj \
6495 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6496 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6497 >/dev/null 2>conftest.err &&
6498 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6499 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6500 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6501 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6502 # icc doesn't choke on unknown options, it will just issue warnings
6503 # or remarks (even with -Werror). So we grep stderr for any message
6504 # that says an option was ignored or not supported.
6505 # When given -MP, icc 7.0 and 7.1 complain thusly:
6506 # icc: Command line warning: ignoring option '-M'; no argument required
6507 # The diagnosis changed in icc 8.0:
6508 # icc: Command line remark: option '-MP' not supported
6509 if (grep 'ignoring option' conftest.err ||
6510 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6511 am_cv_CC_dependencies_compiler_type=$depmode
6512 break
6513 fi
6514 fi
6515 done
6516
6517 cd ..
6518 rm -rf conftest.dir
6519else
6520 am_cv_CC_dependencies_compiler_type=none
6521fi
6522
6523fi
6524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6525$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6526CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6527
6528 if
6529 test "x$enable_dependency_tracking" != xno \
6530 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6531 am__fastdepCC_TRUE=
6532 am__fastdepCC_FALSE='#'
6533else
6534 am__fastdepCC_TRUE='#'
6535 am__fastdepCC_FALSE=
6536fi
6537
6538
cristy95646052009-11-28 23:05:30 +00006539ac_ext=cpp
6540ac_cpp='$CXXCPP $CPPFLAGS'
6541ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6542ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6543ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6544if test -z "$CXX"; then
6545 if test -n "$CCC"; then
6546 CXX=$CCC
6547 else
6548 if test -n "$ac_tool_prefix"; then
6549 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6550 do
6551 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6552set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6554$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006555if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006556 $as_echo_n "(cached) " >&6
6557else
6558 if test -n "$CXX"; then
6559 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6560else
6561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6562for as_dir in $PATH
6563do
6564 IFS=$as_save_IFS
6565 test -z "$as_dir" && as_dir=.
6566 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006568 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6570 break 2
6571 fi
6572done
6573 done
6574IFS=$as_save_IFS
6575
6576fi
6577fi
6578CXX=$ac_cv_prog_CXX
6579if test -n "$CXX"; then
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6581$as_echo "$CXX" >&6; }
6582else
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6584$as_echo "no" >&6; }
6585fi
6586
6587
6588 test -n "$CXX" && break
6589 done
6590fi
6591if test -z "$CXX"; then
6592 ac_ct_CXX=$CXX
6593 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6594do
6595 # Extract the first word of "$ac_prog", so it can be a program name with args.
6596set dummy $ac_prog; ac_word=$2
6597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6598$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006599if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006600 $as_echo_n "(cached) " >&6
6601else
6602 if test -n "$ac_ct_CXX"; then
6603 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6604else
6605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6606for as_dir in $PATH
6607do
6608 IFS=$as_save_IFS
6609 test -z "$as_dir" && as_dir=.
6610 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006612 ac_cv_prog_ac_ct_CXX="$ac_prog"
6613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6614 break 2
6615 fi
6616done
6617 done
6618IFS=$as_save_IFS
6619
6620fi
6621fi
6622ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6623if test -n "$ac_ct_CXX"; then
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6625$as_echo "$ac_ct_CXX" >&6; }
6626else
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6628$as_echo "no" >&6; }
6629fi
6630
6631
6632 test -n "$ac_ct_CXX" && break
6633done
6634
6635 if test "x$ac_ct_CXX" = x; then
6636 CXX="g++"
6637 else
6638 case $cross_compiling:$ac_tool_warned in
6639yes:)
6640{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6641$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6642ac_tool_warned=yes ;;
6643esac
6644 CXX=$ac_ct_CXX
6645 fi
6646fi
6647
6648 fi
6649fi
6650# Provide some information about the compiler.
6651$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6652set X $ac_compile
6653ac_compiler=$2
6654for ac_option in --version -v -V -qversion; do
6655 { { ac_try="$ac_compiler $ac_option >&5"
6656case "(($ac_try" in
6657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6658 *) ac_try_echo=$ac_try;;
6659esac
6660eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6661$as_echo "$ac_try_echo"; } >&5
6662 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6663 ac_status=$?
6664 if test -s conftest.err; then
6665 sed '10a\
6666... rest of stderr output deleted ...
6667 10q' conftest.err >conftest.er1
6668 cat conftest.er1 >&5
6669 fi
6670 rm -f conftest.er1 conftest.err
6671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6672 test $ac_status = 0; }
6673done
6674
6675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6676$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006677if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00006678 $as_echo_n "(cached) " >&6
6679else
6680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6681/* end confdefs.h. */
6682
6683int
6684main ()
6685{
6686#ifndef __GNUC__
6687 choke me
6688#endif
6689
6690 ;
6691 return 0;
6692}
6693_ACEOF
6694if ac_fn_cxx_try_compile "$LINENO"; then :
6695 ac_compiler_gnu=yes
6696else
6697 ac_compiler_gnu=no
6698fi
6699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6700ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6701
6702fi
6703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6704$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6705if test $ac_compiler_gnu = yes; then
6706 GXX=yes
6707else
6708 GXX=
6709fi
6710ac_test_CXXFLAGS=${CXXFLAGS+set}
6711ac_save_CXXFLAGS=$CXXFLAGS
6712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6713$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006714if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00006715 $as_echo_n "(cached) " >&6
6716else
6717 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6718 ac_cxx_werror_flag=yes
6719 ac_cv_prog_cxx_g=no
6720 CXXFLAGS="-g"
6721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6722/* end confdefs.h. */
6723
6724int
6725main ()
6726{
6727
6728 ;
6729 return 0;
6730}
6731_ACEOF
6732if ac_fn_cxx_try_compile "$LINENO"; then :
6733 ac_cv_prog_cxx_g=yes
6734else
6735 CXXFLAGS=""
6736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6737/* end confdefs.h. */
6738
6739int
6740main ()
6741{
6742
6743 ;
6744 return 0;
6745}
6746_ACEOF
6747if ac_fn_cxx_try_compile "$LINENO"; then :
6748
6749else
6750 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6751 CXXFLAGS="-g"
6752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6753/* end confdefs.h. */
6754
6755int
6756main ()
6757{
6758
6759 ;
6760 return 0;
6761}
6762_ACEOF
6763if ac_fn_cxx_try_compile "$LINENO"; then :
6764 ac_cv_prog_cxx_g=yes
6765fi
6766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6767fi
6768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6769fi
6770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6771 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6772fi
6773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6774$as_echo "$ac_cv_prog_cxx_g" >&6; }
6775if test "$ac_test_CXXFLAGS" = set; then
6776 CXXFLAGS=$ac_save_CXXFLAGS
6777elif test $ac_cv_prog_cxx_g = yes; then
6778 if test "$GXX" = yes; then
6779 CXXFLAGS="-g -O2"
6780 else
6781 CXXFLAGS="-g"
6782 fi
6783else
6784 if test "$GXX" = yes; then
6785 CXXFLAGS="-O2"
6786 else
6787 CXXFLAGS=
6788 fi
6789fi
6790ac_ext=c
6791ac_cpp='$CPP $CPPFLAGS'
6792ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6793ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6794ac_compiler_gnu=$ac_cv_c_compiler_gnu
6795
cristy73bd4a52010-10-05 11:24:23 +00006796depcc="$CXX" am_compiler_list=
6797
6798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6799$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006800if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006801 $as_echo_n "(cached) " >&6
6802else
6803 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6804 # We make a subdir and do the tests there. Otherwise we can end up
6805 # making bogus files that we don't know about and never remove. For
6806 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006807 # making a dummy file named 'D' -- because '-MD' means "put the output
6808 # in D".
cristy7247bba2012-02-05 16:37:27 +00006809 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006810 mkdir conftest.dir
6811 # Copy depcomp to subdir because otherwise we won't find it if we're
6812 # using a relative directory.
6813 cp "$am_depcomp" conftest.dir
6814 cd conftest.dir
6815 # We will build objects and dependencies in a subdirectory because
6816 # it helps to detect inapplicable dependency modes. For instance
6817 # both Tru64's cc and ICC support -MD to output dependencies as a
6818 # side effect of compilation, but ICC will put the dependencies in
6819 # the current directory while Tru64 will put them in the object
6820 # directory.
6821 mkdir sub
6822
6823 am_cv_CXX_dependencies_compiler_type=none
6824 if test "$am_compiler_list" = ""; then
6825 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6826 fi
6827 am__universal=false
6828 case " $depcc " in #(
6829 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6830 esac
6831
6832 for depmode in $am_compiler_list; do
6833 # Setup a source with many dependencies, because some compilers
6834 # like to wrap large dependency lists on column 80 (with \), and
6835 # we should not choose a depcomp mode which is confused by this.
6836 #
6837 # We need to recreate these files for each test, as the compiler may
6838 # overwrite some of them when testing with obscure command lines.
6839 # This happens at least with the AIX C compiler.
6840 : > sub/conftest.c
6841 for i in 1 2 3 4 5 6; do
6842 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006843 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6844 # Solaris 10 /bin/sh.
6845 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006846 done
6847 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6848
cristyc0890a62012-07-19 00:18:20 +00006849 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006850 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006851 # handle '-M -o', and we need to detect this. Also, some Intel
6852 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006853 am__obj=sub/conftest.${OBJEXT-o}
6854 am__minus_obj="-o $am__obj"
6855 case $depmode in
6856 gcc)
6857 # This depmode causes a compiler race in universal mode.
6858 test "$am__universal" = false || continue
6859 ;;
6860 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006861 # After this tag, mechanisms are not by side-effect, so they'll
6862 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006863 if test "x$enable_dependency_tracking" = xyes; then
6864 continue
6865 else
6866 break
6867 fi
6868 ;;
cristy7247bba2012-02-05 16:37:27 +00006869 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006870 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006871 # not run yet. These depmodes are late enough in the game, and
6872 # so weak that their functioning should not be impacted.
6873 am__obj=conftest.${OBJEXT-o}
6874 am__minus_obj=
6875 ;;
6876 none) break ;;
6877 esac
6878 if depmode=$depmode \
6879 source=sub/conftest.c object=$am__obj \
6880 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6881 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6882 >/dev/null 2>conftest.err &&
6883 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6884 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6885 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6886 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6887 # icc doesn't choke on unknown options, it will just issue warnings
6888 # or remarks (even with -Werror). So we grep stderr for any message
6889 # that says an option was ignored or not supported.
6890 # When given -MP, icc 7.0 and 7.1 complain thusly:
6891 # icc: Command line warning: ignoring option '-M'; no argument required
6892 # The diagnosis changed in icc 8.0:
6893 # icc: Command line remark: option '-MP' not supported
6894 if (grep 'ignoring option' conftest.err ||
6895 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6896 am_cv_CXX_dependencies_compiler_type=$depmode
6897 break
6898 fi
6899 fi
6900 done
6901
6902 cd ..
6903 rm -rf conftest.dir
6904else
6905 am_cv_CXX_dependencies_compiler_type=none
6906fi
6907
6908fi
6909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6910$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6911CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6912
6913 if
6914 test "x$enable_dependency_tracking" != xno \
6915 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6916 am__fastdepCXX_TRUE=
6917 am__fastdepCXX_FALSE='#'
6918else
6919 am__fastdepCXX_TRUE='#'
6920 am__fastdepCXX_FALSE=
6921fi
6922
6923
cristy8b350f62009-11-15 23:12:43 +00006924 case $ac_cv_prog_cc_stdc in #(
6925 no) :
6926 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6927 *) :
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006929$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006930if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006931 $as_echo_n "(cached) " >&6
6932else
6933 ac_cv_prog_cc_c99=no
6934ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006935cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006936/* end confdefs.h. */
6937#include <stdarg.h>
6938#include <stdbool.h>
6939#include <stdlib.h>
6940#include <wchar.h>
6941#include <stdio.h>
6942
6943// Check varargs macros. These examples are taken from C99 6.10.3.5.
6944#define debug(...) fprintf (stderr, __VA_ARGS__)
6945#define showlist(...) puts (#__VA_ARGS__)
6946#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6947static void
6948test_varargs_macros (void)
6949{
6950 int x = 1234;
6951 int y = 5678;
6952 debug ("Flag");
6953 debug ("X = %d\n", x);
6954 showlist (The first, second, and third items.);
6955 report (x>y, "x is %d but y is %d", x, y);
6956}
6957
6958// Check long long types.
6959#define BIG64 18446744073709551615ull
6960#define BIG32 4294967295ul
6961#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6962#if !BIG_OK
6963 your preprocessor is broken;
6964#endif
6965#if BIG_OK
6966#else
6967 your preprocessor is broken;
6968#endif
6969static long long int bignum = -9223372036854775807LL;
6970static unsigned long long int ubignum = BIG64;
6971
6972struct incomplete_array
6973{
6974 int datasize;
6975 double data[];
6976};
6977
6978struct named_init {
6979 int number;
6980 const wchar_t *name;
6981 double average;
6982};
6983
6984typedef const char *ccp;
6985
6986static inline int
6987test_restrict (ccp restrict text)
6988{
6989 // See if C++-style comments work.
6990 // Iterate through items via the restricted pointer.
6991 // Also check for declarations in for loops.
6992 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6993 continue;
6994 return 0;
6995}
6996
6997// Check varargs and va_copy.
6998static void
6999test_varargs (const char *format, ...)
7000{
7001 va_list args;
7002 va_start (args, format);
7003 va_list args_copy;
7004 va_copy (args_copy, args);
7005
7006 const char *str;
7007 int number;
7008 float fnumber;
7009
7010 while (*format)
7011 {
7012 switch (*format++)
7013 {
7014 case 's': // string
7015 str = va_arg (args_copy, const char *);
7016 break;
7017 case 'd': // int
7018 number = va_arg (args_copy, int);
7019 break;
7020 case 'f': // float
7021 fnumber = va_arg (args_copy, double);
7022 break;
7023 default:
7024 break;
7025 }
7026 }
7027 va_end (args_copy);
7028 va_end (args);
7029}
7030
7031int
7032main ()
7033{
7034
7035 // Check bool.
7036 _Bool success = false;
7037
7038 // Check restrict.
7039 if (test_restrict ("String literal") == 0)
7040 success = true;
7041 char *restrict newvar = "Another string";
7042
7043 // Check varargs.
7044 test_varargs ("s, d' f .", "string", 65, 34.234);
7045 test_varargs_macros ();
7046
7047 // Check flexible array members.
7048 struct incomplete_array *ia =
7049 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7050 ia->datasize = 10;
7051 for (int i = 0; i < ia->datasize; ++i)
7052 ia->data[i] = i * 1.234;
7053
7054 // Check named initializers.
7055 struct named_init ni = {
7056 .number = 34,
7057 .name = L"Test wide string",
7058 .average = 543.34343,
7059 };
7060
7061 ni.number = 58;
7062
7063 int dynamic_array[ni.number];
7064 dynamic_array[ni.number - 1] = 543;
7065
7066 // work around unused variable warnings
7067 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7068 || dynamic_array[ni.number - 1] != 543);
7069
7070 ;
7071 return 0;
7072}
7073_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007074for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy3ed852e2009-09-05 21:47:34 +00007075do
7076 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007077 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007078 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007079fi
cristy3ed852e2009-09-05 21:47:34 +00007080rm -f core conftest.err conftest.$ac_objext
7081 test "x$ac_cv_prog_cc_c99" != "xno" && break
7082done
7083rm -f conftest.$ac_ext
7084CC=$ac_save_CC
7085
7086fi
7087# AC_CACHE_VAL
7088case "x$ac_cv_prog_cc_c99" in
7089 x)
cristy8b350f62009-11-15 23:12:43 +00007090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007091$as_echo "none needed" >&6; } ;;
7092 xno)
cristy8b350f62009-11-15 23:12:43 +00007093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007094$as_echo "unsupported" >&6; } ;;
7095 *)
7096 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00007097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007098$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7099esac
cristy8b350f62009-11-15 23:12:43 +00007100if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007101 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7102else
cristy8b350f62009-11-15 23:12:43 +00007103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007104$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007105if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007106 $as_echo_n "(cached) " >&6
7107else
7108 ac_cv_prog_cc_c89=no
7109ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007110cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007111/* end confdefs.h. */
7112#include <stdarg.h>
7113#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00007114struct stat;
cristy3ed852e2009-09-05 21:47:34 +00007115/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7116struct buf { int x; };
7117FILE * (*rcsopen) (struct buf *, struct stat *, int);
7118static char *e (p, i)
7119 char **p;
7120 int i;
7121{
7122 return p[i];
7123}
7124static char *f (char * (*g) (char **, int), char **p, ...)
7125{
7126 char *s;
7127 va_list v;
7128 va_start (v,p);
7129 s = g (p, va_arg (v,int));
7130 va_end (v);
7131 return s;
7132}
7133
7134/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7135 function prototypes and stuff, but not '\xHH' hex character constants.
7136 These don't provoke an error unfortunately, instead are silently treated
7137 as 'x'. The following induces an error, until -std is added to get
7138 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7139 array size at least. It's necessary to write '\x00'==0 to get something
7140 that's true only with -std. */
7141int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7142
7143/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7144 inside strings and character constants. */
7145#define FOO(x) 'x'
7146int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7147
7148int test (int i, double x);
7149struct s1 {int (*f) (int a);};
7150struct s2 {int (*f) (double a);};
7151int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7152int argc;
7153char **argv;
7154int
7155main ()
7156{
7157return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7158 ;
7159 return 0;
7160}
7161_ACEOF
7162for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7163 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7164do
7165 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007166 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007167 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007168fi
cristy3ed852e2009-09-05 21:47:34 +00007169rm -f core conftest.err conftest.$ac_objext
7170 test "x$ac_cv_prog_cc_c89" != "xno" && break
7171done
7172rm -f conftest.$ac_ext
7173CC=$ac_save_CC
7174
7175fi
7176# AC_CACHE_VAL
7177case "x$ac_cv_prog_cc_c89" in
7178 x)
cristy8b350f62009-11-15 23:12:43 +00007179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007180$as_echo "none needed" >&6; } ;;
7181 xno)
cristy8b350f62009-11-15 23:12:43 +00007182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007183$as_echo "unsupported" >&6; } ;;
7184 *)
7185 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00007186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007187$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7188esac
cristy8b350f62009-11-15 23:12:43 +00007189if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007190 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7191else
7192 ac_cv_prog_cc_stdc=no
7193fi
7194
cristy3ed852e2009-09-05 21:47:34 +00007195fi
cristy3ed852e2009-09-05 21:47:34 +00007196 ;;
7197esac
cristy8b350f62009-11-15 23:12:43 +00007198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00007199$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007200 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007201 $as_echo_n "(cached) " >&6
7202fi
7203
cristy8b350f62009-11-15 23:12:43 +00007204 case $ac_cv_prog_cc_stdc in #(
7205 no) :
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7207$as_echo "unsupported" >&6; } ;; #(
7208 '') :
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7210$as_echo "none needed" >&6; } ;; #(
7211 *) :
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00007213$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7214esac
7215
cristy3ed852e2009-09-05 21:47:34 +00007216ac_ext=c
7217ac_cpp='$CPP $CPPFLAGS'
7218ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7219ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7220ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00007221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00007222$as_echo_n "checking how to run the C preprocessor... " >&6; }
7223# On Suns, sometimes $CPP names a directory.
7224if test -n "$CPP" && test -d "$CPP"; then
7225 CPP=
7226fi
7227if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00007228 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007229 $as_echo_n "(cached) " >&6
7230else
7231 # Double quotes because CPP needs to be expanded
7232 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7233 do
7234 ac_preproc_ok=false
7235for ac_c_preproc_warn_flag in '' yes
7236do
7237 # Use a header file that comes with gcc, so configuring glibc
7238 # with a fresh cross-compiler works.
7239 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7240 # <limits.h> exists even on freestanding compilers.
7241 # On the NeXT, cc -E runs the code through the compiler's parser,
7242 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007244/* end confdefs.h. */
7245#ifdef __STDC__
7246# include <limits.h>
7247#else
7248# include <assert.h>
7249#endif
7250 Syntax error
7251_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007252if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007253
cristy8b350f62009-11-15 23:12:43 +00007254else
cristy3ed852e2009-09-05 21:47:34 +00007255 # Broken: fails on valid input.
7256continue
7257fi
cristyda16f162011-02-19 23:52:17 +00007258rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007259
7260 # OK, works on sane cases. Now check whether nonexistent headers
7261 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007263/* end confdefs.h. */
7264#include <ac_nonexistent.h>
7265_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007266if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007267 # Broken: success on invalid input.
7268continue
7269else
cristy3ed852e2009-09-05 21:47:34 +00007270 # Passes both tests.
7271ac_preproc_ok=:
7272break
7273fi
cristyda16f162011-02-19 23:52:17 +00007274rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007275
7276done
7277# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007278rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007279if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007280 break
7281fi
7282
7283 done
7284 ac_cv_prog_CPP=$CPP
7285
7286fi
7287 CPP=$ac_cv_prog_CPP
7288else
7289 ac_cv_prog_CPP=$CPP
7290fi
cristy8b350f62009-11-15 23:12:43 +00007291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007292$as_echo "$CPP" >&6; }
7293ac_preproc_ok=false
7294for ac_c_preproc_warn_flag in '' yes
7295do
7296 # Use a header file that comes with gcc, so configuring glibc
7297 # with a fresh cross-compiler works.
7298 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7299 # <limits.h> exists even on freestanding compilers.
7300 # On the NeXT, cc -E runs the code through the compiler's parser,
7301 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007303/* end confdefs.h. */
7304#ifdef __STDC__
7305# include <limits.h>
7306#else
7307# include <assert.h>
7308#endif
7309 Syntax error
7310_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007311if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007312
cristy8b350f62009-11-15 23:12:43 +00007313else
cristy3ed852e2009-09-05 21:47:34 +00007314 # Broken: fails on valid input.
7315continue
7316fi
cristyda16f162011-02-19 23:52:17 +00007317rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007318
7319 # OK, works on sane cases. Now check whether nonexistent headers
7320 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007322/* end confdefs.h. */
7323#include <ac_nonexistent.h>
7324_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007325if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007326 # Broken: success on invalid input.
7327continue
7328else
cristy3ed852e2009-09-05 21:47:34 +00007329 # Passes both tests.
7330ac_preproc_ok=:
7331break
7332fi
cristyda16f162011-02-19 23:52:17 +00007333rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007334
7335done
7336# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007337rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007338if $ac_preproc_ok; then :
7339
cristy3ed852e2009-09-05 21:47:34 +00007340else
cristy8b350f62009-11-15 23:12:43 +00007341 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007342$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00007343as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7344See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007345fi
7346
7347ac_ext=c
7348ac_cpp='$CPP $CPPFLAGS'
7349ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7350ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7351ac_compiler_gnu=$ac_cv_c_compiler_gnu
7352
cristy73bd4a52010-10-05 11:24:23 +00007353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7354$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007355if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007356 $as_echo_n "(cached) " >&6
7357else
7358 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7359 for ac_i in 1 2 3 4 5 6 7; do
7360 ac_script="$ac_script$as_nl$ac_script"
7361 done
7362 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7363 { ac_script=; unset ac_script;}
7364 if test -z "$SED"; then
7365 ac_path_SED_found=false
7366 # Loop through the user's path and test for each of PROGNAME-LIST
7367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7368for as_dir in $PATH
7369do
7370 IFS=$as_save_IFS
7371 test -z "$as_dir" && as_dir=.
7372 for ac_prog in sed gsed; do
7373 for ac_exec_ext in '' $ac_executable_extensions; do
7374 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007375 as_fn_executable_p "$ac_path_SED" || continue
cristy73bd4a52010-10-05 11:24:23 +00007376# Check for GNU ac_path_SED and select it if it is found.
7377 # Check for GNU $ac_path_SED
7378case `"$ac_path_SED" --version 2>&1` in
7379*GNU*)
7380 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7381*)
7382 ac_count=0
7383 $as_echo_n 0123456789 >"conftest.in"
7384 while :
7385 do
7386 cat "conftest.in" "conftest.in" >"conftest.tmp"
7387 mv "conftest.tmp" "conftest.in"
7388 cp "conftest.in" "conftest.nl"
7389 $as_echo '' >> "conftest.nl"
7390 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7391 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7392 as_fn_arith $ac_count + 1 && ac_count=$as_val
7393 if test $ac_count -gt ${ac_path_SED_max-0}; then
7394 # Best one so far, save it but keep looking for a better one
7395 ac_cv_path_SED="$ac_path_SED"
7396 ac_path_SED_max=$ac_count
7397 fi
7398 # 10*(2^10) chars as input seems more than enough
7399 test $ac_count -gt 10 && break
7400 done
7401 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7402esac
7403
7404 $ac_path_SED_found && break 3
7405 done
7406 done
7407 done
7408IFS=$as_save_IFS
7409 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007410 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007411 fi
7412else
7413 ac_cv_path_SED=$SED
7414fi
7415
7416fi
7417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7418$as_echo "$ac_cv_path_SED" >&6; }
7419 SED="$ac_cv_path_SED"
7420 rm -f conftest.sed
7421
7422test -z "$SED" && SED=sed
7423Xsed="$SED -e 1s/^X//"
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7436$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007437if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007438 $as_echo_n "(cached) " >&6
7439else
7440 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7441 then ac_cv_path_FGREP="$GREP -F"
7442 else
7443 if test -z "$FGREP"; then
7444 ac_path_FGREP_found=false
7445 # Loop through the user's path and test for each of PROGNAME-LIST
7446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7447for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7448do
7449 IFS=$as_save_IFS
7450 test -z "$as_dir" && as_dir=.
7451 for ac_prog in fgrep; do
7452 for ac_exec_ext in '' $ac_executable_extensions; do
7453 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007454 as_fn_executable_p "$ac_path_FGREP" || continue
cristy73bd4a52010-10-05 11:24:23 +00007455# Check for GNU ac_path_FGREP and select it if it is found.
7456 # Check for GNU $ac_path_FGREP
7457case `"$ac_path_FGREP" --version 2>&1` in
7458*GNU*)
7459 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7460*)
7461 ac_count=0
7462 $as_echo_n 0123456789 >"conftest.in"
7463 while :
7464 do
7465 cat "conftest.in" "conftest.in" >"conftest.tmp"
7466 mv "conftest.tmp" "conftest.in"
7467 cp "conftest.in" "conftest.nl"
7468 $as_echo 'FGREP' >> "conftest.nl"
7469 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7470 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7471 as_fn_arith $ac_count + 1 && ac_count=$as_val
7472 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7473 # Best one so far, save it but keep looking for a better one
7474 ac_cv_path_FGREP="$ac_path_FGREP"
7475 ac_path_FGREP_max=$ac_count
7476 fi
7477 # 10*(2^10) chars as input seems more than enough
7478 test $ac_count -gt 10 && break
7479 done
7480 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7481esac
7482
7483 $ac_path_FGREP_found && break 3
7484 done
7485 done
7486 done
7487IFS=$as_save_IFS
7488 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007489 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007490 fi
7491else
7492 ac_cv_path_FGREP=$FGREP
7493fi
7494
7495 fi
7496fi
7497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7498$as_echo "$ac_cv_path_FGREP" >&6; }
7499 FGREP="$ac_cv_path_FGREP"
7500
7501
7502test -z "$GREP" && GREP=grep
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
cristy0c60a692010-11-04 01:09:47 +00007520ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7521ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7522ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7523
7524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7525$as_echo_n "checking how to print strings... " >&6; }
7526# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00007527if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00007528 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7529 ECHO='print -r --'
7530elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7531 ECHO='printf %s\n'
7532else
7533 # Use this function as a fallback that always works.
7534 func_fallback_echo ()
7535 {
7536 eval 'cat <<_LTECHO_EOF
7537$1
7538_LTECHO_EOF'
7539 }
7540 ECHO='func_fallback_echo'
7541fi
7542
7543# func_echo_all arg...
7544# Invoke $ECHO with all args, space-separated.
7545func_echo_all ()
7546{
7547 $ECHO ""
7548}
7549
7550case "$ECHO" in
7551 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7552$as_echo "printf" >&6; } ;;
7553 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7554$as_echo "print -r" >&6; } ;;
7555 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7556$as_echo "cat" >&6; } ;;
7557esac
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
cristy73bd4a52010-10-05 11:24:23 +00007572
7573
7574# Check whether --with-gnu-ld was given.
7575if test "${with_gnu_ld+set}" = set; then :
7576 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7577else
7578 with_gnu_ld=no
7579fi
7580
7581ac_prog=ld
7582if test "$GCC" = yes; then
7583 # Check if gcc -print-prog-name=ld gives a path.
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7585$as_echo_n "checking for ld used by $CC... " >&6; }
7586 case $host in
7587 *-*-mingw*)
7588 # gcc leaves a trailing carriage return which upsets mingw
7589 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7590 *)
7591 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7592 esac
7593 case $ac_prog in
7594 # Accept absolute paths.
7595 [\\/]* | ?:[\\/]*)
7596 re_direlt='/[^/][^/]*/\.\./'
7597 # Canonicalize the pathname of ld
7598 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7599 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7600 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7601 done
7602 test -z "$LD" && LD="$ac_prog"
7603 ;;
7604 "")
7605 # If it fails, then pretend we aren't using GCC.
7606 ac_prog=ld
7607 ;;
7608 *)
7609 # If it is relative, then search for the first ld in PATH.
7610 with_gnu_ld=unknown
7611 ;;
7612 esac
7613elif test "$with_gnu_ld" = yes; then
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7615$as_echo_n "checking for GNU ld... " >&6; }
7616else
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7618$as_echo_n "checking for non-GNU ld... " >&6; }
7619fi
cristyda16f162011-02-19 23:52:17 +00007620if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007621 $as_echo_n "(cached) " >&6
7622else
7623 if test -z "$LD"; then
7624 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7625 for ac_dir in $PATH; do
7626 IFS="$lt_save_ifs"
7627 test -z "$ac_dir" && ac_dir=.
7628 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7629 lt_cv_path_LD="$ac_dir/$ac_prog"
7630 # Check to see if the program is GNU ld. I'd rather use --version,
7631 # but apparently some variants of GNU ld only accept -v.
7632 # Break only if it was the GNU/non-GNU ld that we prefer.
7633 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7634 *GNU* | *'with BFD'*)
7635 test "$with_gnu_ld" != no && break
7636 ;;
7637 *)
7638 test "$with_gnu_ld" != yes && break
7639 ;;
7640 esac
7641 fi
7642 done
7643 IFS="$lt_save_ifs"
7644else
7645 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7646fi
7647fi
7648
7649LD="$lt_cv_path_LD"
7650if test -n "$LD"; then
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7652$as_echo "$LD" >&6; }
7653else
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7655$as_echo "no" >&6; }
7656fi
cristy98dddb52010-11-04 00:30:15 +00007657test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7659$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007660if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007661 $as_echo_n "(cached) " >&6
7662else
7663 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7664case `$LD -v 2>&1 </dev/null` in
7665*GNU* | *'with BFD'*)
7666 lt_cv_prog_gnu_ld=yes
7667 ;;
7668*)
7669 lt_cv_prog_gnu_ld=no
7670 ;;
7671esac
7672fi
7673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7674$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7675with_gnu_ld=$lt_cv_prog_gnu_ld
7676
7677
7678
7679
7680
7681
7682
7683
7684
cristy3ed852e2009-09-05 21:47:34 +00007685
cristy837d6dc2010-02-27 01:16:57 +00007686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7687$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007688if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00007689 $as_echo_n "(cached) " >&6
7690else
7691 ac_cv_prog_cc_c99=no
7692ac_save_CC=$CC
7693cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7694/* end confdefs.h. */
7695#include <stdarg.h>
7696#include <stdbool.h>
7697#include <stdlib.h>
7698#include <wchar.h>
7699#include <stdio.h>
7700
7701// Check varargs macros. These examples are taken from C99 6.10.3.5.
7702#define debug(...) fprintf (stderr, __VA_ARGS__)
7703#define showlist(...) puts (#__VA_ARGS__)
7704#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7705static void
7706test_varargs_macros (void)
7707{
7708 int x = 1234;
7709 int y = 5678;
7710 debug ("Flag");
7711 debug ("X = %d\n", x);
7712 showlist (The first, second, and third items.);
7713 report (x>y, "x is %d but y is %d", x, y);
7714}
7715
7716// Check long long types.
7717#define BIG64 18446744073709551615ull
7718#define BIG32 4294967295ul
7719#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7720#if !BIG_OK
7721 your preprocessor is broken;
7722#endif
7723#if BIG_OK
7724#else
7725 your preprocessor is broken;
7726#endif
7727static long long int bignum = -9223372036854775807LL;
7728static unsigned long long int ubignum = BIG64;
7729
7730struct incomplete_array
7731{
7732 int datasize;
7733 double data[];
7734};
7735
7736struct named_init {
7737 int number;
7738 const wchar_t *name;
7739 double average;
7740};
7741
7742typedef const char *ccp;
7743
7744static inline int
7745test_restrict (ccp restrict text)
7746{
7747 // See if C++-style comments work.
7748 // Iterate through items via the restricted pointer.
7749 // Also check for declarations in for loops.
7750 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7751 continue;
7752 return 0;
7753}
7754
7755// Check varargs and va_copy.
7756static void
7757test_varargs (const char *format, ...)
7758{
7759 va_list args;
7760 va_start (args, format);
7761 va_list args_copy;
7762 va_copy (args_copy, args);
7763
7764 const char *str;
7765 int number;
7766 float fnumber;
7767
7768 while (*format)
7769 {
7770 switch (*format++)
7771 {
7772 case 's': // string
7773 str = va_arg (args_copy, const char *);
7774 break;
7775 case 'd': // int
7776 number = va_arg (args_copy, int);
7777 break;
7778 case 'f': // float
7779 fnumber = va_arg (args_copy, double);
7780 break;
7781 default:
7782 break;
7783 }
7784 }
7785 va_end (args_copy);
7786 va_end (args);
7787}
7788
7789int
7790main ()
7791{
7792
7793 // Check bool.
7794 _Bool success = false;
7795
7796 // Check restrict.
7797 if (test_restrict ("String literal") == 0)
7798 success = true;
7799 char *restrict newvar = "Another string";
7800
7801 // Check varargs.
7802 test_varargs ("s, d' f .", "string", 65, 34.234);
7803 test_varargs_macros ();
7804
7805 // Check flexible array members.
7806 struct incomplete_array *ia =
7807 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7808 ia->datasize = 10;
7809 for (int i = 0; i < ia->datasize; ++i)
7810 ia->data[i] = i * 1.234;
7811
7812 // Check named initializers.
7813 struct named_init ni = {
7814 .number = 34,
7815 .name = L"Test wide string",
7816 .average = 543.34343,
7817 };
7818
7819 ni.number = 58;
7820
7821 int dynamic_array[ni.number];
7822 dynamic_array[ni.number - 1] = 543;
7823
7824 // work around unused variable warnings
7825 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7826 || dynamic_array[ni.number - 1] != 543);
7827
7828 ;
7829 return 0;
7830}
7831_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007832for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy837d6dc2010-02-27 01:16:57 +00007833do
7834 CC="$ac_save_CC $ac_arg"
7835 if ac_fn_c_try_compile "$LINENO"; then :
7836 ac_cv_prog_cc_c99=$ac_arg
7837fi
7838rm -f core conftest.err conftest.$ac_objext
7839 test "x$ac_cv_prog_cc_c99" != "xno" && break
7840done
7841rm -f conftest.$ac_ext
7842CC=$ac_save_CC
7843
7844fi
7845# AC_CACHE_VAL
7846case "x$ac_cv_prog_cc_c99" in
7847 x)
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7849$as_echo "none needed" >&6; } ;;
7850 xno)
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7852$as_echo "unsupported" >&6; } ;;
7853 *)
7854 CC="$CC $ac_cv_prog_cc_c99"
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7856$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7857esac
7858if test "x$ac_cv_prog_cc_c99" != xno; then :
7859
7860fi
7861
7862
cristy73bd4a52010-10-05 11:24:23 +00007863if test "x$CC" != xcc; then
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7865$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7866else
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7868$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7869fi
7870set dummy $CC; ac_cc=`$as_echo "$2" |
7871 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristyda16f162011-02-19 23:52:17 +00007872if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007873 $as_echo_n "(cached) " >&6
7874else
cristy73bd4a52010-10-05 11:24:23 +00007875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7876/* end confdefs.h. */
7877
7878int
7879main ()
7880{
7881
7882 ;
7883 return 0;
7884}
7885_ACEOF
7886# Make sure it works both with $CC and with simple cc.
7887# We do the test twice because some compilers refuse to overwrite an
7888# existing .o file with -o, though they will create one.
7889ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7890rm -f conftest2.*
7891if { { case "(($ac_try" in
7892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7893 *) ac_try_echo=$ac_try;;
7894esac
7895eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7896$as_echo "$ac_try_echo"; } >&5
7897 (eval "$ac_try") 2>&5
7898 ac_status=$?
7899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7900 test $ac_status = 0; } &&
7901 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7903 *) ac_try_echo=$ac_try;;
7904esac
7905eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7906$as_echo "$ac_try_echo"; } >&5
7907 (eval "$ac_try") 2>&5
7908 ac_status=$?
7909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7910 test $ac_status = 0; };
7911then
7912 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7913 if test "x$CC" != xcc; then
7914 # Test first that cc exists at all.
7915 if { ac_try='cc -c conftest.$ac_ext >&5'
7916 { { case "(($ac_try" in
7917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7918 *) ac_try_echo=$ac_try;;
7919esac
7920eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7921$as_echo "$ac_try_echo"; } >&5
7922 (eval "$ac_try") 2>&5
7923 ac_status=$?
7924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7925 test $ac_status = 0; }; }; then
7926 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7927 rm -f conftest2.*
7928 if { { case "(($ac_try" in
7929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7930 *) ac_try_echo=$ac_try;;
7931esac
7932eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7933$as_echo "$ac_try_echo"; } >&5
7934 (eval "$ac_try") 2>&5
7935 ac_status=$?
7936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7937 test $ac_status = 0; } &&
7938 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7940 *) ac_try_echo=$ac_try;;
7941esac
7942eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7943$as_echo "$ac_try_echo"; } >&5
7944 (eval "$ac_try") 2>&5
7945 ac_status=$?
7946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7947 test $ac_status = 0; };
7948 then
7949 # cc works too.
7950 :
7951 else
7952 # cc exists but doesn't like -o.
7953 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7954 fi
7955 fi
7956 fi
7957else
7958 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7959fi
7960rm -f core conftest*
7961
7962fi
7963if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7965$as_echo "yes" >&6; }
7966else
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7968$as_echo "no" >&6; }
7969
7970$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7971
7972fi
7973
7974# FIXME: we rely on the cache variable name because
7975# there is no other way.
7976set dummy $CC
7977am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7978eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7979if test "$am_t" != yes; then
7980 # Losing compiler, so override with the script.
7981 # FIXME: It is wrong to rewrite CC.
7982 # But if we don't then we get into trouble of one sort or another.
7983 # A longer-term fix would be to have automake use am__CC in this case,
7984 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7985 CC="$am_aux_dir/compile $CC"
7986fi
7987
7988
7989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7990$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007991if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007992 $as_echo_n "(cached) " >&6
7993else
7994 ac_cv_cflags_warn_all="no, unknown"
cristy73bd4a52010-10-05 11:24:23 +00007995 ac_ext=c
7996ac_cpp='$CPP $CPPFLAGS'
7997ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7998ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7999ac_compiler_gnu=$ac_cv_c_compiler_gnu
8000
8001 ac_save_CFLAGS="$CFLAGS"
8002for 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" #
8003do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
8004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8005/* end confdefs.h. */
8006
8007int
8008main ()
8009{
cristy24fc1fe2010-10-23 21:13:01 +00008010
cristy73bd4a52010-10-05 11:24:23 +00008011 ;
8012 return 0;
8013}
8014_ACEOF
8015if ac_fn_c_try_compile "$LINENO"; then :
8016 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
8017fi
8018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8019done
8020 CFLAGS="$ac_save_CFLAGS"
8021 ac_ext=c
8022ac_cpp='$CPP $CPPFLAGS'
8023ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8024ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8025ac_compiler_gnu=$ac_cv_c_compiler_gnu
8026
8027
8028fi
8029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
8030$as_echo "$ac_cv_cflags_warn_all" >&6; }
8031case ".$ac_cv_cflags_warn_all" in
8032 .ok|.ok,*) ;;
8033 .|.no|.no,*)
8034 ;;
8035 *)
8036 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
8037 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
8038 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
8039 ac_status=$?
8040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8041 test $ac_status = 0; }
8042 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
8043 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
8044 ac_status=$?
8045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8046 test $ac_status = 0; }
8047 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
8048 fi
8049 ;;
nicolas6237c462010-10-05 06:11:49 +00008050esac
cristy3ed852e2009-09-05 21:47:34 +00008051
cristy016e8b82012-12-26 12:11:06 +00008052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
8053$as_echo_n "checking for C compiler vendor... " >&6; }
8054if ${ax_cv_c_compiler_vendor+:} false; then :
8055 $as_echo_n "(cached) " >&6
8056else
8057 # note: don't check for gcc first since some other compilers define __GNUC__
8058 vendors="intel: __ICC,__ECC,__INTEL_COMPILER
8059 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__
8060 pathscale: __PATHCC__,__PATHSCALE__
8061 clang: __clang__
8062 gnu: __GNUC__
8063 sun: __SUNPRO_C,__SUNPRO_CC
8064 hp: __HP_cc,__HP_aCC
8065 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
8066 borland: __BORLANDC__,__TURBOC__
8067 comeau: __COMO__
8068 cray: _CRAYC
8069 kai: __KCC
8070 lcc: __LCC__
8071 sgi: __sgi,sgi
8072 microsoft: _MSC_VER
8073 metrowerks: __MWERKS__
8074 watcom: __WATCOMC__
8075 portland: __PGI
8076 unknown: UNKNOWN"
8077 for ventest in $vendors; do
8078 case $ventest in
8079 *:) vendor=$ventest; continue ;;
8080 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
8081 esac
8082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8083/* end confdefs.h. */
8084
8085int
8086main ()
8087{
8088
8089 #if !($vencpp)
8090 thisisanerror;
8091 #endif
8092
8093 ;
8094 return 0;
8095}
8096_ACEOF
8097if ac_fn_c_try_compile "$LINENO"; then :
8098 break
8099fi
8100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8101 done
8102 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
8103
8104fi
8105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
8106$as_echo "$ax_cv_c_compiler_vendor" >&6; }
8107
cristya0b81c32010-01-22 02:54:33 +00008108
8109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8110$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8111set x ${MAKE-make}
8112ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00008113if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00008114 $as_echo_n "(cached) " >&6
8115else
8116 cat >conftest.make <<\_ACEOF
8117SHELL = /bin/sh
8118all:
8119 @echo '@@@%%%=$(MAKE)=@@@%%%'
8120_ACEOF
cristy98dddb52010-11-04 00:30:15 +00008121# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00008122case `${MAKE-make} -f conftest.make 2>/dev/null` in
8123 *@@@%%%=?*=@@@%%%*)
8124 eval ac_cv_prog_make_${ac_make}_set=yes;;
8125 *)
8126 eval ac_cv_prog_make_${ac_make}_set=no;;
8127esac
8128rm -f conftest.make
8129fi
8130if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8132$as_echo "yes" >&6; }
8133 SET_MAKE=
8134else
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8136$as_echo "no" >&6; }
8137 SET_MAKE="MAKE=${MAKE-make}"
8138fi
8139
cristy8b350f62009-11-15 23:12:43 +00008140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00008141$as_echo_n "checking whether ln -s works... " >&6; }
8142LN_S=$as_ln_s
8143if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00008144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00008145$as_echo "yes" >&6; }
8146else
cristy8b350f62009-11-15 23:12:43 +00008147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00008148$as_echo "no, using $LN_S" >&6; }
8149fi
8150
cristy8d0ff762013-03-10 20:33:28 +00008151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8152$as_echo_n "checking for a sed that does not truncate output... " >&6; }
8153if ${ac_cv_path_SED+:} false; then :
8154 $as_echo_n "(cached) " >&6
8155else
8156 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8157 for ac_i in 1 2 3 4 5 6 7; do
8158 ac_script="$ac_script$as_nl$ac_script"
8159 done
8160 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8161 { ac_script=; unset ac_script;}
8162 if test -z "$SED"; then
8163 ac_path_SED_found=false
8164 # Loop through the user's path and test for each of PROGNAME-LIST
8165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8166for as_dir in $PATH
8167do
8168 IFS=$as_save_IFS
8169 test -z "$as_dir" && as_dir=.
8170 for ac_prog in sed gsed; do
8171 for ac_exec_ext in '' $ac_executable_extensions; do
8172 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8173 as_fn_executable_p "$ac_path_SED" || continue
8174# Check for GNU ac_path_SED and select it if it is found.
8175 # Check for GNU $ac_path_SED
8176case `"$ac_path_SED" --version 2>&1` in
8177*GNU*)
8178 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8179*)
8180 ac_count=0
8181 $as_echo_n 0123456789 >"conftest.in"
8182 while :
8183 do
8184 cat "conftest.in" "conftest.in" >"conftest.tmp"
8185 mv "conftest.tmp" "conftest.in"
8186 cp "conftest.in" "conftest.nl"
8187 $as_echo '' >> "conftest.nl"
8188 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8189 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8190 as_fn_arith $ac_count + 1 && ac_count=$as_val
8191 if test $ac_count -gt ${ac_path_SED_max-0}; then
8192 # Best one so far, save it but keep looking for a better one
8193 ac_cv_path_SED="$ac_path_SED"
8194 ac_path_SED_max=$ac_count
8195 fi
8196 # 10*(2^10) chars as input seems more than enough
8197 test $ac_count -gt 10 && break
8198 done
8199 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8200esac
8201
8202 $ac_path_SED_found && break 3
8203 done
8204 done
8205 done
8206IFS=$as_save_IFS
8207 if test -z "$ac_cv_path_SED"; then
8208 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8209 fi
8210else
8211 ac_cv_path_SED=$SED
8212fi
8213
8214fi
8215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8216$as_echo "$ac_cv_path_SED" >&6; }
8217 SED="$ac_cv_path_SED"
8218 rm -f conftest.sed
8219
cristybc556452012-08-17 19:44:03 +00008220for ac_prog in gawk mawk nawk awk
8221do
8222 # Extract the first word of "$ac_prog", so it can be a program name with args.
8223set dummy $ac_prog; ac_word=$2
8224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8225$as_echo_n "checking for $ac_word... " >&6; }
8226if ${ac_cv_prog_AWK+:} false; then :
8227 $as_echo_n "(cached) " >&6
8228else
8229 if test -n "$AWK"; then
8230 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8231else
8232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8233for as_dir in $PATH
8234do
8235 IFS=$as_save_IFS
8236 test -z "$as_dir" && as_dir=.
8237 for ac_exec_ext in '' $ac_executable_extensions; do
8238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8239 ac_cv_prog_AWK="$ac_prog"
8240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8241 break 2
8242 fi
8243done
8244 done
8245IFS=$as_save_IFS
8246
8247fi
8248fi
8249AWK=$ac_cv_prog_AWK
8250if test -n "$AWK"; then
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8252$as_echo "$AWK" >&6; }
8253else
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8255$as_echo "no" >&6; }
8256fi
8257
8258
8259 test -n "$AWK" && break
8260done
8261
cristy73bd4a52010-10-05 11:24:23 +00008262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
8263$as_echo_n "checking if malloc debugging is wanted... " >&6; }
8264
8265# Check whether --with-dmalloc was given.
8266if test "${with_dmalloc+set}" = set; then :
8267 withval=$with_dmalloc; if test "$withval" = yes; then
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8269$as_echo "yes" >&6; }
8270
8271$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
8272
8273 LIBS="$LIBS -ldmalloc"
8274 LDFLAGS="$LDFLAGS -g"
8275else
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8277$as_echo "no" >&6; }
8278fi
8279else
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8281$as_echo "no" >&6; }
8282fi
8283
8284
8285
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
8287$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008288if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008289 $as_echo_n "(cached) " >&6
8290else
8291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8292/* end confdefs.h. */
8293#include <stdlib.h>
cristy73380532012-02-18 20:26:28 +00008294 static void foo(void) __attribute__ ((__unused__));
cristy73bd4a52010-10-05 11:24:23 +00008295 static void
8296 foo(void) {
8297 exit(1);
8298 }
8299
8300int
8301main ()
8302{
8303
8304 ;
8305 return 0;
8306}
8307_ACEOF
8308if ac_fn_c_try_compile "$LINENO"; then :
8309 ax_cv___attribute__=yes
8310else
8311 ax_cv___attribute__=no
8312
8313fi
8314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8315
8316fi
8317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
8318$as_echo "$ax_cv___attribute__" >&6; }
8319 if test "$ax_cv___attribute__" = "yes"; then
8320
8321$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
8322
8323 fi
8324
8325
8326
cristy37110d62012-03-01 18:38:20 +00008327
8328
8329# Check whether --with-gcc-arch was given.
8330if test "${with_gcc_arch+set}" = set; then :
8331 withval=$with_gcc_arch; ax_gcc_arch=$withval
8332else
cristya32d1812012-03-02 19:24:21 +00008333 ax_gcc_arch=no
cristy37110d62012-03-01 18:38:20 +00008334fi
8335
8336
8337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8338$as_echo_n "checking for gcc architecture flag... " >&6; }
8339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8340$as_echo "" >&6; }
8341if ${ax_cv_gcc_archflag+:} false; then :
8342 $as_echo_n "(cached) " >&6
8343else
8344
8345ax_cv_gcc_archflag="unknown"
8346
8347if test "$GCC" = yes; then
8348
8349if test "x$ax_gcc_arch" = xyes; then
8350ax_gcc_arch=""
8351if test "$cross_compiling" = no; then
8352case $host_cpu in
8353 i[3456]86*|x86_64*) # use cpuid codes
8354
8355ac_ext=c
8356ac_cpp='$CPP $CPPFLAGS'
8357ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8358ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8359ac_compiler_gnu=$ac_cv_c_compiler_gnu
8360
8361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
8362$as_echo_n "checking for x86 cpuid 0 output... " >&6; }
8363if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
8364 $as_echo_n "(cached) " >&6
8365else
8366 if test "$cross_compiling" = yes; then :
8367 ax_cv_gcc_x86_cpuid_0=unknown
8368else
8369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8370/* end confdefs.h. */
8371#include <stdio.h>
8372int
8373main ()
8374{
8375
8376 int op = 0, eax, ebx, ecx, edx;
8377 FILE *f;
8378 __asm__("cpuid"
8379 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8380 : "a" (op));
8381 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8382 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8383 fclose(f);
8384 return 0;
8385
8386 ;
8387 return 0;
8388}
8389_ACEOF
8390if ac_fn_c_try_run "$LINENO"; then :
8391 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
8392else
8393 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
8394fi
8395rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8396 conftest.$ac_objext conftest.beam conftest.$ac_ext
8397fi
8398
8399fi
8400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
8401$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
8402ac_ext=c
8403ac_cpp='$CPP $CPPFLAGS'
8404ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8405ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8406ac_compiler_gnu=$ac_cv_c_compiler_gnu
8407
8408
8409
8410ac_ext=c
8411ac_cpp='$CPP $CPPFLAGS'
8412ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8413ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8414ac_compiler_gnu=$ac_cv_c_compiler_gnu
8415
8416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
8417$as_echo_n "checking for x86 cpuid 1 output... " >&6; }
8418if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
8419 $as_echo_n "(cached) " >&6
8420else
8421 if test "$cross_compiling" = yes; then :
8422 ax_cv_gcc_x86_cpuid_1=unknown
8423else
8424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8425/* end confdefs.h. */
8426#include <stdio.h>
8427int
8428main ()
8429{
8430
8431 int op = 1, eax, ebx, ecx, edx;
8432 FILE *f;
8433 __asm__("cpuid"
8434 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8435 : "a" (op));
8436 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8437 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8438 fclose(f);
8439 return 0;
8440
8441 ;
8442 return 0;
8443}
8444_ACEOF
8445if ac_fn_c_try_run "$LINENO"; then :
8446 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
8447else
8448 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
8449fi
8450rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8451 conftest.$ac_objext conftest.beam conftest.$ac_ext
8452fi
8453
8454fi
8455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
8456$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
8457ac_ext=c
8458ac_cpp='$CPP $CPPFLAGS'
8459ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8460ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8461ac_compiler_gnu=$ac_cv_c_compiler_gnu
8462
8463
8464 case $ax_cv_gcc_x86_cpuid_0 in
8465 *:756e6547:*:*) # Intel
8466 case $ax_cv_gcc_x86_cpuid_1 in
8467 *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
8468 *5??:*:*:*) ax_gcc_arch=pentium ;;
8469 *0?6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8470 *0?6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8471 *0?6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8472 *0?6[9de]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
8473 *0?6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8474 *0?6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
8475 *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
8476 *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) ax_gcc_arch="corei7 core2 pentium-m pentium3 pentiumpro" ;;
8477 *1?6c?:*:*:*|*[23]?66?:*:*:*) ax_gcc_arch="atom core2 pentium-m pentium3 pentiumpro" ;;
8478 *2?6[ad]?:*:*:*) ax_gcc_arch="corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8479 *0?6??:*:*:*) ax_gcc_arch=pentiumpro ;;
8480 *6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
8481 ?000?f3[347]:*:*:*|?000?f41347:*:*:*|?000?f6?:*:*:*)
8482 case $host_cpu in
8483 x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
8484 *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
8485 esac ;;
8486 ?000?f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
8487 esac ;;
8488 *:68747541:*:*) # AMD
8489 case $ax_cv_gcc_x86_cpuid_1 in
8490 *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
8491 *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
8492 *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
8493 *60?:*:*:*) ax_gcc_arch=k7 ;;
8494 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
8495 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
8496 *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
8497 *6[68a]?:*:*:*)
8498
8499ac_ext=c
8500ac_cpp='$CPP $CPPFLAGS'
8501ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8502ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8503ac_compiler_gnu=$ac_cv_c_compiler_gnu
8504
8505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5
8506$as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; }
8507if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then :
8508 $as_echo_n "(cached) " >&6
8509else
8510 if test "$cross_compiling" = yes; then :
8511 ax_cv_gcc_x86_cpuid_0x80000006=unknown
8512else
8513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8514/* end confdefs.h. */
8515#include <stdio.h>
8516int
8517main ()
8518{
8519
8520 int op = 0x80000006, eax, ebx, ecx, edx;
8521 FILE *f;
8522 __asm__("cpuid"
8523 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8524 : "a" (op));
8525 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8526 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8527 fclose(f);
8528 return 0;
8529
8530 ;
8531 return 0;
8532}
8533_ACEOF
8534if ac_fn_c_try_run "$LINENO"; then :
8535 ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid
8536else
8537 ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid
8538fi
8539rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8540 conftest.$ac_objext conftest.beam conftest.$ac_ext
8541fi
8542
8543fi
8544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5
8545$as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; }
8546ac_ext=c
8547ac_cpp='$CPP $CPPFLAGS'
8548ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8549ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8550ac_compiler_gnu=$ac_cv_c_compiler_gnu
8551
8552 # L2 cache size
8553 case $ax_cv_gcc_x86_cpuid_0x80000006 in
8554 *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256
8555 ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
8556 *) ax_gcc_arch="athlon-4 athlon k7" ;;
8557 esac ;;
8558 ?00??f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
8559 ?00??f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
8560 ?00??f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
8561 ?00??f??:*:*:*) ax_gcc_arch="k8" ;;
8562 ?05??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
8563 ?06??f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
8564 *f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
8565 esac ;;
8566 *:746e6543:*:*) # IDT
8567 case $ax_cv_gcc_x86_cpuid_1 in
8568 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
8569 *58?:*:*:*) ax_gcc_arch=winchip2 ;;
8570 *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
8571 *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
8572 esac ;;
8573 esac
8574 if test x"$ax_gcc_arch" = x; then # fallback
8575 case $host_cpu in
8576 i586*) ax_gcc_arch=pentium ;;
8577 i686*) ax_gcc_arch=pentiumpro ;;
8578 esac
8579 fi
8580 ;;
8581
8582 sparc*)
8583 # Extract the first word of "prtdiag", so it can be a program name with args.
8584set dummy prtdiag; ac_word=$2
8585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8586$as_echo_n "checking for $ac_word... " >&6; }
8587if ${ac_cv_path_PRTDIAG+:} false; then :
8588 $as_echo_n "(cached) " >&6
8589else
8590 case $PRTDIAG in
8591 [\\/]* | ?:[\\/]*)
8592 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
8593 ;;
8594 *)
8595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8596as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
8597for as_dir in $as_dummy
8598do
8599 IFS=$as_save_IFS
8600 test -z "$as_dir" && as_dir=.
8601 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy37110d62012-03-01 18:38:20 +00008603 ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
8604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8605 break 2
8606 fi
8607done
8608 done
8609IFS=$as_save_IFS
8610
8611 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
8612 ;;
8613esac
8614fi
8615PRTDIAG=$ac_cv_path_PRTDIAG
8616if test -n "$PRTDIAG"; then
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
8618$as_echo "$PRTDIAG" >&6; }
8619else
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8621$as_echo "no" >&6; }
8622fi
8623
8624
8625 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`
8626 cputype=`echo "$cputype" | tr -d ' -' |tr $as_cr_LETTERS $as_cr_letters`
8627 case $cputype in
8628 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
8629 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
8630 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
8631 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
8632 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
8633 *cypress*) ax_gcc_arch=cypress ;;
8634 esac ;;
8635
8636 alphaev5) ax_gcc_arch=ev5 ;;
8637 alphaev56) ax_gcc_arch=ev56 ;;
8638 alphapca56) ax_gcc_arch="pca56 ev56" ;;
8639 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
8640 alphaev6) ax_gcc_arch=ev6 ;;
8641 alphaev67) ax_gcc_arch=ev67 ;;
8642 alphaev68) ax_gcc_arch="ev68 ev67" ;;
8643 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
8644 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
8645 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
8646
8647 powerpc*)
8648 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`
8649 cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'`
8650 case $cputype in
8651 *750*) ax_gcc_arch="750 G3" ;;
8652 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
8653 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
8654 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
8655 *970*) ax_gcc_arch="970 G5 power4";;
8656 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
8657 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
8658 603ev|8240) ax_gcc_arch="$cputype 603e 603";;
8659 *) ax_gcc_arch=$cputype ;;
8660 esac
8661 ax_gcc_arch="$ax_gcc_arch powerpc"
8662 ;;
8663esac
8664fi # not cross-compiling
8665fi # guess arch
8666
8667if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
8668for arch in $ax_gcc_arch; do
cristya32d1812012-03-02 19:24:21 +00008669 if test "xno" = xyes; then # if we require portable code
cristy37110d62012-03-01 18:38:20 +00008670 flags="-mtune=$arch"
8671 # -mcpu=$arch and m$arch generate nonportable code on every arch except
8672 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr.
8673 case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
8674 else
8675 flags="-march=$arch -mcpu=$arch -m$arch"
8676 fi
8677 for flag in $flags; do
8678 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
8679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
8680$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
8681if eval \${$as_CACHEVAR+:} false; then :
8682 $as_echo_n "(cached) " >&6
8683else
8684
8685 ax_check_save_flags=$CFLAGS
8686 CFLAGS="$CFLAGS $flag"
8687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8688/* end confdefs.h. */
8689
8690int
8691main ()
8692{
8693
8694 ;
8695 return 0;
8696}
8697_ACEOF
8698if ac_fn_c_try_compile "$LINENO"; then :
8699 eval "$as_CACHEVAR=yes"
8700else
8701 eval "$as_CACHEVAR=no"
8702fi
8703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8704 CFLAGS=$ax_check_save_flags
8705fi
8706eval ac_res=\$$as_CACHEVAR
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8708$as_echo "$ac_res" >&6; }
8709if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
8710 ax_cv_gcc_archflag=$flag; break
8711else
8712 :
8713fi
8714
8715 done
8716 test "x$ax_cv_gcc_archflag" = xunknown || break
8717done
8718fi
8719
8720fi # $GCC=yes
8721
8722fi
8723
8724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8725$as_echo_n "checking for gcc architecture flag... " >&6; }
8726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
8727$as_echo "$ax_cv_gcc_archflag" >&6; }
8728if test "x$ax_cv_gcc_archflag" = xunknown; then
8729 :
8730else
8731 CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
8732fi
8733
8734
8735
cristy73bd4a52010-10-05 11:24:23 +00008736if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8737 if test -n "$ac_tool_prefix"; then
8738 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8739set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8741$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008742if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008743 $as_echo_n "(cached) " >&6
8744else
8745 case $PKG_CONFIG in
8746 [\\/]* | ?:[\\/]*)
8747 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8748 ;;
8749 *)
8750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8751for as_dir in $PATH
8752do
8753 IFS=$as_save_IFS
8754 test -z "$as_dir" && as_dir=.
8755 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008757 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8759 break 2
8760 fi
8761done
8762 done
8763IFS=$as_save_IFS
8764
8765 ;;
8766esac
8767fi
8768PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8769if test -n "$PKG_CONFIG"; then
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8771$as_echo "$PKG_CONFIG" >&6; }
8772else
8773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8774$as_echo "no" >&6; }
8775fi
8776
8777
8778fi
8779if test -z "$ac_cv_path_PKG_CONFIG"; then
8780 ac_pt_PKG_CONFIG=$PKG_CONFIG
8781 # Extract the first word of "pkg-config", so it can be a program name with args.
8782set dummy pkg-config; ac_word=$2
8783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8784$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008785if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008786 $as_echo_n "(cached) " >&6
8787else
8788 case $ac_pt_PKG_CONFIG in
8789 [\\/]* | ?:[\\/]*)
8790 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8791 ;;
8792 *)
8793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8794for as_dir in $PATH
8795do
8796 IFS=$as_save_IFS
8797 test -z "$as_dir" && as_dir=.
8798 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008800 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8802 break 2
8803 fi
8804done
8805 done
8806IFS=$as_save_IFS
8807
8808 ;;
8809esac
8810fi
8811ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8812if test -n "$ac_pt_PKG_CONFIG"; then
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8814$as_echo "$ac_pt_PKG_CONFIG" >&6; }
8815else
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8817$as_echo "no" >&6; }
8818fi
8819
8820 if test "x$ac_pt_PKG_CONFIG" = x; then
8821 PKG_CONFIG=""
8822 else
8823 case $cross_compiling:$ac_tool_warned in
8824yes:)
8825{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8826$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8827ac_tool_warned=yes ;;
8828esac
8829 PKG_CONFIG=$ac_pt_PKG_CONFIG
8830 fi
8831else
8832 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8833fi
8834
8835fi
8836if test -n "$PKG_CONFIG"; then
8837 _pkg_min_version=0.9.0
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8839$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8840 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8842$as_echo "yes" >&6; }
8843 else
8844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8845$as_echo "no" >&6; }
8846 PKG_CONFIG=""
8847 fi
8848
8849fi
cristy3ed852e2009-09-05 21:47:34 +00008850
cristy9b86f202012-11-28 21:55:35 +00008851# Check for linker script support
8852
8853 # Check whether --enable-ld-version-script was given.
8854if test "${enable_ld_version_script+set}" = set; then :
8855 enableval=$enable_ld_version_script; have_ld_version_script=$enableval
8856fi
8857
8858 if test -z "$have_ld_version_script"; then
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
8860$as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
8861 save_LDFLAGS="$LDFLAGS"
8862 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
8863 cat > conftest.map <<EOF
8864foo
8865EOF
8866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8867/* end confdefs.h. */
8868
8869int
8870main ()
8871{
8872
8873 ;
8874 return 0;
8875}
8876_ACEOF
8877if ac_fn_c_try_link "$LINENO"; then :
8878 accepts_syntax_errors=yes
8879else
8880 accepts_syntax_errors=no
8881fi
8882rm -f core conftest.err conftest.$ac_objext \
8883 conftest$ac_exeext conftest.$ac_ext
8884 if test "$accepts_syntax_errors" = no; then
8885 cat > conftest.map <<EOF
8886VERS_1 {
8887 global: sym;
8888};
8889
8890VERS_2 {
8891 global: sym;
8892} VERS_1;
8893EOF
8894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8895/* end confdefs.h. */
8896
8897int
8898main ()
8899{
8900
8901 ;
8902 return 0;
8903}
8904_ACEOF
8905if ac_fn_c_try_link "$LINENO"; then :
8906 have_ld_version_script=yes
8907else
8908 have_ld_version_script=no
8909fi
8910rm -f core conftest.err conftest.$ac_objext \
8911 conftest$ac_exeext conftest.$ac_ext
8912 else
8913 have_ld_version_script=no
8914 fi
8915 rm -f conftest.map
8916 LDFLAGS="$save_LDFLAGS"
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
8918$as_echo "$have_ld_version_script" >&6; }
8919 fi
8920 if test "$have_ld_version_script" = "yes"; then
8921 HAVE_LD_VERSION_SCRIPT_TRUE=
8922 HAVE_LD_VERSION_SCRIPT_FALSE='#'
8923else
8924 HAVE_LD_VERSION_SCRIPT_TRUE='#'
8925 HAVE_LD_VERSION_SCRIPT_FALSE=
8926fi
8927
8928
8929
cristy3ed852e2009-09-05 21:47:34 +00008930#
cristy3ed852e2009-09-05 21:47:34 +00008931# Enable run-time checking.
8932#
8933# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00008934if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008935 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
8936else
8937 enable_bounds_checking='no'
8938fi
8939
8940
8941if test "$enable_bounds_checking" = yes; then
8942
cristy8b350f62009-11-15 23:12:43 +00008943$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008944
8945fi
8946
8947#
8948# Tests for Windows
8949#
8950
8951
8952
8953GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00008954native_win32_build='no'
8955cygwin_build='no'
8956case "${host_os}" in
8957 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00008958 cygwin_build='yes'
8959 GDI32_LIBS='-lgdi32'
8960 ;;
8961 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00008962 native_win32_build='yes'
8963 GDI32_LIBS='-lgdi32'
8964 ;;
8965esac
8966if test "${GDI32_LIBS}x" != 'x'; then
8967
cristy8b350f62009-11-15 23:12:43 +00008968$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008969
8970fi
8971
cristy73bd4a52010-10-05 11:24:23 +00008972 if test "${GDI32_LIBS}x" != 'x' ; then
8973 WINGDI32_DELEGATE_TRUE=
8974 WINGDI32_DELEGATE_FALSE='#'
8975else
8976 WINGDI32_DELEGATE_TRUE='#'
8977 WINGDI32_DELEGATE_FALSE=
8978fi
8979
8980 if test "${native_win32_build}" = 'yes' ; then
8981 WIN32_NATIVE_BUILD_TRUE=
8982 WIN32_NATIVE_BUILD_FALSE='#'
8983else
8984 WIN32_NATIVE_BUILD_TRUE='#'
8985 WIN32_NATIVE_BUILD_FALSE=
8986fi
8987
8988 if test "${cygwin_build}" = 'yes' ; then
8989 CYGWIN_BUILD_TRUE=
8990 CYGWIN_BUILD_FALSE='#'
8991else
8992 CYGWIN_BUILD_TRUE='#'
8993 CYGWIN_BUILD_FALSE=
8994fi
8995
8996 if test "x${CC}" = 'xcl.exe' ; then
8997 USING_CL_TRUE=
8998 USING_CL_FALSE='#'
8999else
9000 USING_CL_TRUE='#'
9001 USING_CL_FALSE=
9002fi
9003
cristy3ed852e2009-09-05 21:47:34 +00009004
9005WinPathScript="${srcdirfull}/winpath.sh"
9006
9007
9008#
9009# Compiler flags tweaks
9010#
9011if test "${GCC}" != "yes"; then
9012 case "${host}" in
9013 *-*-hpux* )
9014 # aCC: HP ANSI C++ B3910B A.03.34
9015 CFLAGS="${CFLAGS} -Wp,-H30000"
9016 if test -n "${CXXFLAGS}"; then
9017 CXXFLAGS='-AA'
9018 else
9019 CXXFLAGS="${CXXFLAGS} -AA"
9020 fi
9021 ;;
9022 *-dec-osf5.* )
9023 # Compaq alphaev68-dec-osf5.1 compiler
9024 if test -n "${CXXFLAGS}"; then
9025 CXXFLAGS='-std strict_ansi -noimplicit_include'
9026 else
9027 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
9028 fi
9029 esac
9030fi
9031
9032# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00009033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00009034$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009035if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009036 $as_echo_n "(cached) " >&6
9037else
9038
9039im_cv_ld_lazyload='none'
9040case "${host}" in
9041 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
9042 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
9043 im_cv_ld_lazyload='-Wl,-zlazyload'
9044 fi
9045 ;;
9046esac
9047
9048fi
cristy8b350f62009-11-15 23:12:43 +00009049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00009050$as_echo "$im_cv_ld_lazyload" >&6; }
9051if test "${im_cv_ld_lazyload}" != 'none' ; then
9052 if test -z "${LDFLAGS}" ; then
9053 LDFLAGS="${im_cv_ld_lazyload}"
9054 else
9055 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
9056 fi
9057fi
9058
9059case "$host" in
cristyc37574e2013-02-16 01:04:55 +00009060 *darwin* | *-macos10*)
cristyb3b90d32013-02-16 15:44:08 +00009061 CFLAGS="${CFLAGS} -D_FORTIFY_SOURCE=0"
cristyc37574e2013-02-16 01:04:55 +00009062 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00009063if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009064 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
9065else
9066 build_osxuniversal=no
9067fi
9068
9069
cristyc37574e2013-02-16 01:04:55 +00009070 if test "${build_osxuniversal}" != no ; then
9071 if test "$enable_dependency_tracking" != no ; then
9072 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00009073Please re-run configure with these options:
9074 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00009075 " "$LINENO" 5
cristyc37574e2013-02-16 01:04:55 +00009076 fi
9077 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9078 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9079 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
cristy3ed852e2009-09-05 21:47:34 +00009080 fi
9081 ;;
9082esac
9083
cristy0151ae12011-10-28 16:32:29 +00009084#
9085# ARCH specific include directory
9086#
9087
cristy670aa3c2011-11-03 00:54:00 +00009088# Check whether --with-includearch-dir was given.
9089if test "${with_includearch_dir+set}" = set; then :
9090 withval=$with_includearch_dir; includearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00009091else
cristy670aa3c2011-11-03 00:54:00 +00009092 includearch_dir=$INCLUDE_DIR
cristy0151ae12011-10-28 16:32:29 +00009093fi
9094
9095
cristyd286fd72013-02-24 19:25:33 +00009096eval "eval INCLUDEARCH_DIR=$includearch_dir"
cristyac9041a2011-10-28 16:52:32 +00009097
cristy0151ae12011-10-28 16:32:29 +00009098
9099#
9100# ARCH specific configuration directory
9101#
9102
cristy670aa3c2011-11-03 00:54:00 +00009103# Check whether --with-sharearch-dir was given.
9104if test "${with_sharearch_dir+set}" = set; then :
9105 withval=$with_sharearch_dir; sharearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00009106else
cristy408ebcd2011-11-14 01:36:57 +00009107 sharearch_dir="${LIB_DIR}"
cristy0151ae12011-10-28 16:32:29 +00009108fi
9109
9110
cristy670aa3c2011-11-03 00:54:00 +00009111eval "eval SHAREARCH_DIR=$sharearch_dir"
cristyac9041a2011-10-28 16:52:32 +00009112
cristy0151ae12011-10-28 16:32:29 +00009113
cristy2ec87cc2013-02-18 17:46:50 +00009114# Path to the pkgconfig folder
9115
9116# Check whether --with-pkgconfigdir was given.
9117if test "${with_pkgconfigdir+set}" = set; then :
9118 withval=$with_pkgconfigdir; pkgconfigdir="$withval"
9119else
9120 pkgconfigdir='${libdir}/pkgconfig'
9121fi
9122
9123
9124
cristy0151ae12011-10-28 16:32:29 +00009125#
cristy3ed852e2009-09-05 21:47:34 +00009126# Enable support for threads
cristy1ae5c992013-07-30 14:55:07 +00009127#
9128# Find Posix threads library
9129#
cristy3ed852e2009-09-05 21:47:34 +00009130
9131# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00009132if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009133 withval=$with_threads; with_threads=$withval
9134else
9135 with_threads='yes'
9136fi
9137
9138
cristy1ae5c992013-07-30 14:55:07 +00009139THREAD_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00009140have_threads=no
9141if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00009142
9143
cristy73bd4a52010-10-05 11:24:23 +00009144ac_ext=c
9145ac_cpp='$CPP $CPPFLAGS'
9146ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9147ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9148ac_compiler_gnu=$ac_cv_c_compiler_gnu
9149
9150ax_pthread_ok=no
9151
9152# We used to check for pthread.h first, but this fails if pthread.h
9153# requires special compiler flags (e.g. on True64 or Sequent).
9154# It gets checked for in the link test anyway.
9155
9156# First of all, check if the user has set any of the PTHREAD_LIBS,
9157# etcetera environment variables, and if threads linking works using
9158# them:
9159if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9160 save_CFLAGS="$CFLAGS"
9161 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9162 save_LIBS="$LIBS"
9163 LIBS="$PTHREAD_LIBS $LIBS"
9164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9165$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9167/* end confdefs.h. */
9168
9169/* Override any GCC internal prototype to avoid an error.
9170 Use char because int might match the return type of a GCC
9171 builtin and then its argument prototype would still apply. */
9172#ifdef __cplusplus
9173extern "C"
9174#endif
9175char pthread_join ();
9176int
9177main ()
9178{
9179return pthread_join ();
9180 ;
9181 return 0;
9182}
9183_ACEOF
9184if ac_fn_c_try_link "$LINENO"; then :
9185 ax_pthread_ok=yes
9186fi
9187rm -f core conftest.err conftest.$ac_objext \
9188 conftest$ac_exeext conftest.$ac_ext
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9190$as_echo "$ax_pthread_ok" >&6; }
9191 if test x"$ax_pthread_ok" = xno; then
9192 PTHREAD_LIBS=""
9193 PTHREAD_CFLAGS=""
9194 fi
9195 LIBS="$save_LIBS"
9196 CFLAGS="$save_CFLAGS"
9197fi
9198
9199# We must check for the threads library under a number of different
9200# names; the ordering is very important because some systems
9201# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9202# libraries is broken (non-POSIX).
9203
9204# Create a list of thread flags to try. Items starting with a "-" are
9205# C compiler flags, and other items are library names, except for "none"
9206# which indicates that we try without any flags at all, and "pthread-config"
9207# which is a program returning the flags for the Pth emulation library.
9208
cristy2ec87cc2013-02-18 17:46:50 +00009209ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009210
9211# The ordering *is* (sometimes) important. Some notes on the
9212# individual items follow:
9213
9214# pthreads: AIX (must check this before -lpthread)
9215# none: in case threads are in libc; should be tried before -Kthread and
9216# other compiler flags to prevent continual compiler warnings
9217# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9218# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9219# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9220# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9221# -pthreads: Solaris/gcc
9222# -mthreads: Mingw32/gcc, Lynx/gcc
9223# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9224# doesn't hurt to check since this sometimes defines pthreads too;
9225# also defines -D_REENTRANT)
9226# ... -mt is also the pthreads flag for HP/aCC
9227# pthread: Linux, etcetera
9228# --thread-safe: KAI C++
9229# pthread-config: use pthread-config program (for GNU Pth library)
9230
cristy2ec87cc2013-02-18 17:46:50 +00009231case ${host_os} in
9232 solaris*)
cristy73bd4a52010-10-05 11:24:23 +00009233
9234 # On Solaris (at least, for some versions), libc contains stubbed
9235 # (non-functional) versions of the pthreads routines, so link-based
9236 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9237 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9238 # a function called by this macro, so we could check for that, but
9239 # who knows whether they'll stub that too in a future libc.) So,
9240 # we'll just look for -pthreads and -lpthread first:
9241
9242 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9243 ;;
9244
cristy2ec87cc2013-02-18 17:46:50 +00009245 darwin*)
cristya316db12011-10-24 00:49:45 +00009246 ax_pthread_flags="-pthread $ax_pthread_flags"
9247 ;;
cristy73bd4a52010-10-05 11:24:23 +00009248esac
9249
9250if test x"$ax_pthread_ok" = xno; then
9251for flag in $ax_pthread_flags; do
9252
9253 case $flag in
9254 none)
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9256$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9257 ;;
9258
9259 -*)
9260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9261$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9262 PTHREAD_CFLAGS="$flag"
9263 ;;
9264
cristya316db12011-10-24 00:49:45 +00009265 pthread-config)
9266 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009267set dummy pthread-config; ac_word=$2
9268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9269$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009270if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009271 $as_echo_n "(cached) " >&6
9272else
9273 if test -n "$ax_pthread_config"; then
9274 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9275else
9276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9277for as_dir in $PATH
9278do
9279 IFS=$as_save_IFS
9280 test -z "$as_dir" && as_dir=.
9281 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009283 ac_cv_prog_ax_pthread_config="yes"
9284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9285 break 2
9286 fi
9287done
9288 done
9289IFS=$as_save_IFS
9290
9291 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9292fi
9293fi
9294ax_pthread_config=$ac_cv_prog_ax_pthread_config
9295if test -n "$ax_pthread_config"; then
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9297$as_echo "$ax_pthread_config" >&6; }
9298else
9299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9300$as_echo "no" >&6; }
9301fi
9302
9303
cristya316db12011-10-24 00:49:45 +00009304 if test x"$ax_pthread_config" = xno; then continue; fi
9305 PTHREAD_CFLAGS="`pthread-config --cflags`"
9306 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9307 ;;
cristy73bd4a52010-10-05 11:24:23 +00009308
9309 *)
9310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9311$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9312 PTHREAD_LIBS="-l$flag"
9313 ;;
9314 esac
9315
9316 save_LIBS="$LIBS"
9317 save_CFLAGS="$CFLAGS"
9318 LIBS="$PTHREAD_LIBS $LIBS"
9319 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9320
9321 # Check for various functions. We must include pthread.h,
9322 # since some functions may be macros. (On the Sequent, we
9323 # need a special flag -Kthread to make this header compile.)
9324 # We check for pthread_join because it is in -lpthread on IRIX
9325 # while pthread_create is in libc. We check for pthread_attr_init
9326 # due to DEC craziness with -lpthreads. We check for
9327 # pthread_cleanup_push because it is one of the few pthread
9328 # functions on Solaris that doesn't have a non-functional libc stub.
9329 # We try pthread_create on general principles.
9330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9331/* end confdefs.h. */
9332#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009333 static void routine(void *a) { a = 0; }
9334 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009335int
9336main ()
9337{
9338pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009339 pthread_create(&th, 0, start_routine, 0);
9340 pthread_join(th, 0);
9341 pthread_attr_init(&attr);
9342 pthread_cleanup_push(routine, 0);
9343 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009344 ;
9345 return 0;
9346}
9347_ACEOF
9348if ac_fn_c_try_link "$LINENO"; then :
9349 ax_pthread_ok=yes
9350fi
9351rm -f core conftest.err conftest.$ac_objext \
9352 conftest$ac_exeext conftest.$ac_ext
9353
9354 LIBS="$save_LIBS"
9355 CFLAGS="$save_CFLAGS"
9356
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9358$as_echo "$ax_pthread_ok" >&6; }
9359 if test "x$ax_pthread_ok" = xyes; then
9360 break;
9361 fi
9362
9363 PTHREAD_LIBS=""
9364 PTHREAD_CFLAGS=""
9365done
9366fi
9367
9368# Various other checks:
9369if test "x$ax_pthread_ok" = xyes; then
9370 save_LIBS="$LIBS"
9371 LIBS="$PTHREAD_LIBS $LIBS"
9372 save_CFLAGS="$CFLAGS"
9373 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9374
9375 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009377$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009378 attr_name=unknown
9379 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009381/* end confdefs.h. */
9382#include <pthread.h>
9383int
9384main ()
9385{
cristya316db12011-10-24 00:49:45 +00009386int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009387 ;
9388 return 0;
9389}
9390_ACEOF
9391if ac_fn_c_try_link "$LINENO"; then :
9392 attr_name=$attr; break
9393fi
9394rm -f core conftest.err conftest.$ac_objext \
9395 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009396 done
cristy73bd4a52010-10-05 11:24:23 +00009397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9398$as_echo "$attr_name" >&6; }
9399 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9400
9401cat >>confdefs.h <<_ACEOF
9402#define PTHREAD_CREATE_JOINABLE $attr_name
9403_ACEOF
9404
9405 fi
9406
9407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9408$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9409 flag=no
cristy2ec87cc2013-02-18 17:46:50 +00009410 case ${host_os} in
9411 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
9412 osf* | hpux*) flag="-D_REENTRANT";;
9413 solaris*)
9414 if test "$GCC" = "yes"; then
9415 flag="-D_REENTRANT"
9416 else
9417 flag="-mt -D_REENTRANT"
9418 fi
9419 ;;
cristy73bd4a52010-10-05 11:24:23 +00009420 esac
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9422$as_echo "${flag}" >&6; }
9423 if test "x$flag" != xno; then
9424 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9425 fi
9426
cristya316db12011-10-24 00:49:45 +00009427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9428$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9429if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9430 $as_echo_n "(cached) " >&6
9431else
9432
9433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9434/* end confdefs.h. */
9435
9436 #include <pthread.h>
9437int
9438main ()
9439{
9440int i = PTHREAD_PRIO_INHERIT;
9441 ;
9442 return 0;
9443}
9444_ACEOF
9445if ac_fn_c_try_link "$LINENO"; then :
9446 ax_cv_PTHREAD_PRIO_INHERIT=yes
9447else
9448 ax_cv_PTHREAD_PRIO_INHERIT=no
9449fi
9450rm -f core conftest.err conftest.$ac_objext \
9451 conftest$ac_exeext conftest.$ac_ext
9452
9453fi
9454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9455$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9456 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9457
9458$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9459
9460fi
9461
cristy73bd4a52010-10-05 11:24:23 +00009462 LIBS="$save_LIBS"
9463 CFLAGS="$save_CFLAGS"
9464
cristy23493c42013-04-11 16:04:59 +00009465 # More AIX lossage: compile with *_r variant
9466 if test "x$GCC" != xyes; then
9467 case $host_os in
9468 aix*)
9469 case "x/$CC" in #(
9470 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
9471 #handle absolute path differently from PATH based program lookup
9472 case "x$CC" in #(
9473 x/*) :
9474 if as_fn_executable_p ${CC}_r; then :
9475 PTHREAD_CC="${CC}_r"
9476fi ;; #(
9477 *) :
9478 for ac_prog in ${CC}_r
cristy73bd4a52010-10-05 11:24:23 +00009479do
9480 # Extract the first word of "$ac_prog", so it can be a program name with args.
9481set dummy $ac_prog; ac_word=$2
9482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9483$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009484if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009485 $as_echo_n "(cached) " >&6
9486else
9487 if test -n "$PTHREAD_CC"; then
9488 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9489else
9490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9491for as_dir in $PATH
9492do
9493 IFS=$as_save_IFS
9494 test -z "$as_dir" && as_dir=.
9495 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009497 ac_cv_prog_PTHREAD_CC="$ac_prog"
9498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9499 break 2
9500 fi
9501done
9502 done
9503IFS=$as_save_IFS
9504
9505fi
9506fi
9507PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9508if test -n "$PTHREAD_CC"; then
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9510$as_echo "$PTHREAD_CC" >&6; }
9511else
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9513$as_echo "no" >&6; }
9514fi
9515
9516
9517 test -n "$PTHREAD_CC" && break
9518done
cristy23493c42013-04-11 16:04:59 +00009519test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9520 ;;
9521esac ;; #(
9522 *) :
9523 ;;
9524esac
9525 ;;
9526 esac
cristya316db12011-10-24 00:49:45 +00009527 fi
cristy73bd4a52010-10-05 11:24:23 +00009528fi
9529
cristy23493c42013-04-11 16:04:59 +00009530test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9531
cristy73bd4a52010-10-05 11:24:23 +00009532
9533
9534
9535
9536# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9537if test x"$ax_pthread_ok" = xyes; then
9538
9539$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9540
9541 :
9542else
9543 ax_pthread_ok=no
9544
9545fi
9546ac_ext=c
9547ac_cpp='$CPP $CPPFLAGS'
9548ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9549ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9550ac_compiler_gnu=$ac_cv_c_compiler_gnu
9551
9552
cristy7acf8fb2010-09-23 19:58:53 +00009553 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00009554 have_threads=yes
9555 DEF_THREAD="$PTHREAD_CFLAGS"
9556 CFLAGS="$CFLAGS $DEF_THREAD"
9557 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
cristy1ae5c992013-07-30 14:55:07 +00009558 THREAD_LIBS="$PTHREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +00009559 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00009560 { $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 +00009561$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
9562 CC="$PTHREAD_CC"
9563 fi
cristy55bf91c2010-09-24 00:29:41 +00009564
9565$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
9566
cristy3ed852e2009-09-05 21:47:34 +00009567 fi
9568fi
cristy1ae5c992013-07-30 14:55:07 +00009569LIBS="$LIBS $THREAD_LIBS"
9570
cristy3ed852e2009-09-05 21:47:34 +00009571
9572# Enable support for OpenMP
9573if test "$have_threads" != 'yes'; then
9574 ac_cv_prog_c_openmp=unsupported
9575fi
9576
9577 OPENMP_CFLAGS=
9578 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00009579if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009580 enableval=$enable_openmp;
9581fi
9582
9583 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00009584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009585$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009586if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009587 $as_echo_n "(cached) " >&6
9588else
cristy8b350f62009-11-15 23:12:43 +00009589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9590/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009591
9592#ifndef _OPENMP
9593 choke me
9594#endif
9595#include <omp.h>
9596int main () { return omp_get_num_threads (); }
9597
9598_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009599if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009600 ac_cv_prog_c_openmp='none needed'
9601else
cristy8b350f62009-11-15 23:12:43 +00009602 ac_cv_prog_c_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +00009603 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
9604 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +00009605 ac_save_CFLAGS=$CFLAGS
9606 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00009607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9608/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009609
9610#ifndef _OPENMP
9611 choke me
9612#endif
9613#include <omp.h>
9614int main () { return omp_get_num_threads (); }
9615
9616_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009617if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009618 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00009619fi
cristy8b350f62009-11-15 23:12:43 +00009620rm -f core conftest.err conftest.$ac_objext \
9621 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009622 CFLAGS=$ac_save_CFLAGS
9623 if test "$ac_cv_prog_c_openmp" != unsupported; then
9624 break
9625 fi
9626 done
9627fi
cristy8b350f62009-11-15 23:12:43 +00009628rm -f core conftest.err conftest.$ac_objext \
9629 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009630fi
cristy8b350f62009-11-15 23:12:43 +00009631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00009632$as_echo "$ac_cv_prog_c_openmp" >&6; }
9633 case $ac_cv_prog_c_openmp in #(
9634 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00009635 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00009636 *)
cristy8b350f62009-11-15 23:12:43 +00009637 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00009638 esac
9639 fi
9640
9641
9642CFLAGS="$OPENMP_CFLAGS $CFLAGS"
9643MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
9644
cristy391f1ce2010-09-09 17:23:28 +00009645if test "$enable_openmp" != no; then
9646 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
9647 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
9648 fi
9649fi
cristy3ed852e2009-09-05 21:47:34 +00009650
cristy736173a2009-09-20 21:18:22 +00009651# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00009652
9653
cristy73bd4a52010-10-05 11:24:23 +00009654ac_ext=c
9655ac_cpp='$CPP $CPPFLAGS'
9656ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9657ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9658ac_compiler_gnu=$ac_cv_c_compiler_gnu
9659
9660ax_pthread_ok=no
9661
9662# We used to check for pthread.h first, but this fails if pthread.h
9663# requires special compiler flags (e.g. on True64 or Sequent).
9664# It gets checked for in the link test anyway.
9665
9666# First of all, check if the user has set any of the PTHREAD_LIBS,
9667# etcetera environment variables, and if threads linking works using
9668# them:
9669if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9670 save_CFLAGS="$CFLAGS"
9671 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9672 save_LIBS="$LIBS"
9673 LIBS="$PTHREAD_LIBS $LIBS"
9674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9675$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9677/* end confdefs.h. */
9678
9679/* Override any GCC internal prototype to avoid an error.
9680 Use char because int might match the return type of a GCC
9681 builtin and then its argument prototype would still apply. */
9682#ifdef __cplusplus
9683extern "C"
9684#endif
9685char pthread_join ();
9686int
9687main ()
9688{
9689return pthread_join ();
9690 ;
9691 return 0;
9692}
9693_ACEOF
9694if ac_fn_c_try_link "$LINENO"; then :
9695 ax_pthread_ok=yes
9696fi
9697rm -f core conftest.err conftest.$ac_objext \
9698 conftest$ac_exeext conftest.$ac_ext
9699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9700$as_echo "$ax_pthread_ok" >&6; }
9701 if test x"$ax_pthread_ok" = xno; then
9702 PTHREAD_LIBS=""
9703 PTHREAD_CFLAGS=""
9704 fi
9705 LIBS="$save_LIBS"
9706 CFLAGS="$save_CFLAGS"
9707fi
9708
9709# We must check for the threads library under a number of different
9710# names; the ordering is very important because some systems
9711# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9712# libraries is broken (non-POSIX).
9713
9714# Create a list of thread flags to try. Items starting with a "-" are
9715# C compiler flags, and other items are library names, except for "none"
9716# which indicates that we try without any flags at all, and "pthread-config"
9717# which is a program returning the flags for the Pth emulation library.
9718
cristy2ec87cc2013-02-18 17:46:50 +00009719ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009720
9721# The ordering *is* (sometimes) important. Some notes on the
9722# individual items follow:
9723
9724# pthreads: AIX (must check this before -lpthread)
9725# none: in case threads are in libc; should be tried before -Kthread and
9726# other compiler flags to prevent continual compiler warnings
9727# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9728# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9729# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9730# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9731# -pthreads: Solaris/gcc
9732# -mthreads: Mingw32/gcc, Lynx/gcc
9733# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9734# doesn't hurt to check since this sometimes defines pthreads too;
9735# also defines -D_REENTRANT)
9736# ... -mt is also the pthreads flag for HP/aCC
9737# pthread: Linux, etcetera
9738# --thread-safe: KAI C++
9739# pthread-config: use pthread-config program (for GNU Pth library)
9740
cristy2ec87cc2013-02-18 17:46:50 +00009741case ${host_os} in
9742 solaris*)
cristy73bd4a52010-10-05 11:24:23 +00009743
9744 # On Solaris (at least, for some versions), libc contains stubbed
9745 # (non-functional) versions of the pthreads routines, so link-based
9746 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9747 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9748 # a function called by this macro, so we could check for that, but
9749 # who knows whether they'll stub that too in a future libc.) So,
9750 # we'll just look for -pthreads and -lpthread first:
9751
9752 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9753 ;;
9754
cristy2ec87cc2013-02-18 17:46:50 +00009755 darwin*)
cristya316db12011-10-24 00:49:45 +00009756 ax_pthread_flags="-pthread $ax_pthread_flags"
9757 ;;
cristy73bd4a52010-10-05 11:24:23 +00009758esac
9759
9760if test x"$ax_pthread_ok" = xno; then
9761for flag in $ax_pthread_flags; do
9762
9763 case $flag in
9764 none)
9765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9766$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9767 ;;
9768
9769 -*)
9770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9771$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9772 PTHREAD_CFLAGS="$flag"
9773 ;;
9774
cristya316db12011-10-24 00:49:45 +00009775 pthread-config)
9776 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009777set dummy pthread-config; ac_word=$2
9778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9779$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009780if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009781 $as_echo_n "(cached) " >&6
9782else
9783 if test -n "$ax_pthread_config"; then
9784 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9785else
9786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9787for as_dir in $PATH
9788do
9789 IFS=$as_save_IFS
9790 test -z "$as_dir" && as_dir=.
9791 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009793 ac_cv_prog_ax_pthread_config="yes"
9794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9795 break 2
9796 fi
9797done
9798 done
9799IFS=$as_save_IFS
9800
9801 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9802fi
9803fi
9804ax_pthread_config=$ac_cv_prog_ax_pthread_config
9805if test -n "$ax_pthread_config"; then
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9807$as_echo "$ax_pthread_config" >&6; }
9808else
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9810$as_echo "no" >&6; }
9811fi
9812
9813
cristya316db12011-10-24 00:49:45 +00009814 if test x"$ax_pthread_config" = xno; then continue; fi
9815 PTHREAD_CFLAGS="`pthread-config --cflags`"
9816 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9817 ;;
cristy73bd4a52010-10-05 11:24:23 +00009818
9819 *)
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9821$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9822 PTHREAD_LIBS="-l$flag"
9823 ;;
9824 esac
9825
9826 save_LIBS="$LIBS"
9827 save_CFLAGS="$CFLAGS"
9828 LIBS="$PTHREAD_LIBS $LIBS"
9829 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9830
9831 # Check for various functions. We must include pthread.h,
9832 # since some functions may be macros. (On the Sequent, we
9833 # need a special flag -Kthread to make this header compile.)
9834 # We check for pthread_join because it is in -lpthread on IRIX
9835 # while pthread_create is in libc. We check for pthread_attr_init
9836 # due to DEC craziness with -lpthreads. We check for
9837 # pthread_cleanup_push because it is one of the few pthread
9838 # functions on Solaris that doesn't have a non-functional libc stub.
9839 # We try pthread_create on general principles.
9840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9841/* end confdefs.h. */
9842#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009843 static void routine(void *a) { a = 0; }
9844 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009845int
9846main ()
9847{
9848pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009849 pthread_create(&th, 0, start_routine, 0);
9850 pthread_join(th, 0);
9851 pthread_attr_init(&attr);
9852 pthread_cleanup_push(routine, 0);
9853 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009854 ;
9855 return 0;
9856}
9857_ACEOF
9858if ac_fn_c_try_link "$LINENO"; then :
9859 ax_pthread_ok=yes
9860fi
9861rm -f core conftest.err conftest.$ac_objext \
9862 conftest$ac_exeext conftest.$ac_ext
9863
9864 LIBS="$save_LIBS"
9865 CFLAGS="$save_CFLAGS"
9866
9867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9868$as_echo "$ax_pthread_ok" >&6; }
9869 if test "x$ax_pthread_ok" = xyes; then
9870 break;
9871 fi
9872
9873 PTHREAD_LIBS=""
9874 PTHREAD_CFLAGS=""
9875done
9876fi
9877
9878# Various other checks:
9879if test "x$ax_pthread_ok" = xyes; then
9880 save_LIBS="$LIBS"
9881 LIBS="$PTHREAD_LIBS $LIBS"
9882 save_CFLAGS="$CFLAGS"
9883 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9884
9885 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009887$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009888 attr_name=unknown
9889 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009891/* end confdefs.h. */
9892#include <pthread.h>
9893int
9894main ()
9895{
cristya316db12011-10-24 00:49:45 +00009896int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009897 ;
9898 return 0;
9899}
9900_ACEOF
9901if ac_fn_c_try_link "$LINENO"; then :
9902 attr_name=$attr; break
9903fi
9904rm -f core conftest.err conftest.$ac_objext \
9905 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009906 done
cristy73bd4a52010-10-05 11:24:23 +00009907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9908$as_echo "$attr_name" >&6; }
9909 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9910
9911cat >>confdefs.h <<_ACEOF
9912#define PTHREAD_CREATE_JOINABLE $attr_name
9913_ACEOF
9914
9915 fi
9916
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9918$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9919 flag=no
cristy2ec87cc2013-02-18 17:46:50 +00009920 case ${host_os} in
9921 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
9922 osf* | hpux*) flag="-D_REENTRANT";;
9923 solaris*)
9924 if test "$GCC" = "yes"; then
9925 flag="-D_REENTRANT"
9926 else
9927 flag="-mt -D_REENTRANT"
9928 fi
9929 ;;
cristy73bd4a52010-10-05 11:24:23 +00009930 esac
9931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9932$as_echo "${flag}" >&6; }
9933 if test "x$flag" != xno; then
9934 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9935 fi
9936
cristya316db12011-10-24 00:49:45 +00009937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9938$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9939if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9940 $as_echo_n "(cached) " >&6
9941else
9942
9943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9944/* end confdefs.h. */
9945
9946 #include <pthread.h>
9947int
9948main ()
9949{
9950int i = PTHREAD_PRIO_INHERIT;
9951 ;
9952 return 0;
9953}
9954_ACEOF
9955if ac_fn_c_try_link "$LINENO"; then :
9956 ax_cv_PTHREAD_PRIO_INHERIT=yes
9957else
9958 ax_cv_PTHREAD_PRIO_INHERIT=no
9959fi
9960rm -f core conftest.err conftest.$ac_objext \
9961 conftest$ac_exeext conftest.$ac_ext
9962
9963fi
9964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9965$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9966 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9967
9968$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9969
9970fi
9971
cristy73bd4a52010-10-05 11:24:23 +00009972 LIBS="$save_LIBS"
9973 CFLAGS="$save_CFLAGS"
9974
cristy23493c42013-04-11 16:04:59 +00009975 # More AIX lossage: compile with *_r variant
9976 if test "x$GCC" != xyes; then
9977 case $host_os in
9978 aix*)
9979 case "x/$CC" in #(
9980 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
9981 #handle absolute path differently from PATH based program lookup
9982 case "x$CC" in #(
9983 x/*) :
9984 if as_fn_executable_p ${CC}_r; then :
9985 PTHREAD_CC="${CC}_r"
9986fi ;; #(
9987 *) :
9988 for ac_prog in ${CC}_r
cristy73bd4a52010-10-05 11:24:23 +00009989do
9990 # Extract the first word of "$ac_prog", so it can be a program name with args.
9991set dummy $ac_prog; ac_word=$2
9992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9993$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009994if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009995 $as_echo_n "(cached) " >&6
9996else
9997 if test -n "$PTHREAD_CC"; then
9998 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9999else
10000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10001for as_dir in $PATH
10002do
10003 IFS=$as_save_IFS
10004 test -z "$as_dir" && as_dir=.
10005 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010007 ac_cv_prog_PTHREAD_CC="$ac_prog"
10008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10009 break 2
10010 fi
10011done
10012 done
10013IFS=$as_save_IFS
10014
10015fi
10016fi
10017PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
10018if test -n "$PTHREAD_CC"; then
10019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
10020$as_echo "$PTHREAD_CC" >&6; }
10021else
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10023$as_echo "no" >&6; }
10024fi
10025
10026
10027 test -n "$PTHREAD_CC" && break
10028done
cristy23493c42013-04-11 16:04:59 +000010029test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10030 ;;
10031esac ;; #(
10032 *) :
10033 ;;
10034esac
10035 ;;
10036 esac
cristya316db12011-10-24 00:49:45 +000010037 fi
cristy73bd4a52010-10-05 11:24:23 +000010038fi
10039
cristy23493c42013-04-11 16:04:59 +000010040test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10041
cristy73bd4a52010-10-05 11:24:23 +000010042
10043
10044
10045
10046# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
10047if test x"$ax_pthread_ok" = xyes; then
10048
10049$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10050
10051 :
10052else
10053 ax_pthread_ok=no
10054
10055fi
10056ac_ext=c
10057ac_cpp='$CPP $CPPFLAGS'
10058ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10059ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10060ac_compiler_gnu=$ac_cv_c_compiler_gnu
10061
10062
10063
10064# Check whether --enable-opencl was given.
10065if test "${enable_opencl+set}" = set; then :
cristy48794642012-09-02 15:19:08 +000010066 enableval=$enable_opencl; enable_opencl=$enableval
cristy73bd4a52010-10-05 11:24:23 +000010067else
cristy48794642012-09-02 15:19:08 +000010068 enable_opencl='no'
cristy73bd4a52010-10-05 11:24:23 +000010069fi
10070
10071
cristy48794642012-09-02 15:19:08 +000010072if test "$enable_opencl" = 'yes'; then
cristy73bd4a52010-10-05 11:24:23 +000010073 ac_ext=c
10074ac_cpp='$CPP $CPPFLAGS'
10075ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10076ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10077ac_compiler_gnu=$ac_cv_c_compiler_gnu
10078
cristy75314cc2012-09-15 23:08:29 +000010079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
10080$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
10081if ${ax_cv_c_compiler_ms+:} false; then :
10082 $as_echo_n "(cached) " >&6
10083else
10084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10085/* end confdefs.h. */
10086
10087int
10088main ()
10089{
10090#ifndef _MSC_VER
10091 choke me
10092#endif
10093
10094 ;
10095 return 0;
10096}
10097_ACEOF
10098if ac_fn_c_try_compile "$LINENO"; then :
10099 ax_compiler_ms=yes
10100else
10101 ax_compiler_ms=no
10102fi
10103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10104ax_cv_c_compiler_ms=$ax_compiler_ms
10105
10106fi
10107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
10108$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000010109 if test X$ax_compiler_ms = Xno; then :
10110 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
10111fi
10112
10113 ax_save_CPPFLAGS=$CPPFLAGS
cristyfdc7d122013-08-17 20:46:45 +000010114 ax_save_CL_CFLAGS=$CL_CFLAGS
10115
10116 found_opencl_header='no'
cristy73bd4a52010-10-05 11:24:23 +000010117 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
10118 for ac_header in CL/cl.h OpenCL/cl.h
10119do :
10120 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10121ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000010122if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000010123 cat >>confdefs.h <<_ACEOF
10124#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10125_ACEOF
cristyfdc7d122013-08-17 20:46:45 +000010126 found_opencl_header='yes'
10127 break;
10128else
10129 found_opencl_header='no'
cristy73bd4a52010-10-05 11:24:23 +000010130fi
10131
10132done
10133
cristyfdc7d122013-08-17 20:46:45 +000010134
10135 if test X$found_opencl_header = Xno; then :
10136 { ac_cv_header_CL_cl_h=; unset ac_cv_header_CL_cl_h;}
10137 { ac_cv_header_OpenCL_cl_h=; unset ac_cv_header_OpenCL_cl_h;}
10138 CL_CFLAGS="-I$AMDAPPSDKROOT/include"
10139 CPPFLAGS="$ax_save_CPPFLAGS $CL_CFLAGS"
10140 for ac_header in CL/cl.h OpenCL/cl.h
10141do :
10142 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10143ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10144if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10145 cat >>confdefs.h <<_ACEOF
10146#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10147_ACEOF
10148 found_opencl_header='yes'
10149 break;
10150else
10151 found_opencl_header='no'
10152fi
10153
10154done
10155
10156
10157fi
10158
10159 CPPFLAGS="$ax_save_CPPFLAGS"
cristy73bd4a52010-10-05 11:24:23 +000010160
10161 for ac_header in windows.h
10162do :
10163 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000010164if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000010165 cat >>confdefs.h <<_ACEOF
10166#define HAVE_WINDOWS_H 1
10167_ACEOF
10168
10169fi
10170
10171done
10172
10173
10174
10175
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
10177$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010178if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010179 $as_echo_n "(cached) " >&6
10180else
10181 ax_cv_check_cl_libcl=no
10182 case $host_cpu in
cristyfdc7d122013-08-17 20:46:45 +000010183 x86_64) ax_check_cl_libdir=lib64
10184 ax_check_cl_amd_libdir=x86_64
10185 ;;
10186 *) ax_check_cl_libdir=lib
10187 ax_check_cl_amd_libdir=x86
10188 ;;
cristy73bd4a52010-10-05 11:24:23 +000010189 esac
10190 ax_save_CPPFLAGS=$CPPFLAGS
10191 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
10192 ax_save_LIBS=$LIBS
10193 LIBS=""
10194 ax_check_libs="-lOpenCL -lCL -lclparser"
10195 for ax_lib in $ax_check_libs; do
10196 if test X$ax_compiler_ms = Xyes; then :
10197 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
10198else
10199 ax_try_lib=$ax_lib
10200fi
10201 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
10202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10203/* end confdefs.h. */
10204
10205 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10206 # include <windows.h>
10207 # endif
10208 # ifdef HAVE_CL_CL_H
10209 # include <CL/cl.h>
10210 # elif defined(HAVE_OPENCL_CL_H)
10211 # include <OpenCL/cl.h>
10212 # else
10213 # error no CL.h
10214 # endif
10215int
10216main ()
10217{
10218clCreateContextFromType(0,0,0,0,0)
10219 ;
10220 return 0;
10221}
10222_ACEOF
10223if ac_fn_c_try_link "$LINENO"; then :
10224 ax_cv_check_cl_libcl=$ax_try_lib; break
10225else
10226 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"
10227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10228/* end confdefs.h. */
10229
10230 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10231 # include <windows.h>
10232 # endif
10233 # ifdef HAVE_CL_CL_H
10234 # include <CL/cl.h>
10235 # elif defined(HAVE_OPENCL_CL_H)
10236 # include <OpenCL/cl.h>
10237 # else
10238 # error no CL.h
10239 # endif
10240int
10241main ()
10242{
10243clCreateContextFromType(0,0,0,0,0)
10244 ;
10245 return 0;
10246}
10247_ACEOF
10248if ac_fn_c_try_link "$LINENO"; then :
10249 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
10250else
cristy78c5a0c2010-12-04 20:00:59 +000010251 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 +000010252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10253/* end confdefs.h. */
10254
10255 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10256 # include <windows.h>
10257 # endif
10258 # ifdef HAVE_CL_CL_H
10259 # include <CL/cl.h>
10260 # elif defined(HAVE_OPENCL_CL_H)
10261 # include <OpenCL/cl.h>
10262 # else
10263 # error no CL.h
10264 # endif
10265int
10266main ()
10267{
10268clCreateContextFromType(0,0,0,0,0)
10269 ;
10270 return 0;
10271}
10272_ACEOF
10273if ac_fn_c_try_link "$LINENO"; then :
10274 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
cristyfdc7d122013-08-17 20:46:45 +000010275else
10276 ax_check_cl_amd_flags="-L$AMDAPPSDKROOT/lib/$ax_check_cl_amd_libdir" LIBS="$ax_try_lib $ax_check_cl_amd_flags $CL_LIBS $ax_save_LIBS"
10277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10278/* end confdefs.h. */
10279
10280 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10281 # include <windows.h>
10282 # endif
10283 # ifdef HAVE_CL_CL_H
10284 # include <CL/cl.h>
10285 # elif defined(HAVE_OPENCL_CL_H)
10286 # include <OpenCL/cl.h>
10287 # else
10288 # error no CL.h
10289 # endif
10290int
10291main ()
10292{
10293clCreateContextFromType(0,0,0,0,0)
10294 ;
10295 return 0;
10296}
10297_ACEOF
10298if ac_fn_c_try_link "$LINENO"; then :
10299 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_amd_flags"; break
10300
10301fi
10302rm -f core conftest.err conftest.$ac_objext \
10303 conftest$ac_exeext conftest.$ac_ext
10304
10305
cristy73bd4a52010-10-05 11:24:23 +000010306fi
10307rm -f core conftest.err conftest.$ac_objext \
10308 conftest$ac_exeext conftest.$ac_ext
10309fi
10310rm -f core conftest.err conftest.$ac_objext \
10311 conftest$ac_exeext conftest.$ac_ext
10312fi
10313rm -f core conftest.err conftest.$ac_objext \
10314 conftest$ac_exeext conftest.$ac_ext
10315 done
10316
cristyc3f8b8e2011-12-22 14:55:16 +000010317 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy78c5a0c2010-12-04 20:00:59 +000010318 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +000010319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10320/* end confdefs.h. */
10321
10322 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10323 # include <windows.h>
10324 # endif
10325 # ifdef HAVE_CL_CL_H
10326 # include <CL/cl.h>
10327 # elif defined(HAVE_OPENCL_CL_H)
10328 # include <OpenCL/cl.h>
10329 # else
10330 # error no CL.h
10331 # endif
10332int
10333main ()
10334{
10335clCreateContextFromType(0,0,0,0,0)
10336 ;
10337 return 0;
10338}
10339_ACEOF
10340if ac_fn_c_try_link "$LINENO"; then :
10341 ax_cv_check_cl_libcl=$LIBS
10342fi
10343rm -f core conftest.err conftest.$ac_objext \
10344 conftest$ac_exeext conftest.$ac_ext
10345fi
10346
10347 LIBS=$ax_save_LIBS
10348 CPPFLAGS=$ax_save_CPPFLAGS
10349fi
10350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
10351$as_echo "$ax_cv_check_cl_libcl" >&6; }
10352
10353 if test "X$ax_cv_check_cl_libcl" = Xno; then :
10354 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
10355else
10356 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
10357$as_echo "#define _OPENCL 1" >>confdefs.h
10358
10359fi
10360 ac_ext=c
10361ac_cpp='$CPP $CPPFLAGS'
10362ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10363ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10364ac_compiler_gnu=$ac_cv_c_compiler_gnu
10365
10366fi
10367
10368
10369
10370
cristyc7083c12009-10-14 03:16:55 +000010371CFLAGS="$CL_CFLAGS $CFLAGS"
cristyfdc7d122013-08-17 20:46:45 +000010372CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
cristyc7083c12009-10-14 03:16:55 +000010373LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +000010374
cristy391f1ce2010-09-09 17:23:28 +000010375if test "$enable_opencl" != no; then
cristy6e3607c2011-09-13 13:59:17 +000010376 if test "X$ax_cv_check_cl_libcl" != Xno; then :
cristy391f1ce2010-09-09 17:23:28 +000010377 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
10378 fi
cristyfd9dcd42010-08-08 18:07:02 +000010379fi
cristy2e8b51d2009-10-17 18:26:15 +000010380
cristy3ed852e2009-09-05 21:47:34 +000010381########
10382#
10383# Check for large file support
10384#
10385########
10386# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +000010387if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010388 enableval=$enable_largefile;
10389fi
10390
10391if test "$enable_largefile" != no; then
10392
cristy8b350f62009-11-15 23:12:43 +000010393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010394$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010395if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010396 $as_echo_n "(cached) " >&6
10397else
10398 ac_cv_sys_largefile_CC=no
10399 if test "$GCC" != yes; then
10400 ac_save_CC=$CC
10401 while :; do
10402 # IRIX 6.2 and later do not support large files by default,
10403 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +000010404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010405/* end confdefs.h. */
10406#include <sys/types.h>
10407 /* Check that off_t can represent 2**63 - 1 correctly.
10408 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10409 since some C++ compilers masquerading as C compilers
10410 incorrectly reject 9223372036854775807. */
10411#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10412 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10413 && LARGE_OFF_T % 2147483647 == 1)
10414 ? 1 : -1];
10415int
10416main ()
10417{
10418
10419 ;
10420 return 0;
10421}
10422_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010423 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010424 break
cristy3ed852e2009-09-05 21:47:34 +000010425fi
cristy3ed852e2009-09-05 21:47:34 +000010426rm -f core conftest.err conftest.$ac_objext
10427 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +000010428 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010429 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +000010430fi
cristy3ed852e2009-09-05 21:47:34 +000010431rm -f core conftest.err conftest.$ac_objext
10432 break
10433 done
10434 CC=$ac_save_CC
10435 rm -f conftest.$ac_ext
10436 fi
10437fi
cristy8b350f62009-11-15 23:12:43 +000010438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000010439$as_echo "$ac_cv_sys_largefile_CC" >&6; }
10440 if test "$ac_cv_sys_largefile_CC" != no; then
10441 CC=$CC$ac_cv_sys_largefile_CC
10442 fi
10443
cristy8b350f62009-11-15 23:12:43 +000010444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010445$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010446if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010447 $as_echo_n "(cached) " >&6
10448else
10449 while :; do
cristy8b350f62009-11-15 23:12:43 +000010450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010451/* end confdefs.h. */
10452#include <sys/types.h>
10453 /* Check that off_t can represent 2**63 - 1 correctly.
10454 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10455 since some C++ compilers masquerading as C compilers
10456 incorrectly reject 9223372036854775807. */
10457#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10458 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10459 && LARGE_OFF_T % 2147483647 == 1)
10460 ? 1 : -1];
10461int
10462main ()
10463{
10464
10465 ;
10466 return 0;
10467}
10468_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010469if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010470 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +000010471fi
cristy3ed852e2009-09-05 21:47:34 +000010472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010474/* end confdefs.h. */
10475#define _FILE_OFFSET_BITS 64
10476#include <sys/types.h>
10477 /* Check that off_t can represent 2**63 - 1 correctly.
10478 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10479 since some C++ compilers masquerading as C compilers
10480 incorrectly reject 9223372036854775807. */
10481#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10482 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10483 && LARGE_OFF_T % 2147483647 == 1)
10484 ? 1 : -1];
10485int
10486main ()
10487{
10488
10489 ;
10490 return 0;
10491}
10492_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010493if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010494 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +000010495fi
cristy3ed852e2009-09-05 21:47:34 +000010496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10497 ac_cv_sys_file_offset_bits=unknown
10498 break
10499done
10500fi
cristy8b350f62009-11-15 23:12:43 +000010501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +000010502$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10503case $ac_cv_sys_file_offset_bits in #(
10504 no | unknown) ;;
10505 *)
10506cat >>confdefs.h <<_ACEOF
10507#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10508_ACEOF
10509;;
10510esac
10511rm -rf conftest*
10512 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +000010513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010514$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010515if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010516 $as_echo_n "(cached) " >&6
10517else
10518 while :; do
cristy8b350f62009-11-15 23:12:43 +000010519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010520/* end confdefs.h. */
10521#include <sys/types.h>
10522 /* Check that off_t can represent 2**63 - 1 correctly.
10523 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10524 since some C++ compilers masquerading as C compilers
10525 incorrectly reject 9223372036854775807. */
10526#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10527 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10528 && LARGE_OFF_T % 2147483647 == 1)
10529 ? 1 : -1];
10530int
10531main ()
10532{
10533
10534 ;
10535 return 0;
10536}
10537_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010538if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010539 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +000010540fi
cristy3ed852e2009-09-05 21:47:34 +000010541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010543/* end confdefs.h. */
10544#define _LARGE_FILES 1
10545#include <sys/types.h>
10546 /* Check that off_t can represent 2**63 - 1 correctly.
10547 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10548 since some C++ compilers masquerading as C compilers
10549 incorrectly reject 9223372036854775807. */
10550#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10551 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10552 && LARGE_OFF_T % 2147483647 == 1)
10553 ? 1 : -1];
10554int
10555main ()
10556{
10557
10558 ;
10559 return 0;
10560}
10561_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010562if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010563 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +000010564fi
cristy3ed852e2009-09-05 21:47:34 +000010565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10566 ac_cv_sys_large_files=unknown
10567 break
10568done
10569fi
cristy8b350f62009-11-15 23:12:43 +000010570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010571$as_echo "$ac_cv_sys_large_files" >&6; }
10572case $ac_cv_sys_large_files in #(
10573 no | unknown) ;;
10574 *)
10575cat >>confdefs.h <<_ACEOF
10576#define _LARGE_FILES $ac_cv_sys_large_files
10577_ACEOF
10578;;
10579esac
10580rm -rf conftest*
10581 fi
cristy14fefe52012-05-21 00:59:18 +000010582
10583
cristy3ed852e2009-09-05 21:47:34 +000010584fi
10585
cristy8b350f62009-11-15 23:12:43 +000010586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010587$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010588if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010589 $as_echo_n "(cached) " >&6
10590else
10591 while :; do
cristy8b350f62009-11-15 23:12:43 +000010592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010593/* end confdefs.h. */
10594#include <sys/types.h> /* for off_t */
10595 #include <stdio.h>
10596int
10597main ()
10598{
10599int (*fp) (FILE *, off_t, int) = fseeko;
10600 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10601 ;
10602 return 0;
10603}
10604_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010605if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010606 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +000010607fi
cristy8b350f62009-11-15 23:12:43 +000010608rm -f core conftest.err conftest.$ac_objext \
10609 conftest$ac_exeext conftest.$ac_ext
10610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010611/* end confdefs.h. */
10612#define _LARGEFILE_SOURCE 1
10613#include <sys/types.h> /* for off_t */
10614 #include <stdio.h>
10615int
10616main ()
10617{
10618int (*fp) (FILE *, off_t, int) = fseeko;
10619 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10620 ;
10621 return 0;
10622}
10623_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010624if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010625 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +000010626fi
cristy8b350f62009-11-15 23:12:43 +000010627rm -f core conftest.err conftest.$ac_objext \
10628 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010629 ac_cv_sys_largefile_source=unknown
10630 break
10631done
10632fi
cristy8b350f62009-11-15 23:12:43 +000010633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +000010634$as_echo "$ac_cv_sys_largefile_source" >&6; }
10635case $ac_cv_sys_largefile_source in #(
10636 no | unknown) ;;
10637 *)
10638cat >>confdefs.h <<_ACEOF
10639#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10640_ACEOF
10641;;
10642esac
10643rm -rf conftest*
10644
10645# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10646# in glibc 2.1.3, but that breaks too many other things.
10647# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10648if test $ac_cv_sys_largefile_source != unknown; then
10649
cristy8b350f62009-11-15 23:12:43 +000010650$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010651
10652fi
10653
10654LFS_CPPFLAGS=''
10655if test "$enable_largefile" != no; then
cristyc1e0cc12011-09-21 16:41:16 +000010656 case $ac_cv_sys_file_offset_bits in
10657 no)
10658 # nothing to do here as the host supports LFS fine
10659 ;;
10660 unknown)
cristy8b350f62009-11-15 23:12:43 +000010661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +000010662$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010663 if test "$cross_compiling" = yes; then :
10664 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000010665$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000010666as_fn_error $? "cannot run test program while cross compiling
10667See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000010668else
cristy8b350f62009-11-15 23:12:43 +000010669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10670/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000010671#include <unistd.h>
10672 main () {
10673 exit(!(sizeof(off_t) == 8));
10674 }
cristyda16f162011-02-19 23:52:17 +000010675int
10676main ()
10677{
10678
10679 ;
10680 return 0;
10681}
cristy3ed852e2009-09-05 21:47:34 +000010682_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010683if ac_fn_c_try_run "$LINENO"; then :
10684 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010685
cristyad38abe2012-12-23 23:03:21 +000010686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10687$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000010688else
cristyad38abe2012-12-23 23:03:21 +000010689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10690$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000010691fi
cristy8b350f62009-11-15 23:12:43 +000010692rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10693 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010694fi
10695
cristyc1e0cc12011-09-21 16:41:16 +000010696 ;;
10697 *)
10698 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
10699 ;;
10700 esac
cristy3ed852e2009-09-05 21:47:34 +000010701 if test "$ac_cv_sys_large_files" != 'no'; then
10702 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
10703 fi
10704 if test "$ac_cv_sys_largefile_source" != 'no'; then
10705 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
10706 fi
10707fi
10708
10709
cristy3ed852e2009-09-05 21:47:34 +000010710# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +000010711enable_dlopen=yes
10712
10713
10714
10715case `pwd` in
10716 *\ * | *\ *)
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10718$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10719esac
10720
10721
10722
cristy99bd5232011-12-07 14:38:20 +000010723macro_version='2.4.2'
10724macro_revision='1.3337'
cristy73bd4a52010-10-05 11:24:23 +000010725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738ltmain="$ac_aux_dir/ltmain.sh"
10739
cristy0c60a692010-11-04 01:09:47 +000010740# Backslashify metacharacters that are still active within
10741# double-quoted strings.
10742sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10743
10744# Same as above, but do not quote variable references.
10745double_quote_subst='s/\(["`\\]\)/\\\1/g'
10746
10747# Sed substitution to delay expansion of an escaped shell variable in a
10748# double_quote_subst'ed string.
10749delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10750
10751# Sed substitution to delay expansion of an escaped single quote.
10752delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10753
10754# Sed substitution to avoid accidental globbing in evaled expressions
10755no_glob_subst='s/\*/\\\*/g'
10756
cristy73bd4a52010-10-05 11:24:23 +000010757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
10758$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010759if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010760 $as_echo_n "(cached) " >&6
10761else
10762 if test -n "$NM"; then
10763 # Let the user override the test.
10764 lt_cv_path_NM="$NM"
10765else
10766 lt_nm_to_check="${ac_tool_prefix}nm"
10767 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
10768 lt_nm_to_check="$lt_nm_to_check nm"
10769 fi
10770 for lt_tmp_nm in $lt_nm_to_check; do
10771 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10772 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
10773 IFS="$lt_save_ifs"
10774 test -z "$ac_dir" && ac_dir=.
10775 tmp_nm="$ac_dir/$lt_tmp_nm"
10776 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
10777 # Check to see if the nm accepts a BSD-compat flag.
10778 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
10779 # nm: unknown option "B" ignored
10780 # Tru64's nm complains that /dev/null is an invalid object file
10781 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
10782 */dev/null* | *'Invalid file or object type'*)
10783 lt_cv_path_NM="$tmp_nm -B"
10784 break
10785 ;;
10786 *)
10787 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
10788 */dev/null*)
10789 lt_cv_path_NM="$tmp_nm -p"
10790 break
10791 ;;
10792 *)
10793 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10794 continue # so that we can try to find one that supports BSD flags
10795 ;;
10796 esac
10797 ;;
10798 esac
10799 fi
10800 done
10801 IFS="$lt_save_ifs"
10802 done
10803 : ${lt_cv_path_NM=no}
10804fi
10805fi
10806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
10807$as_echo "$lt_cv_path_NM" >&6; }
10808if test "$lt_cv_path_NM" != "no"; then
10809 NM="$lt_cv_path_NM"
10810else
10811 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +000010812 if test -n "$DUMPBIN"; then :
10813 # Let the user override the test.
10814 else
10815 if test -n "$ac_tool_prefix"; then
10816 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010817 do
10818 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10819set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10821$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010822if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010823 $as_echo_n "(cached) " >&6
10824else
10825 if test -n "$DUMPBIN"; then
10826 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
10827else
10828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10829for as_dir in $PATH
10830do
10831 IFS=$as_save_IFS
10832 test -z "$as_dir" && as_dir=.
10833 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010835 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
10836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10837 break 2
10838 fi
10839done
10840 done
10841IFS=$as_save_IFS
10842
10843fi
10844fi
10845DUMPBIN=$ac_cv_prog_DUMPBIN
10846if test -n "$DUMPBIN"; then
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
10848$as_echo "$DUMPBIN" >&6; }
10849else
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10851$as_echo "no" >&6; }
10852fi
10853
10854
10855 test -n "$DUMPBIN" && break
10856 done
10857fi
10858if test -z "$DUMPBIN"; then
10859 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +000010860 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010861do
10862 # Extract the first word of "$ac_prog", so it can be a program name with args.
10863set dummy $ac_prog; ac_word=$2
10864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10865$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010866if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010867 $as_echo_n "(cached) " >&6
10868else
10869 if test -n "$ac_ct_DUMPBIN"; then
10870 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
10871else
10872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10873for as_dir in $PATH
10874do
10875 IFS=$as_save_IFS
10876 test -z "$as_dir" && as_dir=.
10877 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010879 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
10880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10881 break 2
10882 fi
10883done
10884 done
10885IFS=$as_save_IFS
10886
10887fi
10888fi
10889ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
10890if test -n "$ac_ct_DUMPBIN"; then
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
10892$as_echo "$ac_ct_DUMPBIN" >&6; }
10893else
10894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10895$as_echo "no" >&6; }
10896fi
10897
10898
10899 test -n "$ac_ct_DUMPBIN" && break
10900done
10901
10902 if test "x$ac_ct_DUMPBIN" = x; then
10903 DUMPBIN=":"
10904 else
10905 case $cross_compiling:$ac_tool_warned in
10906yes:)
10907{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10908$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10909ac_tool_warned=yes ;;
10910esac
10911 DUMPBIN=$ac_ct_DUMPBIN
10912 fi
10913fi
10914
cristy0c60a692010-11-04 01:09:47 +000010915 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
10916 *COFF*)
10917 DUMPBIN="$DUMPBIN -symbols"
10918 ;;
10919 *)
10920 DUMPBIN=:
10921 ;;
10922 esac
10923 fi
cristy73bd4a52010-10-05 11:24:23 +000010924
10925 if test "$DUMPBIN" != ":"; then
10926 NM="$DUMPBIN"
10927 fi
10928fi
10929test -z "$NM" && NM=nm
10930
10931
10932
10933
10934
10935
10936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
10937$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010938if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010939 $as_echo_n "(cached) " >&6
10940else
10941 lt_cv_nm_interface="BSD nm"
10942 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000010943 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010944 (eval "$ac_compile" 2>conftest.err)
10945 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010946 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010947 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
10948 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010949 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010950 cat conftest.out >&5
10951 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
10952 lt_cv_nm_interface="MS dumpbin"
10953 fi
10954 rm -f conftest*
10955fi
10956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
10957$as_echo "$lt_cv_nm_interface" >&6; }
10958
10959# find the maximum length of command line arguments
10960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
10961$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010962if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010963 $as_echo_n "(cached) " >&6
10964else
10965 i=0
10966 teststring="ABCD"
10967
10968 case $build_os in
10969 msdosdjgpp*)
10970 # On DJGPP, this test can blow up pretty badly due to problems in libc
10971 # (any single argument exceeding 2000 bytes causes a buffer overrun
10972 # during glob expansion). Even if it were fixed, the result of this
10973 # check would be larger than it should be.
10974 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10975 ;;
10976
10977 gnu*)
10978 # Under GNU Hurd, this test is not required because there is
10979 # no limit to the length of command line arguments.
10980 # Libtool will interpret -1 as no limit whatsoever
10981 lt_cv_sys_max_cmd_len=-1;
10982 ;;
10983
10984 cygwin* | mingw* | cegcc*)
10985 # On Win9x/ME, this test blows up -- it succeeds, but takes
10986 # about 5 minutes as the teststring grows exponentially.
10987 # Worse, since 9x/ME are not pre-emptively multitasking,
10988 # you end up with a "frozen" computer, even though with patience
10989 # the test eventually succeeds (with a max line length of 256k).
10990 # Instead, let's just punt: use the minimum linelength reported by
10991 # all of the supported platforms: 8192 (on NT/2K/XP).
10992 lt_cv_sys_max_cmd_len=8192;
10993 ;;
10994
cristy0c60a692010-11-04 01:09:47 +000010995 mint*)
10996 # On MiNT this can take a long time and run out of memory.
10997 lt_cv_sys_max_cmd_len=8192;
10998 ;;
10999
cristy73bd4a52010-10-05 11:24:23 +000011000 amigaos*)
11001 # On AmigaOS with pdksh, this test takes hours, literally.
11002 # So we just punt and use a minimum line length of 8192.
11003 lt_cv_sys_max_cmd_len=8192;
11004 ;;
11005
11006 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11007 # This has been around since 386BSD, at least. Likely further.
11008 if test -x /sbin/sysctl; then
11009 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11010 elif test -x /usr/sbin/sysctl; then
11011 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11012 else
11013 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11014 fi
11015 # And add a safety zone
11016 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11017 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11018 ;;
11019
11020 interix*)
11021 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11022 lt_cv_sys_max_cmd_len=196608
11023 ;;
11024
cristy99bd5232011-12-07 14:38:20 +000011025 os2*)
11026 # The test takes a long time on OS/2.
11027 lt_cv_sys_max_cmd_len=8192
11028 ;;
11029
cristy73bd4a52010-10-05 11:24:23 +000011030 osf*)
11031 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11032 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11033 # nice to cause kernel panics so lets avoid the loop below.
11034 # First set a reasonable default.
11035 lt_cv_sys_max_cmd_len=16384
11036 #
11037 if test -x /sbin/sysconfig; then
11038 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11039 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11040 esac
11041 fi
11042 ;;
11043 sco3.2v5*)
11044 lt_cv_sys_max_cmd_len=102400
11045 ;;
11046 sysv5* | sco5v6* | sysv4.2uw2*)
11047 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11048 if test -n "$kargmax"; then
11049 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11050 else
11051 lt_cv_sys_max_cmd_len=32768
11052 fi
11053 ;;
11054 *)
11055 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11056 if test -n "$lt_cv_sys_max_cmd_len"; then
11057 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11058 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11059 else
11060 # Make teststring a little bigger before we do anything with it.
11061 # a 1K string should be a reasonable start.
11062 for i in 1 2 3 4 5 6 7 8 ; do
11063 teststring=$teststring$teststring
11064 done
11065 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11066 # If test is not a shell built-in, we'll probably end up computing a
11067 # maximum length that is only half of the actual maximum length, but
11068 # we can't tell.
cristy99bd5232011-12-07 14:38:20 +000011069 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
cristy0c60a692010-11-04 01:09:47 +000011070 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +000011071 test $i != 17 # 1/2 MB should be enough
11072 do
11073 i=`expr $i + 1`
11074 teststring=$teststring$teststring
11075 done
11076 # Only check the string length outside the loop.
11077 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11078 teststring=
11079 # Add a significant safety factor because C++ compilers can tack on
11080 # massive amounts of additional arguments before passing them to the
11081 # linker. It appears as though 1/2 is a usable value.
11082 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11083 fi
11084 ;;
11085 esac
11086
11087fi
11088
11089if test -n $lt_cv_sys_max_cmd_len ; then
11090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11091$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11092else
11093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11094$as_echo "none" >&6; }
11095fi
11096max_cmd_len=$lt_cv_sys_max_cmd_len
11097
11098
11099
11100
11101
11102
11103: ${CP="cp -f"}
11104: ${MV="mv -f"}
11105: ${RM="rm -f"}
11106
11107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11108$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11109# Try some XSI features
11110xsi_shell=no
11111( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +000011112 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
11113 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +000011114 && eval 'test $(( 1 + 1 )) -eq 2 \
11115 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11116 && xsi_shell=yes
11117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11118$as_echo "$xsi_shell" >&6; }
11119
11120
11121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11122$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11123lt_shell_append=no
11124( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11125 >/dev/null 2>&1 \
11126 && lt_shell_append=yes
11127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11128$as_echo "$lt_shell_append" >&6; }
11129
11130
11131if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11132 lt_unset=unset
11133else
11134 lt_unset=false
11135fi
11136
11137
11138
11139
11140
11141# test EBCDIC or ASCII
11142case `echo X|tr X '\101'` in
11143 A) # ASCII based system
11144 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11145 lt_SP2NL='tr \040 \012'
11146 lt_NL2SP='tr \015\012 \040\040'
11147 ;;
11148 *) # EBCDIC based system
11149 lt_SP2NL='tr \100 \n'
11150 lt_NL2SP='tr \r\n \100\100'
11151 ;;
11152esac
11153
11154
11155
11156
11157
11158
11159
11160
11161
cristyda16f162011-02-19 23:52:17 +000011162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11163$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11164if ${lt_cv_to_host_file_cmd+:} false; then :
11165 $as_echo_n "(cached) " >&6
11166else
11167 case $host in
11168 *-*-mingw* )
11169 case $build in
11170 *-*-mingw* ) # actually msys
11171 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11172 ;;
11173 *-*-cygwin* )
11174 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11175 ;;
11176 * ) # otherwise, assume *nix
11177 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11178 ;;
11179 esac
11180 ;;
11181 *-*-cygwin* )
11182 case $build in
11183 *-*-mingw* ) # actually msys
11184 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11185 ;;
11186 *-*-cygwin* )
11187 lt_cv_to_host_file_cmd=func_convert_file_noop
11188 ;;
11189 * ) # otherwise, assume *nix
11190 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11191 ;;
11192 esac
11193 ;;
11194 * ) # unhandled hosts (and "normal" native builds)
11195 lt_cv_to_host_file_cmd=func_convert_file_noop
11196 ;;
11197esac
11198
11199fi
11200
11201to_host_file_cmd=$lt_cv_to_host_file_cmd
11202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11203$as_echo "$lt_cv_to_host_file_cmd" >&6; }
11204
11205
11206
11207
11208
11209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11210$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11211if ${lt_cv_to_tool_file_cmd+:} false; then :
11212 $as_echo_n "(cached) " >&6
11213else
11214 #assume ordinary cross tools, or native build.
11215lt_cv_to_tool_file_cmd=func_convert_file_noop
11216case $host in
11217 *-*-mingw* )
11218 case $build in
11219 *-*-mingw* ) # actually msys
11220 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11221 ;;
11222 esac
11223 ;;
11224esac
11225
11226fi
11227
11228to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11230$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11231
11232
11233
11234
11235
cristy73bd4a52010-10-05 11:24:23 +000011236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11237$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011238if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011239 $as_echo_n "(cached) " >&6
11240else
11241 lt_cv_ld_reload_flag='-r'
11242fi
11243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11244$as_echo "$lt_cv_ld_reload_flag" >&6; }
11245reload_flag=$lt_cv_ld_reload_flag
11246case $reload_flag in
11247"" | " "*) ;;
11248*) reload_flag=" $reload_flag" ;;
11249esac
11250reload_cmds='$LD$reload_flag -o $output$reload_objs'
11251case $host_os in
cristyda16f162011-02-19 23:52:17 +000011252 cygwin* | mingw* | pw32* | cegcc*)
11253 if test "$GCC" != yes; then
11254 reload_cmds=false
11255 fi
11256 ;;
cristy73bd4a52010-10-05 11:24:23 +000011257 darwin*)
11258 if test "$GCC" = yes; then
11259 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11260 else
11261 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11262 fi
11263 ;;
11264esac
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274if test -n "$ac_tool_prefix"; then
11275 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11276set dummy ${ac_tool_prefix}objdump; ac_word=$2
11277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11278$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011279if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011280 $as_echo_n "(cached) " >&6
11281else
11282 if test -n "$OBJDUMP"; then
11283 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11284else
11285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11286for as_dir in $PATH
11287do
11288 IFS=$as_save_IFS
11289 test -z "$as_dir" && as_dir=.
11290 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011292 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11294 break 2
11295 fi
11296done
11297 done
11298IFS=$as_save_IFS
11299
11300fi
11301fi
11302OBJDUMP=$ac_cv_prog_OBJDUMP
11303if test -n "$OBJDUMP"; then
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11305$as_echo "$OBJDUMP" >&6; }
11306else
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11308$as_echo "no" >&6; }
11309fi
11310
11311
11312fi
11313if test -z "$ac_cv_prog_OBJDUMP"; then
11314 ac_ct_OBJDUMP=$OBJDUMP
11315 # Extract the first word of "objdump", so it can be a program name with args.
11316set dummy objdump; ac_word=$2
11317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11318$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011319if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011320 $as_echo_n "(cached) " >&6
11321else
11322 if test -n "$ac_ct_OBJDUMP"; then
11323 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11324else
11325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11326for as_dir in $PATH
11327do
11328 IFS=$as_save_IFS
11329 test -z "$as_dir" && as_dir=.
11330 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011332 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11334 break 2
11335 fi
11336done
11337 done
11338IFS=$as_save_IFS
11339
11340fi
11341fi
11342ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11343if test -n "$ac_ct_OBJDUMP"; then
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11345$as_echo "$ac_ct_OBJDUMP" >&6; }
11346else
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11348$as_echo "no" >&6; }
11349fi
11350
11351 if test "x$ac_ct_OBJDUMP" = x; then
11352 OBJDUMP="false"
11353 else
11354 case $cross_compiling:$ac_tool_warned in
11355yes:)
11356{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11357$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11358ac_tool_warned=yes ;;
11359esac
11360 OBJDUMP=$ac_ct_OBJDUMP
11361 fi
11362else
11363 OBJDUMP="$ac_cv_prog_OBJDUMP"
11364fi
11365
11366test -z "$OBJDUMP" && OBJDUMP=objdump
11367
11368
11369
11370
11371
11372
11373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11374$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011375if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011376 $as_echo_n "(cached) " >&6
11377else
11378 lt_cv_file_magic_cmd='$MAGIC_CMD'
11379lt_cv_file_magic_test_file=
11380lt_cv_deplibs_check_method='unknown'
11381# Need to set the preceding variable on all platforms that support
11382# interlibrary dependencies.
11383# 'none' -- dependencies not supported.
11384# `unknown' -- same as none, but documents that we really don't know.
11385# 'pass_all' -- all dependencies passed with no checks.
11386# 'test_compile' -- check by making test program.
11387# 'file_magic [[regex]]' -- check by looking for files in library path
11388# which responds to the $file_magic_cmd with a given extended regex.
11389# If you have `file' or equivalent on your system and you're not sure
11390# whether `pass_all' will *always* work, you probably want this one.
11391
11392case $host_os in
11393aix[4-9]*)
11394 lt_cv_deplibs_check_method=pass_all
11395 ;;
11396
11397beos*)
11398 lt_cv_deplibs_check_method=pass_all
11399 ;;
11400
11401bsdi[45]*)
11402 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11403 lt_cv_file_magic_cmd='/usr/bin/file -L'
11404 lt_cv_file_magic_test_file=/shlib/libc.so
11405 ;;
11406
11407cygwin*)
11408 # func_win32_libid is a shell function defined in ltmain.sh
11409 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11410 lt_cv_file_magic_cmd='func_win32_libid'
11411 ;;
11412
11413mingw* | pw32*)
11414 # Base MSYS/MinGW do not provide the 'file' command needed by
11415 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11416 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000011417 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11418 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000011419 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11420 lt_cv_file_magic_cmd='func_win32_libid'
11421 else
cristy0c60a692010-11-04 01:09:47 +000011422 # Keep this pattern in sync with the one in func_win32_libid.
11423 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 +000011424 lt_cv_file_magic_cmd='$OBJDUMP -f'
11425 fi
11426 ;;
11427
cristy0c60a692010-11-04 01:09:47 +000011428cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000011429 # use the weaker test based on 'objdump'. See mingw*.
11430 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11431 lt_cv_file_magic_cmd='$OBJDUMP -f'
11432 ;;
11433
11434darwin* | rhapsody*)
11435 lt_cv_deplibs_check_method=pass_all
11436 ;;
11437
11438freebsd* | dragonfly*)
11439 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11440 case $host_cpu in
11441 i*86 )
11442 # Not sure whether the presence of OpenBSD here was a mistake.
11443 # Let's accept both of them until this is cleared up.
11444 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11445 lt_cv_file_magic_cmd=/usr/bin/file
11446 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11447 ;;
11448 esac
11449 else
11450 lt_cv_deplibs_check_method=pass_all
11451 fi
11452 ;;
11453
11454gnu*)
11455 lt_cv_deplibs_check_method=pass_all
11456 ;;
11457
cristy0c60a692010-11-04 01:09:47 +000011458haiku*)
11459 lt_cv_deplibs_check_method=pass_all
11460 ;;
11461
cristy73bd4a52010-10-05 11:24:23 +000011462hpux10.20* | hpux11*)
11463 lt_cv_file_magic_cmd=/usr/bin/file
11464 case $host_cpu in
11465 ia64*)
11466 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11467 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11468 ;;
11469 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000011470 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 +000011471 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11472 ;;
11473 *)
cristy0c60a692010-11-04 01:09:47 +000011474 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 +000011475 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11476 ;;
11477 esac
11478 ;;
11479
11480interix[3-9]*)
11481 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11482 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11483 ;;
11484
11485irix5* | irix6* | nonstopux*)
11486 case $LD in
11487 *-32|*"-32 ") libmagic=32-bit;;
11488 *-n32|*"-n32 ") libmagic=N32;;
11489 *-64|*"-64 ") libmagic=64-bit;;
11490 *) libmagic=never-match;;
11491 esac
11492 lt_cv_deplibs_check_method=pass_all
11493 ;;
11494
cristy99bd5232011-12-07 14:38:20 +000011495# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000011496linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000011497 lt_cv_deplibs_check_method=pass_all
11498 ;;
11499
11500netbsd*)
11501 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11502 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11503 else
11504 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11505 fi
11506 ;;
11507
11508newos6*)
11509 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11510 lt_cv_file_magic_cmd=/usr/bin/file
11511 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11512 ;;
11513
11514*nto* | *qnx*)
11515 lt_cv_deplibs_check_method=pass_all
11516 ;;
11517
11518openbsd*)
11519 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11520 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11521 else
11522 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11523 fi
11524 ;;
11525
11526osf3* | osf4* | osf5*)
11527 lt_cv_deplibs_check_method=pass_all
11528 ;;
11529
11530rdos*)
11531 lt_cv_deplibs_check_method=pass_all
11532 ;;
11533
11534solaris*)
11535 lt_cv_deplibs_check_method=pass_all
11536 ;;
11537
11538sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11539 lt_cv_deplibs_check_method=pass_all
11540 ;;
11541
11542sysv4 | sysv4.3*)
11543 case $host_vendor in
11544 motorola)
11545 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]'
11546 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11547 ;;
11548 ncr)
11549 lt_cv_deplibs_check_method=pass_all
11550 ;;
11551 sequent)
11552 lt_cv_file_magic_cmd='/bin/file'
11553 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11554 ;;
11555 sni)
11556 lt_cv_file_magic_cmd='/bin/file'
11557 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11558 lt_cv_file_magic_test_file=/lib/libc.so
11559 ;;
11560 siemens)
11561 lt_cv_deplibs_check_method=pass_all
11562 ;;
11563 pc)
11564 lt_cv_deplibs_check_method=pass_all
11565 ;;
11566 esac
11567 ;;
11568
11569tpf*)
11570 lt_cv_deplibs_check_method=pass_all
11571 ;;
11572esac
11573
11574fi
11575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11576$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000011577
11578file_magic_glob=
11579want_nocaseglob=no
11580if test "$build" = "$host"; then
11581 case $host_os in
11582 mingw* | pw32*)
11583 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11584 want_nocaseglob=yes
11585 else
11586 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11587 fi
11588 ;;
11589 esac
11590fi
11591
cristy73bd4a52010-10-05 11:24:23 +000011592file_magic_cmd=$lt_cv_file_magic_cmd
11593deplibs_check_method=$lt_cv_deplibs_check_method
11594test -z "$deplibs_check_method" && deplibs_check_method=unknown
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
cristyda16f162011-02-19 23:52:17 +000011607
11608
11609
11610
11611
11612
11613
11614
11615
11616
cristy73bd4a52010-10-05 11:24:23 +000011617if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000011618 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11619set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11621$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011622if ${ac_cv_prog_DLLTOOL+:} false; then :
11623 $as_echo_n "(cached) " >&6
11624else
11625 if test -n "$DLLTOOL"; then
11626 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11627else
11628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11629for as_dir in $PATH
11630do
11631 IFS=$as_save_IFS
11632 test -z "$as_dir" && as_dir=.
11633 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011635 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11637 break 2
11638 fi
11639done
11640 done
11641IFS=$as_save_IFS
11642
11643fi
11644fi
11645DLLTOOL=$ac_cv_prog_DLLTOOL
11646if test -n "$DLLTOOL"; then
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11648$as_echo "$DLLTOOL" >&6; }
11649else
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11651$as_echo "no" >&6; }
11652fi
11653
11654
11655fi
11656if test -z "$ac_cv_prog_DLLTOOL"; then
11657 ac_ct_DLLTOOL=$DLLTOOL
11658 # Extract the first word of "dlltool", so it can be a program name with args.
11659set dummy dlltool; ac_word=$2
11660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11661$as_echo_n "checking for $ac_word... " >&6; }
11662if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11663 $as_echo_n "(cached) " >&6
11664else
11665 if test -n "$ac_ct_DLLTOOL"; then
11666 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11667else
11668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11669for as_dir in $PATH
11670do
11671 IFS=$as_save_IFS
11672 test -z "$as_dir" && as_dir=.
11673 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011675 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11677 break 2
11678 fi
11679done
11680 done
11681IFS=$as_save_IFS
11682
11683fi
11684fi
11685ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11686if test -n "$ac_ct_DLLTOOL"; then
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11688$as_echo "$ac_ct_DLLTOOL" >&6; }
11689else
11690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11691$as_echo "no" >&6; }
11692fi
11693
11694 if test "x$ac_ct_DLLTOOL" = x; then
11695 DLLTOOL="false"
11696 else
11697 case $cross_compiling:$ac_tool_warned in
11698yes:)
11699{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11700$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11701ac_tool_warned=yes ;;
11702esac
11703 DLLTOOL=$ac_ct_DLLTOOL
11704 fi
11705else
11706 DLLTOOL="$ac_cv_prog_DLLTOOL"
11707fi
11708
11709test -z "$DLLTOOL" && DLLTOOL=dlltool
11710
11711
11712
11713
11714
11715
11716
11717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
11718$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
11719if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
11720 $as_echo_n "(cached) " >&6
11721else
11722 lt_cv_sharedlib_from_linklib_cmd='unknown'
11723
11724case $host_os in
11725cygwin* | mingw* | pw32* | cegcc*)
11726 # two different shell functions defined in ltmain.sh
11727 # decide which to use based on capabilities of $DLLTOOL
11728 case `$DLLTOOL --help 2>&1` in
11729 *--identify-strict*)
11730 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
11731 ;;
11732 *)
11733 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
11734 ;;
11735 esac
11736 ;;
11737*)
11738 # fallback: assume linklib IS sharedlib
11739 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
11740 ;;
11741esac
11742
11743fi
11744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
11745$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
11746sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
11747test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
11748
11749
11750
11751
11752
11753
11754
11755if test -n "$ac_tool_prefix"; then
11756 for ac_prog in ar
11757 do
11758 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11759set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11761$as_echo_n "checking for $ac_word... " >&6; }
11762if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011763 $as_echo_n "(cached) " >&6
11764else
11765 if test -n "$AR"; then
11766 ac_cv_prog_AR="$AR" # Let the user override the test.
11767else
11768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11769for as_dir in $PATH
11770do
11771 IFS=$as_save_IFS
11772 test -z "$as_dir" && as_dir=.
11773 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011775 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11777 break 2
11778 fi
11779done
11780 done
11781IFS=$as_save_IFS
11782
11783fi
11784fi
11785AR=$ac_cv_prog_AR
11786if test -n "$AR"; then
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11788$as_echo "$AR" >&6; }
11789else
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11791$as_echo "no" >&6; }
11792fi
11793
11794
cristyda16f162011-02-19 23:52:17 +000011795 test -n "$AR" && break
11796 done
cristy73bd4a52010-10-05 11:24:23 +000011797fi
cristyda16f162011-02-19 23:52:17 +000011798if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000011799 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000011800 for ac_prog in ar
11801do
11802 # Extract the first word of "$ac_prog", so it can be a program name with args.
11803set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11805$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011806if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011807 $as_echo_n "(cached) " >&6
11808else
11809 if test -n "$ac_ct_AR"; then
11810 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11811else
11812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11813for as_dir in $PATH
11814do
11815 IFS=$as_save_IFS
11816 test -z "$as_dir" && as_dir=.
11817 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011819 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11821 break 2
11822 fi
11823done
11824 done
11825IFS=$as_save_IFS
11826
11827fi
11828fi
11829ac_ct_AR=$ac_cv_prog_ac_ct_AR
11830if test -n "$ac_ct_AR"; then
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11832$as_echo "$ac_ct_AR" >&6; }
11833else
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11835$as_echo "no" >&6; }
11836fi
11837
cristyda16f162011-02-19 23:52:17 +000011838
11839 test -n "$ac_ct_AR" && break
11840done
11841
cristy73bd4a52010-10-05 11:24:23 +000011842 if test "x$ac_ct_AR" = x; then
11843 AR="false"
11844 else
11845 case $cross_compiling:$ac_tool_warned in
11846yes:)
11847{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11848$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11849ac_tool_warned=yes ;;
11850esac
11851 AR=$ac_ct_AR
11852 fi
cristy73bd4a52010-10-05 11:24:23 +000011853fi
11854
cristyda16f162011-02-19 23:52:17 +000011855: ${AR=ar}
11856: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000011857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
cristyda16f162011-02-19 23:52:17 +000011868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
11869$as_echo_n "checking for archiver @FILE support... " >&6; }
11870if ${lt_cv_ar_at_file+:} false; then :
11871 $as_echo_n "(cached) " >&6
11872else
11873 lt_cv_ar_at_file=no
11874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11875/* end confdefs.h. */
11876
11877int
11878main ()
11879{
11880
11881 ;
11882 return 0;
11883}
11884_ACEOF
11885if ac_fn_c_try_compile "$LINENO"; then :
11886 echo conftest.$ac_objext > conftest.lst
11887 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
11888 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11889 (eval $lt_ar_try) 2>&5
11890 ac_status=$?
11891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11892 test $ac_status = 0; }
11893 if test "$ac_status" -eq 0; then
11894 # Ensure the archiver fails upon bogus file names.
11895 rm -f conftest.$ac_objext libconftest.a
11896 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11897 (eval $lt_ar_try) 2>&5
11898 ac_status=$?
11899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11900 test $ac_status = 0; }
11901 if test "$ac_status" -ne 0; then
11902 lt_cv_ar_at_file=@
11903 fi
11904 fi
11905 rm -f conftest.* libconftest.a
11906
11907fi
11908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11909
11910fi
11911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
11912$as_echo "$lt_cv_ar_at_file" >&6; }
11913
11914if test "x$lt_cv_ar_at_file" = xno; then
11915 archiver_list_spec=
11916else
11917 archiver_list_spec=$lt_cv_ar_at_file
11918fi
11919
11920
11921
11922
11923
11924
11925
cristy73bd4a52010-10-05 11:24:23 +000011926if test -n "$ac_tool_prefix"; then
11927 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11928set dummy ${ac_tool_prefix}strip; ac_word=$2
11929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11930$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011931if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011932 $as_echo_n "(cached) " >&6
11933else
11934 if test -n "$STRIP"; then
11935 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11936else
11937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11938for as_dir in $PATH
11939do
11940 IFS=$as_save_IFS
11941 test -z "$as_dir" && as_dir=.
11942 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011944 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11946 break 2
11947 fi
11948done
11949 done
11950IFS=$as_save_IFS
11951
11952fi
11953fi
11954STRIP=$ac_cv_prog_STRIP
11955if test -n "$STRIP"; then
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11957$as_echo "$STRIP" >&6; }
11958else
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11960$as_echo "no" >&6; }
11961fi
11962
11963
11964fi
11965if test -z "$ac_cv_prog_STRIP"; then
11966 ac_ct_STRIP=$STRIP
11967 # Extract the first word of "strip", so it can be a program name with args.
11968set dummy strip; ac_word=$2
11969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11970$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011971if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011972 $as_echo_n "(cached) " >&6
11973else
11974 if test -n "$ac_ct_STRIP"; then
11975 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11976else
11977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11978for as_dir in $PATH
11979do
11980 IFS=$as_save_IFS
11981 test -z "$as_dir" && as_dir=.
11982 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011984 ac_cv_prog_ac_ct_STRIP="strip"
11985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11986 break 2
11987 fi
11988done
11989 done
11990IFS=$as_save_IFS
11991
11992fi
11993fi
11994ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11995if test -n "$ac_ct_STRIP"; then
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11997$as_echo "$ac_ct_STRIP" >&6; }
11998else
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12000$as_echo "no" >&6; }
12001fi
12002
12003 if test "x$ac_ct_STRIP" = x; then
12004 STRIP=":"
12005 else
12006 case $cross_compiling:$ac_tool_warned in
12007yes:)
12008{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12009$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12010ac_tool_warned=yes ;;
12011esac
12012 STRIP=$ac_ct_STRIP
12013 fi
12014else
12015 STRIP="$ac_cv_prog_STRIP"
12016fi
12017
12018test -z "$STRIP" && STRIP=:
12019
12020
12021
12022
12023
12024
12025if test -n "$ac_tool_prefix"; then
12026 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12027set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12029$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012030if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012031 $as_echo_n "(cached) " >&6
12032else
12033 if test -n "$RANLIB"; then
12034 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12035else
12036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12037for as_dir in $PATH
12038do
12039 IFS=$as_save_IFS
12040 test -z "$as_dir" && as_dir=.
12041 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012043 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12045 break 2
12046 fi
12047done
12048 done
12049IFS=$as_save_IFS
12050
12051fi
12052fi
12053RANLIB=$ac_cv_prog_RANLIB
12054if test -n "$RANLIB"; then
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12056$as_echo "$RANLIB" >&6; }
12057else
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12059$as_echo "no" >&6; }
12060fi
12061
12062
12063fi
12064if test -z "$ac_cv_prog_RANLIB"; then
12065 ac_ct_RANLIB=$RANLIB
12066 # Extract the first word of "ranlib", so it can be a program name with args.
12067set dummy ranlib; ac_word=$2
12068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12069$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012070if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012071 $as_echo_n "(cached) " >&6
12072else
12073 if test -n "$ac_ct_RANLIB"; then
12074 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12075else
12076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12077for as_dir in $PATH
12078do
12079 IFS=$as_save_IFS
12080 test -z "$as_dir" && as_dir=.
12081 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012083 ac_cv_prog_ac_ct_RANLIB="ranlib"
12084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12085 break 2
12086 fi
12087done
12088 done
12089IFS=$as_save_IFS
12090
12091fi
12092fi
12093ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12094if test -n "$ac_ct_RANLIB"; then
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12096$as_echo "$ac_ct_RANLIB" >&6; }
12097else
12098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12099$as_echo "no" >&6; }
12100fi
12101
12102 if test "x$ac_ct_RANLIB" = x; then
12103 RANLIB=":"
12104 else
12105 case $cross_compiling:$ac_tool_warned in
12106yes:)
12107{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12108$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12109ac_tool_warned=yes ;;
12110esac
12111 RANLIB=$ac_ct_RANLIB
12112 fi
12113else
12114 RANLIB="$ac_cv_prog_RANLIB"
12115fi
12116
12117test -z "$RANLIB" && RANLIB=:
12118
12119
12120
12121
12122
12123
12124# Determine commands to create old-style static archives.
12125old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12126old_postinstall_cmds='chmod 644 $oldlib'
12127old_postuninstall_cmds=
12128
12129if test -n "$RANLIB"; then
12130 case $host_os in
12131 openbsd*)
cristy99bd5232011-12-07 14:38:20 +000012132 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012133 ;;
12134 *)
cristy99bd5232011-12-07 14:38:20 +000012135 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012136 ;;
12137 esac
cristy99bd5232011-12-07 14:38:20 +000012138 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012139fi
12140
cristy0c60a692010-11-04 01:09:47 +000012141case $host_os in
12142 darwin*)
12143 lock_old_archive_extraction=yes ;;
12144 *)
12145 lock_old_archive_extraction=no ;;
12146esac
12147
12148
12149
12150
12151
12152
cristy73bd4a52010-10-05 11:24:23 +000012153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186# If no C compiler was specified, use CC.
12187LTCC=${LTCC-"$CC"}
12188
12189# If no C compiler flags were specified, use CFLAGS.
12190LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12191
12192# Allow CC to be a program name with arguments.
12193compiler=$CC
12194
12195
12196# Check for command to grab the raw symbol name followed by C symbol from nm.
12197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12198$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012199if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012200 $as_echo_n "(cached) " >&6
12201else
12202
12203# These are sane defaults that work on at least a few old systems.
12204# [They come from Ultrix. What could be older than Ultrix?!! ;)]
12205
12206# Character class describing NM global symbol codes.
12207symcode='[BCDEGRST]'
12208
12209# Regexp to match symbols that can be accessed directly from C.
12210sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12211
12212# Define system-specific variables.
12213case $host_os in
12214aix*)
12215 symcode='[BCDT]'
12216 ;;
12217cygwin* | mingw* | pw32* | cegcc*)
12218 symcode='[ABCDGISTW]'
12219 ;;
12220hpux*)
12221 if test "$host_cpu" = ia64; then
12222 symcode='[ABCDEGRST]'
12223 fi
12224 ;;
12225irix* | nonstopux*)
12226 symcode='[BCDEGRST]'
12227 ;;
12228osf*)
12229 symcode='[BCDEGQRST]'
12230 ;;
12231solaris*)
12232 symcode='[BDRT]'
12233 ;;
12234sco3.2v5*)
12235 symcode='[DT]'
12236 ;;
12237sysv4.2uw2*)
12238 symcode='[DT]'
12239 ;;
12240sysv5* | sco5v6* | unixware* | OpenUNIX*)
12241 symcode='[ABDT]'
12242 ;;
12243sysv4)
12244 symcode='[DFNSTU]'
12245 ;;
12246esac
12247
12248# If we're using GNU nm, then use its standard symbol codes.
12249case `$NM -V 2>&1` in
12250*GNU* | *'with BFD'*)
12251 symcode='[ABCDGIRSTW]' ;;
12252esac
12253
12254# Transform an extracted symbol line into a proper C declaration.
12255# Some systems (esp. on ia64) link data and code symbols differently,
12256# so use this general approach.
12257lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12258
12259# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000012260lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12261lt_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 +000012262
12263# Handle CRLF in mingw tool chain
12264opt_cr=
12265case $build_os in
12266mingw*)
12267 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12268 ;;
12269esac
12270
12271# Try without a prefix underscore, then with it.
12272for ac_symprfx in "" "_"; do
12273
12274 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12275 symxfrm="\\1 $ac_symprfx\\2 \\2"
12276
12277 # Write the raw and C identifiers.
12278 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12279 # Fake it for dumpbin and say T for any non-static function
12280 # and D for any global variable.
12281 # Also find C++ and __fastcall symbols from MSVC++,
12282 # which start with @ or ?.
12283 lt_cv_sys_global_symbol_pipe="$AWK '"\
12284" {last_section=section; section=\$ 3};"\
cristy99bd5232011-12-07 14:38:20 +000012285" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
cristy73bd4a52010-10-05 11:24:23 +000012286" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12287" \$ 0!~/External *\|/{next};"\
12288" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12289" {if(hide[section]) next};"\
12290" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12291" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12292" s[1]~/^[@?]/{print s[1], s[1]; next};"\
12293" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12294" ' prfx=^$ac_symprfx"
12295 else
12296 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12297 fi
cristyda16f162011-02-19 23:52:17 +000012298 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000012299
12300 # Check to see that the pipe works correctly.
12301 pipe_works=no
12302
12303 rm -f conftest*
12304 cat > conftest.$ac_ext <<_LT_EOF
12305#ifdef __cplusplus
12306extern "C" {
12307#endif
12308char nm_test_var;
12309void nm_test_func(void);
12310void nm_test_func(void){}
12311#ifdef __cplusplus
12312}
12313#endif
12314int main(){nm_test_var='a';nm_test_func();return(0);}
12315_LT_EOF
12316
12317 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12318 (eval $ac_compile) 2>&5
12319 ac_status=$?
12320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12321 test $ac_status = 0; }; then
12322 # Now try to grab the symbols.
12323 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000012324 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12325 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000012326 ac_status=$?
12327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12328 test $ac_status = 0; } && test -s "$nlist"; then
12329 # Try sorting and uniquifying the output.
12330 if sort "$nlist" | uniq > "$nlist"T; then
12331 mv -f "$nlist"T "$nlist"
12332 else
12333 rm -f "$nlist"T
12334 fi
12335
12336 # Make sure that we snagged all the symbols we need.
12337 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12338 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12339 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000012340/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12341#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12342/* DATA imports from DLLs on WIN32 con't be const, because runtime
12343 relocations are performed -- see ld's documentation on pseudo-relocs. */
12344# define LT_DLSYM_CONST
12345#elif defined(__osf__)
12346/* This system does not cope well with relocations in const data. */
12347# define LT_DLSYM_CONST
12348#else
12349# define LT_DLSYM_CONST const
12350#endif
12351
cristy73bd4a52010-10-05 11:24:23 +000012352#ifdef __cplusplus
12353extern "C" {
12354#endif
12355
12356_LT_EOF
12357 # Now generate the symbol file.
12358 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12359
12360 cat <<_LT_EOF >> conftest.$ac_ext
12361
12362/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000012363LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000012364 const char *name;
12365 void *address;
12366}
12367lt__PROGRAM__LTX_preloaded_symbols[] =
12368{
12369 { "@PROGRAM@", (void *) 0 },
12370_LT_EOF
12371 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12372 cat <<\_LT_EOF >> conftest.$ac_ext
12373 {0, (void *) 0}
12374};
12375
12376/* This works around a problem in FreeBSD linker */
12377#ifdef FREEBSD_WORKAROUND
12378static const void *lt_preloaded_setup() {
12379 return lt__PROGRAM__LTX_preloaded_symbols;
12380}
12381#endif
12382
12383#ifdef __cplusplus
12384}
12385#endif
12386_LT_EOF
12387 # Now try linking the two files.
12388 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000012389 lt_globsym_save_LIBS=$LIBS
12390 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012391 LIBS="conftstm.$ac_objext"
12392 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12393 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12394 (eval $ac_link) 2>&5
12395 ac_status=$?
12396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12397 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12398 pipe_works=yes
12399 fi
cristyda16f162011-02-19 23:52:17 +000012400 LIBS=$lt_globsym_save_LIBS
12401 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012402 else
12403 echo "cannot find nm_test_func in $nlist" >&5
12404 fi
12405 else
12406 echo "cannot find nm_test_var in $nlist" >&5
12407 fi
12408 else
12409 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12410 fi
12411 else
12412 echo "$progname: failed program was:" >&5
12413 cat conftest.$ac_ext >&5
12414 fi
12415 rm -rf conftest* conftst*
12416
12417 # Do not use the global_symbol_pipe unless it works.
12418 if test "$pipe_works" = yes; then
12419 break
12420 else
12421 lt_cv_sys_global_symbol_pipe=
12422 fi
12423done
12424
12425fi
12426
12427if test -z "$lt_cv_sys_global_symbol_pipe"; then
12428 lt_cv_sys_global_symbol_to_cdecl=
12429fi
12430if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12432$as_echo "failed" >&6; }
12433else
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12435$as_echo "ok" >&6; }
12436fi
12437
cristyda16f162011-02-19 23:52:17 +000012438# Response file support.
12439if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12440 nm_file_list_spec='@'
12441elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12442 nm_file_list_spec='@'
12443fi
cristy73bd4a52010-10-05 11:24:23 +000012444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
cristyda16f162011-02-19 23:52:17 +000012465
12466
12467
12468
12469
12470
12471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12472$as_echo_n "checking for sysroot... " >&6; }
12473
12474# Check whether --with-sysroot was given.
12475if test "${with_sysroot+set}" = set; then :
12476 withval=$with_sysroot;
12477else
12478 with_sysroot=no
12479fi
12480
12481
12482lt_sysroot=
12483case ${with_sysroot} in #(
12484 yes)
12485 if test "$GCC" = yes; then
12486 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12487 fi
12488 ;; #(
12489 /*)
12490 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12491 ;; #(
12492 no|'')
12493 ;; #(
12494 *)
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12496$as_echo "${with_sysroot}" >&6; }
12497 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12498 ;;
12499esac
12500
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12502$as_echo "${lt_sysroot:-no}" >&6; }
12503
12504
12505
12506
12507
cristy73bd4a52010-10-05 11:24:23 +000012508# Check whether --enable-libtool-lock was given.
12509if test "${enable_libtool_lock+set}" = set; then :
12510 enableval=$enable_libtool_lock;
12511fi
12512
12513test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12514
12515# Some flags need to be propagated to the compiler or linker for good
12516# libtool support.
12517case $host in
12518ia64-*-hpux*)
12519 # Find out which ABI we are using.
12520 echo 'int i;' > conftest.$ac_ext
12521 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12522 (eval $ac_compile) 2>&5
12523 ac_status=$?
12524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12525 test $ac_status = 0; }; then
12526 case `/usr/bin/file conftest.$ac_objext` in
12527 *ELF-32*)
12528 HPUX_IA64_MODE="32"
12529 ;;
12530 *ELF-64*)
12531 HPUX_IA64_MODE="64"
12532 ;;
12533 esac
12534 fi
12535 rm -rf conftest*
12536 ;;
12537*-*-irix6*)
12538 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000012539 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000012540 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12541 (eval $ac_compile) 2>&5
12542 ac_status=$?
12543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12544 test $ac_status = 0; }; then
12545 if test "$lt_cv_prog_gnu_ld" = yes; then
12546 case `/usr/bin/file conftest.$ac_objext` in
12547 *32-bit*)
12548 LD="${LD-ld} -melf32bsmip"
12549 ;;
12550 *N32*)
12551 LD="${LD-ld} -melf32bmipn32"
12552 ;;
12553 *64-bit*)
12554 LD="${LD-ld} -melf64bmip"
12555 ;;
12556 esac
12557 else
12558 case `/usr/bin/file conftest.$ac_objext` in
12559 *32-bit*)
12560 LD="${LD-ld} -32"
12561 ;;
12562 *N32*)
12563 LD="${LD-ld} -n32"
12564 ;;
12565 *64-bit*)
12566 LD="${LD-ld} -64"
12567 ;;
12568 esac
12569 fi
12570 fi
12571 rm -rf conftest*
12572 ;;
12573
12574x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12575s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12576 # Find out which ABI we are using.
12577 echo 'int i;' > conftest.$ac_ext
12578 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12579 (eval $ac_compile) 2>&5
12580 ac_status=$?
12581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12582 test $ac_status = 0; }; then
12583 case `/usr/bin/file conftest.o` in
12584 *32-bit*)
12585 case $host in
12586 x86_64-*kfreebsd*-gnu)
12587 LD="${LD-ld} -m elf_i386_fbsd"
12588 ;;
12589 x86_64-*linux*)
12590 LD="${LD-ld} -m elf_i386"
12591 ;;
12592 ppc64-*linux*|powerpc64-*linux*)
12593 LD="${LD-ld} -m elf32ppclinux"
12594 ;;
12595 s390x-*linux*)
12596 LD="${LD-ld} -m elf_s390"
12597 ;;
12598 sparc64-*linux*)
12599 LD="${LD-ld} -m elf32_sparc"
12600 ;;
12601 esac
12602 ;;
12603 *64-bit*)
12604 case $host in
12605 x86_64-*kfreebsd*-gnu)
12606 LD="${LD-ld} -m elf_x86_64_fbsd"
12607 ;;
12608 x86_64-*linux*)
12609 LD="${LD-ld} -m elf_x86_64"
12610 ;;
12611 ppc*-*linux*|powerpc*-*linux*)
12612 LD="${LD-ld} -m elf64ppc"
12613 ;;
12614 s390*-*linux*|s390*-*tpf*)
12615 LD="${LD-ld} -m elf64_s390"
12616 ;;
12617 sparc*-*linux*)
12618 LD="${LD-ld} -m elf64_sparc"
12619 ;;
12620 esac
12621 ;;
12622 esac
12623 fi
12624 rm -rf conftest*
12625 ;;
12626
12627*-*-sco3.2v5*)
12628 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12629 SAVE_CFLAGS="$CFLAGS"
12630 CFLAGS="$CFLAGS -belf"
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12632$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012633if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012634 $as_echo_n "(cached) " >&6
12635else
12636 ac_ext=c
12637ac_cpp='$CPP $CPPFLAGS'
12638ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12639ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12640ac_compiler_gnu=$ac_cv_c_compiler_gnu
12641
12642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12643/* end confdefs.h. */
12644
12645int
12646main ()
12647{
12648
12649 ;
12650 return 0;
12651}
12652_ACEOF
12653if ac_fn_c_try_link "$LINENO"; then :
12654 lt_cv_cc_needs_belf=yes
12655else
12656 lt_cv_cc_needs_belf=no
12657fi
12658rm -f core conftest.err conftest.$ac_objext \
12659 conftest$ac_exeext conftest.$ac_ext
12660 ac_ext=c
12661ac_cpp='$CPP $CPPFLAGS'
12662ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12663ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12664ac_compiler_gnu=$ac_cv_c_compiler_gnu
12665
12666fi
12667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12668$as_echo "$lt_cv_cc_needs_belf" >&6; }
12669 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12670 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12671 CFLAGS="$SAVE_CFLAGS"
12672 fi
12673 ;;
cristy99bd5232011-12-07 14:38:20 +000012674*-*solaris*)
cristy73bd4a52010-10-05 11:24:23 +000012675 # Find out which ABI we are using.
12676 echo 'int i;' > conftest.$ac_ext
12677 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12678 (eval $ac_compile) 2>&5
12679 ac_status=$?
12680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12681 test $ac_status = 0; }; then
12682 case `/usr/bin/file conftest.o` in
12683 *64-bit*)
12684 case $lt_cv_prog_gnu_ld in
cristy99bd5232011-12-07 14:38:20 +000012685 yes*)
12686 case $host in
12687 i?86-*-solaris*)
12688 LD="${LD-ld} -m elf_x86_64"
12689 ;;
12690 sparc*-*-solaris*)
12691 LD="${LD-ld} -m elf64_sparc"
12692 ;;
12693 esac
12694 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
12695 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12696 LD="${LD-ld}_sol2"
12697 fi
12698 ;;
cristy73bd4a52010-10-05 11:24:23 +000012699 *)
12700 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12701 LD="${LD-ld} -64"
12702 fi
12703 ;;
12704 esac
12705 ;;
12706 esac
12707 fi
12708 rm -rf conftest*
12709 ;;
12710esac
12711
12712need_locks="$enable_libtool_lock"
12713
cristyda16f162011-02-19 23:52:17 +000012714if test -n "$ac_tool_prefix"; then
12715 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
12716set dummy ${ac_tool_prefix}mt; ac_word=$2
12717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12718$as_echo_n "checking for $ac_word... " >&6; }
12719if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
12720 $as_echo_n "(cached) " >&6
12721else
12722 if test -n "$MANIFEST_TOOL"; then
12723 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
12724else
12725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12726for as_dir in $PATH
12727do
12728 IFS=$as_save_IFS
12729 test -z "$as_dir" && as_dir=.
12730 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012732 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
12733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12734 break 2
12735 fi
12736done
12737 done
12738IFS=$as_save_IFS
12739
12740fi
12741fi
12742MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
12743if test -n "$MANIFEST_TOOL"; then
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
12745$as_echo "$MANIFEST_TOOL" >&6; }
12746else
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12748$as_echo "no" >&6; }
12749fi
12750
12751
12752fi
12753if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
12754 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
12755 # Extract the first word of "mt", so it can be a program name with args.
12756set dummy mt; ac_word=$2
12757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12758$as_echo_n "checking for $ac_word... " >&6; }
12759if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
12760 $as_echo_n "(cached) " >&6
12761else
12762 if test -n "$ac_ct_MANIFEST_TOOL"; then
12763 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
12764else
12765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12766for as_dir in $PATH
12767do
12768 IFS=$as_save_IFS
12769 test -z "$as_dir" && as_dir=.
12770 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012772 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
12773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12774 break 2
12775 fi
12776done
12777 done
12778IFS=$as_save_IFS
12779
12780fi
12781fi
12782ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
12783if test -n "$ac_ct_MANIFEST_TOOL"; then
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
12785$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
12786else
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12788$as_echo "no" >&6; }
12789fi
12790
12791 if test "x$ac_ct_MANIFEST_TOOL" = x; then
12792 MANIFEST_TOOL=":"
12793 else
12794 case $cross_compiling:$ac_tool_warned in
12795yes:)
12796{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12797$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12798ac_tool_warned=yes ;;
12799esac
12800 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
12801 fi
12802else
12803 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
12804fi
12805
12806test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
12807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
12808$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
12809if ${lt_cv_path_mainfest_tool+:} false; then :
12810 $as_echo_n "(cached) " >&6
12811else
12812 lt_cv_path_mainfest_tool=no
12813 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
12814 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
12815 cat conftest.err >&5
12816 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
12817 lt_cv_path_mainfest_tool=yes
12818 fi
12819 rm -f conftest*
12820fi
12821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
12822$as_echo "$lt_cv_path_mainfest_tool" >&6; }
12823if test "x$lt_cv_path_mainfest_tool" != xyes; then
12824 MANIFEST_TOOL=:
12825fi
12826
12827
12828
12829
12830
cristy73bd4a52010-10-05 11:24:23 +000012831
12832 case $host_os in
12833 rhapsody* | darwin*)
12834 if test -n "$ac_tool_prefix"; then
12835 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
12836set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
12837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12838$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012839if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012840 $as_echo_n "(cached) " >&6
12841else
12842 if test -n "$DSYMUTIL"; then
12843 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12844else
12845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12846for as_dir in $PATH
12847do
12848 IFS=$as_save_IFS
12849 test -z "$as_dir" && as_dir=.
12850 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012852 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
12853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12854 break 2
12855 fi
12856done
12857 done
12858IFS=$as_save_IFS
12859
12860fi
12861fi
12862DSYMUTIL=$ac_cv_prog_DSYMUTIL
12863if test -n "$DSYMUTIL"; then
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12865$as_echo "$DSYMUTIL" >&6; }
12866else
12867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12868$as_echo "no" >&6; }
12869fi
12870
12871
12872fi
12873if test -z "$ac_cv_prog_DSYMUTIL"; then
12874 ac_ct_DSYMUTIL=$DSYMUTIL
12875 # Extract the first word of "dsymutil", so it can be a program name with args.
12876set dummy dsymutil; ac_word=$2
12877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12878$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012879if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012880 $as_echo_n "(cached) " >&6
12881else
12882 if test -n "$ac_ct_DSYMUTIL"; then
12883 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
12884else
12885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12886for as_dir in $PATH
12887do
12888 IFS=$as_save_IFS
12889 test -z "$as_dir" && as_dir=.
12890 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012892 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
12893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12894 break 2
12895 fi
12896done
12897 done
12898IFS=$as_save_IFS
12899
12900fi
12901fi
12902ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
12903if test -n "$ac_ct_DSYMUTIL"; then
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
12905$as_echo "$ac_ct_DSYMUTIL" >&6; }
12906else
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12908$as_echo "no" >&6; }
12909fi
12910
12911 if test "x$ac_ct_DSYMUTIL" = x; then
12912 DSYMUTIL=":"
12913 else
12914 case $cross_compiling:$ac_tool_warned in
12915yes:)
12916{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12917$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12918ac_tool_warned=yes ;;
12919esac
12920 DSYMUTIL=$ac_ct_DSYMUTIL
12921 fi
12922else
12923 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
12924fi
12925
12926 if test -n "$ac_tool_prefix"; then
12927 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
12928set dummy ${ac_tool_prefix}nmedit; ac_word=$2
12929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12930$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012931if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012932 $as_echo_n "(cached) " >&6
12933else
12934 if test -n "$NMEDIT"; then
12935 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
12936else
12937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12938for as_dir in $PATH
12939do
12940 IFS=$as_save_IFS
12941 test -z "$as_dir" && as_dir=.
12942 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012944 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
12945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12946 break 2
12947 fi
12948done
12949 done
12950IFS=$as_save_IFS
12951
12952fi
12953fi
12954NMEDIT=$ac_cv_prog_NMEDIT
12955if test -n "$NMEDIT"; then
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
12957$as_echo "$NMEDIT" >&6; }
12958else
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12960$as_echo "no" >&6; }
12961fi
12962
12963
12964fi
12965if test -z "$ac_cv_prog_NMEDIT"; then
12966 ac_ct_NMEDIT=$NMEDIT
12967 # Extract the first word of "nmedit", so it can be a program name with args.
12968set dummy nmedit; ac_word=$2
12969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12970$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012971if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012972 $as_echo_n "(cached) " >&6
12973else
12974 if test -n "$ac_ct_NMEDIT"; then
12975 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
12976else
12977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12978for as_dir in $PATH
12979do
12980 IFS=$as_save_IFS
12981 test -z "$as_dir" && as_dir=.
12982 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012984 ac_cv_prog_ac_ct_NMEDIT="nmedit"
12985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12986 break 2
12987 fi
12988done
12989 done
12990IFS=$as_save_IFS
12991
12992fi
12993fi
12994ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
12995if test -n "$ac_ct_NMEDIT"; then
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
12997$as_echo "$ac_ct_NMEDIT" >&6; }
12998else
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13000$as_echo "no" >&6; }
13001fi
13002
13003 if test "x$ac_ct_NMEDIT" = x; then
13004 NMEDIT=":"
13005 else
13006 case $cross_compiling:$ac_tool_warned in
13007yes:)
13008{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13009$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13010ac_tool_warned=yes ;;
13011esac
13012 NMEDIT=$ac_ct_NMEDIT
13013 fi
13014else
13015 NMEDIT="$ac_cv_prog_NMEDIT"
13016fi
13017
13018 if test -n "$ac_tool_prefix"; then
13019 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13020set dummy ${ac_tool_prefix}lipo; ac_word=$2
13021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13022$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013023if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013024 $as_echo_n "(cached) " >&6
13025else
13026 if test -n "$LIPO"; then
13027 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13028else
13029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13030for as_dir in $PATH
13031do
13032 IFS=$as_save_IFS
13033 test -z "$as_dir" && as_dir=.
13034 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013036 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13038 break 2
13039 fi
13040done
13041 done
13042IFS=$as_save_IFS
13043
13044fi
13045fi
13046LIPO=$ac_cv_prog_LIPO
13047if test -n "$LIPO"; then
13048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13049$as_echo "$LIPO" >&6; }
13050else
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13052$as_echo "no" >&6; }
13053fi
13054
13055
13056fi
13057if test -z "$ac_cv_prog_LIPO"; then
13058 ac_ct_LIPO=$LIPO
13059 # Extract the first word of "lipo", so it can be a program name with args.
13060set dummy lipo; ac_word=$2
13061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13062$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013063if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013064 $as_echo_n "(cached) " >&6
13065else
13066 if test -n "$ac_ct_LIPO"; then
13067 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13068else
13069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13070for as_dir in $PATH
13071do
13072 IFS=$as_save_IFS
13073 test -z "$as_dir" && as_dir=.
13074 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013076 ac_cv_prog_ac_ct_LIPO="lipo"
13077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13078 break 2
13079 fi
13080done
13081 done
13082IFS=$as_save_IFS
13083
13084fi
13085fi
13086ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13087if test -n "$ac_ct_LIPO"; then
13088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13089$as_echo "$ac_ct_LIPO" >&6; }
13090else
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13092$as_echo "no" >&6; }
13093fi
13094
13095 if test "x$ac_ct_LIPO" = x; then
13096 LIPO=":"
13097 else
13098 case $cross_compiling:$ac_tool_warned in
13099yes:)
13100{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13101$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13102ac_tool_warned=yes ;;
13103esac
13104 LIPO=$ac_ct_LIPO
13105 fi
13106else
13107 LIPO="$ac_cv_prog_LIPO"
13108fi
13109
13110 if test -n "$ac_tool_prefix"; then
13111 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13112set dummy ${ac_tool_prefix}otool; ac_word=$2
13113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13114$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013115if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013116 $as_echo_n "(cached) " >&6
13117else
13118 if test -n "$OTOOL"; then
13119 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13120else
13121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13122for as_dir in $PATH
13123do
13124 IFS=$as_save_IFS
13125 test -z "$as_dir" && as_dir=.
13126 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013128 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13130 break 2
13131 fi
13132done
13133 done
13134IFS=$as_save_IFS
13135
13136fi
13137fi
13138OTOOL=$ac_cv_prog_OTOOL
13139if test -n "$OTOOL"; then
13140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13141$as_echo "$OTOOL" >&6; }
13142else
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13144$as_echo "no" >&6; }
13145fi
13146
13147
13148fi
13149if test -z "$ac_cv_prog_OTOOL"; then
13150 ac_ct_OTOOL=$OTOOL
13151 # Extract the first word of "otool", so it can be a program name with args.
13152set dummy otool; 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_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013156 $as_echo_n "(cached) " >&6
13157else
13158 if test -n "$ac_ct_OTOOL"; then
13159 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # 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_ac_ct_OTOOL="otool"
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
13178ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13179if test -n "$ac_ct_OTOOL"; then
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13181$as_echo "$ac_ct_OTOOL" >&6; }
13182else
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13184$as_echo "no" >&6; }
13185fi
13186
13187 if test "x$ac_ct_OTOOL" = x; then
13188 OTOOL=":"
13189 else
13190 case $cross_compiling:$ac_tool_warned in
13191yes:)
13192{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13193$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13194ac_tool_warned=yes ;;
13195esac
13196 OTOOL=$ac_ct_OTOOL
13197 fi
13198else
13199 OTOOL="$ac_cv_prog_OTOOL"
13200fi
13201
13202 if test -n "$ac_tool_prefix"; then
13203 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13204set dummy ${ac_tool_prefix}otool64; ac_word=$2
13205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13206$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013207if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013208 $as_echo_n "(cached) " >&6
13209else
13210 if test -n "$OTOOL64"; then
13211 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13212else
13213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13214for as_dir in $PATH
13215do
13216 IFS=$as_save_IFS
13217 test -z "$as_dir" && as_dir=.
13218 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013220 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13222 break 2
13223 fi
13224done
13225 done
13226IFS=$as_save_IFS
13227
13228fi
13229fi
13230OTOOL64=$ac_cv_prog_OTOOL64
13231if test -n "$OTOOL64"; then
13232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13233$as_echo "$OTOOL64" >&6; }
13234else
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13236$as_echo "no" >&6; }
13237fi
13238
13239
13240fi
13241if test -z "$ac_cv_prog_OTOOL64"; then
13242 ac_ct_OTOOL64=$OTOOL64
13243 # Extract the first word of "otool64", so it can be a program name with args.
13244set dummy otool64; 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_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013248 $as_echo_n "(cached) " >&6
13249else
13250 if test -n "$ac_ct_OTOOL64"; then
13251 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # 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_ac_ct_OTOOL64="otool64"
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
13270ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13271if test -n "$ac_ct_OTOOL64"; then
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13273$as_echo "$ac_ct_OTOOL64" >&6; }
13274else
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13276$as_echo "no" >&6; }
13277fi
13278
13279 if test "x$ac_ct_OTOOL64" = x; then
13280 OTOOL64=":"
13281 else
13282 case $cross_compiling:$ac_tool_warned in
13283yes:)
13284{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13285$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13286ac_tool_warned=yes ;;
13287esac
13288 OTOOL64=$ac_ct_OTOOL64
13289 fi
13290else
13291 OTOOL64="$ac_cv_prog_OTOOL64"
13292fi
13293
13294
13295
13296
13297
13298
13299
13300
13301
13302
13303
13304
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315
13316
13317
13318
13319
13320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13321$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013322if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013323 $as_echo_n "(cached) " >&6
13324else
13325 lt_cv_apple_cc_single_mod=no
13326 if test -z "${LT_MULTI_MODULE}"; then
13327 # By default we will add the -single_module flag. You can override
13328 # by either setting the environment variable LT_MULTI_MODULE
13329 # non-empty at configure time, or by adding -multi_module to the
13330 # link flags.
13331 rm -rf libconftest.dylib*
13332 echo "int foo(void){return 1;}" > conftest.c
13333 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13334-dynamiclib -Wl,-single_module conftest.c" >&5
13335 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13336 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13337 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013338 # If there is a non-empty error log, and "single_module"
13339 # appears in it, assume the flag caused a linker warning
13340 if test -s conftest.err && $GREP single_module conftest.err; then
13341 cat conftest.err >&5
13342 # Otherwise, if the output was created with a 0 exit code from
13343 # the compiler, it worked.
13344 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
cristy73bd4a52010-10-05 11:24:23 +000013345 lt_cv_apple_cc_single_mod=yes
13346 else
13347 cat conftest.err >&5
13348 fi
13349 rm -rf libconftest.dylib*
13350 rm -f conftest.*
13351 fi
13352fi
13353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13354$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013355
cristy73bd4a52010-10-05 11:24:23 +000013356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13357$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013358if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013359 $as_echo_n "(cached) " >&6
13360else
13361 lt_cv_ld_exported_symbols_list=no
13362 save_LDFLAGS=$LDFLAGS
13363 echo "_main" > conftest.sym
13364 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13366/* end confdefs.h. */
13367
13368int
13369main ()
13370{
13371
13372 ;
13373 return 0;
13374}
13375_ACEOF
13376if ac_fn_c_try_link "$LINENO"; then :
13377 lt_cv_ld_exported_symbols_list=yes
13378else
13379 lt_cv_ld_exported_symbols_list=no
13380fi
13381rm -f core conftest.err conftest.$ac_objext \
13382 conftest$ac_exeext conftest.$ac_ext
13383 LDFLAGS="$save_LDFLAGS"
13384
13385fi
13386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13387$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013388
cristy0c60a692010-11-04 01:09:47 +000013389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13390$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013391if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000013392 $as_echo_n "(cached) " >&6
13393else
13394 lt_cv_ld_force_load=no
13395 cat > conftest.c << _LT_EOF
13396int forced_loaded() { return 2;}
13397_LT_EOF
13398 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13399 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13400 echo "$AR cru libconftest.a conftest.o" >&5
13401 $AR cru libconftest.a conftest.o 2>&5
13402 echo "$RANLIB libconftest.a" >&5
13403 $RANLIB libconftest.a 2>&5
13404 cat > conftest.c << _LT_EOF
13405int main() { return 0;}
13406_LT_EOF
13407 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13408 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13409 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013410 if test -s conftest.err && $GREP force_load conftest.err; then
13411 cat conftest.err >&5
13412 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
cristy0c60a692010-11-04 01:09:47 +000013413 lt_cv_ld_force_load=yes
13414 else
13415 cat conftest.err >&5
13416 fi
13417 rm -f conftest.err libconftest.a conftest conftest.c
13418 rm -rf conftest.dSYM
13419
13420fi
13421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13422$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000013423 case $host_os in
13424 rhapsody* | darwin1.[012])
13425 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13426 darwin1.*)
13427 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13428 darwin*) # darwin 5.x on
13429 # if running on 10.5 or later, the deployment target defaults
13430 # to the OS version, if on x86, and 10.4, the deployment
13431 # target defaults to 10.4. Don't you love it?
13432 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13433 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13434 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13435 10.[012]*)
13436 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13437 10.*)
13438 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13439 esac
13440 ;;
13441 esac
13442 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13443 _lt_dar_single_mod='$single_module'
13444 fi
13445 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13446 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13447 else
13448 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13449 fi
cristy0c60a692010-11-04 01:09:47 +000013450 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000013451 _lt_dsymutil='~$DSYMUTIL $lib || :'
13452 else
13453 _lt_dsymutil=
13454 fi
13455 ;;
13456 esac
13457
13458for ac_header in dlfcn.h
13459do :
13460 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13461"
cristyda16f162011-02-19 23:52:17 +000013462if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000013463 cat >>confdefs.h <<_ACEOF
13464#define HAVE_DLFCN_H 1
13465_ACEOF
13466
13467fi
13468
13469done
13470
13471
13472
cristy73bd4a52010-10-05 11:24:23 +000013473
cristyda16f162011-02-19 23:52:17 +000013474func_stripname_cnf ()
13475{
13476 case ${2} in
13477 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13478 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13479 esac
13480} # func_stripname_cnf
13481
13482
13483
cristy73bd4a52010-10-05 11:24:23 +000013484
13485
13486# Set options
13487enable_win32_dll=yes
13488
13489case $host in
cristy0c60a692010-11-04 01:09:47 +000013490*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000013491 if test -n "$ac_tool_prefix"; then
13492 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
13493set dummy ${ac_tool_prefix}as; ac_word=$2
13494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13495$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013496if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013497 $as_echo_n "(cached) " >&6
13498else
13499 if test -n "$AS"; then
13500 ac_cv_prog_AS="$AS" # Let the user override the test.
13501else
13502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13503for as_dir in $PATH
13504do
13505 IFS=$as_save_IFS
13506 test -z "$as_dir" && as_dir=.
13507 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013509 ac_cv_prog_AS="${ac_tool_prefix}as"
13510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13511 break 2
13512 fi
13513done
13514 done
13515IFS=$as_save_IFS
13516
13517fi
13518fi
13519AS=$ac_cv_prog_AS
13520if test -n "$AS"; then
13521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
13522$as_echo "$AS" >&6; }
13523else
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13525$as_echo "no" >&6; }
13526fi
13527
13528
13529fi
13530if test -z "$ac_cv_prog_AS"; then
13531 ac_ct_AS=$AS
13532 # Extract the first word of "as", so it can be a program name with args.
13533set dummy as; ac_word=$2
13534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13535$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013536if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013537 $as_echo_n "(cached) " >&6
13538else
13539 if test -n "$ac_ct_AS"; then
13540 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
13541else
13542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13543for as_dir in $PATH
13544do
13545 IFS=$as_save_IFS
13546 test -z "$as_dir" && as_dir=.
13547 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013549 ac_cv_prog_ac_ct_AS="as"
13550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13551 break 2
13552 fi
13553done
13554 done
13555IFS=$as_save_IFS
13556
13557fi
13558fi
13559ac_ct_AS=$ac_cv_prog_ac_ct_AS
13560if test -n "$ac_ct_AS"; then
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
13562$as_echo "$ac_ct_AS" >&6; }
13563else
13564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13565$as_echo "no" >&6; }
13566fi
13567
13568 if test "x$ac_ct_AS" = x; then
13569 AS="false"
13570 else
13571 case $cross_compiling:$ac_tool_warned in
13572yes:)
13573{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13574$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13575ac_tool_warned=yes ;;
13576esac
13577 AS=$ac_ct_AS
13578 fi
13579else
13580 AS="$ac_cv_prog_AS"
13581fi
13582
13583 if test -n "$ac_tool_prefix"; then
13584 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13585set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13587$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013588if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013589 $as_echo_n "(cached) " >&6
13590else
13591 if test -n "$DLLTOOL"; then
13592 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13593else
13594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13595for as_dir in $PATH
13596do
13597 IFS=$as_save_IFS
13598 test -z "$as_dir" && as_dir=.
13599 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013601 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13603 break 2
13604 fi
13605done
13606 done
13607IFS=$as_save_IFS
13608
13609fi
13610fi
13611DLLTOOL=$ac_cv_prog_DLLTOOL
13612if test -n "$DLLTOOL"; then
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
13614$as_echo "$DLLTOOL" >&6; }
13615else
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13617$as_echo "no" >&6; }
13618fi
13619
13620
13621fi
13622if test -z "$ac_cv_prog_DLLTOOL"; then
13623 ac_ct_DLLTOOL=$DLLTOOL
13624 # Extract the first word of "dlltool", so it can be a program name with args.
13625set dummy dlltool; ac_word=$2
13626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13627$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013628if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013629 $as_echo_n "(cached) " >&6
13630else
13631 if test -n "$ac_ct_DLLTOOL"; then
13632 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13633else
13634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13635for as_dir in $PATH
13636do
13637 IFS=$as_save_IFS
13638 test -z "$as_dir" && as_dir=.
13639 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013641 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13643 break 2
13644 fi
13645done
13646 done
13647IFS=$as_save_IFS
13648
13649fi
13650fi
13651ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13652if test -n "$ac_ct_DLLTOOL"; then
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
13654$as_echo "$ac_ct_DLLTOOL" >&6; }
13655else
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13657$as_echo "no" >&6; }
13658fi
13659
13660 if test "x$ac_ct_DLLTOOL" = x; then
13661 DLLTOOL="false"
13662 else
13663 case $cross_compiling:$ac_tool_warned in
13664yes:)
13665{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13666$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13667ac_tool_warned=yes ;;
13668esac
13669 DLLTOOL=$ac_ct_DLLTOOL
13670 fi
13671else
13672 DLLTOOL="$ac_cv_prog_DLLTOOL"
13673fi
13674
13675 if test -n "$ac_tool_prefix"; then
13676 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13677set dummy ${ac_tool_prefix}objdump; ac_word=$2
13678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13679$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013680if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013681 $as_echo_n "(cached) " >&6
13682else
13683 if test -n "$OBJDUMP"; then
13684 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13685else
13686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13687for as_dir in $PATH
13688do
13689 IFS=$as_save_IFS
13690 test -z "$as_dir" && as_dir=.
13691 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013693 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13695 break 2
13696 fi
13697done
13698 done
13699IFS=$as_save_IFS
13700
13701fi
13702fi
13703OBJDUMP=$ac_cv_prog_OBJDUMP
13704if test -n "$OBJDUMP"; then
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13706$as_echo "$OBJDUMP" >&6; }
13707else
13708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13709$as_echo "no" >&6; }
13710fi
13711
13712
13713fi
13714if test -z "$ac_cv_prog_OBJDUMP"; then
13715 ac_ct_OBJDUMP=$OBJDUMP
13716 # Extract the first word of "objdump", so it can be a program name with args.
13717set dummy objdump; ac_word=$2
13718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13719$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013720if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013721 $as_echo_n "(cached) " >&6
13722else
13723 if test -n "$ac_ct_OBJDUMP"; then
13724 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13725else
13726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13727for as_dir in $PATH
13728do
13729 IFS=$as_save_IFS
13730 test -z "$as_dir" && as_dir=.
13731 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013733 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13735 break 2
13736 fi
13737done
13738 done
13739IFS=$as_save_IFS
13740
13741fi
13742fi
13743ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13744if test -n "$ac_ct_OBJDUMP"; then
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13746$as_echo "$ac_ct_OBJDUMP" >&6; }
13747else
13748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13749$as_echo "no" >&6; }
13750fi
13751
13752 if test "x$ac_ct_OBJDUMP" = x; then
13753 OBJDUMP="false"
13754 else
13755 case $cross_compiling:$ac_tool_warned in
13756yes:)
13757{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13758$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13759ac_tool_warned=yes ;;
13760esac
13761 OBJDUMP=$ac_ct_OBJDUMP
13762 fi
13763else
13764 OBJDUMP="$ac_cv_prog_OBJDUMP"
13765fi
13766
13767 ;;
13768esac
13769
13770test -z "$AS" && AS=as
13771
13772
13773
13774
13775
13776test -z "$DLLTOOL" && DLLTOOL=dlltool
13777
13778
13779
13780
13781
13782test -z "$OBJDUMP" && OBJDUMP=objdump
13783
13784
13785
13786
13787
13788
13789
13790
13791
13792 # Check whether --enable-shared was given.
13793if test "${enable_shared+set}" = set; then :
13794 enableval=$enable_shared; p=${PACKAGE-default}
13795 case $enableval in
13796 yes) enable_shared=yes ;;
13797 no) enable_shared=no ;;
13798 *)
13799 enable_shared=no
13800 # Look at the argument we got. We use all the common list separators.
13801 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13802 for pkg in $enableval; do
13803 IFS="$lt_save_ifs"
13804 if test "X$pkg" = "X$p"; then
13805 enable_shared=yes
13806 fi
13807 done
13808 IFS="$lt_save_ifs"
13809 ;;
13810 esac
13811else
13812 enable_shared=yes
13813fi
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823 # Check whether --enable-static was given.
13824if test "${enable_static+set}" = set; then :
13825 enableval=$enable_static; p=${PACKAGE-default}
13826 case $enableval in
13827 yes) enable_static=yes ;;
13828 no) enable_static=no ;;
13829 *)
13830 enable_static=no
13831 # Look at the argument we got. We use all the common list separators.
13832 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13833 for pkg in $enableval; do
13834 IFS="$lt_save_ifs"
13835 if test "X$pkg" = "X$p"; then
13836 enable_static=yes
13837 fi
13838 done
13839 IFS="$lt_save_ifs"
13840 ;;
13841 esac
13842else
13843 enable_static=yes
13844fi
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855# Check whether --with-pic was given.
13856if test "${with_pic+set}" = set; then :
cristy99bd5232011-12-07 14:38:20 +000013857 withval=$with_pic; lt_p=${PACKAGE-default}
13858 case $withval in
13859 yes|no) pic_mode=$withval ;;
13860 *)
13861 pic_mode=default
13862 # Look at the argument we got. We use all the common list separators.
13863 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13864 for lt_pkg in $withval; do
13865 IFS="$lt_save_ifs"
13866 if test "X$lt_pkg" = "X$lt_p"; then
13867 pic_mode=yes
13868 fi
13869 done
13870 IFS="$lt_save_ifs"
13871 ;;
13872 esac
cristy73bd4a52010-10-05 11:24:23 +000013873else
13874 pic_mode=default
13875fi
13876
13877
13878test -z "$pic_mode" && pic_mode=default
13879
13880
13881
13882
13883
13884
13885
13886 # Check whether --enable-fast-install was given.
13887if test "${enable_fast_install+set}" = set; then :
13888 enableval=$enable_fast_install; p=${PACKAGE-default}
13889 case $enableval in
13890 yes) enable_fast_install=yes ;;
13891 no) enable_fast_install=no ;;
13892 *)
13893 enable_fast_install=no
13894 # Look at the argument we got. We use all the common list separators.
13895 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13896 for pkg in $enableval; do
13897 IFS="$lt_save_ifs"
13898 if test "X$pkg" = "X$p"; then
13899 enable_fast_install=yes
13900 fi
13901 done
13902 IFS="$lt_save_ifs"
13903 ;;
13904 esac
13905else
13906 enable_fast_install=yes
13907fi
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919# This can be used to rebuild libtool when needed
13920LIBTOOL_DEPS="$ltmain"
13921
13922# Always use our own libtool.
13923LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
cristy0c60a692010-11-04 01:09:47 +000013949
cristy99bd5232011-12-07 14:38:20 +000013950
13951
13952
13953
cristy73bd4a52010-10-05 11:24:23 +000013954test -z "$LN_S" && LN_S="ln -s"
13955
13956
13957
13958
13959
13960
13961
13962
13963
13964
13965
13966
13967
13968
13969if test -n "${ZSH_VERSION+set}" ; then
13970 setopt NO_GLOB_SUBST
13971fi
13972
13973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13974$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013975if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013976 $as_echo_n "(cached) " >&6
13977else
13978 rm -f .libs 2>/dev/null
13979mkdir .libs 2>/dev/null
13980if test -d .libs; then
13981 lt_cv_objdir=.libs
13982else
13983 # MS-DOS does not allow filenames that begin with a dot.
13984 lt_cv_objdir=_libs
13985fi
13986rmdir .libs 2>/dev/null
13987fi
13988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13989$as_echo "$lt_cv_objdir" >&6; }
13990objdir=$lt_cv_objdir
13991
13992
13993
13994
13995
13996cat >>confdefs.h <<_ACEOF
13997#define LT_OBJDIR "$lt_cv_objdir/"
13998_ACEOF
13999
14000
14001
14002
cristy73bd4a52010-10-05 11:24:23 +000014003case $host_os in
14004aix3*)
14005 # AIX sometimes has problems with the GCC collect2 program. For some
14006 # reason, if we set the COLLECT_NAMES environment variable, the problems
14007 # vanish in a puff of smoke.
14008 if test "X${COLLECT_NAMES+set}" != Xset; then
14009 COLLECT_NAMES=
14010 export COLLECT_NAMES
14011 fi
14012 ;;
14013esac
14014
cristy73bd4a52010-10-05 11:24:23 +000014015# Global variables:
14016ofile=libtool
14017can_build_shared=yes
14018
14019# All known linkers require a `.a' archive for static linking (except MSVC,
14020# which needs '.lib').
14021libext=a
14022
14023with_gnu_ld="$lt_cv_prog_gnu_ld"
14024
14025old_CC="$CC"
14026old_CFLAGS="$CFLAGS"
14027
14028# Set sane defaults for various variables
14029test -z "$CC" && CC=cc
14030test -z "$LTCC" && LTCC=$CC
14031test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14032test -z "$LD" && LD=ld
14033test -z "$ac_objext" && ac_objext=o
14034
14035for cc_temp in $compiler""; do
14036 case $cc_temp in
14037 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14038 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14039 \-*) ;;
14040 *) break;;
14041 esac
14042done
cristy0c60a692010-11-04 01:09:47 +000014043cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000014044
14045
14046# Only perform the check for file, if the check method requires it
14047test -z "$MAGIC_CMD" && MAGIC_CMD=file
14048case $deplibs_check_method in
14049file_magic*)
14050 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14052$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014053if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014054 $as_echo_n "(cached) " >&6
14055else
14056 case $MAGIC_CMD in
14057[\\/*] | ?:[\\/]*)
14058 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14059 ;;
14060*)
14061 lt_save_MAGIC_CMD="$MAGIC_CMD"
14062 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14063 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14064 for ac_dir in $ac_dummy; do
14065 IFS="$lt_save_ifs"
14066 test -z "$ac_dir" && ac_dir=.
14067 if test -f $ac_dir/${ac_tool_prefix}file; then
14068 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14069 if test -n "$file_magic_test_file"; then
14070 case $deplibs_check_method in
14071 "file_magic "*)
14072 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14073 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14074 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14075 $EGREP "$file_magic_regex" > /dev/null; then
14076 :
14077 else
14078 cat <<_LT_EOF 1>&2
14079
14080*** Warning: the command libtool uses to detect shared libraries,
14081*** $file_magic_cmd, produces output that libtool cannot recognize.
14082*** The result is that libtool may fail to recognize shared libraries
14083*** as such. This will affect the creation of libtool libraries that
14084*** depend on shared libraries, but programs linked with such libtool
14085*** libraries will work regardless of this problem. Nevertheless, you
14086*** may want to report the problem to your system manager and/or to
14087*** bug-libtool@gnu.org
14088
14089_LT_EOF
14090 fi ;;
14091 esac
14092 fi
14093 break
14094 fi
14095 done
14096 IFS="$lt_save_ifs"
14097 MAGIC_CMD="$lt_save_MAGIC_CMD"
14098 ;;
14099esac
14100fi
14101
14102MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14103if test -n "$MAGIC_CMD"; then
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14105$as_echo "$MAGIC_CMD" >&6; }
14106else
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14108$as_echo "no" >&6; }
14109fi
14110
14111
14112
14113
14114
14115if test -z "$lt_cv_path_MAGIC_CMD"; then
14116 if test -n "$ac_tool_prefix"; then
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14118$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014119if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014120 $as_echo_n "(cached) " >&6
14121else
14122 case $MAGIC_CMD in
14123[\\/*] | ?:[\\/]*)
14124 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14125 ;;
14126*)
14127 lt_save_MAGIC_CMD="$MAGIC_CMD"
14128 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14129 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14130 for ac_dir in $ac_dummy; do
14131 IFS="$lt_save_ifs"
14132 test -z "$ac_dir" && ac_dir=.
14133 if test -f $ac_dir/file; then
14134 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14135 if test -n "$file_magic_test_file"; then
14136 case $deplibs_check_method in
14137 "file_magic "*)
14138 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14139 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14140 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14141 $EGREP "$file_magic_regex" > /dev/null; then
14142 :
14143 else
14144 cat <<_LT_EOF 1>&2
14145
14146*** Warning: the command libtool uses to detect shared libraries,
14147*** $file_magic_cmd, produces output that libtool cannot recognize.
14148*** The result is that libtool may fail to recognize shared libraries
14149*** as such. This will affect the creation of libtool libraries that
14150*** depend on shared libraries, but programs linked with such libtool
14151*** libraries will work regardless of this problem. Nevertheless, you
14152*** may want to report the problem to your system manager and/or to
14153*** bug-libtool@gnu.org
14154
14155_LT_EOF
14156 fi ;;
14157 esac
14158 fi
14159 break
14160 fi
14161 done
14162 IFS="$lt_save_ifs"
14163 MAGIC_CMD="$lt_save_MAGIC_CMD"
14164 ;;
14165esac
14166fi
14167
14168MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14169if test -n "$MAGIC_CMD"; then
14170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14171$as_echo "$MAGIC_CMD" >&6; }
14172else
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14174$as_echo "no" >&6; }
14175fi
14176
14177
14178 else
14179 MAGIC_CMD=:
14180 fi
14181fi
14182
14183 fi
14184 ;;
14185esac
14186
14187# Use C for the default configuration in the libtool script
14188
14189lt_save_CC="$CC"
14190ac_ext=c
14191ac_cpp='$CPP $CPPFLAGS'
14192ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14193ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14194ac_compiler_gnu=$ac_cv_c_compiler_gnu
14195
14196
14197# Source file extension for C test sources.
14198ac_ext=c
14199
14200# Object file extension for compiled C test sources.
14201objext=o
14202objext=$objext
14203
14204# Code to be used in simple compile tests
14205lt_simple_compile_test_code="int some_variable = 0;"
14206
14207# Code to be used in simple link tests
14208lt_simple_link_test_code='int main(){return(0);}'
14209
14210
14211
14212
14213
14214
14215
14216# If no C compiler was specified, use CC.
14217LTCC=${LTCC-"$CC"}
14218
14219# If no C compiler flags were specified, use CFLAGS.
14220LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14221
14222# Allow CC to be a program name with arguments.
14223compiler=$CC
14224
14225# Save the default compiler, since it gets overwritten when the other
14226# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14227compiler_DEFAULT=$CC
14228
14229# save warnings/boilerplate of simple test code
14230ac_outfile=conftest.$ac_objext
14231echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14232eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14233_lt_compiler_boilerplate=`cat conftest.err`
14234$RM conftest*
14235
14236ac_outfile=conftest.$ac_objext
14237echo "$lt_simple_link_test_code" >conftest.$ac_ext
14238eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14239_lt_linker_boilerplate=`cat conftest.err`
14240$RM -r conftest*
14241
14242
14243## CAVEAT EMPTOR:
14244## There is no encapsulation within the following macros, do not change
14245## the running order or otherwise move them around unless you know exactly
14246## what you are doing...
14247if test -n "$compiler"; then
14248
14249lt_prog_compiler_no_builtin_flag=
14250
14251if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000014252 case $cc_basename in
14253 nvcc*)
14254 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14255 *)
14256 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14257 esac
cristy73bd4a52010-10-05 11:24:23 +000014258
14259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14260$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014261if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014262 $as_echo_n "(cached) " >&6
14263else
14264 lt_cv_prog_compiler_rtti_exceptions=no
14265 ac_outfile=conftest.$ac_objext
14266 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14267 lt_compiler_flag="-fno-rtti -fno-exceptions"
14268 # Insert the option either (1) after the last *FLAGS variable, or
14269 # (2) before a word containing "conftest.", or (3) at the end.
14270 # Note that $ac_compile itself does not contain backslashes and begins
14271 # with a dollar sign (not a hyphen), so the echo should work correctly.
14272 # The option is referenced via a variable to avoid confusing sed.
14273 lt_compile=`echo "$ac_compile" | $SED \
14274 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14275 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14276 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014277 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014278 (eval "$lt_compile" 2>conftest.err)
14279 ac_status=$?
14280 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014282 if (exit $ac_status) && test -s "$ac_outfile"; then
14283 # The compiler can only warn and ignore the option if not recognized
14284 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014285 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014286 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14287 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14288 lt_cv_prog_compiler_rtti_exceptions=yes
14289 fi
14290 fi
14291 $RM conftest*
14292
14293fi
14294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14295$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14296
14297if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14298 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14299else
14300 :
14301fi
14302
14303fi
14304
14305
14306
14307
14308
14309
14310 lt_prog_compiler_wl=
14311lt_prog_compiler_pic=
14312lt_prog_compiler_static=
14313
cristy73bd4a52010-10-05 11:24:23 +000014314
14315 if test "$GCC" = yes; then
14316 lt_prog_compiler_wl='-Wl,'
14317 lt_prog_compiler_static='-static'
14318
14319 case $host_os in
14320 aix*)
14321 # All AIX code is PIC.
14322 if test "$host_cpu" = ia64; then
14323 # AIX 5 now supports IA64 processor
14324 lt_prog_compiler_static='-Bstatic'
14325 fi
14326 ;;
14327
14328 amigaos*)
14329 case $host_cpu in
14330 powerpc)
14331 # see comment about AmigaOS4 .so support
14332 lt_prog_compiler_pic='-fPIC'
14333 ;;
14334 m68k)
14335 # FIXME: we need at least 68020 code to build shared libraries, but
14336 # adding the `-m68020' flag to GCC prevents building anything better,
14337 # like `-m68040'.
14338 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14339 ;;
14340 esac
14341 ;;
14342
14343 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14344 # PIC is the default for these OSes.
14345 ;;
14346
14347 mingw* | cygwin* | pw32* | os2* | cegcc*)
14348 # This hack is so that the source file can tell whether it is being
14349 # built for inclusion in a dll (and should export symbols for example).
14350 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14351 # (--disable-auto-import) libraries
14352 lt_prog_compiler_pic='-DDLL_EXPORT'
14353 ;;
14354
14355 darwin* | rhapsody*)
14356 # PIC is the default on this platform
14357 # Common symbols not allowed in MH_DYLIB files
14358 lt_prog_compiler_pic='-fno-common'
14359 ;;
14360
cristy0c60a692010-11-04 01:09:47 +000014361 haiku*)
14362 # PIC is the default for Haiku.
14363 # The "-static" flag exists, but is broken.
14364 lt_prog_compiler_static=
14365 ;;
14366
cristy73bd4a52010-10-05 11:24:23 +000014367 hpux*)
14368 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14369 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14370 # sets the default TLS model and affects inlining.
14371 case $host_cpu in
14372 hppa*64*)
14373 # +Z the default
14374 ;;
14375 *)
14376 lt_prog_compiler_pic='-fPIC'
14377 ;;
14378 esac
14379 ;;
14380
14381 interix[3-9]*)
14382 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14383 # Instead, we relocate shared libraries at runtime.
14384 ;;
14385
14386 msdosdjgpp*)
14387 # Just because we use GCC doesn't mean we suddenly get shared libraries
14388 # on systems that don't support them.
14389 lt_prog_compiler_can_build_shared=no
14390 enable_shared=no
14391 ;;
14392
14393 *nto* | *qnx*)
14394 # QNX uses GNU C++, but need to define -shared option too, otherwise
14395 # it will coredump.
14396 lt_prog_compiler_pic='-fPIC -shared'
14397 ;;
14398
14399 sysv4*MP*)
14400 if test -d /usr/nec; then
14401 lt_prog_compiler_pic=-Kconform_pic
14402 fi
14403 ;;
14404
14405 *)
14406 lt_prog_compiler_pic='-fPIC'
14407 ;;
14408 esac
cristy0c60a692010-11-04 01:09:47 +000014409
14410 case $cc_basename in
14411 nvcc*) # Cuda Compiler Driver 2.2
14412 lt_prog_compiler_wl='-Xlinker '
cristy99bd5232011-12-07 14:38:20 +000014413 if test -n "$lt_prog_compiler_pic"; then
14414 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14415 fi
cristy0c60a692010-11-04 01:09:47 +000014416 ;;
14417 esac
cristy73bd4a52010-10-05 11:24:23 +000014418 else
14419 # PORTME Check for flag to pass linker flags through the system compiler.
14420 case $host_os in
14421 aix*)
14422 lt_prog_compiler_wl='-Wl,'
14423 if test "$host_cpu" = ia64; then
14424 # AIX 5 now supports IA64 processor
14425 lt_prog_compiler_static='-Bstatic'
14426 else
14427 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14428 fi
14429 ;;
14430
14431 mingw* | cygwin* | pw32* | os2* | cegcc*)
14432 # This hack is so that the source file can tell whether it is being
14433 # built for inclusion in a dll (and should export symbols for example).
14434 lt_prog_compiler_pic='-DDLL_EXPORT'
14435 ;;
14436
14437 hpux9* | hpux10* | hpux11*)
14438 lt_prog_compiler_wl='-Wl,'
14439 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14440 # not for PA HP-UX.
14441 case $host_cpu in
14442 hppa*64*|ia64*)
14443 # +Z the default
14444 ;;
14445 *)
14446 lt_prog_compiler_pic='+Z'
14447 ;;
14448 esac
14449 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14450 lt_prog_compiler_static='${wl}-a ${wl}archive'
14451 ;;
14452
14453 irix5* | irix6* | nonstopux*)
14454 lt_prog_compiler_wl='-Wl,'
14455 # PIC (with -KPIC) is the default.
14456 lt_prog_compiler_static='-non_shared'
14457 ;;
14458
cristy0c60a692010-11-04 01:09:47 +000014459 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014460 case $cc_basename in
14461 # old Intel for x86_64 which still supported -KPIC.
14462 ecc*)
14463 lt_prog_compiler_wl='-Wl,'
14464 lt_prog_compiler_pic='-KPIC'
14465 lt_prog_compiler_static='-static'
14466 ;;
14467 # icc used to be incompatible with GCC.
14468 # ICC 10 doesn't accept -KPIC any more.
14469 icc* | ifort*)
14470 lt_prog_compiler_wl='-Wl,'
14471 lt_prog_compiler_pic='-fPIC'
14472 lt_prog_compiler_static='-static'
14473 ;;
14474 # Lahey Fortran 8.1.
14475 lf95*)
14476 lt_prog_compiler_wl='-Wl,'
14477 lt_prog_compiler_pic='--shared'
14478 lt_prog_compiler_static='--static'
14479 ;;
cristyda16f162011-02-19 23:52:17 +000014480 nagfor*)
14481 # NAG Fortran compiler
14482 lt_prog_compiler_wl='-Wl,-Wl,,'
14483 lt_prog_compiler_pic='-PIC'
14484 lt_prog_compiler_static='-Bstatic'
14485 ;;
cristy0c60a692010-11-04 01:09:47 +000014486 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000014487 # Portland Group compilers (*not* the Pentium gcc compiler,
14488 # which looks to be a dead project)
14489 lt_prog_compiler_wl='-Wl,'
14490 lt_prog_compiler_pic='-fpic'
14491 lt_prog_compiler_static='-Bstatic'
14492 ;;
14493 ccc*)
14494 lt_prog_compiler_wl='-Wl,'
14495 # All Alpha code is PIC.
14496 lt_prog_compiler_static='-non_shared'
14497 ;;
cristy0c60a692010-11-04 01:09:47 +000014498 xl* | bgxl* | bgf* | mpixl*)
14499 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000014500 lt_prog_compiler_wl='-Wl,'
14501 lt_prog_compiler_pic='-qpic'
14502 lt_prog_compiler_static='-qstaticlink'
14503 ;;
14504 *)
14505 case `$CC -V 2>&1 | sed 5q` in
cristy99bd5232011-12-07 14:38:20 +000014506 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
cristy0c60a692010-11-04 01:09:47 +000014507 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14508 lt_prog_compiler_pic='-KPIC'
14509 lt_prog_compiler_static='-Bstatic'
14510 lt_prog_compiler_wl=''
14511 ;;
cristy99bd5232011-12-07 14:38:20 +000014512 *Sun\ F* | *Sun*Fortran*)
14513 lt_prog_compiler_pic='-KPIC'
14514 lt_prog_compiler_static='-Bstatic'
14515 lt_prog_compiler_wl='-Qoption ld '
14516 ;;
cristy73bd4a52010-10-05 11:24:23 +000014517 *Sun\ C*)
14518 # Sun C 5.9
14519 lt_prog_compiler_pic='-KPIC'
14520 lt_prog_compiler_static='-Bstatic'
14521 lt_prog_compiler_wl='-Wl,'
14522 ;;
cristy99bd5232011-12-07 14:38:20 +000014523 *Intel*\ [CF]*Compiler*)
14524 lt_prog_compiler_wl='-Wl,'
14525 lt_prog_compiler_pic='-fPIC'
14526 lt_prog_compiler_static='-static'
14527 ;;
14528 *Portland\ Group*)
14529 lt_prog_compiler_wl='-Wl,'
14530 lt_prog_compiler_pic='-fpic'
14531 lt_prog_compiler_static='-Bstatic'
14532 ;;
cristy73bd4a52010-10-05 11:24:23 +000014533 esac
14534 ;;
14535 esac
14536 ;;
14537
14538 newsos6)
14539 lt_prog_compiler_pic='-KPIC'
14540 lt_prog_compiler_static='-Bstatic'
14541 ;;
14542
14543 *nto* | *qnx*)
14544 # QNX uses GNU C++, but need to define -shared option too, otherwise
14545 # it will coredump.
14546 lt_prog_compiler_pic='-fPIC -shared'
14547 ;;
14548
14549 osf3* | osf4* | osf5*)
14550 lt_prog_compiler_wl='-Wl,'
14551 # All OSF/1 code is PIC.
14552 lt_prog_compiler_static='-non_shared'
14553 ;;
14554
14555 rdos*)
14556 lt_prog_compiler_static='-non_shared'
14557 ;;
14558
14559 solaris*)
14560 lt_prog_compiler_pic='-KPIC'
14561 lt_prog_compiler_static='-Bstatic'
14562 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014563 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000014564 lt_prog_compiler_wl='-Qoption ld ';;
14565 *)
14566 lt_prog_compiler_wl='-Wl,';;
14567 esac
14568 ;;
14569
14570 sunos4*)
14571 lt_prog_compiler_wl='-Qoption ld '
14572 lt_prog_compiler_pic='-PIC'
14573 lt_prog_compiler_static='-Bstatic'
14574 ;;
14575
14576 sysv4 | sysv4.2uw2* | sysv4.3*)
14577 lt_prog_compiler_wl='-Wl,'
14578 lt_prog_compiler_pic='-KPIC'
14579 lt_prog_compiler_static='-Bstatic'
14580 ;;
14581
14582 sysv4*MP*)
14583 if test -d /usr/nec ;then
14584 lt_prog_compiler_pic='-Kconform_pic'
14585 lt_prog_compiler_static='-Bstatic'
14586 fi
14587 ;;
14588
14589 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14590 lt_prog_compiler_wl='-Wl,'
14591 lt_prog_compiler_pic='-KPIC'
14592 lt_prog_compiler_static='-Bstatic'
14593 ;;
14594
14595 unicos*)
14596 lt_prog_compiler_wl='-Wl,'
14597 lt_prog_compiler_can_build_shared=no
14598 ;;
14599
14600 uts4*)
14601 lt_prog_compiler_pic='-pic'
14602 lt_prog_compiler_static='-Bstatic'
14603 ;;
14604
14605 *)
14606 lt_prog_compiler_can_build_shared=no
14607 ;;
14608 esac
14609 fi
14610
14611case $host_os in
14612 # For platforms which do not support PIC, -DPIC is meaningless:
14613 *djgpp*)
14614 lt_prog_compiler_pic=
14615 ;;
14616 *)
14617 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14618 ;;
14619esac
cristy73bd4a52010-10-05 11:24:23 +000014620
cristyda16f162011-02-19 23:52:17 +000014621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14622$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14623if ${lt_cv_prog_compiler_pic+:} false; then :
14624 $as_echo_n "(cached) " >&6
14625else
14626 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14627fi
14628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14629$as_echo "$lt_cv_prog_compiler_pic" >&6; }
14630lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000014631
14632#
14633# Check to make sure the PIC flag actually works.
14634#
14635if test -n "$lt_prog_compiler_pic"; then
14636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14637$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014638if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014639 $as_echo_n "(cached) " >&6
14640else
14641 lt_cv_prog_compiler_pic_works=no
14642 ac_outfile=conftest.$ac_objext
14643 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14644 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14645 # Insert the option either (1) after the last *FLAGS variable, or
14646 # (2) before a word containing "conftest.", or (3) at the end.
14647 # Note that $ac_compile itself does not contain backslashes and begins
14648 # with a dollar sign (not a hyphen), so the echo should work correctly.
14649 # The option is referenced via a variable to avoid confusing sed.
14650 lt_compile=`echo "$ac_compile" | $SED \
14651 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14652 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14653 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014654 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014655 (eval "$lt_compile" 2>conftest.err)
14656 ac_status=$?
14657 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014659 if (exit $ac_status) && test -s "$ac_outfile"; then
14660 # The compiler can only warn and ignore the option if not recognized
14661 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014662 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014663 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14664 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14665 lt_cv_prog_compiler_pic_works=yes
14666 fi
14667 fi
14668 $RM conftest*
14669
14670fi
14671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14672$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14673
14674if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14675 case $lt_prog_compiler_pic in
14676 "" | " "*) ;;
14677 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14678 esac
14679else
14680 lt_prog_compiler_pic=
14681 lt_prog_compiler_can_build_shared=no
14682fi
14683
14684fi
14685
14686
14687
14688
14689
14690
cristyda16f162011-02-19 23:52:17 +000014691
14692
14693
14694
14695
cristy73bd4a52010-10-05 11:24:23 +000014696#
14697# Check to make sure the static flag actually works.
14698#
14699wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14701$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014702if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014703 $as_echo_n "(cached) " >&6
14704else
14705 lt_cv_prog_compiler_static_works=no
14706 save_LDFLAGS="$LDFLAGS"
14707 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14708 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14709 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14710 # The linker can only warn and ignore the option if not recognized
14711 # So say no if there are warnings
14712 if test -s conftest.err; then
14713 # Append any errors to the config.log.
14714 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000014715 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014716 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14717 if diff conftest.exp conftest.er2 >/dev/null; then
14718 lt_cv_prog_compiler_static_works=yes
14719 fi
14720 else
14721 lt_cv_prog_compiler_static_works=yes
14722 fi
14723 fi
14724 $RM -r conftest*
14725 LDFLAGS="$save_LDFLAGS"
14726
14727fi
14728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14729$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14730
14731if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14732 :
14733else
14734 lt_prog_compiler_static=
14735fi
14736
14737
14738
14739
14740
14741
14742
14743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14744$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014745if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014746 $as_echo_n "(cached) " >&6
14747else
14748 lt_cv_prog_compiler_c_o=no
14749 $RM -r conftest 2>/dev/null
14750 mkdir conftest
14751 cd conftest
14752 mkdir out
14753 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14754
14755 lt_compiler_flag="-o out/conftest2.$ac_objext"
14756 # Insert the option either (1) after the last *FLAGS variable, or
14757 # (2) before a word containing "conftest.", or (3) at the end.
14758 # Note that $ac_compile itself does not contain backslashes and begins
14759 # with a dollar sign (not a hyphen), so the echo should work correctly.
14760 lt_compile=`echo "$ac_compile" | $SED \
14761 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14762 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14763 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014764 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014765 (eval "$lt_compile" 2>out/conftest.err)
14766 ac_status=$?
14767 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014769 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14770 then
14771 # The compiler can only warn and ignore the option if not recognized
14772 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014773 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014774 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14775 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14776 lt_cv_prog_compiler_c_o=yes
14777 fi
14778 fi
14779 chmod u+w . 2>&5
14780 $RM conftest*
14781 # SGI C++ compiler will create directory out/ii_files/ for
14782 # template instantiation
14783 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14784 $RM out/* && rmdir out
14785 cd ..
14786 $RM -r conftest
14787 $RM conftest*
14788
14789fi
14790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14791$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14792
14793
14794
14795
14796
14797
14798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14799$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014800if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014801 $as_echo_n "(cached) " >&6
14802else
14803 lt_cv_prog_compiler_c_o=no
14804 $RM -r conftest 2>/dev/null
14805 mkdir conftest
14806 cd conftest
14807 mkdir out
14808 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14809
14810 lt_compiler_flag="-o out/conftest2.$ac_objext"
14811 # Insert the option either (1) after the last *FLAGS variable, or
14812 # (2) before a word containing "conftest.", or (3) at the end.
14813 # Note that $ac_compile itself does not contain backslashes and begins
14814 # with a dollar sign (not a hyphen), so the echo should work correctly.
14815 lt_compile=`echo "$ac_compile" | $SED \
14816 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14817 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14818 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014819 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014820 (eval "$lt_compile" 2>out/conftest.err)
14821 ac_status=$?
14822 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014824 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14825 then
14826 # The compiler can only warn and ignore the option if not recognized
14827 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014828 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014829 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14830 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14831 lt_cv_prog_compiler_c_o=yes
14832 fi
14833 fi
14834 chmod u+w . 2>&5
14835 $RM conftest*
14836 # SGI C++ compiler will create directory out/ii_files/ for
14837 # template instantiation
14838 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14839 $RM out/* && rmdir out
14840 cd ..
14841 $RM -r conftest
14842 $RM conftest*
14843
14844fi
14845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14846$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14847
14848
14849
14850
14851hard_links="nottested"
14852if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14853 # do not overwrite the value of need_locks provided by the user
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14855$as_echo_n "checking if we can lock with hard links... " >&6; }
14856 hard_links=yes
14857 $RM conftest*
14858 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14859 touch conftest.a
14860 ln conftest.a conftest.b 2>&5 || hard_links=no
14861 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14863$as_echo "$hard_links" >&6; }
14864 if test "$hard_links" = no; then
14865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14866$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14867 need_locks=warn
14868 fi
14869else
14870 need_locks=no
14871fi
14872
14873
14874
14875
14876
14877
14878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14879$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14880
14881 runpath_var=
14882 allow_undefined_flag=
14883 always_export_symbols=no
14884 archive_cmds=
14885 archive_expsym_cmds=
14886 compiler_needs_object=no
14887 enable_shared_with_static_runtimes=no
14888 export_dynamic_flag_spec=
14889 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14890 hardcode_automatic=no
14891 hardcode_direct=no
14892 hardcode_direct_absolute=no
14893 hardcode_libdir_flag_spec=
cristy73bd4a52010-10-05 11:24:23 +000014894 hardcode_libdir_separator=
14895 hardcode_minus_L=no
14896 hardcode_shlibpath_var=unsupported
14897 inherit_rpath=no
14898 link_all_deplibs=unknown
14899 module_cmds=
14900 module_expsym_cmds=
14901 old_archive_from_new_cmds=
14902 old_archive_from_expsyms_cmds=
14903 thread_safe_flag_spec=
14904 whole_archive_flag_spec=
14905 # include_expsyms should be a list of space-separated symbols to be *always*
14906 # included in the symbol list
14907 include_expsyms=
14908 # exclude_expsyms can be an extended regexp of symbols to exclude
14909 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14910 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14911 # as well as any symbol that contains `d'.
14912 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14913 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14914 # platforms (ab)use it in PIC code, but their linkers get confused if
14915 # the symbol is explicitly referenced. Since portable code cannot
14916 # rely on this symbol name, it's probably fine to never include it in
14917 # preloaded symbol tables.
14918 # Exclude shared library initialization/finalization symbols.
14919 extract_expsyms_cmds=
14920
14921 case $host_os in
14922 cygwin* | mingw* | pw32* | cegcc*)
14923 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14924 # When not using gcc, we currently assume that we are using
14925 # Microsoft Visual C++.
14926 if test "$GCC" != yes; then
14927 with_gnu_ld=no
14928 fi
14929 ;;
14930 interix*)
14931 # we just hope/assume this is gcc and not c89 (= MSVC++)
14932 with_gnu_ld=yes
14933 ;;
14934 openbsd*)
14935 with_gnu_ld=no
14936 ;;
14937 esac
14938
14939 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000014940
14941 # On some targets, GNU ld is compatible enough with the native linker
14942 # that we're better off using the native interface for both.
14943 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000014944 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000014945 case $host_os in
14946 aix*)
14947 # The AIX port of GNU ld has always aspired to compatibility
14948 # with the native linker. However, as the warning in the GNU ld
14949 # block says, versions before 2.19.5* couldn't really create working
14950 # shared libraries, regardless of the interface used.
14951 case `$LD -v 2>&1` in
14952 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14953 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14954 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14955 *)
14956 lt_use_gnu_ld_interface=yes
14957 ;;
14958 esac
14959 ;;
14960 *)
14961 lt_use_gnu_ld_interface=yes
14962 ;;
14963 esac
14964 fi
14965
14966 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000014967 # If archive_cmds runs LD, not CC, wlarc should be empty
14968 wlarc='${wl}'
14969
14970 # Set some defaults for GNU ld with shared library support. These
14971 # are reset later if shared libraries are not supported. Putting them
14972 # here allows them to be overridden if necessary.
14973 runpath_var=LD_RUN_PATH
14974 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14975 export_dynamic_flag_spec='${wl}--export-dynamic'
14976 # ancient GNU ld didn't support --whole-archive et. al.
14977 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14978 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14979 else
14980 whole_archive_flag_spec=
14981 fi
14982 supports_anon_versioning=no
14983 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000014984 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000014985 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14986 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14987 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14988 *\ 2.11.*) ;; # other 2.11 versions
14989 *) supports_anon_versioning=yes ;;
14990 esac
14991
14992 # See if GNU ld supports shared libraries.
14993 case $host_os in
14994 aix[3-9]*)
14995 # On AIX/PPC, the GNU linker is very broken
14996 if test "$host_cpu" != ia64; then
14997 ld_shlibs=no
14998 cat <<_LT_EOF 1>&2
14999
cristy0c60a692010-11-04 01:09:47 +000015000*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000015001*** to be unable to reliably create shared libraries on AIX.
15002*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000015003*** really care for shared libraries, you may want to install binutils
15004*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15005*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000015006
15007_LT_EOF
15008 fi
15009 ;;
15010
15011 amigaos*)
15012 case $host_cpu in
15013 powerpc)
15014 # see comment about AmigaOS4 .so support
15015 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15016 archive_expsym_cmds=''
15017 ;;
15018 m68k)
15019 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)'
15020 hardcode_libdir_flag_spec='-L$libdir'
15021 hardcode_minus_L=yes
15022 ;;
15023 esac
15024 ;;
15025
15026 beos*)
15027 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15028 allow_undefined_flag=unsupported
15029 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15030 # support --undefined. This deserves some investigation. FIXME
15031 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15032 else
15033 ld_shlibs=no
15034 fi
15035 ;;
15036
15037 cygwin* | mingw* | pw32* | cegcc*)
15038 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15039 # as there is no search path for DLLs.
15040 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000015041 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000015042 allow_undefined_flag=unsupported
15043 always_export_symbols=no
15044 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000015045 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'
15046 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 +000015047
15048 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15049 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15050 # If the export-symbols file already is a .def file (1st line
15051 # is EXPORTS), use it as is; otherwise, prepend...
15052 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15053 cp $export_symbols $output_objdir/$soname.def;
15054 else
15055 echo EXPORTS > $output_objdir/$soname.def;
15056 cat $export_symbols >> $output_objdir/$soname.def;
15057 fi~
15058 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15059 else
15060 ld_shlibs=no
15061 fi
15062 ;;
15063
cristy0c60a692010-11-04 01:09:47 +000015064 haiku*)
15065 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15066 link_all_deplibs=yes
15067 ;;
15068
cristy73bd4a52010-10-05 11:24:23 +000015069 interix[3-9]*)
15070 hardcode_direct=no
15071 hardcode_shlibpath_var=no
15072 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15073 export_dynamic_flag_spec='${wl}-E'
15074 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15075 # Instead, shared libraries are loaded at an image base (0x10000000 by
15076 # default) and relocated if they conflict, which is a slow very memory
15077 # consuming and fragmenting process. To avoid this, we pick a random,
15078 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15079 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15080 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15081 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'
15082 ;;
15083
cristy0c60a692010-11-04 01:09:47 +000015084 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000015085 tmp_diet=no
15086 if test "$host_os" = linux-dietlibc; then
15087 case $cc_basename in
15088 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15089 esac
15090 fi
15091 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15092 && test "$tmp_diet" = no
15093 then
cristyda16f162011-02-19 23:52:17 +000015094 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000015095 tmp_sharedflag='-shared'
15096 case $cc_basename,$host_cpu in
15097 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000015098 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 +000015099 tmp_addflag=' $pic_flag'
15100 ;;
cristy0c60a692010-11-04 01:09:47 +000015101 pgf77* | pgf90* | pgf95* | pgfortran*)
15102 # Portland Group f77 and f90 compilers
15103 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 +000015104 tmp_addflag=' $pic_flag -Mnomain' ;;
15105 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15106 tmp_addflag=' -i_dynamic' ;;
15107 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15108 tmp_addflag=' -i_dynamic -nofor_main' ;;
15109 ifc* | ifort*) # Intel Fortran compiler
15110 tmp_addflag=' -nofor_main' ;;
15111 lf95*) # Lahey Fortran 8.1
15112 whole_archive_flag_spec=
15113 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000015114 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000015115 tmp_sharedflag='-qmkshrobj'
15116 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000015117 nvcc*) # Cuda Compiler Driver 2.2
15118 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'
15119 compiler_needs_object=yes
15120 ;;
cristy73bd4a52010-10-05 11:24:23 +000015121 esac
15122 case `$CC -V 2>&1 | sed 5q` in
15123 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000015124 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 +000015125 compiler_needs_object=yes
15126 tmp_sharedflag='-G' ;;
15127 *Sun\ F*) # Sun Fortran 8.3
15128 tmp_sharedflag='-G' ;;
15129 esac
15130 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15131
15132 if test "x$supports_anon_versioning" = xyes; then
15133 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15134 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15135 echo "local: *; };" >> $output_objdir/$libname.ver~
15136 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15137 fi
15138
15139 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000015140 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000015141 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15142 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
cristy99bd5232011-12-07 14:38:20 +000015143 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cristy0c60a692010-11-04 01:09:47 +000015144 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015145 if test "x$supports_anon_versioning" = xyes; then
15146 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15147 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15148 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000015149 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015150 fi
15151 ;;
15152 esac
15153 else
15154 ld_shlibs=no
15155 fi
15156 ;;
15157
15158 netbsd*)
15159 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15160 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15161 wlarc=
15162 else
cristyda16f162011-02-19 23:52:17 +000015163 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15164 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 +000015165 fi
15166 ;;
15167
15168 solaris*)
15169 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15170 ld_shlibs=no
15171 cat <<_LT_EOF 1>&2
15172
15173*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15174*** create shared libraries on Solaris systems. Therefore, libtool
15175*** is disabling shared libraries support. We urge you to upgrade GNU
15176*** binutils to release 2.9.1 or newer. Another option is to modify
15177*** your PATH or compiler configuration so that the native linker is
15178*** used, and then restart.
15179
15180_LT_EOF
15181 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000015182 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15183 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 +000015184 else
15185 ld_shlibs=no
15186 fi
15187 ;;
15188
15189 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15190 case `$LD -v 2>&1` in
15191 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15192 ld_shlibs=no
15193 cat <<_LT_EOF 1>&2
15194
15195*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15196*** reliably create shared libraries on SCO systems. Therefore, libtool
15197*** is disabling shared libraries support. We urge you to upgrade GNU
15198*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15199*** your PATH or compiler configuration so that the native linker is
15200*** used, and then restart.
15201
15202_LT_EOF
15203 ;;
15204 *)
15205 # For security reasons, it is highly recommended that you always
15206 # use absolute paths for naming shared libraries, and exclude the
15207 # DT_RUNPATH tag from executables and libraries. But doing so
15208 # requires that you compile everything twice, which is a pain.
15209 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15210 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15211 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15212 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15213 else
15214 ld_shlibs=no
15215 fi
15216 ;;
15217 esac
15218 ;;
15219
15220 sunos4*)
15221 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15222 wlarc=
15223 hardcode_direct=yes
15224 hardcode_shlibpath_var=no
15225 ;;
15226
15227 *)
15228 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000015229 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15230 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 +000015231 else
15232 ld_shlibs=no
15233 fi
15234 ;;
15235 esac
15236
15237 if test "$ld_shlibs" = no; then
15238 runpath_var=
15239 hardcode_libdir_flag_spec=
15240 export_dynamic_flag_spec=
15241 whole_archive_flag_spec=
15242 fi
15243 else
15244 # PORTME fill in a description of your system's linker (not GNU ld)
15245 case $host_os in
15246 aix3*)
15247 allow_undefined_flag=unsupported
15248 always_export_symbols=yes
15249 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'
15250 # Note: this linker hardcodes the directories in LIBPATH if there
15251 # are no directories specified by -L.
15252 hardcode_minus_L=yes
15253 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15254 # Neither direct hardcoding nor static linking is supported with a
15255 # broken collect2.
15256 hardcode_direct=unsupported
15257 fi
15258 ;;
15259
15260 aix[4-9]*)
15261 if test "$host_cpu" = ia64; then
15262 # On IA64, the linker does run time linking by default, so we don't
15263 # have to do anything special.
15264 aix_use_runtimelinking=no
15265 exp_sym_flag='-Bexport'
15266 no_entry_flag=""
15267 else
15268 # If we're using GNU nm, then we don't want the "-C" option.
15269 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000015270 # Also, AIX nm treats weak defined symbols like other global
15271 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000015272 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000015273 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 +000015274 else
15275 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'
15276 fi
15277 aix_use_runtimelinking=no
15278
15279 # Test if we are trying to use run time linking or normal
15280 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15281 # need to do runtime linking.
15282 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15283 for ld_flag in $LDFLAGS; do
15284 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15285 aix_use_runtimelinking=yes
15286 break
15287 fi
15288 done
15289 ;;
15290 esac
15291
15292 exp_sym_flag='-bexport'
15293 no_entry_flag='-bnoentry'
15294 fi
15295
15296 # When large executables or shared objects are built, AIX ld can
15297 # have problems creating the table of contents. If linking a library
15298 # or program results in "error TOC overflow" add -mminimal-toc to
15299 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15300 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15301
15302 archive_cmds=''
15303 hardcode_direct=yes
15304 hardcode_direct_absolute=yes
15305 hardcode_libdir_separator=':'
15306 link_all_deplibs=yes
15307 file_list_spec='${wl}-f,'
15308
15309 if test "$GCC" = yes; then
15310 case $host_os in aix4.[012]|aix4.[012].*)
15311 # We only want to do this on AIX 4.2 and lower, the check
15312 # below for broken collect2 doesn't work under 4.3+
15313 collect2name=`${CC} -print-prog-name=collect2`
15314 if test -f "$collect2name" &&
15315 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15316 then
15317 # We have reworked collect2
15318 :
15319 else
15320 # We have old collect2
15321 hardcode_direct=unsupported
15322 # It fails to find uninstalled libraries when the uninstalled
15323 # path is not listed in the libpath. Setting hardcode_minus_L
15324 # to unsupported forces relinking
15325 hardcode_minus_L=yes
15326 hardcode_libdir_flag_spec='-L$libdir'
15327 hardcode_libdir_separator=
15328 fi
15329 ;;
15330 esac
15331 shared_flag='-shared'
15332 if test "$aix_use_runtimelinking" = yes; then
15333 shared_flag="$shared_flag "'${wl}-G'
15334 fi
15335 else
15336 # not using gcc
15337 if test "$host_cpu" = ia64; then
15338 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15339 # chokes on -Wl,-G. The following line is correct:
15340 shared_flag='-G'
15341 else
15342 if test "$aix_use_runtimelinking" = yes; then
15343 shared_flag='${wl}-G'
15344 else
15345 shared_flag='${wl}-bM:SRE'
15346 fi
15347 fi
15348 fi
15349
15350 export_dynamic_flag_spec='${wl}-bexpall'
15351 # It seems that -bexpall does not export symbols beginning with
15352 # underscore (_), so it is better to generate a list of symbols to export.
15353 always_export_symbols=yes
15354 if test "$aix_use_runtimelinking" = yes; then
15355 # Warning - without using the other runtime loading flags (-brtl),
15356 # -berok will link without error, but may produce a broken library.
15357 allow_undefined_flag='-berok'
15358 # Determine the default libpath from the value encoded in an
15359 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015360 if test "${lt_cv_aix_libpath+set}" = set; then
15361 aix_libpath=$lt_cv_aix_libpath
15362else
15363 if ${lt_cv_aix_libpath_+:} false; then :
15364 $as_echo_n "(cached) " >&6
15365else
15366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015367/* end confdefs.h. */
15368
15369int
15370main ()
15371{
15372
15373 ;
15374 return 0;
15375}
15376_ACEOF
15377if ac_fn_c_try_link "$LINENO"; then :
15378
cristyda16f162011-02-19 23:52:17 +000015379 lt_aix_libpath_sed='
15380 /Import File Strings/,/^$/ {
15381 /^0/ {
15382 s/^0 *\([^ ]*\) *$/\1/
15383 p
15384 }
15385 }'
15386 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15387 # Check for a 64-bit object if we didn't find anything.
15388 if test -z "$lt_cv_aix_libpath_"; then
15389 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15390 fi
cristy73bd4a52010-10-05 11:24:23 +000015391fi
15392rm -f core conftest.err conftest.$ac_objext \
15393 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015394 if test -z "$lt_cv_aix_libpath_"; then
15395 lt_cv_aix_libpath_="/usr/lib:/lib"
15396 fi
15397
15398fi
15399
15400 aix_libpath=$lt_cv_aix_libpath_
15401fi
cristy73bd4a52010-10-05 11:24:23 +000015402
15403 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000015404 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 +000015405 else
15406 if test "$host_cpu" = ia64; then
15407 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15408 allow_undefined_flag="-z nodefs"
15409 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"
15410 else
15411 # Determine the default libpath from the value encoded in an
15412 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015413 if test "${lt_cv_aix_libpath+set}" = set; then
15414 aix_libpath=$lt_cv_aix_libpath
15415else
15416 if ${lt_cv_aix_libpath_+:} false; then :
15417 $as_echo_n "(cached) " >&6
15418else
15419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015420/* end confdefs.h. */
15421
15422int
15423main ()
15424{
15425
15426 ;
15427 return 0;
15428}
15429_ACEOF
15430if ac_fn_c_try_link "$LINENO"; then :
15431
cristyda16f162011-02-19 23:52:17 +000015432 lt_aix_libpath_sed='
15433 /Import File Strings/,/^$/ {
15434 /^0/ {
15435 s/^0 *\([^ ]*\) *$/\1/
15436 p
15437 }
15438 }'
15439 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15440 # Check for a 64-bit object if we didn't find anything.
15441 if test -z "$lt_cv_aix_libpath_"; then
15442 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15443 fi
cristy73bd4a52010-10-05 11:24:23 +000015444fi
15445rm -f core conftest.err conftest.$ac_objext \
15446 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015447 if test -z "$lt_cv_aix_libpath_"; then
15448 lt_cv_aix_libpath_="/usr/lib:/lib"
15449 fi
15450
15451fi
15452
15453 aix_libpath=$lt_cv_aix_libpath_
15454fi
cristy73bd4a52010-10-05 11:24:23 +000015455
15456 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15457 # Warning - without using the other run time loading flags,
15458 # -berok will link without error, but may produce a broken library.
15459 no_undefined_flag=' ${wl}-bernotok'
15460 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000015461 if test "$with_gnu_ld" = yes; then
15462 # We only use this code for GNU lds that support --whole-archive.
15463 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15464 else
15465 # Exported symbols can be pulled into shared objects from archives
15466 whole_archive_flag_spec='$convenience'
15467 fi
cristy73bd4a52010-10-05 11:24:23 +000015468 archive_cmds_need_lc=yes
15469 # This is similar to how AIX traditionally builds its shared libraries.
15470 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'
15471 fi
15472 fi
15473 ;;
15474
15475 amigaos*)
15476 case $host_cpu in
15477 powerpc)
15478 # see comment about AmigaOS4 .so support
15479 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15480 archive_expsym_cmds=''
15481 ;;
15482 m68k)
15483 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)'
15484 hardcode_libdir_flag_spec='-L$libdir'
15485 hardcode_minus_L=yes
15486 ;;
15487 esac
15488 ;;
15489
15490 bsdi[45]*)
15491 export_dynamic_flag_spec=-rdynamic
15492 ;;
15493
15494 cygwin* | mingw* | pw32* | cegcc*)
15495 # When not using gcc, we currently assume that we are using
15496 # Microsoft Visual C++.
15497 # hardcode_libdir_flag_spec is actually meaningless, as there is
15498 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000015499 case $cc_basename in
15500 cl*)
15501 # Native MSVC
15502 hardcode_libdir_flag_spec=' '
15503 allow_undefined_flag=unsupported
15504 always_export_symbols=yes
15505 file_list_spec='@'
15506 # Tell ltmain to make .lib files, not .a files.
15507 libext=lib
15508 # Tell ltmain to make .dll files, not .so files.
15509 shrext_cmds=".dll"
15510 # FIXME: Setting linknames here is a bad hack.
15511 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15512 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15513 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15514 else
15515 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15516 fi~
15517 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15518 linknames='
15519 # The linker will not automatically build a static lib if we build a DLL.
15520 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15521 enable_shared_with_static_runtimes=yes
cristy99bd5232011-12-07 14:38:20 +000015522 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
cristyda16f162011-02-19 23:52:17 +000015523 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15524 # Don't use ranlib
15525 old_postinstall_cmds='chmod 644 $oldlib'
15526 postlink_cmds='lt_outputfile="@OUTPUT@"~
15527 lt_tool_outputfile="@TOOL_OUTPUT@"~
15528 case $lt_outputfile in
15529 *.exe|*.EXE) ;;
15530 *)
15531 lt_outputfile="$lt_outputfile.exe"
15532 lt_tool_outputfile="$lt_tool_outputfile.exe"
15533 ;;
15534 esac~
15535 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15536 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15537 $RM "$lt_outputfile.manifest";
15538 fi'
15539 ;;
15540 *)
15541 # Assume MSVC wrapper
15542 hardcode_libdir_flag_spec=' '
15543 allow_undefined_flag=unsupported
15544 # Tell ltmain to make .lib files, not .a files.
15545 libext=lib
15546 # Tell ltmain to make .dll files, not .so files.
15547 shrext_cmds=".dll"
15548 # FIXME: Setting linknames here is a bad hack.
15549 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15550 # The linker will automatically build a .lib file if we build a DLL.
15551 old_archive_from_new_cmds='true'
15552 # FIXME: Should let the user specify the lib program.
15553 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15554 enable_shared_with_static_runtimes=yes
15555 ;;
15556 esac
cristy73bd4a52010-10-05 11:24:23 +000015557 ;;
15558
15559 darwin* | rhapsody*)
15560
15561
15562 archive_cmds_need_lc=no
15563 hardcode_direct=no
15564 hardcode_automatic=yes
15565 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000015566 if test "$lt_cv_ld_force_load" = "yes"; then
15567 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 +000015568
cristy0c60a692010-11-04 01:09:47 +000015569 else
15570 whole_archive_flag_spec=''
15571 fi
cristy73bd4a52010-10-05 11:24:23 +000015572 link_all_deplibs=yes
15573 allow_undefined_flag="$_lt_dar_allow_undefined"
15574 case $cc_basename in
15575 ifort*) _lt_dar_can_shared=yes ;;
15576 *) _lt_dar_can_shared=$GCC ;;
15577 esac
15578 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000015579 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000015580 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15581 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15582 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}"
15583 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}"
15584
15585 else
15586 ld_shlibs=no
15587 fi
15588
15589 ;;
15590
15591 dgux*)
15592 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15593 hardcode_libdir_flag_spec='-L$libdir'
15594 hardcode_shlibpath_var=no
15595 ;;
15596
cristy73bd4a52010-10-05 11:24:23 +000015597 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15598 # support. Future versions do this automatically, but an explicit c++rt0.o
15599 # does not break anything, and helps significantly (at the cost of a little
15600 # extra space).
15601 freebsd2.2*)
15602 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15603 hardcode_libdir_flag_spec='-R$libdir'
15604 hardcode_direct=yes
15605 hardcode_shlibpath_var=no
15606 ;;
15607
15608 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cristy99bd5232011-12-07 14:38:20 +000015609 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000015610 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15611 hardcode_direct=yes
15612 hardcode_minus_L=yes
15613 hardcode_shlibpath_var=no
15614 ;;
15615
15616 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15617 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000015618 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015619 hardcode_libdir_flag_spec='-R$libdir'
15620 hardcode_direct=yes
15621 hardcode_shlibpath_var=no
15622 ;;
15623
15624 hpux9*)
15625 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015626 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 +000015627 else
15628 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'
15629 fi
15630 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15631 hardcode_libdir_separator=:
15632 hardcode_direct=yes
15633
15634 # hardcode_minus_L: Not really in the search PATH,
15635 # but as the default location of the library.
15636 hardcode_minus_L=yes
15637 export_dynamic_flag_spec='${wl}-E'
15638 ;;
15639
15640 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000015641 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000015642 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 +000015643 else
15644 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15645 fi
15646 if test "$with_gnu_ld" = no; then
15647 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cristy73bd4a52010-10-05 11:24:23 +000015648 hardcode_libdir_separator=:
15649 hardcode_direct=yes
15650 hardcode_direct_absolute=yes
15651 export_dynamic_flag_spec='${wl}-E'
15652 # hardcode_minus_L: Not really in the search PATH,
15653 # but as the default location of the library.
15654 hardcode_minus_L=yes
15655 fi
15656 ;;
15657
15658 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000015659 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000015660 case $host_cpu in
15661 hppa*64*)
15662 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15663 ;;
15664 ia64*)
cristyda16f162011-02-19 23:52:17 +000015665 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015666 ;;
15667 *)
cristyda16f162011-02-19 23:52:17 +000015668 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 +000015669 ;;
15670 esac
15671 else
15672 case $host_cpu in
15673 hppa*64*)
15674 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15675 ;;
15676 ia64*)
15677 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15678 ;;
15679 *)
cristy0c60a692010-11-04 01:09:47 +000015680
15681 # Older versions of the 11.00 compiler do not understand -b yet
15682 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15684$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015685if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015686 $as_echo_n "(cached) " >&6
15687else
15688 lt_cv_prog_compiler__b=no
15689 save_LDFLAGS="$LDFLAGS"
15690 LDFLAGS="$LDFLAGS -b"
15691 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15692 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15693 # The linker can only warn and ignore the option if not recognized
15694 # So say no if there are warnings
15695 if test -s conftest.err; then
15696 # Append any errors to the config.log.
15697 cat conftest.err 1>&5
15698 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15699 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15700 if diff conftest.exp conftest.er2 >/dev/null; then
15701 lt_cv_prog_compiler__b=yes
15702 fi
15703 else
15704 lt_cv_prog_compiler__b=yes
15705 fi
15706 fi
15707 $RM -r conftest*
15708 LDFLAGS="$save_LDFLAGS"
15709
15710fi
15711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15712$as_echo "$lt_cv_prog_compiler__b" >&6; }
15713
15714if test x"$lt_cv_prog_compiler__b" = xyes; then
15715 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15716else
15717 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15718fi
15719
cristy73bd4a52010-10-05 11:24:23 +000015720 ;;
15721 esac
15722 fi
15723 if test "$with_gnu_ld" = no; then
15724 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15725 hardcode_libdir_separator=:
15726
15727 case $host_cpu in
15728 hppa*64*|ia64*)
15729 hardcode_direct=no
15730 hardcode_shlibpath_var=no
15731 ;;
15732 *)
15733 hardcode_direct=yes
15734 hardcode_direct_absolute=yes
15735 export_dynamic_flag_spec='${wl}-E'
15736
15737 # hardcode_minus_L: Not really in the search PATH,
15738 # but as the default location of the library.
15739 hardcode_minus_L=yes
15740 ;;
15741 esac
15742 fi
15743 ;;
15744
15745 irix5* | irix6* | nonstopux*)
15746 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015747 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 +000015748 # Try to use the -exported_symbol ld option, if it does not
15749 # work, assume that -exports_file does not work either and
15750 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000015751 # This should be the same for all languages, so no per-tag cache variable.
15752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15753$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15754if ${lt_cv_irix_exported_symbol+:} false; then :
15755 $as_echo_n "(cached) " >&6
15756else
15757 save_LDFLAGS="$LDFLAGS"
15758 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015760/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000015761int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000015762_ACEOF
15763if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000015764 lt_cv_irix_exported_symbol=yes
15765else
15766 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000015767fi
15768rm -f core conftest.err conftest.$ac_objext \
15769 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015770 LDFLAGS="$save_LDFLAGS"
15771fi
15772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15773$as_echo "$lt_cv_irix_exported_symbol" >&6; }
15774 if test "$lt_cv_irix_exported_symbol" = yes; then
15775 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'
15776 fi
cristy73bd4a52010-10-05 11:24:23 +000015777 else
cristy0c60a692010-11-04 01:09:47 +000015778 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'
15779 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 +000015780 fi
15781 archive_cmds_need_lc='no'
15782 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15783 hardcode_libdir_separator=:
15784 inherit_rpath=yes
15785 link_all_deplibs=yes
15786 ;;
15787
15788 netbsd*)
15789 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15790 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15791 else
15792 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15793 fi
15794 hardcode_libdir_flag_spec='-R$libdir'
15795 hardcode_direct=yes
15796 hardcode_shlibpath_var=no
15797 ;;
15798
15799 newsos6)
15800 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15801 hardcode_direct=yes
15802 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15803 hardcode_libdir_separator=:
15804 hardcode_shlibpath_var=no
15805 ;;
15806
15807 *nto* | *qnx*)
15808 ;;
15809
15810 openbsd*)
15811 if test -f /usr/libexec/ld.so; then
15812 hardcode_direct=yes
15813 hardcode_shlibpath_var=no
15814 hardcode_direct_absolute=yes
15815 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15816 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15817 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15818 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15819 export_dynamic_flag_spec='${wl}-E'
15820 else
15821 case $host_os in
15822 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15823 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15824 hardcode_libdir_flag_spec='-R$libdir'
15825 ;;
15826 *)
15827 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15828 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15829 ;;
15830 esac
15831 fi
15832 else
15833 ld_shlibs=no
15834 fi
15835 ;;
15836
15837 os2*)
15838 hardcode_libdir_flag_spec='-L$libdir'
15839 hardcode_minus_L=yes
15840 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000015841 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 +000015842 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15843 ;;
15844
15845 osf3*)
15846 if test "$GCC" = yes; then
15847 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000015848 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 +000015849 else
15850 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000015851 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 +000015852 fi
15853 archive_cmds_need_lc='no'
15854 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15855 hardcode_libdir_separator=:
15856 ;;
15857
15858 osf4* | osf5*) # as osf3* with the addition of -msym flag
15859 if test "$GCC" = yes; then
15860 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000015861 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 +000015862 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15863 else
15864 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000015865 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 +000015866 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 +000015867 $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 +000015868
15869 # Both c and cxx compiler support -rpath directly
15870 hardcode_libdir_flag_spec='-rpath $libdir'
15871 fi
15872 archive_cmds_need_lc='no'
15873 hardcode_libdir_separator=:
15874 ;;
15875
15876 solaris*)
15877 no_undefined_flag=' -z defs'
15878 if test "$GCC" = yes; then
15879 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000015880 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 +000015881 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 +000015882 $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 +000015883 else
15884 case `$CC -V 2>&1` in
15885 *"Compilers 5.0"*)
15886 wlarc=''
15887 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15888 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15889 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15890 ;;
15891 *)
15892 wlarc='${wl}'
15893 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15894 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15895 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15896 ;;
15897 esac
15898 fi
15899 hardcode_libdir_flag_spec='-R$libdir'
15900 hardcode_shlibpath_var=no
15901 case $host_os in
15902 solaris2.[0-5] | solaris2.[0-5].*) ;;
15903 *)
15904 # The compiler driver will combine and reorder linker options,
15905 # but understands `-z linker_flag'. GCC discards it without `$wl',
15906 # but is careful enough not to reorder.
15907 # Supported since Solaris 2.6 (maybe 2.5.1?)
15908 if test "$GCC" = yes; then
15909 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15910 else
15911 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15912 fi
15913 ;;
15914 esac
15915 link_all_deplibs=yes
15916 ;;
15917
15918 sunos4*)
15919 if test "x$host_vendor" = xsequent; then
15920 # Use $CC to link under sequent, because it throws in some extra .o
15921 # files that make .init and .fini sections work.
15922 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15923 else
15924 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15925 fi
15926 hardcode_libdir_flag_spec='-L$libdir'
15927 hardcode_direct=yes
15928 hardcode_minus_L=yes
15929 hardcode_shlibpath_var=no
15930 ;;
15931
15932 sysv4)
15933 case $host_vendor in
15934 sni)
15935 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15936 hardcode_direct=yes # is this really true???
15937 ;;
15938 siemens)
15939 ## LD is ld it makes a PLAMLIB
15940 ## CC just makes a GrossModule.
15941 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15942 reload_cmds='$CC -r -o $output$reload_objs'
15943 hardcode_direct=no
15944 ;;
15945 motorola)
15946 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15947 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15948 ;;
15949 esac
15950 runpath_var='LD_RUN_PATH'
15951 hardcode_shlibpath_var=no
15952 ;;
15953
15954 sysv4.3*)
15955 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15956 hardcode_shlibpath_var=no
15957 export_dynamic_flag_spec='-Bexport'
15958 ;;
15959
15960 sysv4*MP*)
15961 if test -d /usr/nec; then
15962 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15963 hardcode_shlibpath_var=no
15964 runpath_var=LD_RUN_PATH
15965 hardcode_runpath_var=yes
15966 ld_shlibs=yes
15967 fi
15968 ;;
15969
15970 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15971 no_undefined_flag='${wl}-z,text'
15972 archive_cmds_need_lc=no
15973 hardcode_shlibpath_var=no
15974 runpath_var='LD_RUN_PATH'
15975
15976 if test "$GCC" = yes; then
15977 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15978 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15979 else
15980 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15981 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15982 fi
15983 ;;
15984
15985 sysv5* | sco3.2v5* | sco5v6*)
15986 # Note: We can NOT use -z defs as we might desire, because we do not
15987 # link with -lc, and that would cause any symbols used from libc to
15988 # always be unresolved, which means just about no library would
15989 # ever link correctly. If we're not using GNU ld we use -z text
15990 # though, which does catch some bad symbols but isn't as heavy-handed
15991 # as -z defs.
15992 no_undefined_flag='${wl}-z,text'
15993 allow_undefined_flag='${wl}-z,nodefs'
15994 archive_cmds_need_lc=no
15995 hardcode_shlibpath_var=no
15996 hardcode_libdir_flag_spec='${wl}-R,$libdir'
15997 hardcode_libdir_separator=':'
15998 link_all_deplibs=yes
15999 export_dynamic_flag_spec='${wl}-Bexport'
16000 runpath_var='LD_RUN_PATH'
16001
16002 if test "$GCC" = yes; then
16003 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16004 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16005 else
16006 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16007 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16008 fi
16009 ;;
16010
16011 uts4*)
16012 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16013 hardcode_libdir_flag_spec='-L$libdir'
16014 hardcode_shlibpath_var=no
16015 ;;
16016
16017 *)
16018 ld_shlibs=no
16019 ;;
16020 esac
16021
16022 if test x$host_vendor = xsni; then
16023 case $host in
16024 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16025 export_dynamic_flag_spec='${wl}-Blargedynsym'
16026 ;;
16027 esac
16028 fi
16029 fi
16030
16031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16032$as_echo "$ld_shlibs" >&6; }
16033test "$ld_shlibs" = no && can_build_shared=no
16034
16035with_gnu_ld=$with_gnu_ld
16036
16037
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051#
16052# Do we need to explicitly link libc?
16053#
16054case "x$archive_cmds_need_lc" in
16055x|xyes)
16056 # Assume -lc should be added
16057 archive_cmds_need_lc=yes
16058
16059 if test "$enable_shared" = yes && test "$GCC" = yes; then
16060 case $archive_cmds in
16061 *'~'*)
16062 # FIXME: we may have to deal with multi-command sequences.
16063 ;;
16064 '$CC '*)
16065 # Test whether the compiler implicitly links with -lc since on some
16066 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16067 # to ld, don't add -lc before -lgcc.
16068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16069$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016070if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016071 $as_echo_n "(cached) " >&6
16072else
16073 $RM conftest*
16074 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016075
cristy0c60a692010-11-04 01:09:47 +000016076 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000016077 (eval $ac_compile) 2>&5
16078 ac_status=$?
16079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16080 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000016081 soname=conftest
16082 lib=conftest
16083 libobjs=conftest.$ac_objext
16084 deplibs=
16085 wl=$lt_prog_compiler_wl
16086 pic_flag=$lt_prog_compiler_pic
16087 compiler_flags=-v
16088 linker_flags=-v
16089 verstring=
16090 output_objdir=.
16091 libname=conftest
16092 lt_save_allow_undefined_flag=$allow_undefined_flag
16093 allow_undefined_flag=
16094 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 +000016095 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16096 ac_status=$?
16097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16098 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000016099 then
16100 lt_cv_archive_cmds_need_lc=no
16101 else
16102 lt_cv_archive_cmds_need_lc=yes
16103 fi
16104 allow_undefined_flag=$lt_save_allow_undefined_flag
16105 else
16106 cat conftest.err 1>&5
16107 fi
16108 $RM conftest*
16109
16110fi
16111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16112$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16113 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000016114 ;;
16115 esac
16116 fi
16117 ;;
16118esac
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146
16147
16148
16149
16150
16151
16152
16153
16154
16155
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172
16173
16174
16175
16176
16177
16178
16179
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
16194
16195
16196
16197
16198
16199
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210
16211
16212
16213
16214
16215
16216
16217
16218
16219
16220
16221
16222
16223
16224
16225
16226
16227
16228
16229
16230
16231
16232
16233
16234
16235
16236
16237
16238
16239
16240
16241
16242
16243
16244
16245
16246
16247
16248
16249
16250
16251
16252
16253
16254
16255
16256
16257
16258
16259
16260
16261
16262
16263
16264
16265
16266
16267
16268
16269
16270
cristy73bd4a52010-10-05 11:24:23 +000016271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16272$as_echo_n "checking dynamic linker characteristics... " >&6; }
16273
16274if test "$GCC" = yes; then
16275 case $host_os in
16276 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16277 *) lt_awk_arg="/^libraries:/" ;;
16278 esac
cristy0c60a692010-11-04 01:09:47 +000016279 case $host_os in
16280 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16281 *) lt_sed_strip_eq="s,=/,/,g" ;;
16282 esac
16283 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16284 case $lt_search_path_spec in
16285 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000016286 # if the path contains ";" then we assume it to be the separator
16287 # otherwise default to the standard path separator (i.e. ":") - it is
16288 # assumed that no part of a normal pathname contains ";" but that should
16289 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000016290 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16291 ;;
16292 *)
16293 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16294 ;;
16295 esac
cristy73bd4a52010-10-05 11:24:23 +000016296 # Ok, now we have the path, separated by spaces, we can step through it
16297 # and add multilib dir if necessary.
16298 lt_tmp_lt_search_path_spec=
16299 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16300 for lt_sys_path in $lt_search_path_spec; do
16301 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16302 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16303 else
16304 test -d "$lt_sys_path" && \
16305 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16306 fi
16307 done
cristy0c60a692010-11-04 01:09:47 +000016308 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000016309BEGIN {RS=" "; FS="/|\n";} {
16310 lt_foo="";
16311 lt_count=0;
16312 for (lt_i = NF; lt_i > 0; lt_i--) {
16313 if ($lt_i != "" && $lt_i != ".") {
16314 if ($lt_i == "..") {
16315 lt_count++;
16316 } else {
16317 if (lt_count == 0) {
16318 lt_foo="/" $lt_i lt_foo;
16319 } else {
16320 lt_count--;
16321 }
16322 }
16323 }
16324 }
16325 if (lt_foo != "") { lt_freq[lt_foo]++; }
16326 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16327}'`
cristy0c60a692010-11-04 01:09:47 +000016328 # AWK program above erroneously prepends '/' to C:/dos/paths
16329 # for these hosts.
16330 case $host_os in
16331 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16332 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16333 esac
16334 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000016335else
16336 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16337fi
16338library_names_spec=
16339libname_spec='lib$name'
16340soname_spec=
16341shrext_cmds=".so"
16342postinstall_cmds=
16343postuninstall_cmds=
16344finish_cmds=
16345finish_eval=
16346shlibpath_var=
16347shlibpath_overrides_runpath=unknown
16348version_type=none
16349dynamic_linker="$host_os ld.so"
16350sys_lib_dlsearch_path_spec="/lib /usr/lib"
16351need_lib_prefix=unknown
16352hardcode_into_libs=no
16353
16354# when you set need_version to no, make sure it does not cause -set_version
16355# flags to be left without arguments
16356need_version=unknown
16357
16358case $host_os in
16359aix3*)
cristy99bd5232011-12-07 14:38:20 +000016360 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016361 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16362 shlibpath_var=LIBPATH
16363
16364 # AIX 3 has no versioning support, so we append a major version to the name.
16365 soname_spec='${libname}${release}${shared_ext}$major'
16366 ;;
16367
16368aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000016369 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016370 need_lib_prefix=no
16371 need_version=no
16372 hardcode_into_libs=yes
16373 if test "$host_cpu" = ia64; then
16374 # AIX 5 supports IA64
16375 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16376 shlibpath_var=LD_LIBRARY_PATH
16377 else
16378 # With GCC up to 2.95.x, collect2 would create an import file
16379 # for dependence libraries. The import file would start with
16380 # the line `#! .'. This would cause the generated library to
16381 # depend on `.', always an invalid library. This was fixed in
16382 # development snapshots of GCC prior to 3.0.
16383 case $host_os in
16384 aix4 | aix4.[01] | aix4.[01].*)
16385 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16386 echo ' yes '
16387 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16388 :
16389 else
16390 can_build_shared=no
16391 fi
16392 ;;
16393 esac
16394 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16395 # soname into executable. Probably we can add versioning support to
16396 # collect2, so additional links can be useful in future.
16397 if test "$aix_use_runtimelinking" = yes; then
16398 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16399 # instead of lib<name>.a to let people know that these are not
16400 # typical AIX shared libraries.
16401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16402 else
16403 # We preserve .a as extension for shared libraries through AIX4.2
16404 # and later when we are not doing run time linking.
16405 library_names_spec='${libname}${release}.a $libname.a'
16406 soname_spec='${libname}${release}${shared_ext}$major'
16407 fi
16408 shlibpath_var=LIBPATH
16409 fi
16410 ;;
16411
16412amigaos*)
16413 case $host_cpu in
16414 powerpc)
16415 # Since July 2007 AmigaOS4 officially supports .so libraries.
16416 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16418 ;;
16419 m68k)
16420 library_names_spec='$libname.ixlibrary $libname.a'
16421 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000016422 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 +000016423 ;;
16424 esac
16425 ;;
16426
16427beos*)
16428 library_names_spec='${libname}${shared_ext}'
16429 dynamic_linker="$host_os ld.so"
16430 shlibpath_var=LIBRARY_PATH
16431 ;;
16432
16433bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000016434 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016435 need_version=no
16436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16437 soname_spec='${libname}${release}${shared_ext}$major'
16438 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16439 shlibpath_var=LD_LIBRARY_PATH
16440 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16441 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16442 # the default ld.so.conf also contains /usr/contrib/lib and
16443 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16444 # libtool to hard-code these into programs
16445 ;;
16446
16447cygwin* | mingw* | pw32* | cegcc*)
16448 version_type=windows
16449 shrext_cmds=".dll"
16450 need_version=no
16451 need_lib_prefix=no
16452
cristyda16f162011-02-19 23:52:17 +000016453 case $GCC,$cc_basename in
16454 yes,*)
16455 # gcc
cristy73bd4a52010-10-05 11:24:23 +000016456 library_names_spec='$libname.dll.a'
16457 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16458 postinstall_cmds='base_file=`basename \${file}`~
16459 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16460 dldir=$destdir/`dirname \$dlpath`~
16461 test -d \$dldir || mkdir -p \$dldir~
16462 $install_prog $dir/$dlname \$dldir/$dlname~
16463 chmod a+x \$dldir/$dlname~
16464 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16465 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16466 fi'
16467 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16468 dlpath=$dir/\$dldll~
16469 $RM \$dlpath'
16470 shlibpath_overrides_runpath=yes
16471
16472 case $host_os in
16473 cygwin*)
16474 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16475 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000016476
16477 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000016478 ;;
16479 mingw* | cegcc*)
16480 # MinGW DLLs use traditional 'lib' prefix
16481 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000016482 ;;
16483 pw32*)
16484 # pw32 DLLs use 'pw' prefix rather than 'lib'
16485 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16486 ;;
16487 esac
cristyda16f162011-02-19 23:52:17 +000016488 dynamic_linker='Win32 ld.exe'
16489 ;;
16490
16491 *,cl*)
16492 # Native MSVC
16493 libname_spec='$name'
16494 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16495 library_names_spec='${libname}.dll.lib'
16496
16497 case $build_os in
16498 mingw*)
16499 sys_lib_search_path_spec=
16500 lt_save_ifs=$IFS
16501 IFS=';'
16502 for lt_path in $LIB
16503 do
16504 IFS=$lt_save_ifs
16505 # Let DOS variable expansion print the short 8.3 style file name.
16506 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16507 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16508 done
16509 IFS=$lt_save_ifs
16510 # Convert to MSYS style.
16511 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16512 ;;
16513 cygwin*)
16514 # Convert to unix form, then to dos form, then back to unix form
16515 # but this time dos style (no spaces!) so that the unix form looks
16516 # like /cygdrive/c/PROGRA~1:/cygdr...
16517 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16518 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16519 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16520 ;;
16521 *)
16522 sys_lib_search_path_spec="$LIB"
16523 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16524 # It is most probably a Windows format PATH.
16525 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16526 else
16527 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16528 fi
16529 # FIXME: find the short name or the path components, as spaces are
16530 # common. (e.g. "Program Files" -> "PROGRA~1")
16531 ;;
16532 esac
16533
16534 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16535 postinstall_cmds='base_file=`basename \${file}`~
16536 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16537 dldir=$destdir/`dirname \$dlpath`~
16538 test -d \$dldir || mkdir -p \$dldir~
16539 $install_prog $dir/$dlname \$dldir/$dlname'
16540 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16541 dlpath=$dir/\$dldll~
16542 $RM \$dlpath'
16543 shlibpath_overrides_runpath=yes
16544 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000016545 ;;
16546
16547 *)
cristyda16f162011-02-19 23:52:17 +000016548 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000016549 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000016550 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000016551 ;;
16552 esac
cristy73bd4a52010-10-05 11:24:23 +000016553 # FIXME: first we should search . and the directory the executable is in
16554 shlibpath_var=PATH
16555 ;;
16556
16557darwin* | rhapsody*)
16558 dynamic_linker="$host_os dyld"
16559 version_type=darwin
16560 need_lib_prefix=no
16561 need_version=no
16562 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16563 soname_spec='${libname}${release}${major}$shared_ext'
16564 shlibpath_overrides_runpath=yes
16565 shlibpath_var=DYLD_LIBRARY_PATH
16566 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16567
16568 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16569 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16570 ;;
16571
16572dgux*)
cristy99bd5232011-12-07 14:38:20 +000016573 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016574 need_lib_prefix=no
16575 need_version=no
16576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16577 soname_spec='${libname}${release}${shared_ext}$major'
16578 shlibpath_var=LD_LIBRARY_PATH
16579 ;;
16580
cristy73bd4a52010-10-05 11:24:23 +000016581freebsd* | dragonfly*)
16582 # DragonFly does not have aout. When/if they implement a new
16583 # versioning mechanism, adjust this.
16584 if test -x /usr/bin/objformat; then
16585 objformat=`/usr/bin/objformat`
16586 else
16587 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016588 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000016589 *) objformat=elf ;;
16590 esac
16591 fi
16592 version_type=freebsd-$objformat
16593 case $version_type in
16594 freebsd-elf*)
16595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16596 need_version=no
16597 need_lib_prefix=no
16598 ;;
16599 freebsd-*)
16600 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16601 need_version=yes
16602 ;;
16603 esac
16604 shlibpath_var=LD_LIBRARY_PATH
16605 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016606 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000016607 shlibpath_overrides_runpath=yes
16608 ;;
16609 freebsd3.[01]* | freebsdelf3.[01]*)
16610 shlibpath_overrides_runpath=yes
16611 hardcode_into_libs=yes
16612 ;;
16613 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16614 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16615 shlibpath_overrides_runpath=no
16616 hardcode_into_libs=yes
16617 ;;
16618 *) # from 4.6 on, and DragonFly
16619 shlibpath_overrides_runpath=yes
16620 hardcode_into_libs=yes
16621 ;;
16622 esac
16623 ;;
16624
16625gnu*)
cristy99bd5232011-12-07 14:38:20 +000016626 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016627 need_lib_prefix=no
16628 need_version=no
16629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16630 soname_spec='${libname}${release}${shared_ext}$major'
16631 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000016632 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000016633 hardcode_into_libs=yes
16634 ;;
16635
cristy0c60a692010-11-04 01:09:47 +000016636haiku*)
cristy99bd5232011-12-07 14:38:20 +000016637 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000016638 need_lib_prefix=no
16639 need_version=no
16640 dynamic_linker="$host_os runtime_loader"
16641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16642 soname_spec='${libname}${release}${shared_ext}$major'
16643 shlibpath_var=LIBRARY_PATH
16644 shlibpath_overrides_runpath=yes
16645 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16646 hardcode_into_libs=yes
16647 ;;
16648
cristy73bd4a52010-10-05 11:24:23 +000016649hpux9* | hpux10* | hpux11*)
16650 # Give a soname corresponding to the major version so that dld.sl refuses to
16651 # link against other versions.
16652 version_type=sunos
16653 need_lib_prefix=no
16654 need_version=no
16655 case $host_cpu in
16656 ia64*)
16657 shrext_cmds='.so'
16658 hardcode_into_libs=yes
16659 dynamic_linker="$host_os dld.so"
16660 shlibpath_var=LD_LIBRARY_PATH
16661 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16663 soname_spec='${libname}${release}${shared_ext}$major'
16664 if test "X$HPUX_IA64_MODE" = X32; then
16665 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16666 else
16667 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16668 fi
16669 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16670 ;;
16671 hppa*64*)
16672 shrext_cmds='.sl'
16673 hardcode_into_libs=yes
16674 dynamic_linker="$host_os dld.sl"
16675 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16676 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16678 soname_spec='${libname}${release}${shared_ext}$major'
16679 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16680 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16681 ;;
16682 *)
16683 shrext_cmds='.sl'
16684 dynamic_linker="$host_os dld.sl"
16685 shlibpath_var=SHLIB_PATH
16686 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16688 soname_spec='${libname}${release}${shared_ext}$major'
16689 ;;
16690 esac
cristy0c60a692010-11-04 01:09:47 +000016691 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000016692 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000016693 # or fails outright, so override atomically:
16694 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000016695 ;;
16696
16697interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000016698 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016699 need_lib_prefix=no
16700 need_version=no
16701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16702 soname_spec='${libname}${release}${shared_ext}$major'
16703 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16704 shlibpath_var=LD_LIBRARY_PATH
16705 shlibpath_overrides_runpath=no
16706 hardcode_into_libs=yes
16707 ;;
16708
16709irix5* | irix6* | nonstopux*)
16710 case $host_os in
16711 nonstopux*) version_type=nonstopux ;;
16712 *)
16713 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000016714 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016715 else
16716 version_type=irix
16717 fi ;;
16718 esac
16719 need_lib_prefix=no
16720 need_version=no
16721 soname_spec='${libname}${release}${shared_ext}$major'
16722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16723 case $host_os in
16724 irix5* | nonstopux*)
16725 libsuff= shlibsuff=
16726 ;;
16727 *)
16728 case $LD in # libtool.m4 will add one of these switches to LD
16729 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16730 libsuff= shlibsuff= libmagic=32-bit;;
16731 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16732 libsuff=32 shlibsuff=N32 libmagic=N32;;
16733 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16734 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16735 *) libsuff= shlibsuff= libmagic=never-match;;
16736 esac
16737 ;;
16738 esac
16739 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16740 shlibpath_overrides_runpath=no
16741 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16742 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16743 hardcode_into_libs=yes
16744 ;;
16745
16746# No shared lib support for Linux oldld, aout, or coff.
16747linux*oldld* | linux*aout* | linux*coff*)
16748 dynamic_linker=no
16749 ;;
16750
cristy99bd5232011-12-07 14:38:20 +000016751# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000016752linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000016753 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016754 need_lib_prefix=no
16755 need_version=no
16756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16757 soname_spec='${libname}${release}${shared_ext}$major'
16758 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16759 shlibpath_var=LD_LIBRARY_PATH
16760 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000016761
cristy73bd4a52010-10-05 11:24:23 +000016762 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000016763 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016764 $as_echo_n "(cached) " >&6
16765else
16766 lt_cv_shlibpath_overrides_runpath=no
16767 save_LDFLAGS=$LDFLAGS
16768 save_libdir=$libdir
16769 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16770 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016772/* end confdefs.h. */
16773
16774int
16775main ()
16776{
16777
16778 ;
16779 return 0;
16780}
16781_ACEOF
16782if ac_fn_c_try_link "$LINENO"; then :
16783 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000016784 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000016785fi
16786fi
16787rm -f core conftest.err conftest.$ac_objext \
16788 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016789 LDFLAGS=$save_LDFLAGS
16790 libdir=$save_libdir
16791
16792fi
16793
16794 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000016795
16796 # This implies no fast_install, which is unacceptable.
16797 # Some rework will be needed to allow for fast_install
16798 # before this can be enabled.
16799 hardcode_into_libs=yes
16800
16801 # Add ABI-specific directories to the system library path.
16802 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16803
16804 # Append ld.so.conf contents to the search path
16805 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000016806 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 +000016807 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000016808
cristy73bd4a52010-10-05 11:24:23 +000016809 fi
16810
16811 # We used to test for /lib/ld.so.1 and disable shared libraries on
16812 # powerpc, because MkLinux only supported shared libraries with the
16813 # GNU dynamic linker. Since this was broken with cross compilers,
16814 # most powerpc-linux boxes support dynamic linking these days and
16815 # people can always --disable-shared, the test was removed, and we
16816 # assume the GNU/Linux dynamic linker is in use.
16817 dynamic_linker='GNU/Linux ld.so'
16818 ;;
16819
16820netbsd*)
16821 version_type=sunos
16822 need_lib_prefix=no
16823 need_version=no
16824 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16826 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16827 dynamic_linker='NetBSD (a.out) ld.so'
16828 else
16829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16830 soname_spec='${libname}${release}${shared_ext}$major'
16831 dynamic_linker='NetBSD ld.elf_so'
16832 fi
16833 shlibpath_var=LD_LIBRARY_PATH
16834 shlibpath_overrides_runpath=yes
16835 hardcode_into_libs=yes
16836 ;;
16837
16838newsos6)
cristy99bd5232011-12-07 14:38:20 +000016839 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16841 shlibpath_var=LD_LIBRARY_PATH
16842 shlibpath_overrides_runpath=yes
16843 ;;
16844
16845*nto* | *qnx*)
16846 version_type=qnx
16847 need_lib_prefix=no
16848 need_version=no
16849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16850 soname_spec='${libname}${release}${shared_ext}$major'
16851 shlibpath_var=LD_LIBRARY_PATH
16852 shlibpath_overrides_runpath=no
16853 hardcode_into_libs=yes
16854 dynamic_linker='ldqnx.so'
16855 ;;
16856
16857openbsd*)
16858 version_type=sunos
16859 sys_lib_dlsearch_path_spec="/usr/lib"
16860 need_lib_prefix=no
16861 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16862 case $host_os in
16863 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16864 *) need_version=no ;;
16865 esac
16866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16867 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16868 shlibpath_var=LD_LIBRARY_PATH
16869 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16870 case $host_os in
16871 openbsd2.[89] | openbsd2.[89].*)
16872 shlibpath_overrides_runpath=no
16873 ;;
16874 *)
16875 shlibpath_overrides_runpath=yes
16876 ;;
16877 esac
16878 else
16879 shlibpath_overrides_runpath=yes
16880 fi
16881 ;;
16882
16883os2*)
16884 libname_spec='$name'
16885 shrext_cmds=".dll"
16886 need_lib_prefix=no
16887 library_names_spec='$libname${shared_ext} $libname.a'
16888 dynamic_linker='OS/2 ld.exe'
16889 shlibpath_var=LIBPATH
16890 ;;
16891
16892osf3* | osf4* | osf5*)
16893 version_type=osf
16894 need_lib_prefix=no
16895 need_version=no
16896 soname_spec='${libname}${release}${shared_ext}$major'
16897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16898 shlibpath_var=LD_LIBRARY_PATH
16899 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16900 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16901 ;;
16902
16903rdos*)
16904 dynamic_linker=no
16905 ;;
16906
16907solaris*)
cristy99bd5232011-12-07 14:38:20 +000016908 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016909 need_lib_prefix=no
16910 need_version=no
16911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16912 soname_spec='${libname}${release}${shared_ext}$major'
16913 shlibpath_var=LD_LIBRARY_PATH
16914 shlibpath_overrides_runpath=yes
16915 hardcode_into_libs=yes
16916 # ldd complains unless libraries are executable
16917 postinstall_cmds='chmod +x $lib'
16918 ;;
16919
16920sunos4*)
16921 version_type=sunos
16922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16923 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16924 shlibpath_var=LD_LIBRARY_PATH
16925 shlibpath_overrides_runpath=yes
16926 if test "$with_gnu_ld" = yes; then
16927 need_lib_prefix=no
16928 fi
16929 need_version=yes
16930 ;;
16931
16932sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000016933 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16935 soname_spec='${libname}${release}${shared_ext}$major'
16936 shlibpath_var=LD_LIBRARY_PATH
16937 case $host_vendor in
16938 sni)
16939 shlibpath_overrides_runpath=no
16940 need_lib_prefix=no
16941 runpath_var=LD_RUN_PATH
16942 ;;
16943 siemens)
16944 need_lib_prefix=no
16945 ;;
16946 motorola)
16947 need_lib_prefix=no
16948 need_version=no
16949 shlibpath_overrides_runpath=no
16950 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16951 ;;
16952 esac
16953 ;;
16954
16955sysv4*MP*)
16956 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000016957 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016958 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16959 soname_spec='$libname${shared_ext}.$major'
16960 shlibpath_var=LD_LIBRARY_PATH
16961 fi
16962 ;;
16963
16964sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16965 version_type=freebsd-elf
16966 need_lib_prefix=no
16967 need_version=no
16968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16969 soname_spec='${libname}${release}${shared_ext}$major'
16970 shlibpath_var=LD_LIBRARY_PATH
16971 shlibpath_overrides_runpath=yes
16972 hardcode_into_libs=yes
16973 if test "$with_gnu_ld" = yes; then
16974 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16975 else
16976 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16977 case $host_os in
16978 sco3.2v5*)
16979 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16980 ;;
16981 esac
16982 fi
16983 sys_lib_dlsearch_path_spec='/usr/lib'
16984 ;;
16985
16986tpf*)
16987 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000016988 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016989 need_lib_prefix=no
16990 need_version=no
16991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16992 shlibpath_var=LD_LIBRARY_PATH
16993 shlibpath_overrides_runpath=no
16994 hardcode_into_libs=yes
16995 ;;
16996
16997uts4*)
cristy99bd5232011-12-07 14:38:20 +000016998 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17000 soname_spec='${libname}${release}${shared_ext}$major'
17001 shlibpath_var=LD_LIBRARY_PATH
17002 ;;
17003
17004*)
17005 dynamic_linker=no
17006 ;;
17007esac
17008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17009$as_echo "$dynamic_linker" >&6; }
17010test "$dynamic_linker" = no && can_build_shared=no
17011
17012variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17013if test "$GCC" = yes; then
17014 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17015fi
17016
17017if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17018 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17019fi
17020if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17021 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17022fi
17023
17024
17025
17026
17027
17028
17029
17030
17031
17032
17033
17034
17035
17036
17037
17038
17039
17040
17041
17042
17043
17044
17045
17046
17047
17048
17049
17050
17051
17052
17053
17054
17055
17056
17057
17058
17059
17060
17061
17062
17063
17064
17065
17066
17067
17068
17069
17070
17071
17072
17073
17074
17075
17076
17077
17078
17079
17080
17081
17082
17083
17084
17085
17086
17087
17088
17089
17090
17091
17092
17093
17094
17095
17096
17097
17098
17099
17100
17101
17102
17103
17104
17105
17106
17107
17108
17109
cristy0c60a692010-11-04 01:09:47 +000017110
17111
17112
17113
17114
cristy73bd4a52010-10-05 11:24:23 +000017115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17116$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17117hardcode_action=
17118if test -n "$hardcode_libdir_flag_spec" ||
17119 test -n "$runpath_var" ||
17120 test "X$hardcode_automatic" = "Xyes" ; then
17121
17122 # We can hardcode non-existent directories.
17123 if test "$hardcode_direct" != no &&
17124 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17125 # have to relink, otherwise we might link with an installed library
17126 # when we should be linking with a yet-to-be-installed one
17127 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17128 test "$hardcode_minus_L" != no; then
17129 # Linking always hardcodes the temporary library directory.
17130 hardcode_action=relink
17131 else
17132 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17133 hardcode_action=immediate
17134 fi
17135else
17136 # We cannot hardcode anything, or else we can only hardcode existing
17137 # directories.
17138 hardcode_action=unsupported
17139fi
17140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17141$as_echo "$hardcode_action" >&6; }
17142
17143if test "$hardcode_action" = relink ||
17144 test "$inherit_rpath" = yes; then
17145 # Fast installation is not supported
17146 enable_fast_install=no
17147elif test "$shlibpath_overrides_runpath" = yes ||
17148 test "$enable_shared" = no; then
17149 # Fast installation is not necessary
17150 enable_fast_install=needless
17151fi
17152
17153
17154
17155
17156
17157
17158 if test "x$enable_dlopen" != xyes; then
17159 enable_dlopen=unknown
17160 enable_dlopen_self=unknown
17161 enable_dlopen_self_static=unknown
17162else
17163 lt_cv_dlopen=no
17164 lt_cv_dlopen_libs=
17165
17166 case $host_os in
17167 beos*)
17168 lt_cv_dlopen="load_add_on"
17169 lt_cv_dlopen_libs=
17170 lt_cv_dlopen_self=yes
17171 ;;
17172
17173 mingw* | pw32* | cegcc*)
17174 lt_cv_dlopen="LoadLibrary"
17175 lt_cv_dlopen_libs=
17176 ;;
17177
17178 cygwin*)
17179 lt_cv_dlopen="dlopen"
17180 lt_cv_dlopen_libs=
17181 ;;
17182
17183 darwin*)
17184 # if libdl is installed we need to link against it
17185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17186$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017187if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017188 $as_echo_n "(cached) " >&6
17189else
17190 ac_check_lib_save_LIBS=$LIBS
17191LIBS="-ldl $LIBS"
17192cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17193/* end confdefs.h. */
17194
17195/* Override any GCC internal prototype to avoid an error.
17196 Use char because int might match the return type of a GCC
17197 builtin and then its argument prototype would still apply. */
17198#ifdef __cplusplus
17199extern "C"
17200#endif
17201char dlopen ();
17202int
17203main ()
17204{
17205return dlopen ();
17206 ;
17207 return 0;
17208}
17209_ACEOF
17210if ac_fn_c_try_link "$LINENO"; then :
17211 ac_cv_lib_dl_dlopen=yes
17212else
17213 ac_cv_lib_dl_dlopen=no
17214fi
17215rm -f core conftest.err conftest.$ac_objext \
17216 conftest$ac_exeext conftest.$ac_ext
17217LIBS=$ac_check_lib_save_LIBS
17218fi
17219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17220$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017221if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017222 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17223else
17224
17225 lt_cv_dlopen="dyld"
17226 lt_cv_dlopen_libs=
17227 lt_cv_dlopen_self=yes
17228
17229fi
17230
17231 ;;
17232
17233 *)
17234 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000017235if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017236 lt_cv_dlopen="shl_load"
17237else
17238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17239$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017240if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017241 $as_echo_n "(cached) " >&6
17242else
17243 ac_check_lib_save_LIBS=$LIBS
17244LIBS="-ldld $LIBS"
17245cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17246/* end confdefs.h. */
17247
17248/* Override any GCC internal prototype to avoid an error.
17249 Use char because int might match the return type of a GCC
17250 builtin and then its argument prototype would still apply. */
17251#ifdef __cplusplus
17252extern "C"
17253#endif
17254char shl_load ();
17255int
17256main ()
17257{
17258return shl_load ();
17259 ;
17260 return 0;
17261}
17262_ACEOF
17263if ac_fn_c_try_link "$LINENO"; then :
17264 ac_cv_lib_dld_shl_load=yes
17265else
17266 ac_cv_lib_dld_shl_load=no
17267fi
17268rm -f core conftest.err conftest.$ac_objext \
17269 conftest$ac_exeext conftest.$ac_ext
17270LIBS=$ac_check_lib_save_LIBS
17271fi
17272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17273$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000017274if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017275 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17276else
17277 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000017278if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017279 lt_cv_dlopen="dlopen"
17280else
17281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17282$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017283if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017284 $as_echo_n "(cached) " >&6
17285else
17286 ac_check_lib_save_LIBS=$LIBS
17287LIBS="-ldl $LIBS"
17288cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17289/* end confdefs.h. */
17290
17291/* Override any GCC internal prototype to avoid an error.
17292 Use char because int might match the return type of a GCC
17293 builtin and then its argument prototype would still apply. */
17294#ifdef __cplusplus
17295extern "C"
17296#endif
17297char dlopen ();
17298int
17299main ()
17300{
17301return dlopen ();
17302 ;
17303 return 0;
17304}
17305_ACEOF
17306if ac_fn_c_try_link "$LINENO"; then :
17307 ac_cv_lib_dl_dlopen=yes
17308else
17309 ac_cv_lib_dl_dlopen=no
17310fi
17311rm -f core conftest.err conftest.$ac_objext \
17312 conftest$ac_exeext conftest.$ac_ext
17313LIBS=$ac_check_lib_save_LIBS
17314fi
17315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17316$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017317if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017318 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17319else
17320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17321$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017322if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017323 $as_echo_n "(cached) " >&6
17324else
17325 ac_check_lib_save_LIBS=$LIBS
17326LIBS="-lsvld $LIBS"
17327cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17328/* end confdefs.h. */
17329
17330/* Override any GCC internal prototype to avoid an error.
17331 Use char because int might match the return type of a GCC
17332 builtin and then its argument prototype would still apply. */
17333#ifdef __cplusplus
17334extern "C"
17335#endif
17336char dlopen ();
17337int
17338main ()
17339{
17340return dlopen ();
17341 ;
17342 return 0;
17343}
17344_ACEOF
17345if ac_fn_c_try_link "$LINENO"; then :
17346 ac_cv_lib_svld_dlopen=yes
17347else
17348 ac_cv_lib_svld_dlopen=no
17349fi
17350rm -f core conftest.err conftest.$ac_objext \
17351 conftest$ac_exeext conftest.$ac_ext
17352LIBS=$ac_check_lib_save_LIBS
17353fi
17354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17355$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017356if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017357 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17358else
17359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17360$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017361if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017362 $as_echo_n "(cached) " >&6
17363else
17364 ac_check_lib_save_LIBS=$LIBS
17365LIBS="-ldld $LIBS"
17366cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17367/* end confdefs.h. */
17368
17369/* Override any GCC internal prototype to avoid an error.
17370 Use char because int might match the return type of a GCC
17371 builtin and then its argument prototype would still apply. */
17372#ifdef __cplusplus
17373extern "C"
17374#endif
17375char dld_link ();
17376int
17377main ()
17378{
17379return dld_link ();
17380 ;
17381 return 0;
17382}
17383_ACEOF
17384if ac_fn_c_try_link "$LINENO"; then :
17385 ac_cv_lib_dld_dld_link=yes
17386else
17387 ac_cv_lib_dld_dld_link=no
17388fi
17389rm -f core conftest.err conftest.$ac_objext \
17390 conftest$ac_exeext conftest.$ac_ext
17391LIBS=$ac_check_lib_save_LIBS
17392fi
17393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17394$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000017395if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017396 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17397fi
17398
17399
17400fi
17401
17402
17403fi
17404
17405
17406fi
17407
17408
17409fi
17410
17411
17412fi
17413
17414 ;;
17415 esac
17416
17417 if test "x$lt_cv_dlopen" != xno; then
17418 enable_dlopen=yes
17419 else
17420 enable_dlopen=no
17421 fi
17422
17423 case $lt_cv_dlopen in
17424 dlopen)
17425 save_CPPFLAGS="$CPPFLAGS"
17426 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17427
17428 save_LDFLAGS="$LDFLAGS"
17429 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17430
17431 save_LIBS="$LIBS"
17432 LIBS="$lt_cv_dlopen_libs $LIBS"
17433
17434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17435$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017436if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017437 $as_echo_n "(cached) " >&6
17438else
17439 if test "$cross_compiling" = yes; then :
17440 lt_cv_dlopen_self=cross
17441else
17442 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17443 lt_status=$lt_dlunknown
17444 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017445#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017446#include "confdefs.h"
17447
17448#if HAVE_DLFCN_H
17449#include <dlfcn.h>
17450#endif
17451
17452#include <stdio.h>
17453
17454#ifdef RTLD_GLOBAL
17455# define LT_DLGLOBAL RTLD_GLOBAL
17456#else
17457# ifdef DL_GLOBAL
17458# define LT_DLGLOBAL DL_GLOBAL
17459# else
17460# define LT_DLGLOBAL 0
17461# endif
17462#endif
17463
17464/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17465 find out it does not work in some platform. */
17466#ifndef LT_DLLAZY_OR_NOW
17467# ifdef RTLD_LAZY
17468# define LT_DLLAZY_OR_NOW RTLD_LAZY
17469# else
17470# ifdef DL_LAZY
17471# define LT_DLLAZY_OR_NOW DL_LAZY
17472# else
17473# ifdef RTLD_NOW
17474# define LT_DLLAZY_OR_NOW RTLD_NOW
17475# else
17476# ifdef DL_NOW
17477# define LT_DLLAZY_OR_NOW DL_NOW
17478# else
17479# define LT_DLLAZY_OR_NOW 0
17480# endif
17481# endif
17482# endif
17483# endif
17484#endif
17485
cristy0c60a692010-11-04 01:09:47 +000017486/* When -fvisbility=hidden is used, assume the code has been annotated
17487 correspondingly for the symbols needed. */
17488#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017489int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017490#endif
17491
cristyda16f162011-02-19 23:52:17 +000017492int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017493int main ()
17494{
17495 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17496 int status = $lt_dlunknown;
17497
17498 if (self)
17499 {
17500 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017501 else
17502 {
17503 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17504 else puts (dlerror ());
17505 }
cristy73bd4a52010-10-05 11:24:23 +000017506 /* dlclose (self); */
17507 }
17508 else
17509 puts (dlerror ());
17510
17511 return status;
17512}
17513_LT_EOF
17514 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17515 (eval $ac_link) 2>&5
17516 ac_status=$?
17517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17518 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17519 (./conftest; exit; ) >&5 2>/dev/null
17520 lt_status=$?
17521 case x$lt_status in
17522 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17523 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17524 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17525 esac
17526 else :
17527 # compilation failed
17528 lt_cv_dlopen_self=no
17529 fi
17530fi
17531rm -fr conftest*
17532
17533
17534fi
17535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17536$as_echo "$lt_cv_dlopen_self" >&6; }
17537
17538 if test "x$lt_cv_dlopen_self" = xyes; then
17539 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17541$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017542if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017543 $as_echo_n "(cached) " >&6
17544else
17545 if test "$cross_compiling" = yes; then :
17546 lt_cv_dlopen_self_static=cross
17547else
17548 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17549 lt_status=$lt_dlunknown
17550 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017551#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017552#include "confdefs.h"
17553
17554#if HAVE_DLFCN_H
17555#include <dlfcn.h>
17556#endif
17557
17558#include <stdio.h>
17559
17560#ifdef RTLD_GLOBAL
17561# define LT_DLGLOBAL RTLD_GLOBAL
17562#else
17563# ifdef DL_GLOBAL
17564# define LT_DLGLOBAL DL_GLOBAL
17565# else
17566# define LT_DLGLOBAL 0
17567# endif
17568#endif
17569
17570/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17571 find out it does not work in some platform. */
17572#ifndef LT_DLLAZY_OR_NOW
17573# ifdef RTLD_LAZY
17574# define LT_DLLAZY_OR_NOW RTLD_LAZY
17575# else
17576# ifdef DL_LAZY
17577# define LT_DLLAZY_OR_NOW DL_LAZY
17578# else
17579# ifdef RTLD_NOW
17580# define LT_DLLAZY_OR_NOW RTLD_NOW
17581# else
17582# ifdef DL_NOW
17583# define LT_DLLAZY_OR_NOW DL_NOW
17584# else
17585# define LT_DLLAZY_OR_NOW 0
17586# endif
17587# endif
17588# endif
17589# endif
17590#endif
17591
cristy0c60a692010-11-04 01:09:47 +000017592/* When -fvisbility=hidden is used, assume the code has been annotated
17593 correspondingly for the symbols needed. */
17594#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017595int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017596#endif
17597
cristyda16f162011-02-19 23:52:17 +000017598int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017599int main ()
17600{
17601 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17602 int status = $lt_dlunknown;
17603
17604 if (self)
17605 {
17606 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017607 else
17608 {
17609 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17610 else puts (dlerror ());
17611 }
cristy73bd4a52010-10-05 11:24:23 +000017612 /* dlclose (self); */
17613 }
17614 else
17615 puts (dlerror ());
17616
17617 return status;
17618}
17619_LT_EOF
17620 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17621 (eval $ac_link) 2>&5
17622 ac_status=$?
17623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17624 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17625 (./conftest; exit; ) >&5 2>/dev/null
17626 lt_status=$?
17627 case x$lt_status in
17628 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17629 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17630 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17631 esac
17632 else :
17633 # compilation failed
17634 lt_cv_dlopen_self_static=no
17635 fi
17636fi
17637rm -fr conftest*
17638
17639
17640fi
17641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17642$as_echo "$lt_cv_dlopen_self_static" >&6; }
17643 fi
17644
17645 CPPFLAGS="$save_CPPFLAGS"
17646 LDFLAGS="$save_LDFLAGS"
17647 LIBS="$save_LIBS"
17648 ;;
17649 esac
17650
17651 case $lt_cv_dlopen_self in
17652 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17653 *) enable_dlopen_self=unknown ;;
17654 esac
17655
17656 case $lt_cv_dlopen_self_static in
17657 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17658 *) enable_dlopen_self_static=unknown ;;
17659 esac
17660fi
17661
17662
17663
17664
17665
17666
17667
17668
17669
17670
17671
17672
17673
17674
17675
17676
17677
17678striplib=
17679old_striplib=
17680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17681$as_echo_n "checking whether stripping libraries is possible... " >&6; }
17682if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17683 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17684 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17686$as_echo "yes" >&6; }
17687else
17688# FIXME - insert some real tests, host_os isn't really good enough
17689 case $host_os in
17690 darwin*)
17691 if test -n "$STRIP" ; then
17692 striplib="$STRIP -x"
17693 old_striplib="$STRIP -S"
17694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17695$as_echo "yes" >&6; }
17696 else
17697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17698$as_echo "no" >&6; }
17699 fi
17700 ;;
17701 *)
17702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17703$as_echo "no" >&6; }
17704 ;;
17705 esac
17706fi
17707
17708
17709
17710
17711
17712
17713
17714
17715
17716
17717
17718
17719 # Report which library types will actually be built
17720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17721$as_echo_n "checking if libtool supports shared libraries... " >&6; }
17722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17723$as_echo "$can_build_shared" >&6; }
17724
17725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17726$as_echo_n "checking whether to build shared libraries... " >&6; }
17727 test "$can_build_shared" = "no" && enable_shared=no
17728
17729 # On AIX, shared libraries and static libraries use the same namespace, and
17730 # are all built from PIC.
17731 case $host_os in
17732 aix3*)
17733 test "$enable_shared" = yes && enable_static=no
17734 if test -n "$RANLIB"; then
17735 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17736 postinstall_cmds='$RANLIB $lib'
17737 fi
17738 ;;
17739
17740 aix[4-9]*)
17741 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17742 test "$enable_shared" = yes && enable_static=no
17743 fi
17744 ;;
17745 esac
17746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17747$as_echo "$enable_shared" >&6; }
17748
17749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17750$as_echo_n "checking whether to build static libraries... " >&6; }
17751 # Make sure either enable_shared or enable_static is yes.
17752 test "$enable_shared" = yes || enable_static=yes
17753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17754$as_echo "$enable_static" >&6; }
17755
17756
17757
17758
17759fi
17760ac_ext=c
17761ac_cpp='$CPP $CPPFLAGS'
17762ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17763ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17764ac_compiler_gnu=$ac_cv_c_compiler_gnu
17765
17766CC="$lt_save_CC"
17767
cristy0c60a692010-11-04 01:09:47 +000017768 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17769 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17770 (test "X$CXX" != "Xg++"))) ; then
17771 ac_ext=cpp
17772ac_cpp='$CXXCPP $CPPFLAGS'
17773ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17774ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17775ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17777$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17778if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000017779 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000017780 $as_echo_n "(cached) " >&6
17781else
17782 # Double quotes because CXXCPP needs to be expanded
17783 for CXXCPP in "$CXX -E" "/lib/cpp"
17784 do
17785 ac_preproc_ok=false
17786for ac_cxx_preproc_warn_flag in '' yes
17787do
17788 # Use a header file that comes with gcc, so configuring glibc
17789 # with a fresh cross-compiler works.
17790 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17791 # <limits.h> exists even on freestanding compilers.
17792 # On the NeXT, cc -E runs the code through the compiler's parser,
17793 # not just through cpp. "Syntax error" is here to catch this case.
17794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17795/* end confdefs.h. */
17796#ifdef __STDC__
17797# include <limits.h>
17798#else
17799# include <assert.h>
17800#endif
17801 Syntax error
17802_ACEOF
17803if ac_fn_cxx_try_cpp "$LINENO"; then :
17804
17805else
17806 # Broken: fails on valid input.
17807continue
17808fi
cristyda16f162011-02-19 23:52:17 +000017809rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017810
17811 # OK, works on sane cases. Now check whether nonexistent headers
17812 # can be detected and how.
17813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17814/* end confdefs.h. */
17815#include <ac_nonexistent.h>
17816_ACEOF
17817if ac_fn_cxx_try_cpp "$LINENO"; then :
17818 # Broken: success on invalid input.
17819continue
17820else
17821 # Passes both tests.
17822ac_preproc_ok=:
17823break
17824fi
cristyda16f162011-02-19 23:52:17 +000017825rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017826
17827done
17828# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017829rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017830if $ac_preproc_ok; then :
17831 break
17832fi
17833
17834 done
17835 ac_cv_prog_CXXCPP=$CXXCPP
17836
17837fi
17838 CXXCPP=$ac_cv_prog_CXXCPP
17839else
17840 ac_cv_prog_CXXCPP=$CXXCPP
17841fi
17842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17843$as_echo "$CXXCPP" >&6; }
17844ac_preproc_ok=false
17845for ac_cxx_preproc_warn_flag in '' yes
17846do
17847 # Use a header file that comes with gcc, so configuring glibc
17848 # with a fresh cross-compiler works.
17849 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17850 # <limits.h> exists even on freestanding compilers.
17851 # On the NeXT, cc -E runs the code through the compiler's parser,
17852 # not just through cpp. "Syntax error" is here to catch this case.
17853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17854/* end confdefs.h. */
17855#ifdef __STDC__
17856# include <limits.h>
17857#else
17858# include <assert.h>
17859#endif
17860 Syntax error
17861_ACEOF
17862if ac_fn_cxx_try_cpp "$LINENO"; then :
17863
17864else
17865 # Broken: fails on valid input.
17866continue
17867fi
cristyda16f162011-02-19 23:52:17 +000017868rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017869
17870 # OK, works on sane cases. Now check whether nonexistent headers
17871 # can be detected and how.
17872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17873/* end confdefs.h. */
17874#include <ac_nonexistent.h>
17875_ACEOF
17876if ac_fn_cxx_try_cpp "$LINENO"; then :
17877 # Broken: success on invalid input.
17878continue
17879else
17880 # Passes both tests.
17881ac_preproc_ok=:
17882break
17883fi
cristyda16f162011-02-19 23:52:17 +000017884rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017885
17886done
17887# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017888rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017889if $ac_preproc_ok; then :
17890
17891else
17892 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17893$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17894as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
17895See \`config.log' for more details" "$LINENO" 5; }
17896fi
17897
17898ac_ext=c
17899ac_cpp='$CPP $CPPFLAGS'
17900ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17901ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17902ac_compiler_gnu=$ac_cv_c_compiler_gnu
17903
17904else
17905 _lt_caught_CXX_error=yes
17906fi
cristy73bd4a52010-10-05 11:24:23 +000017907
17908ac_ext=cpp
17909ac_cpp='$CXXCPP $CPPFLAGS'
17910ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17911ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17912ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17913
17914archive_cmds_need_lc_CXX=no
17915allow_undefined_flag_CXX=
17916always_export_symbols_CXX=no
17917archive_expsym_cmds_CXX=
17918compiler_needs_object_CXX=no
17919export_dynamic_flag_spec_CXX=
17920hardcode_direct_CXX=no
17921hardcode_direct_absolute_CXX=no
17922hardcode_libdir_flag_spec_CXX=
cristy73bd4a52010-10-05 11:24:23 +000017923hardcode_libdir_separator_CXX=
17924hardcode_minus_L_CXX=no
17925hardcode_shlibpath_var_CXX=unsupported
17926hardcode_automatic_CXX=no
17927inherit_rpath_CXX=no
17928module_cmds_CXX=
17929module_expsym_cmds_CXX=
17930link_all_deplibs_CXX=unknown
17931old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000017932reload_flag_CXX=$reload_flag
17933reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000017934no_undefined_flag_CXX=
17935whole_archive_flag_spec_CXX=
17936enable_shared_with_static_runtimes_CXX=no
17937
17938# Source file extension for C++ test sources.
17939ac_ext=cpp
17940
17941# Object file extension for compiled C++ test sources.
17942objext=o
17943objext_CXX=$objext
17944
17945# No sense in running all these tests if we already determined that
17946# the CXX compiler isn't working. Some variables (like enable_shared)
17947# are currently assumed to apply to all compilers on this platform,
17948# and will be corrupted by setting them based on a non-working compiler.
17949if test "$_lt_caught_CXX_error" != yes; then
17950 # Code to be used in simple compile tests
17951 lt_simple_compile_test_code="int some_variable = 0;"
17952
17953 # Code to be used in simple link tests
17954 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17955
17956 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17957
17958
17959
17960
17961
17962
17963# If no C compiler was specified, use CC.
17964LTCC=${LTCC-"$CC"}
17965
17966# If no C compiler flags were specified, use CFLAGS.
17967LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17968
17969# Allow CC to be a program name with arguments.
17970compiler=$CC
17971
17972
17973 # save warnings/boilerplate of simple test code
17974 ac_outfile=conftest.$ac_objext
17975echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17976eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17977_lt_compiler_boilerplate=`cat conftest.err`
17978$RM conftest*
17979
17980 ac_outfile=conftest.$ac_objext
17981echo "$lt_simple_link_test_code" >conftest.$ac_ext
17982eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17983_lt_linker_boilerplate=`cat conftest.err`
17984$RM -r conftest*
17985
17986
17987 # Allow CC to be a program name with arguments.
17988 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000017989 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017990 lt_save_LD=$LD
17991 lt_save_GCC=$GCC
17992 GCC=$GXX
17993 lt_save_with_gnu_ld=$with_gnu_ld
17994 lt_save_path_LD=$lt_cv_path_LD
17995 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17996 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17997 else
17998 $as_unset lt_cv_prog_gnu_ld
17999 fi
18000 if test -n "${lt_cv_path_LDCXX+set}"; then
18001 lt_cv_path_LD=$lt_cv_path_LDCXX
18002 else
18003 $as_unset lt_cv_path_LD
18004 fi
18005 test -z "${LDCXX+set}" || LD=$LDCXX
18006 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000018007 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018008 compiler=$CC
18009 compiler_CXX=$CC
18010 for cc_temp in $compiler""; do
18011 case $cc_temp in
18012 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18013 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18014 \-*) ;;
18015 *) break;;
18016 esac
18017done
cristy0c60a692010-11-04 01:09:47 +000018018cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000018019
18020
18021 if test -n "$compiler"; then
18022 # We don't want -fno-exception when compiling C++ code, so set the
18023 # no_builtin_flag separately
18024 if test "$GXX" = yes; then
18025 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18026 else
18027 lt_prog_compiler_no_builtin_flag_CXX=
18028 fi
18029
18030 if test "$GXX" = yes; then
18031 # Set up default GNU C++ configuration
18032
18033
18034
18035# Check whether --with-gnu-ld was given.
18036if test "${with_gnu_ld+set}" = set; then :
18037 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18038else
18039 with_gnu_ld=no
18040fi
18041
18042ac_prog=ld
18043if test "$GCC" = yes; then
18044 # Check if gcc -print-prog-name=ld gives a path.
18045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18046$as_echo_n "checking for ld used by $CC... " >&6; }
18047 case $host in
18048 *-*-mingw*)
18049 # gcc leaves a trailing carriage return which upsets mingw
18050 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18051 *)
18052 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18053 esac
18054 case $ac_prog in
18055 # Accept absolute paths.
18056 [\\/]* | ?:[\\/]*)
18057 re_direlt='/[^/][^/]*/\.\./'
18058 # Canonicalize the pathname of ld
18059 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18060 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18061 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18062 done
18063 test -z "$LD" && LD="$ac_prog"
18064 ;;
18065 "")
18066 # If it fails, then pretend we aren't using GCC.
18067 ac_prog=ld
18068 ;;
18069 *)
18070 # If it is relative, then search for the first ld in PATH.
18071 with_gnu_ld=unknown
18072 ;;
18073 esac
18074elif test "$with_gnu_ld" = yes; then
18075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18076$as_echo_n "checking for GNU ld... " >&6; }
18077else
18078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18079$as_echo_n "checking for non-GNU ld... " >&6; }
18080fi
cristyda16f162011-02-19 23:52:17 +000018081if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018082 $as_echo_n "(cached) " >&6
18083else
18084 if test -z "$LD"; then
18085 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18086 for ac_dir in $PATH; do
18087 IFS="$lt_save_ifs"
18088 test -z "$ac_dir" && ac_dir=.
18089 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18090 lt_cv_path_LD="$ac_dir/$ac_prog"
18091 # Check to see if the program is GNU ld. I'd rather use --version,
18092 # but apparently some variants of GNU ld only accept -v.
18093 # Break only if it was the GNU/non-GNU ld that we prefer.
18094 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18095 *GNU* | *'with BFD'*)
18096 test "$with_gnu_ld" != no && break
18097 ;;
18098 *)
18099 test "$with_gnu_ld" != yes && break
18100 ;;
18101 esac
18102 fi
18103 done
18104 IFS="$lt_save_ifs"
18105else
18106 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18107fi
18108fi
18109
18110LD="$lt_cv_path_LD"
18111if test -n "$LD"; then
18112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18113$as_echo "$LD" >&6; }
18114else
18115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18116$as_echo "no" >&6; }
18117fi
cristy98dddb52010-11-04 00:30:15 +000018118test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000018119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18120$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018121if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018122 $as_echo_n "(cached) " >&6
18123else
18124 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18125case `$LD -v 2>&1 </dev/null` in
18126*GNU* | *'with BFD'*)
18127 lt_cv_prog_gnu_ld=yes
18128 ;;
18129*)
18130 lt_cv_prog_gnu_ld=no
18131 ;;
18132esac
18133fi
18134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18135$as_echo "$lt_cv_prog_gnu_ld" >&6; }
18136with_gnu_ld=$lt_cv_prog_gnu_ld
18137
18138
18139
18140
18141
18142
18143
18144 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18145 # archiving commands below assume that GNU ld is being used.
18146 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000018147 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18148 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 +000018149
18150 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18151 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18152
18153 # If archive_cmds runs LD, not CC, wlarc should be empty
18154 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18155 # investigate it a little bit more. (MM)
18156 wlarc='${wl}'
18157
18158 # ancient GNU ld didn't support --whole-archive et. al.
18159 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18160 $GREP 'no-whole-archive' > /dev/null; then
18161 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18162 else
18163 whole_archive_flag_spec_CXX=
18164 fi
18165 else
18166 with_gnu_ld=no
18167 wlarc=
18168
18169 # A generic and very simple default shared library creation
18170 # command for GNU C++ for the case where it uses the native
18171 # linker, instead of GNU ld. If possible, this setting should
18172 # overridden to take advantage of the native linker features on
18173 # the platform it is being used on.
18174 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18175 fi
18176
18177 # Commands to make compiler produce verbose output that lists
18178 # what "hidden" libraries, object files and flags are used when
18179 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018180 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018181
18182 else
18183 GXX=no
18184 with_gnu_ld=no
18185 wlarc=
18186 fi
18187
18188 # PORTME: fill in a description of your system's C++ link characteristics
18189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18190$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18191 ld_shlibs_CXX=yes
18192 case $host_os in
18193 aix3*)
18194 # FIXME: insert proper C++ library support
18195 ld_shlibs_CXX=no
18196 ;;
18197 aix[4-9]*)
18198 if test "$host_cpu" = ia64; then
18199 # On IA64, the linker does run time linking by default, so we don't
18200 # have to do anything special.
18201 aix_use_runtimelinking=no
18202 exp_sym_flag='-Bexport'
18203 no_entry_flag=""
18204 else
18205 aix_use_runtimelinking=no
18206
18207 # Test if we are trying to use run time linking or normal
18208 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18209 # need to do runtime linking.
18210 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18211 for ld_flag in $LDFLAGS; do
18212 case $ld_flag in
18213 *-brtl*)
18214 aix_use_runtimelinking=yes
18215 break
18216 ;;
18217 esac
18218 done
18219 ;;
18220 esac
18221
18222 exp_sym_flag='-bexport'
18223 no_entry_flag='-bnoentry'
18224 fi
18225
18226 # When large executables or shared objects are built, AIX ld can
18227 # have problems creating the table of contents. If linking a library
18228 # or program results in "error TOC overflow" add -mminimal-toc to
18229 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18230 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18231
18232 archive_cmds_CXX=''
18233 hardcode_direct_CXX=yes
18234 hardcode_direct_absolute_CXX=yes
18235 hardcode_libdir_separator_CXX=':'
18236 link_all_deplibs_CXX=yes
18237 file_list_spec_CXX='${wl}-f,'
18238
18239 if test "$GXX" = yes; then
18240 case $host_os in aix4.[012]|aix4.[012].*)
18241 # We only want to do this on AIX 4.2 and lower, the check
18242 # below for broken collect2 doesn't work under 4.3+
18243 collect2name=`${CC} -print-prog-name=collect2`
18244 if test -f "$collect2name" &&
18245 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18246 then
18247 # We have reworked collect2
18248 :
18249 else
18250 # We have old collect2
18251 hardcode_direct_CXX=unsupported
18252 # It fails to find uninstalled libraries when the uninstalled
18253 # path is not listed in the libpath. Setting hardcode_minus_L
18254 # to unsupported forces relinking
18255 hardcode_minus_L_CXX=yes
18256 hardcode_libdir_flag_spec_CXX='-L$libdir'
18257 hardcode_libdir_separator_CXX=
18258 fi
18259 esac
18260 shared_flag='-shared'
18261 if test "$aix_use_runtimelinking" = yes; then
18262 shared_flag="$shared_flag "'${wl}-G'
18263 fi
18264 else
18265 # not using gcc
18266 if test "$host_cpu" = ia64; then
18267 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18268 # chokes on -Wl,-G. The following line is correct:
18269 shared_flag='-G'
18270 else
18271 if test "$aix_use_runtimelinking" = yes; then
18272 shared_flag='${wl}-G'
18273 else
18274 shared_flag='${wl}-bM:SRE'
18275 fi
18276 fi
18277 fi
18278
18279 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18280 # It seems that -bexpall does not export symbols beginning with
18281 # underscore (_), so it is better to generate a list of symbols to
18282 # export.
18283 always_export_symbols_CXX=yes
18284 if test "$aix_use_runtimelinking" = yes; then
18285 # Warning - without using the other runtime loading flags (-brtl),
18286 # -berok will link without error, but may produce a broken library.
18287 allow_undefined_flag_CXX='-berok'
18288 # Determine the default libpath from the value encoded in an empty
18289 # executable.
cristyda16f162011-02-19 23:52:17 +000018290 if test "${lt_cv_aix_libpath+set}" = set; then
18291 aix_libpath=$lt_cv_aix_libpath
18292else
18293 if ${lt_cv_aix_libpath__CXX+:} false; then :
18294 $as_echo_n "(cached) " >&6
18295else
18296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018297/* end confdefs.h. */
18298
18299int
18300main ()
18301{
18302
18303 ;
18304 return 0;
18305}
18306_ACEOF
18307if ac_fn_cxx_try_link "$LINENO"; then :
18308
cristyda16f162011-02-19 23:52:17 +000018309 lt_aix_libpath_sed='
18310 /Import File Strings/,/^$/ {
18311 /^0/ {
18312 s/^0 *\([^ ]*\) *$/\1/
18313 p
18314 }
18315 }'
18316 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18317 # Check for a 64-bit object if we didn't find anything.
18318 if test -z "$lt_cv_aix_libpath__CXX"; then
18319 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18320 fi
cristy73bd4a52010-10-05 11:24:23 +000018321fi
18322rm -f core conftest.err conftest.$ac_objext \
18323 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018324 if test -z "$lt_cv_aix_libpath__CXX"; then
18325 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18326 fi
18327
18328fi
18329
18330 aix_libpath=$lt_cv_aix_libpath__CXX
18331fi
cristy73bd4a52010-10-05 11:24:23 +000018332
18333 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18334
cristy0c60a692010-11-04 01:09:47 +000018335 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 +000018336 else
18337 if test "$host_cpu" = ia64; then
18338 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18339 allow_undefined_flag_CXX="-z nodefs"
18340 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"
18341 else
18342 # Determine the default libpath from the value encoded in an
18343 # empty executable.
cristyda16f162011-02-19 23:52:17 +000018344 if test "${lt_cv_aix_libpath+set}" = set; then
18345 aix_libpath=$lt_cv_aix_libpath
18346else
18347 if ${lt_cv_aix_libpath__CXX+:} false; then :
18348 $as_echo_n "(cached) " >&6
18349else
18350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018351/* end confdefs.h. */
18352
18353int
18354main ()
18355{
18356
18357 ;
18358 return 0;
18359}
18360_ACEOF
18361if ac_fn_cxx_try_link "$LINENO"; then :
18362
cristyda16f162011-02-19 23:52:17 +000018363 lt_aix_libpath_sed='
18364 /Import File Strings/,/^$/ {
18365 /^0/ {
18366 s/^0 *\([^ ]*\) *$/\1/
18367 p
18368 }
18369 }'
18370 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18371 # Check for a 64-bit object if we didn't find anything.
18372 if test -z "$lt_cv_aix_libpath__CXX"; then
18373 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18374 fi
cristy73bd4a52010-10-05 11:24:23 +000018375fi
18376rm -f core conftest.err conftest.$ac_objext \
18377 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018378 if test -z "$lt_cv_aix_libpath__CXX"; then
18379 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18380 fi
18381
18382fi
18383
18384 aix_libpath=$lt_cv_aix_libpath__CXX
18385fi
cristy73bd4a52010-10-05 11:24:23 +000018386
18387 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18388 # Warning - without using the other run time loading flags,
18389 # -berok will link without error, but may produce a broken library.
18390 no_undefined_flag_CXX=' ${wl}-bernotok'
18391 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000018392 if test "$with_gnu_ld" = yes; then
18393 # We only use this code for GNU lds that support --whole-archive.
18394 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18395 else
18396 # Exported symbols can be pulled into shared objects from archives
18397 whole_archive_flag_spec_CXX='$convenience'
18398 fi
cristy73bd4a52010-10-05 11:24:23 +000018399 archive_cmds_need_lc_CXX=yes
18400 # This is similar to how AIX traditionally builds its shared
18401 # libraries.
18402 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'
18403 fi
18404 fi
18405 ;;
18406
18407 beos*)
18408 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18409 allow_undefined_flag_CXX=unsupported
18410 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18411 # support --undefined. This deserves some investigation. FIXME
18412 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18413 else
18414 ld_shlibs_CXX=no
18415 fi
18416 ;;
18417
18418 chorus*)
18419 case $cc_basename in
18420 *)
18421 # FIXME: insert proper C++ library support
18422 ld_shlibs_CXX=no
18423 ;;
18424 esac
18425 ;;
18426
18427 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000018428 case $GXX,$cc_basename in
18429 ,cl* | no,cl*)
18430 # Native MSVC
18431 # hardcode_libdir_flag_spec is actually meaningless, as there is
18432 # no search path for DLLs.
18433 hardcode_libdir_flag_spec_CXX=' '
18434 allow_undefined_flag_CXX=unsupported
18435 always_export_symbols_CXX=yes
18436 file_list_spec_CXX='@'
18437 # Tell ltmain to make .lib files, not .a files.
18438 libext=lib
18439 # Tell ltmain to make .dll files, not .so files.
18440 shrext_cmds=".dll"
18441 # FIXME: Setting linknames here is a bad hack.
18442 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
18443 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18444 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
18445 else
18446 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
18447 fi~
18448 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
18449 linknames='
18450 # The linker will not automatically build a static lib if we build a DLL.
18451 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
18452 enable_shared_with_static_runtimes_CXX=yes
18453 # Don't use ranlib
18454 old_postinstall_cmds_CXX='chmod 644 $oldlib'
18455 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
18456 lt_tool_outputfile="@TOOL_OUTPUT@"~
18457 case $lt_outputfile in
18458 *.exe|*.EXE) ;;
18459 *)
18460 lt_outputfile="$lt_outputfile.exe"
18461 lt_tool_outputfile="$lt_tool_outputfile.exe"
18462 ;;
18463 esac~
18464 func_to_tool_file "$lt_outputfile"~
18465 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
18466 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
18467 $RM "$lt_outputfile.manifest";
18468 fi'
18469 ;;
18470 *)
18471 # g++
18472 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18473 # as there is no search path for DLLs.
18474 hardcode_libdir_flag_spec_CXX='-L$libdir'
18475 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18476 allow_undefined_flag_CXX=unsupported
18477 always_export_symbols_CXX=no
18478 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000018479
cristyda16f162011-02-19 23:52:17 +000018480 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18481 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'
18482 # If the export-symbols file already is a .def file (1st line
18483 # is EXPORTS), use it as is; otherwise, prepend...
18484 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18485 cp $export_symbols $output_objdir/$soname.def;
18486 else
18487 echo EXPORTS > $output_objdir/$soname.def;
18488 cat $export_symbols >> $output_objdir/$soname.def;
18489 fi~
18490 $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'
18491 else
18492 ld_shlibs_CXX=no
18493 fi
18494 ;;
18495 esac
18496 ;;
cristy73bd4a52010-10-05 11:24:23 +000018497 darwin* | rhapsody*)
18498
18499
18500 archive_cmds_need_lc_CXX=no
18501 hardcode_direct_CXX=no
18502 hardcode_automatic_CXX=yes
18503 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000018504 if test "$lt_cv_ld_force_load" = "yes"; then
18505 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 +000018506
cristy0c60a692010-11-04 01:09:47 +000018507 else
18508 whole_archive_flag_spec_CXX=''
18509 fi
cristy73bd4a52010-10-05 11:24:23 +000018510 link_all_deplibs_CXX=yes
18511 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18512 case $cc_basename in
18513 ifort*) _lt_dar_can_shared=yes ;;
18514 *) _lt_dar_can_shared=$GCC ;;
18515 esac
18516 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000018517 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018518 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}"
18519 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18520 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}"
18521 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}"
18522 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18523 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}"
18524 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}"
18525 fi
18526
18527 else
18528 ld_shlibs_CXX=no
18529 fi
18530
18531 ;;
18532
18533 dgux*)
18534 case $cc_basename in
18535 ec++*)
18536 # FIXME: insert proper C++ library support
18537 ld_shlibs_CXX=no
18538 ;;
18539 ghcx*)
18540 # Green Hills C++ Compiler
18541 # FIXME: insert proper C++ library support
18542 ld_shlibs_CXX=no
18543 ;;
18544 *)
18545 # FIXME: insert proper C++ library support
18546 ld_shlibs_CXX=no
18547 ;;
18548 esac
18549 ;;
18550
cristy99bd5232011-12-07 14:38:20 +000018551 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000018552 # C++ shared libraries reported to be fairly broken before
18553 # switch to ELF
18554 ld_shlibs_CXX=no
18555 ;;
18556
18557 freebsd-elf*)
18558 archive_cmds_need_lc_CXX=no
18559 ;;
18560
18561 freebsd* | dragonfly*)
18562 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18563 # conventions
18564 ld_shlibs_CXX=yes
18565 ;;
18566
18567 gnu*)
18568 ;;
18569
cristy0c60a692010-11-04 01:09:47 +000018570 haiku*)
18571 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18572 link_all_deplibs_CXX=yes
18573 ;;
18574
cristy73bd4a52010-10-05 11:24:23 +000018575 hpux9*)
18576 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18577 hardcode_libdir_separator_CXX=:
18578 export_dynamic_flag_spec_CXX='${wl}-E'
18579 hardcode_direct_CXX=yes
18580 hardcode_minus_L_CXX=yes # Not in the search PATH,
18581 # but as the default
18582 # location of the library.
18583
18584 case $cc_basename in
18585 CC*)
18586 # FIXME: insert proper C++ library support
18587 ld_shlibs_CXX=no
18588 ;;
18589 aCC*)
18590 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'
18591 # Commands to make compiler produce verbose output that lists
18592 # what "hidden" libraries, object files and flags are used when
18593 # linking a shared library.
18594 #
18595 # There doesn't appear to be a way to prevent this compiler from
18596 # explicitly linking system object files so we need to strip them
18597 # from the output so that they don't get included in the library
18598 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018599 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 +000018600 ;;
18601 *)
18602 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000018603 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 +000018604 else
18605 # FIXME: insert proper C++ library support
18606 ld_shlibs_CXX=no
18607 fi
18608 ;;
18609 esac
18610 ;;
18611
18612 hpux10*|hpux11*)
18613 if test $with_gnu_ld = no; then
18614 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18615 hardcode_libdir_separator_CXX=:
18616
18617 case $host_cpu in
18618 hppa*64*|ia64*)
18619 ;;
18620 *)
18621 export_dynamic_flag_spec_CXX='${wl}-E'
18622 ;;
18623 esac
18624 fi
18625 case $host_cpu in
18626 hppa*64*|ia64*)
18627 hardcode_direct_CXX=no
18628 hardcode_shlibpath_var_CXX=no
18629 ;;
18630 *)
18631 hardcode_direct_CXX=yes
18632 hardcode_direct_absolute_CXX=yes
18633 hardcode_minus_L_CXX=yes # Not in the search PATH,
18634 # but as the default
18635 # location of the library.
18636 ;;
18637 esac
18638
18639 case $cc_basename in
18640 CC*)
18641 # FIXME: insert proper C++ library support
18642 ld_shlibs_CXX=no
18643 ;;
18644 aCC*)
18645 case $host_cpu in
18646 hppa*64*)
18647 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18648 ;;
18649 ia64*)
18650 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18651 ;;
18652 *)
18653 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18654 ;;
18655 esac
18656 # Commands to make compiler produce verbose output that lists
18657 # what "hidden" libraries, object files and flags are used when
18658 # linking a shared library.
18659 #
18660 # There doesn't appear to be a way to prevent this compiler from
18661 # explicitly linking system object files so we need to strip them
18662 # from the output so that they don't get included in the library
18663 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018664 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 +000018665 ;;
18666 *)
18667 if test "$GXX" = yes; then
18668 if test $with_gnu_ld = no; then
18669 case $host_cpu in
18670 hppa*64*)
18671 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18672 ;;
18673 ia64*)
cristyda16f162011-02-19 23:52:17 +000018674 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 +000018675 ;;
18676 *)
cristyda16f162011-02-19 23:52:17 +000018677 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 +000018678 ;;
18679 esac
18680 fi
18681 else
18682 # FIXME: insert proper C++ library support
18683 ld_shlibs_CXX=no
18684 fi
18685 ;;
18686 esac
18687 ;;
18688
18689 interix[3-9]*)
18690 hardcode_direct_CXX=no
18691 hardcode_shlibpath_var_CXX=no
18692 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18693 export_dynamic_flag_spec_CXX='${wl}-E'
18694 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18695 # Instead, shared libraries are loaded at an image base (0x10000000 by
18696 # default) and relocated if they conflict, which is a slow very memory
18697 # consuming and fragmenting process. To avoid this, we pick a random,
18698 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18699 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18700 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'
18701 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'
18702 ;;
18703 irix5* | irix6*)
18704 case $cc_basename in
18705 CC*)
18706 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000018707 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 +000018708
18709 # Archives containing C++ object files must be created using
18710 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18711 # necessary to make sure instantiated templates are included
18712 # in the archive.
18713 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18714 ;;
18715 *)
18716 if test "$GXX" = yes; then
18717 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000018718 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 +000018719 else
cristyda16f162011-02-19 23:52:17 +000018720 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 +000018721 fi
18722 fi
18723 link_all_deplibs_CXX=yes
18724 ;;
18725 esac
18726 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18727 hardcode_libdir_separator_CXX=:
18728 inherit_rpath_CXX=yes
18729 ;;
18730
cristy0c60a692010-11-04 01:09:47 +000018731 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000018732 case $cc_basename in
18733 KCC*)
18734 # Kuck and Associates, Inc. (KAI) C++ Compiler
18735
18736 # KCC will only create a shared library if the output file
18737 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18738 # to its proper name (with version) after linking.
18739 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'
18740 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'
18741 # Commands to make compiler produce verbose output that lists
18742 # what "hidden" libraries, object files and flags are used when
18743 # linking a shared library.
18744 #
18745 # There doesn't appear to be a way to prevent this compiler from
18746 # explicitly linking system object files so we need to strip them
18747 # from the output so that they don't get included in the library
18748 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018749 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 +000018750
18751 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18752 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18753
18754 # Archives containing C++ object files must be created using
18755 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18756 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18757 ;;
18758 icpc* | ecpc* )
18759 # Intel C++
18760 with_gnu_ld=yes
18761 # version 8.0 and above of icpc choke on multiply defined symbols
18762 # if we add $predep_objects and $postdep_objects, however 7.1 and
18763 # earlier do not add the objects themselves.
18764 case `$CC -V 2>&1` in
18765 *"Version 7."*)
18766 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18767 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'
18768 ;;
18769 *) # Version 8.0 or newer
18770 tmp_idyn=
18771 case $host_cpu in
18772 ia64*) tmp_idyn=' -i_dynamic';;
18773 esac
18774 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18775 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'
18776 ;;
18777 esac
18778 archive_cmds_need_lc_CXX=no
18779 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18780 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18781 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18782 ;;
18783 pgCC* | pgcpp*)
18784 # Portland Group C++ compiler
18785 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000018786 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000018787 prelink_cmds_CXX='tpldir=Template.dir~
18788 rm -rf $tpldir~
18789 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018790 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000018791 old_archive_cmds_CXX='tpldir=Template.dir~
18792 rm -rf $tpldir~
18793 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018794 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000018795 $RANLIB $oldlib'
18796 archive_cmds_CXX='tpldir=Template.dir~
18797 rm -rf $tpldir~
18798 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018799 $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 +000018800 archive_expsym_cmds_CXX='tpldir=Template.dir~
18801 rm -rf $tpldir~
18802 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018803 $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 +000018804 ;;
cristy0c60a692010-11-04 01:09:47 +000018805 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000018806 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18807 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'
18808 ;;
18809 esac
18810
18811 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18812 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000018813 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 +000018814 ;;
18815 cxx*)
18816 # Compaq C++
18817 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18818 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'
18819
18820 runpath_var=LD_RUN_PATH
18821 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18822 hardcode_libdir_separator_CXX=:
18823
18824 # Commands to make compiler produce verbose output that lists
18825 # what "hidden" libraries, object files and flags are used when
18826 # linking a shared library.
18827 #
18828 # There doesn't appear to be a way to prevent this compiler from
18829 # explicitly linking system object files so we need to strip them
18830 # from the output so that they don't get included in the library
18831 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018832 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 +000018833 ;;
cristy0c60a692010-11-04 01:09:47 +000018834 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000018835 # IBM XL 8.0 on PPC, with GNU ld
18836 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18837 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18838 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18839 if test "x$supports_anon_versioning" = xyes; then
18840 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18841 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18842 echo "local: *; };" >> $output_objdir/$libname.ver~
18843 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18844 fi
18845 ;;
18846 *)
18847 case `$CC -V 2>&1 | sed 5q` in
18848 *Sun\ C*)
18849 # Sun C++ 5.9
18850 no_undefined_flag_CXX=' -zdefs'
18851 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18852 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'
18853 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000018854 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 +000018855 compiler_needs_object_CXX=yes
18856
18857 # Not sure whether something based on
18858 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18859 # would be better.
cristy0c60a692010-11-04 01:09:47 +000018860 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018861
18862 # Archives containing C++ object files must be created using
18863 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18864 # necessary to make sure instantiated templates are included
18865 # in the archive.
18866 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18867 ;;
18868 esac
18869 ;;
18870 esac
18871 ;;
18872
18873 lynxos*)
18874 # FIXME: insert proper C++ library support
18875 ld_shlibs_CXX=no
18876 ;;
18877
18878 m88k*)
18879 # FIXME: insert proper C++ library support
18880 ld_shlibs_CXX=no
18881 ;;
18882
18883 mvs*)
18884 case $cc_basename in
18885 cxx*)
18886 # FIXME: insert proper C++ library support
18887 ld_shlibs_CXX=no
18888 ;;
18889 *)
18890 # FIXME: insert proper C++ library support
18891 ld_shlibs_CXX=no
18892 ;;
18893 esac
18894 ;;
18895
18896 netbsd*)
18897 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18898 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18899 wlarc=
18900 hardcode_libdir_flag_spec_CXX='-R$libdir'
18901 hardcode_direct_CXX=yes
18902 hardcode_shlibpath_var_CXX=no
18903 fi
18904 # Workaround some broken pre-1.5 toolchains
18905 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18906 ;;
18907
18908 *nto* | *qnx*)
18909 ld_shlibs_CXX=yes
18910 ;;
18911
18912 openbsd2*)
18913 # C++ shared libraries are fairly broken
18914 ld_shlibs_CXX=no
18915 ;;
18916
18917 openbsd*)
18918 if test -f /usr/libexec/ld.so; then
18919 hardcode_direct_CXX=yes
18920 hardcode_shlibpath_var_CXX=no
18921 hardcode_direct_absolute_CXX=yes
18922 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18923 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18924 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18925 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18926 export_dynamic_flag_spec_CXX='${wl}-E'
18927 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18928 fi
cristy0c60a692010-11-04 01:09:47 +000018929 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018930 else
18931 ld_shlibs_CXX=no
18932 fi
18933 ;;
18934
18935 osf3* | osf4* | osf5*)
18936 case $cc_basename in
18937 KCC*)
18938 # Kuck and Associates, Inc. (KAI) C++ Compiler
18939
18940 # KCC will only create a shared library if the output file
18941 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18942 # to its proper name (with version) after linking.
18943 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'
18944
18945 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18946 hardcode_libdir_separator_CXX=:
18947
18948 # Archives containing C++ object files must be created using
18949 # the KAI C++ compiler.
18950 case $host in
18951 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18952 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18953 esac
18954 ;;
18955 RCC*)
18956 # Rational C++ 2.4.1
18957 # FIXME: insert proper C++ library support
18958 ld_shlibs_CXX=no
18959 ;;
18960 cxx*)
18961 case $host in
18962 osf3*)
18963 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000018964 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 +000018965 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18966 ;;
18967 *)
18968 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000018969 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 +000018970 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18971 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000018972 $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 +000018973 $RM $lib.exp'
18974 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18975 ;;
18976 esac
18977
18978 hardcode_libdir_separator_CXX=:
18979
18980 # Commands to make compiler produce verbose output that lists
18981 # what "hidden" libraries, object files and flags are used when
18982 # linking a shared library.
18983 #
18984 # There doesn't appear to be a way to prevent this compiler from
18985 # explicitly linking system object files so we need to strip them
18986 # from the output so that they don't get included in the library
18987 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018988 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 +000018989 ;;
18990 *)
18991 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18992 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18993 case $host in
18994 osf3*)
cristy0c60a692010-11-04 01:09:47 +000018995 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 +000018996 ;;
18997 *)
cristyda16f162011-02-19 23:52:17 +000018998 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 +000018999 ;;
19000 esac
19001
19002 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19003 hardcode_libdir_separator_CXX=:
19004
19005 # Commands to make compiler produce verbose output that lists
19006 # what "hidden" libraries, object files and flags are used when
19007 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019008 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019009
19010 else
19011 # FIXME: insert proper C++ library support
19012 ld_shlibs_CXX=no
19013 fi
19014 ;;
19015 esac
19016 ;;
19017
19018 psos*)
19019 # FIXME: insert proper C++ library support
19020 ld_shlibs_CXX=no
19021 ;;
19022
19023 sunos4*)
19024 case $cc_basename in
19025 CC*)
19026 # Sun C++ 4.x
19027 # FIXME: insert proper C++ library support
19028 ld_shlibs_CXX=no
19029 ;;
19030 lcc*)
19031 # Lucid
19032 # FIXME: insert proper C++ library support
19033 ld_shlibs_CXX=no
19034 ;;
19035 *)
19036 # FIXME: insert proper C++ library support
19037 ld_shlibs_CXX=no
19038 ;;
19039 esac
19040 ;;
19041
19042 solaris*)
19043 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019044 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019045 # Sun C++ 4.2, 5.x and Centerline C++
19046 archive_cmds_need_lc_CXX=yes
19047 no_undefined_flag_CXX=' -zdefs'
19048 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19049 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19050 $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'
19051
19052 hardcode_libdir_flag_spec_CXX='-R$libdir'
19053 hardcode_shlibpath_var_CXX=no
19054 case $host_os in
19055 solaris2.[0-5] | solaris2.[0-5].*) ;;
19056 *)
19057 # The compiler driver will combine and reorder linker options,
19058 # but understands `-z linker_flag'.
19059 # Supported since Solaris 2.6 (maybe 2.5.1?)
19060 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19061 ;;
19062 esac
19063 link_all_deplibs_CXX=yes
19064
cristy0c60a692010-11-04 01:09:47 +000019065 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000019066
19067 # Archives containing C++ object files must be created using
19068 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19069 # necessary to make sure instantiated templates are included
19070 # in the archive.
19071 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19072 ;;
19073 gcx*)
19074 # Green Hills C++ Compiler
19075 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19076
19077 # The C++ compiler must be used to create the archive.
19078 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19079 ;;
19080 *)
19081 # GNU C++ compiler with Solaris linker
19082 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19083 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19084 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000019085 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 +000019086 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 +000019087 $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 +000019088
19089 # Commands to make compiler produce verbose output that lists
19090 # what "hidden" libraries, object files and flags are used when
19091 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019092 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019093 else
19094 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19095 # platform.
19096 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19097 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19098 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19099
19100 # Commands to make compiler produce verbose output that lists
19101 # what "hidden" libraries, object files and flags are used when
19102 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019103 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019104 fi
19105
19106 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19107 case $host_os in
19108 solaris2.[0-5] | solaris2.[0-5].*) ;;
19109 *)
19110 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19111 ;;
19112 esac
19113 fi
19114 ;;
19115 esac
19116 ;;
19117
19118 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19119 no_undefined_flag_CXX='${wl}-z,text'
19120 archive_cmds_need_lc_CXX=no
19121 hardcode_shlibpath_var_CXX=no
19122 runpath_var='LD_RUN_PATH'
19123
19124 case $cc_basename in
19125 CC*)
19126 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19127 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19128 ;;
19129 *)
19130 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19131 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19132 ;;
19133 esac
19134 ;;
19135
19136 sysv5* | sco3.2v5* | sco5v6*)
19137 # Note: We can NOT use -z defs as we might desire, because we do not
19138 # link with -lc, and that would cause any symbols used from libc to
19139 # always be unresolved, which means just about no library would
19140 # ever link correctly. If we're not using GNU ld we use -z text
19141 # though, which does catch some bad symbols but isn't as heavy-handed
19142 # as -z defs.
19143 no_undefined_flag_CXX='${wl}-z,text'
19144 allow_undefined_flag_CXX='${wl}-z,nodefs'
19145 archive_cmds_need_lc_CXX=no
19146 hardcode_shlibpath_var_CXX=no
19147 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19148 hardcode_libdir_separator_CXX=':'
19149 link_all_deplibs_CXX=yes
19150 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19151 runpath_var='LD_RUN_PATH'
19152
19153 case $cc_basename in
19154 CC*)
19155 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19156 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 +000019157 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19158 '"$old_archive_cmds_CXX"
19159 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19160 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000019161 ;;
19162 *)
19163 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19164 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19165 ;;
19166 esac
19167 ;;
19168
19169 tandem*)
19170 case $cc_basename in
19171 NCC*)
19172 # NonStop-UX NCC 3.20
19173 # FIXME: insert proper C++ library support
19174 ld_shlibs_CXX=no
19175 ;;
19176 *)
19177 # FIXME: insert proper C++ library support
19178 ld_shlibs_CXX=no
19179 ;;
19180 esac
19181 ;;
19182
19183 vxworks*)
19184 # FIXME: insert proper C++ library support
19185 ld_shlibs_CXX=no
19186 ;;
19187
19188 *)
19189 # FIXME: insert proper C++ library support
19190 ld_shlibs_CXX=no
19191 ;;
19192 esac
19193
19194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19195$as_echo "$ld_shlibs_CXX" >&6; }
19196 test "$ld_shlibs_CXX" = no && can_build_shared=no
19197
19198 GCC_CXX="$GXX"
19199 LD_CXX="$LD"
19200
19201 ## CAVEAT EMPTOR:
19202 ## There is no encapsulation within the following macros, do not change
19203 ## the running order or otherwise move them around unless you know exactly
19204 ## what you are doing...
19205 # Dependencies to place before and after the object being linked:
19206predep_objects_CXX=
19207postdep_objects_CXX=
19208predeps_CXX=
19209postdeps_CXX=
19210compiler_lib_search_path_CXX=
19211
19212cat > conftest.$ac_ext <<_LT_EOF
19213class Foo
19214{
19215public:
19216 Foo (void) { a = 0; }
19217private:
19218 int a;
19219};
19220_LT_EOF
19221
cristyda16f162011-02-19 23:52:17 +000019222
19223_lt_libdeps_save_CFLAGS=$CFLAGS
19224case "$CC $CFLAGS " in #(
19225*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
19226*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
cristy99bd5232011-12-07 14:38:20 +000019227*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
cristyda16f162011-02-19 23:52:17 +000019228esac
19229
cristy73bd4a52010-10-05 11:24:23 +000019230if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19231 (eval $ac_compile) 2>&5
19232 ac_status=$?
19233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19234 test $ac_status = 0; }; then
19235 # Parse the compiler output and extract the necessary
19236 # objects, libraries and library flags.
19237
19238 # Sentinel used to keep track of whether or not we are before
19239 # the conftest object file.
19240 pre_test_object_deps_done=no
19241
19242 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000019243 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000019244
19245 -L* | -R* | -l*)
19246 # Some compilers place space between "-{L,R}" and the path.
19247 # Remove the space.
19248 if test $p = "-L" ||
19249 test $p = "-R"; then
19250 prev=$p
19251 continue
cristy73bd4a52010-10-05 11:24:23 +000019252 fi
19253
cristyda16f162011-02-19 23:52:17 +000019254 # Expand the sysroot to ease extracting the directories later.
19255 if test -z "$prev"; then
19256 case $p in
19257 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
19258 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
19259 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
19260 esac
19261 fi
19262 case $p in
19263 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
19264 esac
cristy73bd4a52010-10-05 11:24:23 +000019265 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000019266 case ${prev} in
19267 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000019268 # Internal compiler library paths should come after those
19269 # provided the user. The postdeps already come after the
19270 # user supplied libs so there is no need to process them.
19271 if test -z "$compiler_lib_search_path_CXX"; then
19272 compiler_lib_search_path_CXX="${prev}${p}"
19273 else
19274 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19275 fi
19276 ;;
19277 # The "-l" case would never come before the object being
19278 # linked, so don't bother handling this case.
19279 esac
19280 else
19281 if test -z "$postdeps_CXX"; then
19282 postdeps_CXX="${prev}${p}"
19283 else
19284 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19285 fi
19286 fi
cristyda16f162011-02-19 23:52:17 +000019287 prev=
cristy73bd4a52010-10-05 11:24:23 +000019288 ;;
19289
cristyda16f162011-02-19 23:52:17 +000019290 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000019291 *.$objext)
19292 # This assumes that the test object file only shows up
19293 # once in the compiler output.
19294 if test "$p" = "conftest.$objext"; then
19295 pre_test_object_deps_done=yes
19296 continue
19297 fi
19298
19299 if test "$pre_test_object_deps_done" = no; then
19300 if test -z "$predep_objects_CXX"; then
19301 predep_objects_CXX="$p"
19302 else
19303 predep_objects_CXX="$predep_objects_CXX $p"
19304 fi
19305 else
19306 if test -z "$postdep_objects_CXX"; then
19307 postdep_objects_CXX="$p"
19308 else
19309 postdep_objects_CXX="$postdep_objects_CXX $p"
19310 fi
19311 fi
19312 ;;
19313
19314 *) ;; # Ignore the rest.
19315
19316 esac
19317 done
19318
19319 # Clean up.
19320 rm -f a.out a.exe
19321else
19322 echo "libtool.m4: error: problem compiling CXX test program"
19323fi
19324
19325$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000019326CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000019327
19328# PORTME: override above test on systems where it is broken
19329case $host_os in
19330interix[3-9]*)
19331 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19332 # hack all around it, let's just trust "g++" to DTRT.
19333 predep_objects_CXX=
19334 postdep_objects_CXX=
19335 postdeps_CXX=
19336 ;;
19337
19338linux*)
19339 case `$CC -V 2>&1 | sed 5q` in
19340 *Sun\ C*)
19341 # Sun C++ 5.9
19342
19343 # The more standards-conforming stlport4 library is
19344 # incompatible with the Cstd library. Avoid specifying
19345 # it if it's in CXXFLAGS. Ignore libCrun as
19346 # -library=stlport4 depends on it.
19347 case " $CXX $CXXFLAGS " in
19348 *" -library=stlport4 "*)
19349 solaris_use_stlport4=yes
19350 ;;
19351 esac
19352
19353 if test "$solaris_use_stlport4" != yes; then
19354 postdeps_CXX='-library=Cstd -library=Crun'
19355 fi
19356 ;;
19357 esac
19358 ;;
19359
19360solaris*)
19361 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019362 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019363 # The more standards-conforming stlport4 library is
19364 # incompatible with the Cstd library. Avoid specifying
19365 # it if it's in CXXFLAGS. Ignore libCrun as
19366 # -library=stlport4 depends on it.
19367 case " $CXX $CXXFLAGS " in
19368 *" -library=stlport4 "*)
19369 solaris_use_stlport4=yes
19370 ;;
19371 esac
19372
19373 # Adding this requires a known-good setup of shared libraries for
19374 # Sun compiler versions before 5.6, else PIC objects from an old
19375 # archive will be linked into the output, leading to subtle bugs.
19376 if test "$solaris_use_stlport4" != yes; then
19377 postdeps_CXX='-library=Cstd -library=Crun'
19378 fi
19379 ;;
19380 esac
19381 ;;
19382esac
19383
19384
19385case " $postdeps_CXX " in
19386*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19387esac
19388 compiler_lib_search_dirs_CXX=
19389if test -n "${compiler_lib_search_path_CXX}"; then
19390 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19391fi
19392
19393
19394
19395
19396
19397
19398
19399
19400
19401
19402
19403
19404
19405
19406
19407
19408
19409
19410
19411
19412
19413
19414
19415
19416
19417
19418
19419
19420
19421
19422
19423 lt_prog_compiler_wl_CXX=
19424lt_prog_compiler_pic_CXX=
19425lt_prog_compiler_static_CXX=
19426
cristy73bd4a52010-10-05 11:24:23 +000019427
19428 # C++ specific cases for pic, static, wl, etc.
19429 if test "$GXX" = yes; then
19430 lt_prog_compiler_wl_CXX='-Wl,'
19431 lt_prog_compiler_static_CXX='-static'
19432
19433 case $host_os in
19434 aix*)
19435 # All AIX code is PIC.
19436 if test "$host_cpu" = ia64; then
19437 # AIX 5 now supports IA64 processor
19438 lt_prog_compiler_static_CXX='-Bstatic'
19439 fi
19440 ;;
19441
19442 amigaos*)
19443 case $host_cpu in
19444 powerpc)
19445 # see comment about AmigaOS4 .so support
19446 lt_prog_compiler_pic_CXX='-fPIC'
19447 ;;
19448 m68k)
19449 # FIXME: we need at least 68020 code to build shared libraries, but
19450 # adding the `-m68020' flag to GCC prevents building anything better,
19451 # like `-m68040'.
19452 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19453 ;;
19454 esac
19455 ;;
19456
19457 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19458 # PIC is the default for these OSes.
19459 ;;
19460 mingw* | cygwin* | os2* | pw32* | cegcc*)
19461 # This hack is so that the source file can tell whether it is being
19462 # built for inclusion in a dll (and should export symbols for example).
19463 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19464 # (--disable-auto-import) libraries
19465 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19466 ;;
19467 darwin* | rhapsody*)
19468 # PIC is the default on this platform
19469 # Common symbols not allowed in MH_DYLIB files
19470 lt_prog_compiler_pic_CXX='-fno-common'
19471 ;;
19472 *djgpp*)
19473 # DJGPP does not support shared libraries at all
19474 lt_prog_compiler_pic_CXX=
19475 ;;
cristy0c60a692010-11-04 01:09:47 +000019476 haiku*)
19477 # PIC is the default for Haiku.
19478 # The "-static" flag exists, but is broken.
19479 lt_prog_compiler_static_CXX=
19480 ;;
cristy73bd4a52010-10-05 11:24:23 +000019481 interix[3-9]*)
19482 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19483 # Instead, we relocate shared libraries at runtime.
19484 ;;
19485 sysv4*MP*)
19486 if test -d /usr/nec; then
19487 lt_prog_compiler_pic_CXX=-Kconform_pic
19488 fi
19489 ;;
19490 hpux*)
19491 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19492 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19493 # sets the default TLS model and affects inlining.
19494 case $host_cpu in
19495 hppa*64*)
19496 ;;
19497 *)
19498 lt_prog_compiler_pic_CXX='-fPIC'
19499 ;;
19500 esac
19501 ;;
19502 *qnx* | *nto*)
19503 # QNX uses GNU C++, but need to define -shared option too, otherwise
19504 # it will coredump.
19505 lt_prog_compiler_pic_CXX='-fPIC -shared'
19506 ;;
19507 *)
19508 lt_prog_compiler_pic_CXX='-fPIC'
19509 ;;
19510 esac
19511 else
19512 case $host_os in
19513 aix[4-9]*)
19514 # All AIX code is PIC.
19515 if test "$host_cpu" = ia64; then
19516 # AIX 5 now supports IA64 processor
19517 lt_prog_compiler_static_CXX='-Bstatic'
19518 else
19519 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19520 fi
19521 ;;
19522 chorus*)
19523 case $cc_basename in
19524 cxch68*)
19525 # Green Hills C++ Compiler
19526 # _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"
19527 ;;
19528 esac
19529 ;;
cristyda16f162011-02-19 23:52:17 +000019530 mingw* | cygwin* | os2* | pw32* | cegcc*)
19531 # This hack is so that the source file can tell whether it is being
19532 # built for inclusion in a dll (and should export symbols for example).
19533 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19534 ;;
cristy73bd4a52010-10-05 11:24:23 +000019535 dgux*)
19536 case $cc_basename in
19537 ec++*)
19538 lt_prog_compiler_pic_CXX='-KPIC'
19539 ;;
19540 ghcx*)
19541 # Green Hills C++ Compiler
19542 lt_prog_compiler_pic_CXX='-pic'
19543 ;;
19544 *)
19545 ;;
19546 esac
19547 ;;
19548 freebsd* | dragonfly*)
19549 # FreeBSD uses GNU C++
19550 ;;
19551 hpux9* | hpux10* | hpux11*)
19552 case $cc_basename in
19553 CC*)
19554 lt_prog_compiler_wl_CXX='-Wl,'
19555 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19556 if test "$host_cpu" != ia64; then
19557 lt_prog_compiler_pic_CXX='+Z'
19558 fi
19559 ;;
19560 aCC*)
19561 lt_prog_compiler_wl_CXX='-Wl,'
19562 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19563 case $host_cpu in
19564 hppa*64*|ia64*)
19565 # +Z the default
19566 ;;
19567 *)
19568 lt_prog_compiler_pic_CXX='+Z'
19569 ;;
19570 esac
19571 ;;
19572 *)
19573 ;;
19574 esac
19575 ;;
19576 interix*)
19577 # This is c89, which is MS Visual C++ (no shared libs)
19578 # Anyone wants to do a port?
19579 ;;
19580 irix5* | irix6* | nonstopux*)
19581 case $cc_basename in
19582 CC*)
19583 lt_prog_compiler_wl_CXX='-Wl,'
19584 lt_prog_compiler_static_CXX='-non_shared'
19585 # CC pic flag -KPIC is the default.
19586 ;;
19587 *)
19588 ;;
19589 esac
19590 ;;
cristy0c60a692010-11-04 01:09:47 +000019591 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019592 case $cc_basename in
19593 KCC*)
19594 # KAI C++ Compiler
19595 lt_prog_compiler_wl_CXX='--backend -Wl,'
19596 lt_prog_compiler_pic_CXX='-fPIC'
19597 ;;
19598 ecpc* )
19599 # old Intel C++ for x86_64 which still supported -KPIC.
19600 lt_prog_compiler_wl_CXX='-Wl,'
19601 lt_prog_compiler_pic_CXX='-KPIC'
19602 lt_prog_compiler_static_CXX='-static'
19603 ;;
19604 icpc* )
19605 # Intel C++, used to be incompatible with GCC.
19606 # ICC 10 doesn't accept -KPIC any more.
19607 lt_prog_compiler_wl_CXX='-Wl,'
19608 lt_prog_compiler_pic_CXX='-fPIC'
19609 lt_prog_compiler_static_CXX='-static'
19610 ;;
19611 pgCC* | pgcpp*)
19612 # Portland Group C++ compiler
19613 lt_prog_compiler_wl_CXX='-Wl,'
19614 lt_prog_compiler_pic_CXX='-fpic'
19615 lt_prog_compiler_static_CXX='-Bstatic'
19616 ;;
19617 cxx*)
19618 # Compaq C++
19619 # Make sure the PIC flag is empty. It appears that all Alpha
19620 # Linux and Compaq Tru64 Unix objects are PIC.
19621 lt_prog_compiler_pic_CXX=
19622 lt_prog_compiler_static_CXX='-non_shared'
19623 ;;
cristy0c60a692010-11-04 01:09:47 +000019624 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19625 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000019626 lt_prog_compiler_wl_CXX='-Wl,'
19627 lt_prog_compiler_pic_CXX='-qpic'
19628 lt_prog_compiler_static_CXX='-qstaticlink'
19629 ;;
19630 *)
19631 case `$CC -V 2>&1 | sed 5q` in
19632 *Sun\ C*)
19633 # Sun C++ 5.9
19634 lt_prog_compiler_pic_CXX='-KPIC'
19635 lt_prog_compiler_static_CXX='-Bstatic'
19636 lt_prog_compiler_wl_CXX='-Qoption ld '
19637 ;;
19638 esac
19639 ;;
19640 esac
19641 ;;
19642 lynxos*)
19643 ;;
19644 m88k*)
19645 ;;
19646 mvs*)
19647 case $cc_basename in
19648 cxx*)
19649 lt_prog_compiler_pic_CXX='-W c,exportall'
19650 ;;
19651 *)
19652 ;;
19653 esac
19654 ;;
19655 netbsd*)
19656 ;;
19657 *qnx* | *nto*)
19658 # QNX uses GNU C++, but need to define -shared option too, otherwise
19659 # it will coredump.
19660 lt_prog_compiler_pic_CXX='-fPIC -shared'
19661 ;;
19662 osf3* | osf4* | osf5*)
19663 case $cc_basename in
19664 KCC*)
19665 lt_prog_compiler_wl_CXX='--backend -Wl,'
19666 ;;
19667 RCC*)
19668 # Rational C++ 2.4.1
19669 lt_prog_compiler_pic_CXX='-pic'
19670 ;;
19671 cxx*)
19672 # Digital/Compaq C++
19673 lt_prog_compiler_wl_CXX='-Wl,'
19674 # Make sure the PIC flag is empty. It appears that all Alpha
19675 # Linux and Compaq Tru64 Unix objects are PIC.
19676 lt_prog_compiler_pic_CXX=
19677 lt_prog_compiler_static_CXX='-non_shared'
19678 ;;
19679 *)
19680 ;;
19681 esac
19682 ;;
19683 psos*)
19684 ;;
19685 solaris*)
19686 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019687 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019688 # Sun C++ 4.2, 5.x and Centerline C++
19689 lt_prog_compiler_pic_CXX='-KPIC'
19690 lt_prog_compiler_static_CXX='-Bstatic'
19691 lt_prog_compiler_wl_CXX='-Qoption ld '
19692 ;;
19693 gcx*)
19694 # Green Hills C++ Compiler
19695 lt_prog_compiler_pic_CXX='-PIC'
19696 ;;
19697 *)
19698 ;;
19699 esac
19700 ;;
19701 sunos4*)
19702 case $cc_basename in
19703 CC*)
19704 # Sun C++ 4.x
19705 lt_prog_compiler_pic_CXX='-pic'
19706 lt_prog_compiler_static_CXX='-Bstatic'
19707 ;;
19708 lcc*)
19709 # Lucid
19710 lt_prog_compiler_pic_CXX='-pic'
19711 ;;
19712 *)
19713 ;;
19714 esac
19715 ;;
19716 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19717 case $cc_basename in
19718 CC*)
19719 lt_prog_compiler_wl_CXX='-Wl,'
19720 lt_prog_compiler_pic_CXX='-KPIC'
19721 lt_prog_compiler_static_CXX='-Bstatic'
19722 ;;
19723 esac
19724 ;;
19725 tandem*)
19726 case $cc_basename in
19727 NCC*)
19728 # NonStop-UX NCC 3.20
19729 lt_prog_compiler_pic_CXX='-KPIC'
19730 ;;
19731 *)
19732 ;;
19733 esac
19734 ;;
19735 vxworks*)
19736 ;;
19737 *)
19738 lt_prog_compiler_can_build_shared_CXX=no
19739 ;;
19740 esac
19741 fi
19742
19743case $host_os in
19744 # For platforms which do not support PIC, -DPIC is meaningless:
19745 *djgpp*)
19746 lt_prog_compiler_pic_CXX=
19747 ;;
19748 *)
19749 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19750 ;;
19751esac
cristy73bd4a52010-10-05 11:24:23 +000019752
cristyda16f162011-02-19 23:52:17 +000019753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19754$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19755if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
19756 $as_echo_n "(cached) " >&6
19757else
19758 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
19759fi
19760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
19761$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
19762lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000019763
19764#
19765# Check to make sure the PIC flag actually works.
19766#
19767if test -n "$lt_prog_compiler_pic_CXX"; then
19768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19769$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019770if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019771 $as_echo_n "(cached) " >&6
19772else
19773 lt_cv_prog_compiler_pic_works_CXX=no
19774 ac_outfile=conftest.$ac_objext
19775 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19776 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19777 # Insert the option either (1) after the last *FLAGS variable, or
19778 # (2) before a word containing "conftest.", or (3) at the end.
19779 # Note that $ac_compile itself does not contain backslashes and begins
19780 # with a dollar sign (not a hyphen), so the echo should work correctly.
19781 # The option is referenced via a variable to avoid confusing sed.
19782 lt_compile=`echo "$ac_compile" | $SED \
19783 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19784 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19785 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019786 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019787 (eval "$lt_compile" 2>conftest.err)
19788 ac_status=$?
19789 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019791 if (exit $ac_status) && test -s "$ac_outfile"; then
19792 # The compiler can only warn and ignore the option if not recognized
19793 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000019794 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019795 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19796 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19797 lt_cv_prog_compiler_pic_works_CXX=yes
19798 fi
19799 fi
19800 $RM conftest*
19801
19802fi
19803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19804$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19805
19806if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19807 case $lt_prog_compiler_pic_CXX in
19808 "" | " "*) ;;
19809 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19810 esac
19811else
19812 lt_prog_compiler_pic_CXX=
19813 lt_prog_compiler_can_build_shared_CXX=no
19814fi
19815
19816fi
19817
19818
19819
cristyda16f162011-02-19 23:52:17 +000019820
19821
cristy73bd4a52010-10-05 11:24:23 +000019822#
19823# Check to make sure the static flag actually works.
19824#
19825wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19827$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019828if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019829 $as_echo_n "(cached) " >&6
19830else
19831 lt_cv_prog_compiler_static_works_CXX=no
19832 save_LDFLAGS="$LDFLAGS"
19833 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19834 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19835 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19836 # The linker can only warn and ignore the option if not recognized
19837 # So say no if there are warnings
19838 if test -s conftest.err; then
19839 # Append any errors to the config.log.
19840 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000019841 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019842 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19843 if diff conftest.exp conftest.er2 >/dev/null; then
19844 lt_cv_prog_compiler_static_works_CXX=yes
19845 fi
19846 else
19847 lt_cv_prog_compiler_static_works_CXX=yes
19848 fi
19849 fi
19850 $RM -r conftest*
19851 LDFLAGS="$save_LDFLAGS"
19852
19853fi
19854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19855$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19856
19857if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
19858 :
19859else
19860 lt_prog_compiler_static_CXX=
19861fi
19862
19863
19864
19865
19866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19867$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019868if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019869 $as_echo_n "(cached) " >&6
19870else
19871 lt_cv_prog_compiler_c_o_CXX=no
19872 $RM -r conftest 2>/dev/null
19873 mkdir conftest
19874 cd conftest
19875 mkdir out
19876 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19877
19878 lt_compiler_flag="-o out/conftest2.$ac_objext"
19879 # Insert the option either (1) after the last *FLAGS variable, or
19880 # (2) before a word containing "conftest.", or (3) at the end.
19881 # Note that $ac_compile itself does not contain backslashes and begins
19882 # with a dollar sign (not a hyphen), so the echo should work correctly.
19883 lt_compile=`echo "$ac_compile" | $SED \
19884 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19885 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19886 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019887 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019888 (eval "$lt_compile" 2>out/conftest.err)
19889 ac_status=$?
19890 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019892 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19893 then
19894 # The compiler can only warn and ignore the option if not recognized
19895 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000019896 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019897 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19898 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19899 lt_cv_prog_compiler_c_o_CXX=yes
19900 fi
19901 fi
19902 chmod u+w . 2>&5
19903 $RM conftest*
19904 # SGI C++ compiler will create directory out/ii_files/ for
19905 # template instantiation
19906 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19907 $RM out/* && rmdir out
19908 cd ..
19909 $RM -r conftest
19910 $RM conftest*
19911
19912fi
19913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19914$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19915
19916
19917
19918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19919$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019920if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019921 $as_echo_n "(cached) " >&6
19922else
19923 lt_cv_prog_compiler_c_o_CXX=no
19924 $RM -r conftest 2>/dev/null
19925 mkdir conftest
19926 cd conftest
19927 mkdir out
19928 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19929
19930 lt_compiler_flag="-o out/conftest2.$ac_objext"
19931 # Insert the option either (1) after the last *FLAGS variable, or
19932 # (2) before a word containing "conftest.", or (3) at the end.
19933 # Note that $ac_compile itself does not contain backslashes and begins
19934 # with a dollar sign (not a hyphen), so the echo should work correctly.
19935 lt_compile=`echo "$ac_compile" | $SED \
19936 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19937 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19938 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019939 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019940 (eval "$lt_compile" 2>out/conftest.err)
19941 ac_status=$?
19942 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019944 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19945 then
19946 # The compiler can only warn and ignore the option if not recognized
19947 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000019948 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019949 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19950 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19951 lt_cv_prog_compiler_c_o_CXX=yes
19952 fi
19953 fi
19954 chmod u+w . 2>&5
19955 $RM conftest*
19956 # SGI C++ compiler will create directory out/ii_files/ for
19957 # template instantiation
19958 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19959 $RM out/* && rmdir out
19960 cd ..
19961 $RM -r conftest
19962 $RM conftest*
19963
19964fi
19965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19966$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19967
19968
19969
19970
19971hard_links="nottested"
19972if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19973 # do not overwrite the value of need_locks provided by the user
19974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19975$as_echo_n "checking if we can lock with hard links... " >&6; }
19976 hard_links=yes
19977 $RM conftest*
19978 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19979 touch conftest.a
19980 ln conftest.a conftest.b 2>&5 || hard_links=no
19981 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19983$as_echo "$hard_links" >&6; }
19984 if test "$hard_links" = no; then
19985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19986$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19987 need_locks=warn
19988 fi
19989else
19990 need_locks=no
19991fi
19992
19993
19994
19995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19996$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19997
19998 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019999 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000020000 case $host_os in
20001 aix[4-9]*)
20002 # If we're using GNU nm, then we don't want the "-C" option.
20003 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000020004 # Also, AIX nm treats weak defined symbols like other global defined
20005 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000020006 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000020007 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 +000020008 else
20009 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'
20010 fi
20011 ;;
20012 pw32*)
20013 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000020014 ;;
cristy73bd4a52010-10-05 11:24:23 +000020015 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000020016 case $cc_basename in
cristy99bd5232011-12-07 14:38:20 +000020017 cl*)
20018 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
20019 ;;
cristyda16f162011-02-19 23:52:17 +000020020 *)
20021 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'
20022 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
20023 ;;
20024 esac
20025 ;;
cristy73bd4a52010-10-05 11:24:23 +000020026 *)
20027 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000020028 ;;
cristy73bd4a52010-10-05 11:24:23 +000020029 esac
cristy73bd4a52010-10-05 11:24:23 +000020030
20031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20032$as_echo "$ld_shlibs_CXX" >&6; }
20033test "$ld_shlibs_CXX" = no && can_build_shared=no
20034
20035with_gnu_ld_CXX=$with_gnu_ld
20036
20037
20038
20039
20040
20041
20042#
20043# Do we need to explicitly link libc?
20044#
20045case "x$archive_cmds_need_lc_CXX" in
20046x|xyes)
20047 # Assume -lc should be added
20048 archive_cmds_need_lc_CXX=yes
20049
20050 if test "$enable_shared" = yes && test "$GCC" = yes; then
20051 case $archive_cmds_CXX in
20052 *'~'*)
20053 # FIXME: we may have to deal with multi-command sequences.
20054 ;;
20055 '$CC '*)
20056 # Test whether the compiler implicitly links with -lc since on some
20057 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20058 # to ld, don't add -lc before -lgcc.
20059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20060$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020061if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000020062 $as_echo_n "(cached) " >&6
20063else
20064 $RM conftest*
20065 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000020066
cristy0c60a692010-11-04 01:09:47 +000020067 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000020068 (eval $ac_compile) 2>&5
20069 ac_status=$?
20070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20071 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000020072 soname=conftest
20073 lib=conftest
20074 libobjs=conftest.$ac_objext
20075 deplibs=
20076 wl=$lt_prog_compiler_wl_CXX
20077 pic_flag=$lt_prog_compiler_pic_CXX
20078 compiler_flags=-v
20079 linker_flags=-v
20080 verstring=
20081 output_objdir=.
20082 libname=conftest
20083 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20084 allow_undefined_flag_CXX=
20085 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 +000020086 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20087 ac_status=$?
20088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20089 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000020090 then
20091 lt_cv_archive_cmds_need_lc_CXX=no
20092 else
20093 lt_cv_archive_cmds_need_lc_CXX=yes
20094 fi
20095 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20096 else
20097 cat conftest.err 1>&5
20098 fi
20099 $RM conftest*
20100
20101fi
20102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20103$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20104 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000020105 ;;
20106 esac
20107 fi
20108 ;;
20109esac
20110
20111
20112
20113
20114
20115
20116
20117
20118
20119
20120
20121
20122
20123
20124
20125
20126
20127
20128
20129
20130
20131
20132
20133
20134
20135
20136
20137
20138
20139
20140
20141
20142
20143
20144
20145
20146
20147
20148
20149
20150
20151
20152
20153
20154
20155
20156
20157
20158
20159
20160
20161
20162
20163
20164
20165
20166
20167
20168
20169
20170
20171
cristy73bd4a52010-10-05 11:24:23 +000020172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20173$as_echo_n "checking dynamic linker characteristics... " >&6; }
20174
20175library_names_spec=
20176libname_spec='lib$name'
20177soname_spec=
20178shrext_cmds=".so"
20179postinstall_cmds=
20180postuninstall_cmds=
20181finish_cmds=
20182finish_eval=
20183shlibpath_var=
20184shlibpath_overrides_runpath=unknown
20185version_type=none
20186dynamic_linker="$host_os ld.so"
20187sys_lib_dlsearch_path_spec="/lib /usr/lib"
20188need_lib_prefix=unknown
20189hardcode_into_libs=no
20190
20191# when you set need_version to no, make sure it does not cause -set_version
20192# flags to be left without arguments
20193need_version=unknown
20194
20195case $host_os in
20196aix3*)
cristy99bd5232011-12-07 14:38:20 +000020197 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020198 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20199 shlibpath_var=LIBPATH
20200
20201 # AIX 3 has no versioning support, so we append a major version to the name.
20202 soname_spec='${libname}${release}${shared_ext}$major'
20203 ;;
20204
20205aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000020206 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020207 need_lib_prefix=no
20208 need_version=no
20209 hardcode_into_libs=yes
20210 if test "$host_cpu" = ia64; then
20211 # AIX 5 supports IA64
20212 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20213 shlibpath_var=LD_LIBRARY_PATH
20214 else
20215 # With GCC up to 2.95.x, collect2 would create an import file
20216 # for dependence libraries. The import file would start with
20217 # the line `#! .'. This would cause the generated library to
20218 # depend on `.', always an invalid library. This was fixed in
20219 # development snapshots of GCC prior to 3.0.
20220 case $host_os in
20221 aix4 | aix4.[01] | aix4.[01].*)
20222 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20223 echo ' yes '
20224 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20225 :
20226 else
20227 can_build_shared=no
20228 fi
20229 ;;
20230 esac
20231 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20232 # soname into executable. Probably we can add versioning support to
20233 # collect2, so additional links can be useful in future.
20234 if test "$aix_use_runtimelinking" = yes; then
20235 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20236 # instead of lib<name>.a to let people know that these are not
20237 # typical AIX shared libraries.
20238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20239 else
20240 # We preserve .a as extension for shared libraries through AIX4.2
20241 # and later when we are not doing run time linking.
20242 library_names_spec='${libname}${release}.a $libname.a'
20243 soname_spec='${libname}${release}${shared_ext}$major'
20244 fi
20245 shlibpath_var=LIBPATH
20246 fi
20247 ;;
20248
20249amigaos*)
20250 case $host_cpu in
20251 powerpc)
20252 # Since July 2007 AmigaOS4 officially supports .so libraries.
20253 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20255 ;;
20256 m68k)
20257 library_names_spec='$libname.ixlibrary $libname.a'
20258 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000020259 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 +000020260 ;;
20261 esac
20262 ;;
20263
20264beos*)
20265 library_names_spec='${libname}${shared_ext}'
20266 dynamic_linker="$host_os ld.so"
20267 shlibpath_var=LIBRARY_PATH
20268 ;;
20269
20270bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000020271 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020272 need_version=no
20273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20274 soname_spec='${libname}${release}${shared_ext}$major'
20275 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20276 shlibpath_var=LD_LIBRARY_PATH
20277 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20278 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20279 # the default ld.so.conf also contains /usr/contrib/lib and
20280 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20281 # libtool to hard-code these into programs
20282 ;;
20283
20284cygwin* | mingw* | pw32* | cegcc*)
20285 version_type=windows
20286 shrext_cmds=".dll"
20287 need_version=no
20288 need_lib_prefix=no
20289
cristyda16f162011-02-19 23:52:17 +000020290 case $GCC,$cc_basename in
20291 yes,*)
20292 # gcc
cristy73bd4a52010-10-05 11:24:23 +000020293 library_names_spec='$libname.dll.a'
20294 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20295 postinstall_cmds='base_file=`basename \${file}`~
20296 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20297 dldir=$destdir/`dirname \$dlpath`~
20298 test -d \$dldir || mkdir -p \$dldir~
20299 $install_prog $dir/$dlname \$dldir/$dlname~
20300 chmod a+x \$dldir/$dlname~
20301 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20302 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20303 fi'
20304 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20305 dlpath=$dir/\$dldll~
20306 $RM \$dlpath'
20307 shlibpath_overrides_runpath=yes
20308
20309 case $host_os in
20310 cygwin*)
20311 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20312 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000020313
cristy73bd4a52010-10-05 11:24:23 +000020314 ;;
20315 mingw* | cegcc*)
20316 # MinGW DLLs use traditional 'lib' prefix
20317 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000020318 ;;
20319 pw32*)
20320 # pw32 DLLs use 'pw' prefix rather than 'lib'
20321 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20322 ;;
20323 esac
cristyda16f162011-02-19 23:52:17 +000020324 dynamic_linker='Win32 ld.exe'
20325 ;;
20326
20327 *,cl*)
20328 # Native MSVC
20329 libname_spec='$name'
20330 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20331 library_names_spec='${libname}.dll.lib'
20332
20333 case $build_os in
20334 mingw*)
20335 sys_lib_search_path_spec=
20336 lt_save_ifs=$IFS
20337 IFS=';'
20338 for lt_path in $LIB
20339 do
20340 IFS=$lt_save_ifs
20341 # Let DOS variable expansion print the short 8.3 style file name.
20342 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
20343 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
20344 done
20345 IFS=$lt_save_ifs
20346 # Convert to MSYS style.
20347 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
20348 ;;
20349 cygwin*)
20350 # Convert to unix form, then to dos form, then back to unix form
20351 # but this time dos style (no spaces!) so that the unix form looks
20352 # like /cygdrive/c/PROGRA~1:/cygdr...
20353 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
20354 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
20355 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20356 ;;
20357 *)
20358 sys_lib_search_path_spec="$LIB"
20359 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
20360 # It is most probably a Windows format PATH.
20361 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20362 else
20363 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20364 fi
20365 # FIXME: find the short name or the path components, as spaces are
20366 # common. (e.g. "Program Files" -> "PROGRA~1")
20367 ;;
20368 esac
20369
20370 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20371 postinstall_cmds='base_file=`basename \${file}`~
20372 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20373 dldir=$destdir/`dirname \$dlpath`~
20374 test -d \$dldir || mkdir -p \$dldir~
20375 $install_prog $dir/$dlname \$dldir/$dlname'
20376 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20377 dlpath=$dir/\$dldll~
20378 $RM \$dlpath'
20379 shlibpath_overrides_runpath=yes
20380 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000020381 ;;
20382
20383 *)
cristyda16f162011-02-19 23:52:17 +000020384 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000020385 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000020386 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000020387 ;;
20388 esac
cristy73bd4a52010-10-05 11:24:23 +000020389 # FIXME: first we should search . and the directory the executable is in
20390 shlibpath_var=PATH
20391 ;;
20392
20393darwin* | rhapsody*)
20394 dynamic_linker="$host_os dyld"
20395 version_type=darwin
20396 need_lib_prefix=no
20397 need_version=no
20398 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20399 soname_spec='${libname}${release}${major}$shared_ext'
20400 shlibpath_overrides_runpath=yes
20401 shlibpath_var=DYLD_LIBRARY_PATH
20402 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20403
20404 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20405 ;;
20406
20407dgux*)
cristy99bd5232011-12-07 14:38:20 +000020408 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020409 need_lib_prefix=no
20410 need_version=no
20411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20412 soname_spec='${libname}${release}${shared_ext}$major'
20413 shlibpath_var=LD_LIBRARY_PATH
20414 ;;
20415
cristy73bd4a52010-10-05 11:24:23 +000020416freebsd* | dragonfly*)
20417 # DragonFly does not have aout. When/if they implement a new
20418 # versioning mechanism, adjust this.
20419 if test -x /usr/bin/objformat; then
20420 objformat=`/usr/bin/objformat`
20421 else
20422 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020423 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000020424 *) objformat=elf ;;
20425 esac
20426 fi
20427 version_type=freebsd-$objformat
20428 case $version_type in
20429 freebsd-elf*)
20430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20431 need_version=no
20432 need_lib_prefix=no
20433 ;;
20434 freebsd-*)
20435 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20436 need_version=yes
20437 ;;
20438 esac
20439 shlibpath_var=LD_LIBRARY_PATH
20440 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020441 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000020442 shlibpath_overrides_runpath=yes
20443 ;;
20444 freebsd3.[01]* | freebsdelf3.[01]*)
20445 shlibpath_overrides_runpath=yes
20446 hardcode_into_libs=yes
20447 ;;
20448 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20449 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20450 shlibpath_overrides_runpath=no
20451 hardcode_into_libs=yes
20452 ;;
20453 *) # from 4.6 on, and DragonFly
20454 shlibpath_overrides_runpath=yes
20455 hardcode_into_libs=yes
20456 ;;
20457 esac
20458 ;;
20459
20460gnu*)
cristy99bd5232011-12-07 14:38:20 +000020461 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020462 need_lib_prefix=no
20463 need_version=no
20464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20465 soname_spec='${libname}${release}${shared_ext}$major'
20466 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000020467 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000020468 hardcode_into_libs=yes
20469 ;;
20470
cristy0c60a692010-11-04 01:09:47 +000020471haiku*)
cristy99bd5232011-12-07 14:38:20 +000020472 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000020473 need_lib_prefix=no
20474 need_version=no
20475 dynamic_linker="$host_os runtime_loader"
20476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20477 soname_spec='${libname}${release}${shared_ext}$major'
20478 shlibpath_var=LIBRARY_PATH
20479 shlibpath_overrides_runpath=yes
20480 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
20481 hardcode_into_libs=yes
20482 ;;
20483
cristy73bd4a52010-10-05 11:24:23 +000020484hpux9* | hpux10* | hpux11*)
20485 # Give a soname corresponding to the major version so that dld.sl refuses to
20486 # link against other versions.
20487 version_type=sunos
20488 need_lib_prefix=no
20489 need_version=no
20490 case $host_cpu in
20491 ia64*)
20492 shrext_cmds='.so'
20493 hardcode_into_libs=yes
20494 dynamic_linker="$host_os dld.so"
20495 shlibpath_var=LD_LIBRARY_PATH
20496 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20498 soname_spec='${libname}${release}${shared_ext}$major'
20499 if test "X$HPUX_IA64_MODE" = X32; then
20500 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20501 else
20502 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20503 fi
20504 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20505 ;;
20506 hppa*64*)
20507 shrext_cmds='.sl'
20508 hardcode_into_libs=yes
20509 dynamic_linker="$host_os dld.sl"
20510 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20511 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20513 soname_spec='${libname}${release}${shared_ext}$major'
20514 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20515 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20516 ;;
20517 *)
20518 shrext_cmds='.sl'
20519 dynamic_linker="$host_os dld.sl"
20520 shlibpath_var=SHLIB_PATH
20521 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20523 soname_spec='${libname}${release}${shared_ext}$major'
20524 ;;
20525 esac
cristy0c60a692010-11-04 01:09:47 +000020526 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000020527 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000020528 # or fails outright, so override atomically:
20529 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000020530 ;;
20531
20532interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000020533 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020534 need_lib_prefix=no
20535 need_version=no
20536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20537 soname_spec='${libname}${release}${shared_ext}$major'
20538 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20539 shlibpath_var=LD_LIBRARY_PATH
20540 shlibpath_overrides_runpath=no
20541 hardcode_into_libs=yes
20542 ;;
20543
20544irix5* | irix6* | nonstopux*)
20545 case $host_os in
20546 nonstopux*) version_type=nonstopux ;;
20547 *)
20548 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000020549 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020550 else
20551 version_type=irix
20552 fi ;;
20553 esac
20554 need_lib_prefix=no
20555 need_version=no
20556 soname_spec='${libname}${release}${shared_ext}$major'
20557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20558 case $host_os in
20559 irix5* | nonstopux*)
20560 libsuff= shlibsuff=
20561 ;;
20562 *)
20563 case $LD in # libtool.m4 will add one of these switches to LD
20564 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20565 libsuff= shlibsuff= libmagic=32-bit;;
20566 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20567 libsuff=32 shlibsuff=N32 libmagic=N32;;
20568 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20569 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20570 *) libsuff= shlibsuff= libmagic=never-match;;
20571 esac
20572 ;;
20573 esac
20574 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20575 shlibpath_overrides_runpath=no
20576 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20577 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20578 hardcode_into_libs=yes
20579 ;;
20580
20581# No shared lib support for Linux oldld, aout, or coff.
20582linux*oldld* | linux*aout* | linux*coff*)
20583 dynamic_linker=no
20584 ;;
20585
cristy99bd5232011-12-07 14:38:20 +000020586# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000020587linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000020588 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020589 need_lib_prefix=no
20590 need_version=no
20591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20592 soname_spec='${libname}${release}${shared_ext}$major'
20593 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20594 shlibpath_var=LD_LIBRARY_PATH
20595 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000020596
cristy73bd4a52010-10-05 11:24:23 +000020597 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000020598 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000020599 $as_echo_n "(cached) " >&6
20600else
20601 lt_cv_shlibpath_overrides_runpath=no
20602 save_LDFLAGS=$LDFLAGS
20603 save_libdir=$libdir
20604 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20605 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000020607/* end confdefs.h. */
20608
20609int
20610main ()
20611{
20612
20613 ;
20614 return 0;
20615}
20616_ACEOF
20617if ac_fn_cxx_try_link "$LINENO"; then :
20618 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000020619 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000020620fi
20621fi
20622rm -f core conftest.err conftest.$ac_objext \
20623 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000020624 LDFLAGS=$save_LDFLAGS
20625 libdir=$save_libdir
20626
20627fi
20628
20629 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000020630
20631 # This implies no fast_install, which is unacceptable.
20632 # Some rework will be needed to allow for fast_install
20633 # before this can be enabled.
20634 hardcode_into_libs=yes
20635
20636 # Add ABI-specific directories to the system library path.
20637 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
20638
20639 # Append ld.so.conf contents to the search path
20640 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000020641 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 +000020642 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000020643
cristy73bd4a52010-10-05 11:24:23 +000020644 fi
20645
20646 # We used to test for /lib/ld.so.1 and disable shared libraries on
20647 # powerpc, because MkLinux only supported shared libraries with the
20648 # GNU dynamic linker. Since this was broken with cross compilers,
20649 # most powerpc-linux boxes support dynamic linking these days and
20650 # people can always --disable-shared, the test was removed, and we
20651 # assume the GNU/Linux dynamic linker is in use.
20652 dynamic_linker='GNU/Linux ld.so'
20653 ;;
20654
20655netbsd*)
20656 version_type=sunos
20657 need_lib_prefix=no
20658 need_version=no
20659 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20661 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20662 dynamic_linker='NetBSD (a.out) ld.so'
20663 else
20664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20665 soname_spec='${libname}${release}${shared_ext}$major'
20666 dynamic_linker='NetBSD ld.elf_so'
20667 fi
20668 shlibpath_var=LD_LIBRARY_PATH
20669 shlibpath_overrides_runpath=yes
20670 hardcode_into_libs=yes
20671 ;;
20672
20673newsos6)
cristy99bd5232011-12-07 14:38:20 +000020674 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20676 shlibpath_var=LD_LIBRARY_PATH
20677 shlibpath_overrides_runpath=yes
20678 ;;
20679
20680*nto* | *qnx*)
20681 version_type=qnx
20682 need_lib_prefix=no
20683 need_version=no
20684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20685 soname_spec='${libname}${release}${shared_ext}$major'
20686 shlibpath_var=LD_LIBRARY_PATH
20687 shlibpath_overrides_runpath=no
20688 hardcode_into_libs=yes
20689 dynamic_linker='ldqnx.so'
20690 ;;
20691
20692openbsd*)
20693 version_type=sunos
20694 sys_lib_dlsearch_path_spec="/usr/lib"
20695 need_lib_prefix=no
20696 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20697 case $host_os in
20698 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20699 *) need_version=no ;;
20700 esac
20701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20702 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20703 shlibpath_var=LD_LIBRARY_PATH
20704 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20705 case $host_os in
20706 openbsd2.[89] | openbsd2.[89].*)
20707 shlibpath_overrides_runpath=no
20708 ;;
20709 *)
20710 shlibpath_overrides_runpath=yes
20711 ;;
20712 esac
20713 else
20714 shlibpath_overrides_runpath=yes
20715 fi
20716 ;;
20717
20718os2*)
20719 libname_spec='$name'
20720 shrext_cmds=".dll"
20721 need_lib_prefix=no
20722 library_names_spec='$libname${shared_ext} $libname.a'
20723 dynamic_linker='OS/2 ld.exe'
20724 shlibpath_var=LIBPATH
20725 ;;
20726
20727osf3* | osf4* | osf5*)
20728 version_type=osf
20729 need_lib_prefix=no
20730 need_version=no
20731 soname_spec='${libname}${release}${shared_ext}$major'
20732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20733 shlibpath_var=LD_LIBRARY_PATH
20734 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20735 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20736 ;;
20737
20738rdos*)
20739 dynamic_linker=no
20740 ;;
20741
20742solaris*)
cristy99bd5232011-12-07 14:38:20 +000020743 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020744 need_lib_prefix=no
20745 need_version=no
20746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20747 soname_spec='${libname}${release}${shared_ext}$major'
20748 shlibpath_var=LD_LIBRARY_PATH
20749 shlibpath_overrides_runpath=yes
20750 hardcode_into_libs=yes
20751 # ldd complains unless libraries are executable
20752 postinstall_cmds='chmod +x $lib'
20753 ;;
20754
20755sunos4*)
20756 version_type=sunos
20757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20758 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20759 shlibpath_var=LD_LIBRARY_PATH
20760 shlibpath_overrides_runpath=yes
20761 if test "$with_gnu_ld" = yes; then
20762 need_lib_prefix=no
20763 fi
20764 need_version=yes
20765 ;;
20766
20767sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000020768 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20770 soname_spec='${libname}${release}${shared_ext}$major'
20771 shlibpath_var=LD_LIBRARY_PATH
20772 case $host_vendor in
20773 sni)
20774 shlibpath_overrides_runpath=no
20775 need_lib_prefix=no
20776 runpath_var=LD_RUN_PATH
20777 ;;
20778 siemens)
20779 need_lib_prefix=no
20780 ;;
20781 motorola)
20782 need_lib_prefix=no
20783 need_version=no
20784 shlibpath_overrides_runpath=no
20785 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20786 ;;
20787 esac
20788 ;;
20789
20790sysv4*MP*)
20791 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000020792 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020793 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20794 soname_spec='$libname${shared_ext}.$major'
20795 shlibpath_var=LD_LIBRARY_PATH
20796 fi
20797 ;;
20798
20799sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20800 version_type=freebsd-elf
20801 need_lib_prefix=no
20802 need_version=no
20803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20804 soname_spec='${libname}${release}${shared_ext}$major'
20805 shlibpath_var=LD_LIBRARY_PATH
20806 shlibpath_overrides_runpath=yes
20807 hardcode_into_libs=yes
20808 if test "$with_gnu_ld" = yes; then
20809 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20810 else
20811 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20812 case $host_os in
20813 sco3.2v5*)
20814 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20815 ;;
20816 esac
20817 fi
20818 sys_lib_dlsearch_path_spec='/usr/lib'
20819 ;;
20820
20821tpf*)
20822 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000020823 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020824 need_lib_prefix=no
20825 need_version=no
20826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20827 shlibpath_var=LD_LIBRARY_PATH
20828 shlibpath_overrides_runpath=no
20829 hardcode_into_libs=yes
20830 ;;
20831
20832uts4*)
cristy99bd5232011-12-07 14:38:20 +000020833 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20835 soname_spec='${libname}${release}${shared_ext}$major'
20836 shlibpath_var=LD_LIBRARY_PATH
20837 ;;
20838
20839*)
20840 dynamic_linker=no
20841 ;;
20842esac
20843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20844$as_echo "$dynamic_linker" >&6; }
20845test "$dynamic_linker" = no && can_build_shared=no
20846
20847variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20848if test "$GCC" = yes; then
20849 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20850fi
20851
20852if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20853 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20854fi
20855if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20856 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20857fi
20858
20859
20860
20861
20862
20863
20864
20865
20866
20867
20868
20869
20870
20871
20872
20873
20874
20875
20876
20877
20878
20879
20880
20881
20882
20883
20884
20885
20886
20887
20888
20889
20890
20891
20892
20893
cristy0c60a692010-11-04 01:09:47 +000020894
20895
cristy73bd4a52010-10-05 11:24:23 +000020896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20897$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20898hardcode_action_CXX=
20899if test -n "$hardcode_libdir_flag_spec_CXX" ||
20900 test -n "$runpath_var_CXX" ||
20901 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20902
20903 # We can hardcode non-existent directories.
20904 if test "$hardcode_direct_CXX" != no &&
20905 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20906 # have to relink, otherwise we might link with an installed library
20907 # when we should be linking with a yet-to-be-installed one
20908 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20909 test "$hardcode_minus_L_CXX" != no; then
20910 # Linking always hardcodes the temporary library directory.
20911 hardcode_action_CXX=relink
20912 else
20913 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20914 hardcode_action_CXX=immediate
20915 fi
20916else
20917 # We cannot hardcode anything, or else we can only hardcode existing
20918 # directories.
20919 hardcode_action_CXX=unsupported
20920fi
20921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20922$as_echo "$hardcode_action_CXX" >&6; }
20923
20924if test "$hardcode_action_CXX" = relink ||
20925 test "$inherit_rpath_CXX" = yes; then
20926 # Fast installation is not supported
20927 enable_fast_install=no
20928elif test "$shlibpath_overrides_runpath" = yes ||
20929 test "$enable_shared" = no; then
20930 # Fast installation is not necessary
20931 enable_fast_install=needless
20932fi
20933
20934
20935
20936
20937
20938
20939
20940 fi # test -n "$compiler"
20941
20942 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000020943 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000020944 LDCXX=$LD
20945 LD=$lt_save_LD
20946 GCC=$lt_save_GCC
20947 with_gnu_ld=$lt_save_with_gnu_ld
20948 lt_cv_path_LDCXX=$lt_cv_path_LD
20949 lt_cv_path_LD=$lt_save_path_LD
20950 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20951 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20952fi # test "$_lt_caught_CXX_error" != yes
20953
20954ac_ext=c
20955ac_cpp='$CPP $CPPFLAGS'
20956ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20957ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20958ac_compiler_gnu=$ac_cv_c_compiler_gnu
20959
20960
20961
20962
20963
20964
20965
20966
20967
20968
20969
20970
20971
cristy99bd5232011-12-07 14:38:20 +000020972
20973
cristy73bd4a52010-10-05 11:24:23 +000020974 ac_config_commands="$ac_config_commands libtool"
20975
20976
20977
20978
20979# Only expand once:
20980
20981
20982
cristy3ed852e2009-09-05 21:47:34 +000020983
20984
cristy3ed852e2009-09-05 21:47:34 +000020985# Check to see if building shared libraries
20986libtool_build_shared_libs='no'
20987if test "$enable_shared" = 'yes'; then
20988 libtool_build_shared_libs='yes'
20989fi
20990
20991# Check to see if building static libraries
20992libtool_build_static_libs='no'
20993if test "$enable_static" = 'yes'; then
20994 libtool_build_static_libs='yes'
20995fi
20996
cristy73bd4a52010-10-05 11:24:23 +000020997 if test "${libtool_build_shared_libs}" = 'yes'; then
20998 WITH_SHARED_LIBS_TRUE=
20999 WITH_SHARED_LIBS_FALSE='#'
21000else
21001 WITH_SHARED_LIBS_TRUE='#'
21002 WITH_SHARED_LIBS_FALSE=
21003fi
21004
cristy3ed852e2009-09-05 21:47:34 +000021005#
21006# Enable support for building loadable modules
21007#
cristyaf4cbf32012-10-16 23:47:41 +000021008build_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000021009
21010# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000021011if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021012 withval=$with_modules; with_modules=$withval
21013else
cristy5a1cefd2010-01-06 20:42:35 +000021014 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000021015fi
21016
21017
21018# Only allow building loadable modules if we are building shared libraries
21019if test "$with_modules" != 'no' ; then
21020 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000021021 { $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 +000021022$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
cristyc6722092012-10-14 00:19:31 +000021023 build_modules='no'
21024 else
21025 build_modules='yes'
21026 fi
cristy3ed852e2009-09-05 21:47:34 +000021027fi
cristyc6722092012-10-14 00:19:31 +000021028if test "$build_modules" != 'no' ; then
cristy3ed852e2009-09-05 21:47:34 +000021029
cristy8b350f62009-11-15 23:12:43 +000021030$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021031
cristyfa161182012-12-19 15:45:28 +000021032 MAGICK_FEATURES="$MAGICK_FEATURES Modules"
cristy3ed852e2009-09-05 21:47:34 +000021033fi
cristyc6722092012-10-14 00:19:31 +000021034 if test "$build_modules" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +000021035 WITH_MODULES_TRUE=
21036 WITH_MODULES_FALSE='#'
21037else
21038 WITH_MODULES_TRUE='#'
21039 WITH_MODULES_FALSE=
21040fi
21041
cristy3ed852e2009-09-05 21:47:34 +000021042
cristy3ed852e2009-09-05 21:47:34 +000021043# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000021044# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000021045# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000021046if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021047 enableval=$enable_delegate_build; enable_delegate_build=$enableval
21048else
21049 enable_delegate_build='no'
21050fi
21051
21052
21053# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000021054if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021055 enableval=$enable_deprecated; enable_deprecated=$enableval
21056else
21057 enable_deprecated='no'
21058fi
21059
21060
21061if test "$enable_deprecated" = 'yes'; then
21062
cristy8b350f62009-11-15 23:12:43 +000021063$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021064
21065else
21066 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
21067fi
21068
21069# Build a version of ImageMagick which operates uninstalled.
21070# Used to build distributions located via MAGICK_HOME / executable path
21071# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000021072if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021073 enableval=$enable_installed; enable_installed=$enableval
21074else
21075 enable_installed='yes'
21076fi
21077
21078
21079if test "$enable_installed" = 'yes'; then
21080
cristy8b350f62009-11-15 23:12:43 +000021081$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021082
21083else
21084 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
21085fi
21086
21087# Permit enciphering and deciphering image pixels.
21088# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000021089if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021090 enableval=$enable_cipher; enable_cipher=$enableval
21091else
21092 enable_cipher='yes'
21093fi
21094
21095
21096if test "$enable_cipher" = 'yes'; then
21097
cristy8b350f62009-11-15 23:12:43 +000021098$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021099
21100fi
21101
cristy6e3607c2011-09-13 13:59:17 +000021102# Build a zero-configuration version of ImageMagick.
21103# Check whether --enable-zero-configuration was given.
21104if test "${enable_zero_configuration+set}" = set; then :
21105 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
cristy3ed852e2009-09-05 21:47:34 +000021106else
cristy6e3607c2011-09-13 13:59:17 +000021107 enable_zero_configuration='no'
cristy3ed852e2009-09-05 21:47:34 +000021108fi
21109
21110
cristy6e3607c2011-09-13 13:59:17 +000021111if test "$enable_zero_configuration" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021112
cristy6e3607c2011-09-13 13:59:17 +000021113$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021114
cristy81af5702011-09-13 14:20:58 +000021115 MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021116fi
21117
21118# Build a high dynamic range version of ImageMagick.
21119# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000021120if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021121 enableval=$enable_hdri; enable_hdri=$enableval
21122else
cristy191c0b72012-08-12 16:29:52 +000021123 enable_hdri='yes'
cristy3ed852e2009-09-05 21:47:34 +000021124fi
21125
21126
21127MAGICK_HDRI=""
21128if test "$enable_hdri" = 'yes'; then
21129 MAGICK_HDRI="HDRI"
cristye52f12f2012-12-31 15:32:36 +000021130 magick_hdri_enable='1';
cristyfd9dcd42010-08-08 18:07:02 +000021131 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristye52f12f2012-12-31 15:32:36 +000021132else
21133 magick_hdri_enable='0'
cristy3ed852e2009-09-05 21:47:34 +000021134fi
21135
cristye52f12f2012-12-31 15:32:36 +000021136cat >>confdefs.h <<_ACEOF
21137#define HDRI_ENABLE_OBSOLETE_IN_H $magick_hdri_enable
21138_ACEOF
21139
21140MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
21141CFLAGS="$CFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristy72062382012-12-31 16:49:52 +000021142CPPFLAGS="$CPPFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristye52f12f2012-12-31 15:32:36 +000021143
cristy3ed852e2009-09-05 21:47:34 +000021144# Build a version of ImageMagick with assert statements.
21145# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000021146if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021147 enableval=$enable_assert; enable_assert=$enableval
21148else
21149 enable_assert='yes'
21150fi
21151
21152
21153if test "$enable_assert" = 'no'; then
21154
cristy8b350f62009-11-15 23:12:43 +000021155$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021156
21157fi
21158
cristya448bd22011-10-14 12:38:13 +000021159# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
cristy73bd4a52010-10-05 11:24:23 +000021160
21161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
21162$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21163 # Check whether --enable-maintainer-mode was given.
21164if test "${enable_maintainer_mode+set}" = set; then :
21165 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21166else
21167 USE_MAINTAINER_MODE=no
21168fi
21169
21170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
21171$as_echo "$USE_MAINTAINER_MODE" >&6; }
21172 if test $USE_MAINTAINER_MODE = yes; then
21173 MAINTAINER_MODE_TRUE=
21174 MAINTAINER_MODE_FALSE='#'
21175else
21176 MAINTAINER_MODE_TRUE='#'
21177 MAINTAINER_MODE_FALSE=
21178fi
21179
21180 MAINT=$MAINTAINER_MODE_TRUE
21181
21182
cristy3ed852e2009-09-05 21:47:34 +000021183
cristy944e51f2013-04-16 18:45:02 +000021184# Enable hugepages support
21185# Check whether --enable-hugepages was given.
21186if test "${enable_hugepages+set}" = set; then :
21187 enableval=$enable_hugepages; enable_hugepages=$enableval
21188else
21189 enable_hugepages='no'
21190fi
21191
21192
cristy3ed852e2009-09-05 21:47:34 +000021193# Enable ccmalloc memory debugging support
21194# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000021195if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021196 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
21197else
21198 enable_ccmalloc='no'
21199fi
21200
21201
21202# Enable Electric Fence memory debugging support
21203# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000021204if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021205 enableval=$enable_efence; enable_efence=$enableval
21206else
21207 enable_efence='no'
21208fi
21209
21210
21211# Enable prof-based profiling support
21212# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000021213if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021214 enableval=$enable_prof; enable_prof=$enableval
21215else
21216 enable_prof='no'
21217fi
21218
21219
21220# Enable gprof-based profiling support
21221# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000021222if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021223 enableval=$enable_gprof; enable_gprof=$enableval
21224else
21225 enable_gprof='no'
21226fi
21227
21228
21229# Enable gcov-based profiling support
21230# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000021231if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021232 enableval=$enable_gcov; enable_gcov=$enableval
21233else
21234 enable_gcov='no'
21235fi
21236
21237
21238enable_profiling='no'
21239if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21240 enable_profiling='yes'
21241 if test "$libtool_build_shared_libs" = 'yes'; then
21242 echo "Warning: Can not profile code using shared libraries"
21243 fi
21244fi
21245
21246# Magick API method prefix
21247
21248# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000021249if test "${with_method_prefix+set}" = set; then :
cristyfc3d0222012-02-07 15:05:57 +000021250 withval=$with_method_prefix; with_method_prefix=$withval
cristy3ed852e2009-09-05 21:47:34 +000021251else
cristyfc3d0222012-02-07 15:05:57 +000021252 with_method_prefix='no'
cristy3ed852e2009-09-05 21:47:34 +000021253fi
21254
21255
cristyfc3d0222012-02-07 15:05:57 +000021256if test "$with_method_prefix" != 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000021257
21258cat >>confdefs.h <<_ACEOF
21259#define NAMESPACE_PREFIX $with_method_prefix
21260_ACEOF
21261
cristyfc3d0222012-02-07 15:05:57 +000021262 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix "
cristy3ed852e2009-09-05 21:47:34 +000021263fi
21264
cristy71d8c202012-03-20 17:05:01 +000021265# Enable legacy support (default no)
21266# Check whether --enable-legacy-support was given.
21267if test "${enable_legacy_support+set}" = set; then :
21268 enableval=$enable_legacy_support; with_legacy_support=$enableval
21269else
21270 with_legacy_support='no'
21271fi
21272
21273 if test "$with_legacy_support" != 'no'; then
21274 LEGACY_SUPPORT_TRUE=
21275 LEGACY_SUPPORT_FALSE='#'
21276else
21277 LEGACY_SUPPORT_TRUE='#'
21278 LEGACY_SUPPORT_FALSE=
21279fi
21280
21281
cristy3ed852e2009-09-05 21:47:34 +000021282# Number of bits in a Quantum
21283
21284# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000021285if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021286 withval=$with_quantum_depth; with_quantum_depth=$withval
21287else
21288 with_quantum_depth=16
21289fi
21290
21291
21292if test "$with_quantum_depth" != '8'; then
21293 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21294fi
21295
21296case "${with_quantum_depth}" in
21297 8 ) ;;
21298 16 ) ;;
21299 32 ) ;;
21300 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000021301 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021302esac
21303QUANTUM_DEPTH="$with_quantum_depth"
21304
21305cat >>confdefs.h <<_ACEOF
cristye52f12f2012-12-31 15:32:36 +000021306#define QUANTUM_DEPTH_OBSOLETE_IN_H $QUANTUM_DEPTH
cristy3ed852e2009-09-05 21:47:34 +000021307_ACEOF
21308
cristya371edf2013-02-06 13:42:17 +000021309MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristye52f12f2012-12-31 15:32:36 +000021310CFLAGS="$CFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy72062382012-12-31 16:49:52 +000021311CPPFLAGS="$CPPFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy3ed852e2009-09-05 21:47:34 +000021312
cristy01ff9f32012-12-01 18:15:29 +000021313# define a lib suffix for abi purpose
cristy7a26abd2012-12-03 00:18:59 +000021314MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}"
cristye386d192012-12-01 21:05:20 +000021315if test "$enable_hdri" = 'yes'; then
cristy7a26abd2012-12-03 00:18:59 +000021316 MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}${MAGICK_HDRI}"
cristye386d192012-12-01 21:05:20 +000021317fi
cristy01ff9f32012-12-01 18:15:29 +000021318
21319
cristy3ed852e2009-09-05 21:47:34 +000021320# Set pixel cache threshold
21321
21322# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000021323if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021324 withval=$with_cache; with_cache=$withval
21325else
21326 with_cache=''
21327fi
21328
21329
21330if test "$with_cache" != ''; then
21331
21332cat >>confdefs.h <<_ACEOF
21333#define PixelCacheThreshold $with_cache
21334_ACEOF
21335
21336 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21337fi
21338
21339# Disable/Enable support for full delegate paths
21340
21341# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000021342if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021343 withval=$with_frozenpaths; with_frozenpaths=$withval
21344else
21345 with_frozenpaths='no'
21346fi
21347
21348
21349# Enable build/install of Magick++
21350
21351# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000021352if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021353 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21354else
21355 with_magick_plus_plus='yes'
21356fi
21357
21358
cristy3a75f062012-09-08 23:29:40 +000021359# Encode the this name into the shared library.
21360
21361# Check whether --with-package-release-name was given.
21362if test "${with_package_release_name+set}" = set; then :
21363 withval=$with_package_release_name; MAGICK_LT_RELEASE_OPTS="-release $withval"
21364fi
21365
21366
21367
cristy3ed852e2009-09-05 21:47:34 +000021368# Disable build/install of PerlMagick.
21369
21370# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000021371if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021372 withval=$with_perl; with_perl=$withval
21373else
cristyb5f4e2f2010-04-25 00:49:11 +000021374 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000021375fi
21376
21377
21378# Options to pass when configuring PerlMagick
21379
21380# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000021381if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000021382 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000021383fi
21384
21385
cristy3ed852e2009-09-05 21:47:34 +000021386
21387# Enable umem, object-caching memory allocation library.
21388
21389# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000021390if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021391 withval=$with_umem; with_umem=$withval
21392else
21393 with_umem='no'
21394fi
21395
21396if test "$with_umem" != 'yes' ; then
21397 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21398fi
21399
21400#
21401# Specify path to shared libstdc++ if not in normal location
21402#
21403
21404# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000021405if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021406 withval=$with_libstdc; with_libstdc=$withval
21407else
21408 with_libstdc=''
21409fi
21410
21411
21412if test "$with_libstdc" != ''; then
21413 if test -d "$with_libstdc"; then
21414 LIBSTDCLDFLAGS="-L$with_libstdc"
21415 fi
21416fi
21417
21418
21419# Does gcc required -traditional?
21420if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000021421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021422$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021423if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021424 $as_echo_n "(cached) " >&6
21425else
21426 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000021427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021428/* end confdefs.h. */
21429#include <sgtty.h>
21430Autoconf TIOCGETP
21431_ACEOF
21432if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021433 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021434 ac_cv_prog_gcc_traditional=yes
21435else
21436 ac_cv_prog_gcc_traditional=no
21437fi
21438rm -f conftest*
21439
21440
21441 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000021442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021443/* end confdefs.h. */
21444#include <termio.h>
21445Autoconf TCGETA
21446_ACEOF
21447if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021448 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021449 ac_cv_prog_gcc_traditional=yes
21450fi
21451rm -f conftest*
21452
21453 fi
21454fi
cristy8b350f62009-11-15 23:12:43 +000021455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021456$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21457 if test $ac_cv_prog_gcc_traditional = yes; then
21458 CC="$CC -traditional"
21459 fi
21460fi
21461
21462
21463########
21464#
21465# Set defines required to build DLLs and modules using MinGW
21466#
21467########
21468# These options are set for multi-thread DLL module build
21469# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
21470# module: _DLL
21471# executable/Magick++: _DLL _MAGICKMOD_
21472MODULE_EXTRA_CPPFLAGS=''
21473LIBRARY_EXTRA_CPPFLAGS=''
21474if test "${native_win32_build}" = 'yes'; then
21475 if test "${libtool_build_shared_libs}" = 'yes'; then
21476 CPPFLAGS="$CPPFLAGS -D_DLL"
21477 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
21478 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
21479 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
cristyc6722092012-10-14 00:19:31 +000021480 if test "$build_modules" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021481 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
21482 else
21483 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21484 fi
21485 else
21486 CPPFLAGS="$CPPFLAGS -D_LIB"
21487 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
21488 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
21489 fi
21490 if test "$with_threads" = 'yes'; then
21491 CPPFLAGS="$CPPFLAGS -D_MT"
21492 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
21493 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
21494 fi
21495fi
21496
21497
21498
21499# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000021500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000021501$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021502if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021503 $as_echo_n "(cached) " >&6
21504else
cristy8b350f62009-11-15 23:12:43 +000021505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021506/* end confdefs.h. */
21507#include <stdlib.h>
21508#include <stdarg.h>
21509#include <string.h>
21510#include <float.h>
21511
21512int
21513main ()
21514{
21515
21516 ;
21517 return 0;
21518}
21519_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021520if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021521 ac_cv_header_stdc=yes
21522else
cristy8b350f62009-11-15 23:12:43 +000021523 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021524fi
cristy3ed852e2009-09-05 21:47:34 +000021525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21526
21527if test $ac_cv_header_stdc = yes; then
21528 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021530/* end confdefs.h. */
21531#include <string.h>
21532
21533_ACEOF
21534if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021535 $EGREP "memchr" >/dev/null 2>&1; then :
21536
cristy3ed852e2009-09-05 21:47:34 +000021537else
21538 ac_cv_header_stdc=no
21539fi
21540rm -f conftest*
21541
21542fi
21543
21544if test $ac_cv_header_stdc = yes; then
21545 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021547/* end confdefs.h. */
21548#include <stdlib.h>
21549
21550_ACEOF
21551if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021552 $EGREP "free" >/dev/null 2>&1; then :
21553
cristy3ed852e2009-09-05 21:47:34 +000021554else
21555 ac_cv_header_stdc=no
21556fi
21557rm -f conftest*
21558
21559fi
21560
21561if test $ac_cv_header_stdc = yes; then
21562 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000021563 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021564 :
21565else
cristy8b350f62009-11-15 23:12:43 +000021566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021567/* end confdefs.h. */
21568#include <ctype.h>
21569#include <stdlib.h>
21570#if ((' ' & 0x0FF) == 0x020)
21571# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21572# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21573#else
21574# define ISLOWER(c) \
21575 (('a' <= (c) && (c) <= 'i') \
21576 || ('j' <= (c) && (c) <= 'r') \
21577 || ('s' <= (c) && (c) <= 'z'))
21578# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21579#endif
21580
21581#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21582int
21583main ()
21584{
21585 int i;
21586 for (i = 0; i < 256; i++)
21587 if (XOR (islower (i), ISLOWER (i))
21588 || toupper (i) != TOUPPER (i))
21589 return 2;
21590 return 0;
21591}
21592_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021593if ac_fn_c_try_run "$LINENO"; then :
21594
cristy3ed852e2009-09-05 21:47:34 +000021595else
cristy8b350f62009-11-15 23:12:43 +000021596 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021597fi
cristy8b350f62009-11-15 23:12:43 +000021598rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21599 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021600fi
21601
cristy3ed852e2009-09-05 21:47:34 +000021602fi
21603fi
cristy8b350f62009-11-15 23:12:43 +000021604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000021605$as_echo "$ac_cv_header_stdc" >&6; }
21606if test $ac_cv_header_stdc = yes; then
21607
cristy8b350f62009-11-15 23:12:43 +000021608$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021609
21610fi
21611
21612if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000021613 { $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 +000021614 header files. Compilation cannot proceed. Please install the ANSI C
21615 headers and rerun this script." >&5
21616$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
21617 header files. Compilation cannot proceed. Please install the ANSI C
21618 headers and rerun this script." >&2;};
21619fi
cristya0b81c32010-01-22 02:54:33 +000021620
21621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
21622$as_echo_n "checking whether to enable assertions... " >&6; }
21623 # Check whether --enable-assert was given.
21624if test "${enable_assert+set}" = set; then :
21625 enableval=$enable_assert; ac_enable_assert=$enableval
21626 if test "x$enableval" = xno; then :
21627
21628$as_echo "#define NDEBUG 1" >>confdefs.h
21629
21630elif test "x$enableval" != xyes; then :
21631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
21632$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
21633 ac_enable_assert=yes
21634fi
21635else
21636 ac_enable_assert=yes
21637fi
21638
21639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
21640$as_echo "$ac_enable_assert" >&6; }
21641
cristy3ed852e2009-09-05 21:47:34 +000021642ac_header_dirent=no
21643for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21644 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000021645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000021646$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021647if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021648 $as_echo_n "(cached) " >&6
21649else
cristy8b350f62009-11-15 23:12:43 +000021650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021651/* end confdefs.h. */
21652#include <sys/types.h>
21653#include <$ac_hdr>
21654
21655int
21656main ()
21657{
21658if ((DIR *) 0)
21659return 0;
21660 ;
21661 return 0;
21662}
21663_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021664if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021665 eval "$as_ac_Header=yes"
21666else
cristy8b350f62009-11-15 23:12:43 +000021667 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000021668fi
cristy3ed852e2009-09-05 21:47:34 +000021669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21670fi
cristy8b350f62009-11-15 23:12:43 +000021671eval ac_res=\$$as_ac_Header
21672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000021673$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000021674if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021675 cat >>confdefs.h <<_ACEOF
21676#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21677_ACEOF
21678
21679ac_header_dirent=$ac_hdr; break
21680fi
21681
21682done
21683# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21684if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000021685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021686$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021687if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021688 $as_echo_n "(cached) " >&6
21689else
21690 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021691cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021692/* end confdefs.h. */
21693
21694/* Override any GCC internal prototype to avoid an error.
21695 Use char because int might match the return type of a GCC
21696 builtin and then its argument prototype would still apply. */
21697#ifdef __cplusplus
21698extern "C"
21699#endif
21700char opendir ();
21701int
21702main ()
21703{
21704return opendir ();
21705 ;
21706 return 0;
21707}
21708_ACEOF
21709for ac_lib in '' dir; do
21710 if test -z "$ac_lib"; then
21711 ac_res="none required"
21712 else
21713 ac_res=-l$ac_lib
21714 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21715 fi
cristy8b350f62009-11-15 23:12:43 +000021716 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021717 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021718fi
cristy8b350f62009-11-15 23:12:43 +000021719rm -f core conftest.err conftest.$ac_objext \
21720 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021721 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021722 break
21723fi
21724done
cristyda16f162011-02-19 23:52:17 +000021725if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021726
cristy3ed852e2009-09-05 21:47:34 +000021727else
21728 ac_cv_search_opendir=no
21729fi
21730rm conftest.$ac_ext
21731LIBS=$ac_func_search_save_LIBS
21732fi
cristy8b350f62009-11-15 23:12:43 +000021733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021734$as_echo "$ac_cv_search_opendir" >&6; }
21735ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021736if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021737 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21738
21739fi
21740
21741else
cristy8b350f62009-11-15 23:12:43 +000021742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021743$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021744if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021745 $as_echo_n "(cached) " >&6
21746else
21747 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021748cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021749/* end confdefs.h. */
21750
21751/* Override any GCC internal prototype to avoid an error.
21752 Use char because int might match the return type of a GCC
21753 builtin and then its argument prototype would still apply. */
21754#ifdef __cplusplus
21755extern "C"
21756#endif
21757char opendir ();
21758int
21759main ()
21760{
21761return opendir ();
21762 ;
21763 return 0;
21764}
21765_ACEOF
21766for ac_lib in '' x; do
21767 if test -z "$ac_lib"; then
21768 ac_res="none required"
21769 else
21770 ac_res=-l$ac_lib
21771 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21772 fi
cristy8b350f62009-11-15 23:12:43 +000021773 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021774 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021775fi
cristy8b350f62009-11-15 23:12:43 +000021776rm -f core conftest.err conftest.$ac_objext \
21777 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021778 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021779 break
21780fi
21781done
cristyda16f162011-02-19 23:52:17 +000021782if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021783
cristy3ed852e2009-09-05 21:47:34 +000021784else
21785 ac_cv_search_opendir=no
21786fi
21787rm conftest.$ac_ext
21788LIBS=$ac_func_search_save_LIBS
21789fi
cristy8b350f62009-11-15 23:12:43 +000021790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021791$as_echo "$ac_cv_search_opendir" >&6; }
21792ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021793if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021794 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21795
21796fi
21797
21798fi
21799
21800
21801# Check additional headers
cristy03f187e2013-01-24 00:22:19 +000021802for ac_header in arm/limits.h arpa/inet.h complex.h errno.h fcntl.h limits.h linux/unistd.h locale.h machine/param.h mach-o/dyld.h netinet/in.h OS.h process.h sun_prefetch.h stdarg.h sys/ipc.h sys/mman.h sys/resource.h sys/socket.h sys/syslimits.h sys/time.h sys/timeb.h sys/times.h sys/wait.h wchar.h xlocale.h
cristy8b350f62009-11-15 23:12:43 +000021803do :
21804 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21805ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000021806if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021807 cat >>confdefs.h <<_ACEOF
21808#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21809_ACEOF
21810
21811fi
21812
21813done
21814
21815
21816########
21817#
21818# Checks for typedefs, structures, and compiler characteristics.
21819#
21820########
21821
cristy8b350f62009-11-15 23:12:43 +000021822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000021823$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021824if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021825 $as_echo_n "(cached) " >&6
21826else
cristy8b350f62009-11-15 23:12:43 +000021827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021828/* end confdefs.h. */
21829
cristy14fefe52012-05-21 00:59:18 +000021830 #include <stdbool.h>
21831 #ifndef bool
21832 "error: bool is not defined"
21833 #endif
21834 #ifndef false
21835 "error: false is not defined"
21836 #endif
21837 #if false
21838 "error: false is not 0"
21839 #endif
21840 #ifndef true
21841 "error: true is not defined"
21842 #endif
21843 #if true != 1
21844 "error: true is not 1"
21845 #endif
21846 #ifndef __bool_true_false_are_defined
21847 "error: __bool_true_false_are_defined is not defined"
21848 #endif
cristy3ed852e2009-09-05 21:47:34 +000021849
cristy14fefe52012-05-21 00:59:18 +000021850 struct s { _Bool s: 1; _Bool t; } s;
cristy3ed852e2009-09-05 21:47:34 +000021851
cristy14fefe52012-05-21 00:59:18 +000021852 char a[true == 1 ? 1 : -1];
21853 char b[false == 0 ? 1 : -1];
21854 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
21855 char d[(bool) 0.5 == true ? 1 : -1];
21856 /* See body of main program for 'e'. */
21857 char f[(_Bool) 0.0 == false ? 1 : -1];
21858 char g[true];
21859 char h[sizeof (_Bool)];
21860 char i[sizeof s.t];
21861 enum { j = false, k = true, l = false * true, m = true * 256 };
21862 /* The following fails for
21863 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
21864 _Bool n[m];
21865 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
21866 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
21867 /* Catch a bug in an HP-UX C compiler. See
21868 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
21869 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
21870 */
21871 _Bool q = true;
21872 _Bool *pq = &q;
cristy3ed852e2009-09-05 21:47:34 +000021873
21874int
21875main ()
21876{
21877
cristy14fefe52012-05-21 00:59:18 +000021878 bool e = &s;
21879 *pq |= q;
21880 *pq |= ! q;
21881 /* Refer to every declared value, to avoid compiler optimizations. */
21882 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
21883 + !m + !n + !o + !p + !q + !pq);
cristy3ed852e2009-09-05 21:47:34 +000021884
21885 ;
21886 return 0;
21887}
21888_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021889if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021890 ac_cv_header_stdbool_h=yes
21891else
cristy8b350f62009-11-15 23:12:43 +000021892 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000021893fi
cristy3ed852e2009-09-05 21:47:34 +000021894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21895fi
cristy8b350f62009-11-15 23:12:43 +000021896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000021897$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy14fefe52012-05-21 00:59:18 +000021898 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000021899if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000021900
21901cat >>confdefs.h <<_ACEOF
21902#define HAVE__BOOL 1
21903_ACEOF
21904
21905
21906fi
21907
cristy14fefe52012-05-21 00:59:18 +000021908
cristy3ed852e2009-09-05 21:47:34 +000021909if test $ac_cv_header_stdbool_h = yes; then
21910
cristy8b350f62009-11-15 23:12:43 +000021911$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021912
21913fi
21914
cristy8b350f62009-11-15 23:12:43 +000021915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021916$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021917if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021918 $as_echo_n "(cached) " >&6
21919else
cristy8b350f62009-11-15 23:12:43 +000021920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021921/* end confdefs.h. */
21922
21923int
21924main ()
21925{
21926
21927volatile int x;
21928int * volatile y = (int *) 0;
21929return !x && !y;
21930 ;
21931 return 0;
21932}
21933_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021934if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021935 ac_cv_c_volatile=yes
21936else
cristy8b350f62009-11-15 23:12:43 +000021937 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000021938fi
cristy3ed852e2009-09-05 21:47:34 +000021939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21940fi
cristy8b350f62009-11-15 23:12:43 +000021941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021942$as_echo "$ac_cv_c_volatile" >&6; }
21943if test $ac_cv_c_volatile = no; then
21944
cristy8b350f62009-11-15 23:12:43 +000021945$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021946
21947fi
21948
cristy8b350f62009-11-15 23:12:43 +000021949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000021950$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021951if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021952 $as_echo_n "(cached) " >&6
21953else
cristy8b350f62009-11-15 23:12:43 +000021954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021955/* end confdefs.h. */
21956#define x(y) #y
21957
21958char *s = x(teststring);
21959_ACEOF
21960if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021961 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021962 ac_cv_c_stringize=no
21963else
21964 ac_cv_c_stringize=yes
21965fi
21966rm -f conftest*
21967
21968fi
cristy8b350f62009-11-15 23:12:43 +000021969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000021970$as_echo "$ac_cv_c_stringize" >&6; }
21971if test $ac_cv_c_stringize = yes; then
21972
cristy8b350f62009-11-15 23:12:43 +000021973$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021974
21975fi
21976
cristy8b350f62009-11-15 23:12:43 +000021977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021978$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021979if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021980 $as_echo_n "(cached) " >&6
21981else
cristy8b350f62009-11-15 23:12:43 +000021982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021983/* end confdefs.h. */
21984#include <sys/types.h>
21985#include <sys/stat.h>
21986
21987#if defined S_ISBLK && defined S_IFDIR
21988extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21989#endif
21990
21991#if defined S_ISBLK && defined S_IFCHR
21992extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21993#endif
21994
21995#if defined S_ISLNK && defined S_IFREG
21996extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21997#endif
21998
21999#if defined S_ISSOCK && defined S_IFREG
22000extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22001#endif
22002
22003_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022004if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022005 ac_cv_header_stat_broken=no
22006else
cristy8b350f62009-11-15 23:12:43 +000022007 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000022008fi
cristy3ed852e2009-09-05 21:47:34 +000022009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22010fi
cristy8b350f62009-11-15 23:12:43 +000022011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022012$as_echo "$ac_cv_header_stat_broken" >&6; }
22013if test $ac_cv_header_stat_broken = yes; then
22014
cristy8b350f62009-11-15 23:12:43 +000022015$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022016
22017fi
22018
cristy8b350f62009-11-15 23:12:43 +000022019{ $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 +000022020$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022021if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022022 $as_echo_n "(cached) " >&6
22023else
cristy8b350f62009-11-15 23:12:43 +000022024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022025/* end confdefs.h. */
22026#include <sys/types.h>
22027#include <sys/time.h>
22028#include <time.h>
22029
22030int
22031main ()
22032{
22033if ((struct tm *) 0)
22034return 0;
22035 ;
22036 return 0;
22037}
22038_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022039if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022040 ac_cv_header_time=yes
22041else
cristy8b350f62009-11-15 23:12:43 +000022042 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000022043fi
cristy3ed852e2009-09-05 21:47:34 +000022044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22045fi
cristy8b350f62009-11-15 23:12:43 +000022046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000022047$as_echo "$ac_cv_header_time" >&6; }
22048if test $ac_cv_header_time = yes; then
22049
cristy8b350f62009-11-15 23:12:43 +000022050$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022051
22052fi
22053
cristy8b350f62009-11-15 23:12:43 +000022054{ $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 +000022055$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022056if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022057 $as_echo_n "(cached) " >&6
22058else
cristy8b350f62009-11-15 23:12:43 +000022059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022060/* end confdefs.h. */
22061#include <sys/types.h>
22062#include <time.h>
22063
22064int
22065main ()
22066{
22067struct tm tm;
22068 int *p = &tm.tm_sec;
22069 return !p;
22070 ;
22071 return 0;
22072}
22073_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022074if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022075 ac_cv_struct_tm=time.h
22076else
cristy8b350f62009-11-15 23:12:43 +000022077 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000022078fi
cristy3ed852e2009-09-05 21:47:34 +000022079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22080fi
cristy8b350f62009-11-15 23:12:43 +000022081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000022082$as_echo "$ac_cv_struct_tm" >&6; }
22083if test $ac_cv_struct_tm = sys/time.h; then
22084
cristy8b350f62009-11-15 23:12:43 +000022085$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022086
22087fi
22088
cristy92703d82010-04-26 00:18:18 +000022089ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
22090#include <$ac_cv_struct_tm>
22091
22092"
cristyda16f162011-02-19 23:52:17 +000022093if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022094
22095cat >>confdefs.h <<_ACEOF
22096#define HAVE_STRUCT_TM_TM_ZONE 1
22097_ACEOF
22098
22099
22100fi
22101
22102if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22103
22104$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
22105
22106else
22107 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
22108"
cristyda16f162011-02-19 23:52:17 +000022109if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022110 ac_have_decl=1
22111else
22112 ac_have_decl=0
22113fi
22114
22115cat >>confdefs.h <<_ACEOF
22116#define HAVE_DECL_TZNAME $ac_have_decl
22117_ACEOF
22118
22119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
22120$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022121if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000022122 $as_echo_n "(cached) " >&6
22123else
22124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22125/* end confdefs.h. */
22126#include <time.h>
22127#if !HAVE_DECL_TZNAME
22128extern char *tzname[];
22129#endif
22130
22131int
22132main ()
22133{
22134return tzname[0][0];
22135 ;
22136 return 0;
22137}
22138_ACEOF
22139if ac_fn_c_try_link "$LINENO"; then :
22140 ac_cv_var_tzname=yes
22141else
22142 ac_cv_var_tzname=no
22143fi
22144rm -f core conftest.err conftest.$ac_objext \
22145 conftest$ac_exeext conftest.$ac_ext
22146fi
22147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22148$as_echo "$ac_cv_var_tzname" >&6; }
22149 if test $ac_cv_var_tzname = yes; then
22150
22151$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
22152
22153 fi
22154fi
22155
cristy8b350f62009-11-15 23:12:43 +000022156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000022157$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022158if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022159 $as_echo_n "(cached) " >&6
22160else
22161 echo '#! /bin/cat
22162exit 69
22163' >conftest
22164chmod u+x conftest
22165(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
22166if test $? -ne 69; then
22167 ac_cv_sys_interpreter=yes
22168else
22169 ac_cv_sys_interpreter=no
22170fi
22171rm -f conftest
22172fi
cristy8b350f62009-11-15 23:12:43 +000022173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000022174$as_echo "$ac_cv_sys_interpreter" >&6; }
22175interpval=$ac_cv_sys_interpreter
22176
22177
cristye80f9cb2013-01-09 01:09:31 +000022178#
22179# Checks for language qualifiers and semantics.
22180#
22181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
22182$as_echo_n "checking whether char is unsigned... " >&6; }
22183if ${ac_cv_c_char_unsigned+:} false; then :
22184 $as_echo_n "(cached) " >&6
22185else
22186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22187/* end confdefs.h. */
22188$ac_includes_default
22189int
22190main ()
22191{
22192static int test_array [1 - 2 * !(((char) -1) < 0)];
22193test_array [0] = 0;
22194return test_array [0];
22195
22196 ;
22197 return 0;
22198}
22199_ACEOF
22200if ac_fn_c_try_compile "$LINENO"; then :
22201 ac_cv_c_char_unsigned=no
22202else
22203 ac_cv_c_char_unsigned=yes
22204fi
22205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22206fi
22207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
22208$as_echo "$ac_cv_c_char_unsigned" >&6; }
22209if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
22210 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
22211
22212fi
22213
22214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
22215$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
22216if ${ac_cv_c_const+:} false; then :
22217 $as_echo_n "(cached) " >&6
22218else
22219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22220/* end confdefs.h. */
22221
22222int
22223main ()
22224{
22225
22226#ifndef __cplusplus
22227 /* Ultrix mips cc rejects this sort of thing. */
22228 typedef int charset[2];
22229 const charset cs = { 0, 0 };
22230 /* SunOS 4.1.1 cc rejects this. */
22231 char const *const *pcpcc;
22232 char **ppc;
22233 /* NEC SVR4.0.2 mips cc rejects this. */
22234 struct point {int x, y;};
22235 static struct point const zero = {0,0};
22236 /* AIX XL C 1.02.0.0 rejects this.
22237 It does not let you subtract one const X* pointer from another in
22238 an arm of an if-expression whose if-part is not a constant
22239 expression */
22240 const char *g = "string";
22241 pcpcc = &g + (g ? g-g : 0);
22242 /* HPUX 7.0 cc rejects these. */
22243 ++pcpcc;
22244 ppc = (char**) pcpcc;
22245 pcpcc = (char const *const *) ppc;
22246 { /* SCO 3.2v4 cc rejects this sort of thing. */
22247 char tx;
22248 char *t = &tx;
22249 char const *s = 0 ? (char *) 0 : (char const *) 0;
22250
22251 *t++ = 0;
22252 if (s) return 0;
22253 }
22254 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22255 int x[] = {25, 17};
22256 const int *foo = &x[0];
22257 ++foo;
22258 }
22259 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22260 typedef const int *iptr;
22261 iptr p = 0;
22262 ++p;
22263 }
22264 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
22265 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22266 struct s { int j; const int *ap[3]; } bx;
22267 struct s *b = &bx; b->j = 5;
22268 }
22269 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22270 const int foo = 10;
22271 if (!foo) return 0;
22272 }
22273 return !cs[0] && !zero.x;
22274#endif
22275
22276 ;
22277 return 0;
22278}
22279_ACEOF
22280if ac_fn_c_try_compile "$LINENO"; then :
22281 ac_cv_c_const=yes
22282else
22283 ac_cv_c_const=no
22284fi
22285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22286fi
22287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
22288$as_echo "$ac_cv_c_const" >&6; }
22289if test $ac_cv_c_const = no; then
22290
22291$as_echo "#define const /**/" >>confdefs.h
22292
22293fi
22294
cristy8b350f62009-11-15 23:12:43 +000022295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022296$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022297if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022298 $as_echo_n "(cached) " >&6
22299else
22300 ac_cv_c_inline=no
22301for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000022302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022303/* end confdefs.h. */
22304#ifndef __cplusplus
22305typedef int foo_t;
22306static $ac_kw foo_t static_foo () {return 0; }
22307$ac_kw foo_t foo () {return 0; }
22308#endif
22309
22310_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022311if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022312 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022313fi
cristy3ed852e2009-09-05 21:47:34 +000022314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22315 test "$ac_cv_c_inline" != no && break
22316done
22317
22318fi
cristy8b350f62009-11-15 23:12:43 +000022319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022320$as_echo "$ac_cv_c_inline" >&6; }
22321
cristy3ed852e2009-09-05 21:47:34 +000022322case $ac_cv_c_inline in
22323 inline | yes) ;;
22324 *)
22325 case $ac_cv_c_inline in
22326 no) ac_val=;;
22327 *) ac_val=$ac_cv_c_inline;;
22328 esac
22329 cat >>confdefs.h <<_ACEOF
22330#ifndef __cplusplus
22331#define inline $ac_val
22332#endif
22333_ACEOF
22334 ;;
22335esac
22336
cristy8b350f62009-11-15 23:12:43 +000022337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000022338$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022339if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022340 $as_echo_n "(cached) " >&6
22341else
22342 ac_cv_c_restrict=no
22343 # The order here caters to the fact that C++ does not require restrict.
22344 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000022345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022346/* end confdefs.h. */
22347typedef int * int_ptr;
22348 int foo (int_ptr $ac_kw ip) {
22349 return ip[0];
22350 }
22351int
22352main ()
22353{
22354int s[1];
22355 int * $ac_kw t = s;
22356 t[0] = 0;
22357 return foo(t)
22358 ;
22359 return 0;
22360}
22361_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022362if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022363 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022364fi
cristy3ed852e2009-09-05 21:47:34 +000022365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22366 test "$ac_cv_c_restrict" != no && break
22367 done
22368
22369fi
cristy8b350f62009-11-15 23:12:43 +000022370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000022371$as_echo "$ac_cv_c_restrict" >&6; }
22372
cristy3ed852e2009-09-05 21:47:34 +000022373 case $ac_cv_c_restrict in
22374 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000022375 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022376 ;;
22377 *) cat >>confdefs.h <<_ACEOF
22378#define restrict $ac_cv_c_restrict
22379_ACEOF
22380 ;;
22381 esac
22382
cristye80f9cb2013-01-09 01:09:31 +000022383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
22384$as_echo_n "checking for working volatile... " >&6; }
22385if ${ac_cv_c_volatile+:} false; then :
22386 $as_echo_n "(cached) " >&6
22387else
22388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22389/* end confdefs.h. */
22390
22391int
22392main ()
22393{
22394
22395volatile int x;
22396int * volatile y = (int *) 0;
22397return !x && !y;
22398 ;
22399 return 0;
22400}
22401_ACEOF
22402if ac_fn_c_try_compile "$LINENO"; then :
22403 ac_cv_c_volatile=yes
22404else
22405 ac_cv_c_volatile=no
22406fi
22407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22408fi
22409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
22410$as_echo "$ac_cv_c_volatile" >&6; }
22411if test $ac_cv_c_volatile = no; then
22412
22413$as_echo "#define volatile /**/" >>confdefs.h
22414
22415fi
22416
cristy3ed852e2009-09-05 21:47:34 +000022417
22418# If words are stored with the most significant byte first (like
22419# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000022420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022421$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022422if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022423 $as_echo_n "(cached) " >&6
22424else
22425 ac_cv_c_bigendian=unknown
22426 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000022427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022428/* end confdefs.h. */
22429#ifndef __APPLE_CC__
22430 not a universal capable compiler
22431 #endif
22432 typedef int dummy;
22433
22434_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022435if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022436
22437 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000022438 # there are at least two -arch flags with different values.
22439 ac_arch=
22440 ac_prev=
22441 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22442 if test -n "$ac_prev"; then
22443 case $ac_word in
22444 i?86 | x86_64 | ppc | ppc64)
22445 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22446 ac_arch=$ac_word
22447 else
22448 ac_cv_c_bigendian=universal
22449 break
22450 fi
22451 ;;
22452 esac
22453 ac_prev=
22454 elif test "x$ac_word" = "x-arch"; then
22455 ac_prev=arch
22456 fi
22457 done
cristy3ed852e2009-09-05 21:47:34 +000022458fi
cristy3ed852e2009-09-05 21:47:34 +000022459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22460 if test $ac_cv_c_bigendian = unknown; then
22461 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000022462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022463/* end confdefs.h. */
22464#include <sys/types.h>
22465 #include <sys/param.h>
22466
22467int
22468main ()
22469{
22470#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22471 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22472 && LITTLE_ENDIAN)
22473 bogus endian macros
22474 #endif
22475
22476 ;
22477 return 0;
22478}
22479_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022480if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022481 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022483/* end confdefs.h. */
22484#include <sys/types.h>
22485 #include <sys/param.h>
22486
22487int
22488main ()
22489{
22490#if BYTE_ORDER != BIG_ENDIAN
22491 not big endian
22492 #endif
22493
22494 ;
22495 return 0;
22496}
22497_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022498if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022499 ac_cv_c_bigendian=yes
22500else
cristy8b350f62009-11-15 23:12:43 +000022501 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022502fi
cristy3ed852e2009-09-05 21:47:34 +000022503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022504fi
cristy3ed852e2009-09-05 21:47:34 +000022505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22506 fi
22507 if test $ac_cv_c_bigendian = unknown; then
22508 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000022509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022510/* end confdefs.h. */
22511#include <limits.h>
22512
22513int
22514main ()
22515{
22516#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22517 bogus endian macros
22518 #endif
22519
22520 ;
22521 return 0;
22522}
22523_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022524if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022525 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022527/* end confdefs.h. */
22528#include <limits.h>
22529
22530int
22531main ()
22532{
22533#ifndef _BIG_ENDIAN
22534 not big endian
22535 #endif
22536
22537 ;
22538 return 0;
22539}
22540_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022541if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022542 ac_cv_c_bigendian=yes
22543else
cristy8b350f62009-11-15 23:12:43 +000022544 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022545fi
cristy3ed852e2009-09-05 21:47:34 +000022546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022547fi
cristy3ed852e2009-09-05 21:47:34 +000022548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22549 fi
22550 if test $ac_cv_c_bigendian = unknown; then
22551 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000022552 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022553 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000022554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022555/* end confdefs.h. */
22556short int ascii_mm[] =
22557 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22558 short int ascii_ii[] =
22559 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22560 int use_ascii (int i) {
22561 return ascii_mm[i] + ascii_ii[i];
22562 }
22563 short int ebcdic_ii[] =
22564 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22565 short int ebcdic_mm[] =
22566 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22567 int use_ebcdic (int i) {
22568 return ebcdic_mm[i] + ebcdic_ii[i];
22569 }
22570 extern int foo;
22571
22572int
22573main ()
22574{
22575return use_ascii (foo) == use_ebcdic (foo);
22576 ;
22577 return 0;
22578}
22579_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022580if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022581 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22582 ac_cv_c_bigendian=yes
22583 fi
22584 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22585 if test "$ac_cv_c_bigendian" = unknown; then
22586 ac_cv_c_bigendian=no
22587 else
22588 # finding both strings is unlikely to happen, but who knows?
22589 ac_cv_c_bigendian=unknown
22590 fi
22591 fi
cristy3ed852e2009-09-05 21:47:34 +000022592fi
cristy3ed852e2009-09-05 21:47:34 +000022593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22594else
cristy8b350f62009-11-15 23:12:43 +000022595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022596/* end confdefs.h. */
22597$ac_includes_default
22598int
22599main ()
22600{
22601
22602 /* Are we little or big endian? From Harbison&Steele. */
22603 union
22604 {
22605 long int l;
22606 char c[sizeof (long int)];
22607 } u;
22608 u.l = 1;
22609 return u.c[sizeof (long int) - 1] == 1;
22610
22611 ;
22612 return 0;
22613}
22614_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022615if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022616 ac_cv_c_bigendian=no
22617else
cristy8b350f62009-11-15 23:12:43 +000022618 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000022619fi
cristy8b350f62009-11-15 23:12:43 +000022620rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22621 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022622fi
22623
cristy3ed852e2009-09-05 21:47:34 +000022624 fi
22625fi
cristy8b350f62009-11-15 23:12:43 +000022626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022627$as_echo "$ac_cv_c_bigendian" >&6; }
22628 case $ac_cv_c_bigendian in #(
22629 yes)
cristy8b350f62009-11-15 23:12:43 +000022630 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022631;; #(
22632 no)
22633 ;; #(
22634 universal)
22635
cristy8b350f62009-11-15 23:12:43 +000022636$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022637
22638 ;; #(
22639 *)
cristy98dddb52010-11-04 00:30:15 +000022640 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000022641 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000022642 esac
22643
22644
cristy501c8042011-05-26 17:46:28 +000022645# Define to a suitable type, if standard headers do not define it.
22646ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
22647case $ac_cv_c_int8_t in #(
22648 no|yes) ;; #(
22649 *)
cristy3ed852e2009-09-05 21:47:34 +000022650
22651cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022652#define int8_t $ac_cv_c_int8_t
22653_ACEOF
22654;;
22655esac
22656
22657ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
22658case $ac_cv_c_int16_t in #(
22659 no|yes) ;; #(
22660 *)
22661
22662cat >>confdefs.h <<_ACEOF
22663#define int16_t $ac_cv_c_int16_t
22664_ACEOF
22665;;
22666esac
22667
22668ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
22669case $ac_cv_c_int32_t in #(
22670 no|yes) ;; #(
22671 *)
22672
22673cat >>confdefs.h <<_ACEOF
22674#define int32_t $ac_cv_c_int32_t
22675_ACEOF
22676;;
22677esac
22678
22679ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
22680case $ac_cv_c_int64_t in #(
22681 no|yes) ;; #(
22682 *)
22683
22684cat >>confdefs.h <<_ACEOF
22685#define int64_t $ac_cv_c_int64_t
22686_ACEOF
22687;;
22688esac
22689
22690
cristy045228a2013-06-23 11:00:16 +000022691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
22692$as_echo_n "checking for unsigned long long int... " >&6; }
22693if ${ac_cv_type_unsigned_long_long_int+:} false; then :
cristy501c8042011-05-26 17:46:28 +000022694 $as_echo_n "(cached) " >&6
22695else
cristy045228a2013-06-23 11:00:16 +000022696 ac_cv_type_unsigned_long_long_int=yes
22697 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
22698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000022699/* end confdefs.h. */
22700
22701 /* For now, do not test the preprocessor; as of 2007 there are too many
cristy5ed9c6e2013-07-14 21:20:31 +000022702 implementations with broken preprocessors. Perhaps this can
22703 be revisited in 2012. In the meantime, code should not expect
22704 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000022705 /* Test literals. */
22706 long long int ll = 9223372036854775807ll;
22707 long long int nll = -9223372036854775807LL;
22708 unsigned long long int ull = 18446744073709551615ULL;
22709 /* Test constant expressions. */
22710 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristy5ed9c6e2013-07-14 21:20:31 +000022711 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000022712 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristy5ed9c6e2013-07-14 21:20:31 +000022713 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000022714 int i = 63;
22715int
22716main ()
22717{
22718/* Test availability of runtime routines for shift and division. */
22719 long long int llmax = 9223372036854775807ll;
22720 unsigned long long int ullmax = 18446744073709551615ull;
22721 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristy5ed9c6e2013-07-14 21:20:31 +000022722 | (llmax / ll) | (llmax % ll)
22723 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22724 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000022725 ;
22726 return 0;
22727}
22728
22729_ACEOF
22730if ac_fn_c_try_link "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000022731
22732else
22733 ac_cv_type_unsigned_long_long_int=no
22734fi
22735rm -f core conftest.err conftest.$ac_objext \
22736 conftest$ac_exeext conftest.$ac_ext
22737 fi
22738fi
22739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
22740$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
22741 if test $ac_cv_type_unsigned_long_long_int = yes; then
22742
22743$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
22744
22745 fi
22746
22747
22748
22749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22750$as_echo_n "checking for long long int... " >&6; }
22751if ${ac_cv_type_long_long_int+:} false; then :
22752 $as_echo_n "(cached) " >&6
22753else
cristy501c8042011-05-26 17:46:28 +000022754 ac_cv_type_long_long_int=yes
cristy045228a2013-06-23 11:00:16 +000022755 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
cristy5ed9c6e2013-07-14 21:20:31 +000022756 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
22757 if test $ac_cv_type_long_long_int = yes; then
22758 if test "$cross_compiling" = yes; then :
cristy045228a2013-06-23 11:00:16 +000022759 :
cristy501c8042011-05-26 17:46:28 +000022760else
22761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22762/* end confdefs.h. */
22763#include <limits.h>
cristy5ed9c6e2013-07-14 21:20:31 +000022764 #ifndef LLONG_MAX
22765 # define HALF \
22766 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22767 # define LLONG_MAX (HALF - 1 + HALF)
22768 #endif
cristy501c8042011-05-26 17:46:28 +000022769int
22770main ()
22771{
22772long long int n = 1;
cristy5ed9c6e2013-07-14 21:20:31 +000022773 int i;
22774 for (i = 0; ; i++)
22775 {
22776 long long int m = n << i;
22777 if (m >> i != n)
22778 return 1;
22779 if (LLONG_MAX / 2 < m)
22780 break;
22781 }
22782 return 0;
cristy501c8042011-05-26 17:46:28 +000022783 ;
22784 return 0;
22785}
22786_ACEOF
22787if ac_fn_c_try_run "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000022788
cristy501c8042011-05-26 17:46:28 +000022789else
22790 ac_cv_type_long_long_int=no
22791fi
22792rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22793 conftest.$ac_objext conftest.beam conftest.$ac_ext
22794fi
22795
cristy5ed9c6e2013-07-14 21:20:31 +000022796 fi
cristy045228a2013-06-23 11:00:16 +000022797 fi
cristy501c8042011-05-26 17:46:28 +000022798fi
22799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22800$as_echo "$ac_cv_type_long_long_int" >&6; }
22801 if test $ac_cv_type_long_long_int = yes; then
22802
22803$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22804
22805 fi
22806
22807
22808
22809 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
22810if test "x$ac_cv_type_intmax_t" = xyes; then :
22811
22812$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
22813
22814else
22815 test $ac_cv_type_long_long_int = yes \
22816 && ac_type='long long int' \
22817 || ac_type='long int'
22818
22819cat >>confdefs.h <<_ACEOF
22820#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022821_ACEOF
22822
22823fi
22824
22825
cristy501c8042011-05-26 17:46:28 +000022826
22827 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
22828if test "x$ac_cv_type_intptr_t" = xyes; then :
22829
22830$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022831
cristy3ed852e2009-09-05 21:47:34 +000022832else
cristy501c8042011-05-26 17:46:28 +000022833 for ac_type in 'int' 'long int' 'long long int'; do
22834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22835/* end confdefs.h. */
22836$ac_includes_default
22837int
22838main ()
22839{
22840static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000022841test_array [0] = 0;
22842return test_array [0];
cristy501c8042011-05-26 17:46:28 +000022843
22844 ;
22845 return 0;
22846}
22847_ACEOF
22848if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022849
22850cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022851#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022852_ACEOF
22853
cristy501c8042011-05-26 17:46:28 +000022854 ac_type=
22855fi
22856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22857 test -z "$ac_type" && break
22858 done
cristy3ed852e2009-09-05 21:47:34 +000022859fi
22860
22861
cristy3ed852e2009-09-05 21:47:34 +000022862
cristy501c8042011-05-26 17:46:28 +000022863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
22864$as_echo_n "checking for long double... " >&6; }
22865if ${ac_cv_type_long_double+:} false; then :
22866 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000022867else
cristy501c8042011-05-26 17:46:28 +000022868 if test "$GCC" = yes; then
22869 ac_cv_type_long_double=yes
22870 else
22871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22872/* end confdefs.h. */
22873/* The Stardent Vistra knows sizeof (long double), but does
22874 not support it. */
22875 long double foo = 0.0L;
22876int
22877main ()
22878{
22879static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
22880 sizeof (double) <= sizeof (long double))];
cristy14fefe52012-05-21 00:59:18 +000022881test_array [0] = 0;
22882return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000022883
cristy501c8042011-05-26 17:46:28 +000022884 ;
22885 return 0;
22886}
cristy3ed852e2009-09-05 21:47:34 +000022887_ACEOF
cristy501c8042011-05-26 17:46:28 +000022888if ac_fn_c_try_compile "$LINENO"; then :
22889 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000022890else
cristy501c8042011-05-26 17:46:28 +000022891 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000022892fi
cristy501c8042011-05-26 17:46:28 +000022893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22894 fi
cristy3ed852e2009-09-05 21:47:34 +000022895fi
cristy501c8042011-05-26 17:46:28 +000022896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
22897$as_echo "$ac_cv_type_long_double" >&6; }
22898 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000022899
cristy501c8042011-05-26 17:46:28 +000022900$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022901
cristy501c8042011-05-26 17:46:28 +000022902 fi
22903
cristy3ed852e2009-09-05 21:47:34 +000022904
cristy8b350f62009-11-15 23:12:43 +000022905 { $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 +000022906$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022907if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022908 $as_echo_n "(cached) " >&6
22909else
cristy8b350f62009-11-15 23:12:43 +000022910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022911/* end confdefs.h. */
22912#include <float.h>
22913 long double const a[] =
22914 {
22915 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
22916 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
22917 };
22918 long double
22919 f (long double x)
22920 {
22921 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
22922 + (x ? f (x) : 'c'));
22923 }
22924
22925int
22926main ()
22927{
22928static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
22929 + (DBL_MANT_DIG < LDBL_MANT_DIG)
22930 - (LDBL_MAX_EXP < DBL_MAX_EXP)
22931 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
22932 && (int) LDBL_EPSILON == 0
22933 )];
cristy14fefe52012-05-21 00:59:18 +000022934test_array [0] = 0;
22935return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000022936
22937 ;
22938 return 0;
22939}
22940_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022941if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022942 ac_cv_type_long_double_wider=yes
22943else
cristy8b350f62009-11-15 23:12:43 +000022944 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000022945fi
cristy3ed852e2009-09-05 21:47:34 +000022946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22947fi
cristy8b350f62009-11-15 23:12:43 +000022948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000022949$as_echo "$ac_cv_type_long_double_wider" >&6; }
22950 if test $ac_cv_type_long_double_wider = yes; then
22951
cristy8b350f62009-11-15 23:12:43 +000022952$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022953
22954 fi
22955
22956
cristy045228a2013-06-23 11:00:16 +000022957
cristy501c8042011-05-26 17:46:28 +000022958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22959$as_echo_n "checking for long long int... " >&6; }
22960if ${ac_cv_type_long_long_int+:} false; then :
22961 $as_echo_n "(cached) " >&6
22962else
cristy501c8042011-05-26 17:46:28 +000022963 ac_cv_type_long_long_int=yes
cristy045228a2013-06-23 11:00:16 +000022964 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
cristy5ed9c6e2013-07-14 21:20:31 +000022965 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
22966 if test $ac_cv_type_long_long_int = yes; then
22967 if test "$cross_compiling" = yes; then :
cristy045228a2013-06-23 11:00:16 +000022968 :
cristy501c8042011-05-26 17:46:28 +000022969else
22970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22971/* end confdefs.h. */
22972#include <limits.h>
cristy5ed9c6e2013-07-14 21:20:31 +000022973 #ifndef LLONG_MAX
22974 # define HALF \
22975 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22976 # define LLONG_MAX (HALF - 1 + HALF)
22977 #endif
cristy501c8042011-05-26 17:46:28 +000022978int
22979main ()
22980{
22981long long int n = 1;
cristy5ed9c6e2013-07-14 21:20:31 +000022982 int i;
22983 for (i = 0; ; i++)
22984 {
22985 long long int m = n << i;
22986 if (m >> i != n)
22987 return 1;
22988 if (LLONG_MAX / 2 < m)
22989 break;
22990 }
22991 return 0;
cristy501c8042011-05-26 17:46:28 +000022992 ;
22993 return 0;
22994}
22995_ACEOF
22996if ac_fn_c_try_run "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000022997
cristy501c8042011-05-26 17:46:28 +000022998else
22999 ac_cv_type_long_long_int=no
23000fi
23001rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23002 conftest.$ac_objext conftest.beam conftest.$ac_ext
23003fi
23004
cristy5ed9c6e2013-07-14 21:20:31 +000023005 fi
cristy045228a2013-06-23 11:00:16 +000023006 fi
cristy501c8042011-05-26 17:46:28 +000023007fi
23008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23009$as_echo "$ac_cv_type_long_long_int" >&6; }
23010 if test $ac_cv_type_long_long_int = yes; then
23011
23012$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23013
23014 fi
23015
23016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
23017$as_echo_n "checking for mbstate_t... " >&6; }
23018if ${ac_cv_type_mbstate_t+:} false; then :
23019 $as_echo_n "(cached) " >&6
23020else
23021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23022/* end confdefs.h. */
23023$ac_includes_default
23024# include <wchar.h>
23025int
23026main ()
23027{
23028mbstate_t x; return sizeof x;
23029 ;
23030 return 0;
23031}
23032_ACEOF
23033if ac_fn_c_try_compile "$LINENO"; then :
23034 ac_cv_type_mbstate_t=yes
23035else
23036 ac_cv_type_mbstate_t=no
23037fi
23038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23039fi
23040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
23041$as_echo "$ac_cv_type_mbstate_t" >&6; }
23042 if test $ac_cv_type_mbstate_t = yes; then
23043
23044$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
23045
23046 else
23047
23048$as_echo "#define mbstate_t int" >>confdefs.h
23049
23050 fi
23051ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
23052if test "x$ac_cv_type_mode_t" = xyes; then :
23053
23054else
23055
23056cat >>confdefs.h <<_ACEOF
23057#define mode_t int
23058_ACEOF
23059
23060fi
23061
23062ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
23063if test "x$ac_cv_type_off_t" = xyes; then :
23064
23065else
23066
23067cat >>confdefs.h <<_ACEOF
23068#define off_t long int
23069_ACEOF
23070
23071fi
23072
23073ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
23074if test "x$ac_cv_type_pid_t" = xyes; then :
23075
23076else
23077
23078cat >>confdefs.h <<_ACEOF
23079#define pid_t int
23080_ACEOF
23081
23082fi
23083
23084ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
23085if test "x$ac_cv_type_size_t" = xyes; then :
23086
23087else
23088
23089cat >>confdefs.h <<_ACEOF
23090#define size_t unsigned int
23091_ACEOF
23092
23093fi
23094
23095ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23096if test "x$ac_cv_type_ssize_t" = xyes; then :
23097
23098else
23099
23100cat >>confdefs.h <<_ACEOF
23101#define ssize_t int
23102_ACEOF
23103
23104fi
23105
23106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
23107$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
23108if ${ac_cv_type_uid_t+:} false; then :
23109 $as_echo_n "(cached) " >&6
23110else
23111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23112/* end confdefs.h. */
23113#include <sys/types.h>
23114
23115_ACEOF
23116if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23117 $EGREP "uid_t" >/dev/null 2>&1; then :
23118 ac_cv_type_uid_t=yes
23119else
23120 ac_cv_type_uid_t=no
23121fi
23122rm -f conftest*
23123
23124fi
23125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
23126$as_echo "$ac_cv_type_uid_t" >&6; }
23127if test $ac_cv_type_uid_t = no; then
23128
23129$as_echo "#define uid_t int" >>confdefs.h
23130
23131
23132$as_echo "#define gid_t int" >>confdefs.h
23133
23134fi
23135
23136ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
23137case $ac_cv_c_uint8_t in #(
23138 no|yes) ;; #(
23139 *)
23140
23141$as_echo "#define _UINT8_T 1" >>confdefs.h
23142
23143
23144cat >>confdefs.h <<_ACEOF
23145#define uint8_t $ac_cv_c_uint8_t
23146_ACEOF
23147;;
23148 esac
23149
23150ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
23151case $ac_cv_c_uint16_t in #(
23152 no|yes) ;; #(
23153 *)
23154
23155
23156cat >>confdefs.h <<_ACEOF
23157#define uint16_t $ac_cv_c_uint16_t
23158_ACEOF
23159;;
23160 esac
23161
23162ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
23163case $ac_cv_c_uint32_t in #(
23164 no|yes) ;; #(
23165 *)
23166
23167$as_echo "#define _UINT32_T 1" >>confdefs.h
23168
23169
23170cat >>confdefs.h <<_ACEOF
23171#define uint32_t $ac_cv_c_uint32_t
23172_ACEOF
23173;;
23174 esac
23175
23176ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
23177case $ac_cv_c_uint64_t in #(
23178 no|yes) ;; #(
23179 *)
23180
23181$as_echo "#define _UINT64_T 1" >>confdefs.h
23182
23183
23184cat >>confdefs.h <<_ACEOF
23185#define uint64_t $ac_cv_c_uint64_t
23186_ACEOF
23187;;
23188 esac
23189
23190
cristy501c8042011-05-26 17:46:28 +000023191
23192 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
23193if test "x$ac_cv_type_uintmax_t" = xyes; then :
23194
23195$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
23196
23197else
23198 test $ac_cv_type_unsigned_long_long_int = yes \
23199 && ac_type='unsigned long long int' \
23200 || ac_type='unsigned long int'
23201
23202cat >>confdefs.h <<_ACEOF
23203#define uintmax_t $ac_type
23204_ACEOF
23205
23206fi
23207
23208
23209
23210 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23211if test "x$ac_cv_type_uintptr_t" = xyes; then :
23212
23213$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
23214
23215else
23216 for ac_type in 'unsigned int' 'unsigned long int' \
23217 'unsigned long long int'; do
23218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23219/* end confdefs.h. */
23220$ac_includes_default
23221int
23222main ()
23223{
23224static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000023225test_array [0] = 0;
23226return test_array [0];
cristy501c8042011-05-26 17:46:28 +000023227
23228 ;
23229 return 0;
23230}
23231_ACEOF
23232if ac_fn_c_try_compile "$LINENO"; then :
23233
23234cat >>confdefs.h <<_ACEOF
23235#define uintptr_t $ac_type
23236_ACEOF
23237
23238 ac_type=
23239fi
23240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23241 test -z "$ac_type" && break
23242 done
23243fi
23244
23245
23246
23247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23248$as_echo_n "checking for unsigned long long int... " >&6; }
23249if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23250 $as_echo_n "(cached) " >&6
23251else
cristy045228a2013-06-23 11:00:16 +000023252 ac_cv_type_unsigned_long_long_int=yes
23253 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
23254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000023255/* end confdefs.h. */
23256
23257 /* For now, do not test the preprocessor; as of 2007 there are too many
cristy5ed9c6e2013-07-14 21:20:31 +000023258 implementations with broken preprocessors. Perhaps this can
23259 be revisited in 2012. In the meantime, code should not expect
23260 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000023261 /* Test literals. */
23262 long long int ll = 9223372036854775807ll;
23263 long long int nll = -9223372036854775807LL;
23264 unsigned long long int ull = 18446744073709551615ULL;
23265 /* Test constant expressions. */
23266 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristy5ed9c6e2013-07-14 21:20:31 +000023267 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023268 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristy5ed9c6e2013-07-14 21:20:31 +000023269 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023270 int i = 63;
23271int
23272main ()
23273{
23274/* Test availability of runtime routines for shift and division. */
23275 long long int llmax = 9223372036854775807ll;
23276 unsigned long long int ullmax = 18446744073709551615ull;
23277 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristy5ed9c6e2013-07-14 21:20:31 +000023278 | (llmax / ll) | (llmax % ll)
23279 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23280 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000023281 ;
23282 return 0;
23283}
23284
23285_ACEOF
23286if ac_fn_c_try_link "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023287
cristy501c8042011-05-26 17:46:28 +000023288else
23289 ac_cv_type_unsigned_long_long_int=no
23290fi
23291rm -f core conftest.err conftest.$ac_objext \
23292 conftest$ac_exeext conftest.$ac_ext
cristy045228a2013-06-23 11:00:16 +000023293 fi
cristy501c8042011-05-26 17:46:28 +000023294fi
23295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23296$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23297 if test $ac_cv_type_unsigned_long_long_int = yes; then
23298
23299$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23300
23301 fi
23302
23303
cristyfec31822013-05-23 12:32:12 +000023304# Float_t and double_t are intended to be the the most efficient type.
23305ac_fn_c_check_type "$LINENO" "float_t" "ac_cv_type_float_t" "#include <math.h>
23306"
23307if test "x$ac_cv_type_float_t" = xyes; then :
23308
23309cat >>confdefs.h <<_ACEOF
23310#define HAVE_FLOAT_T 1
23311_ACEOF
23312
23313
23314fi
23315
23316ac_fn_c_check_type "$LINENO" "double_t" "ac_cv_type_double_t" "#include <math.h>
23317"
23318if test "x$ac_cv_type_double_t" = xyes; then :
23319
23320cat >>confdefs.h <<_ACEOF
23321#define HAVE_DOUBLE_T 1
23322_ACEOF
23323
23324
23325fi
23326
23327# The cast to long int works around a bug in the HP C Compiler
23328# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23329# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23330# This bug is HP SR number 8606223364.
23331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float_t" >&5
23332$as_echo_n "checking size of float_t... " >&6; }
23333if ${ac_cv_sizeof_float_t+:} false; then :
23334 $as_echo_n "(cached) " >&6
23335else
23336 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float_t))" "ac_cv_sizeof_float_t" "#include <math.h>
23337"; then :
23338
23339else
23340 if test "$ac_cv_type_float_t" = yes; then
23341 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23342$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23343as_fn_error 77 "cannot compute sizeof (float_t)
23344See \`config.log' for more details" "$LINENO" 5; }
23345 else
23346 ac_cv_sizeof_float_t=0
23347 fi
23348fi
23349
23350fi
23351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float_t" >&5
23352$as_echo "$ac_cv_sizeof_float_t" >&6; }
23353
23354
23355
23356cat >>confdefs.h <<_ACEOF
23357#define SIZEOF_FLOAT_T $ac_cv_sizeof_float_t
23358_ACEOF
23359
23360
23361# The cast to long int works around a bug in the HP C Compiler
23362# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23363# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23364# This bug is HP SR number 8606223364.
23365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double_t" >&5
23366$as_echo_n "checking size of double_t... " >&6; }
23367if ${ac_cv_sizeof_double_t+:} false; then :
23368 $as_echo_n "(cached) " >&6
23369else
23370 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double_t))" "ac_cv_sizeof_double_t" "#include <math.h>
23371"; then :
23372
23373else
23374 if test "$ac_cv_type_double_t" = yes; then
23375 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23376$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23377as_fn_error 77 "cannot compute sizeof (double_t)
23378See \`config.log' for more details" "$LINENO" 5; }
23379 else
23380 ac_cv_sizeof_double_t=0
23381 fi
23382fi
23383
23384fi
23385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double_t" >&5
23386$as_echo "$ac_cv_sizeof_double_t" >&6; }
23387
23388
23389
23390cat >>confdefs.h <<_ACEOF
23391#define SIZEOF_DOUBLE_T $ac_cv_sizeof_double_t
23392_ACEOF
23393
23394
23395
cristy9b86f202012-11-28 21:55:35 +000023396# Get size of float, double and long double for comparaison.
23397# The cast to long int works around a bug in the HP C Compiler
23398# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23399# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23400# This bug is HP SR number 8606223364.
23401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
23402$as_echo_n "checking size of float... " >&6; }
23403if ${ac_cv_sizeof_float+:} false; then :
23404 $as_echo_n "(cached) " >&6
23405else
23406 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
23407
23408else
23409 if test "$ac_cv_type_float" = yes; then
23410 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23411$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23412as_fn_error 77 "cannot compute sizeof (float)
23413See \`config.log' for more details" "$LINENO" 5; }
23414 else
23415 ac_cv_sizeof_float=0
23416 fi
23417fi
23418
23419fi
23420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
23421$as_echo "$ac_cv_sizeof_float" >&6; }
23422
23423
23424
23425cat >>confdefs.h <<_ACEOF
23426#define SIZEOF_FLOAT $ac_cv_sizeof_float
23427_ACEOF
23428
23429
23430# The cast to long int works around a bug in the HP C Compiler
23431# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23432# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23433# This bug is HP SR number 8606223364.
23434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
23435$as_echo_n "checking size of double... " >&6; }
23436if ${ac_cv_sizeof_double+:} false; then :
23437 $as_echo_n "(cached) " >&6
23438else
23439 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
23440
23441else
23442 if test "$ac_cv_type_double" = yes; then
23443 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23444$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23445as_fn_error 77 "cannot compute sizeof (double)
23446See \`config.log' for more details" "$LINENO" 5; }
23447 else
23448 ac_cv_sizeof_double=0
23449 fi
23450fi
23451
23452fi
23453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
23454$as_echo "$ac_cv_sizeof_double" >&6; }
23455
23456
23457
23458cat >>confdefs.h <<_ACEOF
23459#define SIZEOF_DOUBLE $ac_cv_sizeof_double
23460_ACEOF
23461
23462
cristyfec31822013-05-23 12:32:12 +000023463# The cast to long int works around a bug in the HP C Compiler
23464# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23465# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23466# This bug is HP SR number 8606223364.
23467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
23468$as_echo_n "checking size of long double... " >&6; }
23469if ${ac_cv_sizeof_long_double+:} false; then :
23470 $as_echo_n "(cached) " >&6
23471else
23472 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
23473
23474else
23475 if test "$ac_cv_type_long_double" = yes; then
23476 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23477$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23478as_fn_error 77 "cannot compute sizeof (long double)
23479See \`config.log' for more details" "$LINENO" 5; }
23480 else
23481 ac_cv_sizeof_long_double=0
23482 fi
23483fi
23484
23485fi
23486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
23487$as_echo "$ac_cv_sizeof_long_double" >&6; }
23488
23489
23490
23491cat >>confdefs.h <<_ACEOF
23492#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
23493_ACEOF
23494
23495
cristyf0cf9a22012-10-24 12:05:01 +000023496
cristy3ed852e2009-09-05 21:47:34 +000023497# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
23498# The cast to long int works around a bug in the HP C Compiler
23499# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23500# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23501# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023503$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023504if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023505 $as_echo_n "(cached) " >&6
23506else
cristy8b350f62009-11-15 23:12:43 +000023507 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed short))" "ac_cv_sizeof_signed_short" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +000023508
cristy3ed852e2009-09-05 21:47:34 +000023509else
cristy8b350f62009-11-15 23:12:43 +000023510 if test "$ac_cv_type_signed_short" = yes; then
23511 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023512$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023513as_fn_error 77 "cannot compute sizeof (signed short)
23514See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023515 else
23516 ac_cv_sizeof_signed_short=0
23517 fi
23518fi
cristy8b350f62009-11-15 23:12:43 +000023519
cristy3ed852e2009-09-05 21:47:34 +000023520fi
cristy8b350f62009-11-15 23:12:43 +000023521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023522$as_echo "$ac_cv_sizeof_signed_short" >&6; }
23523
23524
23525
23526cat >>confdefs.h <<_ACEOF
23527#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
23528_ACEOF
23529
23530
23531
23532# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
23533# The cast to long int works around a bug in the HP C Compiler
23534# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23535# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23536# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023538$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023539if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023540 $as_echo_n "(cached) " >&6
23541else
cristy8b350f62009-11-15 23:12:43 +000023542 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +000023543
cristy3ed852e2009-09-05 21:47:34 +000023544else
cristy8b350f62009-11-15 23:12:43 +000023545 if test "$ac_cv_type_unsigned_short" = yes; then
23546 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023547$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023548as_fn_error 77 "cannot compute sizeof (unsigned short)
23549See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023550 else
23551 ac_cv_sizeof_unsigned_short=0
23552 fi
23553fi
cristy8b350f62009-11-15 23:12:43 +000023554
cristy3ed852e2009-09-05 21:47:34 +000023555fi
cristy8b350f62009-11-15 23:12:43 +000023556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023557$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
23558
23559
23560
23561cat >>confdefs.h <<_ACEOF
23562#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
23563_ACEOF
23564
23565
23566
23567# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
23568# The cast to long int works around a bug in the HP C Compiler
23569# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23570# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23571# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023573$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023574if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023575 $as_echo_n "(cached) " >&6
23576else
cristy8b350f62009-11-15 23:12:43 +000023577 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed int))" "ac_cv_sizeof_signed_int" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +000023578
cristy3ed852e2009-09-05 21:47:34 +000023579else
cristy8b350f62009-11-15 23:12:43 +000023580 if test "$ac_cv_type_signed_int" = yes; then
23581 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023582$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023583as_fn_error 77 "cannot compute sizeof (signed int)
23584See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023585 else
23586 ac_cv_sizeof_signed_int=0
23587 fi
23588fi
cristy8b350f62009-11-15 23:12:43 +000023589
cristy3ed852e2009-09-05 21:47:34 +000023590fi
cristy8b350f62009-11-15 23:12:43 +000023591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023592$as_echo "$ac_cv_sizeof_signed_int" >&6; }
23593
23594
23595
23596cat >>confdefs.h <<_ACEOF
23597#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
23598_ACEOF
23599
23600
23601
23602# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
23603# The cast to long int works around a bug in the HP C Compiler
23604# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23605# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23606# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023608$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023609if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023610 $as_echo_n "(cached) " >&6
23611else
cristy8b350f62009-11-15 23:12:43 +000023612 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +000023613
cristy3ed852e2009-09-05 21:47:34 +000023614else
cristy8b350f62009-11-15 23:12:43 +000023615 if test "$ac_cv_type_unsigned_int" = yes; then
23616 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023617$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023618as_fn_error 77 "cannot compute sizeof (unsigned int)
23619See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023620 else
23621 ac_cv_sizeof_unsigned_int=0
23622 fi
23623fi
cristy8b350f62009-11-15 23:12:43 +000023624
cristy3ed852e2009-09-05 21:47:34 +000023625fi
cristy8b350f62009-11-15 23:12:43 +000023626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023627$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
23628
23629
23630
23631cat >>confdefs.h <<_ACEOF
23632#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
23633_ACEOF
23634
23635
23636
23637# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
23638# The cast to long int works around a bug in the HP C Compiler
23639# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23640# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23641# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023643$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023644if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023645 $as_echo_n "(cached) " >&6
23646else
cristy8b350f62009-11-15 23:12:43 +000023647 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 +000023648
cristy3ed852e2009-09-05 21:47:34 +000023649else
cristy8b350f62009-11-15 23:12:43 +000023650 if test "$ac_cv_type_signed_long" = yes; then
23651 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023652$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023653as_fn_error 77 "cannot compute sizeof (signed long)
23654See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023655 else
23656 ac_cv_sizeof_signed_long=0
23657 fi
23658fi
cristy8b350f62009-11-15 23:12:43 +000023659
cristy3ed852e2009-09-05 21:47:34 +000023660fi
cristy8b350f62009-11-15 23:12:43 +000023661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023662$as_echo "$ac_cv_sizeof_signed_long" >&6; }
23663
23664
23665
23666cat >>confdefs.h <<_ACEOF
23667#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
23668_ACEOF
23669
23670
23671
23672# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
23673# The cast to long int works around a bug in the HP C Compiler
23674# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23675# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23676# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023678$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023679if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023680 $as_echo_n "(cached) " >&6
23681else
cristy8b350f62009-11-15 23:12:43 +000023682 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 +000023683
cristy3ed852e2009-09-05 21:47:34 +000023684else
cristy8b350f62009-11-15 23:12:43 +000023685 if test "$ac_cv_type_unsigned_long" = yes; then
23686 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023687$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023688as_fn_error 77 "cannot compute sizeof (unsigned long)
23689See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023690 else
23691 ac_cv_sizeof_unsigned_long=0
23692 fi
23693fi
cristy8b350f62009-11-15 23:12:43 +000023694
cristy3ed852e2009-09-05 21:47:34 +000023695fi
cristy8b350f62009-11-15 23:12:43 +000023696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023697$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
23698
23699
23700
23701cat >>confdefs.h <<_ACEOF
23702#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
23703_ACEOF
23704
23705
23706
23707# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
23708# 'signed long long' is not supported then the value defined is zero.
23709# The cast to long int works around a bug in the HP C Compiler
23710# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23711# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23712# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023714$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023715if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023716 $as_echo_n "(cached) " >&6
23717else
cristy8b350f62009-11-15 23:12:43 +000023718 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 +000023719
cristy3ed852e2009-09-05 21:47:34 +000023720else
cristy8b350f62009-11-15 23:12:43 +000023721 if test "$ac_cv_type_signed_long_long" = yes; then
23722 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023723$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023724as_fn_error 77 "cannot compute sizeof (signed long long)
23725See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023726 else
23727 ac_cv_sizeof_signed_long_long=0
23728 fi
23729fi
cristy8b350f62009-11-15 23:12:43 +000023730
cristy3ed852e2009-09-05 21:47:34 +000023731fi
cristy8b350f62009-11-15 23:12:43 +000023732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023733$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
23734
23735
23736
23737cat >>confdefs.h <<_ACEOF
23738#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
23739_ACEOF
23740
23741
23742
23743# Obtain size of a 'unsigned long long' and define as
23744# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
23745# supported then the value defined is zero.
23746# The cast to long int works around a bug in the HP C Compiler
23747# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23748# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23749# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023751$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023752if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023753 $as_echo_n "(cached) " >&6
23754else
cristy8b350f62009-11-15 23:12:43 +000023755 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 +000023756
cristy3ed852e2009-09-05 21:47:34 +000023757else
cristy8b350f62009-11-15 23:12:43 +000023758 if test "$ac_cv_type_unsigned_long_long" = yes; then
23759 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023760$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023761as_fn_error 77 "cannot compute sizeof (unsigned long long)
23762See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023763 else
23764 ac_cv_sizeof_unsigned_long_long=0
23765 fi
23766fi
cristy8b350f62009-11-15 23:12:43 +000023767
cristy3ed852e2009-09-05 21:47:34 +000023768fi
cristy8b350f62009-11-15 23:12:43 +000023769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023770$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
23771
23772
23773
23774cat >>confdefs.h <<_ACEOF
23775#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
23776_ACEOF
23777
23778
23779
cristyfec31822013-05-23 12:32:12 +000023780# Obtain size of off_t and define as SIZEOF_OFF_T
23781# The cast to long int works around a bug in the HP C Compiler
23782# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23783# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23784# This bug is HP SR number 8606223364.
23785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
23786$as_echo_n "checking size of off_t... " >&6; }
23787if ${ac_cv_sizeof_off_t+:} false; then :
23788 $as_echo_n "(cached) " >&6
23789else
23790 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
23791
23792else
23793 if test "$ac_cv_type_off_t" = yes; then
23794 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23795$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23796as_fn_error 77 "cannot compute sizeof (off_t)
23797See \`config.log' for more details" "$LINENO" 5; }
23798 else
23799 ac_cv_sizeof_off_t=0
23800 fi
23801fi
23802
23803fi
23804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
23805$as_echo "$ac_cv_sizeof_off_t" >&6; }
23806
23807
23808
23809cat >>confdefs.h <<_ACEOF
23810#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
23811_ACEOF
23812
23813
23814
23815# Obtain size of size_t and define as SIZEOF_SIZE_T
23816# The cast to long int works around a bug in the HP C Compiler
23817# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23818# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23819# This bug is HP SR number 8606223364.
23820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
23821$as_echo_n "checking size of size_t... " >&6; }
23822if ${ac_cv_sizeof_size_t+:} false; then :
23823 $as_echo_n "(cached) " >&6
23824else
23825 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
23826
23827else
23828 if test "$ac_cv_type_size_t" = yes; then
23829 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23830$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23831as_fn_error 77 "cannot compute sizeof (size_t)
23832See \`config.log' for more details" "$LINENO" 5; }
23833 else
23834 ac_cv_sizeof_size_t=0
23835 fi
23836fi
23837
23838fi
23839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
23840$as_echo "$ac_cv_sizeof_size_t" >&6; }
23841
23842
23843
23844cat >>confdefs.h <<_ACEOF
23845#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
23846_ACEOF
23847
23848
23849
23850# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
23851# The cast to long int works around a bug in the HP C Compiler
23852# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23853# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23854# This bug is HP SR number 8606223364.
23855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
23856$as_echo_n "checking size of ssize_t... " >&6; }
23857if ${ac_cv_sizeof_ssize_t+:} false; then :
23858 $as_echo_n "(cached) " >&6
23859else
23860 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
23861
23862else
23863 if test "$ac_cv_type_ssize_t" = yes; then
23864 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23865$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23866as_fn_error 77 "cannot compute sizeof (ssize_t)
23867See \`config.log' for more details" "$LINENO" 5; }
23868 else
23869 ac_cv_sizeof_ssize_t=0
23870 fi
23871fi
23872
23873fi
23874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
23875$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
23876
23877
23878
23879cat >>confdefs.h <<_ACEOF
23880#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
23881_ACEOF
23882
23883
23884
cristy3ed852e2009-09-05 21:47:34 +000023885# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
23886# The cast to long int works around a bug in the HP C Compiler
23887# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23888# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23889# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000023891$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023892if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023893 $as_echo_n "(cached) " >&6
23894else
cristy8b350f62009-11-15 23:12:43 +000023895 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 +000023896
cristy3ed852e2009-09-05 21:47:34 +000023897else
cristy8b350f62009-11-15 23:12:43 +000023898 if test "$ac_cv_type_unsigned_intp" = yes; then
23899 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023900$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023901as_fn_error 77 "cannot compute sizeof (unsigned int*)
23902See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023903 else
23904 ac_cv_sizeof_unsigned_intp=0
23905 fi
23906fi
cristy8b350f62009-11-15 23:12:43 +000023907
cristy3ed852e2009-09-05 21:47:34 +000023908fi
cristy8b350f62009-11-15 23:12:43 +000023909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023910$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
23911
23912
23913
23914cat >>confdefs.h <<_ACEOF
23915#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
23916_ACEOF
23917
23918
23919
23920#
23921# Compute sized types for current CPU and compiler options.
23922#
23923
cristy8b350f62009-11-15 23:12:43 +000023924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023925$as_echo_n "checking for signed 8-bit type... " >&6; }
23926INT8_T='signed char'
cristyad38abe2012-12-23 23:03:21 +000023927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
23928$as_echo "$INT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023929
23930
cristy8b350f62009-11-15 23:12:43 +000023931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023932$as_echo_n "checking for unsigned 8-bit type... " >&6; }
23933UINT8_T='unsigned char'
cristyad38abe2012-12-23 23:03:21 +000023934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
23935$as_echo "$UINT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023936
23937
cristy8b350f62009-11-15 23:12:43 +000023938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023939$as_echo_n "checking for signed 16-bit type... " >&6; }
23940INT16_T='signed short'
cristyad38abe2012-12-23 23:03:21 +000023941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
23942$as_echo "$INT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023943
23944
cristy8b350f62009-11-15 23:12:43 +000023945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023946$as_echo_n "checking for unsigned 16-bit type... " >&6; }
23947UINT16_T='unsigned short'
cristyad38abe2012-12-23 23:03:21 +000023948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
23949$as_echo "$UINT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023950
23951
cristy8b350f62009-11-15 23:12:43 +000023952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023953$as_echo_n "checking for signed 32-bit type... " >&6; }
23954INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023955INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023956if test $ac_cv_sizeof_signed_int -eq 4; then
23957 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000023958 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023959elif test $ac_cv_sizeof_signed_long -eq 4; then
23960 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023961 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023962fi
cristyad38abe2012-12-23 23:03:21 +000023963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
23964$as_echo "$INT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023965
23966
cristy6d5e20f2011-04-25 13:48:54 +000023967
cristy8b350f62009-11-15 23:12:43 +000023968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023969$as_echo_n "checking for unsigned 32-bit type... " >&6; }
23970UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023971UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023972if test $ac_cv_sizeof_unsigned_int -eq 4; then
23973 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000023974 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023975elif test $ac_cv_sizeof_unsigned_long -eq 4; then
23976 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023977 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023978fi
cristyad38abe2012-12-23 23:03:21 +000023979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
23980$as_echo "$UINT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023981
23982
cristy6d5e20f2011-04-25 13:48:54 +000023983
cristy8b350f62009-11-15 23:12:43 +000023984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023985$as_echo_n "checking for signed 64-bit type... " >&6; }
23986INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023987INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023988if test $ac_cv_sizeof_signed_long -eq 8; then
23989 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023990 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023991elif test $ac_cv_sizeof_signed_long_long -eq 8; then
23992 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000023993 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023994fi
cristy3a99dcf2011-12-17 01:29:40 +000023995case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000023996 mingw* )
23997 INT64_F='"I64"'
23998 ;;
23999esac
cristyad38abe2012-12-23 23:03:21 +000024000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
24001$as_echo "$INT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024002
24003
cristy6d5e20f2011-04-25 13:48:54 +000024004
cristy8b350f62009-11-15 23:12:43 +000024005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024006$as_echo_n "checking for unsigned 64-bit type... " >&6; }
24007UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024008UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024009if test $ac_cv_sizeof_unsigned_long -eq 8; then
24010 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024011 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024012elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
24013 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000024014 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024015fi
cristy3a99dcf2011-12-17 01:29:40 +000024016case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000024017 mingw* )
24018 UINT64_F='"I64"'
24019 ;;
24020esac
cristyad38abe2012-12-23 23:03:21 +000024021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
24022$as_echo "$UINT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024023
24024
cristy6d5e20f2011-04-25 13:48:54 +000024025
cristy8b350f62009-11-15 23:12:43 +000024026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024027$as_echo_n "checking for unsigned maximum type... " >&6; }
24028UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024029UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024030if test "$UINT64_T" != 'none'; then
24031 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000024032 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000024033elif test "$UINT32_T" != 'none'; then
24034 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000024035 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000024036fi
cristyad38abe2012-12-23 23:03:21 +000024037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
24038$as_echo "$UINTMAX_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024039
24040
cristy6d5e20f2011-04-25 13:48:54 +000024041
cristy8b350f62009-11-15 23:12:43 +000024042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024043$as_echo_n "checking for pointer difference type... " >&6; }
24044UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024045UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024046if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
24047 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024048 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024049elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
24050 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000024051 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024052fi
cristyad38abe2012-12-23 23:03:21 +000024053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
24054$as_echo "$UINTPTR_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024055
24056
cristy6d5e20f2011-04-25 13:48:54 +000024057
cristy8b350f62009-11-15 23:12:43 +000024058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024059$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024060cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024061/* end confdefs.h. */
24062
24063int
24064main ()
24065{
24066{ const char *func = __func__; return(func != 0 ? 0 : 1); }
24067 ;
24068 return 0;
24069}
24070_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024071if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000024072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24073$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024074else
cristyad38abe2012-12-23 23:03:21 +000024075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24076$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024078$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024080/* end confdefs.h. */
24081
24082int
24083main ()
24084{
24085{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
24086 ;
24087 return 0;
24088}
24089_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024090if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000024091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24092$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024093
cristy8b350f62009-11-15 23:12:43 +000024094$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024095
24096else
cristyad38abe2012-12-23 23:03:21 +000024097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24098$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024099
cristy8b350f62009-11-15 23:12:43 +000024100$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024101
24102fi
cristy3ed852e2009-09-05 21:47:34 +000024103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24104fi
cristy3ed852e2009-09-05 21:47:34 +000024105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24106
24107########
24108#
24109# Check for functions
24110#
24111########
cristy8b350f62009-11-15 23:12:43 +000024112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024113$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024114if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024115 $as_echo_n "(cached) " >&6
24116else
cristy8b350f62009-11-15 23:12:43 +000024117 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024118 ac_cv_func_closedir_void=yes
24119else
cristy8b350f62009-11-15 23:12:43 +000024120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024121/* end confdefs.h. */
24122$ac_includes_default
24123#include <$ac_header_dirent>
24124#ifndef __cplusplus
24125int closedir ();
24126#endif
24127
24128int
24129main ()
24130{
24131return closedir (opendir (".")) != 0;
24132 ;
24133 return 0;
24134}
24135_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024136if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024137 ac_cv_func_closedir_void=no
24138else
cristy8b350f62009-11-15 23:12:43 +000024139 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000024140fi
cristy8b350f62009-11-15 23:12:43 +000024141rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24142 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024143fi
24144
cristy3ed852e2009-09-05 21:47:34 +000024145fi
cristy8b350f62009-11-15 23:12:43 +000024146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024147$as_echo "$ac_cv_func_closedir_void" >&6; }
24148if test $ac_cv_func_closedir_void = yes; then
24149
cristy8b350f62009-11-15 23:12:43 +000024150$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024151
24152fi
24153
cristycd4c5312009-11-22 01:19:08 +000024154
24155
24156
24157 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000024158do :
24159 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000024160ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24161"
cristy98dddb52010-11-04 00:30:15 +000024162if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024163 cat >>confdefs.h <<_ACEOF
24164#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24165_ACEOF
24166
24167fi
24168
24169done
24170
cristycd4c5312009-11-22 01:19:08 +000024171
24172
24173
24174
24175
24176
24177
cristy3ed852e2009-09-05 21:47:34 +000024178for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000024179do :
24180 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024181if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024182 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024183#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000024184_ACEOF
24185
24186fi
24187done
24188
cristy8b350f62009-11-15 23:12:43 +000024189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000024190$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024191if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024192 $as_echo_n "(cached) " >&6
24193else
cristy8b350f62009-11-15 23:12:43 +000024194 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024195 ac_cv_func_mmap_fixed_mapped=no
24196else
cristy8b350f62009-11-15 23:12:43 +000024197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024198/* end confdefs.h. */
24199$ac_includes_default
24200/* malloc might have been renamed as rpl_malloc. */
24201#undef malloc
24202
24203/* Thanks to Mike Haertel and Jim Avera for this test.
24204 Here is a matrix of mmap possibilities:
24205 mmap private not fixed
24206 mmap private fixed at somewhere currently unmapped
24207 mmap private fixed at somewhere already mapped
24208 mmap shared not fixed
24209 mmap shared fixed at somewhere currently unmapped
24210 mmap shared fixed at somewhere already mapped
24211 For private mappings, we should verify that changes cannot be read()
24212 back from the file, nor mmap's back from the file at a different
24213 address. (There have been systems where private was not correctly
24214 implemented like the infamous i386 svr4.0, and systems where the
24215 VM page cache was not coherent with the file system buffer cache
24216 like early versions of FreeBSD and possibly contemporary NetBSD.)
24217 For shared mappings, we should conversely verify that changes get
24218 propagated back to all the places they're supposed to be.
24219
24220 Grep wants private fixed already mapped.
24221 The main things grep needs to know about mmap are:
24222 * does it exist and is it safe to write into the mmap'd area
24223 * how to use it (BSD variants) */
24224
24225#include <fcntl.h>
24226#include <sys/mman.h>
24227
24228#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24229char *malloc ();
24230#endif
24231
24232/* This mess was copied from the GNU getpagesize.h. */
24233#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000024234# ifdef _SC_PAGESIZE
24235# define getpagesize() sysconf(_SC_PAGESIZE)
24236# else /* no _SC_PAGESIZE */
24237# ifdef HAVE_SYS_PARAM_H
24238# include <sys/param.h>
24239# ifdef EXEC_PAGESIZE
24240# define getpagesize() EXEC_PAGESIZE
24241# else /* no EXEC_PAGESIZE */
24242# ifdef NBPG
24243# define getpagesize() NBPG * CLSIZE
24244# ifndef CLSIZE
24245# define CLSIZE 1
24246# endif /* no CLSIZE */
24247# else /* no NBPG */
24248# ifdef NBPC
24249# define getpagesize() NBPC
24250# else /* no NBPC */
24251# ifdef PAGESIZE
24252# define getpagesize() PAGESIZE
24253# endif /* PAGESIZE */
24254# endif /* no NBPC */
24255# endif /* no NBPG */
24256# endif /* no EXEC_PAGESIZE */
24257# else /* no HAVE_SYS_PARAM_H */
24258# define getpagesize() 8192 /* punt totally */
24259# endif /* no HAVE_SYS_PARAM_H */
24260# endif /* no _SC_PAGESIZE */
24261
24262#endif /* no HAVE_GETPAGESIZE */
24263
24264int
24265main ()
24266{
24267 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000024268 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000024269 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000024270 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000024271
24272 pagesize = getpagesize ();
24273
24274 /* First, make a file with some known garbage in it. */
24275 data = (char *) malloc (pagesize);
24276 if (!data)
24277 return 1;
24278 for (i = 0; i < pagesize; ++i)
24279 *(data + i) = rand ();
24280 umask (0);
24281 fd = creat ("conftest.mmap", 0600);
24282 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024283 return 2;
cristy3ed852e2009-09-05 21:47:34 +000024284 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024285 return 3;
cristy3ed852e2009-09-05 21:47:34 +000024286 close (fd);
24287
cristycd4c5312009-11-22 01:19:08 +000024288 /* Next, check that the tail of a page is zero-filled. File must have
24289 non-zero length, otherwise we risk SIGBUS for entire page. */
24290 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24291 if (fd2 < 0)
24292 return 4;
cristyc54f5d42009-11-27 21:36:31 +000024293 cdata2 = "";
24294 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000024295 return 5;
cristyc54f5d42009-11-27 21:36:31 +000024296 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000024297 if (data2 == MAP_FAILED)
24298 return 6;
24299 for (i = 0; i < pagesize; ++i)
24300 if (*(data2 + i))
24301 return 7;
24302 close (fd2);
24303 if (munmap (data2, pagesize))
24304 return 8;
24305
cristy3ed852e2009-09-05 21:47:34 +000024306 /* Next, try to mmap the file at a fixed address which already has
24307 something else allocated at it. If we can, also make sure that
24308 we see the same garbage. */
24309 fd = open ("conftest.mmap", O_RDWR);
24310 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024311 return 9;
cristy3ed852e2009-09-05 21:47:34 +000024312 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24313 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000024314 return 10;
cristy3ed852e2009-09-05 21:47:34 +000024315 for (i = 0; i < pagesize; ++i)
24316 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000024317 return 11;
cristy3ed852e2009-09-05 21:47:34 +000024318
24319 /* Finally, make sure that changes to the mapped area do not
24320 percolate back to the file as seen by read(). (This is a bug on
24321 some variants of i386 svr4.0.) */
24322 for (i = 0; i < pagesize; ++i)
24323 *(data2 + i) = *(data2 + i) + 1;
24324 data3 = (char *) malloc (pagesize);
24325 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000024326 return 12;
cristy3ed852e2009-09-05 21:47:34 +000024327 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024328 return 13;
cristy3ed852e2009-09-05 21:47:34 +000024329 for (i = 0; i < pagesize; ++i)
24330 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000024331 return 14;
cristy3ed852e2009-09-05 21:47:34 +000024332 close (fd);
24333 return 0;
24334}
24335_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024336if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024337 ac_cv_func_mmap_fixed_mapped=yes
24338else
cristy8b350f62009-11-15 23:12:43 +000024339 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000024340fi
cristy8b350f62009-11-15 23:12:43 +000024341rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24342 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024343fi
24344
cristy3ed852e2009-09-05 21:47:34 +000024345fi
cristy8b350f62009-11-15 23:12:43 +000024346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000024347$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24348if test $ac_cv_func_mmap_fixed_mapped = yes; then
24349
cristy8b350f62009-11-15 23:12:43 +000024350$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024351
24352fi
cristycd4c5312009-11-22 01:19:08 +000024353rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000024354
cristy3ed852e2009-09-05 21:47:34 +000024355for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000024356do :
24357 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000024358if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024359 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024360#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000024361_ACEOF
24362
24363fi
24364
24365done
24366
cristy3ed852e2009-09-05 21:47:34 +000024367for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000024368do :
24369 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24370ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024371if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024372 cat >>confdefs.h <<_ACEOF
24373#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24374_ACEOF
24375
24376fi
24377done
24378
24379if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024381$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024382if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024383 $as_echo_n "(cached) " >&6
24384else
cristy8b350f62009-11-15 23:12:43 +000024385 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024386 ac_cv_func_fork_works=cross
24387else
cristy8b350f62009-11-15 23:12:43 +000024388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024389/* end confdefs.h. */
24390$ac_includes_default
24391int
24392main ()
24393{
24394
24395 /* By Ruediger Kuhlmann. */
24396 return fork () < 0;
24397
24398 ;
24399 return 0;
24400}
24401_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024402if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024403 ac_cv_func_fork_works=yes
24404else
cristy8b350f62009-11-15 23:12:43 +000024405 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024406fi
cristy8b350f62009-11-15 23:12:43 +000024407rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24408 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024409fi
24410
cristy3ed852e2009-09-05 21:47:34 +000024411fi
cristy8b350f62009-11-15 23:12:43 +000024412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024413$as_echo "$ac_cv_func_fork_works" >&6; }
24414
24415else
24416 ac_cv_func_fork_works=$ac_cv_func_fork
24417fi
24418if test "x$ac_cv_func_fork_works" = xcross; then
24419 case $host in
24420 *-*-amigaos* | *-*-msdosdjgpp*)
24421 # Override, as these systems have only a dummy fork() stub
24422 ac_cv_func_fork_works=no
24423 ;;
24424 *)
24425 ac_cv_func_fork_works=yes
24426 ;;
24427 esac
cristy8b350f62009-11-15 23:12:43 +000024428 { $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 +000024429$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24430fi
24431ac_cv_func_vfork_works=$ac_cv_func_vfork
24432if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024434$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024435if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024436 $as_echo_n "(cached) " >&6
24437else
cristy8b350f62009-11-15 23:12:43 +000024438 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024439 ac_cv_func_vfork_works=cross
24440else
cristy8b350f62009-11-15 23:12:43 +000024441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024442/* end confdefs.h. */
24443/* Thanks to Paul Eggert for this test. */
24444$ac_includes_default
24445#include <sys/wait.h>
24446#ifdef HAVE_VFORK_H
24447# include <vfork.h>
24448#endif
24449/* On some sparc systems, changes by the child to local and incoming
24450 argument registers are propagated back to the parent. The compiler
24451 is told about this with #include <vfork.h>, but some compilers
24452 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24453 static variable whose address is put into a register that is
24454 clobbered by the vfork. */
24455static void
24456#ifdef __cplusplus
24457sparc_address_test (int arg)
24458# else
24459sparc_address_test (arg) int arg;
24460#endif
24461{
24462 static pid_t child;
24463 if (!child) {
24464 child = vfork ();
24465 if (child < 0) {
24466 perror ("vfork");
24467 _exit(2);
24468 }
24469 if (!child) {
24470 arg = getpid();
24471 write(-1, "", 0);
24472 _exit (arg);
24473 }
24474 }
24475}
24476
24477int
24478main ()
24479{
24480 pid_t parent = getpid ();
24481 pid_t child;
24482
24483 sparc_address_test (0);
24484
24485 child = vfork ();
24486
24487 if (child == 0) {
24488 /* Here is another test for sparc vfork register problems. This
24489 test uses lots of local variables, at least as many local
24490 variables as main has allocated so far including compiler
24491 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24492 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24493 reuse the register of parent for one of the local variables,
24494 since it will think that parent can't possibly be used any more
24495 in this routine. Assigning to the local variable will thus
24496 munge parent in the parent process. */
24497 pid_t
24498 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24499 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24500 /* Convince the compiler that p..p7 are live; otherwise, it might
24501 use the same hardware register for all 8 local variables. */
24502 if (p != p1 || p != p2 || p != p3 || p != p4
24503 || p != p5 || p != p6 || p != p7)
24504 _exit(1);
24505
24506 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24507 from child file descriptors. If the child closes a descriptor
24508 before it execs or exits, this munges the parent's descriptor
24509 as well. Test for this by closing stdout in the child. */
24510 _exit(close(fileno(stdout)) != 0);
24511 } else {
24512 int status;
24513 struct stat st;
24514
24515 while (wait(&status) != child)
24516 ;
24517 return (
24518 /* Was there some problem with vforking? */
24519 child < 0
24520
24521 /* Did the child fail? (This shouldn't happen.) */
24522 || status
24523
24524 /* Did the vfork/compiler bug occur? */
24525 || parent != getpid()
24526
24527 /* Did the file descriptor bug occur? */
24528 || fstat(fileno(stdout), &st) != 0
24529 );
24530 }
24531}
24532_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024533if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024534 ac_cv_func_vfork_works=yes
24535else
cristy8b350f62009-11-15 23:12:43 +000024536 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024537fi
cristy8b350f62009-11-15 23:12:43 +000024538rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24539 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024540fi
24541
cristy3ed852e2009-09-05 21:47:34 +000024542fi
cristy8b350f62009-11-15 23:12:43 +000024543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024544$as_echo "$ac_cv_func_vfork_works" >&6; }
24545
24546fi;
24547if test "x$ac_cv_func_fork_works" = xcross; then
24548 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000024549 { $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 +000024550$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24551fi
24552
24553if test "x$ac_cv_func_vfork_works" = xyes; then
24554
cristy8b350f62009-11-15 23:12:43 +000024555$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024556
24557else
24558
cristy8b350f62009-11-15 23:12:43 +000024559$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024560
24561fi
24562if test "x$ac_cv_func_fork_works" = xyes; then
24563
cristy8b350f62009-11-15 23:12:43 +000024564$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024565
24566fi
24567
cristy8b350f62009-11-15 23:12:43 +000024568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024569$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024570if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024571 $as_echo_n "(cached) " >&6
24572else
cristy8b350f62009-11-15 23:12:43 +000024573 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024574 ac_cv_func_memcmp_working=no
24575else
cristy8b350f62009-11-15 23:12:43 +000024576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024577/* end confdefs.h. */
24578$ac_includes_default
24579int
24580main ()
24581{
24582
24583 /* Some versions of memcmp are not 8-bit clean. */
24584 char c0 = '\100', c1 = '\200', c2 = '\201';
24585 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24586 return 1;
24587
24588 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24589 or more and with at least one buffer not starting on a 4-byte boundary.
24590 William Lewis provided this test program. */
24591 {
24592 char foo[21];
24593 char bar[21];
24594 int i;
24595 for (i = 0; i < 4; i++)
24596 {
24597 char *a = foo + i;
24598 char *b = bar + i;
24599 strcpy (a, "--------01111111");
24600 strcpy (b, "--------10000000");
24601 if (memcmp (a, b, 16) >= 0)
24602 return 1;
24603 }
24604 return 0;
24605 }
24606
24607 ;
24608 return 0;
24609}
24610_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024611if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024612 ac_cv_func_memcmp_working=yes
24613else
cristy8b350f62009-11-15 23:12:43 +000024614 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000024615fi
cristy8b350f62009-11-15 23:12:43 +000024616rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24617 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024618fi
24619
cristy3ed852e2009-09-05 21:47:34 +000024620fi
cristy8b350f62009-11-15 23:12:43 +000024621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000024622$as_echo "$ac_cv_func_memcmp_working" >&6; }
24623test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24624 *" memcmp.$ac_objext "* ) ;;
24625 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24626 ;;
24627esac
24628
24629
cristy3ed852e2009-09-05 21:47:34 +000024630for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000024631do :
24632 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24633ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000024634if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024635 cat >>confdefs.h <<_ACEOF
24636#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24637_ACEOF
24638
24639fi
24640
24641done
24642
cristy8b350f62009-11-15 23:12:43 +000024643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000024644$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024645if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024646 $as_echo_n "(cached) " >&6
24647else
24648 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
24649 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
24650 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000024651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024652/* end confdefs.h. */
24653$ac_includes_default
24654#ifdef HAVE_SYS_SELECT_H
24655# include <sys/select.h>
24656#endif
24657#ifdef HAVE_SYS_SOCKET_H
24658# include <sys/socket.h>
24659#endif
24660
24661int
24662main ()
24663{
24664extern int select ($ac_arg1,
24665 $ac_arg234, $ac_arg234, $ac_arg234,
24666 $ac_arg5);
24667 ;
24668 return 0;
24669}
24670_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024671if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024672 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000024673fi
cristy3ed852e2009-09-05 21:47:34 +000024674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24675 done
24676 done
24677done
24678# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000024679: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000024680
24681fi
cristy8b350f62009-11-15 23:12:43 +000024682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000024683$as_echo "$ac_cv_func_select_args" >&6; }
24684ac_save_IFS=$IFS; IFS=','
24685set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
24686IFS=$ac_save_IFS
24687shift
24688
24689cat >>confdefs.h <<_ACEOF
24690#define SELECT_TYPE_ARG1 $1
24691_ACEOF
24692
24693
24694cat >>confdefs.h <<_ACEOF
24695#define SELECT_TYPE_ARG234 ($2)
24696_ACEOF
24697
24698
24699cat >>confdefs.h <<_ACEOF
24700#define SELECT_TYPE_ARG5 ($3)
24701_ACEOF
24702
24703rm -f conftest*
24704
cristyda16f162011-02-19 23:52:17 +000024705if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024706 $as_echo_n "(cached) " >&6
24707else
24708 ac_cv_func_setvbuf_reversed=no
24709fi
24710
24711
cristy8b350f62009-11-15 23:12:43 +000024712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000024713$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024714if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024715 $as_echo_n "(cached) " >&6
24716else
cristy8b350f62009-11-15 23:12:43 +000024717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024718/* end confdefs.h. */
24719#include <sys/types.h>
24720#include <signal.h>
24721
24722int
24723main ()
24724{
24725return *(signal (0, 0)) (0) == 1;
24726 ;
24727 return 0;
24728}
24729_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024730if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024731 ac_cv_type_signal=int
24732else
cristy8b350f62009-11-15 23:12:43 +000024733 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000024734fi
cristy3ed852e2009-09-05 21:47:34 +000024735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24736fi
cristy8b350f62009-11-15 23:12:43 +000024737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000024738$as_echo "$ac_cv_type_signal" >&6; }
24739
24740cat >>confdefs.h <<_ACEOF
24741#define RETSIGTYPE $ac_cv_type_signal
24742_ACEOF
24743
24744
cristy8b350f62009-11-15 23:12:43 +000024745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024746$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024747if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024748 $as_echo_n "(cached) " >&6
24749else
cristy8b350f62009-11-15 23:12:43 +000024750 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024751 ac_cv_func_strtod=no
24752else
cristy8b350f62009-11-15 23:12:43 +000024753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024754/* end confdefs.h. */
24755
24756$ac_includes_default
24757#ifndef strtod
24758double strtod ();
24759#endif
24760int
24761main()
24762{
24763 {
24764 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
24765 char *string = " +69";
24766 char *term;
24767 double value;
24768 value = strtod (string, &term);
24769 if (value != 69 || term != (string + 4))
24770 return 1;
24771 }
24772
24773 {
24774 /* Under Solaris 2.4, strtod returns the wrong value for the
24775 terminating character under some conditions. */
24776 char *string = "NaN";
24777 char *term;
24778 strtod (string, &term);
24779 if (term != string && *(term - 1) == 0)
24780 return 1;
24781 }
24782 return 0;
24783}
24784
24785_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024786if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024787 ac_cv_func_strtod=yes
24788else
cristy8b350f62009-11-15 23:12:43 +000024789 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000024790fi
cristy8b350f62009-11-15 23:12:43 +000024791rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24792 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024793fi
24794
cristy3ed852e2009-09-05 21:47:34 +000024795fi
cristy8b350f62009-11-15 23:12:43 +000024796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024797$as_echo "$ac_cv_func_strtod" >&6; }
24798if test $ac_cv_func_strtod = no; then
24799 case " $LIBOBJS " in
24800 *" strtod.$ac_objext "* ) ;;
24801 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
24802 ;;
24803esac
24804
cristy8b350f62009-11-15 23:12:43 +000024805ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000024806if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024807
cristy3ed852e2009-09-05 21:47:34 +000024808fi
24809
cristy3ed852e2009-09-05 21:47:34 +000024810if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000024811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000024812$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024813if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024814 $as_echo_n "(cached) " >&6
24815else
24816 ac_check_lib_save_LIBS=$LIBS
24817LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024818cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024819/* end confdefs.h. */
24820
24821/* Override any GCC internal prototype to avoid an error.
24822 Use char because int might match the return type of a GCC
24823 builtin and then its argument prototype would still apply. */
24824#ifdef __cplusplus
24825extern "C"
24826#endif
24827char pow ();
24828int
24829main ()
24830{
24831return pow ();
24832 ;
24833 return 0;
24834}
24835_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024836if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024837 ac_cv_lib_m_pow=yes
24838else
cristy8b350f62009-11-15 23:12:43 +000024839 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000024840fi
cristy8b350f62009-11-15 23:12:43 +000024841rm -f core conftest.err conftest.$ac_objext \
24842 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024843LIBS=$ac_check_lib_save_LIBS
24844fi
cristy8b350f62009-11-15 23:12:43 +000024845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024846$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000024847if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024848 POW_LIB=-lm
24849else
cristy8b350f62009-11-15 23:12:43 +000024850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024851$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
24852fi
24853
24854fi
24855
24856fi
24857
cristy7d4a1d62011-10-13 15:54:12 +000024858ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
24859if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
24860 ac_have_decl=1
24861else
24862 ac_have_decl=0
24863fi
24864
24865cat >>confdefs.h <<_ACEOF
24866#define HAVE_DECL_STRERROR_R $ac_have_decl
24867_ACEOF
24868
24869for ac_func in strerror_r
24870do :
24871 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
24872if test "x$ac_cv_func_strerror_r" = xyes; then :
24873 cat >>confdefs.h <<_ACEOF
24874#define HAVE_STRERROR_R 1
24875_ACEOF
24876
24877fi
24878done
24879
24880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
24881$as_echo_n "checking whether strerror_r returns char *... " >&6; }
24882if ${ac_cv_func_strerror_r_char_p+:} false; then :
24883 $as_echo_n "(cached) " >&6
24884else
24885
24886 ac_cv_func_strerror_r_char_p=no
24887 if test $ac_cv_have_decl_strerror_r = yes; then
24888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24889/* end confdefs.h. */
24890$ac_includes_default
24891int
24892main ()
24893{
24894
24895 char buf[100];
24896 char x = *strerror_r (0, buf, sizeof buf);
24897 char *p = strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000024898 return !p || x;
cristy7d4a1d62011-10-13 15:54:12 +000024899
24900 ;
24901 return 0;
24902}
24903_ACEOF
24904if ac_fn_c_try_compile "$LINENO"; then :
24905 ac_cv_func_strerror_r_char_p=yes
24906fi
24907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24908 else
24909 # strerror_r is not declared. Choose between
24910 # systems that have relatively inaccessible declarations for the
24911 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
24912 # former has a strerror_r that returns char*, while the latter
24913 # has a strerror_r that returns `int'.
24914 # This test should segfault on the DEC system.
24915 if test "$cross_compiling" = yes; then :
24916 :
24917else
24918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24919/* end confdefs.h. */
24920$ac_includes_default
24921 extern char *strerror_r ();
24922int
24923main ()
24924{
24925char buf[100];
24926 char x = *strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000024927 return ! isalpha (x);
cristy7d4a1d62011-10-13 15:54:12 +000024928 ;
24929 return 0;
24930}
24931_ACEOF
24932if ac_fn_c_try_run "$LINENO"; then :
24933 ac_cv_func_strerror_r_char_p=yes
24934fi
24935rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24936 conftest.$ac_objext conftest.beam conftest.$ac_ext
24937fi
24938
24939 fi
24940
24941fi
24942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
24943$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
24944if test $ac_cv_func_strerror_r_char_p = yes; then
24945
24946$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
24947
24948fi
24949
cristy3ed852e2009-09-05 21:47:34 +000024950for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000024951do :
24952 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000024953if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024954 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024955#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000024956_ACEOF
24957
cristy8b350f62009-11-15 23:12:43 +000024958ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000024959if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024960
cristy8b350f62009-11-15 23:12:43 +000024961$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024962
24963fi
24964
24965fi
24966done
24967
24968
24969
cristy161b9262010-03-20 19:34:32 +000024970#
24971# Find math library
24972#
24973MATH_LIBS=''
24974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
24975$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024976if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000024977 $as_echo_n "(cached) " >&6
24978else
24979 ac_check_lib_save_LIBS=$LIBS
24980LIBS="-lm $LIBS"
24981cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24982/* end confdefs.h. */
24983
24984/* Override any GCC internal prototype to avoid an error.
24985 Use char because int might match the return type of a GCC
24986 builtin and then its argument prototype would still apply. */
24987#ifdef __cplusplus
24988extern "C"
24989#endif
24990char sqrt ();
24991int
24992main ()
24993{
24994return sqrt ();
24995 ;
24996 return 0;
24997}
24998_ACEOF
24999if ac_fn_c_try_link "$LINENO"; then :
25000 ac_cv_lib_m_sqrt=yes
25001else
25002 ac_cv_lib_m_sqrt=no
25003fi
25004rm -f core conftest.err conftest.$ac_objext \
25005 conftest$ac_exeext conftest.$ac_ext
25006LIBS=$ac_check_lib_save_LIBS
25007fi
25008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
25009$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000025010if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000025011 MATH_LIBS="-lm"
25012fi
25013
25014LIBS="$MATH_LIBS $LIBS"
25015
25016
cristy85572162013-01-04 19:19:32 +000025017#
25018# Find socket library
25019#
cristy8a5d7f42013-01-06 15:24:33 +000025020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
25021$as_echo_n "checking for library containing gethostbyname... " >&6; }
25022if ${ac_cv_search_gethostbyname+:} false; then :
25023 $as_echo_n "(cached) " >&6
25024else
25025 ac_func_search_save_LIBS=$LIBS
25026cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25027/* end confdefs.h. */
25028
25029/* Override any GCC internal prototype to avoid an error.
25030 Use char because int might match the return type of a GCC
25031 builtin and then its argument prototype would still apply. */
25032#ifdef __cplusplus
25033extern "C"
25034#endif
25035char gethostbyname ();
25036int
25037main ()
25038{
25039return gethostbyname ();
25040 ;
25041 return 0;
25042}
25043_ACEOF
25044for ac_lib in '' resolv nsl; do
25045 if test -z "$ac_lib"; then
25046 ac_res="none required"
25047 else
25048 ac_res=-l$ac_lib
25049 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25050 fi
25051 if ac_fn_c_try_link "$LINENO"; then :
25052 ac_cv_search_gethostbyname=$ac_res
25053fi
25054rm -f core conftest.err conftest.$ac_objext \
25055 conftest$ac_exeext
25056 if ${ac_cv_search_gethostbyname+:} false; then :
25057 break
25058fi
25059done
25060if ${ac_cv_search_gethostbyname+:} false; then :
25061
25062else
25063 ac_cv_search_gethostbyname=no
25064fi
25065rm conftest.$ac_ext
25066LIBS=$ac_func_search_save_LIBS
25067fi
25068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
25069$as_echo "$ac_cv_search_gethostbyname" >&6; }
25070ac_res=$ac_cv_search_gethostbyname
25071if test "$ac_res" != no; then :
25072 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25073
25074fi
25075
cristy85572162013-01-04 19:19:32 +000025076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
25077$as_echo_n "checking for library containing socket... " >&6; }
25078if ${ac_cv_search_socket+:} false; then :
25079 $as_echo_n "(cached) " >&6
25080else
25081 ac_func_search_save_LIBS=$LIBS
25082cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25083/* end confdefs.h. */
25084
25085/* Override any GCC internal prototype to avoid an error.
25086 Use char because int might match the return type of a GCC
25087 builtin and then its argument prototype would still apply. */
25088#ifdef __cplusplus
25089extern "C"
25090#endif
25091char socket ();
25092int
25093main ()
25094{
25095return socket ();
25096 ;
25097 return 0;
25098}
25099_ACEOF
25100for ac_lib in '' socket; do
25101 if test -z "$ac_lib"; then
25102 ac_res="none required"
25103 else
25104 ac_res=-l$ac_lib
25105 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25106 fi
25107 if ac_fn_c_try_link "$LINENO"; then :
25108 ac_cv_search_socket=$ac_res
25109fi
25110rm -f core conftest.err conftest.$ac_objext \
25111 conftest$ac_exeext
25112 if ${ac_cv_search_socket+:} false; then :
25113 break
25114fi
25115done
25116if ${ac_cv_search_socket+:} false; then :
25117
25118else
25119 ac_cv_search_socket=no
25120fi
25121rm conftest.$ac_ext
25122LIBS=$ac_func_search_save_LIBS
25123fi
25124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
25125$as_echo "$ac_cv_search_socket" >&6; }
25126ac_res=$ac_cv_search_socket
25127if test "$ac_res" != no; then :
25128 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25129
cristy85572162013-01-04 19:19:32 +000025130
cristy8a5d7f42013-01-06 15:24:33 +000025131$as_echo "#define HAVE_SOCKET 1" >>confdefs.h
cristy85572162013-01-04 19:19:32 +000025132
cristy03f187e2013-01-24 00:22:19 +000025133 MAGICK_FEATURES="DPC $MAGICK_FEATURES"
cristy85572162013-01-04 19:19:32 +000025134
25135fi
25136
25137
25138for ac_func in acosh _aligned_malloc asinh atanh atoll atexit cabs carg cimag creal clock ctime_r directio _exit execvp fchmod floor fork ftime ftruncate getc_unlocked getcwd getpid getexecname getdtablesize getpagesize getrlimit getrusage gettimeofday gmtime_r isnan j0 j1 lltostr localtime_r lstat memmove memset mkstemp munmap nanosleep newlocale _NSGetExecutablePath pclose _pclose poll popen _popen posix_fadvise posix_fallocate posix_madvise posix_memalign posix_spawnp pow pread pwrite qsort_r raise rand_r readlink readdir_r realpath select seekdir setlocale socket sqrt setvbuf stat strchr strrchr strcspn strdup strpbrk strspn strstr strtod strtod_l strtol strtoul symlink sysconf sigemptyset sigaction spawnvp strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times ulltostr uselocale usleep utime vfprintf vfprintf_l vsprintf vsnprintf vsnprintf_l waitpid _wfopen _wstat
cristy8b350f62009-11-15 23:12:43 +000025139do :
25140 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25141ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025142if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025143 cat >>confdefs.h <<_ACEOF
25144#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25145_ACEOF
25146
25147fi
25148done
25149
25150
cristye43a45e2009-09-28 14:49:00 +000025151#
25152# Check for clock_gettime().
25153#
cristy8b350f62009-11-15 23:12:43 +000025154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025155$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025156if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025157 $as_echo_n "(cached) " >&6
25158else
25159 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000025160cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025161/* end confdefs.h. */
25162
25163/* Override any GCC internal prototype to avoid an error.
25164 Use char because int might match the return type of a GCC
25165 builtin and then its argument prototype would still apply. */
25166#ifdef __cplusplus
25167extern "C"
25168#endif
25169char clock_gettime ();
25170int
25171main ()
25172{
25173return clock_gettime ();
25174 ;
25175 return 0;
25176}
25177_ACEOF
25178for ac_lib in '' rt; do
25179 if test -z "$ac_lib"; then
25180 ac_res="none required"
25181 else
25182 ac_res=-l$ac_lib
25183 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25184 fi
cristy8b350f62009-11-15 23:12:43 +000025185 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025186 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000025187fi
cristy8b350f62009-11-15 23:12:43 +000025188rm -f core conftest.err conftest.$ac_objext \
25189 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000025190 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025191 break
25192fi
25193done
cristyda16f162011-02-19 23:52:17 +000025194if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000025195
cristye43a45e2009-09-28 14:49:00 +000025196else
25197 ac_cv_search_clock_gettime=no
25198fi
25199rm conftest.$ac_ext
25200LIBS=$ac_func_search_save_LIBS
25201fi
cristy8b350f62009-11-15 23:12:43 +000025202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025203$as_echo "$ac_cv_search_clock_gettime" >&6; }
25204ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000025205if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000025206 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25207
25208
cristy8b350f62009-11-15 23:12:43 +000025209$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025210
cristy8b350f62009-11-15 23:12:43 +000025211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000025212$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025214/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000025215
25216 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000025217int
25218main ()
25219{
25220clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000025221 ;
25222 return 0;
25223}
25224_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025225if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025226
cristyad38abe2012-12-23 23:03:21 +000025227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25228$as_echo "yes" >&6; }
cristye43a45e2009-09-28 14:49:00 +000025229
cristy8b350f62009-11-15 23:12:43 +000025230$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025231
25232
25233else
cristyad38abe2012-12-23 23:03:21 +000025234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25235$as_echo "no" >&6; }
cristye43a45e2009-09-28 14:49:00 +000025236
25237fi
cristye43a45e2009-09-28 14:49:00 +000025238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25239
25240else
25241
cristy8b350f62009-11-15 23:12:43 +000025242 for ac_func in gettimeofday ftime
25243do :
25244 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25245ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025246if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000025247 cat >>confdefs.h <<_ACEOF
25248#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25249_ACEOF
25250 break
25251fi
25252done
25253
25254
25255
25256fi
25257
25258
cristy3ed852e2009-09-05 21:47:34 +000025259########
25260#
25261# Check for function prototypes
25262#
25263########
25264
cristy8b350f62009-11-15 23:12:43 +000025265ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000025266#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025267"
cristyda16f162011-02-19 23:52:17 +000025268if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025269 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025270else
cristy8b350f62009-11-15 23:12:43 +000025271 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025272fi
25273
cristy3ed852e2009-09-05 21:47:34 +000025274cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025275#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025276_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025277ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000025278#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025279"
cristyda16f162011-02-19 23:52:17 +000025280if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025281 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025282else
cristy8b350f62009-11-15 23:12:43 +000025283 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025284fi
25285
cristy3ed852e2009-09-05 21:47:34 +000025286cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025287#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025288_ACEOF
25289
25290
cristy8b350f62009-11-15 23:12:43 +000025291ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000025292#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000025293"
cristyda16f162011-02-19 23:52:17 +000025294if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025295 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025296else
cristy8b350f62009-11-15 23:12:43 +000025297 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025298fi
25299
cristy3ed852e2009-09-05 21:47:34 +000025300cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025301#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025302_ACEOF
25303
25304
cristy8b350f62009-11-15 23:12:43 +000025305ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000025306#include <stdio.h>
25307#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000025308"
cristyda16f162011-02-19 23:52:17 +000025309if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025310 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025311else
cristy8b350f62009-11-15 23:12:43 +000025312 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025313fi
25314
cristy3ed852e2009-09-05 21:47:34 +000025315cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025316#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025317_ACEOF
25318
25319
cristy3ed852e2009-09-05 21:47:34 +000025320########
25321#
25322# C++ Support Tests (For Magick++)
25323#
25324########
25325have_magick_plus_plus='no'
25326if test "$with_magick_plus_plus" = 'yes'; then
25327 OLIBS="$LIBS"
25328 LIBS=''
25329 ac_ext=cpp
25330ac_cpp='$CXXCPP $CPPFLAGS'
25331ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25332ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25333ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25334
25335
25336 # Full set of headers used...
25337 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
25338 # functional iomanip iosfwd iostream iterator list string strstream utility
25339 ac_ext=cpp
25340ac_cpp='$CXXCPP $CPPFLAGS'
25341ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25342ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25343ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25344
25345 ac_ext=cpp
25346ac_cpp='$CXXCPP $CPPFLAGS'
25347ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25348ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25349ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25350if test -z "$CXX"; then
25351 if test -n "$CCC"; then
25352 CXX=$CCC
25353 else
25354 if test -n "$ac_tool_prefix"; then
25355 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25356 do
25357 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25358set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025360$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025361if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025362 $as_echo_n "(cached) " >&6
25363else
25364 if test -n "$CXX"; then
25365 ac_cv_prog_CXX="$CXX" # Let the user override the test.
25366else
25367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25368for as_dir in $PATH
25369do
25370 IFS=$as_save_IFS
25371 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025372 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025374 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025376 break 2
25377 fi
25378done
cristy8b350f62009-11-15 23:12:43 +000025379 done
cristy3ed852e2009-09-05 21:47:34 +000025380IFS=$as_save_IFS
25381
25382fi
25383fi
25384CXX=$ac_cv_prog_CXX
25385if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025387$as_echo "$CXX" >&6; }
25388else
cristy8b350f62009-11-15 23:12:43 +000025389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025390$as_echo "no" >&6; }
25391fi
25392
25393
25394 test -n "$CXX" && break
25395 done
25396fi
25397if test -z "$CXX"; then
25398 ac_ct_CXX=$CXX
25399 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25400do
25401 # Extract the first word of "$ac_prog", so it can be a program name with args.
25402set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025404$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025405if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025406 $as_echo_n "(cached) " >&6
25407else
25408 if test -n "$ac_ct_CXX"; then
25409 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
25410else
25411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25412for as_dir in $PATH
25413do
25414 IFS=$as_save_IFS
25415 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025416 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025418 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025420 break 2
25421 fi
25422done
cristy8b350f62009-11-15 23:12:43 +000025423 done
cristy3ed852e2009-09-05 21:47:34 +000025424IFS=$as_save_IFS
25425
25426fi
25427fi
25428ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25429if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025431$as_echo "$ac_ct_CXX" >&6; }
25432else
cristy8b350f62009-11-15 23:12:43 +000025433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025434$as_echo "no" >&6; }
25435fi
25436
25437
25438 test -n "$ac_ct_CXX" && break
25439done
25440
25441 if test "x$ac_ct_CXX" = x; then
25442 CXX="g++"
25443 else
25444 case $cross_compiling:$ac_tool_warned in
25445yes:)
cristy8b350f62009-11-15 23:12:43 +000025446{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025447$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25448ac_tool_warned=yes ;;
25449esac
25450 CXX=$ac_ct_CXX
25451 fi
25452fi
25453
25454 fi
25455fi
25456# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000025457$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000025458set X $ac_compile
25459ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000025460for ac_option in --version -v -V -qversion; do
25461 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000025462case "(($ac_try" in
25463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25464 *) ac_try_echo=$ac_try;;
25465esac
cristy8b350f62009-11-15 23:12:43 +000025466eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25467$as_echo "$ac_try_echo"; } >&5
25468 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000025469 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025470 if test -s conftest.err; then
25471 sed '10a\
25472... rest of stderr output deleted ...
25473 10q' conftest.err >conftest.er1
25474 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000025475 fi
cristycd4c5312009-11-22 01:19:08 +000025476 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000025477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25478 test $ac_status = 0; }
25479done
cristy3ed852e2009-09-05 21:47:34 +000025480
cristy8b350f62009-11-15 23:12:43 +000025481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000025482$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025483if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025484 $as_echo_n "(cached) " >&6
25485else
cristy8b350f62009-11-15 23:12:43 +000025486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025487/* end confdefs.h. */
25488
25489int
25490main ()
25491{
25492#ifndef __GNUC__
25493 choke me
25494#endif
25495
25496 ;
25497 return 0;
25498}
25499_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025500if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025501 ac_compiler_gnu=yes
25502else
cristy8b350f62009-11-15 23:12:43 +000025503 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000025504fi
cristy3ed852e2009-09-05 21:47:34 +000025505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25506ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
25507
25508fi
cristy8b350f62009-11-15 23:12:43 +000025509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000025510$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
25511if test $ac_compiler_gnu = yes; then
25512 GXX=yes
25513else
25514 GXX=
25515fi
25516ac_test_CXXFLAGS=${CXXFLAGS+set}
25517ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000025518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025519$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025520if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025521 $as_echo_n "(cached) " >&6
25522else
25523 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
25524 ac_cxx_werror_flag=yes
25525 ac_cv_prog_cxx_g=no
25526 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025528/* end confdefs.h. */
25529
25530int
25531main ()
25532{
25533
25534 ;
25535 return 0;
25536}
25537_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025538if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025539 ac_cv_prog_cxx_g=yes
25540else
cristy8b350f62009-11-15 23:12:43 +000025541 CXXFLAGS=""
25542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025543/* end confdefs.h. */
25544
25545int
25546main ()
25547{
25548
25549 ;
25550 return 0;
25551}
25552_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025553if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025554
cristy8b350f62009-11-15 23:12:43 +000025555else
25556 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000025557 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025559/* end confdefs.h. */
25560
25561int
25562main ()
25563{
25564
25565 ;
25566 return 0;
25567}
25568_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025569if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025570 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000025571fi
cristy3ed852e2009-09-05 21:47:34 +000025572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25573fi
cristy3ed852e2009-09-05 21:47:34 +000025574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25575fi
cristy3ed852e2009-09-05 21:47:34 +000025576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25577 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
25578fi
cristy8b350f62009-11-15 23:12:43 +000025579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025580$as_echo "$ac_cv_prog_cxx_g" >&6; }
25581if test "$ac_test_CXXFLAGS" = set; then
25582 CXXFLAGS=$ac_save_CXXFLAGS
25583elif test $ac_cv_prog_cxx_g = yes; then
25584 if test "$GXX" = yes; then
25585 CXXFLAGS="-g -O2"
25586 else
25587 CXXFLAGS="-g"
25588 fi
25589else
25590 if test "$GXX" = yes; then
25591 CXXFLAGS="-O2"
25592 else
25593 CXXFLAGS=
25594 fi
25595fi
25596ac_ext=cpp
25597ac_cpp='$CXXCPP $CPPFLAGS'
25598ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25599ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25600ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25601
cristy73bd4a52010-10-05 11:24:23 +000025602depcc="$CXX" am_compiler_list=
25603
25604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
25605$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025606if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025607 $as_echo_n "(cached) " >&6
25608else
25609 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25610 # We make a subdir and do the tests there. Otherwise we can end up
25611 # making bogus files that we don't know about and never remove. For
25612 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +000025613 # making a dummy file named 'D' -- because '-MD' means "put the output
25614 # in D".
cristy7247bba2012-02-05 16:37:27 +000025615 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +000025616 mkdir conftest.dir
25617 # Copy depcomp to subdir because otherwise we won't find it if we're
25618 # using a relative directory.
25619 cp "$am_depcomp" conftest.dir
25620 cd conftest.dir
25621 # We will build objects and dependencies in a subdirectory because
25622 # it helps to detect inapplicable dependency modes. For instance
25623 # both Tru64's cc and ICC support -MD to output dependencies as a
25624 # side effect of compilation, but ICC will put the dependencies in
25625 # the current directory while Tru64 will put them in the object
25626 # directory.
25627 mkdir sub
25628
25629 am_cv_CXX_dependencies_compiler_type=none
25630 if test "$am_compiler_list" = ""; then
25631 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25632 fi
25633 am__universal=false
25634 case " $depcc " in #(
25635 *\ -arch\ *\ -arch\ *) am__universal=true ;;
25636 esac
25637
25638 for depmode in $am_compiler_list; do
25639 # Setup a source with many dependencies, because some compilers
25640 # like to wrap large dependency lists on column 80 (with \), and
25641 # we should not choose a depcomp mode which is confused by this.
25642 #
25643 # We need to recreate these files for each test, as the compiler may
25644 # overwrite some of them when testing with obscure command lines.
25645 # This happens at least with the AIX C compiler.
25646 : > sub/conftest.c
25647 for i in 1 2 3 4 5 6; do
25648 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +000025649 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
25650 # Solaris 10 /bin/sh.
25651 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +000025652 done
25653 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25654
cristyc0890a62012-07-19 00:18:20 +000025655 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +000025656 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +000025657 # handle '-M -o', and we need to detect this. Also, some Intel
25658 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +000025659 am__obj=sub/conftest.${OBJEXT-o}
25660 am__minus_obj="-o $am__obj"
25661 case $depmode in
25662 gcc)
25663 # This depmode causes a compiler race in universal mode.
25664 test "$am__universal" = false || continue
25665 ;;
25666 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +000025667 # After this tag, mechanisms are not by side-effect, so they'll
25668 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +000025669 if test "x$enable_dependency_tracking" = xyes; then
25670 continue
25671 else
25672 break
25673 fi
25674 ;;
cristy7247bba2012-02-05 16:37:27 +000025675 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +000025676 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +000025677 # not run yet. These depmodes are late enough in the game, and
25678 # so weak that their functioning should not be impacted.
25679 am__obj=conftest.${OBJEXT-o}
25680 am__minus_obj=
25681 ;;
25682 none) break ;;
25683 esac
25684 if depmode=$depmode \
25685 source=sub/conftest.c object=$am__obj \
25686 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
25687 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
25688 >/dev/null 2>conftest.err &&
25689 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
25690 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
25691 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
25692 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
25693 # icc doesn't choke on unknown options, it will just issue warnings
25694 # or remarks (even with -Werror). So we grep stderr for any message
25695 # that says an option was ignored or not supported.
25696 # When given -MP, icc 7.0 and 7.1 complain thusly:
25697 # icc: Command line warning: ignoring option '-M'; no argument required
25698 # The diagnosis changed in icc 8.0:
25699 # icc: Command line remark: option '-MP' not supported
25700 if (grep 'ignoring option' conftest.err ||
25701 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
25702 am_cv_CXX_dependencies_compiler_type=$depmode
25703 break
25704 fi
25705 fi
25706 done
25707
25708 cd ..
25709 rm -rf conftest.dir
25710else
25711 am_cv_CXX_dependencies_compiler_type=none
25712fi
25713
25714fi
25715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
25716$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
25717CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
25718
25719 if
25720 test "x$enable_dependency_tracking" != xno \
25721 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
25722 am__fastdepCXX_TRUE=
25723 am__fastdepCXX_FALSE='#'
25724else
25725 am__fastdepCXX_TRUE='#'
25726 am__fastdepCXX_FALSE=
25727fi
25728
25729
25730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
25731$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025732if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025733 $as_echo_n "(cached) " >&6
25734else
25735
25736 ac_ext=cpp
25737ac_cpp='$CXXCPP $CPPFLAGS'
25738ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25739ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25740ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25741
25742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25743/* end confdefs.h. */
25744
25745int f(int x){return 1;}
25746int f(char x){return 1;}
25747int f(bool x){return 1;}
25748
25749int
25750main ()
25751{
25752bool b = true; return f(b);
25753 ;
25754 return 0;
25755}
25756_ACEOF
25757if ac_fn_cxx_try_compile "$LINENO"; then :
25758 ax_cv_cxx_bool=yes
25759else
25760 ax_cv_cxx_bool=no
25761fi
25762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25763 ac_ext=cpp
25764ac_cpp='$CXXCPP $CPPFLAGS'
25765ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25766ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25767ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25768
25769
25770fi
25771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
25772$as_echo "$ax_cv_cxx_bool" >&6; }
25773if test "$ax_cv_cxx_bool" = yes; then
25774
25775$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
25776
25777fi
25778
25779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
25780$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025781if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025782 $as_echo_n "(cached) " >&6
25783else
25784
25785 ac_ext=cpp
25786ac_cpp='$CXXCPP $CPPFLAGS'
25787ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25788ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25789ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25790
25791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25792/* end confdefs.h. */
25793namespace Outer { namespace Inner { int i = 0; }}
25794int
25795main ()
25796{
25797using namespace Outer::Inner; return i;
25798 ;
25799 return 0;
25800}
25801_ACEOF
25802if ac_fn_cxx_try_compile "$LINENO"; then :
25803 ax_cv_cxx_namespaces=yes
25804else
25805 ax_cv_cxx_namespaces=no
25806fi
25807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25808 ac_ext=cpp
25809ac_cpp='$CXXCPP $CPPFLAGS'
25810ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25811ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25812ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25813
25814
25815fi
25816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
25817$as_echo "$ax_cv_cxx_namespaces" >&6; }
25818if test "$ax_cv_cxx_namespaces" = yes; then
25819
25820$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
25821
25822fi
25823
25824
25825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
25826$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025827if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025828 $as_echo_n "(cached) " >&6
25829else
25830
25831 ac_ext=cpp
25832ac_cpp='$CXXCPP $CPPFLAGS'
25833ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25834ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25835ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25836
25837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25838/* end confdefs.h. */
25839#include <iostream>
25840 std::istream& is = std::cin;
25841int
25842main ()
25843{
25844
25845 ;
25846 return 0;
25847}
25848_ACEOF
25849if ac_fn_cxx_try_compile "$LINENO"; then :
25850 ax_cv_cxx_have_std_namespace=yes
25851else
25852 ax_cv_cxx_have_std_namespace=no
25853fi
25854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25855 ac_ext=cpp
25856ac_cpp='$CXXCPP $CPPFLAGS'
25857ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25858ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25859ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25860
25861
25862fi
25863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
25864$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
25865 if test "$ax_cv_cxx_have_std_namespace" = yes; then
25866
25867$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
25868
25869 fi
25870
25871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
25872$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025873if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025874 $as_echo_n "(cached) " >&6
25875else
25876
25877
25878 ac_ext=cpp
25879ac_cpp='$CXXCPP $CPPFLAGS'
25880ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25881ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25882ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25883
25884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25885/* end confdefs.h. */
25886#include <iostream>
25887#include <map>
25888#include <iomanip>
25889#include <cmath>
25890#ifdef HAVE_NAMESPACES
25891using namespace std;
25892#endif
25893int
25894main ()
25895{
25896return 0;
25897 ;
25898 return 0;
25899}
25900_ACEOF
25901if ac_fn_cxx_try_compile "$LINENO"; then :
25902 ac_cv_cxx_have_std_libs=yes
25903else
25904 ac_cv_cxx_have_std_libs=no
25905fi
25906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25907 ac_ext=cpp
25908ac_cpp='$CXXCPP $CPPFLAGS'
25909ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25910ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25911ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25912
25913
25914fi
25915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
25916$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
25917if test "$ac_cv_cxx_have_std_libs" = yes; then
25918
25919$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
25920
25921fi
25922
cristy3ed852e2009-09-05 21:47:34 +000025923
25924 OPENMP_CXXFLAGS=
25925 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000025926if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025927 enableval=$enable_openmp;
25928fi
25929
25930 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000025931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
25932$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025933if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025934 $as_echo_n "(cached) " >&6
25935else
cristy8b350f62009-11-15 23:12:43 +000025936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25937/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000025938
25939#ifndef _OPENMP
25940 choke me
25941#endif
25942#include <omp.h>
25943int main () { return omp_get_num_threads (); }
25944
25945_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025946if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025947 ac_cv_prog_cxx_openmp='none needed'
25948else
cristy8b350f62009-11-15 23:12:43 +000025949 ac_cv_prog_cxx_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +000025950 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
25951 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +000025952 ac_save_CXXFLAGS=$CXXFLAGS
25953 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000025954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25955/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000025956
25957#ifndef _OPENMP
25958 choke me
25959#endif
25960#include <omp.h>
25961int main () { return omp_get_num_threads (); }
25962
25963_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025964if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025965 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000025966fi
cristy8b350f62009-11-15 23:12:43 +000025967rm -f core conftest.err conftest.$ac_objext \
25968 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025969 CXXFLAGS=$ac_save_CXXFLAGS
25970 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
25971 break
25972 fi
25973 done
25974fi
cristy8b350f62009-11-15 23:12:43 +000025975rm -f core conftest.err conftest.$ac_objext \
25976 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025977fi
cristy8b350f62009-11-15 23:12:43 +000025978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025979$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
25980 case $ac_cv_prog_cxx_openmp in #(
25981 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000025982 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000025983 *)
cristy8b350f62009-11-15 23:12:43 +000025984 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000025985 esac
25986 fi
25987
25988
25989 ac_ext=c
25990ac_cpp='$CPP $CPPFLAGS'
25991ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25992ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25993ac_compiler_gnu=$ac_cv_c_compiler_gnu
25994
25995
cristy8b350f62009-11-15 23:12:43 +000025996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000025997$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
25998 if \
cristy964cb7f2010-04-25 23:18:00 +000025999 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026000 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000026001 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026002 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000026003 have_magick_plus_plus='yes'
26004 else
26005 have_magick_plus_plus='no (failed tests)'
26006 fi
cristyad38abe2012-12-23 23:03:21 +000026007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
26008$as_echo "$have_magick_plus_plus" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026009 LIBS="$OLIBS"
26010fi
cristy73bd4a52010-10-05 11:24:23 +000026011 if test "$have_magick_plus_plus" = 'yes'; then
26012 WITH_MAGICK_PLUS_PLUS_TRUE=
26013 WITH_MAGICK_PLUS_PLUS_FALSE='#'
26014else
26015 WITH_MAGICK_PLUS_PLUS_TRUE='#'
26016 WITH_MAGICK_PLUS_PLUS_FALSE=
26017fi
26018
cristy3ed852e2009-09-05 21:47:34 +000026019
26020# Only check for delegate libraries in subdirectories if requested.
26021if test "$enable_delegate_build" != 'no'; then
26022 # Check for delegate sub-directories and add -I & -L options as required.
26023 # This presumes that delegates are installed as detailed in the ImageMagick
26024 # README. If delegates are installed in a standard location where the
26025 # compiler will automatically find them then these options should not be
26026 # required.
26027
26028 #
26029 # Most delegates have includes in the same directory as the library, but not all...
26030 #
26031 # Includes
cristyfdc7d122013-08-17 20:46:45 +000026032 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper/include jbig/libjbig jpeg lcms/include lzma magick mupdf png tiff/libtiff ttf/include wand webp wmf/include xml/include zlib; do
cristy3ed852e2009-09-05 21:47:34 +000026033 if test -d "$builddir/$dir"; then
26034 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
26035 else
26036 if test -d "$srcdirfull/$dir"; then
26037 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
26038 fi
26039 fi
26040 done
26041
26042 # Libraries
cristyfdc7d122013-08-17 20:46:45 +000026043 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper jbig/libjbig jpeg lcms/src lzma magick mupdf png tiff/libtiff ttf/objs wand webp wmf/src xml zlib; do
cristy3ed852e2009-09-05 21:47:34 +000026044 if test -d "$builddir/$dir/.libs"; then
26045 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
26046 else
26047 if test -d "$srcdirfull/$dir/.libs"; then
26048 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
26049 fi
26050 fi
26051 if test -d "$builddir/$dir"; then
26052 LDFLAGS="$LDFLAGS -L$builddir/$dir"
26053 else
26054 if test -d "$srcdirfull/$dir"; then
26055 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
26056 fi
26057 fi
26058 done
26059fi
26060
26061# Assume that delegate headers reside under same directory as ImageMagick
26062# installation prefix.
cristybdabdd62013-03-04 17:43:36 +000026063MAGICK_CPPFLAGS="-I$INCLUDE_DIR/${PACKAGE_NAME}-$MAGICK_MAJOR_VERSION $MAGICK_CPPFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000026064
26065#
26066# Find the X11 RGB database
26067#
cristy8b350f62009-11-15 23:12:43 +000026068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000026069$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026070if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026071 $as_echo_n "(cached) " >&6
26072else
26073 # Look for the header file in a standard set of common directories.
26074# Check X11 before X11Rn because it is often a symlink to the current release.
26075 for ac_dir in \
26076 /lib/usr/lib/X11 \
26077 /usr/X11/lib \
26078 /usr/X11R4/lib \
26079 /usr/X11R5/lib \
26080 /usr/X11R6/lib \
26081 /usr/X11R7/lib \
26082 /usr/X386/lib \
26083 /usr/XFree86/lib/X11 \
26084 /usr/athena/lib \
26085 /usr/lib \
26086 /usr/lib/X11 \
26087 /usr/lib/X11R4 \
26088 /usr/lib/X11R5 \
26089 /usr/lib/X11R6 \
26090 /usr/lib/X11R7 \
26091 /usr/local/X11/lib \
26092 /usr/local/X11R4/lib \
26093 /usr/local/X11R5/lib \
26094 /usr/local/X11R6/lib \
26095 /usr/local/lib \
26096 /usr/local/lib/X11 \
26097 /usr/local/lib/X11R4 \
26098 /usr/local/lib/X11R5 \
26099 /usr/local/lib/X11R6 \
26100 /usr/local/lib/X11R7 \
26101 /usr/local/x11r5/lib \
26102 /usr/lpp/Xamples/lib \
26103 /usr/openwin/lib \
26104 /usr/openwin/share/lib \
26105 /usr/unsupported/lib \
26106 /usr/x386/lib \
26107 ; do
26108 if test -f "$ac_dir/X11/rgb.txt"; then
26109 im_cv_x_configure="$ac_dir/X11/"
26110 break
26111 elif test -f "$ac_dir/rgb.txt"; then
26112 im_cv_x_configure="$ac_dir/"
26113 break
26114 fi
26115
26116 done
26117fi
cristy8b350f62009-11-15 23:12:43 +000026118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000026119$as_echo "$im_cv_x_configure" >&6; }
26120X11_CONFIGURE_PATH="$im_cv_x_configure"
26121case "${build_os}" in
26122 mingw* )
26123 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
26124 ;;
26125esac
26126
26127cat >>confdefs.h <<_ACEOF
26128#define X11_CONFIGURE_PATH "$X11ConfigurePath"
26129_ACEOF
26130
26131
26132#
26133# Find OpenMP library
26134#
26135GOMP_LIBS=''
26136if test "$enable_openmp" != 'no'; then
26137 if test "${GCC}" = "yes"; then
cristy18307f12011-12-30 01:20:16 +000026138 # Open64 (passes for GCC but uses different OpenMP implementation)
26139 if test "x$GOMP_LIBS" = x ; then
26140 if $CC --version 2>&1 | grep Open64 > /dev/null ; then
26141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5
26142$as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; }
26143if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then :
26144 $as_echo_n "(cached) " >&6
26145else
26146 ac_check_lib_save_LIBS=$LIBS
26147LIBS="-lopenmp $LIBS"
26148cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26149/* end confdefs.h. */
26150
26151/* Override any GCC internal prototype to avoid an error.
26152 Use char because int might match the return type of a GCC
26153 builtin and then its argument prototype would still apply. */
26154#ifdef __cplusplus
26155extern "C"
26156#endif
26157char omp_get_num_procs ();
26158int
26159main ()
26160{
26161return omp_get_num_procs ();
26162 ;
26163 return 0;
26164}
26165_ACEOF
26166if ac_fn_c_try_link "$LINENO"; then :
26167 ac_cv_lib_openmp_omp_get_num_procs=yes
26168else
26169 ac_cv_lib_openmp_omp_get_num_procs=no
26170fi
26171rm -f core conftest.err conftest.$ac_objext \
26172 conftest$ac_exeext conftest.$ac_ext
26173LIBS=$ac_check_lib_save_LIBS
26174fi
26175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5
26176$as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; }
26177if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then :
26178 GOMP_LIBS="-lopenmp"
26179fi
26180
26181 fi
26182 fi
26183 # GCC
26184 if test "x$GOMP_LIBS" = x ; then
26185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026186$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026187if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026188 $as_echo_n "(cached) " >&6
26189else
26190 ac_check_lib_save_LIBS=$LIBS
26191LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026192cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026193/* end confdefs.h. */
26194
26195/* Override any GCC internal prototype to avoid an error.
26196 Use char because int might match the return type of a GCC
26197 builtin and then its argument prototype would still apply. */
26198#ifdef __cplusplus
26199extern "C"
26200#endif
26201char GOMP_parallel_start ();
26202int
26203main ()
26204{
26205return GOMP_parallel_start ();
26206 ;
26207 return 0;
26208}
26209_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026210if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026211 ac_cv_lib_gomp_GOMP_parallel_start=yes
26212else
cristy8b350f62009-11-15 23:12:43 +000026213 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000026214fi
cristy8b350f62009-11-15 23:12:43 +000026215rm -f core conftest.err conftest.$ac_objext \
26216 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026217LIBS=$ac_check_lib_save_LIBS
26218fi
cristy8b350f62009-11-15 23:12:43 +000026219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000026220$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000026221if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026222 GOMP_LIBS="-lgomp"
26223fi
cristy18307f12011-12-30 01:20:16 +000026224
26225 fi
cristy3ed852e2009-09-05 21:47:34 +000026226 else
cristy18307f12011-12-30 01:20:16 +000026227 # Sun CC
26228 if test "x$GOMP_LIBS" = x ; then
26229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026230$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026231if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026232 $as_echo_n "(cached) " >&6
26233else
26234 ac_check_lib_save_LIBS=$LIBS
26235LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026236cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026237/* end confdefs.h. */
26238
26239/* Override any GCC internal prototype to avoid an error.
26240 Use char because int might match the return type of a GCC
26241 builtin and then its argument prototype would still apply. */
26242#ifdef __cplusplus
26243extern "C"
26244#endif
26245char sunw_mp_register_warn ();
26246int
26247main ()
26248{
26249return sunw_mp_register_warn ();
26250 ;
26251 return 0;
26252}
26253_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026254if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026255 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
26256else
cristy8b350f62009-11-15 23:12:43 +000026257 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000026258fi
cristy8b350f62009-11-15 23:12:43 +000026259rm -f core conftest.err conftest.$ac_objext \
26260 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026261LIBS=$ac_check_lib_save_LIBS
26262fi
cristy8b350f62009-11-15 23:12:43 +000026263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000026264$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000026265if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026266 GOMP_LIBS="-lmtsk"
26267fi
cristy18307f12011-12-30 01:20:16 +000026268
26269 fi
26270 # AIX xlc
26271 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026273$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026274if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026275 $as_echo_n "(cached) " >&6
26276else
26277 ac_check_lib_save_LIBS=$LIBS
26278LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026279cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026280/* end confdefs.h. */
26281
26282/* Override any GCC internal prototype to avoid an error.
26283 Use char because int might match the return type of a GCC
26284 builtin and then its argument prototype would still apply. */
26285#ifdef __cplusplus
26286extern "C"
26287#endif
26288char _xlsmpFlush ();
26289int
26290main ()
26291{
26292return _xlsmpFlush ();
26293 ;
26294 return 0;
26295}
26296_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026297if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026298 ac_cv_lib_xlsmp__xlsmpFlush=yes
26299else
cristy8b350f62009-11-15 23:12:43 +000026300 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000026301fi
cristy8b350f62009-11-15 23:12:43 +000026302rm -f core conftest.err conftest.$ac_objext \
26303 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026304LIBS=$ac_check_lib_save_LIBS
26305fi
cristy8b350f62009-11-15 23:12:43 +000026306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000026307$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000026308if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026309 GOMP_LIBS="-lxlsmp"
26310fi
cristy18307f12011-12-30 01:20:16 +000026311
26312 fi
26313 # SGI IRIX 6.5 MIPSpro C/C++
26314 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026316$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026317if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026318 $as_echo_n "(cached) " >&6
26319else
26320 ac_check_lib_save_LIBS=$LIBS
26321LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026322cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026323/* end confdefs.h. */
26324
26325/* Override any GCC internal prototype to avoid an error.
26326 Use char because int might match the return type of a GCC
26327 builtin and then its argument prototype would still apply. */
26328#ifdef __cplusplus
26329extern "C"
26330#endif
26331char mp_destroy ();
26332int
26333main ()
26334{
26335return mp_destroy ();
26336 ;
26337 return 0;
26338}
26339_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026340if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026341 ac_cv_lib_mp_mp_destroy=yes
26342else
cristy8b350f62009-11-15 23:12:43 +000026343 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000026344fi
cristy8b350f62009-11-15 23:12:43 +000026345rm -f core conftest.err conftest.$ac_objext \
26346 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026347LIBS=$ac_check_lib_save_LIBS
26348fi
cristy8b350f62009-11-15 23:12:43 +000026349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000026350$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000026351if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026352 GOMP_LIBS="-lmp"
26353fi
cristy18307f12011-12-30 01:20:16 +000026354
26355 fi
cristy3ed852e2009-09-05 21:47:34 +000026356 fi
26357 LIBS="$GOMP_LIBS $LIBS"
26358fi
26359
26360
cristy3ed852e2009-09-05 21:47:34 +000026361
26362
26363#
26364# Check for umem.
26365#
26366have_umem='no'
26367UMEM_LIBS=''
26368if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000026370$as_echo_n "checking for UMEM support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000026371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26372$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026373 failed=0
26374 passed=0
cristy8b350f62009-11-15 23:12:43 +000026375 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026376if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026377 passed=`expr $passed + 1`
26378else
26379 failed=`expr $failed + 1`
26380fi
26381
26382
cristy8b350f62009-11-15 23:12:43 +000026383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026384$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026385if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026386 $as_echo_n "(cached) " >&6
26387else
26388 ac_check_lib_save_LIBS=$LIBS
26389LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026390cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026391/* end confdefs.h. */
26392
26393/* Override any GCC internal prototype to avoid an error.
26394 Use char because int might match the return type of a GCC
26395 builtin and then its argument prototype would still apply. */
26396#ifdef __cplusplus
26397extern "C"
26398#endif
26399char umem_alloc ();
26400int
26401main ()
26402{
26403return umem_alloc ();
26404 ;
26405 return 0;
26406}
26407_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026408if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026409 ac_cv_lib_umem_umem_alloc=yes
26410else
cristy8b350f62009-11-15 23:12:43 +000026411 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000026412fi
cristy8b350f62009-11-15 23:12:43 +000026413rm -f core conftest.err conftest.$ac_objext \
26414 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026415LIBS=$ac_check_lib_save_LIBS
26416fi
cristy8b350f62009-11-15 23:12:43 +000026417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026418$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026419if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026420 passed=`expr $passed + 1`
26421else
26422 failed=`expr $failed + 1`
26423fi
26424
cristy8b350f62009-11-15 23:12:43 +000026425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026426$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026427if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026428 $as_echo_n "(cached) " >&6
26429else
26430 ac_check_lib_save_LIBS=$LIBS
26431LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026432cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026433/* end confdefs.h. */
26434
26435/* Override any GCC internal prototype to avoid an error.
26436 Use char because int might match the return type of a GCC
26437 builtin and then its argument prototype would still apply. */
26438#ifdef __cplusplus
26439extern "C"
26440#endif
26441char umem_free ();
26442int
26443main ()
26444{
26445return umem_free ();
26446 ;
26447 return 0;
26448}
26449_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026450if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026451 ac_cv_lib_umem_umem_free=yes
26452else
cristy8b350f62009-11-15 23:12:43 +000026453 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000026454fi
cristy8b350f62009-11-15 23:12:43 +000026455rm -f core conftest.err conftest.$ac_objext \
26456 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026457LIBS=$ac_check_lib_save_LIBS
26458fi
cristy8b350f62009-11-15 23:12:43 +000026459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000026460$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000026461if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026462 passed=`expr $passed + 1`
26463else
26464 failed=`expr $failed + 1`
26465fi
26466
cristy8b350f62009-11-15 23:12:43 +000026467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026468$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
26469 if test $passed -gt 0; then
26470 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000026471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26472$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026473 have_umem='no (failed tests)'
26474 else
26475 UMEM_LIBS='-lumem'
26476 LIBS="$UMEM_LIBS $LIBS"
26477
cristy8b350f62009-11-15 23:12:43 +000026478$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026479
cristyad38abe2012-12-23 23:03:21 +000026480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26481$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026482 have_umem='yes'
26483 fi
26484 else
cristyad38abe2012-12-23 23:03:21 +000026485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26486$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026487 fi
26488fi
cristy73bd4a52010-10-05 11:24:23 +000026489 if test "$have_umem" = 'yes'; then
26490 HasUMEM_TRUE=
26491 HasUMEM_FALSE='#'
26492else
26493 HasUMEM_TRUE='#'
26494 HasUMEM_FALSE=
26495fi
26496
cristy3ed852e2009-09-05 21:47:34 +000026497
26498
26499#
26500# Add support for ccmalloc memory debugging library if requested
26501#
26502have_ccmalloc='no'
26503CCMALLOC_LIBS=''
26504if test "$enable_ccmalloc" = 'yes'; then
26505 # Extract the first word of "ccmalloc", so it can be a program name with args.
26506set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000026507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000026508$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026509if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026510 $as_echo_n "(cached) " >&6
26511else
26512 case $CCMALLOCDelegate in
26513 [\\/]* | ?:[\\/]*)
26514 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
26515 ;;
26516 *)
26517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26518for as_dir in $PATH
26519do
26520 IFS=$as_save_IFS
26521 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026522 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000026523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000026524 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000026525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026526 break 2
26527 fi
26528done
cristy8b350f62009-11-15 23:12:43 +000026529 done
cristy3ed852e2009-09-05 21:47:34 +000026530IFS=$as_save_IFS
26531
26532 ;;
26533esac
26534fi
26535CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
26536if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000026537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026538$as_echo "$CCMALLOCDelegate" >&6; }
26539else
cristy8b350f62009-11-15 23:12:43 +000026540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026541$as_echo "no" >&6; }
26542fi
26543
26544
26545 if test -n "$CCMALLOCDelegate"; then
26546 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
26547 OLIBS="$LIBS"
26548 # Assume that gcc is used with ccmalloc.
26549 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000026550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026551$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026552if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026553 $as_echo_n "(cached) " >&6
26554else
26555 ac_check_lib_save_LIBS=$LIBS
26556LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026557cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026558/* end confdefs.h. */
26559
26560/* Override any GCC internal prototype to avoid an error.
26561 Use char because int might match the return type of a GCC
26562 builtin and then its argument prototype would still apply. */
26563#ifdef __cplusplus
26564extern "C"
26565#endif
26566char ccmalloc_malloc ();
26567int
26568main ()
26569{
26570return ccmalloc_malloc ();
26571 ;
26572 return 0;
26573}
26574_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026575if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026576 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
26577else
cristy8b350f62009-11-15 23:12:43 +000026578 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000026579fi
cristy8b350f62009-11-15 23:12:43 +000026580rm -f core conftest.err conftest.$ac_objext \
26581 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026582LIBS=$ac_check_lib_save_LIBS
26583fi
cristy8b350f62009-11-15 23:12:43 +000026584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026585$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026586if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026587 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
26588fi
26589
26590 if test -n "$CCMALLOC_LIBS"; then
26591 LIBS="$OLIBS"
26592 LIBS="$LIBS $CCMALLOC_LIBS"
26593 have_ccmalloc='yes'
26594 else
26595 LIBS="$OLIBS"
26596 fi
26597 fi
26598fi
26599
26600#
cristy944e51f2013-04-16 18:45:02 +000026601# Add support for 'huge pages' if requested
26602#
26603if test "x$enable_hugepages" != "xno"; then :
26604
26605
26606$as_echo "#define HAVE_HUGEPAGES 1" >>confdefs.h
26607
26608
26609fi
26610
26611#
cristy3ed852e2009-09-05 21:47:34 +000026612# Add support for efence memory debugging library if requested
26613#
26614if test "$enable_efence" = 'yes'; then
26615 EFENCE_LIBS='-lefence'
26616 LIBS="$EFENCE_LIBS $LIBS"
26617fi
26618
cristy3ed852e2009-09-05 21:47:34 +000026619
26620#
26621# Check for BZLIB
26622#
26623
26624
26625# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000026626if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026627 withval=$with_bzlib; with_bzlib=$withval
26628else
26629 with_bzlib='yes'
26630fi
26631
26632
26633if test "$with_bzlib" != 'yes'; then
26634 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
26635fi
26636
26637have_bzlib='no'
26638if test "$with_bzlib" != 'no'; then
26639 BZLIB_LIBS=''
cristyad38abe2012-12-23 23:03:21 +000026640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26641$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000026643$as_echo_n "checking for BZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000026644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26645$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026646 failed=0
26647 passed=0
26648 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000026649 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026650if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026651 passed=`expr $passed + 1`
26652else
26653 failed=`expr $failed + 1`
26654fi
26655
26656
cristy8b350f62009-11-15 23:12:43 +000026657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026658$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026659if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026660 $as_echo_n "(cached) " >&6
26661else
26662 ac_check_lib_save_LIBS=$LIBS
26663LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026664cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026665/* end confdefs.h. */
26666
26667/* Override any GCC internal prototype to avoid an error.
26668 Use char because int might match the return type of a GCC
26669 builtin and then its argument prototype would still apply. */
26670#ifdef __cplusplus
26671extern "C"
26672#endif
26673char BZ2_bzDecompress ();
26674int
26675main ()
26676{
26677return BZ2_bzDecompress ();
26678 ;
26679 return 0;
26680}
26681_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026682if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026683 ac_cv_lib_bz2_BZ2_bzDecompress=yes
26684else
cristy8b350f62009-11-15 23:12:43 +000026685 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000026686fi
cristy8b350f62009-11-15 23:12:43 +000026687rm -f core conftest.err conftest.$ac_objext \
26688 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026689LIBS=$ac_check_lib_save_LIBS
26690fi
cristy8b350f62009-11-15 23:12:43 +000026691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026692$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026693if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026694 found_libbz=`expr $found_libbz + 1`
26695fi
26696
26697 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026699$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026700if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026701 $as_echo_n "(cached) " >&6
26702else
26703 ac_check_lib_save_LIBS=$LIBS
26704LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026705cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026706/* end confdefs.h. */
26707
26708/* Override any GCC internal prototype to avoid an error.
26709 Use char because int might match the return type of a GCC
26710 builtin and then its argument prototype would still apply. */
26711#ifdef __cplusplus
26712extern "C"
26713#endif
26714char _imp__BZ2_decompress ();
26715int
26716main ()
26717{
26718return _imp__BZ2_decompress ();
26719 ;
26720 return 0;
26721}
26722_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026723if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026724 ac_cv_lib_bz2__imp__BZ2_decompress=yes
26725else
cristy8b350f62009-11-15 23:12:43 +000026726 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000026727fi
cristy8b350f62009-11-15 23:12:43 +000026728rm -f core conftest.err conftest.$ac_objext \
26729 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026730LIBS=$ac_check_lib_save_LIBS
26731fi
cristy8b350f62009-11-15 23:12:43 +000026732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026733$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026734if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026735 found_libbz=`expr $found_libbz + 1`
26736fi
26737
26738 fi
26739 if test $found_libbz -gt 0; then
26740 passed=`expr $passed + 1`
26741 else
26742 failed=`expr $failed + 1`
26743 fi
cristy8b350f62009-11-15 23:12:43 +000026744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026745$as_echo_n "checking if BZLIB package is complete... " >&6; }
26746 if test $passed -gt 0; then
26747 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000026748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26749$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026750 have_bzlib='no (failed tests)'
26751 else
26752 BZLIB_LIBS='-lbz2'
26753 LIBS="$BZLIB_LIBS $LIBS"
26754
cristy8b350f62009-11-15 23:12:43 +000026755$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026756
cristyad38abe2012-12-23 23:03:21 +000026757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26758$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026759 have_bzlib='yes'
26760 fi
26761 else
cristyad38abe2012-12-23 23:03:21 +000026762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26763$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026764 fi
26765fi
cristy73bd4a52010-10-05 11:24:23 +000026766 if test "$have_bzlib" = 'yes'; then
26767 BZLIB_DELEGATE_TRUE=
26768 BZLIB_DELEGATE_FALSE='#'
26769else
26770 BZLIB_DELEGATE_TRUE='#'
26771 BZLIB_DELEGATE_FALSE=
26772fi
26773
cristy3ed852e2009-09-05 21:47:34 +000026774
26775
26776#
26777# Find the X11 include and library directories.
26778#
26779IPC_LIBS=''
26780X11_LIBS=''
26781XEXT_LIBS=''
26782XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000026783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000026784$as_echo_n "checking for X... " >&6; }
26785
26786
26787# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000026788if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000026789 withval=$with_x;
26790fi
26791
26792# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
26793if test "x$with_x" = xno; then
26794 # The user explicitly disabled X.
26795 have_x=disabled
26796else
26797 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000026798 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000026799 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000026800 $as_echo_n "(cached) " >&6
26801else
26802 # One or both of the vars are not set, and there is no cached value.
26803ac_x_includes=no ac_x_libraries=no
26804rm -f -r conftest.dir
26805if mkdir conftest.dir; then
26806 cd conftest.dir
26807 cat >Imakefile <<'_ACEOF'
26808incroot:
26809 @echo incroot='${INCROOT}'
26810usrlibdir:
26811 @echo usrlibdir='${USRLIBDIR}'
26812libdir:
26813 @echo libdir='${LIBDIR}'
26814_ACEOF
26815 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000026816 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000026817 for ac_var in incroot usrlibdir libdir; do
26818 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
26819 done
26820 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
26821 for ac_extension in a so sl dylib la dll; do
26822 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
26823 test -f "$ac_im_libdir/libX11.$ac_extension"; then
26824 ac_im_usrlibdir=$ac_im_libdir; break
26825 fi
26826 done
26827 # Screen out bogus values from the imake configuration. They are
26828 # bogus both because they are the default anyway, and because
26829 # using them would break gcc on systems where it needs fixed includes.
26830 case $ac_im_incroot in
26831 /usr/include) ac_x_includes= ;;
26832 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
26833 esac
26834 case $ac_im_usrlibdir in
26835 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
26836 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
26837 esac
26838 fi
26839 cd ..
26840 rm -f -r conftest.dir
26841fi
26842
26843# Standard set of common directories for X headers.
26844# Check X11 before X11Rn because it is often a symlink to the current release.
26845ac_x_header_dirs='
26846/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000026847/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000026848/usr/X11R6/include
26849/usr/X11R5/include
26850/usr/X11R4/include
26851
26852/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000026853/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000026854/usr/include/X11R6
26855/usr/include/X11R5
26856/usr/include/X11R4
26857
26858/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000026859/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000026860/usr/local/X11R6/include
26861/usr/local/X11R5/include
26862/usr/local/X11R4/include
26863
26864/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000026865/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000026866/usr/local/include/X11R6
26867/usr/local/include/X11R5
26868/usr/local/include/X11R4
26869
26870/usr/X386/include
26871/usr/x386/include
26872/usr/XFree86/include/X11
26873
26874/usr/include
26875/usr/local/include
26876/usr/unsupported/include
26877/usr/athena/include
26878/usr/local/x11r5/include
26879/usr/lpp/Xamples/include
26880
26881/usr/openwin/include
26882/usr/openwin/share/include'
26883
26884if test "$ac_x_includes" = no; then
26885 # Guess where to find include files, by looking for Xlib.h.
26886 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000026887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026888/* end confdefs.h. */
26889#include <X11/Xlib.h>
26890_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026891if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000026892 # We can compile using X headers with no special include directory.
26893ac_x_includes=
26894else
cristyc7083c12009-10-14 03:16:55 +000026895 for ac_dir in $ac_x_header_dirs; do
26896 if test -r "$ac_dir/X11/Xlib.h"; then
26897 ac_x_includes=$ac_dir
26898 break
26899 fi
26900done
26901fi
cristyda16f162011-02-19 23:52:17 +000026902rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026903fi # $ac_x_includes = no
26904
26905if test "$ac_x_libraries" = no; then
26906 # Check for the libraries.
26907 # See if we find them without any special options.
26908 # Don't add to $LIBS permanently.
26909 ac_save_LIBS=$LIBS
26910 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026912/* end confdefs.h. */
26913#include <X11/Xlib.h>
26914int
26915main ()
26916{
26917XrmInitialize ()
26918 ;
26919 return 0;
26920}
26921_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026922if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000026923 LIBS=$ac_save_LIBS
26924# We can link X programs with no special library path.
26925ac_x_libraries=
26926else
cristy8b350f62009-11-15 23:12:43 +000026927 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000026928for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
26929do
26930 # Don't even attempt the hair of trying to link an X program!
26931 for ac_extension in a so sl dylib la dll; do
26932 if test -r "$ac_dir/libX11.$ac_extension"; then
26933 ac_x_libraries=$ac_dir
26934 break 2
26935 fi
26936 done
26937done
26938fi
cristy8b350f62009-11-15 23:12:43 +000026939rm -f core conftest.err conftest.$ac_objext \
26940 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026941fi # $ac_x_libraries = no
26942
26943case $ac_x_includes,$ac_x_libraries in #(
26944 no,* | *,no | *\'*)
26945 # Didn't find X, or a directory has "'" in its name.
26946 ac_cv_have_x="have_x=no";; #(
26947 *)
26948 # Record where we found X for the cache.
26949 ac_cv_have_x="have_x=yes\
26950 ac_x_includes='$ac_x_includes'\
26951 ac_x_libraries='$ac_x_libraries'"
26952esac
26953fi
26954;; #(
26955 *) have_x=yes;;
26956 esac
26957 eval "$ac_cv_have_x"
26958fi # $with_x != no
26959
26960if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000026961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000026962$as_echo "$have_x" >&6; }
26963 no_x=yes
26964else
26965 # If each of the values was on the command line, it overrides each guess.
26966 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
26967 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
26968 # Update the cache value to reflect the command line values.
26969 ac_cv_have_x="have_x=yes\
26970 ac_x_includes='$x_includes'\
26971 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000026972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000026973$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
26974fi
26975
cristy3ed852e2009-09-05 21:47:34 +000026976if test "$no_x" = yes; then
26977 # Not all programs may use this symbol, but it does not hurt to define it.
26978
cristy8b350f62009-11-15 23:12:43 +000026979$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026980
26981 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
26982else
26983 if test -n "$x_includes"; then
26984 X_CFLAGS="$X_CFLAGS -I$x_includes"
26985 fi
26986
26987 # It would also be nice to do this for all -L options, not just this one.
26988 if test -n "$x_libraries"; then
26989 X_LIBS="$X_LIBS -L$x_libraries"
26990 # For Solaris; some versions of Sun CC require a space after -R and
26991 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000026992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000026993$as_echo_n "checking whether -R must be followed by a space... " >&6; }
26994 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
26995 ac_xsave_c_werror_flag=$ac_c_werror_flag
26996 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000026997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026998/* end confdefs.h. */
26999
27000int
27001main ()
27002{
27003
27004 ;
27005 return 0;
27006}
27007_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027008if ac_fn_c_try_link "$LINENO"; then :
27009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027010$as_echo "no" >&6; }
27011 X_LIBS="$X_LIBS -R$x_libraries"
27012else
cristy8b350f62009-11-15 23:12:43 +000027013 LIBS="$ac_xsave_LIBS -R $x_libraries"
27014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027015/* end confdefs.h. */
27016
27017int
27018main ()
27019{
27020
27021 ;
27022 return 0;
27023}
27024_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027025if ac_fn_c_try_link "$LINENO"; then :
27026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027027$as_echo "yes" >&6; }
27028 X_LIBS="$X_LIBS -R $x_libraries"
27029else
cristy8b350f62009-11-15 23:12:43 +000027030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000027031$as_echo "neither works" >&6; }
27032fi
cristy8b350f62009-11-15 23:12:43 +000027033rm -f core conftest.err conftest.$ac_objext \
27034 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027035fi
cristy8b350f62009-11-15 23:12:43 +000027036rm -f core conftest.err conftest.$ac_objext \
27037 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027038 ac_c_werror_flag=$ac_xsave_c_werror_flag
27039 LIBS=$ac_xsave_LIBS
27040 fi
27041
27042 # Check for system-dependent libraries X programs must link with.
27043 # Do this before checking for the system-independent R6 libraries
27044 # (-lICE), since we may need -lsocket or whatever for X linking.
27045
27046 if test "$ISC" = yes; then
27047 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
27048 else
27049 # Martyn Johnson says this is needed for Ultrix, if the X
27050 # libraries were built with DECnet support. And Karl Berry says
27051 # the Alpha needs dnet_stub (dnet does not exist).
27052 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000027053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027054/* end confdefs.h. */
27055
27056/* Override any GCC internal prototype to avoid an error.
27057 Use char because int might match the return type of a GCC
27058 builtin and then its argument prototype would still apply. */
27059#ifdef __cplusplus
27060extern "C"
27061#endif
27062char XOpenDisplay ();
27063int
27064main ()
27065{
27066return XOpenDisplay ();
27067 ;
27068 return 0;
27069}
27070_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027071if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027072
cristy8b350f62009-11-15 23:12:43 +000027073else
27074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000027075$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027076if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027077 $as_echo_n "(cached) " >&6
27078else
27079 ac_check_lib_save_LIBS=$LIBS
27080LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027081cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027082/* end confdefs.h. */
27083
27084/* Override any GCC internal prototype to avoid an error.
27085 Use char because int might match the return type of a GCC
27086 builtin and then its argument prototype would still apply. */
27087#ifdef __cplusplus
27088extern "C"
27089#endif
27090char dnet_ntoa ();
27091int
27092main ()
27093{
27094return dnet_ntoa ();
27095 ;
27096 return 0;
27097}
27098_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027099if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027100 ac_cv_lib_dnet_dnet_ntoa=yes
27101else
cristy8b350f62009-11-15 23:12:43 +000027102 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027103fi
cristy8b350f62009-11-15 23:12:43 +000027104rm -f core conftest.err conftest.$ac_objext \
27105 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027106LIBS=$ac_check_lib_save_LIBS
27107fi
cristy8b350f62009-11-15 23:12:43 +000027108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027109$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027110if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027111 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27112fi
27113
27114 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000027115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000027116$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027117if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027118 $as_echo_n "(cached) " >&6
27119else
27120 ac_check_lib_save_LIBS=$LIBS
27121LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027122cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027123/* end confdefs.h. */
27124
27125/* Override any GCC internal prototype to avoid an error.
27126 Use char because int might match the return type of a GCC
27127 builtin and then its argument prototype would still apply. */
27128#ifdef __cplusplus
27129extern "C"
27130#endif
27131char dnet_ntoa ();
27132int
27133main ()
27134{
27135return dnet_ntoa ();
27136 ;
27137 return 0;
27138}
27139_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027140if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027141 ac_cv_lib_dnet_stub_dnet_ntoa=yes
27142else
cristy8b350f62009-11-15 23:12:43 +000027143 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027144fi
cristy8b350f62009-11-15 23:12:43 +000027145rm -f core conftest.err conftest.$ac_objext \
27146 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027147LIBS=$ac_check_lib_save_LIBS
27148fi
cristy8b350f62009-11-15 23:12:43 +000027149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027150$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027151if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027152 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27153fi
27154
27155 fi
27156fi
cristy8b350f62009-11-15 23:12:43 +000027157rm -f core conftest.err conftest.$ac_objext \
27158 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027159 LIBS="$ac_xsave_LIBS"
27160
27161 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27162 # to get the SysV transport functions.
27163 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27164 # needs -lnsl.
27165 # The nsl library prevents programs from opening the X display
27166 # on Irix 5.2, according to T.E. Dickey.
27167 # The functions gethostbyname, getservbyname, and inet_addr are
27168 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000027169 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000027170if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027171
cristy3ed852e2009-09-05 21:47:34 +000027172fi
27173
cristy3ed852e2009-09-05 21:47:34 +000027174 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027176$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027177if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027178 $as_echo_n "(cached) " >&6
27179else
27180 ac_check_lib_save_LIBS=$LIBS
27181LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027182cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027183/* end confdefs.h. */
27184
27185/* Override any GCC internal prototype to avoid an error.
27186 Use char because int might match the return type of a GCC
27187 builtin and then its argument prototype would still apply. */
27188#ifdef __cplusplus
27189extern "C"
27190#endif
27191char gethostbyname ();
27192int
27193main ()
27194{
27195return gethostbyname ();
27196 ;
27197 return 0;
27198}
27199_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027200if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027201 ac_cv_lib_nsl_gethostbyname=yes
27202else
cristy8b350f62009-11-15 23:12:43 +000027203 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027204fi
cristy8b350f62009-11-15 23:12:43 +000027205rm -f core conftest.err conftest.$ac_objext \
27206 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027207LIBS=$ac_check_lib_save_LIBS
27208fi
cristy8b350f62009-11-15 23:12:43 +000027209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027210$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027211if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027212 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27213fi
27214
27215 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000027217$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027218if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027219 $as_echo_n "(cached) " >&6
27220else
27221 ac_check_lib_save_LIBS=$LIBS
27222LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027223cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027224/* end confdefs.h. */
27225
27226/* Override any GCC internal prototype to avoid an error.
27227 Use char because int might match the return type of a GCC
27228 builtin and then its argument prototype would still apply. */
27229#ifdef __cplusplus
27230extern "C"
27231#endif
27232char gethostbyname ();
27233int
27234main ()
27235{
27236return gethostbyname ();
27237 ;
27238 return 0;
27239}
27240_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027241if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027242 ac_cv_lib_bsd_gethostbyname=yes
27243else
cristy8b350f62009-11-15 23:12:43 +000027244 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027245fi
cristy8b350f62009-11-15 23:12:43 +000027246rm -f core conftest.err conftest.$ac_objext \
27247 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027248LIBS=$ac_check_lib_save_LIBS
27249fi
cristy8b350f62009-11-15 23:12:43 +000027250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027251$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027252if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027253 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27254fi
27255
27256 fi
27257 fi
27258
27259 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27260 # socket/setsockopt and other routines are undefined under SCO ODT
27261 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27262 # on later versions), says Simon Leinen: it contains gethostby*
27263 # variants that don't use the name server (or something). -lsocket
27264 # must be given before -lnsl if both are needed. We assume that
27265 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000027266 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000027267if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027268
cristy3ed852e2009-09-05 21:47:34 +000027269fi
27270
cristy3ed852e2009-09-05 21:47:34 +000027271 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000027272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000027273$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027274if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027275 $as_echo_n "(cached) " >&6
27276else
27277 ac_check_lib_save_LIBS=$LIBS
27278LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027279cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027280/* end confdefs.h. */
27281
27282/* Override any GCC internal prototype to avoid an error.
27283 Use char because int might match the return type of a GCC
27284 builtin and then its argument prototype would still apply. */
27285#ifdef __cplusplus
27286extern "C"
27287#endif
27288char connect ();
27289int
27290main ()
27291{
27292return connect ();
27293 ;
27294 return 0;
27295}
27296_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027297if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027298 ac_cv_lib_socket_connect=yes
27299else
cristy8b350f62009-11-15 23:12:43 +000027300 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000027301fi
cristy8b350f62009-11-15 23:12:43 +000027302rm -f core conftest.err conftest.$ac_objext \
27303 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027304LIBS=$ac_check_lib_save_LIBS
27305fi
cristy8b350f62009-11-15 23:12:43 +000027306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000027307$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000027308if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027309 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27310fi
27311
27312 fi
27313
27314 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000027315 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000027316if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027317
cristy3ed852e2009-09-05 21:47:34 +000027318fi
27319
cristy3ed852e2009-09-05 21:47:34 +000027320 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000027321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000027322$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027323if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027324 $as_echo_n "(cached) " >&6
27325else
27326 ac_check_lib_save_LIBS=$LIBS
27327LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027328cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027329/* end confdefs.h. */
27330
27331/* Override any GCC internal prototype to avoid an error.
27332 Use char because int might match the return type of a GCC
27333 builtin and then its argument prototype would still apply. */
27334#ifdef __cplusplus
27335extern "C"
27336#endif
27337char remove ();
27338int
27339main ()
27340{
27341return remove ();
27342 ;
27343 return 0;
27344}
27345_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027346if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027347 ac_cv_lib_posix_remove=yes
27348else
cristy8b350f62009-11-15 23:12:43 +000027349 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000027350fi
cristy8b350f62009-11-15 23:12:43 +000027351rm -f core conftest.err conftest.$ac_objext \
27352 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027353LIBS=$ac_check_lib_save_LIBS
27354fi
cristy8b350f62009-11-15 23:12:43 +000027355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000027356$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000027357if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027358 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27359fi
27360
27361 fi
27362
27363 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000027364 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000027365if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027366
cristy3ed852e2009-09-05 21:47:34 +000027367fi
27368
cristy3ed852e2009-09-05 21:47:34 +000027369 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000027370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027371$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027372if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027373 $as_echo_n "(cached) " >&6
27374else
27375 ac_check_lib_save_LIBS=$LIBS
27376LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027377cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027378/* end confdefs.h. */
27379
27380/* Override any GCC internal prototype to avoid an error.
27381 Use char because int might match the return type of a GCC
27382 builtin and then its argument prototype would still apply. */
27383#ifdef __cplusplus
27384extern "C"
27385#endif
27386char shmat ();
27387int
27388main ()
27389{
27390return shmat ();
27391 ;
27392 return 0;
27393}
27394_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027395if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027396 ac_cv_lib_ipc_shmat=yes
27397else
cristy8b350f62009-11-15 23:12:43 +000027398 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000027399fi
cristy8b350f62009-11-15 23:12:43 +000027400rm -f core conftest.err conftest.$ac_objext \
27401 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027402LIBS=$ac_check_lib_save_LIBS
27403fi
cristy8b350f62009-11-15 23:12:43 +000027404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000027405$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000027406if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027407 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27408fi
27409
27410 fi
27411 fi
27412
27413 # Check for libraries that X11R6 Xt/Xaw programs need.
27414 ac_save_LDFLAGS=$LDFLAGS
27415 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27416 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27417 # check for ICE first), but we must link in the order -lSM -lICE or
27418 # we get undefined symbols. So assume we have SM if we have ICE.
27419 # These have to be linked with before -lX11, unlike the other
27420 # libraries we check for below, so use a different variable.
27421 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000027422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000027423$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027424if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027425 $as_echo_n "(cached) " >&6
27426else
27427 ac_check_lib_save_LIBS=$LIBS
27428LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027429cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027430/* end confdefs.h. */
27431
27432/* Override any GCC internal prototype to avoid an error.
27433 Use char because int might match the return type of a GCC
27434 builtin and then its argument prototype would still apply. */
27435#ifdef __cplusplus
27436extern "C"
27437#endif
27438char IceConnectionNumber ();
27439int
27440main ()
27441{
27442return IceConnectionNumber ();
27443 ;
27444 return 0;
27445}
27446_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027447if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027448 ac_cv_lib_ICE_IceConnectionNumber=yes
27449else
cristy8b350f62009-11-15 23:12:43 +000027450 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000027451fi
cristy8b350f62009-11-15 23:12:43 +000027452rm -f core conftest.err conftest.$ac_objext \
27453 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027454LIBS=$ac_check_lib_save_LIBS
27455fi
cristy8b350f62009-11-15 23:12:43 +000027456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000027457$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000027458if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027459 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27460fi
27461
27462 LDFLAGS=$ac_save_LDFLAGS
27463
27464fi
27465
27466if test "$no_x" != 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000027467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27468$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000027470$as_echo_n "checking for X11... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27472$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027473 LDFLAGS="$LDFLAGS $X_LIBS"
27474 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
27475 LIBS="$X11_LIBS $LIBS"
27476 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
27477
27478
cristy8b350f62009-11-15 23:12:43 +000027479$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027480
27481 #
27482 # Check for X11 shared memory extension
27483 #
27484 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000027485 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000027486if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027487 have_shmctl='yes'
27488fi
27489
27490 if test "$have_shmctl" != 'yes'; then
27491 PERSIST_LIBS=$LIBS
27492 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000027493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027494/* end confdefs.h. */
27495
27496/* Override any GCC internal prototype to avoid an error.
27497 Use char because int might match the return type of a GCC
27498 builtin and then its argument prototype would still apply. */
27499#ifdef __cplusplus
27500extern "C"
27501#endif
27502char shmctl ();
27503int
27504main ()
27505{
27506return shmctl ();
27507 ;
27508 return 0;
27509}
27510_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027511if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027512 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000027513fi
cristy8b350f62009-11-15 23:12:43 +000027514rm -f core conftest.err conftest.$ac_objext \
27515 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027516 LIBS=$PERSIST_LIBS
27517 fi
27518
27519 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027521$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027522if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027523 $as_echo_n "(cached) " >&6
27524else
27525 ac_check_lib_save_LIBS=$LIBS
27526LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027527cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027528/* end confdefs.h. */
27529
27530/* Override any GCC internal prototype to avoid an error.
27531 Use char because int might match the return type of a GCC
27532 builtin and then its argument prototype would still apply. */
27533#ifdef __cplusplus
27534extern "C"
27535#endif
27536char XShmAttach ();
27537int
27538main ()
27539{
27540return XShmAttach ();
27541 ;
27542 return 0;
27543}
27544_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027545if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027546 ac_cv_lib_Xext_XShmAttach=yes
27547else
cristy8b350f62009-11-15 23:12:43 +000027548 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000027549fi
cristy8b350f62009-11-15 23:12:43 +000027550rm -f core conftest.err conftest.$ac_objext \
27551 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027552LIBS=$ac_check_lib_save_LIBS
27553fi
cristy8b350f62009-11-15 23:12:43 +000027554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000027555$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000027556if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027557 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027558$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027559
27560fi
27561
27562 fi
27563
27564 #
27565 # Check for X11 shape extension
27566 #
cristy8b350f62009-11-15 23:12:43 +000027567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027568$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027569if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027570 $as_echo_n "(cached) " >&6
27571else
27572 ac_check_lib_save_LIBS=$LIBS
27573LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027574cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027575/* end confdefs.h. */
27576
27577/* Override any GCC internal prototype to avoid an error.
27578 Use char because int might match the return type of a GCC
27579 builtin and then its argument prototype would still apply. */
27580#ifdef __cplusplus
27581extern "C"
27582#endif
27583char XShapeCombineMask ();
27584int
27585main ()
27586{
27587return XShapeCombineMask ();
27588 ;
27589 return 0;
27590}
27591_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027592if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027593 ac_cv_lib_Xext_XShapeCombineMask=yes
27594else
cristy8b350f62009-11-15 23:12:43 +000027595 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000027596fi
cristy8b350f62009-11-15 23:12:43 +000027597rm -f core conftest.err conftest.$ac_objext \
27598 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027599LIBS=$ac_check_lib_save_LIBS
27600fi
cristy8b350f62009-11-15 23:12:43 +000027601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000027602$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000027603if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027604 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027605$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027606
27607fi
27608
cristy8b350f62009-11-15 23:12:43 +000027609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000027610$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027611if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027612 $as_echo_n "(cached) " >&6
27613else
27614 ac_check_lib_save_LIBS=$LIBS
27615LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027616cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027617/* end confdefs.h. */
27618
27619/* Override any GCC internal prototype to avoid an error.
27620 Use char because int might match the return type of a GCC
27621 builtin and then its argument prototype would still apply. */
27622#ifdef __cplusplus
27623extern "C"
27624#endif
27625char XtSetEventDispatcher ();
27626int
27627main ()
27628{
27629return XtSetEventDispatcher ();
27630 ;
27631 return 0;
27632}
27633_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027634if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027635 ac_cv_lib_Xt_XtSetEventDispatcher=yes
27636else
cristy8b350f62009-11-15 23:12:43 +000027637 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000027638fi
cristy8b350f62009-11-15 23:12:43 +000027639rm -f core conftest.err conftest.$ac_objext \
27640 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027641LIBS=$ac_check_lib_save_LIBS
27642fi
cristy8b350f62009-11-15 23:12:43 +000027643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000027644$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000027645if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027646 XT_LIBS='-lXt'
27647fi
27648
27649 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
27650fi
27651if test "$no_x" != 'yes'; then
27652 have_x='yes'
27653else
27654 have_x='no'
27655fi
cristy73bd4a52010-10-05 11:24:23 +000027656 if test "$have_x" = 'yes'; then
27657 X11_DELEGATE_TRUE=
27658 X11_DELEGATE_FALSE='#'
27659else
27660 X11_DELEGATE_TRUE='#'
27661 X11_DELEGATE_FALSE=
27662fi
27663
cristy3ed852e2009-09-05 21:47:34 +000027664
27665
27666
27667
27668#
27669# Check for ZLIB
27670#
27671
27672# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000027673if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027674 withval=$with_zlib; with_zlib=$withval
27675else
27676 with_zlib='yes'
27677fi
27678
27679
27680if test "$with_zlib" != 'yes'; then
27681 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
27682fi
27683
27684have_zlib='no'
27685ZLIB_LIBS=''
27686if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000027687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27688$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000027690$as_echo_n "checking for ZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27692$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027693 ZLIB_LIBS=''
27694 failed=0
27695 passed=0
cristy8b350f62009-11-15 23:12:43 +000027696 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027697if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027698 passed=`expr $passed + 1`
27699else
27700 failed=`expr $failed + 1`
27701fi
27702
27703
cristy8b350f62009-11-15 23:12:43 +000027704 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027705if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027706 passed=`expr $passed + 1`
27707else
27708 failed=`expr $failed + 1`
27709fi
27710
27711
cristy8b350f62009-11-15 23:12:43 +000027712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027713$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027714if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027715 $as_echo_n "(cached) " >&6
27716else
27717 ac_check_lib_save_LIBS=$LIBS
27718LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027719cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027720/* end confdefs.h. */
27721
27722/* Override any GCC internal prototype to avoid an error.
27723 Use char because int might match the return type of a GCC
27724 builtin and then its argument prototype would still apply. */
27725#ifdef __cplusplus
27726extern "C"
27727#endif
27728char compress ();
27729int
27730main ()
27731{
27732return compress ();
27733 ;
27734 return 0;
27735}
27736_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027737if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027738 ac_cv_lib_z_compress=yes
27739else
cristy8b350f62009-11-15 23:12:43 +000027740 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000027741fi
cristy8b350f62009-11-15 23:12:43 +000027742rm -f core conftest.err conftest.$ac_objext \
27743 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027744LIBS=$ac_check_lib_save_LIBS
27745fi
cristy8b350f62009-11-15 23:12:43 +000027746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027747$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027748if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027749 passed=`expr $passed + 1`
27750else
27751 failed=`expr $failed + 1`
27752fi
27753
cristy8b350f62009-11-15 23:12:43 +000027754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027755$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027756if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027757 $as_echo_n "(cached) " >&6
27758else
27759 ac_check_lib_save_LIBS=$LIBS
27760LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027761cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027762/* end confdefs.h. */
27763
27764/* Override any GCC internal prototype to avoid an error.
27765 Use char because int might match the return type of a GCC
27766 builtin and then its argument prototype would still apply. */
27767#ifdef __cplusplus
27768extern "C"
27769#endif
27770char uncompress ();
27771int
27772main ()
27773{
27774return uncompress ();
27775 ;
27776 return 0;
27777}
27778_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027779if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027780 ac_cv_lib_z_uncompress=yes
27781else
cristy8b350f62009-11-15 23:12:43 +000027782 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000027783fi
cristy8b350f62009-11-15 23:12:43 +000027784rm -f core conftest.err conftest.$ac_objext \
27785 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027786LIBS=$ac_check_lib_save_LIBS
27787fi
cristy8b350f62009-11-15 23:12:43 +000027788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027789$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027790if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027791 passed=`expr $passed + 1`
27792else
27793 failed=`expr $failed + 1`
27794fi
27795
cristy8b350f62009-11-15 23:12:43 +000027796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027797$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027798if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027799 $as_echo_n "(cached) " >&6
27800else
27801 ac_check_lib_save_LIBS=$LIBS
27802LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027803cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027804/* end confdefs.h. */
27805
27806/* Override any GCC internal prototype to avoid an error.
27807 Use char because int might match the return type of a GCC
27808 builtin and then its argument prototype would still apply. */
27809#ifdef __cplusplus
27810extern "C"
27811#endif
27812char deflate ();
27813int
27814main ()
27815{
27816return deflate ();
27817 ;
27818 return 0;
27819}
27820_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027821if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027822 ac_cv_lib_z_deflate=yes
27823else
cristy8b350f62009-11-15 23:12:43 +000027824 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000027825fi
cristy8b350f62009-11-15 23:12:43 +000027826rm -f core conftest.err conftest.$ac_objext \
27827 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027828LIBS=$ac_check_lib_save_LIBS
27829fi
cristy8b350f62009-11-15 23:12:43 +000027830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027831$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000027832if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027833 passed=`expr $passed + 1`
27834else
27835 failed=`expr $failed + 1`
27836fi
27837
cristy8b350f62009-11-15 23:12:43 +000027838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027839$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027840if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027841 $as_echo_n "(cached) " >&6
27842else
27843 ac_check_lib_save_LIBS=$LIBS
27844LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027845cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027846/* end confdefs.h. */
27847
27848/* Override any GCC internal prototype to avoid an error.
27849 Use char because int might match the return type of a GCC
27850 builtin and then its argument prototype would still apply. */
27851#ifdef __cplusplus
27852extern "C"
27853#endif
27854char inflate ();
27855int
27856main ()
27857{
27858return inflate ();
27859 ;
27860 return 0;
27861}
27862_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027863if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027864 ac_cv_lib_z_inflate=yes
27865else
cristy8b350f62009-11-15 23:12:43 +000027866 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000027867fi
cristy8b350f62009-11-15 23:12:43 +000027868rm -f core conftest.err conftest.$ac_objext \
27869 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027870LIBS=$ac_check_lib_save_LIBS
27871fi
cristy8b350f62009-11-15 23:12:43 +000027872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027873$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000027874if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027875 passed=`expr $passed + 1`
27876else
27877 failed=`expr $failed + 1`
27878fi
27879
cristy8b350f62009-11-15 23:12:43 +000027880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027881$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027882if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027883 $as_echo_n "(cached) " >&6
27884else
27885 ac_check_lib_save_LIBS=$LIBS
27886LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027887cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027888/* end confdefs.h. */
27889
27890/* Override any GCC internal prototype to avoid an error.
27891 Use char because int might match the return type of a GCC
27892 builtin and then its argument prototype would still apply. */
27893#ifdef __cplusplus
27894extern "C"
27895#endif
27896char gzseek ();
27897int
27898main ()
27899{
27900return gzseek ();
27901 ;
27902 return 0;
27903}
27904_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027905if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027906 ac_cv_lib_z_gzseek=yes
27907else
cristy8b350f62009-11-15 23:12:43 +000027908 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000027909fi
cristy8b350f62009-11-15 23:12:43 +000027910rm -f core conftest.err conftest.$ac_objext \
27911 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027912LIBS=$ac_check_lib_save_LIBS
27913fi
cristy8b350f62009-11-15 23:12:43 +000027914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000027915$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000027916if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027917 passed=`expr $passed + 1`
27918else
27919 failed=`expr $failed + 1`
27920fi
27921
cristy8b350f62009-11-15 23:12:43 +000027922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027923$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027924if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027925 $as_echo_n "(cached) " >&6
27926else
27927 ac_check_lib_save_LIBS=$LIBS
27928LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027929cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027930/* end confdefs.h. */
27931
27932/* Override any GCC internal prototype to avoid an error.
27933 Use char because int might match the return type of a GCC
27934 builtin and then its argument prototype would still apply. */
27935#ifdef __cplusplus
27936extern "C"
27937#endif
27938char gztell ();
27939int
27940main ()
27941{
27942return gztell ();
27943 ;
27944 return 0;
27945}
27946_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027947if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027948 ac_cv_lib_z_gztell=yes
27949else
cristy8b350f62009-11-15 23:12:43 +000027950 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000027951fi
cristy8b350f62009-11-15 23:12:43 +000027952rm -f core conftest.err conftest.$ac_objext \
27953 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027954LIBS=$ac_check_lib_save_LIBS
27955fi
cristy8b350f62009-11-15 23:12:43 +000027956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000027957$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000027958if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027959 passed=`expr $passed + 1`
27960else
27961 failed=`expr $failed + 1`
27962fi
27963
cristy8b350f62009-11-15 23:12:43 +000027964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027965$as_echo_n "checking if ZLIB package is complete... " >&6; }
27966 if test $passed -gt 0; then
27967 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000027968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27969$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027970 have_zlib='no (failed tests)'
27971 else
27972 ZLIB_LIBS='-lz'
27973 LIBS="$ZLIB_LIBS $LIBS"
27974
cristy8b350f62009-11-15 23:12:43 +000027975$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027976
cristyad38abe2012-12-23 23:03:21 +000027977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27978$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027979 have_zlib='yes'
27980 fi
27981 else
cristyad38abe2012-12-23 23:03:21 +000027982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27983$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027984 fi
27985fi
cristy73bd4a52010-10-05 11:24:23 +000027986 if test "$have_zlib" = 'yes'; then
27987 ZLIB_DELEGATE_TRUE=
27988 ZLIB_DELEGATE_FALSE='#'
27989else
27990 ZLIB_DELEGATE_TRUE='#'
27991 ZLIB_DELEGATE_FALSE=
27992fi
27993
cristy3ed852e2009-09-05 21:47:34 +000027994
27995
cristy5eef09f2012-10-16 12:08:28 +000027996# whether modules are built or not.
27997with_ltdl='yes'
27998have_ltdl='no'
27999LTDL_LIBS=''
28000if test "$build_modules" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000028001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28002$as_echo "-------------------------------------------------------------" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000028003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libltdl" >&5
28004$as_echo_n "checking for libltdl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28006$as_echo "" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000028007 failed=0
28008 passed=0
28009 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
28010if test "x$ac_cv_header_ltdl_h" = xyes; then :
28011 passed=`expr $passed + 1`
28012else
28013 failed=`expr $failed + 1`
28014fi
28015
28016
28017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
28018$as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
28019if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then :
28020 $as_echo_n "(cached) " >&6
28021else
28022 ac_check_lib_save_LIBS=$LIBS
28023LIBS="-lltdl $LIBS"
28024cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28025/* end confdefs.h. */
28026
28027/* Override any GCC internal prototype to avoid an error.
28028 Use char because int might match the return type of a GCC
28029 builtin and then its argument prototype would still apply. */
28030#ifdef __cplusplus
28031extern "C"
28032#endif
28033char lt_dlinit ();
28034int
28035main ()
28036{
28037return lt_dlinit ();
28038 ;
28039 return 0;
28040}
28041_ACEOF
28042if ac_fn_c_try_link "$LINENO"; then :
28043 ac_cv_lib_ltdl_lt_dlinit=yes
28044else
28045 ac_cv_lib_ltdl_lt_dlinit=no
28046fi
28047rm -f core conftest.err conftest.$ac_objext \
28048 conftest$ac_exeext conftest.$ac_ext
28049LIBS=$ac_check_lib_save_LIBS
28050fi
28051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
28052$as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
28053if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then :
28054 passed=`expr $passed + 1`
28055else
28056 failed=`expr $failed + 1`
28057fi
28058
28059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libltdl package is complete" >&5
28060$as_echo_n "checking if libltdl package is complete... " >&6; }
28061 if test $passed -gt 0 ; then
28062 if test $failed -gt 0 ; then
28063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28064$as_echo "no -- some components failed test" >&6; }
28065 have_ltdl='no (failed tests)'
28066 else
28067 LTDL_LIBS='-lltdl'
28068 LIBS="$LTDL_LIBS $LIBS"
28069
28070$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
28071
28072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28073$as_echo "yes" >&6; }
28074 have_ltdl='yes'
28075 fi
28076 else
28077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28078$as_echo "no" >&6; }
28079 fi
cristyaf4cbf32012-10-16 23:47:41 +000028080 if test "$have_ltdl" != 'yes' ; then
28081 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28082$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28083as_fn_error 1 "libltdl is required for modules build
28084See \`config.log' for more details" "$LINENO" 5; }
28085 fi
cristy5eef09f2012-10-16 12:08:28 +000028086fi
28087 if test "$have_ltdl" != 'no'; then
28088 WITH_LTDL_TRUE=
28089 WITH_LTDL_FALSE='#'
28090else
28091 WITH_LTDL_TRUE='#'
28092 WITH_LTDL_FALSE=
28093fi
28094
28095
cristy3ed852e2009-09-05 21:47:34 +000028096#
28097# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
28098#
28099LIB_DL=''
28100if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000028102$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028103if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028104 $as_echo_n "(cached) " >&6
28105else
28106 ac_check_lib_save_LIBS=$LIBS
28107LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028108cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028109/* end confdefs.h. */
28110
28111/* Override any GCC internal prototype to avoid an error.
28112 Use char because int might match the return type of a GCC
28113 builtin and then its argument prototype would still apply. */
28114#ifdef __cplusplus
28115extern "C"
28116#endif
28117char dlopen ();
28118int
28119main ()
28120{
28121return dlopen ();
28122 ;
28123 return 0;
28124}
28125_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028126if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028127 ac_cv_lib_dl_dlopen=yes
28128else
cristy8b350f62009-11-15 23:12:43 +000028129 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000028130fi
cristy8b350f62009-11-15 23:12:43 +000028131rm -f core conftest.err conftest.$ac_objext \
28132 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028133LIBS=$ac_check_lib_save_LIBS
28134fi
cristy8b350f62009-11-15 23:12:43 +000028135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028136$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000028137if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028138 LIB_DL='-ldl'
28139fi
28140
28141 LIBS="$LIB_DL $LIBS"
28142fi
28143
28144
28145
28146#
28147# Check for Autotrace delegate library.
28148#
28149
28150# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000028151if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028152 withval=$with_autotrace; with_autotrace=$withval
28153else
28154 with_autotrace='no'
28155fi
28156
28157
28158if test "$with_autotrace" != 'yes'; then
28159 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
28160fi
28161
28162have_autotrace='no'
28163AUTOTRACE_CFLAGS=""
28164AUTOTRACE_LIBS=""
28165AUTOTRACE_PKG=""
28166if test "x$with_autotrace" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000028167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28168$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028169
28170pkg_failed=no
28171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
28172$as_echo_n "checking for AUTOTRACE... " >&6; }
28173
28174if test -n "$AUTOTRACE_CFLAGS"; then
28175 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
28176 elif test -n "$PKG_CONFIG"; then
28177 if test -n "$PKG_CONFIG" && \
28178 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28179 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28180 ac_status=$?
28181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28182 test $ac_status = 0; }; then
28183 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
28184else
28185 pkg_failed=yes
28186fi
28187 else
28188 pkg_failed=untried
28189fi
28190if test -n "$AUTOTRACE_LIBS"; then
28191 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
28192 elif test -n "$PKG_CONFIG"; then
28193 if test -n "$PKG_CONFIG" && \
28194 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28195 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28196 ac_status=$?
28197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28198 test $ac_status = 0; }; then
28199 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
28200else
28201 pkg_failed=yes
28202fi
28203 else
28204 pkg_failed=untried
28205fi
28206
28207
28208
28209if test $pkg_failed = yes; then
28210
28211if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28212 _pkg_short_errors_supported=yes
28213else
28214 _pkg_short_errors_supported=no
28215fi
28216 if test $_pkg_short_errors_supported = yes; then
28217 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
28218 else
28219 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
28220 fi
28221 # Put the nasty error message in config.log where it belongs
28222 echo "$AUTOTRACE_PKG_ERRORS" >&5
28223
28224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28225$as_echo "no" >&6; }
28226 have_autotrace=no
28227elif test $pkg_failed = untried; then
28228 have_autotrace=no
28229else
28230 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
28231 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
28232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28233$as_echo "yes" >&6; }
28234 have_autotrace=yes
28235fi
cristyad38abe2012-12-23 23:03:21 +000028236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28237$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028238fi
28239
28240if test "$have_autotrace" = 'yes'; then
28241 failed=0
28242
cristy8b350f62009-11-15 23:12:43 +000028243$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028244
cristyc6722092012-10-14 00:19:31 +000028245 if test "$build_modules" = 'no'; then
cristyfa161182012-12-19 15:45:28 +000028246 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000028247 fi
28248fi
28249
cristy73bd4a52010-10-05 11:24:23 +000028250 if test "$have_autotrace" = 'yes'; then
28251 AUTOTRACE_DELEGATE_TRUE=
28252 AUTOTRACE_DELEGATE_FALSE='#'
28253else
28254 AUTOTRACE_DELEGATE_TRUE='#'
28255 AUTOTRACE_DELEGATE_FALSE=
28256fi
28257
cristy3ed852e2009-09-05 21:47:34 +000028258
28259
28260
28261
28262#
28263# Check for Display Postscript delegate library.
28264#
28265
28266# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000028267if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028268 withval=$with_dps; with_dps=$withval
28269else
28270 with_dps='yes'
28271fi
28272
28273
28274if test "$with_dps" != 'yes'; then
28275 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
28276fi
28277
28278have_dps='no'
28279DPS_LIBS=''
28280if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28282$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000028284$as_echo_n "checking for DPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28286$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028287 failed=0
28288 passed=0
28289 PERSIST_CPPFLAGS="$CPPFLAGS"
28290 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000028291 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 +000028292if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028293 passed=`expr $passed + 1`
28294else
28295 failed=`expr $failed + 1`
28296fi
28297
28298
28299 # DPS issues:
28300 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
28301 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
28302 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
28303 # ImageMagick itself doesn't use -lXt.
28304 have_libdps='no'
28305 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000028306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028307$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028308if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028309 $as_echo_n "(cached) " >&6
28310else
28311 ac_check_lib_save_LIBS=$LIBS
28312LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028313cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028314/* end confdefs.h. */
28315
28316/* Override any GCC internal prototype to avoid an error.
28317 Use char because int might match the return type of a GCC
28318 builtin and then its argument prototype would still apply. */
28319#ifdef __cplusplus
28320extern "C"
28321#endif
28322char DPSInitialize ();
28323int
28324main ()
28325{
28326return DPSInitialize ();
28327 ;
28328 return 0;
28329}
28330_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028331if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028332 ac_cv_lib_dps_DPSInitialize=yes
28333else
cristy8b350f62009-11-15 23:12:43 +000028334 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028335fi
cristy8b350f62009-11-15 23:12:43 +000028336rm -f core conftest.err conftest.$ac_objext \
28337 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028338LIBS=$ac_check_lib_save_LIBS
28339fi
cristy8b350f62009-11-15 23:12:43 +000028340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028341$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028342if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028343 have_libdps='yes'
28344else
28345 have_libdps='no'
28346fi
28347
28348 if test "$have_libdps" != 'yes'; then
28349 # Unset cache variable so we can try again.
28350 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000028351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028352$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028353if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028354 $as_echo_n "(cached) " >&6
28355else
28356 ac_check_lib_save_LIBS=$LIBS
28357LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028358cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028359/* end confdefs.h. */
28360
28361/* Override any GCC internal prototype to avoid an error.
28362 Use char because int might match the return type of a GCC
28363 builtin and then its argument prototype would still apply. */
28364#ifdef __cplusplus
28365extern "C"
28366#endif
28367char DPSInitialize ();
28368int
28369main ()
28370{
28371return DPSInitialize ();
28372 ;
28373 return 0;
28374}
28375_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028376if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028377 ac_cv_lib_dps_DPSInitialize=yes
28378else
cristy8b350f62009-11-15 23:12:43 +000028379 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028380fi
cristy8b350f62009-11-15 23:12:43 +000028381rm -f core conftest.err conftest.$ac_objext \
28382 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028383LIBS=$ac_check_lib_save_LIBS
28384fi
cristy8b350f62009-11-15 23:12:43 +000028385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028386$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028387if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028388 have_libdps='yes'
28389else
28390 have_libdps='no'
28391fi
28392
28393 if test "$have_libdps" = 'yes'; then
28394 LIBDPS_XT='-lXt'
28395 fi
28396 fi
28397 if test "$have_libdps" = 'yes'; then
28398 passed=`expr $passed + 1`
28399 else
28400 failed=`expr $failed + 1`
28401 fi
cristy8b350f62009-11-15 23:12:43 +000028402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000028403$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028404if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028405 $as_echo_n "(cached) " >&6
28406else
28407 ac_check_lib_save_LIBS=$LIBS
28408LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028409cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028410/* end confdefs.h. */
28411
28412/* Override any GCC internal prototype to avoid an error.
28413 Use char because int might match the return type of a GCC
28414 builtin and then its argument prototype would still apply. */
28415#ifdef __cplusplus
28416extern "C"
28417#endif
28418char XDPSPixelsPerPoint ();
28419int
28420main ()
28421{
28422return XDPSPixelsPerPoint ();
28423 ;
28424 return 0;
28425}
28426_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028427if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028428 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
28429else
cristy8b350f62009-11-15 23:12:43 +000028430 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000028431fi
cristy8b350f62009-11-15 23:12:43 +000028432rm -f core conftest.err conftest.$ac_objext \
28433 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028434LIBS=$ac_check_lib_save_LIBS
28435fi
cristy8b350f62009-11-15 23:12:43 +000028436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000028437$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000028438if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028439 passed=`expr $passed + 1`
28440else
28441 failed=`expr $failed + 1`
28442fi
28443
cristy8b350f62009-11-15 23:12:43 +000028444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028445$as_echo_n "checking if DPS package is complete... " >&6; }
28446 if test $passed -gt 0; then
28447 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28449$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028450 have_dps='no (failed tests)'
28451 CPPFLAGS="$PERSIST_CPPFLAGS"
28452 else
28453 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
28454 LIBS="$DPS_LIBS $LIBS"
28455
cristy8b350f62009-11-15 23:12:43 +000028456$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028457
cristyad38abe2012-12-23 23:03:21 +000028458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28459$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028460 have_dps='yes'
28461 fi
28462 else
cristyad38abe2012-12-23 23:03:21 +000028463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28464$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028465 CPPFLAGS=$PERSIST_CPPFLAGS
28466 fi
28467fi
cristy73bd4a52010-10-05 11:24:23 +000028468 if test "$have_dps" = 'yes'; then
28469 DPS_DELEGATE_TRUE=
28470 DPS_DELEGATE_FALSE='#'
28471else
28472 DPS_DELEGATE_TRUE='#'
28473 DPS_DELEGATE_FALSE=
28474fi
28475
cristy3ed852e2009-09-05 21:47:34 +000028476
28477
28478
28479#
28480# Check for DJVU delegate library.
28481#
28482
28483# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000028484if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028485 withval=$with_djvu; with_djvu=$withval
28486else
28487 with_djvu='yes'
28488fi
28489
28490
28491if test "$with_djvu" != 'yes'; then
28492 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
28493fi
28494
28495have_djvu='no'
28496DJVU_LIBS=''
28497if test "$with_djvu" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28499$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000028501$as_echo_n "checking for DJVU... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28503$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028504 failed=0
28505 passed=0
cristy8b350f62009-11-15 23:12:43 +000028506 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 +000028507if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028508 passed=`expr $passed + 1`
28509else
28510 failed=`expr $failed + 1`
28511fi
28512
28513
cristy8b350f62009-11-15 23:12:43 +000028514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000028515$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028516if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028517 $as_echo_n "(cached) " >&6
28518else
28519 ac_check_lib_save_LIBS=$LIBS
28520LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028521cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028522/* end confdefs.h. */
28523
28524/* Override any GCC internal prototype to avoid an error.
28525 Use char because int might match the return type of a GCC
28526 builtin and then its argument prototype would still apply. */
28527#ifdef __cplusplus
28528extern "C"
28529#endif
28530char ddjvu_context_create ();
28531int
28532main ()
28533{
28534return ddjvu_context_create ();
28535 ;
28536 return 0;
28537}
28538_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028539if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028540 ac_cv_lib_djvulibre_ddjvu_context_create=yes
28541else
cristy8b350f62009-11-15 23:12:43 +000028542 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000028543fi
cristy8b350f62009-11-15 23:12:43 +000028544rm -f core conftest.err conftest.$ac_objext \
28545 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028546LIBS=$ac_check_lib_save_LIBS
28547fi
cristy8b350f62009-11-15 23:12:43 +000028548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000028549$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristyda16f162011-02-19 23:52:17 +000028550if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028551 passed=`expr $passed + 1`
28552else
28553 failed=`expr $failed + 1`
28554fi
28555
cristy8b350f62009-11-15 23:12:43 +000028556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028557$as_echo_n "checking if DJVU package is complete... " >&6; }
28558 if test $passed -gt 0; then
28559 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28561$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028562 have_djvu='no (failed tests)'
28563 else
28564 DJVU_LIBS='-ldjvulibre'
28565 LIBS="$DJVU_LIBS $LIBS"
28566
cristy8b350f62009-11-15 23:12:43 +000028567$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028568
cristyad38abe2012-12-23 23:03:21 +000028569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28570$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028571 have_djvu='yes'
28572 fi
28573 else
cristyad38abe2012-12-23 23:03:21 +000028574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28575$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028576 fi
28577fi
cristy73bd4a52010-10-05 11:24:23 +000028578 if test "$have_djvu" = 'yes'; then
28579 DJVU_DELEGATE_TRUE=
28580 DJVU_DELEGATE_FALSE='#'
28581else
28582 DJVU_DELEGATE_TRUE='#'
28583 DJVU_DELEGATE_FALSE=
28584fi
28585
cristy3ed852e2009-09-05 21:47:34 +000028586
28587
28588
28589#
cristy430a7312010-01-21 20:44:04 +000028590# Set DejaVu font directory.
28591#
28592
28593# Check whether --with-dejavu-font-dir was given.
28594if test "${with_dejavu_font_dir+set}" = set; then :
28595 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
28596else
28597 with_dejavu_font_dir='default'
28598fi
28599
28600
28601if test "$with_dejavu_font_dir" != 'default'; then
28602 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
28603fi
28604
28605
28606#
cristy3ed852e2009-09-05 21:47:34 +000028607# Check for FFTW delegate library.
28608#
28609
28610# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000028611if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028612 withval=$with_fftw; with_fftw=$withval
28613else
28614 with_fftw='yes'
28615fi
28616
28617
28618if test "$with_fftw" != 'yes'; then
28619 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
28620fi
28621
cristy81beccd2011-10-03 18:17:24 +000028622have_fftw='no'
28623FFTW_LIBS=''
28624if test "$with_fftw" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28626$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
28628$as_echo_n "checking for FFTW... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28630$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028631 failed=0
28632 passed=0
28633 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
28634if test "x$ac_cv_header_fftw3_h" = xyes; then :
28635 passed=`expr $passed + 1`
28636else
28637 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028638fi
28639
cristy81beccd2011-10-03 18:17:24 +000028640
28641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
28642$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
28643if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
28644 $as_echo_n "(cached) " >&6
28645else
28646 ac_check_lib_save_LIBS=$LIBS
28647LIBS="-lfftw3 $LIBS"
28648cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28649/* end confdefs.h. */
28650
28651/* Override any GCC internal prototype to avoid an error.
28652 Use char because int might match the return type of a GCC
28653 builtin and then its argument prototype would still apply. */
28654#ifdef __cplusplus
28655extern "C"
28656#endif
28657char fftw_execute ();
28658int
28659main ()
28660{
28661return fftw_execute ();
28662 ;
28663 return 0;
28664}
28665_ACEOF
28666if ac_fn_c_try_link "$LINENO"; then :
28667 ac_cv_lib_fftw3_fftw_execute=yes
28668else
28669 ac_cv_lib_fftw3_fftw_execute=no
28670fi
28671rm -f core conftest.err conftest.$ac_objext \
28672 conftest$ac_exeext conftest.$ac_ext
28673LIBS=$ac_check_lib_save_LIBS
28674fi
28675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
28676$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
28677if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
28678 passed=`expr $passed + 1`
28679else
28680 failed=`expr $failed + 1`
28681fi
28682
28683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
28684$as_echo_n "checking if FFTW package is complete... " >&6; }
28685 if test $passed -gt 0; then
28686 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28688$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028689 have_fftw='no (failed tests)'
28690 else
28691 FFTW_LIBS='-lfftw3'
28692 LIBS="$FFTW_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000028693
cristy8b350f62009-11-15 23:12:43 +000028694$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028695
cristyad38abe2012-12-23 23:03:21 +000028696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28697$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028698 have_fftw='yes'
28699 fi
28700 else
cristyad38abe2012-12-23 23:03:21 +000028701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28702$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028703 fi
28704fi
cristy73bd4a52010-10-05 11:24:23 +000028705 if test "$have_fftw" = 'yes'; then
28706 FFTW_DELEGATE_TRUE=
28707 FFTW_DELEGATE_FALSE='#'
28708else
28709 FFTW_DELEGATE_TRUE='#'
28710 FFTW_DELEGATE_FALSE=
28711fi
28712
cristy3ed852e2009-09-05 21:47:34 +000028713
28714
28715
28716#
28717# Check for FlashPIX delegate library.
28718#
28719
28720# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000028721if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028722 withval=$with_fpx; with_fpx=$withval
28723else
28724 with_fpx='yes'
28725fi
28726
28727
28728if test "$with_fpx" != 'yes'; then
28729 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
28730fi
28731
28732have_fpx='no'
28733FPX_LIBS=''
28734if test "$with_fpx" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28736$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000028738$as_echo_n "checking for FlashPIX... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28740$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028741 failed=0
28742 passed=0
28743 ac_ext=cpp
28744ac_cpp='$CXXCPP $CPPFLAGS'
28745ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28746ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28747ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28748
28749
cristy8b350f62009-11-15 23:12:43 +000028750ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028751if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028752 passed=`expr $passed + 1`
28753else
28754 failed=`expr $failed + 1`
28755fi
28756
28757
cristy8b350f62009-11-15 23:12:43 +000028758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000028759$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028760if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028761 $as_echo_n "(cached) " >&6
28762else
28763 ac_check_lib_save_LIBS=$LIBS
28764LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028765cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028766/* end confdefs.h. */
28767
28768/* Override any GCC internal prototype to avoid an error.
28769 Use char because int might match the return type of a GCC
28770 builtin and then its argument prototype would still apply. */
28771#ifdef __cplusplus
28772extern "C"
28773#endif
28774char FPX_OpenImageByFilename ();
28775int
28776main ()
28777{
28778return FPX_OpenImageByFilename ();
28779 ;
28780 return 0;
28781}
28782_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028783if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028784 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
28785else
cristy8b350f62009-11-15 23:12:43 +000028786 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000028787fi
cristy8b350f62009-11-15 23:12:43 +000028788rm -f core conftest.err conftest.$ac_objext \
28789 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028790LIBS=$ac_check_lib_save_LIBS
28791fi
cristy8b350f62009-11-15 23:12:43 +000028792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000028793$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000028794if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028795 passed=`expr $passed + 1`
28796else
28797 failed=`expr $failed + 1`
28798fi
28799
28800 ac_ext=c
28801ac_cpp='$CPP $CPPFLAGS'
28802ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28803ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28804ac_compiler_gnu=$ac_cv_c_compiler_gnu
28805
cristy8b350f62009-11-15 23:12:43 +000028806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028807$as_echo_n "checking if FlashPIX package is complete... " >&6; }
28808 if test $passed -gt 0; then
28809 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28811$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028812 have_fpx='no (failed tests)'
28813 else
28814 FPX_LIBS='-lfpx'
28815
cristy8b350f62009-11-15 23:12:43 +000028816$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028817
cristyad38abe2012-12-23 23:03:21 +000028818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28819$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028820 have_fpx='yes'
28821 PERLMAINCC="$CXX"
28822 fi
28823 else
cristyad38abe2012-12-23 23:03:21 +000028824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28825$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028826 fi
28827fi
cristy73bd4a52010-10-05 11:24:23 +000028828 if test "$have_fpx" = 'yes'; then
28829 FPX_DELEGATE_TRUE=
28830 FPX_DELEGATE_FALSE='#'
28831else
28832 FPX_DELEGATE_TRUE='#'
28833 FPX_DELEGATE_FALSE=
28834fi
28835
cristy3ed852e2009-09-05 21:47:34 +000028836
28837
28838
28839#
28840# Check for fontconfig delegate library.
28841#
28842
28843# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000028844if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028845 withval=$with_fontconfig; with_fontconfig=$withval
28846else
cristyfc3d0222012-02-07 15:05:57 +000028847 with_fontconfig='yes'
cristy3ed852e2009-09-05 21:47:34 +000028848fi
28849
28850
28851if test "$with_fontconfig" != 'yes'; then
28852 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
28853fi
28854
28855have_fontconfig='no'
28856FONTCONFIG_CFLAGS=""
28857FONTCONFIG_LIBS=""
28858FONTCONFIG_PKG=""
28859if test "x$with_fontconfig" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000028860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28861$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028862
28863pkg_failed=no
28864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
28865$as_echo_n "checking for FONTCONFIG... " >&6; }
28866
28867if test -n "$FONTCONFIG_CFLAGS"; then
28868 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
28869 elif test -n "$PKG_CONFIG"; then
28870 if test -n "$PKG_CONFIG" && \
28871 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28872 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28873 ac_status=$?
28874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28875 test $ac_status = 0; }; then
28876 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
28877else
28878 pkg_failed=yes
28879fi
28880 else
28881 pkg_failed=untried
28882fi
28883if test -n "$FONTCONFIG_LIBS"; then
28884 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
28885 elif test -n "$PKG_CONFIG"; then
28886 if test -n "$PKG_CONFIG" && \
28887 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28888 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28889 ac_status=$?
28890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28891 test $ac_status = 0; }; then
28892 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
28893else
28894 pkg_failed=yes
28895fi
28896 else
28897 pkg_failed=untried
28898fi
28899
28900
28901
28902if test $pkg_failed = yes; then
28903
28904if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28905 _pkg_short_errors_supported=yes
28906else
28907 _pkg_short_errors_supported=no
28908fi
28909 if test $_pkg_short_errors_supported = yes; then
28910 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
28911 else
28912 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
28913 fi
28914 # Put the nasty error message in config.log where it belongs
28915 echo "$FONTCONFIG_PKG_ERRORS" >&5
28916
28917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28918$as_echo "no" >&6; }
28919 have_fontconfig=no
28920elif test $pkg_failed = untried; then
28921 have_fontconfig=no
28922else
28923 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
28924 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
28925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28926$as_echo "yes" >&6; }
28927 have_fontconfig=yes
28928fi
cristyad38abe2012-12-23 23:03:21 +000028929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28930$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028931fi
28932
28933if test "$have_fontconfig" = 'yes'; then
28934
cristy8b350f62009-11-15 23:12:43 +000028935$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028936
cristyc6722092012-10-14 00:19:31 +000028937 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000028938 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000028939 fi
cristy3ed852e2009-09-05 21:47:34 +000028940fi
28941
cristy73bd4a52010-10-05 11:24:23 +000028942 if test "$have_fontconfig" = 'yes'; then
28943 FONTCONFIG_DELEGATE_TRUE=
28944 FONTCONFIG_DELEGATE_FALSE='#'
28945else
28946 FONTCONFIG_DELEGATE_TRUE='#'
28947 FONTCONFIG_DELEGATE_FALSE=
28948fi
28949
cristy3ed852e2009-09-05 21:47:34 +000028950
28951
28952
28953
28954#
cristy03f187e2013-01-24 00:22:19 +000028955# Check for the Freetype delegate library.
cristy3ed852e2009-09-05 21:47:34 +000028956#
28957
28958# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000028959if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028960 withval=$with_freetype; with_freetype=$withval
28961else
28962 with_freetype='yes'
28963fi
28964
28965
cristy3ed852e2009-09-05 21:47:34 +000028966if test "$with_freetype" != 'yes'; then
28967 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
28968fi
28969
cristy81beccd2011-10-03 18:17:24 +000028970have_freetype='no'
cristy03f187e2013-01-24 00:22:19 +000028971FREETYPE_CFLAGS=""
28972FREETYPE_LIBS=""
28973FREETYPE_PKG=""
28974if test "x$with_freetype" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000028975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28976$as_echo "-------------------------------------------------------------" >&6; }
cristy03f187e2013-01-24 00:22:19 +000028977
28978pkg_failed=no
28979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
28980$as_echo_n "checking for FREETYPE... " >&6; }
28981
28982if test -n "$FREETYPE_CFLAGS"; then
28983 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
28984 elif test -n "$PKG_CONFIG"; then
28985 if test -n "$PKG_CONFIG" && \
28986 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
28987 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
28988 ac_status=$?
28989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28990 test $ac_status = 0; }; then
28991 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
28992else
28993 pkg_failed=yes
28994fi
28995 else
28996 pkg_failed=untried
28997fi
28998if test -n "$FREETYPE_LIBS"; then
28999 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
29000 elif test -n "$PKG_CONFIG"; then
29001 if test -n "$PKG_CONFIG" && \
29002 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
29003 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
29004 ac_status=$?
29005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29006 test $ac_status = 0; }; then
29007 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
29008else
29009 pkg_failed=yes
29010fi
29011 else
29012 pkg_failed=untried
29013fi
29014
29015
29016
29017if test $pkg_failed = yes; then
29018
29019if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29020 _pkg_short_errors_supported=yes
29021else
29022 _pkg_short_errors_supported=no
29023fi
29024 if test $_pkg_short_errors_supported = yes; then
29025 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1`
29026 else
29027 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1`
29028 fi
29029 # Put the nasty error message in config.log where it belongs
29030 echo "$FREETYPE_PKG_ERRORS" >&5
29031
29032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29033$as_echo "no" >&6; }
29034 have_freetype=no
29035elif test $pkg_failed = untried; then
29036 have_freetype=no
29037else
29038 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
29039 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
29040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29041$as_echo "yes" >&6; }
29042 have_freetype=yes
29043fi
cristyad38abe2012-12-23 23:03:21 +000029044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29045$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029046fi
29047
cristy03f187e2013-01-24 00:22:19 +000029048if test "$have_freetype" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029049
cristy8b350f62009-11-15 23:12:43 +000029050$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029051
cristy03f187e2013-01-24 00:22:19 +000029052 CFLAGS="$FREETYPE_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000029053fi
cristy03f187e2013-01-24 00:22:19 +000029054
cristy73bd4a52010-10-05 11:24:23 +000029055 if test "$have_freetype" = 'yes'; then
29056 FREETYPE_DELEGATE_TRUE=
29057 FREETYPE_DELEGATE_FALSE='#'
29058else
29059 FREETYPE_DELEGATE_TRUE='#'
29060 FREETYPE_DELEGATE_FALSE=
29061fi
29062
cristy3ed852e2009-09-05 21:47:34 +000029063
29064
29065
cristy03f187e2013-01-24 00:22:19 +000029066
cristy3ed852e2009-09-05 21:47:34 +000029067#
29068# Check for Ghostscript library or framework.
29069#
29070# Test for iapi.h & test for gsapi_new_instance in -lgs
29071# or -framework Ghostscript
29072
29073
29074# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000029075if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029076 withval=$with_gslib; with_gslib=$withval
29077else
29078 with_gslib='no'
29079fi
29080
29081
cristyb7931f12009-09-25 10:22:21 +000029082gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000029083if test "$with_gslib" != 'yes'; then
29084 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
29085fi
29086
29087have_gslib='no'
29088GS_LIBS=''
29089if test "$with_gslib" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29091$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000029093$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29095$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000029096 framework=0
cristy3ed852e2009-09-05 21:47:34 +000029097 failed=0
29098 passed=0
cristy8b350f62009-11-15 23:12:43 +000029099 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 +000029100if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029101 passed=`expr $passed + 1`
29102else
29103 failed=`expr $failed + 1`
29104fi
29105
29106
cristy8b350f62009-11-15 23:12:43 +000029107 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 +000029108if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029109 passed=`expr $passed + 1`
29110else
29111 failed=`expr $failed + 1`
29112fi
29113
29114
cristy73bd4a52010-10-05 11:24:23 +000029115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
29116$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029117if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000029118 $as_echo_n "(cached) " >&6
29119else
29120 ac_check_framework_save_LIBS=$LIBS
29121LIBS="-framework Ghostscript $LIBS"
29122cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29123/* end confdefs.h. */
29124
29125/* Override any GCC internal prototype to avoid an error.
29126 Use char because int might match the return type of a GCC
29127 builtin and then its argument prototype would still apply. */
29128#ifdef __cplusplus
29129extern "C"
29130#endif
29131char gsapi_new_instance ();
29132int
29133main ()
29134{
29135return gsapi_new_instance ();
29136 ;
29137 return 0;
29138}
29139_ACEOF
29140if ac_fn_c_try_link "$LINENO"; then :
29141 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
29142else
29143 ac_cv_framework_Ghostscript_gsapi_new_instance=no
29144fi
29145rm -f core conftest.err conftest.$ac_objext \
29146 conftest$ac_exeext conftest.$ac_ext
29147LIBS=$ac_check_framework_save_LIBS
29148fi
29149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
29150$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
29151if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
29152 framework=`expr $framework + 1`
29153else
29154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029155$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029156if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029157 $as_echo_n "(cached) " >&6
29158else
29159 ac_check_lib_save_LIBS=$LIBS
29160LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029161cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029162/* end confdefs.h. */
29163
29164/* Override any GCC internal prototype to avoid an error.
29165 Use char because int might match the return type of a GCC
29166 builtin and then its argument prototype would still apply. */
29167#ifdef __cplusplus
29168extern "C"
29169#endif
29170char gsapi_new_instance ();
29171int
29172main ()
29173{
29174return gsapi_new_instance ();
29175 ;
29176 return 0;
29177}
29178_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029179if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029180 ac_cv_lib_gs_gsapi_new_instance=yes
29181else
cristy8b350f62009-11-15 23:12:43 +000029182 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000029183fi
cristy8b350f62009-11-15 23:12:43 +000029184rm -f core conftest.err conftest.$ac_objext \
29185 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029186LIBS=$ac_check_lib_save_LIBS
29187fi
cristy8b350f62009-11-15 23:12:43 +000029188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000029189$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000029190if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029191 passed=`expr $passed + 1`
29192else
29193 failed=`expr $failed + 1`
29194fi
cristy73bd4a52010-10-05 11:24:23 +000029195
29196fi
cristy8b350f62009-11-15 23:12:43 +000029197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029198$as_echo_n "checking if Ghostscript package is complete... " >&6; }
29199 if test $passed -gt 0; then
29200 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29202$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029203 have_gslib='no (failed tests)'
29204 else
29205 if test $framework -gt 0; then
29206 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000029207 gslib_framework='yes'
cristyad38abe2012-12-23 23:03:21 +000029208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
29209$as_echo "yes, using framework." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029210 else
cristyad38abe2012-12-23 23:03:21 +000029211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
29212$as_echo "yes, using library." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029213 GS_LIBS='-lgs'
29214 fi
29215 LIBS="$GS_LIBS $LIBS"
29216
cristy8b350f62009-11-15 23:12:43 +000029217$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029218
29219 have_gslib='yes'
29220 fi
29221 else
cristyad38abe2012-12-23 23:03:21 +000029222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29223$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029224 fi
29225fi
cristy73bd4a52010-10-05 11:24:23 +000029226 if test "$have_gslib" = 'yes'; then
29227 GS_DELEGATE_TRUE=
29228 GS_DELEGATE_FALSE='#'
29229else
29230 GS_DELEGATE_TRUE='#'
29231 GS_DELEGATE_FALSE=
29232fi
29233
cristy3ed852e2009-09-05 21:47:34 +000029234
29235
29236# Set default font search path
29237
29238# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000029239if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029240 withval=$with_fontpath; with_fontpath=$withval
29241else
29242 with_fontpath=''
29243fi
29244
29245
29246if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
29247 with_fontpath=''
29248else
29249
29250cat >>confdefs.h <<_ACEOF
29251#define MAGICK_FONT_PATH "$with_fontpath"
29252_ACEOF
29253
29254fi
29255if test "$with_fontpath=" != ''; then
29256 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
29257fi
29258
29259# Set Ghostscript font directory
29260
29261# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029262if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029263 withval=$with_gs_font_dir; with_gs_font_dir=$withval
29264else
29265 with_gs_font_dir='default'
29266fi
29267
29268
29269if test "$with_gs_font_dir" != 'default'; then
29270 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
29271fi
29272
29273
29274#
29275# Check for GVC delegate library.
29276#
29277
29278# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000029279if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029280 withval=$with_gvc; with_gvc=$withval
29281else
cristy1b70dc82012-07-01 23:15:05 +000029282 with_gvc='no'
cristy3ed852e2009-09-05 21:47:34 +000029283fi
29284
29285
29286if test "$with_gvc" != 'yes'; then
29287 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
29288fi
29289
29290GVC_PKG=""
29291if test "x$with_gvc" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29293$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029294
29295pkg_failed=no
29296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
29297$as_echo_n "checking for GVC... " >&6; }
29298
29299if test -n "$GVC_CFLAGS"; then
29300 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
29301 elif test -n "$PKG_CONFIG"; then
29302 if test -n "$PKG_CONFIG" && \
29303 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29304 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29305 ac_status=$?
29306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29307 test $ac_status = 0; }; then
29308 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
29309else
29310 pkg_failed=yes
29311fi
29312 else
29313 pkg_failed=untried
29314fi
29315if test -n "$GVC_LIBS"; then
29316 pkg_cv_GVC_LIBS="$GVC_LIBS"
29317 elif test -n "$PKG_CONFIG"; then
29318 if test -n "$PKG_CONFIG" && \
29319 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29320 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29321 ac_status=$?
29322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29323 test $ac_status = 0; }; then
29324 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
29325else
29326 pkg_failed=yes
29327fi
29328 else
29329 pkg_failed=untried
29330fi
29331
29332
29333
29334if test $pkg_failed = yes; then
29335
29336if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29337 _pkg_short_errors_supported=yes
29338else
29339 _pkg_short_errors_supported=no
29340fi
29341 if test $_pkg_short_errors_supported = yes; then
29342 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
29343 else
29344 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
29345 fi
29346 # Put the nasty error message in config.log where it belongs
29347 echo "$GVC_PKG_ERRORS" >&5
29348
29349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29350$as_echo "no" >&6; }
29351 have_gvc=no
29352elif test $pkg_failed = untried; then
29353 have_gvc=no
29354else
29355 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
29356 GVC_LIBS=$pkg_cv_GVC_LIBS
29357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29358$as_echo "yes" >&6; }
29359 have_gvc=yes
29360fi
cristyad38abe2012-12-23 23:03:21 +000029361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29362$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029363fi
29364
29365if test "$have_gvc" = 'yes'; then
29366
cristy8b350f62009-11-15 23:12:43 +000029367$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029368
cristyc6722092012-10-14 00:19:31 +000029369 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000029370 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
29371 fi
29372fi
29373
cristy73bd4a52010-10-05 11:24:23 +000029374 if test "$have_gvc" = 'yes'; then
29375 GVC_DELEGATE_TRUE=
29376 GVC_DELEGATE_FALSE='#'
29377else
29378 GVC_DELEGATE_TRUE='#'
29379 GVC_DELEGATE_FALSE=
29380fi
29381
cristy3ed852e2009-09-05 21:47:34 +000029382
29383
29384
29385
29386#
29387# Check for JBIG delegate library.
29388#
29389
29390
29391# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000029392if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029393 withval=$with_jbig; with_jbig=$withval
29394else
29395 with_jbig='yes'
29396fi
29397
29398
29399have_jbig='no'
29400JBIG_LIBS=''
29401if test "$with_jbig" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29403$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029405$as_echo_n "checking for JBIG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29407$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029408 failed=0
29409 passed=0
cristy8b350f62009-11-15 23:12:43 +000029410 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029411if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029412 passed=`expr $passed + 1`
29413else
29414 failed=`expr $failed + 1`
29415fi
29416
29417
cristy8b350f62009-11-15 23:12:43 +000029418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000029419$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029420if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029421 $as_echo_n "(cached) " >&6
29422else
29423 ac_check_lib_save_LIBS=$LIBS
29424LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029425cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029426/* end confdefs.h. */
29427
29428/* Override any GCC internal prototype to avoid an error.
29429 Use char because int might match the return type of a GCC
29430 builtin and then its argument prototype would still apply. */
29431#ifdef __cplusplus
29432extern "C"
29433#endif
29434char jbg_dec_init ();
29435int
29436main ()
29437{
29438return jbg_dec_init ();
29439 ;
29440 return 0;
29441}
29442_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029443if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029444 ac_cv_lib_jbig_jbg_dec_init=yes
29445else
cristy8b350f62009-11-15 23:12:43 +000029446 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000029447fi
cristy8b350f62009-11-15 23:12:43 +000029448rm -f core conftest.err conftest.$ac_objext \
29449 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029450LIBS=$ac_check_lib_save_LIBS
29451fi
cristy8b350f62009-11-15 23:12:43 +000029452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000029453$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000029454if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029455 passed=`expr $passed + 1`
29456else
29457 failed=`expr $failed + 1`
29458fi
29459
cristy8b350f62009-11-15 23:12:43 +000029460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029461$as_echo_n "checking if JBIG package is complete... " >&6; }
29462 if test $passed -gt 0; then
29463 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29465$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029466 have_jbig='no (failed tests)'
29467 else
29468 JBIG_LIBS='-ljbig'
29469 LIBS="$JBIG_LIBS $LIBS"
29470
cristy8b350f62009-11-15 23:12:43 +000029471$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029472
cristyad38abe2012-12-23 23:03:21 +000029473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29474$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029475 have_jbig='yes'
29476 fi
29477 else
cristyad38abe2012-12-23 23:03:21 +000029478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29479$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029480 fi
29481fi
cristy73bd4a52010-10-05 11:24:23 +000029482 if test "$have_jbig" = 'yes'; then
29483 JBIG_DELEGATE_TRUE=
29484 JBIG_DELEGATE_FALSE='#'
29485else
29486 JBIG_DELEGATE_TRUE='#'
29487 JBIG_DELEGATE_FALSE=
29488fi
29489
cristy3ed852e2009-09-05 21:47:34 +000029490
29491
29492
29493#
29494# Check for JPEG delegate library.
29495#
29496
29497# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000029498if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029499 withval=$with_jpeg; with_jpeg=$withval
29500else
29501 with_jpeg='yes'
29502fi
29503
29504
29505if test "$with_jpeg" != 'yes'; then
29506 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
29507fi
29508
29509have_jpeg='no'
29510JPEG_LIBS=''
29511if test "$with_jpeg" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29513$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029515$as_echo_n "checking for JPEG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29517$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029518 failed=0
29519 passed=0
cristy8b350f62009-11-15 23:12:43 +000029520 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029521if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029522 passed=`expr $passed + 1`
29523else
29524 failed=`expr $failed + 1`
29525fi
29526
29527
cristy8b350f62009-11-15 23:12:43 +000029528 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029529if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029530 passed=`expr $passed + 1`
29531else
29532 failed=`expr $failed + 1`
29533fi
29534
29535
cristy8b350f62009-11-15 23:12:43 +000029536 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029537if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029538 passed=`expr $passed + 1`
29539else
29540 failed=`expr $failed + 1`
29541fi
29542
29543
cristy8b350f62009-11-15 23:12:43 +000029544 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029545if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029546 passed=`expr $passed + 1`
29547else
29548 failed=`expr $failed + 1`
29549fi
29550
29551
cristy8b350f62009-11-15 23:12:43 +000029552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000029553$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029554if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029555 $as_echo_n "(cached) " >&6
29556else
29557 ac_check_lib_save_LIBS=$LIBS
29558LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029559cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029560/* end confdefs.h. */
29561
29562/* Override any GCC internal prototype to avoid an error.
29563 Use char because int might match the return type of a GCC
29564 builtin and then its argument prototype would still apply. */
29565#ifdef __cplusplus
29566extern "C"
29567#endif
29568char jpeg_read_header ();
29569int
29570main ()
29571{
29572return jpeg_read_header ();
29573 ;
29574 return 0;
29575}
29576_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029577if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029578 ac_cv_lib_jpeg_jpeg_read_header=yes
29579else
cristy8b350f62009-11-15 23:12:43 +000029580 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000029581fi
cristy8b350f62009-11-15 23:12:43 +000029582rm -f core conftest.err conftest.$ac_objext \
29583 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029584LIBS=$ac_check_lib_save_LIBS
29585fi
cristy8b350f62009-11-15 23:12:43 +000029586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000029587$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000029588if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029589 passed=`expr $passed + 1`
29590else
29591 failed=`expr $failed + 1`
29592fi
29593
29594
29595# Test for compatible JPEG library
29596if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000029597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000029598$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029599if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029600 $as_echo_n "(cached) " >&6
29601else
cristy8b350f62009-11-15 23:12:43 +000029602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029603/* end confdefs.h. */
29604#include <stdio.h>
29605#include <stdlib.h>
29606#include <jpeglib.h>
29607
29608int
29609main ()
29610{
29611
29612#if JPEG_LIB_VERSION < 62
29613#error IJG JPEG library must be version 6b or newer!
29614#endif
29615return 0;
29616
29617 ;
29618 return 0;
29619}
29620_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029621if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029622 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
29623else
cristy8b350f62009-11-15 23:12:43 +000029624 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029625fi
cristy3ed852e2009-09-05 21:47:34 +000029626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29627fi
cristy8b350f62009-11-15 23:12:43 +000029628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000029629$as_echo "$ac_cv_jpeg_version_ok" >&6; }
29630fi
cristy8b350f62009-11-15 23:12:43 +000029631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029632$as_echo_n "checking if JPEG package is complete... " >&6; }
29633 if test $passed -gt 0; then
29634 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29636$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029637 have_jpeg='no (failed tests)'
29638 else
29639 JPEG_LIBS='-ljpeg'
29640 LIBS="$JPEG_LIBS $LIBS"
29641
cristy8b350f62009-11-15 23:12:43 +000029642$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029643
cristyad38abe2012-12-23 23:03:21 +000029644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29645$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029646 have_jpeg='yes'
29647 fi
29648 else
cristyad38abe2012-12-23 23:03:21 +000029649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29650$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029651 fi
29652fi
cristy73bd4a52010-10-05 11:24:23 +000029653 if test "$have_jpeg" = 'yes'; then
29654 JPEG_DELEGATE_TRUE=
29655 JPEG_DELEGATE_FALSE='#'
29656else
29657 JPEG_DELEGATE_TRUE='#'
29658 JPEG_DELEGATE_FALSE=
29659fi
29660
cristy3ed852e2009-09-05 21:47:34 +000029661
29662
29663
29664#
29665# Check for JPEG Version 2 delegate library.
29666#
29667
29668# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000029669if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029670 withval=$with_jp2; with_jp2=$withval
29671else
29672 with_jp2='yes'
29673fi
29674
29675
29676if test "$with_jp2" != 'yes'; then
29677 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
29678fi
29679
29680have_jp2='no'
29681JP2_LIBS=''
29682if test "$with_jp2" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29684$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000029686$as_echo_n "checking for JPEG Version 2... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29688$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029689 failed=0
29690 passed=0
cristy8b350f62009-11-15 23:12:43 +000029691 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 +000029692if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029693 passed=`expr $passed + 1`
29694else
29695 failed=`expr $failed + 1`
29696fi
29697
29698
cristy8b350f62009-11-15 23:12:43 +000029699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000029700$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029701if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029702 $as_echo_n "(cached) " >&6
29703else
29704 ac_check_lib_save_LIBS=$LIBS
29705LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029706cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029707/* end confdefs.h. */
29708
29709/* Override any GCC internal prototype to avoid an error.
29710 Use char because int might match the return type of a GCC
29711 builtin and then its argument prototype would still apply. */
29712#ifdef __cplusplus
29713extern "C"
29714#endif
29715char jas_stream_fopen ();
29716int
29717main ()
29718{
29719return jas_stream_fopen ();
29720 ;
29721 return 0;
29722}
29723_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029724if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029725 ac_cv_lib_jasper_jas_stream_fopen=yes
29726else
cristy8b350f62009-11-15 23:12:43 +000029727 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000029728fi
cristy8b350f62009-11-15 23:12:43 +000029729rm -f core conftest.err conftest.$ac_objext \
29730 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029731LIBS=$ac_check_lib_save_LIBS
29732fi
cristy8b350f62009-11-15 23:12:43 +000029733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000029734$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000029735if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029736 passed=`expr $passed + 1`
29737else
29738 failed=`expr $failed + 1`
29739fi
29740
cristy8b350f62009-11-15 23:12:43 +000029741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029742$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
29743 if test $passed -gt 0; then
29744 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29746$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029747 have_jp2='no (failed tests)'
29748 else
29749 JP2_LIBS='-ljasper'
29750 LIBS="$JP2_LIBS $LIBS"
29751
cristy8b350f62009-11-15 23:12:43 +000029752$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029753
cristyad38abe2012-12-23 23:03:21 +000029754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29755$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029756 have_jp2='yes'
29757 fi
29758 else
cristyad38abe2012-12-23 23:03:21 +000029759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29760$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029761 fi
29762fi
cristy73bd4a52010-10-05 11:24:23 +000029763 if test "$have_jp2" = 'yes'; then
29764 JP2_DELEGATE_TRUE=
29765 JP2_DELEGATE_FALSE='#'
29766else
29767 JP2_DELEGATE_TRUE='#'
29768 JP2_DELEGATE_FALSE=
29769fi
29770
cristy3ed852e2009-09-05 21:47:34 +000029771
29772
29773
29774#
29775# Check for LCMS delegate library.
29776#
cristy71203402010-06-18 13:12:03 +000029777# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000029778
29779# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000029780if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029781 withval=$with_lcms; with_lcms=$withval
29782else
29783 with_lcms='yes'
29784fi
29785
cristy71203402010-06-18 13:12:03 +000029786if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000029787 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
29788fi
29789
cristy71203402010-06-18 13:12:03 +000029790# Disable LCMS2.
29791
29792# Check whether --with-lcms2 was given.
29793if test "${with_lcms2+set}" = set; then :
29794 withval=$with_lcms2; with_lcms2=$withval
29795else
29796 with_lcms2='yes'
29797fi
29798
29799if test "$with_lcms2" != 'yes' ; then
29800 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
29801fi
29802
29803have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000029804LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000029805if test "$with_lcms2" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29807$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000029808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
29809$as_echo_n "checking for LCMS v2... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29811$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029812 failed=0
29813 passed=0
29814 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029815
29816 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000029817 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029818if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029819 have_lcms_header='yes'
29820fi
29821
29822
29823 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000029824
29825$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
29826
cristy71203402010-06-18 13:12:03 +000029827 passed=`expr $passed + 1`
29828 fi
29829
29830 # Check for <lcms2/lcms2.h)
29831 if test "$have_lcms_header" != 'yes'; then
29832 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 +000029833if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029834 have_lcms_header='yes'
29835fi
29836
29837
cristy71203402010-06-18 13:12:03 +000029838 if test "$have_lcms_header" = 'yes'; then
29839 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000029840
cristy71203402010-06-18 13:12:03 +000029841$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000029842
cristy71203402010-06-18 13:12:03 +000029843 fi
cristyd09bcf92010-03-25 03:04:45 +000029844 fi
cristy71203402010-06-18 13:12:03 +000029845
29846 # Failed to find lcms header?
29847 if test "$have_lcms_header" != 'yes'; then
29848 failed=`expr $failed + 1`
29849 fi
29850
29851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
29852$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029853if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000029854 $as_echo_n "(cached) " >&6
29855else
29856 ac_check_lib_save_LIBS=$LIBS
29857LIBS="-llcms2 $LIBS"
29858cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29859/* end confdefs.h. */
29860
29861/* Override any GCC internal prototype to avoid an error.
29862 Use char because int might match the return type of a GCC
29863 builtin and then its argument prototype would still apply. */
29864#ifdef __cplusplus
29865extern "C"
29866#endif
cristy71203402010-06-18 13:12:03 +000029867char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029868int
29869main ()
29870{
cristy71203402010-06-18 13:12:03 +000029871return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029872 ;
29873 return 0;
29874}
29875_ACEOF
29876if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000029877 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000029878else
cristy71203402010-06-18 13:12:03 +000029879 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000029880fi
29881rm -f core conftest.err conftest.$ac_objext \
29882 conftest$ac_exeext conftest.$ac_ext
29883LIBS=$ac_check_lib_save_LIBS
29884fi
cristy71203402010-06-18 13:12:03 +000029885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
29886$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000029887if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029888 passed=`expr $passed + 1`
29889else
29890 failed=`expr $failed + 1`
29891fi
29892
cristy71203402010-06-18 13:12:03 +000029893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
29894$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000029895 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000029896 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29898$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000029899 have_lcms2='no (failed tests)'
29900 else
29901 LCMS_LIBS='-llcms2'
29902 LIBS="$LCMS_LIBS $LIBS"
cristyad38abe2012-12-23 23:03:21 +000029903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29904$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000029905 have_lcms2='yes'
29906 fi
cristyd09bcf92010-03-25 03:04:45 +000029907 else
cristyad38abe2012-12-23 23:03:21 +000029908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29909$as_echo "no" >&6; }
cristyd09bcf92010-03-25 03:04:45 +000029910 fi
29911fi
29912
cristy71203402010-06-18 13:12:03 +000029913#
29914# Check for LCMS v1 (1.11 or later)
29915#
29916if test $have_lcms2 = 'yes'; then
29917 with_lcms='no'
29918fi
29919
29920have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000029921if test "$with_lcms" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29923$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000029924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
29925$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29927$as_echo "" >&6; }
cristyd09bcf92010-03-25 03:04:45 +000029928 failed=0
29929 passed=0
29930 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029931
29932 # Check for <lcms.h>
29933 if test "$have_lcms_header" != 'yes'; then
29934 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029935if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029936 have_lcms_header='yes'
29937fi
29938
29939
cristy71203402010-06-18 13:12:03 +000029940 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029941 passed=`expr $passed + 1`
29942
cristy8b350f62009-11-15 23:12:43 +000029943$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029944
cristy71203402010-06-18 13:12:03 +000029945 fi
29946 fi
29947
29948 # Check for <lcms/lcms.h>
29949 if test "$have_lcms_header" != 'yes'; then
29950 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 +000029951if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029952 have_lcms_header='yes'
29953fi
29954
29955
cristy71203402010-06-18 13:12:03 +000029956 if test "$have_lcms_header" = 'yes'; then
29957 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029958
cristy8b350f62009-11-15 23:12:43 +000029959$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029960
cristy71203402010-06-18 13:12:03 +000029961 fi
cristy3ed852e2009-09-05 21:47:34 +000029962 fi
cristy71203402010-06-18 13:12:03 +000029963
29964 # Failed to find lcms header?
29965 if test "$have_lcms_header" != 'yes'; then
29966 failed=`expr $failed + 1`
29967 fi
29968
29969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
29970$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029971if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029972 $as_echo_n "(cached) " >&6
29973else
29974 ac_check_lib_save_LIBS=$LIBS
29975LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029976cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029977/* end confdefs.h. */
29978
29979/* Override any GCC internal prototype to avoid an error.
29980 Use char because int might match the return type of a GCC
29981 builtin and then its argument prototype would still apply. */
29982#ifdef __cplusplus
29983extern "C"
29984#endif
cristy71203402010-06-18 13:12:03 +000029985char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000029986int
29987main ()
29988{
cristy71203402010-06-18 13:12:03 +000029989return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000029990 ;
29991 return 0;
29992}
29993_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029994if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000029995 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000029996else
cristy71203402010-06-18 13:12:03 +000029997 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000029998fi
cristy8b350f62009-11-15 23:12:43 +000029999rm -f core conftest.err conftest.$ac_objext \
30000 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030001LIBS=$ac_check_lib_save_LIBS
30002fi
cristy71203402010-06-18 13:12:03 +000030003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
30004$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030005if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030006 passed=`expr $passed + 1`
30007else
30008 failed=`expr $failed + 1`
30009fi
30010
cristy8b350f62009-11-15 23:12:43 +000030011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030012$as_echo_n "checking if LCMS package is complete... " >&6; }
30013 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030014 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30016$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000030017 have_lcms='no (failed tests)'
30018 else
30019 LCMS_LIBS='-llcms'
30020 LIBS="$LCMS_LIBS $LIBS"
cristyad38abe2012-12-23 23:03:21 +000030021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30022$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000030023 have_lcms='yes'
30024 fi
cristy3ed852e2009-09-05 21:47:34 +000030025 else
cristyad38abe2012-12-23 23:03:21 +000030026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30027$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030028 fi
30029fi
cristy71203402010-06-18 13:12:03 +000030030
cristy73bd4a52010-10-05 11:24:23 +000030031 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30032 LCMS_DELEGATE_TRUE=
30033 LCMS_DELEGATE_FALSE='#'
30034else
30035 LCMS_DELEGATE_TRUE='#'
30036 LCMS_DELEGATE_FALSE=
30037fi
30038
cristy71203402010-06-18 13:12:03 +000030039if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30040
30041$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
30042
30043fi
30044
cristy3ed852e2009-09-05 21:47:34 +000030045
30046
30047
30048#
30049# Check for the LQR (Liquid Rescale) delegate library.
30050#
30051
30052# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000030053if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030054 withval=$with_lqr; with_lqr=$withval
30055else
30056 with_lqr='yes'
30057fi
30058
30059
30060if test "$with_lqr" != 'yes'; then
30061 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
30062fi
30063
30064have_lqr='no'
30065LQR_CFLAGS=""
30066LQR_LIBS=""
30067LQR_PKG=""
30068if test "x$with_lqr" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30070$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030071
30072pkg_failed=no
30073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
30074$as_echo_n "checking for LQR... " >&6; }
30075
30076if test -n "$LQR_CFLAGS"; then
30077 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
30078 elif test -n "$PKG_CONFIG"; then
30079 if test -n "$PKG_CONFIG" && \
30080 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30081 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30082 ac_status=$?
30083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30084 test $ac_status = 0; }; then
30085 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
30086else
30087 pkg_failed=yes
30088fi
30089 else
30090 pkg_failed=untried
30091fi
30092if test -n "$LQR_LIBS"; then
30093 pkg_cv_LQR_LIBS="$LQR_LIBS"
30094 elif test -n "$PKG_CONFIG"; then
30095 if test -n "$PKG_CONFIG" && \
30096 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30097 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30098 ac_status=$?
30099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30100 test $ac_status = 0; }; then
30101 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
30102else
30103 pkg_failed=yes
30104fi
30105 else
30106 pkg_failed=untried
30107fi
30108
30109
30110
30111if test $pkg_failed = yes; then
30112
30113if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30114 _pkg_short_errors_supported=yes
30115else
30116 _pkg_short_errors_supported=no
30117fi
30118 if test $_pkg_short_errors_supported = yes; then
30119 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
30120 else
30121 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
30122 fi
30123 # Put the nasty error message in config.log where it belongs
30124 echo "$LQR_PKG_ERRORS" >&5
30125
30126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30127$as_echo "no" >&6; }
30128 have_lqr=no
30129elif test $pkg_failed = untried; then
30130 have_lqr=no
30131else
30132 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
30133 LQR_LIBS=$pkg_cv_LQR_LIBS
30134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30135$as_echo "yes" >&6; }
30136 have_lqr=yes
30137fi
cristyad38abe2012-12-23 23:03:21 +000030138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30139$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030140fi
30141
30142if test "$have_lqr" = 'yes'; then
30143
cristy8b350f62009-11-15 23:12:43 +000030144$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030145
30146 CFLAGS="$LQR_CFLAGS $CFLAGS"
30147fi
30148
cristy73bd4a52010-10-05 11:24:23 +000030149 if test "$have_lqr" = 'yes'; then
30150 LQR_DELEGATE_TRUE=
30151 LQR_DELEGATE_FALSE='#'
30152else
30153 LQR_DELEGATE_TRUE='#'
30154 LQR_DELEGATE_FALSE=
30155fi
30156
cristy3ed852e2009-09-05 21:47:34 +000030157
30158
30159
30160
cristy81beccd2011-10-03 18:17:24 +000030161# Disable LZMA (lzma library)
cristyfbb0ef02010-12-19 02:32:11 +000030162
30163# Check whether --with-lzma was given.
30164if test "${with_lzma+set}" = set; then :
30165 withval=$with_lzma; with_lzma=$withval
30166else
30167 with_lzma='yes'
30168fi
30169
cristy81beccd2011-10-03 18:17:24 +000030170if test "$with_lzma" != 'yes' ; then
cristyfbb0ef02010-12-19 02:32:11 +000030171 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
30172fi
30173
cristyb94e5002011-11-14 13:20:10 +000030174LZMA_PKG=""
30175if test "x$with_lzma" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30177$as_echo "-------------------------------------------------------------" >&6; }
cristyb94e5002011-11-14 13:20:10 +000030178
30179pkg_failed=no
30180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
cristyfbb0ef02010-12-19 02:32:11 +000030181$as_echo_n "checking for LZMA... " >&6; }
cristyb94e5002011-11-14 13:20:10 +000030182
30183if test -n "$LZMA_CFLAGS"; then
30184 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
30185 elif test -n "$PKG_CONFIG"; then
30186 if test -n "$PKG_CONFIG" && \
30187 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30188 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30189 ac_status=$?
30190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30191 test $ac_status = 0; }; then
30192 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null`
30193else
30194 pkg_failed=yes
30195fi
30196 else
30197 pkg_failed=untried
30198fi
30199if test -n "$LZMA_LIBS"; then
30200 pkg_cv_LZMA_LIBS="$LZMA_LIBS"
30201 elif test -n "$PKG_CONFIG"; then
30202 if test -n "$PKG_CONFIG" && \
30203 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30204 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30205 ac_status=$?
30206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30207 test $ac_status = 0; }; then
30208 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null`
30209else
30210 pkg_failed=yes
30211fi
30212 else
30213 pkg_failed=untried
30214fi
30215
30216
30217
30218if test $pkg_failed = yes; then
30219
30220if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30221 _pkg_short_errors_supported=yes
30222else
30223 _pkg_short_errors_supported=no
30224fi
30225 if test $_pkg_short_errors_supported = yes; then
30226 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "liblzma >= 2.9.0" 2>&1`
30227 else
30228 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "liblzma >= 2.9.0" 2>&1`
30229 fi
30230 # Put the nasty error message in config.log where it belongs
30231 echo "$LZMA_PKG_ERRORS" >&5
30232
30233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30234$as_echo "no" >&6; }
30235 have_lzma=no
30236elif test $pkg_failed = untried; then
30237 have_lzma=no
30238else
30239 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
30240 LZMA_LIBS=$pkg_cv_LZMA_LIBS
30241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30242$as_echo "yes" >&6; }
30243 have_lzma=yes
30244fi
cristyad38abe2012-12-23 23:03:21 +000030245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30246$as_echo "" >&6; }
cristyfbb0ef02010-12-19 02:32:11 +000030247fi
30248
cristyb94e5002011-11-14 13:20:10 +000030249if test "$have_lzma" = 'yes'; then
cristyfbb0ef02010-12-19 02:32:11 +000030250
30251$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
30252
cristyc6722092012-10-14 00:19:31 +000030253 if test "$build_modules" = 'no'; then
cristyb94e5002011-11-14 13:20:10 +000030254 CPPFLAGS="$LZMA_CFLAGS $CPPFLAGS"
cristyfbb0ef02010-12-19 02:32:11 +000030255 fi
cristyfbb0ef02010-12-19 02:32:11 +000030256fi
cristyb94e5002011-11-14 13:20:10 +000030257
cristyfbb0ef02010-12-19 02:32:11 +000030258 if test "$have_lzma" = 'yes'; then
30259 LZMA_DELEGATE_TRUE=
30260 LZMA_DELEGATE_FALSE='#'
30261else
30262 LZMA_DELEGATE_TRUE='#'
30263 LZMA_DELEGATE_FALSE=
30264fi
30265
30266
30267
30268
cristyb94e5002011-11-14 13:20:10 +000030269
cristy3ed852e2009-09-05 21:47:34 +000030270#
cristy854c9cf2013-08-10 21:03:06 +000030271# Check for MUPDF delegate library.
30272#
30273
30274# Check whether --with-mupdf was given.
30275if test "${with_mupdf+set}" = set; then :
30276 withval=$with_mupdf; with_mupdf=$withval
30277else
30278 with_mupdf='no'
30279fi
30280
30281
30282if test "$with_mupdf" != 'yes'; then
30283 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-mupdf=$with_mupdf "
30284fi
30285
30286have_mupdf='no'
30287MUPDF_LIBS=''
30288if test "$with_mupdf" != 'no'; then
30289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30290$as_echo "-------------------------------------------------------------" >&6; }
30291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MUPDF" >&5
30292$as_echo_n "checking for MUPDF... " >&6; }
30293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30294$as_echo "" >&6; }
30295 failed=0
30296 passed=0
30297 ac_fn_c_check_header_mongrel "$LINENO" "mupdf/fitz.h" "ac_cv_header_mupdf_fitz_h" "$ac_includes_default"
30298if test "x$ac_cv_header_mupdf_fitz_h" = xyes; then :
30299 passed=`expr $passed + 1`
30300else
30301 failed=`expr $failed + 1`
30302fi
30303
30304
30305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fz_new_context in -lmupdf" >&5
30306$as_echo_n "checking for fz_new_context in -lmupdf... " >&6; }
30307if ${ac_cv_lib_mupdf_fz_new_context+:} false; then :
30308 $as_echo_n "(cached) " >&6
30309else
30310 ac_check_lib_save_LIBS=$LIBS
30311LIBS="-lmupdf -lmupdf $FREETYPE_LIBS $LIBS"
30312cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30313/* end confdefs.h. */
30314
30315/* Override any GCC internal prototype to avoid an error.
30316 Use char because int might match the return type of a GCC
30317 builtin and then its argument prototype would still apply. */
30318#ifdef __cplusplus
30319extern "C"
30320#endif
30321char fz_new_context ();
30322int
30323main ()
30324{
30325return fz_new_context ();
30326 ;
30327 return 0;
30328}
30329_ACEOF
30330if ac_fn_c_try_link "$LINENO"; then :
30331 ac_cv_lib_mupdf_fz_new_context=yes
30332else
30333 ac_cv_lib_mupdf_fz_new_context=no
30334fi
30335rm -f core conftest.err conftest.$ac_objext \
30336 conftest$ac_exeext conftest.$ac_ext
30337LIBS=$ac_check_lib_save_LIBS
30338fi
30339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mupdf_fz_new_context" >&5
30340$as_echo "$ac_cv_lib_mupdf_fz_new_context" >&6; }
30341if test "x$ac_cv_lib_mupdf_fz_new_context" = xyes; then :
30342 passed=`expr $passed + 1`
30343else
30344 failed=`expr $failed + 1`
30345fi
30346
30347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MUPDF package is complete" >&5
30348$as_echo_n "checking if MUPDF package is complete... " >&6; }
30349 if test $passed -gt 0; then
30350 if test $failed -gt 0; then
30351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30352$as_echo "no -- some components failed test" >&6; }
30353 have_mupdf='no (failed tests)'
30354 else
30355 MUPDF_LIBS='-lmupdf'
30356 LIBS="$MUPDF_LIBS $LIBS"
30357
30358$as_echo "#define MUPDF_DELEGATE 1" >>confdefs.h
30359
30360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30361$as_echo "yes" >&6; }
30362 have_mupdf='yes'
30363 fi
30364 else
30365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30366$as_echo "no" >&6; }
30367 fi
30368fi
30369 if test "$have_mupdf" = 'yes'; then
30370 MUPDF_DELEGATE_TRUE=
30371 MUPDF_DELEGATE_FALSE='#'
30372else
30373 MUPDF_DELEGATE_TRUE='#'
30374 MUPDF_DELEGATE_FALSE=
30375fi
30376
30377
30378
30379
30380#
cristy3ed852e2009-09-05 21:47:34 +000030381# Check for the OpenEXR delegate library.
30382#
30383
30384# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000030385if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030386 withval=$with_openexr; with_openexr=$withval
30387else
30388 with_openexr='yes'
30389fi
30390
30391
30392if test "$with_openexr" != 'yes'; then
30393 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
30394fi
30395
30396have_openexr='no'
30397OPENEXR_CFLAGS=""
30398OPENEXR_LIBS=""
30399OPENEXR_PKG=""
30400if test "x$with_openexr" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30402$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030403
30404pkg_failed=no
30405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
30406$as_echo_n "checking for OPENEXR... " >&6; }
30407
30408if test -n "$OPENEXR_CFLAGS"; then
30409 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
30410 elif test -n "$PKG_CONFIG"; then
30411 if test -n "$PKG_CONFIG" && \
30412 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30413 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30414 ac_status=$?
30415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30416 test $ac_status = 0; }; then
30417 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
30418else
30419 pkg_failed=yes
30420fi
30421 else
30422 pkg_failed=untried
30423fi
30424if test -n "$OPENEXR_LIBS"; then
30425 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
30426 elif test -n "$PKG_CONFIG"; then
30427 if test -n "$PKG_CONFIG" && \
30428 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30429 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30430 ac_status=$?
30431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30432 test $ac_status = 0; }; then
30433 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
30434else
30435 pkg_failed=yes
30436fi
30437 else
30438 pkg_failed=untried
30439fi
30440
30441
30442
30443if test $pkg_failed = yes; then
30444
30445if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30446 _pkg_short_errors_supported=yes
30447else
30448 _pkg_short_errors_supported=no
30449fi
30450 if test $_pkg_short_errors_supported = yes; then
30451 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
30452 else
30453 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
30454 fi
30455 # Put the nasty error message in config.log where it belongs
30456 echo "$OPENEXR_PKG_ERRORS" >&5
30457
30458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30459$as_echo "no" >&6; }
30460 have_openexr=no
30461elif test $pkg_failed = untried; then
30462 have_openexr=no
30463else
30464 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
30465 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
30466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30467$as_echo "yes" >&6; }
30468 have_openexr=yes
30469fi
cristyad38abe2012-12-23 23:03:21 +000030470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30471$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030472fi
30473
30474if test "$have_openexr" = 'yes'; then
30475
cristy8b350f62009-11-15 23:12:43 +000030476$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030477
cristyc6722092012-10-14 00:19:31 +000030478 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000030479 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
30480 fi
30481fi
30482
cristy73bd4a52010-10-05 11:24:23 +000030483 if test "$have_openexr" = 'yes'; then
30484 OPENEXR_DELEGATE_TRUE=
30485 OPENEXR_DELEGATE_FALSE='#'
30486else
30487 OPENEXR_DELEGATE_TRUE='#'
30488 OPENEXR_DELEGATE_FALSE=
30489fi
30490
cristy3ed852e2009-09-05 21:47:34 +000030491
30492
30493
30494
30495#
cristy41cbe8a2011-10-27 01:35:18 +000030496# Check for PANGO delegate library.
30497#
30498
30499# Check whether --with-pango was given.
30500if test "${with_pango+set}" = set; then :
30501 withval=$with_pango; with_pango=$withval
30502else
cristyfc3d0222012-02-07 15:05:57 +000030503 with_pango='yes'
cristy41cbe8a2011-10-27 01:35:18 +000030504fi
30505
30506
30507if test "$with_pango" != 'yes'; then
30508 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
30509fi
30510
30511have_pango='no'
cristya054b762012-03-26 23:16:00 +000030512have_pangocairo='no'
cristy41cbe8a2011-10-27 01:35:18 +000030513PANGO_CFLAGS=""
30514PANGO_LIBS=""
30515PANGO_PKG=""
30516if test "x$with_pango" = "xyes"; then
30517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30518$as_echo "-------------------------------------------------------------" >&6; }
30519
30520pkg_failed=no
30521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30522$as_echo_n "checking for PANGO... " >&6; }
30523
30524if test -n "$PANGO_CFLAGS"; then
30525 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30526 elif test -n "$PKG_CONFIG"; then
30527 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030528 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30529 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030530 ac_status=$?
30531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30532 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030533 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030534else
30535 pkg_failed=yes
30536fi
30537 else
30538 pkg_failed=untried
30539fi
30540if test -n "$PANGO_LIBS"; then
30541 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30542 elif test -n "$PKG_CONFIG"; then
30543 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030544 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30545 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030546 ac_status=$?
30547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30548 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030549 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030550else
30551 pkg_failed=yes
30552fi
30553 else
30554 pkg_failed=untried
30555fi
30556
30557
30558
30559if test $pkg_failed = yes; then
30560
30561if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30562 _pkg_short_errors_supported=yes
30563else
30564 _pkg_short_errors_supported=no
30565fi
30566 if test $_pkg_short_errors_supported = yes; then
cristya054b762012-03-26 23:16:00 +000030567 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030568 else
cristya054b762012-03-26 23:16:00 +000030569 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030570 fi
30571 # Put the nasty error message in config.log where it belongs
30572 echo "$PANGO_PKG_ERRORS" >&5
30573
30574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30575$as_echo "no" >&6; }
cristya054b762012-03-26 23:16:00 +000030576 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030577elif test $pkg_failed = untried; then
cristya054b762012-03-26 23:16:00 +000030578 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030579else
30580 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30581 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30583$as_echo "yes" >&6; }
cristya054b762012-03-26 23:16:00 +000030584 have_pangocairo=yes
cristy41cbe8a2011-10-27 01:35:18 +000030585fi
30586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30587$as_echo "" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000030588
30589pkg_failed=no
30590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30591$as_echo_n "checking for PANGO... " >&6; }
30592
30593if test -n "$PANGO_CFLAGS"; then
30594 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30595 elif test -n "$PKG_CONFIG"; then
30596 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030597 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30598 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030599 ac_status=$?
30600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30601 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030602 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030603else
30604 pkg_failed=yes
30605fi
30606 else
30607 pkg_failed=untried
30608fi
30609if test -n "$PANGO_LIBS"; then
30610 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30611 elif test -n "$PKG_CONFIG"; then
30612 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030613 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30614 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030615 ac_status=$?
30616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30617 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030618 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030619else
30620 pkg_failed=yes
30621fi
30622 else
30623 pkg_failed=untried
30624fi
30625
30626
30627
30628if test $pkg_failed = yes; then
30629
30630if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30631 _pkg_short_errors_supported=yes
30632else
30633 _pkg_short_errors_supported=no
30634fi
30635 if test $_pkg_short_errors_supported = yes; then
cristy2542fc62011-12-06 17:50:25 +000030636 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030637 else
cristy2542fc62011-12-06 17:50:25 +000030638 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030639 fi
30640 # Put the nasty error message in config.log where it belongs
30641 echo "$PANGO_PKG_ERRORS" >&5
30642
30643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30644$as_echo "no" >&6; }
30645 have_pango=no
30646elif test $pkg_failed = untried; then
30647 have_pango=no
30648else
30649 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30650 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30652$as_echo "yes" >&6; }
30653 have_pango=yes
30654fi
30655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30656$as_echo "" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000030657fi
30658
30659if test "$have_pango" = 'yes'; then
30660
30661$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
30662
cristyc6722092012-10-14 00:19:31 +000030663 if test "$build_modules" = 'no'; then
cristy41cbe8a2011-10-27 01:35:18 +000030664 CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS"
30665 fi
30666fi
30667
cristya054b762012-03-26 23:16:00 +000030668if test "$have_pangocairo" = 'yes'; then
cristy41cbe8a2011-10-27 01:35:18 +000030669
cristya054b762012-03-26 23:16:00 +000030670$as_echo "#define PANGOCAIRO_DELEGATE 1" >>confdefs.h
cristy41cbe8a2011-10-27 01:35:18 +000030671
cristyc6722092012-10-14 00:19:31 +000030672 if test "$build_modules" = 'no'; then
cristya054b762012-03-26 23:16:00 +000030673 CPPFLAGS="$PANGOCAIRO_CFLAGS $CPPFLAGS"
cristy41cbe8a2011-10-27 01:35:18 +000030674 fi
30675fi
30676
30677 if test "$have_pango" = 'yes'; then
30678 PANGO_DELEGATE_TRUE=
30679 PANGO_DELEGATE_FALSE='#'
30680else
30681 PANGO_DELEGATE_TRUE='#'
30682 PANGO_DELEGATE_FALSE=
30683fi
30684
cristya054b762012-03-26 23:16:00 +000030685 if test "$have_pangocairo" = 'yes'; then
30686 PANGOCAIRO_DELEGATE_TRUE=
30687 PANGOCAIRO_DELEGATE_FALSE='#'
cristy41cbe8a2011-10-27 01:35:18 +000030688else
cristya054b762012-03-26 23:16:00 +000030689 PANGOCAIRO_DELEGATE_TRUE='#'
30690 PANGOCAIRO_DELEGATE_FALSE=
cristy41cbe8a2011-10-27 01:35:18 +000030691fi
30692
30693
30694
30695
30696
30697#
cristy3ed852e2009-09-05 21:47:34 +000030698# Check for PNG delegate library.
30699#
30700
30701# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000030702if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030703 withval=$with_png; with_png=$withval
30704else
30705 with_png='yes'
30706fi
30707
30708
30709if test "$with_png" != 'yes'; then
30710 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
30711fi
30712
cristy81beccd2011-10-03 18:17:24 +000030713have_png='no'
30714PNG_LIBS=''
30715
30716if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000030717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30718$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
30720$as_echo_n "checking for PNG support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30722$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030723 failed=0
30724 passed=0
30725 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
30726if test "x$ac_cv_header_png_h" = xyes; then :
30727 passed=`expr $passed + 1`
30728else
30729 failed=`expr $failed + 1`
cristy64877302011-08-23 19:10:31 +000030730fi
30731
cristy81beccd2011-10-03 18:17:24 +000030732
30733
30734 if test $passed -gt 0; then
glennrp3fc1c212013-01-10 01:52:32 +000030735 for var in 7 6 5 4 2 '' ; do
cristy0615f0e2011-10-12 11:36:46 +000030736 if test "$have_png" = 'no' ; then
30737 if test "x${var}" = 'x' ; then
cristy81beccd2011-10-03 18:17:24 +000030738 pnglib='png'
30739 else
30740 pnglib="png1${var}"
30741 fi
30742
30743# Test for compatible LIBPNG library
30744 failed=0
30745 passed=0
cristy0615f0e2011-10-12 11:36:46 +000030746 if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then
cristy81beccd2011-10-03 18:17:24 +000030747 if test "${pnglib}" != 'png' ; then
30748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
30749$as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
30750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30751/* end confdefs.h. */
30752#include <stdio.h>
30753#include <stdlib.h>
30754#include <png.h>
30755
30756int
30757main ()
30758{
30759
30760#if PNG_LIBPNG_VER_MINOR != ${var}
30761#error LIBPNG library must be version 1${var}!
30762Kaboom, Kaboom
30763#endif
30764return 0;
30765
30766 ;
30767 return 0;
30768}
30769_ACEOF
30770if ac_fn_c_try_compile "$LINENO"; then :
30771 ac_cv_libpng_ok='yes'
30772else
30773 ac_cv_libpng_ok='no'
30774fi
30775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30776 if test "$ac_cv_libpng_ok" = 'yes' ; then
30777 passed=`expr $passed + 1`
cristyad38abe2012-12-23 23:03:21 +000030778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30779$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030780 else
30781 failed=`expr $failed + 1`
cristyad38abe2012-12-23 23:03:21 +000030782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30783$as_echo "no" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030784 fi
30785 else
30786 passed=`expr $passed + 1`
cristyad38abe2012-12-23 23:03:21 +000030787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30788$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030789 fi
30790 fi
30791
30792 if test $passed -gt 0 -a $failed -le 0; then
cristy03f187e2013-01-24 00:22:19 +000030793 if test "1${var}" = '17' ; then
30794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng17" >&5
30795$as_echo_n "checking for png_get_io_ptr in -lpng17... " >&6; }
30796if ${ac_cv_lib_png17_png_get_io_ptr+:} false; then :
30797 $as_echo_n "(cached) " >&6
30798else
30799 ac_check_lib_save_LIBS=$LIBS
30800LIBS="-lpng17 $LIBS"
30801cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30802/* end confdefs.h. */
30803
30804/* Override any GCC internal prototype to avoid an error.
30805 Use char because int might match the return type of a GCC
30806 builtin and then its argument prototype would still apply. */
30807#ifdef __cplusplus
30808extern "C"
30809#endif
30810char png_get_io_ptr ();
30811int
30812main ()
30813{
30814return png_get_io_ptr ();
30815 ;
30816 return 0;
30817}
30818_ACEOF
30819if ac_fn_c_try_link "$LINENO"; then :
30820 ac_cv_lib_png17_png_get_io_ptr=yes
30821else
30822 ac_cv_lib_png17_png_get_io_ptr=no
30823fi
30824rm -f core conftest.err conftest.$ac_objext \
30825 conftest$ac_exeext conftest.$ac_ext
30826LIBS=$ac_check_lib_save_LIBS
30827fi
30828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png17_png_get_io_ptr" >&5
30829$as_echo "$ac_cv_lib_png17_png_get_io_ptr" >&6; }
30830if test "x$ac_cv_lib_png17_png_get_io_ptr" = xyes; then :
30831 passed=`expr $passed + 1`
30832else
30833 failed=`expr $failed + 1`
30834fi
30835
30836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng17" >&5
30837$as_echo_n "checking for png_longjmp in -lpng17... " >&6; }
30838if ${ac_cv_lib_png17_png_longjmp+:} false; then :
30839 $as_echo_n "(cached) " >&6
30840else
30841 ac_check_lib_save_LIBS=$LIBS
30842LIBS="-lpng17 $LIBS"
30843cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30844/* end confdefs.h. */
30845
30846/* Override any GCC internal prototype to avoid an error.
30847 Use char because int might match the return type of a GCC
30848 builtin and then its argument prototype would still apply. */
30849#ifdef __cplusplus
30850extern "C"
30851#endif
30852char png_longjmp ();
30853int
30854main ()
30855{
30856return png_longjmp ();
30857 ;
30858 return 0;
30859}
30860_ACEOF
30861if ac_fn_c_try_link "$LINENO"; then :
30862 ac_cv_lib_png17_png_longjmp=yes
30863else
30864 ac_cv_lib_png17_png_longjmp=no
30865fi
30866rm -f core conftest.err conftest.$ac_objext \
30867 conftest$ac_exeext conftest.$ac_ext
30868LIBS=$ac_check_lib_save_LIBS
30869fi
30870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png17_png_longjmp" >&5
30871$as_echo "$ac_cv_lib_png17_png_longjmp" >&6; }
30872if test "x$ac_cv_lib_png17_png_longjmp" = xyes; then :
30873 passed=`expr $passed + 1`
30874else
30875 failed=`expr $failed + 1`
30876fi
30877
30878 fi
30879 if test "1${var}" = '16' ; then
30880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng16" >&5
30881$as_echo_n "checking for png_get_io_ptr in -lpng16... " >&6; }
30882if ${ac_cv_lib_png16_png_get_io_ptr+:} false; then :
30883 $as_echo_n "(cached) " >&6
30884else
30885 ac_check_lib_save_LIBS=$LIBS
30886LIBS="-lpng16 $LIBS"
30887cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30888/* end confdefs.h. */
30889
30890/* Override any GCC internal prototype to avoid an error.
30891 Use char because int might match the return type of a GCC
30892 builtin and then its argument prototype would still apply. */
30893#ifdef __cplusplus
30894extern "C"
30895#endif
30896char png_get_io_ptr ();
30897int
30898main ()
30899{
30900return png_get_io_ptr ();
30901 ;
30902 return 0;
30903}
30904_ACEOF
30905if ac_fn_c_try_link "$LINENO"; then :
30906 ac_cv_lib_png16_png_get_io_ptr=yes
30907else
30908 ac_cv_lib_png16_png_get_io_ptr=no
30909fi
30910rm -f core conftest.err conftest.$ac_objext \
30911 conftest$ac_exeext conftest.$ac_ext
30912LIBS=$ac_check_lib_save_LIBS
30913fi
30914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png16_png_get_io_ptr" >&5
30915$as_echo "$ac_cv_lib_png16_png_get_io_ptr" >&6; }
30916if test "x$ac_cv_lib_png16_png_get_io_ptr" = xyes; then :
30917 passed=`expr $passed + 1`
30918else
30919 failed=`expr $failed + 1`
30920fi
30921
30922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng16" >&5
30923$as_echo_n "checking for png_longjmp in -lpng16... " >&6; }
30924if ${ac_cv_lib_png16_png_longjmp+:} false; then :
30925 $as_echo_n "(cached) " >&6
30926else
30927 ac_check_lib_save_LIBS=$LIBS
30928LIBS="-lpng16 $LIBS"
30929cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30930/* end confdefs.h. */
30931
30932/* Override any GCC internal prototype to avoid an error.
30933 Use char because int might match the return type of a GCC
30934 builtin and then its argument prototype would still apply. */
30935#ifdef __cplusplus
30936extern "C"
30937#endif
30938char png_longjmp ();
30939int
30940main ()
30941{
30942return png_longjmp ();
30943 ;
30944 return 0;
30945}
30946_ACEOF
30947if ac_fn_c_try_link "$LINENO"; then :
30948 ac_cv_lib_png16_png_longjmp=yes
30949else
30950 ac_cv_lib_png16_png_longjmp=no
30951fi
30952rm -f core conftest.err conftest.$ac_objext \
30953 conftest$ac_exeext conftest.$ac_ext
30954LIBS=$ac_check_lib_save_LIBS
30955fi
30956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png16_png_longjmp" >&5
30957$as_echo "$ac_cv_lib_png16_png_longjmp" >&6; }
30958if test "x$ac_cv_lib_png16_png_longjmp" = xyes; then :
30959 passed=`expr $passed + 1`
30960else
30961 failed=`expr $failed + 1`
30962fi
30963
30964 fi
cristy81beccd2011-10-03 18:17:24 +000030965 if test "1${var}" = '15' ; then
30966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
30967$as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
30968if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
30969 $as_echo_n "(cached) " >&6
30970else
30971 ac_check_lib_save_LIBS=$LIBS
30972LIBS="-lpng15 $LIBS"
30973cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30974/* end confdefs.h. */
30975
30976/* Override any GCC internal prototype to avoid an error.
30977 Use char because int might match the return type of a GCC
30978 builtin and then its argument prototype would still apply. */
30979#ifdef __cplusplus
30980extern "C"
30981#endif
30982char png_get_io_ptr ();
30983int
30984main ()
30985{
30986return png_get_io_ptr ();
30987 ;
30988 return 0;
30989}
30990_ACEOF
30991if ac_fn_c_try_link "$LINENO"; then :
30992 ac_cv_lib_png15_png_get_io_ptr=yes
30993else
30994 ac_cv_lib_png15_png_get_io_ptr=no
30995fi
30996rm -f core conftest.err conftest.$ac_objext \
30997 conftest$ac_exeext conftest.$ac_ext
30998LIBS=$ac_check_lib_save_LIBS
30999fi
31000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
31001$as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
31002if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
31003 passed=`expr $passed + 1`
31004else
31005 failed=`expr $failed + 1`
31006fi
31007
31008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
31009$as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
31010if ${ac_cv_lib_png15_png_longjmp+:} false; then :
31011 $as_echo_n "(cached) " >&6
31012else
31013 ac_check_lib_save_LIBS=$LIBS
31014LIBS="-lpng15 $LIBS"
31015cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31016/* end confdefs.h. */
31017
31018/* Override any GCC internal prototype to avoid an error.
31019 Use char because int might match the return type of a GCC
31020 builtin and then its argument prototype would still apply. */
31021#ifdef __cplusplus
31022extern "C"
31023#endif
31024char png_longjmp ();
31025int
31026main ()
31027{
31028return png_longjmp ();
31029 ;
31030 return 0;
31031}
31032_ACEOF
31033if ac_fn_c_try_link "$LINENO"; then :
31034 ac_cv_lib_png15_png_longjmp=yes
31035else
31036 ac_cv_lib_png15_png_longjmp=no
31037fi
31038rm -f core conftest.err conftest.$ac_objext \
31039 conftest$ac_exeext conftest.$ac_ext
31040LIBS=$ac_check_lib_save_LIBS
31041fi
31042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
31043$as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
31044if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
31045 passed=`expr $passed + 1`
31046else
31047 failed=`expr $failed + 1`
31048fi
31049
31050 fi
31051 if test "1${var}" = '14' ; then
31052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
31053$as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
31054if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
31055 $as_echo_n "(cached) " >&6
31056else
31057 ac_check_lib_save_LIBS=$LIBS
31058LIBS="-lpng14 $LIBS"
31059cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31060/* end confdefs.h. */
31061
31062/* Override any GCC internal prototype to avoid an error.
31063 Use char because int might match the return type of a GCC
31064 builtin and then its argument prototype would still apply. */
31065#ifdef __cplusplus
31066extern "C"
31067#endif
31068char png_get_io_ptr ();
31069int
31070main ()
31071{
31072return png_get_io_ptr ();
31073 ;
31074 return 0;
31075}
31076_ACEOF
31077if ac_fn_c_try_link "$LINENO"; then :
31078 ac_cv_lib_png14_png_get_io_ptr=yes
31079else
31080 ac_cv_lib_png14_png_get_io_ptr=no
31081fi
31082rm -f core conftest.err conftest.$ac_objext \
31083 conftest$ac_exeext conftest.$ac_ext
31084LIBS=$ac_check_lib_save_LIBS
31085fi
31086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
31087$as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
31088if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
31089 passed=`expr $passed + 1`
31090else
31091 failed=`expr $failed + 1`
31092fi
31093
31094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
31095$as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
31096if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
31097 $as_echo_n "(cached) " >&6
31098else
31099 ac_check_lib_save_LIBS=$LIBS
31100LIBS="-lpng14 $LIBS"
31101cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31102/* end confdefs.h. */
31103
31104/* Override any GCC internal prototype to avoid an error.
31105 Use char because int might match the return type of a GCC
31106 builtin and then its argument prototype would still apply. */
31107#ifdef __cplusplus
31108extern "C"
31109#endif
31110char png_get_io_state ();
31111int
31112main ()
31113{
31114return png_get_io_state ();
31115 ;
31116 return 0;
31117}
31118_ACEOF
31119if ac_fn_c_try_link "$LINENO"; then :
31120 ac_cv_lib_png14_png_get_io_state=yes
31121else
31122 ac_cv_lib_png14_png_get_io_state=no
31123fi
31124rm -f core conftest.err conftest.$ac_objext \
31125 conftest$ac_exeext conftest.$ac_ext
31126LIBS=$ac_check_lib_save_LIBS
31127fi
31128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
31129$as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
31130if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
31131 passed=`expr $passed + 1`
31132else
31133 failed=`expr $failed + 1`
31134fi
31135
31136 fi
31137 if test "1${var}" = '12' ; then
31138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
31139$as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
31140if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
31141 $as_echo_n "(cached) " >&6
31142else
31143 ac_check_lib_save_LIBS=$LIBS
31144LIBS="-lpng12 $LIBS"
31145cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31146/* end confdefs.h. */
31147
31148/* Override any GCC internal prototype to avoid an error.
31149 Use char because int might match the return type of a GCC
31150 builtin and then its argument prototype would still apply. */
31151#ifdef __cplusplus
31152extern "C"
31153#endif
31154char png_get_io_ptr ();
31155int
31156main ()
31157{
31158return png_get_io_ptr ();
31159 ;
31160 return 0;
31161}
31162_ACEOF
31163if ac_fn_c_try_link "$LINENO"; then :
31164 ac_cv_lib_png12_png_get_io_ptr=yes
31165else
31166 ac_cv_lib_png12_png_get_io_ptr=no
31167fi
31168rm -f core conftest.err conftest.$ac_objext \
31169 conftest$ac_exeext conftest.$ac_ext
31170LIBS=$ac_check_lib_save_LIBS
31171fi
31172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
31173$as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
31174if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
31175 passed=`expr $passed + 1`
31176else
31177 failed=`expr $failed + 1`
31178fi
31179
31180 fi
31181 if test "1${var}" = '1' ; then
31182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
31183$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
31184if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
31185 $as_echo_n "(cached) " >&6
31186else
31187 ac_check_lib_save_LIBS=$LIBS
31188LIBS="-lpng $LIBS"
31189cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31190/* end confdefs.h. */
31191
31192/* Override any GCC internal prototype to avoid an error.
31193 Use char because int might match the return type of a GCC
31194 builtin and then its argument prototype would still apply. */
31195#ifdef __cplusplus
31196extern "C"
31197#endif
31198char png_get_io_ptr ();
31199int
31200main ()
31201{
31202return png_get_io_ptr ();
31203 ;
31204 return 0;
31205}
31206_ACEOF
31207if ac_fn_c_try_link "$LINENO"; then :
31208 ac_cv_lib_png_png_get_io_ptr=yes
31209else
31210 ac_cv_lib_png_png_get_io_ptr=no
31211fi
31212rm -f core conftest.err conftest.$ac_objext \
31213 conftest$ac_exeext conftest.$ac_ext
31214LIBS=$ac_check_lib_save_LIBS
31215fi
31216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
31217$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
31218if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
31219 passed=`expr $passed + 1`
31220else
31221 failed=`expr $failed + 1`
31222fi
31223
31224 fi
31225 if test $passed -gt 0 -a $failed -le 0 ; then
31226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
31227$as_echo_n "checking if ${pnglib} package is complete... " >&6; }
31228 if test $passed -gt 0 ; then
31229 if test $failed -gt 0 ; then
cristyad38abe2012-12-23 23:03:21 +000031230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31231$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031232 have_png='no (failed tests)'
31233 else
31234 PNG_LIBS="-l${pnglib}"
31235 LIBS="$PNG_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031236
cristy8b350f62009-11-15 23:12:43 +000031237$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031238
cristyad38abe2012-12-23 23:03:21 +000031239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31240$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031241 have_png='yes'
31242 fi
31243 fi
31244 fi
31245 fi
31246 fi
31247 done
31248 fi
cristy3ed852e2009-09-05 21:47:34 +000031249fi
cristy64877302011-08-23 19:10:31 +000031250
cristy73bd4a52010-10-05 11:24:23 +000031251 if test "$have_png" = 'yes'; then
31252 PNG_DELEGATE_TRUE=
31253 PNG_DELEGATE_FALSE='#'
31254else
31255 PNG_DELEGATE_TRUE='#'
31256 PNG_DELEGATE_FALSE=
31257fi
31258
cristy3ed852e2009-09-05 21:47:34 +000031259
cristy50d3f5c2011-09-10 20:09:06 +000031260
cristy3ed852e2009-09-05 21:47:34 +000031261
31262
31263#
31264# Check for RSVG delegate library.
31265#
31266
31267# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000031268if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031269 withval=$with_rsvg; with_rsvg=$withval
31270else
cristy1164d5f2012-08-15 00:58:25 +000031271 with_rsvg='no'
cristy3ed852e2009-09-05 21:47:34 +000031272fi
31273
31274
31275if test "$with_rsvg" != 'yes'; then
31276 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
31277fi
31278
31279have_rsvg='no'
31280have_cairo='no'
31281RSVG_CFLAGS=""
31282RSVG_LIBS=""
31283RSVG_PKG=""
31284if test "x$with_rsvg" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000031285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31286$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031287
31288pkg_failed=no
31289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
31290$as_echo_n "checking for RSVG... " >&6; }
31291
31292if test -n "$RSVG_CFLAGS"; then
31293 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
31294 elif test -n "$PKG_CONFIG"; then
31295 if test -n "$PKG_CONFIG" && \
31296 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31297 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31298 ac_status=$?
31299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31300 test $ac_status = 0; }; then
31301 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31302else
31303 pkg_failed=yes
31304fi
31305 else
31306 pkg_failed=untried
31307fi
31308if test -n "$RSVG_LIBS"; then
31309 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
31310 elif test -n "$PKG_CONFIG"; then
31311 if test -n "$PKG_CONFIG" && \
31312 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31313 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31314 ac_status=$?
31315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31316 test $ac_status = 0; }; then
31317 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31318else
31319 pkg_failed=yes
31320fi
31321 else
31322 pkg_failed=untried
31323fi
31324
31325
31326
31327if test $pkg_failed = yes; then
31328
31329if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31330 _pkg_short_errors_supported=yes
31331else
31332 _pkg_short_errors_supported=no
31333fi
31334 if test $_pkg_short_errors_supported = yes; then
31335 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31336 else
31337 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31338 fi
31339 # Put the nasty error message in config.log where it belongs
31340 echo "$RSVG_PKG_ERRORS" >&5
31341
31342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31343$as_echo "no" >&6; }
31344 have_rsvg=no
31345elif test $pkg_failed = untried; then
31346 have_rsvg=no
31347else
31348 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
31349 RSVG_LIBS=$pkg_cv_RSVG_LIBS
31350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31351$as_echo "yes" >&6; }
31352 have_rsvg=yes
31353fi
cristyad38abe2012-12-23 23:03:21 +000031354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31355$as_echo "" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031356
31357pkg_failed=no
31358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
31359$as_echo_n "checking for CAIRO_SVG... " >&6; }
31360
31361if test -n "$CAIRO_SVG_CFLAGS"; then
31362 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
31363 elif test -n "$PKG_CONFIG"; then
31364 if test -n "$PKG_CONFIG" && \
31365 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31366 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31367 ac_status=$?
31368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31369 test $ac_status = 0; }; then
31370 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
31371else
31372 pkg_failed=yes
31373fi
31374 else
31375 pkg_failed=untried
31376fi
31377if test -n "$CAIRO_SVG_LIBS"; then
31378 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
31379 elif test -n "$PKG_CONFIG"; then
31380 if test -n "$PKG_CONFIG" && \
31381 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31382 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31383 ac_status=$?
31384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31385 test $ac_status = 0; }; then
31386 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
31387else
31388 pkg_failed=yes
31389fi
31390 else
31391 pkg_failed=untried
31392fi
31393
31394
31395
31396if test $pkg_failed = yes; then
31397
31398if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31399 _pkg_short_errors_supported=yes
31400else
31401 _pkg_short_errors_supported=no
31402fi
31403 if test $_pkg_short_errors_supported = yes; then
31404 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
31405 else
31406 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
31407 fi
31408 # Put the nasty error message in config.log where it belongs
31409 echo "$CAIRO_SVG_PKG_ERRORS" >&5
31410
31411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31412$as_echo "no" >&6; }
31413 have_cairo=no
31414elif test $pkg_failed = untried; then
31415 have_cairo=no
31416else
31417 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
31418 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
31419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31420$as_echo "yes" >&6; }
31421 have_cairo=yes
31422fi
cristyad38abe2012-12-23 23:03:21 +000031423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31424$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031425fi
31426
31427if test "$have_rsvg" = 'yes'; then
31428
cristy8b350f62009-11-15 23:12:43 +000031429$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031430
cristyc6722092012-10-14 00:19:31 +000031431 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031432 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
31433 fi
31434fi
31435
31436if test "$have_cairo" = 'yes'; then
31437
cristy8b350f62009-11-15 23:12:43 +000031438$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031439
cristyc6722092012-10-14 00:19:31 +000031440 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031441 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
31442 fi
31443fi
31444
cristy73bd4a52010-10-05 11:24:23 +000031445 if test "$have_rsvg" = 'yes'; then
31446 RSVG_DELEGATE_TRUE=
31447 RSVG_DELEGATE_FALSE='#'
31448else
31449 RSVG_DELEGATE_TRUE='#'
31450 RSVG_DELEGATE_FALSE=
31451fi
31452
31453 if test "$have_cairo" = 'yes'; then
31454 CAIRO_DELEGATE_TRUE=
31455 CAIRO_DELEGATE_FALSE='#'
31456else
31457 CAIRO_DELEGATE_TRUE='#'
31458 CAIRO_DELEGATE_FALSE=
31459fi
31460
cristy3ed852e2009-09-05 21:47:34 +000031461
31462
31463
31464
31465#
31466# Check for TIFF delegate library.
31467#
31468
31469# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000031470if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031471 withval=$with_tiff; with_tiff=$withval
31472else
31473 with_tiff='yes'
31474fi
31475
31476
31477if test "$with_tiff" != 'yes'; then
31478 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
31479fi
31480
31481have_tiff='no'
31482TIFF_LIBS=''
31483if test "$with_tiff" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000031484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31485$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031487$as_echo_n "checking for TIFF... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31489$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031490 failed=0
31491 passed=0
cristy8b350f62009-11-15 23:12:43 +000031492 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031493if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031494 passed=`expr $passed + 1`
31495else
31496 failed=`expr $failed + 1`
31497fi
31498
31499
cristy8b350f62009-11-15 23:12:43 +000031500 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031501if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031502 passed=`expr $passed + 1`
31503else
31504 failed=`expr $failed + 1`
31505fi
31506
31507
cristy8b350f62009-11-15 23:12:43 +000031508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031509$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031510if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031511 $as_echo_n "(cached) " >&6
31512else
31513 ac_check_lib_save_LIBS=$LIBS
31514LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031515cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031516/* end confdefs.h. */
31517
31518/* Override any GCC internal prototype to avoid an error.
31519 Use char because int might match the return type of a GCC
31520 builtin and then its argument prototype would still apply. */
31521#ifdef __cplusplus
31522extern "C"
31523#endif
31524char TIFFOpen ();
31525int
31526main ()
31527{
31528return TIFFOpen ();
31529 ;
31530 return 0;
31531}
31532_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031533if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031534 ac_cv_lib_tiff_TIFFOpen=yes
31535else
cristy8b350f62009-11-15 23:12:43 +000031536 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031537fi
cristy8b350f62009-11-15 23:12:43 +000031538rm -f core conftest.err conftest.$ac_objext \
31539 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031540LIBS=$ac_check_lib_save_LIBS
31541fi
cristy8b350f62009-11-15 23:12:43 +000031542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031543$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031544if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031545 passed=`expr $passed + 1`
31546else
31547 failed=`expr $failed + 1`
31548fi
31549
cristy8b350f62009-11-15 23:12:43 +000031550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031551$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031552if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031553 $as_echo_n "(cached) " >&6
31554else
31555 ac_check_lib_save_LIBS=$LIBS
31556LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031557cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031558/* end confdefs.h. */
31559
31560/* Override any GCC internal prototype to avoid an error.
31561 Use char because int might match the return type of a GCC
31562 builtin and then its argument prototype would still apply. */
31563#ifdef __cplusplus
31564extern "C"
31565#endif
31566char TIFFClientOpen ();
31567int
31568main ()
31569{
31570return TIFFClientOpen ();
31571 ;
31572 return 0;
31573}
31574_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031575if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031576 ac_cv_lib_tiff_TIFFClientOpen=yes
31577else
cristy8b350f62009-11-15 23:12:43 +000031578 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031579fi
cristy8b350f62009-11-15 23:12:43 +000031580rm -f core conftest.err conftest.$ac_objext \
31581 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031582LIBS=$ac_check_lib_save_LIBS
31583fi
cristy8b350f62009-11-15 23:12:43 +000031584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031585$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031586if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031587 passed=`expr $passed + 1`
31588else
31589 failed=`expr $failed + 1`
31590fi
31591
cristy8b350f62009-11-15 23:12:43 +000031592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031593$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031594if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031595 $as_echo_n "(cached) " >&6
31596else
31597 ac_check_lib_save_LIBS=$LIBS
31598LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031599cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031600/* end confdefs.h. */
31601
31602/* Override any GCC internal prototype to avoid an error.
31603 Use char because int might match the return type of a GCC
31604 builtin and then its argument prototype would still apply. */
31605#ifdef __cplusplus
31606extern "C"
31607#endif
31608char TIFFIsByteSwapped ();
31609int
31610main ()
31611{
31612return TIFFIsByteSwapped ();
31613 ;
31614 return 0;
31615}
31616_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031617if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031618 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
31619else
cristy8b350f62009-11-15 23:12:43 +000031620 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000031621fi
cristy8b350f62009-11-15 23:12:43 +000031622rm -f core conftest.err conftest.$ac_objext \
31623 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031624LIBS=$ac_check_lib_save_LIBS
31625fi
cristy8b350f62009-11-15 23:12:43 +000031626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000031627$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000031628if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031629 passed=`expr $passed + 1`
31630else
31631 failed=`expr $failed + 1`
31632fi
31633
cristy8b350f62009-11-15 23:12:43 +000031634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031635$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031636if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031637 $as_echo_n "(cached) " >&6
31638else
31639 ac_check_lib_save_LIBS=$LIBS
31640LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031641cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031642/* end confdefs.h. */
31643
31644/* Override any GCC internal prototype to avoid an error.
31645 Use char because int might match the return type of a GCC
31646 builtin and then its argument prototype would still apply. */
31647#ifdef __cplusplus
31648extern "C"
31649#endif
31650char TIFFReadRGBATile ();
31651int
31652main ()
31653{
31654return TIFFReadRGBATile ();
31655 ;
31656 return 0;
31657}
31658_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031659if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031660 ac_cv_lib_tiff_TIFFReadRGBATile=yes
31661else
cristy8b350f62009-11-15 23:12:43 +000031662 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000031663fi
cristy8b350f62009-11-15 23:12:43 +000031664rm -f core conftest.err conftest.$ac_objext \
31665 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031666LIBS=$ac_check_lib_save_LIBS
31667fi
cristy8b350f62009-11-15 23:12:43 +000031668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000031669$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000031670if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031671 passed=`expr $passed + 1`
31672else
31673 failed=`expr $failed + 1`
31674fi
31675
cristy8b350f62009-11-15 23:12:43 +000031676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031677$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031678if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031679 $as_echo_n "(cached) " >&6
31680else
31681 ac_check_lib_save_LIBS=$LIBS
31682LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031683cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031684/* end confdefs.h. */
31685
31686/* Override any GCC internal prototype to avoid an error.
31687 Use char because int might match the return type of a GCC
31688 builtin and then its argument prototype would still apply. */
31689#ifdef __cplusplus
31690extern "C"
31691#endif
31692char TIFFReadRGBAStrip ();
31693int
31694main ()
31695{
31696return TIFFReadRGBAStrip ();
31697 ;
31698 return 0;
31699}
31700_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031701if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031702 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
31703else
cristy8b350f62009-11-15 23:12:43 +000031704 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000031705fi
cristy8b350f62009-11-15 23:12:43 +000031706rm -f core conftest.err conftest.$ac_objext \
31707 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031708LIBS=$ac_check_lib_save_LIBS
31709fi
cristy8b350f62009-11-15 23:12:43 +000031710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000031711$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000031712if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031713 passed=`expr $passed + 1`
31714else
31715 failed=`expr $failed + 1`
31716fi
31717
cristy8b350f62009-11-15 23:12:43 +000031718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000031719$as_echo_n "checking if TIFF package is complete... " >&6; }
31720 if test $passed -gt 0; then
31721 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000031722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31723$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031724 have_tiff='no (failed tests)'
31725 else
31726 TIFF_LIBS='-ltiff'
31727 LIBS="$TIFF_LIBS $LIBS"
31728
cristy8b350f62009-11-15 23:12:43 +000031729$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031730
cristyad38abe2012-12-23 23:03:21 +000031731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31732$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031733 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000031734 for ac_header in tiffconf.h
31735do :
31736 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031737if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031738 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031739#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000031740_ACEOF
31741
31742fi
31743
31744done
31745
cristy8b350f62009-11-15 23:12:43 +000031746 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3f590e52011-11-14 14:29:44 +000031747 TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \
31748 TIFFSetTagExtender TIFFSetWarningHandlerExt \
31749 TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000031750do :
31751 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31752ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000031753if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000031754 cat >>confdefs.h <<_ACEOF
31755#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31756_ACEOF
31757
31758fi
31759done
31760
31761 fi
31762 else
cristyad38abe2012-12-23 23:03:21 +000031763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31764$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031765 fi
31766fi
cristy73bd4a52010-10-05 11:24:23 +000031767 if test "$have_tiff" = 'yes'; then
31768 TIFF_DELEGATE_TRUE=
31769 TIFF_DELEGATE_FALSE='#'
31770else
31771 TIFF_DELEGATE_TRUE='#'
31772 TIFF_DELEGATE_FALSE=
31773fi
31774
cristy3ed852e2009-09-05 21:47:34 +000031775
31776
31777
31778#
cristyb1860752011-03-14 00:27:46 +000031779# Check for WEBP delegate library.
31780#
31781
31782# Check whether --with-webp was given.
31783if test "${with_webp+set}" = set; then :
31784 withval=$with_webp; with_webp=$withval
31785else
31786 with_webp='yes'
31787fi
31788
31789
31790if test "$with_webp" != 'yes'; then
31791 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
31792fi
31793
31794have_webp='no'
31795WEBP_LIBS=''
31796if test "$with_webp" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000031797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31798$as_echo "-------------------------------------------------------------" >&6; }
cristyb1860752011-03-14 00:27:46 +000031799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
31800$as_echo_n "checking for WEBP... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31802$as_echo "" >&6; }
cristyb1860752011-03-14 00:27:46 +000031803 failed=0
31804 passed=0
31805 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
31806if test "x$ac_cv_header_webp_decode_h" = xyes; then :
31807 passed=`expr $passed + 1`
31808else
31809 failed=`expr $failed + 1`
31810fi
31811
31812
cristy6d670312013-03-22 23:23:01 +000031813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPPictureInitInternal in -lwebp" >&5
31814$as_echo_n "checking for WebPPictureInitInternal in -lwebp... " >&6; }
31815if ${ac_cv_lib_webp_WebPPictureInitInternal+:} false; then :
cristyb1860752011-03-14 00:27:46 +000031816 $as_echo_n "(cached) " >&6
31817else
31818 ac_check_lib_save_LIBS=$LIBS
31819LIBS="-lwebp $LIBS"
31820cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31821/* end confdefs.h. */
31822
31823/* Override any GCC internal prototype to avoid an error.
31824 Use char because int might match the return type of a GCC
31825 builtin and then its argument prototype would still apply. */
31826#ifdef __cplusplus
31827extern "C"
31828#endif
cristy6d670312013-03-22 23:23:01 +000031829char WebPPictureInitInternal ();
cristyb1860752011-03-14 00:27:46 +000031830int
31831main ()
31832{
cristy6d670312013-03-22 23:23:01 +000031833return WebPPictureInitInternal ();
cristyb1860752011-03-14 00:27:46 +000031834 ;
31835 return 0;
31836}
31837_ACEOF
31838if ac_fn_c_try_link "$LINENO"; then :
cristy6d670312013-03-22 23:23:01 +000031839 ac_cv_lib_webp_WebPPictureInitInternal=yes
cristyb1860752011-03-14 00:27:46 +000031840else
cristy6d670312013-03-22 23:23:01 +000031841 ac_cv_lib_webp_WebPPictureInitInternal=no
cristyb1860752011-03-14 00:27:46 +000031842fi
31843rm -f core conftest.err conftest.$ac_objext \
31844 conftest$ac_exeext conftest.$ac_ext
31845LIBS=$ac_check_lib_save_LIBS
31846fi
cristy6d670312013-03-22 23:23:01 +000031847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPPictureInitInternal" >&5
31848$as_echo "$ac_cv_lib_webp_WebPPictureInitInternal" >&6; }
31849if test "x$ac_cv_lib_webp_WebPPictureInitInternal" = xyes; then :
cristyb1860752011-03-14 00:27:46 +000031850 passed=`expr $passed + 1`
31851else
31852 failed=`expr $failed + 1`
31853fi
31854
31855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
31856$as_echo_n "checking if WEBP package is complete... " >&6; }
31857 if test $passed -gt 0; then
31858 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000031859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31860$as_echo "no -- some components failed test" >&6; }
cristyb1860752011-03-14 00:27:46 +000031861 have_webp='no (failed tests)'
31862 else
31863 WEBP_LIBS='-lwebp'
31864 LIBS="$WEBP_LIBS $LIBS"
31865
31866$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
31867
cristyad38abe2012-12-23 23:03:21 +000031868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31869$as_echo "yes" >&6; }
cristyb1860752011-03-14 00:27:46 +000031870 have_webp='yes'
31871 fi
31872 else
cristyad38abe2012-12-23 23:03:21 +000031873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31874$as_echo "no" >&6; }
cristyb1860752011-03-14 00:27:46 +000031875 fi
31876fi
31877 if test "$have_webp" = 'yes'; then
31878 WEBP_DELEGATE_TRUE=
31879 WEBP_DELEGATE_FALSE='#'
31880else
31881 WEBP_DELEGATE_TRUE='#'
31882 WEBP_DELEGATE_FALSE=
31883fi
31884
31885
31886
31887
31888#
cristy3ed852e2009-09-05 21:47:34 +000031889# Set Windows font directory.
31890#
31891
31892# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000031893if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031894 withval=$with_windows_font_dir; with_windows_font_dir=$withval
31895else
31896 with_windows_font_dir=''
31897fi
31898
31899if test "$with_windows_font_dir" != '' ; then
31900 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
31901fi
31902
31903
31904#
31905# Check for WMF delegate library.
31906#
31907
31908# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000031909if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031910 withval=$with_wmf; with_wmf=$withval
31911else
cristyfc3d0222012-02-07 15:05:57 +000031912 with_wmf='no'
cristy3ed852e2009-09-05 21:47:34 +000031913fi
31914
31915
31916if test "$with_wmf" != 'yes'; then
31917 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
31918fi
31919
31920have_wmf='no'
31921WMF_LIBS=''
cristy03f7cf92011-12-15 01:40:41 +000031922WMF_LIBS_DEPS=''
31923OLIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031924if test "$with_wmf" != 'no'; then
cristy03f7cf92011-12-15 01:40:41 +000031925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31926$as_echo "-------------------------------------------------------------" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000031927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031928$as_echo_n "checking for WMF... " >&6; }
cristy03f7cf92011-12-15 01:40:41 +000031929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31930$as_echo "" >&6; }
31931 have_libwmf='no'
31932 have_libwmflite='no'
31933 have_libwmf_ipa_h='no'
31934
31935 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
31936"
31937if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then :
31938 have_libwmf_ipa_h='yes'
cristy3ed852e2009-09-05 21:47:34 +000031939fi
31940
31941
cristy03f7cf92011-12-15 01:40:41 +000031942 if test "$have_libwmf_ipa_h" = 'yes'; then
31943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
31944$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
31945if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031946 $as_echo_n "(cached) " >&6
31947else
31948 ac_check_lib_save_LIBS=$LIBS
cristy03f7cf92011-12-15 01:40:41 +000031949LIBS="-lwmflite $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031950cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031951/* end confdefs.h. */
31952
31953/* Override any GCC internal prototype to avoid an error.
31954 Use char because int might match the return type of a GCC
31955 builtin and then its argument prototype would still apply. */
31956#ifdef __cplusplus
31957extern "C"
31958#endif
cristy03f7cf92011-12-15 01:40:41 +000031959char wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000031960int
31961main ()
31962{
cristy03f7cf92011-12-15 01:40:41 +000031963return wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000031964 ;
31965 return 0;
31966}
31967_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031968if ac_fn_c_try_link "$LINENO"; then :
cristy03f7cf92011-12-15 01:40:41 +000031969 ac_cv_lib_wmflite_wmf_lite_create=yes
cristy3ed852e2009-09-05 21:47:34 +000031970else
cristy03f7cf92011-12-15 01:40:41 +000031971 ac_cv_lib_wmflite_wmf_lite_create=no
cristy3ed852e2009-09-05 21:47:34 +000031972fi
cristy8b350f62009-11-15 23:12:43 +000031973rm -f core conftest.err conftest.$ac_objext \
31974 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031975LIBS=$ac_check_lib_save_LIBS
31976fi
cristy03f7cf92011-12-15 01:40:41 +000031977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
31978$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
31979if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then :
31980 have_libwmflite='yes'
cristy9243a2d2011-08-22 17:32:32 +000031981fi
31982
cristy03f7cf92011-12-15 01:40:41 +000031983 if test "$have_libwmflite" = 'yes'; then
31984
31985$as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
31986
31987 WMF_LIBS='-lwmflite'
glennrp33e524b2011-08-24 17:41:57 +000031988 LIBS="$WMF_LIBS $LIBS"
cristy03f7cf92011-12-15 01:40:41 +000031989 have_wmf='yes'
31990 else
31991 WMF_LIBS_DEPS=''
31992 WMF_CONFIG_LIBS=`libwmf-config --libs`
31993 for lib in xml2 expat freetype jpeg png z; do
31994 testlib="-l${lib}"
31995 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
31996 done
31997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
31998$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
31999if ${ac_cv_lib_wmf_wmf_api_create+:} false; then :
32000 $as_echo_n "(cached) " >&6
32001else
32002 ac_check_lib_save_LIBS=$LIBS
32003LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
32004cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32005/* end confdefs.h. */
32006
32007/* Override any GCC internal prototype to avoid an error.
32008 Use char because int might match the return type of a GCC
32009 builtin and then its argument prototype would still apply. */
32010#ifdef __cplusplus
32011extern "C"
32012#endif
32013char wmf_api_create ();
32014int
32015main ()
32016{
32017return wmf_api_create ();
32018 ;
32019 return 0;
32020}
32021_ACEOF
32022if ac_fn_c_try_link "$LINENO"; then :
32023 ac_cv_lib_wmf_wmf_api_create=yes
32024else
32025 ac_cv_lib_wmf_wmf_api_create=no
32026fi
32027rm -f core conftest.err conftest.$ac_objext \
32028 conftest$ac_exeext conftest.$ac_ext
32029LIBS=$ac_check_lib_save_LIBS
32030fi
32031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
32032$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
32033if test "x$ac_cv_lib_wmf_wmf_api_create" = xyes; then :
32034 have_libwmf='yes'
32035fi
32036
32037 if test "$have_libwmf" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032038
cristy8b350f62009-11-15 23:12:43 +000032039$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032040
cristy03f7cf92011-12-15 01:40:41 +000032041 WMF_LIBS='-lwmf'
32042 LIBS="$WMF_LIBS $LIBS"
32043 have_wmf='yes'
32044 else
32045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32046$as_echo "no -- some components failed test" >&6; }
32047 have_wmf='no (failed tests)'
32048 have_wmflite='no (failed tests)'
32049 LIBS="$OLIBS"
32050 WMF_LIBS=''
32051 fi
glennrp33e524b2011-08-24 17:41:57 +000032052 fi
cristy03f7cf92011-12-15 01:40:41 +000032053 fi
32054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
32055$as_echo_n "checking if WMF package is complete... " >&6; }
32056 if test "$have_wmf" = 'yes'; then
32057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32058$as_echo "yes" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032059 else
cristy03f7cf92011-12-15 01:40:41 +000032060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32061$as_echo "no" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032062 fi
cristy3ed852e2009-09-05 21:47:34 +000032063fi
cristy73bd4a52010-10-05 11:24:23 +000032064 if test "$have_wmf" = 'yes'; then
32065 WMF_DELEGATE_TRUE=
32066 WMF_DELEGATE_FALSE='#'
32067else
32068 WMF_DELEGATE_TRUE='#'
32069 WMF_DELEGATE_FALSE=
32070fi
32071
cristy3ed852e2009-09-05 21:47:34 +000032072
32073
32074
cristy81beccd2011-10-03 18:17:24 +000032075
32076
cristy3ed852e2009-09-05 21:47:34 +000032077#
32078# Check for XML delegate library.
32079#
32080
32081# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000032082if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032083 withval=$with_xml; with_xml=$withval
32084else
cristyfc3d0222012-02-07 15:05:57 +000032085 with_xml='yes'
cristy3ed852e2009-09-05 21:47:34 +000032086fi
32087
32088
cristy81beccd2011-10-03 18:17:24 +000032089if test "$with_xml" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000032090 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
32091fi
32092
cristy81beccd2011-10-03 18:17:24 +000032093have_xml='no'
32094XML_LIBS=''
32095if test "$with_xml" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000032096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32097$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
32099$as_echo_n "checking for XML... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32101$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032102 PERSIST_LDFLAGS=$LDFLAGS
32103 PERSIST_CPPFLAGS=$CPPFLAGS
32104 xml2_config=''
32105 # Extract the first word of "xml2-config", so it can be a program name with args.
32106set dummy xml2-config; ac_word=$2
32107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32108$as_echo_n "checking for $ac_word... " >&6; }
32109if ${ac_cv_path_xml2_config+:} false; then :
32110 $as_echo_n "(cached) " >&6
32111else
32112 case $xml2_config in
32113 [\\/]* | ?:[\\/]*)
32114 ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path.
32115 ;;
32116 *)
32117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32118for as_dir in $PATH
32119do
32120 IFS=$as_save_IFS
32121 test -z "$as_dir" && as_dir=.
32122 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy81beccd2011-10-03 18:17:24 +000032124 ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext"
32125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32126 break 2
32127 fi
32128done
32129 done
32130IFS=$as_save_IFS
32131
32132 ;;
32133esac
32134fi
32135xml2_config=$ac_cv_path_xml2_config
32136if test -n "$xml2_config"; then
32137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
32138$as_echo "$xml2_config" >&6; }
32139else
32140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32141$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032142fi
32143
cristy81beccd2011-10-03 18:17:24 +000032144 if test -n "$xml2_config"; then
32145 # Debian installs libxml headers under /usr/include/libxml2/libxml with
32146 # the shared library installed under /usr/lib, whereas the package
32147 # installs itself under $prefix/libxml and $prefix/lib.
32148 xml2_prefix=`xml2-config --prefix`
32149 if test -d "${xml2_prefix}/include/libxml2"; then
32150 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
32151 fi
32152 if test "${xml2_prefix}" != '/usr'; then
32153 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
32154 fi
32155 fi
32156 failed=0
32157 passed=0
32158 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
32159if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
32160 passed=`expr $passed + 1`
32161else
32162 failed=`expr $failed + 1`
32163fi
32164
32165
32166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5
32167$as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; }
32168if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then :
32169 $as_echo_n "(cached) " >&6
32170else
32171 ac_check_lib_save_LIBS=$LIBS
32172LIBS="-lxml2 $LIBS"
32173cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32174/* end confdefs.h. */
32175
32176/* Override any GCC internal prototype to avoid an error.
32177 Use char because int might match the return type of a GCC
32178 builtin and then its argument prototype would still apply. */
32179#ifdef __cplusplus
32180extern "C"
32181#endif
32182char xmlSAXVersion ();
32183int
32184main ()
32185{
32186return xmlSAXVersion ();
32187 ;
32188 return 0;
32189}
32190_ACEOF
32191if ac_fn_c_try_link "$LINENO"; then :
32192 ac_cv_lib_xml2_xmlSAXVersion=yes
32193else
32194 ac_cv_lib_xml2_xmlSAXVersion=no
32195fi
32196rm -f core conftest.err conftest.$ac_objext \
32197 conftest$ac_exeext conftest.$ac_ext
32198LIBS=$ac_check_lib_save_LIBS
32199fi
32200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5
32201$as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; }
32202if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then :
32203 passed=`expr $passed + 1`
32204else
32205 failed=`expr $failed + 1`
32206fi
32207
32208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5
32209$as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; }
32210if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then :
32211 $as_echo_n "(cached) " >&6
32212else
32213 ac_check_lib_save_LIBS=$LIBS
32214LIBS="-lxml2 $LIBS"
32215cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32216/* end confdefs.h. */
32217
32218/* Override any GCC internal prototype to avoid an error.
32219 Use char because int might match the return type of a GCC
32220 builtin and then its argument prototype would still apply. */
32221#ifdef __cplusplus
32222extern "C"
32223#endif
32224char xmlParseChunk ();
32225int
32226main ()
32227{
32228return xmlParseChunk ();
32229 ;
32230 return 0;
32231}
32232_ACEOF
32233if ac_fn_c_try_link "$LINENO"; then :
32234 ac_cv_lib_xml2_xmlParseChunk=yes
32235else
32236 ac_cv_lib_xml2_xmlParseChunk=no
32237fi
32238rm -f core conftest.err conftest.$ac_objext \
32239 conftest$ac_exeext conftest.$ac_ext
32240LIBS=$ac_check_lib_save_LIBS
32241fi
32242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5
32243$as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; }
32244if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then :
32245 passed=`expr $passed + 1`
32246else
32247 failed=`expr $failed + 1`
32248fi
32249
32250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5
32251$as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; }
32252if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then :
32253 $as_echo_n "(cached) " >&6
32254else
32255 ac_check_lib_save_LIBS=$LIBS
32256LIBS="-lxml2 $LIBS"
32257cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32258/* end confdefs.h. */
32259
32260/* Override any GCC internal prototype to avoid an error.
32261 Use char because int might match the return type of a GCC
32262 builtin and then its argument prototype would still apply. */
32263#ifdef __cplusplus
32264extern "C"
32265#endif
32266char xmlCreatePushParserCtxt ();
32267int
32268main ()
32269{
32270return xmlCreatePushParserCtxt ();
32271 ;
32272 return 0;
32273}
32274_ACEOF
32275if ac_fn_c_try_link "$LINENO"; then :
32276 ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes
32277else
32278 ac_cv_lib_xml2_xmlCreatePushParserCtxt=no
32279fi
32280rm -f core conftest.err conftest.$ac_objext \
32281 conftest$ac_exeext conftest.$ac_ext
32282LIBS=$ac_check_lib_save_LIBS
32283fi
32284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5
32285$as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; }
32286if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then :
32287 passed=`expr $passed + 1`
32288else
32289 failed=`expr $failed + 1`
32290fi
32291
32292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
32293$as_echo_n "checking if XML package is complete... " >&6; }
32294 if test $passed -gt 0; then
32295 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000032296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32297$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032298 have_xml='no (failed tests)'
32299 LDFLAGS="$PERSIST_LDFLAGS"
32300 CPPFLAGS="$PERSIST_CPPFLAGS"
32301 else
32302 XML_LIBS='-lxml2'
32303 LIBS="$XML_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032304
cristy8b350f62009-11-15 23:12:43 +000032305$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032306
cristyad38abe2012-12-23 23:03:21 +000032307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32308$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032309 have_xml='yes'
32310 fi
32311 else
cristyad38abe2012-12-23 23:03:21 +000032312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32313$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032314 fi
32315fi
cristy73bd4a52010-10-05 11:24:23 +000032316 if test "$have_xml" = 'yes'; then
32317 XML_DELEGATE_TRUE=
32318 XML_DELEGATE_FALSE='#'
32319else
32320 XML_DELEGATE_TRUE='#'
32321 XML_DELEGATE_FALSE=
32322fi
32323
cristy3ed852e2009-09-05 21:47:34 +000032324
32325
32326
32327# Substitute compiler name to build/link PerlMagick
32328#
32329
32330
32331#
32332# Configure install Paths
32333#
cristy7def36a2011-10-28 19:04:41 +000032334
cristy2a11bef2011-10-28 18:33:11 +000032335# Path to ImageMagick header files
cristybdabdd62013-03-04 17:43:36 +000032336INCLUDE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristye52f12f2012-12-31 15:32:36 +000032337INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}"
32338DEFINE_INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}/"
cristy2a11bef2011-10-28 18:33:11 +000032339case "${build_os}" in
32340 mingw* )
32341 DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
32342 ;;
32343esac
32344
32345cat >>confdefs.h <<_ACEOF
32346#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH"
32347_ACEOF
32348
32349
cristy3ed852e2009-09-05 21:47:34 +000032350
cristye52f12f2012-12-31 15:32:36 +000032351# Path to ImageMagick header files (arch part)
32352INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
32353DEFINE_INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
32354case "${build_os}" in
32355 mingw* )
32356 DEFINE_INCLUDEARCH_PATH=`$WinPathScript "$DEFINE_INCLUDEARCH_PATH" 1`
32357 ;;
32358esac
32359
32360cat >>confdefs.h <<_ACEOF
32361#define INCLUDEARCH_PATH "$DEFINE_INCLUDE_PATH"
32362_ACEOF
32363
32364
32365
cristy3ed852e2009-09-05 21:47:34 +000032366# Subdirectory under lib to place ImageMagick lib files
32367LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
32368
32369cat >>confdefs.h <<_ACEOF
32370#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
32371_ACEOF
32372
32373
32374# Path to ImageMagick bin directory
32375EXECUTABLE_PATH="${BIN_DIR}"
32376DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
32377case "${build_os}" in
32378 mingw* )
32379 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
32380 ;;
32381esac
32382
32383cat >>confdefs.h <<_ACEOF
32384#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
32385_ACEOF
32386
32387
32388
32389# Path to ImageMagick lib
32390LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
32391DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
32392case "${build_os}" in
32393 mingw* )
32394 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
32395 ;;
32396esac
32397
32398cat >>confdefs.h <<_ACEOF
32399#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
32400_ACEOF
32401
32402
32403
cristy3ed852e2009-09-05 21:47:34 +000032404#
cristy8d0ff762013-03-10 20:33:28 +000032405# path to local binaries
32406if test "x$LIB_BIN_BASEDIRNAME" = "x"; then
32407 LIB_BIN_BASEDIRNAME="bin"
32408fi
32409
32410cat >>confdefs.h <<_ACEOF
32411#define LIB_BIN_BASEDIRNAME "$LIB_BIN_BASEDIRNAME"
32412_ACEOF
32413
32414
32415
32416if test "x$LIB_BIN_DIR" = "x"; then
32417 LIB_BIN_DIR=${LIB_BIN_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32418fi
32419
32420
32421LIB_BIN_DIR_RELATIVE_PATH=$LIB_BIN_DIR
32422
32423LIB_BIN_DIR_PATH="${LIBRARY_PATH}/${LIB_BIN_DIR_RELATIVE_PATH}"
32424
32425
32426#
cristy01ff9f32012-12-01 18:15:29 +000032427# path to modules lib
32428if test "x$MODULES_BASEDIRNAME" = "x"; then
32429 MODULES_BASEDIRNAME="modules"
32430fi
cristy3ed852e2009-09-05 21:47:34 +000032431
32432cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032433#define MODULES_BASEDIRNAME "$MODULES_BASEDIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032434_ACEOF
32435
cristy01ff9f32012-12-01 18:15:29 +000032436
32437
32438if test "x$MODULES_DIRNAME" = "x"; then
cristy4bdbd342012-12-03 18:41:18 +000032439 MODULES_DIRNAME=${MODULES_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32440else
cristy3ed852e2009-09-05 21:47:34 +000032441
32442cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032443#define MODULES_DIRNAME "$MODULES_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032444_ACEOF
32445
cristycf4a3c22012-12-02 21:47:25 +000032446fi
cristy01ff9f32012-12-01 18:15:29 +000032447
32448
cristy371d4812012-12-01 19:48:10 +000032449MODULES_RELATIVE_PATH="${MODULES_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032450
32451MODULES_PATH="${LIBRARY_PATH}/${MODULES_RELATIVE_PATH}"
32452
32453
32454#
32455# path to coders lib
32456if test "x$CODER_DIRNAME" = "x"; then
32457 CODER_DIRNAME="coders"
32458fi
32459
32460cat >>confdefs.h <<_ACEOF
32461#define CODER_DIRNAME "$CODER_DIRNAME"
32462_ACEOF
32463
32464
32465
cristy371d4812012-12-01 19:48:10 +000032466CODER_RELATIVE_PATH="${CODER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032467CODER_PATH="${MODULES_PATH}/${CODER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000032468
32469
32470#
32471# Subdirectory under lib to place ImageMagick filter module files
cristy01ff9f32012-12-01 18:15:29 +000032472#
32473# path to coders lib
32474if test "x$FILTER_DIRNAME" = "x"; then
32475 FILTER_DIRNAME="filters"
32476fi
cristy3ed852e2009-09-05 21:47:34 +000032477
32478cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032479#define FILTER_DIRNAME "$FILTER_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032480_ACEOF
32481
cristy3ed852e2009-09-05 21:47:34 +000032482
cristy3ed852e2009-09-05 21:47:34 +000032483
cristy371d4812012-12-01 19:48:10 +000032484FILTER_RELATIVE_PATH="${FILTER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032485FILTER_PATH="${MODULES_PATH}/${FILTER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000032486
32487
32488#
32489# Path to ImageMagick documentation files
cristybdabdd62013-03-04 17:43:36 +000032490DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristyd55889c2011-03-27 00:50:24 +000032491DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
32492DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032493case "${build_os}" in
32494 mingw* )
32495 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
32496 ;;
32497esac
32498
32499cat >>confdefs.h <<_ACEOF
32500#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
32501_ACEOF
32502
32503
32504
cristy2a11bef2011-10-28 18:33:11 +000032505# Subdirectory to place architecture-dependent configuration files
cristybdabdd62013-03-04 17:43:36 +000032506CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristy45dbd322011-03-27 16:40:38 +000032507
32508cat >>confdefs.h <<_ACEOF
32509#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
32510_ACEOF
32511
cristy7def36a2011-10-28 19:04:41 +000032512CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
cristy45dbd322011-03-27 16:40:38 +000032513DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
32514case "${build_os}" in
32515 mingw* )
32516 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
32517 ;;
32518esac
32519
32520cat >>confdefs.h <<_ACEOF
32521#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
32522_ACEOF
32523
32524
32525
cristy2a11bef2011-10-28 18:33:11 +000032526# Subdirectory to place architecture-independent configuration files
cristybdabdd62013-03-04 17:43:36 +000032527SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristy3ed852e2009-09-05 21:47:34 +000032528
32529cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032530#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032531_ACEOF
32532
cristy670aa3c2011-11-03 00:54:00 +000032533SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
cristy4f820712011-04-01 12:35:43 +000032534DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032535case "${build_os}" in
32536 mingw* )
cristy4f820712011-04-01 12:35:43 +000032537 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000032538 ;;
32539esac
32540
32541cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032542#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032543_ACEOF
32544
32545
32546
cristy54378032012-12-04 15:52:20 +000032547#
32548# Subdirectory to place architecture-dependent configuration files.
32549if test "x$SHAREARCH_BASEDIRNAME" = "x"; then
32550 SHAREARCH_BASEDIRNAME="config"
32551fi
cristy670aa3c2011-11-03 00:54:00 +000032552
32553cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000032554#define SHAREARCH_BASEDIRNAME "$SHAREARCH_BASEDIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000032555_ACEOF
32556
cristy54378032012-12-04 15:52:20 +000032557
32558
32559if test "x$SHAREARCH_DIRNAME" = "x"; then
32560 SHAREARCH_DIRNAME=${SHAREARCH_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32561else
cristy670aa3c2011-11-03 00:54:00 +000032562
32563cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000032564#define SHAREARCH_DIRNAME "$SHAREARCH_DIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000032565_ACEOF
32566
cristy54378032012-12-04 15:52:20 +000032567fi
32568
32569
32570SHAREARCH_RELATIVE_PATH="${SHAREARCH_DIRNAME}"
32571
32572SHAREARCH_PATH="${LIBRARY_PATH}/${SHAREARCH_RELATIVE_PATH}"
cristy670aa3c2011-11-03 00:54:00 +000032573
32574
cristy3ed852e2009-09-05 21:47:34 +000032575#
32576# program_transform_name is formed for use in a Makefile, so create a
32577# modified version for use in a shell script.
32578configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
32579
32580# Default delegate definitions
cristyad38abe2012-12-23 23:03:21 +000032581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32582$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000032584$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32586$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032587AutotraceDecodeDelegateDefault='autotrace'
cristy3d7f8062009-09-24 20:45:35 +000032588BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000032589BZIPDelegateDefault='bzip2'
32590BrowseDelegateDefault='xdg-open'
cristy3ed852e2009-09-05 21:47:34 +000032591CatDelegateDefault='cat'
32592DNGDecodeDelegateDefault='ufraw-batch'
32593GVCDecodeDelegateDefault='dot'
32594DVIDecodeDelegateDefault='dvips'
32595EchoDelegateDefault='echo'
32596EditorDelegateDefault='xterm'
cristy3ed852e2009-09-05 21:47:34 +000032597ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
32598DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
32599MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
32600GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000032601HPGLDecodeDelegateDefault='hp2xx'
32602HTMLDecodeDelegateDefault='html2ps'
32603ILBMDecodeDelegateDefault='ilbmtoppm'
32604ILBMEncodeDelegateDefault='ppmtoilbm'
cristy71f53d52013-04-27 13:33:59 +000032605JXRDecodeDelegateDefault='JxrDecApp'
32606JXREncodeDelegateDefault='JxrEncApp'
cristy3ed852e2009-09-05 21:47:34 +000032607LPDelegateDefault='lp'
32608LPRDelegateDefault='lpr'
cristy3ed852e2009-09-05 21:47:34 +000032609LaunchDelegateDefault='gimp'
32610MANDelegateDefault='groff'
cristy81ab5af2013-10-06 18:28:39 +000032611MPEGDecodeDelegateDefault='avconv'
32612MPEGEncodeDelegateDefault='avconv'
cristy935c86e2010-06-05 23:50:07 +000032613MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000032614MVDelegateDefault='mv'
32615PCLDelegateDefault='pcl6'
32616PGPDecodeDelegateDefault='pgpv'
32617POVDelegateDefault='povray'
32618if test "$native_win32_build" = 'yes'; then
32619 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000032620elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032621 PSDelegateDefault='gsc'
32622else
32623 PSDelegateDefault='gs'
32624fi
32625RLEEncodeDelegateDefault='rawtorle'
32626RMDelegateDefault='rm'
cristy5281e322012-02-09 21:12:45 +000032627RSVGDecodeDelegateDefault='rsvg-convert'
cristy3ed852e2009-09-05 21:47:34 +000032628SCANDecodeDelegateDefault='scanimage'
cristyec6934f2012-08-14 18:38:40 +000032629SVGDecodeDelegateDefault='inkscape'
cristy3ed852e2009-09-05 21:47:34 +000032630TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000032631UniconvertorDelegateDefault='uniconvertor'
cristy86e86092013-08-04 17:43:57 +000032632WebPDecodeDelegateDefault='dwebp'
32633WebPEncodeDelegateDefault='cwebp'
cristy3ed852e2009-09-05 21:47:34 +000032634WMFDecodeDelegateDefault='wmf2eps'
32635WWWDecodeDelegateDefault='curl'
32636XPSDelegateDefault='gxps'
32637ZipDelegateDefault='gzip'
32638
32639# Search for delegates
32640# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
32641set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032643$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032644if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032645 $as_echo_n "(cached) " >&6
32646else
32647 case $AutotraceDecodeDelegate in
32648 [\\/]* | ?:[\\/]*)
32649 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
32650 ;;
32651 *)
32652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32653for as_dir in $PATH
32654do
32655 IFS=$as_save_IFS
32656 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032657 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032659 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032661 break 2
32662 fi
32663done
cristy8b350f62009-11-15 23:12:43 +000032664 done
cristy3ed852e2009-09-05 21:47:34 +000032665IFS=$as_save_IFS
32666
32667 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
32668 ;;
32669esac
32670fi
32671AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
32672if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032674$as_echo "$AutotraceDecodeDelegate" >&6; }
32675else
cristy8b350f62009-11-15 23:12:43 +000032676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032677$as_echo "no" >&6; }
32678fi
32679
32680
cristy3ed852e2009-09-05 21:47:34 +000032681# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
32682set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032684$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032685if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032686 $as_echo_n "(cached) " >&6
32687else
32688 case $BlenderDecodeDelegate in
32689 [\\/]* | ?:[\\/]*)
32690 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
32691 ;;
32692 *)
32693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32694for as_dir in $PATH
32695do
32696 IFS=$as_save_IFS
32697 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032698 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032700 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032702 break 2
32703 fi
32704done
cristy8b350f62009-11-15 23:12:43 +000032705 done
cristy3ed852e2009-09-05 21:47:34 +000032706IFS=$as_save_IFS
32707
32708 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
32709 ;;
32710esac
32711fi
32712BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
32713if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032715$as_echo "$BlenderDecodeDelegate" >&6; }
32716else
cristy8b350f62009-11-15 23:12:43 +000032717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032718$as_echo "no" >&6; }
32719fi
32720
32721
32722# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
32723set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032725$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032726if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032727 $as_echo_n "(cached) " >&6
32728else
32729 case $BZIPDelegate in
32730 [\\/]* | ?:[\\/]*)
32731 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
32732 ;;
32733 *)
32734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32735for as_dir in $PATH
32736do
32737 IFS=$as_save_IFS
32738 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032739 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032741 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032743 break 2
32744 fi
32745done
cristy8b350f62009-11-15 23:12:43 +000032746 done
cristy3ed852e2009-09-05 21:47:34 +000032747IFS=$as_save_IFS
32748
32749 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
32750 ;;
32751esac
32752fi
32753BZIPDelegate=$ac_cv_path_BZIPDelegate
32754if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032756$as_echo "$BZIPDelegate" >&6; }
32757else
cristy8b350f62009-11-15 23:12:43 +000032758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032759$as_echo "no" >&6; }
32760fi
32761
32762
cristyc59f0e72012-08-27 12:59:33 +000032763for ac_prog in "$BrowseDelegateDefault" google-chrome firefox konqueror mozilla lynx
32764do
32765 # Extract the first word of "$ac_prog", so it can be a program name with args.
32766set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032768$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032769if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032770 $as_echo_n "(cached) " >&6
32771else
32772 case $BrowseDelegate in
32773 [\\/]* | ?:[\\/]*)
32774 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
32775 ;;
32776 *)
32777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32778for as_dir in $PATH
32779do
32780 IFS=$as_save_IFS
32781 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032782 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032784 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032786 break 2
32787 fi
32788done
cristy8b350f62009-11-15 23:12:43 +000032789 done
cristy3ed852e2009-09-05 21:47:34 +000032790IFS=$as_save_IFS
32791
cristy3ed852e2009-09-05 21:47:34 +000032792 ;;
32793esac
32794fi
32795BrowseDelegate=$ac_cv_path_BrowseDelegate
32796if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032798$as_echo "$BrowseDelegate" >&6; }
32799else
cristy8b350f62009-11-15 23:12:43 +000032800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032801$as_echo "no" >&6; }
32802fi
32803
32804
cristyc59f0e72012-08-27 12:59:33 +000032805 test -n "$BrowseDelegate" && break
32806done
32807test -n "$BrowseDelegate" || BrowseDelegate=""$BrowseDelegateDefault""
32808
cristy3ed852e2009-09-05 21:47:34 +000032809# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
32810set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032812$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032813if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032814 $as_echo_n "(cached) " >&6
32815else
32816 case $CatDelegate in
32817 [\\/]* | ?:[\\/]*)
32818 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
32819 ;;
32820 *)
32821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32822for as_dir in $PATH
32823do
32824 IFS=$as_save_IFS
32825 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032826 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032828 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032830 break 2
32831 fi
32832done
cristy8b350f62009-11-15 23:12:43 +000032833 done
cristy3ed852e2009-09-05 21:47:34 +000032834IFS=$as_save_IFS
32835
32836 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
32837 ;;
32838esac
32839fi
32840CatDelegate=$ac_cv_path_CatDelegate
32841if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032843$as_echo "$CatDelegate" >&6; }
32844else
cristy8b350f62009-11-15 23:12:43 +000032845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032846$as_echo "no" >&6; }
32847fi
32848
32849
32850# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
32851set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032853$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032854if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032855 $as_echo_n "(cached) " >&6
32856else
32857 case $DNGDecodeDelegate in
32858 [\\/]* | ?:[\\/]*)
32859 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
32860 ;;
32861 *)
32862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32863for as_dir in $PATH
32864do
32865 IFS=$as_save_IFS
32866 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032867 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032869 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032871 break 2
32872 fi
32873done
cristy8b350f62009-11-15 23:12:43 +000032874 done
cristy3ed852e2009-09-05 21:47:34 +000032875IFS=$as_save_IFS
32876
32877 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
32878 ;;
32879esac
32880fi
32881DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
32882if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032884$as_echo "$DNGDecodeDelegate" >&6; }
32885else
cristy8b350f62009-11-15 23:12:43 +000032886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032887$as_echo "no" >&6; }
32888fi
32889
32890
32891# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
32892set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032894$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032895if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032896 $as_echo_n "(cached) " >&6
32897else
32898 case $GVCDecodeDelegate in
32899 [\\/]* | ?:[\\/]*)
32900 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
32901 ;;
32902 *)
32903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32904for as_dir in $PATH
32905do
32906 IFS=$as_save_IFS
32907 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032908 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032910 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032912 break 2
32913 fi
32914done
cristy8b350f62009-11-15 23:12:43 +000032915 done
cristy3ed852e2009-09-05 21:47:34 +000032916IFS=$as_save_IFS
32917
32918 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
32919 ;;
32920esac
32921fi
32922GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
32923if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032925$as_echo "$GVCDecodeDelegate" >&6; }
32926else
cristy8b350f62009-11-15 23:12:43 +000032927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032928$as_echo "no" >&6; }
32929fi
32930
32931
32932# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
32933set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032935$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032936if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032937 $as_echo_n "(cached) " >&6
32938else
32939 case $DVIDecodeDelegate in
32940 [\\/]* | ?:[\\/]*)
32941 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
32942 ;;
32943 *)
32944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32945for as_dir in $PATH
32946do
32947 IFS=$as_save_IFS
32948 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032949 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032951 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032953 break 2
32954 fi
32955done
cristy8b350f62009-11-15 23:12:43 +000032956 done
cristy3ed852e2009-09-05 21:47:34 +000032957IFS=$as_save_IFS
32958
32959 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
32960 ;;
32961esac
32962fi
32963DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
32964if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032966$as_echo "$DVIDecodeDelegate" >&6; }
32967else
cristy8b350f62009-11-15 23:12:43 +000032968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032969$as_echo "no" >&6; }
32970fi
32971
32972
32973# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
32974set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032976$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032977if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032978 $as_echo_n "(cached) " >&6
32979else
32980 case $EchoDelegate in
32981 [\\/]* | ?:[\\/]*)
32982 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
32983 ;;
32984 *)
32985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32986for as_dir in $PATH
32987do
32988 IFS=$as_save_IFS
32989 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032990 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032992 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032994 break 2
32995 fi
32996done
cristy8b350f62009-11-15 23:12:43 +000032997 done
cristy3ed852e2009-09-05 21:47:34 +000032998IFS=$as_save_IFS
32999
33000 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
33001 ;;
33002esac
33003fi
33004EchoDelegate=$ac_cv_path_EchoDelegate
33005if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033007$as_echo "$EchoDelegate" >&6; }
33008else
cristy8b350f62009-11-15 23:12:43 +000033009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033010$as_echo "no" >&6; }
33011fi
33012
33013
33014# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
33015set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033017$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033018if ${ac_cv_path_EditorDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033019 $as_echo_n "(cached) " >&6
33020else
33021 case $EditorDelegate in
33022 [\\/]* | ?:[\\/]*)
33023 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
33024 ;;
33025 *)
33026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33027for as_dir in $PATH
33028do
33029 IFS=$as_save_IFS
33030 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033031 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033033 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033035 break 2
33036 fi
33037done
cristy8b350f62009-11-15 23:12:43 +000033038 done
cristy3ed852e2009-09-05 21:47:34 +000033039IFS=$as_save_IFS
33040
33041 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
33042 ;;
33043esac
33044fi
33045EditorDelegate=$ac_cv_path_EditorDelegate
33046if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033048$as_echo "$EditorDelegate" >&6; }
33049else
cristy8b350f62009-11-15 23:12:43 +000033050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033051$as_echo "no" >&6; }
33052fi
33053
33054
cristy3ed852e2009-09-05 21:47:34 +000033055# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
33056set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033058$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033059if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033060 $as_echo_n "(cached) " >&6
33061else
33062 case $ConvertDelegate in
33063 [\\/]* | ?:[\\/]*)
33064 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
33065 ;;
33066 *)
33067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33068for as_dir in $PATH
33069do
33070 IFS=$as_save_IFS
33071 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033072 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033074 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033076 break 2
33077 fi
33078done
cristy8b350f62009-11-15 23:12:43 +000033079 done
cristy3ed852e2009-09-05 21:47:34 +000033080IFS=$as_save_IFS
33081
33082 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
33083 ;;
33084esac
33085fi
33086ConvertDelegate=$ac_cv_path_ConvertDelegate
33087if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033089$as_echo "$ConvertDelegate" >&6; }
33090else
cristy8b350f62009-11-15 23:12:43 +000033091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033092$as_echo "no" >&6; }
33093fi
33094
33095
33096# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
33097set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033099$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033100if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033101 $as_echo_n "(cached) " >&6
33102else
33103 case $DisplayDelegate in
33104 [\\/]* | ?:[\\/]*)
33105 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
33106 ;;
33107 *)
33108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33109for as_dir in $PATH
33110do
33111 IFS=$as_save_IFS
33112 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033113 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033115 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033117 break 2
33118 fi
33119done
cristy8b350f62009-11-15 23:12:43 +000033120 done
cristy3ed852e2009-09-05 21:47:34 +000033121IFS=$as_save_IFS
33122
33123 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
33124 ;;
33125esac
33126fi
33127DisplayDelegate=$ac_cv_path_DisplayDelegate
33128if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033130$as_echo "$DisplayDelegate" >&6; }
33131else
cristy8b350f62009-11-15 23:12:43 +000033132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033133$as_echo "no" >&6; }
33134fi
33135
33136
33137# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
33138set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033140$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033141if ${ac_cv_path_MogrifyDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033142 $as_echo_n "(cached) " >&6
33143else
33144 case $MogrifyDelegate in
33145 [\\/]* | ?:[\\/]*)
33146 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
33147 ;;
33148 *)
33149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33150for as_dir in $PATH
33151do
33152 IFS=$as_save_IFS
33153 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033154 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033156 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033158 break 2
33159 fi
33160done
cristy8b350f62009-11-15 23:12:43 +000033161 done
cristy3ed852e2009-09-05 21:47:34 +000033162IFS=$as_save_IFS
33163
33164 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
33165 ;;
33166esac
33167fi
33168MogrifyDelegate=$ac_cv_path_MogrifyDelegate
33169if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033171$as_echo "$MogrifyDelegate" >&6; }
33172else
cristy8b350f62009-11-15 23:12:43 +000033173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033174$as_echo "no" >&6; }
33175fi
33176
33177
33178# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
33179set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033181$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033182if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033183 $as_echo_n "(cached) " >&6
33184else
33185 case $GnuplotDecodeDelegate in
33186 [\\/]* | ?:[\\/]*)
33187 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
33188 ;;
33189 *)
33190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33191for as_dir in $PATH
33192do
33193 IFS=$as_save_IFS
33194 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033195 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033197 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033199 break 2
33200 fi
33201done
cristy8b350f62009-11-15 23:12:43 +000033202 done
cristy3ed852e2009-09-05 21:47:34 +000033203IFS=$as_save_IFS
33204
33205 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
33206 ;;
33207esac
33208fi
33209GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
33210if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033212$as_echo "$GnuplotDecodeDelegate" >&6; }
33213else
cristy8b350f62009-11-15 23:12:43 +000033214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033215$as_echo "no" >&6; }
33216fi
33217
33218
cristy3ed852e2009-09-05 21:47:34 +000033219# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
33220set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033222$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033223if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033224 $as_echo_n "(cached) " >&6
33225else
33226 case $HPGLDecodeDelegate in
33227 [\\/]* | ?:[\\/]*)
33228 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
33229 ;;
33230 *)
33231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33232for as_dir in $PATH
33233do
33234 IFS=$as_save_IFS
33235 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033236 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033238 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033240 break 2
33241 fi
33242done
cristy8b350f62009-11-15 23:12:43 +000033243 done
cristy3ed852e2009-09-05 21:47:34 +000033244IFS=$as_save_IFS
33245
33246 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
33247 ;;
33248esac
33249fi
33250HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
33251if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033253$as_echo "$HPGLDecodeDelegate" >&6; }
33254else
cristy8b350f62009-11-15 23:12:43 +000033255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033256$as_echo "no" >&6; }
33257fi
33258
33259
33260# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
33261set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033263$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033264if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033265 $as_echo_n "(cached) " >&6
33266else
33267 case $HTMLDecodeDelegate in
33268 [\\/]* | ?:[\\/]*)
33269 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
33270 ;;
33271 *)
33272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33273for as_dir in $PATH
33274do
33275 IFS=$as_save_IFS
33276 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033277 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033279 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033281 break 2
33282 fi
33283done
cristy8b350f62009-11-15 23:12:43 +000033284 done
cristy3ed852e2009-09-05 21:47:34 +000033285IFS=$as_save_IFS
33286
33287 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
33288 ;;
33289esac
33290fi
33291HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
33292if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033294$as_echo "$HTMLDecodeDelegate" >&6; }
33295else
cristy8b350f62009-11-15 23:12:43 +000033296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033297$as_echo "no" >&6; }
33298fi
33299
33300
33301# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
33302set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033304$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033305if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033306 $as_echo_n "(cached) " >&6
33307else
33308 case $ILBMDecodeDelegate in
33309 [\\/]* | ?:[\\/]*)
33310 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
33311 ;;
33312 *)
33313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33314for as_dir in $PATH
33315do
33316 IFS=$as_save_IFS
33317 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033318 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033320 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033322 break 2
33323 fi
33324done
cristy8b350f62009-11-15 23:12:43 +000033325 done
cristy3ed852e2009-09-05 21:47:34 +000033326IFS=$as_save_IFS
33327
33328 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
33329 ;;
33330esac
33331fi
33332ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
33333if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033335$as_echo "$ILBMDecodeDelegate" >&6; }
33336else
cristy8b350f62009-11-15 23:12:43 +000033337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033338$as_echo "no" >&6; }
33339fi
33340
33341
33342# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
33343set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033345$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033346if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033347 $as_echo_n "(cached) " >&6
33348else
33349 case $ILBMEncodeDelegate in
33350 [\\/]* | ?:[\\/]*)
33351 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
33352 ;;
33353 *)
33354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33355for as_dir in $PATH
33356do
33357 IFS=$as_save_IFS
33358 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033359 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033361 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033363 break 2
33364 fi
33365done
cristy8b350f62009-11-15 23:12:43 +000033366 done
cristy3ed852e2009-09-05 21:47:34 +000033367IFS=$as_save_IFS
33368
33369 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
33370 ;;
33371esac
33372fi
33373ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
33374if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033376$as_echo "$ILBMEncodeDelegate" >&6; }
33377else
cristy8b350f62009-11-15 23:12:43 +000033378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033379$as_echo "no" >&6; }
33380fi
33381
33382
cristy71f53d52013-04-27 13:33:59 +000033383# Extract the first word of ""$JXRDecodeDelegateDefault"", so it can be a program name with args.
33384set dummy "$JXRDecodeDelegateDefault"; ac_word=$2
33385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33386$as_echo_n "checking for $ac_word... " >&6; }
33387if ${ac_cv_path_JXRDecodeDelegate+:} false; then :
33388 $as_echo_n "(cached) " >&6
33389else
33390 case $JXRDecodeDelegate in
33391 [\\/]* | ?:[\\/]*)
33392 ac_cv_path_JXRDecodeDelegate="$JXRDecodeDelegate" # Let the user override the test with a path.
33393 ;;
33394 *)
33395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33396for as_dir in $PATH
33397do
33398 IFS=$as_save_IFS
33399 test -z "$as_dir" && as_dir=.
33400 for ac_exec_ext in '' $ac_executable_extensions; do
33401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33402 ac_cv_path_JXRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33404 break 2
33405 fi
33406done
33407 done
33408IFS=$as_save_IFS
33409
33410 test -z "$ac_cv_path_JXRDecodeDelegate" && ac_cv_path_JXRDecodeDelegate=""$JXRDecodeDelegateDefault""
33411 ;;
33412esac
33413fi
33414JXRDecodeDelegate=$ac_cv_path_JXRDecodeDelegate
33415if test -n "$JXRDecodeDelegate"; then
33416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXRDecodeDelegate" >&5
33417$as_echo "$JXRDecodeDelegate" >&6; }
33418else
33419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33420$as_echo "no" >&6; }
33421fi
33422
33423
33424# Extract the first word of ""$JXREncodeDelegateDefault"", so it can be a program name with args.
33425set dummy "$JXREncodeDelegateDefault"; ac_word=$2
33426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33427$as_echo_n "checking for $ac_word... " >&6; }
33428if ${ac_cv_path_JXREncodeDelegate+:} false; then :
33429 $as_echo_n "(cached) " >&6
33430else
33431 case $JXREncodeDelegate in
33432 [\\/]* | ?:[\\/]*)
33433 ac_cv_path_JXREncodeDelegate="$JXREncodeDelegate" # Let the user override the test with a path.
33434 ;;
33435 *)
33436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33437for as_dir in $PATH
33438do
33439 IFS=$as_save_IFS
33440 test -z "$as_dir" && as_dir=.
33441 for ac_exec_ext in '' $ac_executable_extensions; do
33442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33443 ac_cv_path_JXREncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33445 break 2
33446 fi
33447done
33448 done
33449IFS=$as_save_IFS
33450
33451 test -z "$ac_cv_path_JXREncodeDelegate" && ac_cv_path_JXREncodeDelegate=""$JXREncodeDelegateDefault""
33452 ;;
33453esac
33454fi
33455JXREncodeDelegate=$ac_cv_path_JXREncodeDelegate
33456if test -n "$JXREncodeDelegate"; then
33457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXREncodeDelegate" >&5
33458$as_echo "$JXREncodeDelegate" >&6; }
33459else
33460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33461$as_echo "no" >&6; }
33462fi
33463
33464
cristy3ed852e2009-09-05 21:47:34 +000033465# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
33466set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033468$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033469if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033470 $as_echo_n "(cached) " >&6
33471else
33472 case $LPDelegate in
33473 [\\/]* | ?:[\\/]*)
33474 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
33475 ;;
33476 *)
33477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33478for as_dir in $PATH
33479do
33480 IFS=$as_save_IFS
33481 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033482 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033484 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033486 break 2
33487 fi
33488done
cristy8b350f62009-11-15 23:12:43 +000033489 done
cristy3ed852e2009-09-05 21:47:34 +000033490IFS=$as_save_IFS
33491
33492 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
33493 ;;
33494esac
33495fi
33496LPDelegate=$ac_cv_path_LPDelegate
33497if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033499$as_echo "$LPDelegate" >&6; }
33500else
cristy8b350f62009-11-15 23:12:43 +000033501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033502$as_echo "no" >&6; }
33503fi
33504
33505
33506# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
33507set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033509$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033510if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033511 $as_echo_n "(cached) " >&6
33512else
33513 case $LPRDelegate in
33514 [\\/]* | ?:[\\/]*)
33515 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
33516 ;;
33517 *)
33518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33519for as_dir in $PATH
33520do
33521 IFS=$as_save_IFS
33522 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033523 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033525 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033527 break 2
33528 fi
33529done
cristy8b350f62009-11-15 23:12:43 +000033530 done
cristy3ed852e2009-09-05 21:47:34 +000033531IFS=$as_save_IFS
33532
33533 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
33534 ;;
33535esac
33536fi
33537LPRDelegate=$ac_cv_path_LPRDelegate
33538if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033540$as_echo "$LPRDelegate" >&6; }
33541else
cristy8b350f62009-11-15 23:12:43 +000033542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033543$as_echo "no" >&6; }
33544fi
33545
33546
cristy3ed852e2009-09-05 21:47:34 +000033547# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
33548set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033550$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033551if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033552 $as_echo_n "(cached) " >&6
33553else
33554 case $LaunchDelegate in
33555 [\\/]* | ?:[\\/]*)
33556 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
33557 ;;
33558 *)
33559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33560for as_dir in $PATH
33561do
33562 IFS=$as_save_IFS
33563 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033564 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033566 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033568 break 2
33569 fi
33570done
cristy8b350f62009-11-15 23:12:43 +000033571 done
cristy3ed852e2009-09-05 21:47:34 +000033572IFS=$as_save_IFS
33573
33574 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
33575 ;;
33576esac
33577fi
33578LaunchDelegate=$ac_cv_path_LaunchDelegate
33579if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033581$as_echo "$LaunchDelegate" >&6; }
33582else
cristy8b350f62009-11-15 23:12:43 +000033583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033584$as_echo "no" >&6; }
33585fi
33586
33587
33588# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
33589set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033591$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033592if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033593 $as_echo_n "(cached) " >&6
33594else
33595 case $MANDelegate in
33596 [\\/]* | ?:[\\/]*)
33597 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
33598 ;;
33599 *)
33600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33601for as_dir in $PATH
33602do
33603 IFS=$as_save_IFS
33604 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033605 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033607 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033609 break 2
33610 fi
33611done
cristy8b350f62009-11-15 23:12:43 +000033612 done
cristy3ed852e2009-09-05 21:47:34 +000033613IFS=$as_save_IFS
33614
33615 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
33616 ;;
33617esac
33618fi
33619MANDelegate=$ac_cv_path_MANDelegate
33620if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033622$as_echo "$MANDelegate" >&6; }
33623else
cristy8b350f62009-11-15 23:12:43 +000033624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033625$as_echo "no" >&6; }
33626fi
33627
33628
33629# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33630set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033632$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033633if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033634 $as_echo_n "(cached) " >&6
33635else
33636 case $MPEGDecodeDelegate in
33637 [\\/]* | ?:[\\/]*)
33638 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33639 ;;
33640 *)
33641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33642for as_dir in $PATH
33643do
33644 IFS=$as_save_IFS
33645 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033646 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033648 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033650 break 2
33651 fi
33652done
cristy8b350f62009-11-15 23:12:43 +000033653 done
cristy3ed852e2009-09-05 21:47:34 +000033654IFS=$as_save_IFS
33655
33656 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33657 ;;
33658esac
33659fi
33660MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33661if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033663$as_echo "$MPEGDecodeDelegate" >&6; }
33664else
cristy8b350f62009-11-15 23:12:43 +000033665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033666$as_echo "no" >&6; }
33667fi
33668
33669
cristy81ab5af2013-10-06 18:28:39 +000033670if test "$MPEGDecodeDelegate" == "$MPEGDecodeDelegateDefault" ; then
33671 MPEGDecodeDelegateDefault='ffmpeg'
33672 # Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33673set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
33674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33675$as_echo_n "checking for $ac_word... " >&6; }
33676if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
33677 $as_echo_n "(cached) " >&6
33678else
33679 case $MPEGDecodeDelegate in
33680 [\\/]* | ?:[\\/]*)
33681 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33682 ;;
33683 *)
33684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33685for as_dir in $PATH
33686do
33687 IFS=$as_save_IFS
33688 test -z "$as_dir" && as_dir=.
33689 for ac_exec_ext in '' $ac_executable_extensions; do
33690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33691 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33693 break 2
33694 fi
33695done
33696 done
33697IFS=$as_save_IFS
33698
33699 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33700 ;;
33701esac
33702fi
33703MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33704if test -n "$MPEGDecodeDelegate"; then
33705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
33706$as_echo "$MPEGDecodeDelegate" >&6; }
33707else
33708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33709$as_echo "no" >&6; }
33710fi
33711
33712
33713fi;
cristy3ed852e2009-09-05 21:47:34 +000033714# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
33715set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033717$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033718if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033719 $as_echo_n "(cached) " >&6
33720else
33721 case $MPEGEncodeDelegate in
33722 [\\/]* | ?:[\\/]*)
33723 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
33724 ;;
33725 *)
33726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33727for as_dir in $PATH
33728do
33729 IFS=$as_save_IFS
33730 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033731 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033733 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033735 break 2
33736 fi
33737done
cristy8b350f62009-11-15 23:12:43 +000033738 done
cristy3ed852e2009-09-05 21:47:34 +000033739IFS=$as_save_IFS
33740
33741 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
33742 ;;
33743esac
33744fi
33745MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
33746if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033748$as_echo "$MPEGEncodeDelegate" >&6; }
33749else
cristy8b350f62009-11-15 23:12:43 +000033750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033751$as_echo "no" >&6; }
33752fi
33753
33754
cristy81ab5af2013-10-06 18:28:39 +000033755if test "$MPEGEncodeDelegate" == "$MPEGEncodeDelegateDefault" ; then
33756 MPEGEncodeDelegateDefault='ffmpeg'
33757 # Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
33758set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
33759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33760$as_echo_n "checking for $ac_word... " >&6; }
33761if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
33762 $as_echo_n "(cached) " >&6
33763else
33764 case $MPEGEncodeDelegate in
33765 [\\/]* | ?:[\\/]*)
33766 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
33767 ;;
33768 *)
33769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33770for as_dir in $PATH
33771do
33772 IFS=$as_save_IFS
33773 test -z "$as_dir" && as_dir=.
33774 for ac_exec_ext in '' $ac_executable_extensions; do
33775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33776 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33778 break 2
33779 fi
33780done
33781 done
33782IFS=$as_save_IFS
33783
33784 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
33785 ;;
33786esac
33787fi
33788MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
33789if test -n "$MPEGEncodeDelegate"; then
33790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
33791$as_echo "$MPEGEncodeDelegate" >&6; }
33792else
33793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33794$as_echo "no" >&6; }
33795fi
33796
33797
33798fi;
cristy935c86e2010-06-05 23:50:07 +000033799# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
33800set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
33801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33802$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033803if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000033804 $as_echo_n "(cached) " >&6
33805else
33806 case $MrSIDDecodeDelegate in
33807 [\\/]* | ?:[\\/]*)
33808 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
33809 ;;
33810 *)
33811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33812for as_dir in $PATH
33813do
33814 IFS=$as_save_IFS
33815 test -z "$as_dir" && as_dir=.
33816 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy935c86e2010-06-05 23:50:07 +000033818 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33820 break 2
33821 fi
33822done
33823 done
33824IFS=$as_save_IFS
33825
33826 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
33827 ;;
33828esac
33829fi
33830MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
33831if test -n "$MrSIDDecodeDelegate"; then
33832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
33833$as_echo "$MrSIDDecodeDelegate" >&6; }
33834else
33835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33836$as_echo "no" >&6; }
33837fi
33838
33839
cristy3ed852e2009-09-05 21:47:34 +000033840# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
33841set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033843$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033844if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033845 $as_echo_n "(cached) " >&6
33846else
33847 case $MVDelegate in
33848 [\\/]* | ?:[\\/]*)
33849 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
33850 ;;
33851 *)
33852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33853for as_dir in $PATH
33854do
33855 IFS=$as_save_IFS
33856 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033857 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033859 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033861 break 2
33862 fi
33863done
cristy8b350f62009-11-15 23:12:43 +000033864 done
cristy3ed852e2009-09-05 21:47:34 +000033865IFS=$as_save_IFS
33866
33867 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
33868 ;;
33869esac
33870fi
33871MVDelegate=$ac_cv_path_MVDelegate
33872if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033874$as_echo "$MVDelegate" >&6; }
33875else
cristy8b350f62009-11-15 23:12:43 +000033876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033877$as_echo "no" >&6; }
33878fi
33879
33880
33881# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
33882set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033884$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033885if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033886 $as_echo_n "(cached) " >&6
33887else
33888 case $PCLDelegate in
33889 [\\/]* | ?:[\\/]*)
33890 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
33891 ;;
33892 *)
33893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33894for as_dir in $PATH
33895do
33896 IFS=$as_save_IFS
33897 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033898 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033900 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033902 break 2
33903 fi
33904done
cristy8b350f62009-11-15 23:12:43 +000033905 done
cristy3ed852e2009-09-05 21:47:34 +000033906IFS=$as_save_IFS
33907
33908 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
33909 ;;
33910esac
33911fi
33912PCLDelegate=$ac_cv_path_PCLDelegate
33913if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033915$as_echo "$PCLDelegate" >&6; }
33916else
cristy8b350f62009-11-15 23:12:43 +000033917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033918$as_echo "no" >&6; }
33919fi
33920
33921
33922# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
33923set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033925$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033926if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033927 $as_echo_n "(cached) " >&6
33928else
33929 case $PGPDecodeDelegate in
33930 [\\/]* | ?:[\\/]*)
33931 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
33932 ;;
33933 *)
33934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33935for as_dir in $PATH
33936do
33937 IFS=$as_save_IFS
33938 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033939 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033941 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033943 break 2
33944 fi
33945done
cristy8b350f62009-11-15 23:12:43 +000033946 done
cristy3ed852e2009-09-05 21:47:34 +000033947IFS=$as_save_IFS
33948
33949 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
33950 ;;
33951esac
33952fi
33953PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
33954if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033956$as_echo "$PGPDecodeDelegate" >&6; }
33957else
cristy8b350f62009-11-15 23:12:43 +000033958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033959$as_echo "no" >&6; }
33960fi
33961
33962
33963# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
33964set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033966$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033967if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033968 $as_echo_n "(cached) " >&6
33969else
33970 case $POVDelegate in
33971 [\\/]* | ?:[\\/]*)
33972 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
33973 ;;
33974 *)
33975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33976for as_dir in $PATH
33977do
33978 IFS=$as_save_IFS
33979 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033980 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033982 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033984 break 2
33985 fi
33986done
cristy8b350f62009-11-15 23:12:43 +000033987 done
cristy3ed852e2009-09-05 21:47:34 +000033988IFS=$as_save_IFS
33989
33990 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
33991 ;;
33992esac
33993fi
33994POVDelegate=$ac_cv_path_POVDelegate
33995if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033997$as_echo "$POVDelegate" >&6; }
33998else
cristy8b350f62009-11-15 23:12:43 +000033999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034000$as_echo "no" >&6; }
34001fi
34002
34003
34004for ac_prog in gsx gsc "$PSDelegateDefault"
34005do
34006 # Extract the first word of "$ac_prog", so it can be a program name with args.
34007set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034009$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034010if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034011 $as_echo_n "(cached) " >&6
34012else
34013 case $PSDelegate in
34014 [\\/]* | ?:[\\/]*)
34015 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
34016 ;;
34017 *)
34018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34019for as_dir in $PATH
34020do
34021 IFS=$as_save_IFS
34022 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034023 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034025 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034027 break 2
34028 fi
34029done
cristy8b350f62009-11-15 23:12:43 +000034030 done
cristy3ed852e2009-09-05 21:47:34 +000034031IFS=$as_save_IFS
34032
34033 ;;
34034esac
34035fi
34036PSDelegate=$ac_cv_path_PSDelegate
34037if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034039$as_echo "$PSDelegate" >&6; }
34040else
cristy8b350f62009-11-15 23:12:43 +000034041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034042$as_echo "no" >&6; }
34043fi
34044
34045
34046 test -n "$PSDelegate" && break
34047done
34048test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
34049
34050# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
34051set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034053$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034054if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034055 $as_echo_n "(cached) " >&6
34056else
34057 case $RLEEncodeDelegate in
34058 [\\/]* | ?:[\\/]*)
34059 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
34060 ;;
34061 *)
34062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34063for as_dir in $PATH
34064do
34065 IFS=$as_save_IFS
34066 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034067 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034069 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034071 break 2
34072 fi
34073done
cristy8b350f62009-11-15 23:12:43 +000034074 done
cristy3ed852e2009-09-05 21:47:34 +000034075IFS=$as_save_IFS
34076
34077 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
34078 ;;
34079esac
34080fi
34081RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
34082if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034084$as_echo "$RLEEncodeDelegate" >&6; }
34085else
cristy8b350f62009-11-15 23:12:43 +000034086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034087$as_echo "no" >&6; }
34088fi
34089
34090
34091# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
34092set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034094$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034095if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034096 $as_echo_n "(cached) " >&6
34097else
34098 case $RMDelegate in
34099 [\\/]* | ?:[\\/]*)
34100 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
34101 ;;
34102 *)
34103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34104for as_dir in $PATH
34105do
34106 IFS=$as_save_IFS
34107 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034108 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034110 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034112 break 2
34113 fi
34114done
cristy8b350f62009-11-15 23:12:43 +000034115 done
cristy3ed852e2009-09-05 21:47:34 +000034116IFS=$as_save_IFS
34117
34118 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
34119 ;;
34120esac
34121fi
34122RMDelegate=$ac_cv_path_RMDelegate
34123if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034125$as_echo "$RMDelegate" >&6; }
34126else
cristy8b350f62009-11-15 23:12:43 +000034127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034128$as_echo "no" >&6; }
34129fi
34130
34131
cristy4689cf02010-02-17 21:15:45 +000034132# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
34133set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
34134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34135$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034136if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000034137 $as_echo_n "(cached) " >&6
34138else
34139 case $RSVGDecodeDelegate in
34140 [\\/]* | ?:[\\/]*)
34141 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
34142 ;;
34143 *)
34144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34145for as_dir in $PATH
34146do
34147 IFS=$as_save_IFS
34148 test -z "$as_dir" && as_dir=.
34149 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy4689cf02010-02-17 21:15:45 +000034151 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34153 break 2
34154 fi
34155done
34156 done
34157IFS=$as_save_IFS
34158
34159 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
34160 ;;
34161esac
34162fi
34163RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
34164if test -n "$RSVGDecodeDelegate"; then
34165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
34166$as_echo "$RSVGDecodeDelegate" >&6; }
34167else
34168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34169$as_echo "no" >&6; }
34170fi
34171
34172
cristy3ed852e2009-09-05 21:47:34 +000034173# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
34174set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034176$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034177if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034178 $as_echo_n "(cached) " >&6
34179else
34180 case $SCANDecodeDelegate in
34181 [\\/]* | ?:[\\/]*)
34182 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
34183 ;;
34184 *)
34185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34186for as_dir in $PATH
34187do
34188 IFS=$as_save_IFS
34189 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034190 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034192 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034194 break 2
34195 fi
34196done
cristy8b350f62009-11-15 23:12:43 +000034197 done
cristy3ed852e2009-09-05 21:47:34 +000034198IFS=$as_save_IFS
34199
34200 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
34201 ;;
34202esac
34203fi
34204SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
34205if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034207$as_echo "$SCANDecodeDelegate" >&6; }
34208else
cristy8b350f62009-11-15 23:12:43 +000034209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034210$as_echo "no" >&6; }
34211fi
34212
34213
cristyec6934f2012-08-14 18:38:40 +000034214# Extract the first word of ""$SVGDecodeDelegateDefault"", so it can be a program name with args.
34215set dummy "$SVGDecodeDelegateDefault"; ac_word=$2
34216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34217$as_echo_n "checking for $ac_word... " >&6; }
34218if ${ac_cv_path_SVGDecodeDelegate+:} false; then :
34219 $as_echo_n "(cached) " >&6
34220else
34221 case $SVGDecodeDelegate in
34222 [\\/]* | ?:[\\/]*)
34223 ac_cv_path_SVGDecodeDelegate="$SVGDecodeDelegate" # Let the user override the test with a path.
34224 ;;
34225 *)
34226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34227for as_dir in $PATH
34228do
34229 IFS=$as_save_IFS
34230 test -z "$as_dir" && as_dir=.
34231 for ac_exec_ext in '' $ac_executable_extensions; do
34232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34233 ac_cv_path_SVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34235 break 2
34236 fi
34237done
34238 done
34239IFS=$as_save_IFS
34240
34241 test -z "$ac_cv_path_SVGDecodeDelegate" && ac_cv_path_SVGDecodeDelegate=""$SVGDecodeDelegateDefault""
34242 ;;
34243esac
34244fi
34245SVGDecodeDelegate=$ac_cv_path_SVGDecodeDelegate
34246if test -n "$SVGDecodeDelegate"; then
34247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVGDecodeDelegate" >&5
34248$as_echo "$SVGDecodeDelegate" >&6; }
34249else
34250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34251$as_echo "no" >&6; }
34252fi
34253
34254
cristy3ed852e2009-09-05 21:47:34 +000034255# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
34256set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034258$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034259if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034260 $as_echo_n "(cached) " >&6
34261else
34262 case $TXTDelegate in
34263 [\\/]* | ?:[\\/]*)
34264 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
34265 ;;
34266 *)
34267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34268for as_dir in $PATH
34269do
34270 IFS=$as_save_IFS
34271 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034272 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034274 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034276 break 2
34277 fi
34278done
cristy8b350f62009-11-15 23:12:43 +000034279 done
cristy3ed852e2009-09-05 21:47:34 +000034280IFS=$as_save_IFS
34281
34282 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
34283 ;;
34284esac
34285fi
34286TXTDelegate=$ac_cv_path_TXTDelegate
34287if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034289$as_echo "$TXTDelegate" >&6; }
34290else
cristy8b350f62009-11-15 23:12:43 +000034291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034292$as_echo "no" >&6; }
34293fi
34294
34295
cristy5ac9ac82010-07-29 13:24:24 +000034296# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
34297set dummy "$UniconvertorDelegateDefault"; ac_word=$2
34298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34299$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034300if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000034301 $as_echo_n "(cached) " >&6
34302else
34303 case $UniconvertorDelegate in
34304 [\\/]* | ?:[\\/]*)
34305 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
34306 ;;
34307 *)
34308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34309for as_dir in $PATH
34310do
34311 IFS=$as_save_IFS
34312 test -z "$as_dir" && as_dir=.
34313 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034314 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy5ac9ac82010-07-29 13:24:24 +000034315 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
34316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34317 break 2
34318 fi
34319done
34320 done
34321IFS=$as_save_IFS
34322
34323 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
34324 ;;
34325esac
34326fi
34327UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
34328if test -n "$UniconvertorDelegate"; then
34329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
34330$as_echo "$UniconvertorDelegate" >&6; }
34331else
34332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34333$as_echo "no" >&6; }
34334fi
34335
34336
cristy86e86092013-08-04 17:43:57 +000034337# Extract the first word of ""$WebPDecodeDelegateDefault"", so it can be a program name with args.
34338set dummy "$WebPDecodeDelegateDefault"; ac_word=$2
34339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34340$as_echo_n "checking for $ac_word... " >&6; }
34341if ${ac_cv_path_WebPDecodeDelegate+:} false; then :
34342 $as_echo_n "(cached) " >&6
34343else
34344 case $WebPDecodeDelegate in
34345 [\\/]* | ?:[\\/]*)
34346 ac_cv_path_WebPDecodeDelegate="$WebPDecodeDelegate" # Let the user override the test with a path.
34347 ;;
34348 *)
34349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34350for as_dir in $PATH
34351do
34352 IFS=$as_save_IFS
34353 test -z "$as_dir" && as_dir=.
34354 for ac_exec_ext in '' $ac_executable_extensions; do
34355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34356 ac_cv_path_WebPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34358 break 2
34359 fi
34360done
34361 done
34362IFS=$as_save_IFS
34363
34364 test -z "$ac_cv_path_WebPDecodeDelegate" && ac_cv_path_WebPDecodeDelegate=""$WebPDecodeDelegateDefault""
34365 ;;
34366esac
34367fi
34368WebPDecodeDelegate=$ac_cv_path_WebPDecodeDelegate
34369if test -n "$WebPDecodeDelegate"; then
34370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WebPDecodeDelegate" >&5
34371$as_echo "$WebPDecodeDelegate" >&6; }
34372else
34373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34374$as_echo "no" >&6; }
34375fi
34376
34377
34378# Extract the first word of ""$WebPEncodeDelegateDefault"", so it can be a program name with args.
34379set dummy "$WebPEncodeDelegateDefault"; ac_word=$2
34380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34381$as_echo_n "checking for $ac_word... " >&6; }
34382if ${ac_cv_path_WebPEncodeDelegate+:} false; then :
34383 $as_echo_n "(cached) " >&6
34384else
34385 case $WebPEncodeDelegate in
34386 [\\/]* | ?:[\\/]*)
34387 ac_cv_path_WebPEncodeDelegate="$WebPEncodeDelegate" # Let the user override the test with a path.
34388 ;;
34389 *)
34390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34391for as_dir in $PATH
34392do
34393 IFS=$as_save_IFS
34394 test -z "$as_dir" && as_dir=.
34395 for ac_exec_ext in '' $ac_executable_extensions; do
34396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34397 ac_cv_path_WebPEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34399 break 2
34400 fi
34401done
34402 done
34403IFS=$as_save_IFS
34404
34405 test -z "$ac_cv_path_WebPEncodeDelegate" && ac_cv_path_WebPEncodeDelegate=""$WebPEncodeDelegateDefault""
34406 ;;
34407esac
34408fi
34409WebPEncodeDelegate=$ac_cv_path_WebPEncodeDelegate
34410if test -n "$WebPEncodeDelegate"; then
34411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WebPEncodeDelegate" >&5
34412$as_echo "$WebPEncodeDelegate" >&6; }
34413else
34414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34415$as_echo "no" >&6; }
34416fi
34417
34418
cristy3ed852e2009-09-05 21:47:34 +000034419# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
34420set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034422$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034423if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034424 $as_echo_n "(cached) " >&6
34425else
34426 case $WMFDecodeDelegate in
34427 [\\/]* | ?:[\\/]*)
34428 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
34429 ;;
34430 *)
34431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34432for as_dir in $PATH
34433do
34434 IFS=$as_save_IFS
34435 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034436 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034438 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034440 break 2
34441 fi
34442done
cristy8b350f62009-11-15 23:12:43 +000034443 done
cristy3ed852e2009-09-05 21:47:34 +000034444IFS=$as_save_IFS
34445
34446 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
34447 ;;
34448esac
34449fi
34450WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
34451if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034453$as_echo "$WMFDecodeDelegate" >&6; }
34454else
cristy8b350f62009-11-15 23:12:43 +000034455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034456$as_echo "no" >&6; }
34457fi
34458
34459
34460# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
34461set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034463$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034464if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034465 $as_echo_n "(cached) " >&6
34466else
34467 case $WWWDecodeDelegate in
34468 [\\/]* | ?:[\\/]*)
34469 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
34470 ;;
34471 *)
34472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34473for as_dir in $PATH
34474do
34475 IFS=$as_save_IFS
34476 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034477 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034479 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034481 break 2
34482 fi
34483done
cristy8b350f62009-11-15 23:12:43 +000034484 done
cristy3ed852e2009-09-05 21:47:34 +000034485IFS=$as_save_IFS
34486
34487 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
34488 ;;
34489esac
34490fi
34491WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
34492if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034494$as_echo "$WWWDecodeDelegate" >&6; }
34495else
cristy8b350f62009-11-15 23:12:43 +000034496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034497$as_echo "no" >&6; }
34498fi
34499
34500
34501# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
34502set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034504$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034505if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034506 $as_echo_n "(cached) " >&6
34507else
34508 case $XPSDelegate in
34509 [\\/]* | ?:[\\/]*)
34510 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
34511 ;;
34512 *)
34513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34514for as_dir in $PATH
34515do
34516 IFS=$as_save_IFS
34517 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034518 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034520 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034522 break 2
34523 fi
34524done
cristy8b350f62009-11-15 23:12:43 +000034525 done
cristy3ed852e2009-09-05 21:47:34 +000034526IFS=$as_save_IFS
34527
34528 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
34529 ;;
34530esac
34531fi
34532XPSDelegate=$ac_cv_path_XPSDelegate
34533if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034535$as_echo "$XPSDelegate" >&6; }
34536else
cristy8b350f62009-11-15 23:12:43 +000034537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034538$as_echo "no" >&6; }
34539fi
34540
34541
34542# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
34543set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034545$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034546if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034547 $as_echo_n "(cached) " >&6
34548else
34549 case $ZipDelegate in
34550 [\\/]* | ?:[\\/]*)
34551 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
34552 ;;
34553 *)
34554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34555for as_dir in $PATH
34556do
34557 IFS=$as_save_IFS
34558 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034559 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034561 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034563 break 2
34564 fi
34565done
cristy8b350f62009-11-15 23:12:43 +000034566 done
cristy3ed852e2009-09-05 21:47:34 +000034567IFS=$as_save_IFS
34568
34569 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
34570 ;;
34571esac
34572fi
34573ZipDelegate=$ac_cv_path_ZipDelegate
34574if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034576$as_echo "$ZipDelegate" >&6; }
34577else
cristy8b350f62009-11-15 23:12:43 +000034578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034579$as_echo "no" >&6; }
34580fi
34581
34582
34583
34584# Prefer lpr to lp; lp needs options tacked on.
34585if test "$LPRDelegate" != no; then
34586 PrintDelegate="$LPRDelegate"
34587else
34588 PrintDelegate="$LPDelegate -c -s"
34589fi
34590
34591
34592# Installed ImageMagick utiltity paths
34593ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
34594DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
34595MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
34596
34597# Set delegate booleans
cristy81ab5af2013-10-06 18:28:39 +000034598have_avconv='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_avconv='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034599have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
34600have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
34601have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000034602have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034603have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
34604have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034605have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
34606
34607#
34608# Test for font directories
34609#
34610type_include_files=''
34611
cristy430a7312010-01-21 20:44:04 +000034612# Dejavu fonts.
34613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
34614$as_echo_n "checking for Dejavu fonts directory... " >&6; }
34615dejavu_font_dir=''
34616if test "${with_dejavu_font_dir}" != 'default'; then
34617 dejavu_font_dir="${with_dejavu_font_dir}/"
34618else
34619 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
34620 if test -f "${font_dir}DejaVuSerif.ttf"; then
34621 dejavu_font_dir="${font_dir}"
34622 break 1
34623 fi
34624 done
34625fi
34626if test "${dejavu_font_dir}x" != 'x'; then
34627 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
cristyad38abe2012-12-23 23:03:21 +000034628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
34629$as_echo "$dejavu_font_dir" >&6; }
cristy430a7312010-01-21 20:44:04 +000034630else
cristyad38abe2012-12-23 23:03:21 +000034631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
34632$as_echo "not found!" >&6; };
cristy430a7312010-01-21 20:44:04 +000034633fi
34634
34635
cristy3ed852e2009-09-05 21:47:34 +000034636# Windows
34637windows_font_dir=''
34638if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
34639 windows_font_dir="${with_windows_font_dir}/"
34640fi
cristy430a7312010-01-21 20:44:04 +000034641if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034642 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
34643 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
34644 fi
34645 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
34646 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
34647 fi
34648 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
34649 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
34650 fi
34651fi
cristy430a7312010-01-21 20:44:04 +000034652if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034653 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
34654fi
34655
34656
34657# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000034658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000034659$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
34660ghostscript_font_dir=''
34661if test "${with_gs_font_dir}" != 'default'; then
34662 ghostscript_font_dir="${with_gs_font_dir}/"
34663else
34664 if test "${native_win32_build}" = 'yes'; then
34665 # Native Windows Build
34666 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
34667 if test -f "${font_dir}a010013l.pfb"; then
34668 ghostscript_font_dir="$font_dir"
34669 break 1
34670 fi
34671 done
34672 if test "${PSDelegate}" != 'gswin32c'; then
34673 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
34674 fi
34675 else
34676 # Linux / Mac OS X / Unix Build
34677 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
34678 if test -f "${font_dir}a010013l.pfb"; then
34679 ghostscript_font_dir="${font_dir}"
34680 break 1
34681 fi
34682 done
34683 if test "${ghostscript_font_dir}x" = 'x'; then
34684 if test "$PSDelegate" != 'gs'; then
34685 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
34686 fi
34687 fi
34688 fi
34689fi
34690if test "${ghostscript_font_dir}x" != 'x'; then
34691 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristyad38abe2012-12-23 23:03:21 +000034692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
34693$as_echo "$ghostscript_font_dir" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034694else
cristyad38abe2012-12-23 23:03:21 +000034695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
34696$as_echo "not found!" >&6; };
cristy3ed852e2009-09-05 21:47:34 +000034697fi
34698
34699case "${build_os}" in
34700 mingw* )
34701 PSDelegate=`$WinPathScript "$PSDelegate" 1`
34702 ;;
34703esac
34704
34705
34706
34707#
34708# Handle case where user doesn't want frozen paths
34709#
34710if test "$with_frozenpaths" != 'yes'; then
34711 # Re-set delegate definitions to default (no paths)
34712 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034713 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
34714 BZIPDelegate="$BZIPDelegateDefault"
34715 BrowseDelegate="$BrowseDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034716 CatDelegate="$CatDelegateDefault"
34717 ConvertDelegate="$ConvertDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000034718 DisplayDelegate="$DisplayDelegateDefault"
34719 DNGDecodeDelegate="$DNGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034720 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
34721 EchoDelegate="$EchoDelegateDefault"
34722 EditorDelegate="$EditorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034723 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000034724 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034725 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
34726 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
34727 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
34728 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000034729 JXRDecodeDelegate="$JXRDecodeDelegateDefault"
34730 JXREncodeDelegate="$JXREncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034731 LPDelegate="$LPDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034732 LaunchDelegate="$LaunchDelegateDefault"
34733 MANDelegate="$MANDelegateDefault"
34734 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
34735 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034736 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000034737 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
34738 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034739 PCLDelegate="$PCLDelegateDefault"
34740 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
34741 POVDelegate="$POVDelegateDefault"
34742 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034743 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
34744 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000034745 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034746 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
cristyec6934f2012-08-14 18:38:40 +000034747 SVGDecodeDelegate="$SVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034748 ShowImageDelegate="$ShowImageDelegateDefault"
34749 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000034750 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy86e86092013-08-04 17:43:57 +000034751 WebPDecodeDelegate="$WebPDecodeDelegateDefault"
34752 WebPEncodeDelegate="$WebPEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034753 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
34754 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
34755 XPSDelegate="$XPSDelegateDefault"
34756 ZipDelegate="$ZipDelegateDefault"
34757fi
34758
34759# Delegate substitutions
34760
34761
34762
34763
34764
34765
34766
34767
34768
34769
34770
34771
34772
34773
34774
34775
34776
34777
34778
34779
34780
34781
34782
34783
34784
34785
34786
34787
34788
34789
34790
34791
34792
34793
34794
34795
34796
34797
34798
34799
cristy71f53d52013-04-27 13:33:59 +000034800
34801
cristy3ed852e2009-09-05 21:47:34 +000034802#
34803# RPM support.
34804#
34805RPM=''
34806for ac_prog in gnutar gtar tar
34807do
34808 # Extract the first word of "$ac_prog", so it can be a program name with args.
34809set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034811$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034812if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034813 $as_echo_n "(cached) " >&6
34814else
34815 if test -n "$TAR"; then
34816 ac_cv_prog_TAR="$TAR" # Let the user override the test.
34817else
34818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34819for as_dir in $PATH
34820do
34821 IFS=$as_save_IFS
34822 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034823 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034825 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034827 break 2
34828 fi
34829done
cristy8b350f62009-11-15 23:12:43 +000034830 done
cristy3ed852e2009-09-05 21:47:34 +000034831IFS=$as_save_IFS
34832
34833fi
34834fi
34835TAR=$ac_cv_prog_TAR
34836if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000034837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000034838$as_echo "$TAR" >&6; }
34839else
cristy8b350f62009-11-15 23:12:43 +000034840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034841$as_echo "no" >&6; }
34842fi
34843
34844
34845 test -n "$TAR" && break
34846done
34847
34848for ac_prog in perl
34849do
34850 # Extract the first word of "$ac_prog", so it can be a program name with args.
34851set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034853$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034854if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034855 $as_echo_n "(cached) " >&6
34856else
34857 if test -n "$PERL"; then
34858 ac_cv_prog_PERL="$PERL" # Let the user override the test.
34859else
34860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34861for as_dir in $PATH
34862do
34863 IFS=$as_save_IFS
34864 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034865 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034867 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034869 break 2
34870 fi
34871done
cristy8b350f62009-11-15 23:12:43 +000034872 done
cristy3ed852e2009-09-05 21:47:34 +000034873IFS=$as_save_IFS
34874
34875fi
34876fi
34877PERL=$ac_cv_prog_PERL
34878if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000034879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034880$as_echo "$PERL" >&6; }
34881else
cristy8b350f62009-11-15 23:12:43 +000034882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034883$as_echo "no" >&6; }
34884fi
34885
34886
34887 test -n "$PERL" && break
34888done
34889
34890for ac_prog in rpmbuild rpm
34891do
34892 # Extract the first word of "$ac_prog", so it can be a program name with args.
34893set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034895$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034896if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034897 $as_echo_n "(cached) " >&6
34898else
34899 if test -n "$RPM"; then
34900 ac_cv_prog_RPM="$RPM" # Let the user override the test.
34901else
34902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34903for as_dir in $PATH
34904do
34905 IFS=$as_save_IFS
34906 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034907 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034909 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034911 break 2
34912 fi
34913done
cristy8b350f62009-11-15 23:12:43 +000034914 done
cristy3ed852e2009-09-05 21:47:34 +000034915IFS=$as_save_IFS
34916
34917fi
34918fi
34919RPM=$ac_cv_prog_RPM
34920if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000034921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000034922$as_echo "$RPM" >&6; }
34923else
cristy8b350f62009-11-15 23:12:43 +000034924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034925$as_echo "no" >&6; }
34926fi
34927
34928
34929 test -n "$RPM" && break
34930done
34931
34932
cristy73bd4a52010-10-05 11:24:23 +000034933ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
34934
34935
34936AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
34937
34938
34939AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
34940
34941
34942AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
34943
34944
34945 if test "x$RPM" != "x" ; then
34946 RPM_DELEGATE_TRUE=
34947 RPM_DELEGATE_FALSE='#'
34948else
34949 RPM_DELEGATE_TRUE='#'
34950 RPM_DELEGATE_FALSE=
34951fi
34952
cristy3ed852e2009-09-05 21:47:34 +000034953
34954#
34955# 7ZIP support (http://p7zip.sourceforge.net/)
34956#
34957P7ZIP=''
34958for ac_prog in 7za
34959do
34960 # Extract the first word of "$ac_prog", so it can be a program name with args.
34961set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034963$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034964if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034965 $as_echo_n "(cached) " >&6
34966else
34967 if test -n "$P7ZIP"; then
34968 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
34969else
34970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34971for as_dir in $PATH
34972do
34973 IFS=$as_save_IFS
34974 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034975 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034977 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034979 break 2
34980 fi
34981done
cristy8b350f62009-11-15 23:12:43 +000034982 done
cristy3ed852e2009-09-05 21:47:34 +000034983IFS=$as_save_IFS
34984
34985fi
34986fi
34987P7ZIP=$ac_cv_prog_P7ZIP
34988if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000034989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000034990$as_echo "$P7ZIP" >&6; }
34991else
cristy8b350f62009-11-15 23:12:43 +000034992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034993$as_echo "no" >&6; }
34994fi
34995
34996
34997 test -n "$P7ZIP" && break
34998done
34999
35000
cristy73bd4a52010-10-05 11:24:23 +000035001 if test "x$P7ZIP" != "x" ; then
35002 P7ZIP_DELEGATE_TRUE=
35003 P7ZIP_DELEGATE_FALSE='#'
35004else
35005 P7ZIP_DELEGATE_TRUE='#'
35006 P7ZIP_DELEGATE_FALSE=
35007fi
35008
cristy3ed852e2009-09-05 21:47:34 +000035009
35010#
35011# ZIP support (http://www.info-zip.org/Zip.html)
35012#
35013ZIP=''
35014for ac_prog in zip
35015do
35016 # Extract the first word of "$ac_prog", so it can be a program name with args.
35017set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035019$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035020if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035021 $as_echo_n "(cached) " >&6
35022else
35023 if test -n "$ZIP"; then
35024 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
35025else
35026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35027for as_dir in $PATH
35028do
35029 IFS=$as_save_IFS
35030 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035031 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035033 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035035 break 2
35036 fi
35037done
cristy8b350f62009-11-15 23:12:43 +000035038 done
cristy3ed852e2009-09-05 21:47:34 +000035039IFS=$as_save_IFS
35040
35041fi
35042fi
35043ZIP=$ac_cv_prog_ZIP
35044if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000035045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000035046$as_echo "$ZIP" >&6; }
35047else
cristy8b350f62009-11-15 23:12:43 +000035048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035049$as_echo "no" >&6; }
35050fi
35051
35052
35053 test -n "$ZIP" && break
35054done
35055
35056
cristy73bd4a52010-10-05 11:24:23 +000035057 if test "x$ZIP" != "x" ; then
35058 ZIP_DELEGATE_TRUE=
35059 ZIP_DELEGATE_FALSE='#'
35060else
35061 ZIP_DELEGATE_TRUE='#'
35062 ZIP_DELEGATE_FALSE=
35063fi
35064
cristy3ed852e2009-09-05 21:47:34 +000035065
35066#
35067# GhostPCL related configuration.
35068#
35069PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000035070PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000035071PCLMonoDevice=pbmraw
35072if test -z "$PCLVersion"; then
35073 PCLVersion='unknown'
35074fi
35075if test $have_pcl = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35077$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035079$as_echo_n "checking for PCL... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35081$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035082 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000035083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035084$as_echo_n "checking for pcl color device... " >&6; }
35085 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35086 :
35087 else
35088 PCLColorDevice=ppmraw
35089 fi
cristyad38abe2012-12-23 23:03:21 +000035090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
35091$as_echo "$PCLColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035092
35093 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035095$as_echo_n "checking for pcl CMYK device... " >&6; }
35096 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35097 :
35098 else
35099 PCLCMYKDevice=$PCLColorDevice
35100 fi
cristyad38abe2012-12-23 23:03:21 +000035101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
35102$as_echo "$PCLCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035103
35104 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035106$as_echo_n "checking for pcl mono device... " >&6; }
35107 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35108 :
35109 else
35110 PCLMonoDevice=$PCLColorDevice
35111 fi
cristyad38abe2012-12-23 23:03:21 +000035112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
35113$as_echo "$PCLMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035114fi
35115
35116
35117
35118
35119
35120
35121#
35122# GhostXPS related configuration.
35123#
35124XPSColorDevice=ppmraw
35125XPSCMYKDevice=bmpsep8
35126XPSMonoDevice=pbmraw
35127if test -z "$XPSVersion"; then
35128 XPSVersion='unknown'
35129fi
35130if test $have_xps = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35132$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000035134$as_echo_n "checking for XPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35136$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035137 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035139$as_echo_n "checking for xps color device... " >&6; }
35140 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35141 :
35142 else
35143 XPSColorDevice=ppmraw
35144 fi
cristyad38abe2012-12-23 23:03:21 +000035145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
35146$as_echo "$XPSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035147
35148 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035150$as_echo_n "checking for xps CMYK device... " >&6; }
35151 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35152 :
35153 else
35154 XPSCMYKDevice=$XPSColorDevice
35155 fi
cristyad38abe2012-12-23 23:03:21 +000035156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
35157$as_echo "$XPSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035158
35159 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035161$as_echo_n "checking for xps mono device... " >&6; }
35162 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35163 :
35164 else
35165 XPSMonoDevice=$XPSColorDevice
35166 fi
cristyad38abe2012-12-23 23:03:21 +000035167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
35168$as_echo "$XPSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035169fi
35170
35171
35172
35173
35174
35175
35176#
35177# Ghostscript related configuration.
35178#
cristya97426c2011-02-04 01:41:27 +000035179GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000035180GSColorDevice=pnmraw
35181GSCMYKDevice=pam
35182GSMonoDevice=pbmraw
35183GSPDFDevice=pdfwrite
35184GSPSDevice=pswrite
35185GSEPSDevice=epswrite
35186GSVersion='unknown'
35187if test $have_gs = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35189$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000035191$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35193$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000035195$as_echo_n "checking for Ghostscript version... " >&6; }
35196 if GSVersion=`$PSDelegate --version`; then
35197 :
35198 else
35199 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
35200 fi
cristyad38abe2012-12-23 23:03:21 +000035201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
35202$as_echo "$GSVersion" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035203
35204 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000035205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035206$as_echo_n "checking for gs alpha device... " >&6; }
35207 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35208 :
35209 else
35210 GSAlphaDevice=pnmraw
35211 fi
cristyad38abe2012-12-23 23:03:21 +000035212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
35213$as_echo "$GSAlphaDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035214
35215 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035217$as_echo_n "checking for gs color device... " >&6; }
35218 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35219 :
35220 else
35221 GSColorDevice=pnmraw
35222 fi
cristyad38abe2012-12-23 23:03:21 +000035223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
35224$as_echo "$GSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035225
35226 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035228$as_echo_n "checking for gs CMYK device... " >&6; }
35229 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35230 :
35231 else
35232 GSCMYKDevice=bmpsep8
35233 fi
cristyad38abe2012-12-23 23:03:21 +000035234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
35235$as_echo "$GSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035236
35237 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035239$as_echo_n "checking for gs mono device... " >&6; }
35240 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35241 :
35242 else
35243 GSMonoDevice=$GSColorDevice
35244 fi
cristyad38abe2012-12-23 23:03:21 +000035245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
35246$as_echo "$GSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035247
35248 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000035249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035250$as_echo_n "checking for gs PDF writing device... " >&6; }
35251 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35252 :
35253 else
35254 GSPDFDevice=nodevice
35255 fi
cristyad38abe2012-12-23 23:03:21 +000035256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
35257$as_echo "$GSPDFDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035258
35259 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000035260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035261$as_echo_n "checking for gs PS writing device... " >&6; }
35262 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35263 :
35264 else
35265 GSPSDevice=nodevice
35266 fi
cristyad38abe2012-12-23 23:03:21 +000035267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
35268$as_echo "$GSPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035269
35270 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000035271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035272$as_echo_n "checking for gs EPS writing device... " >&6; }
35273 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35274 :
35275 else
35276 GSEPSDevice=nodevice
35277 fi
cristyad38abe2012-12-23 23:03:21 +000035278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
35279$as_echo "$GSEPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035280fi
35281
35282
35283
35284
35285
35286
35287
35288
35289
35290
35291#
35292# PerlMagick-related configuration
35293#
35294
35295# Look for PERL if PerlMagick requested
35296# If name/path of desired PERL interpreter is specified, look for that one first
35297have_perl='no'
35298if test "$with_perl" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000035299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35300$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035302$as_echo_n "checking for Perl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35304$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035305 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035307$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035308if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035309 $as_echo_n "(cached) " >&6
35310else
35311 ac_cv_path_PERL="$with_perl"
35312fi
cristy8b350f62009-11-15 23:12:43 +000035313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035314$as_echo "$ac_cv_path_PERL" >&6; };
35315 PERL=$ac_cv_path_PERL
35316 have_perl="$ac_cv_path_PERL"
35317 else
35318 for ac_prog in perl perl5
35319do
35320 # Extract the first word of "$ac_prog", so it can be a program name with args.
35321set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035323$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035324if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035325 $as_echo_n "(cached) " >&6
35326else
35327 case $PERL in
35328 [\\/]* | ?:[\\/]*)
35329 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
35330 ;;
35331 *)
35332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35333for as_dir in $PATH
35334do
35335 IFS=$as_save_IFS
35336 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035337 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035339 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035341 break 2
35342 fi
35343done
cristy8b350f62009-11-15 23:12:43 +000035344 done
cristy3ed852e2009-09-05 21:47:34 +000035345IFS=$as_save_IFS
35346
35347 ;;
35348esac
35349fi
35350PERL=$ac_cv_path_PERL
35351if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000035352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035353$as_echo "$PERL" >&6; }
35354else
cristy8b350f62009-11-15 23:12:43 +000035355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035356$as_echo "no" >&6; }
35357fi
35358
35359
35360 test -n "$PERL" && break
35361done
35362 if test "$ac_cv_path_PERL"; then
35363 have_perl="$ac_cv_path_PERL"
35364 fi
35365 fi
35366fi
35367
cristy949301e2010-01-06 01:38:40 +000035368if test "$with_perl" != 'yes' ; then
35369 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
35370fi
35371
35372PERL_SUPPORTS_DESTDIR='no'
35373
cristy3ed852e2009-09-05 21:47:34 +000035374with_perl_static='no'
35375with_perl_dynamic='no'
35376if test "$have_perl" != 'no'; then
35377 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
35378 with_perl_static='yes'
35379 fi
35380 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
35381 with_perl_dynamic='yes'
35382 fi
35383 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000035384
35385
35386
35387
35388 if test -n "$PERL"; then :
35389
35390 ax_perl_version="5.8.1"
35391
35392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
35393$as_echo_n "checking for perl version... " >&6; }
35394
35395 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
35396
35397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
35398$as_echo "$perl_version" >&6; }
35399
35400 PERL_VERSION=$perl_version
35401
35402
35403
35404
35405
35406 # Used to indicate true or false condition
35407 ax_compare_version=false
35408
35409 # Convert the two version strings to be compared into a format that
35410 # allows a simple string comparison. The end result is that a version
35411 # string of the form 1.12.5-r617 will be converted to the form
35412 # 0001001200050617. In other words, each number is zero padded to four
35413 # digits, and non digits are removed.
35414
35415 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35416 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35417 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35418 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35419 -e 's/[^0-9]//g'`
35420
35421
35422 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35423 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35424 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35425 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35426 -e 's/[^0-9]//g'`
35427
35428
35429 ax_compare_version=`echo "x$ax_compare_version_A
35430x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
35431
35432
35433
35434 if test "$ax_compare_version" = "true" ; then
35435
35436 :
35437 PERL_SUPPORTS_DESTDIR='yes'
35438
35439 else
35440 :
35441 PERL_SUPPORTS_DESTDIR='no'
35442
35443 fi
35444
35445
35446else
35447
35448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
35449$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
35450 PERL_SUPPORTS_DESTDIR='no'
35451
cristy3ed852e2009-09-05 21:47:34 +000035452fi
cristy73bd4a52010-10-05 11:24:23 +000035453
35454fi
35455 if test "$have_perl" != 'no'; then
35456 WITH_PERL_TRUE=
35457 WITH_PERL_FALSE='#'
35458else
35459 WITH_PERL_TRUE='#'
35460 WITH_PERL_FALSE=
35461fi
35462
35463 if test $with_perl_static = 'yes'; then
35464 WITH_PERL_STATIC_TRUE=
35465 WITH_PERL_STATIC_FALSE='#'
35466else
35467 WITH_PERL_STATIC_TRUE='#'
35468 WITH_PERL_STATIC_FALSE=
35469fi
35470
35471 if test $with_perl_dynamic = 'yes'; then
35472 WITH_PERL_DYNAMIC_TRUE=
35473 WITH_PERL_DYNAMIC_FALSE='#'
35474else
35475 WITH_PERL_DYNAMIC_TRUE='#'
35476 WITH_PERL_DYNAMIC_FALSE=
35477fi
35478
cristy3ed852e2009-09-05 21:47:34 +000035479
35480
35481# Determine path to pick up MagickCore library from for use with building PerlMagick
35482MAGICKCORE_PATH="${LIB_DIR}"
35483if test $with_perl_static = 'yes'; then
35484 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
35485 libtool_objdir=$objdir
35486
35487 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000035488 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000035489fi
35490
35491
cristy2a3eb392012-12-17 13:39:20 +000035492# Create a simple string containing format names for all delegate libraries.
cristy422d5502012-12-22 22:20:57 +000035493MAGICK_DELEGATES=''
cristy2a3eb392012-12-17 13:39:20 +000035494if test "$have_autotrace" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035495 MAGICK_DELEGATES="$MAGICK_DELEGATES autotrace"
cristy3ed852e2009-09-05 21:47:34 +000035496fi
cristy2a3eb392012-12-17 13:39:20 +000035497if test "$have_bzlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035498 MAGICK_DELEGATES="$MAGICK_DELEGATES bzlib"
cristy2a3eb392012-12-17 13:39:20 +000035499fi
35500if test "$have_dps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035501 MAGICK_DELEGATES="$MAGICK_DELEGATES dps"
cristy2a3eb392012-12-17 13:39:20 +000035502fi
35503if test "$have_djvu" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035504 MAGICK_DELEGATES="$MAGICK_DELEGATES djvu"
cristy2a3eb392012-12-17 13:39:20 +000035505fi
cristy81ab5af2013-10-06 18:28:39 +000035506if test "$have_avconv" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035507 MAGICK_DELEGATES="$MAGICK_DELEGATES mpeg"
cristy2a3eb392012-12-17 13:39:20 +000035508fi
cristy854c9cf2013-08-10 21:03:06 +000035509if test "$have_mupdf" = 'yes' ; then
35510 MAGICK_DELEGATES="$MAGICK_DELEGATES mupdf"
cristyc0884e92013-08-10 17:14:59 +000035511fi
cristy2a3eb392012-12-17 13:39:20 +000035512if test "$have_fftw" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035513 MAGICK_DELEGATES="$MAGICK_DELEGATES fftw"
cristy2a3eb392012-12-17 13:39:20 +000035514fi
cristy2a3eb392012-12-17 13:39:20 +000035515if test "$have_fpx" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035516 MAGICK_DELEGATES="$MAGICK_DELEGATES fpx"
cristy2a3eb392012-12-17 13:39:20 +000035517fi
35518if test "$have_fontconfig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035519 MAGICK_DELEGATES="$MAGICK_DELEGATES fontconfig"
cristy2a3eb392012-12-17 13:39:20 +000035520fi
35521if test "$have_freetype" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035522 MAGICK_DELEGATES="$MAGICK_DELEGATES freetype"
cristy2a3eb392012-12-17 13:39:20 +000035523fi
35524if test "$have_gslib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035525 MAGICK_DELEGATES="$MAGICK_DELEGATES gslib"
cristy2a3eb392012-12-17 13:39:20 +000035526fi
35527if test "$have_jbig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035528 MAGICK_DELEGATES="$MAGICK_DELEGATES jbig"
cristy2a3eb392012-12-17 13:39:20 +000035529fi
35530if test "$have_png$have_jpeg" = 'yesyes' ; then
cristy422d5502012-12-22 22:20:57 +000035531 MAGICK_DELEGATES="$MAGICK_DELEGATES jng"
cristy2a3eb392012-12-17 13:39:20 +000035532fi
35533if test "$have_jp2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035534 MAGICK_DELEGATES="$MAGICK_DELEGATES jp2"
cristy2a3eb392012-12-17 13:39:20 +000035535fi
35536if test "$have_jpeg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035537 MAGICK_DELEGATES="$MAGICK_DELEGATES jpeg"
cristy2a3eb392012-12-17 13:39:20 +000035538fi
35539if test "$have_lcms" = 'yes' || test "$have_lcms2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035540 MAGICK_DELEGATES="$MAGICK_DELEGATES lcms"
cristy2a3eb392012-12-17 13:39:20 +000035541fi
35542if test "$have_lqr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035543 MAGICK_DELEGATES="$MAGICK_DELEGATES lqr"
cristy2a3eb392012-12-17 13:39:20 +000035544fi
35545if test "$have_lzma" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035546 MAGICK_DELEGATES="$MAGICK_DELEGATES lzma"
cristy2a3eb392012-12-17 13:39:20 +000035547fi
35548if test "$have_openexr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035549 MAGICK_DELEGATES="$MAGICK_DELEGATES openexr"
cristy2a3eb392012-12-17 13:39:20 +000035550fi
35551if test "$have_pango" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035552 MAGICK_DELEGATES="$MAGICK_DELEGATES pango"
cristy2a3eb392012-12-17 13:39:20 +000035553fi
35554if test "$have_png" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035555 MAGICK_DELEGATES="$MAGICK_DELEGATES png"
cristy2a3eb392012-12-17 13:39:20 +000035556fi
35557have_ps='no'
35558if test "$have_dps" = 'yes' || \
35559 test "$have_gs" = 'yes' || \
35560 test "${native_win32_build}" = 'yes' ; then
35561 have_ps='yes'
35562fi
35563if test "$have_ps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035564 MAGICK_DELEGATES="$MAGICK_DELEGATES ps"
cristy2a3eb392012-12-17 13:39:20 +000035565fi
cristy2a3eb392012-12-17 13:39:20 +000035566if test "$have_ra_ppm" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035567 MAGICK_DELEGATES="$MAGICK_DELEGATES rad"
cristy2a3eb392012-12-17 13:39:20 +000035568fi
35569if test "$have_rsvg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035570 MAGICK_DELEGATES="$MAGICK_DELEGATES rsvg"
cristy2a3eb392012-12-17 13:39:20 +000035571fi
35572if test "$have_tiff" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035573 MAGICK_DELEGATES="$MAGICK_DELEGATES tiff"
cristy2a3eb392012-12-17 13:39:20 +000035574fi
35575if test "$have_ttf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035576 MAGICK_DELEGATES="$MAGICK_DELEGATES ttf"
cristy2a3eb392012-12-17 13:39:20 +000035577fi
cristy3b640ed2013-07-29 00:27:59 +000035578if test "$have_webp" = 'yes' ; then
35579 MAGICK_DELEGATES="$MAGICK_DELEGATES webp"
35580fi
cristy2a3eb392012-12-17 13:39:20 +000035581if test "$have_wmf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035582 MAGICK_DELEGATES="$MAGICK_DELEGATES wmf"
cristy2a3eb392012-12-17 13:39:20 +000035583fi
35584if test "$have_x" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035585 MAGICK_DELEGATES="$MAGICK_DELEGATES x"
cristy2a3eb392012-12-17 13:39:20 +000035586fi
35587if test "$have_xml" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035588 MAGICK_DELEGATES="$MAGICK_DELEGATES xml"
cristy2a3eb392012-12-17 13:39:20 +000035589fi
35590if test "$have_zlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035591 MAGICK_DELEGATES="$MAGICK_DELEGATES zlib"
cristy2a3eb392012-12-17 13:39:20 +000035592fi
cristy2a3eb392012-12-17 13:39:20 +000035593# Remove extraneous spaces from output variables (asthetic)
cristy422d5502012-12-22 22:20:57 +000035594MAGICK_DELEGATES=`echo $MAGICK_DELEGATES | sed -e 's/ */ /g'`
cristy2a3eb392012-12-17 13:39:20 +000035595MAGICK_FEATURES=`echo $MAGICK_FEATURES | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000035596
35597
cristyfa161182012-12-19 15:45:28 +000035598
cristy3ed852e2009-09-05 21:47:34 +000035599#
35600# Handle special compiler flags
35601#
35602
35603# Add '-p' if prof source profiling support enabled
35604if test "$enable_prof" = 'yes'; then
35605 CFLAGS="-p $CFLAGS"
35606 CXXFLAGS="-p $CXXFLAGS"
35607 LDFLAGS="-p $LDFLAGS"
35608fi
35609
35610# Add '-pg' if gprof source profiling support enabled
35611if test "$enable_gprof" = 'yes'; then
35612 CFLAGS="-pg $CFLAGS"
35613 CXXFLAGS="-pg $CXXFLAGS"
35614 LDFLAGS="-pg $LDFLAGS"
35615fi
35616
35617# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
35618# This is a gcc-specific feature
35619if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035621$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035622if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035623 $as_echo_n "(cached) " >&6
35624else
35625 ac_check_lib_save_LIBS=$LIBS
35626LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035627cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035628/* end confdefs.h. */
35629
35630/* Override any GCC internal prototype to avoid an error.
35631 Use char because int might match the return type of a GCC
35632 builtin and then its argument prototype would still apply. */
35633#ifdef __cplusplus
35634extern "C"
35635#endif
35636char _gcov_init ();
35637int
35638main ()
35639{
35640return _gcov_init ();
35641 ;
35642 return 0;
35643}
35644_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035645if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035646 ac_cv_lib_gcov__gcov_init=yes
35647else
cristy8b350f62009-11-15 23:12:43 +000035648 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035649fi
cristy8b350f62009-11-15 23:12:43 +000035650rm -f core conftest.err conftest.$ac_objext \
35651 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035652LIBS=$ac_check_lib_save_LIBS
35653fi
cristy8b350f62009-11-15 23:12:43 +000035654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035655$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035656if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035657 cat >>confdefs.h <<_ACEOF
35658#define HAVE_LIBGCOV 1
35659_ACEOF
35660
35661 LIBS="-lgcov $LIBS"
35662
35663fi
35664
cristy8b350f62009-11-15 23:12:43 +000035665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035666$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035667if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035668 $as_echo_n "(cached) " >&6
35669else
35670 ac_check_lib_save_LIBS=$LIBS
35671LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035672cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035673/* end confdefs.h. */
35674
35675/* Override any GCC internal prototype to avoid an error.
35676 Use char because int might match the return type of a GCC
35677 builtin and then its argument prototype would still apply. */
35678#ifdef __cplusplus
35679extern "C"
35680#endif
35681char __gcov_init ();
35682int
35683main ()
35684{
35685return __gcov_init ();
35686 ;
35687 return 0;
35688}
35689_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035690if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035691 ac_cv_lib_gcov___gcov_init=yes
35692else
cristy8b350f62009-11-15 23:12:43 +000035693 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035694fi
cristy8b350f62009-11-15 23:12:43 +000035695rm -f core conftest.err conftest.$ac_objext \
35696 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035697LIBS=$ac_check_lib_save_LIBS
35698fi
cristy8b350f62009-11-15 23:12:43 +000035699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035700$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035701if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035702 cat >>confdefs.h <<_ACEOF
35703#define HAVE_LIBGCOV 1
35704_ACEOF
35705
35706 LIBS="-lgcov $LIBS"
35707
35708fi
35709
35710 case "$target_os" in
35711 darwin*)
35712 OSX_GCOV_LDFLAG="-Wl,-single_module"
35713 ;;
35714 *)
35715 OSX_GCOV_LDFLAG=""
35716 ;;
35717 esac
35718
35719 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
35720 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
35721 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
35722fi
35723
35724#
35725# Build library dependency list for libMagickCore
35726#
35727
cristyc6722092012-10-14 00:19:31 +000035728if test "$build_modules" != 'no'; then
cristy5eef09f2012-10-16 12:08:28 +000035729 MAGICK_DEP_LIBS="$LCMS_LIBS $FREETYPE_LIBS $LQR_LIBS $FFTW_LIBS $FONTCONFIG_LIBS $XEXT_LIBS $IPC_LIBS $X11_LIBS $XT_LIBS $LZMA_LIBS $BZLIB_LIBS $ZLIB_LIBS $LTDL_LIBS $GDI32_LIBS $MATH_LIBS $GOMP_LIBS $CL_LIBS $UMEM_LIBS $THREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000035730else
cristy3a75f062012-09-08 23:29:40 +000035731 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 +000035732fi
35733
35734
35735#
35736# Remove extraneous spaces from output variables (asthetic)
35737#
35738X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
35739X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
35740X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
35741X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
35742
35743CC=`echo $CC | sed -e 's/ */ /g'`
35744CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
35745CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
35746CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000035747DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
35748LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
35749TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35750MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
35751#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35752
35753# Pass only user-provided LIBS as "global" libraries
35754LIBS=$USER_LIBS
35755
35756#AC_SUBST(CPPFLAGS)
35757
35758#AC_SUBST(LDFLAGS)
35759#AC_SUBST(X_PRE_LIBS)
35760#AC_SUBST(X_LIBS)
35761#AC_SUBST(X_EXTRA_LIBS)
35762
35763MAGICK_CFLAGS=$CFLAGS
35764MAGICK_CXXFLAGS="$CXXFLAGS"
35765MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
35766MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
35767MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
cristyc6722092012-10-14 00:19:31 +000035768MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000035769
35770
35771
35772
35773
35774
35775
35776
35777# Set configured scripts to executable.
35778ac_config_commands="$ac_config_commands default"
35779
cristy2bd4b6e2012-07-22 15:29:11 +000035780ac_config_commands="$ac_config_commands magick.sh.in"
35781
cristy3ed852e2009-09-05 21:47:34 +000035782ac_config_commands="$ac_config_commands MagickCore-config.in"
35783
cristy3ed852e2009-09-05 21:47:34 +000035784ac_config_commands="$ac_config_commands MagickWand-config.in"
35785
cristy3ed852e2009-09-05 21:47:34 +000035786ac_config_commands="$ac_config_commands Magick++-config.in"
35787
35788ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
35789
35790
cristyad38abe2012-12-23 23:03:21 +000035791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35792$as_echo "-------------------------------------------------------------" >&6; }
35793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
35794$as_echo "Update ImageMagick configuration" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035795cat >confcache <<\_ACEOF
35796# This file is a shell script that caches the results of configure
35797# tests run on this system so they can be shared between configure
35798# scripts and configure runs, see configure's option --config-cache.
35799# It is not useful on other systems. If it contains results you don't
35800# want to keep, you may remove or edit it.
35801#
35802# config.status only pays attention to the cache file if you give it
35803# the --recheck option to rerun configure.
35804#
35805# `ac_cv_env_foo' variables (set or unset) will be overridden when
35806# loading this file, other *unset* `ac_cv_foo' will be assigned the
35807# following values.
35808
35809_ACEOF
35810
35811# The following way of writing the cache mishandles newlines in values,
35812# but we know of no workaround that is simple, portable, and efficient.
35813# So, we kill variables containing newlines.
35814# Ultrix sh set writes to stderr and can't be redirected directly,
35815# and sets the high bit in the cache file unless we assign to the vars.
35816(
35817 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35818 eval ac_val=\$$ac_var
35819 case $ac_val in #(
35820 *${as_nl}*)
35821 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000035822 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000035823$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
35824 esac
35825 case $ac_var in #(
35826 _ | IFS | as_nl) ;; #(
35827 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000035828 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000035829 esac ;;
35830 esac
35831 done
35832
35833 (set) 2>&1 |
35834 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35835 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000035836 # `set' does not quote correctly, so add quotes: double-quote
35837 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000035838 sed -n \
35839 "s/'/'\\\\''/g;
35840 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35841 ;; #(
35842 *)
35843 # `set' quotes correctly as required by POSIX, so do not add quotes.
35844 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35845 ;;
35846 esac |
35847 sort
35848) |
35849 sed '
35850 /^ac_cv_env_/b end
35851 t clear
35852 :clear
35853 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35854 t end
35855 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35856 :end' >>confcache
35857if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35858 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000035859 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000035860 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035861$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000035862 if test ! -f "$cache_file" || test -h "$cache_file"; then
35863 cat confcache >"$cache_file"
35864 else
35865 case $cache_file in #(
35866 */* | ?:*)
35867 mv -f confcache "$cache_file"$$ &&
35868 mv -f "$cache_file"$$ "$cache_file" ;; #(
35869 *)
35870 mv -f confcache "$cache_file" ;;
35871 esac
35872 fi
35873 fi
cristy3ed852e2009-09-05 21:47:34 +000035874 else
cristy8b350f62009-11-15 23:12:43 +000035875 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035876$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35877 fi
35878fi
35879rm -f confcache
35880
35881test "x$prefix" = xNONE && prefix=$ac_default_prefix
35882# Let make expand exec_prefix.
35883test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35884
35885DEFS=-DHAVE_CONFIG_H
35886
35887ac_libobjs=
35888ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000035889U=
cristy3ed852e2009-09-05 21:47:34 +000035890for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35891 # 1. Remove the extension, and $U if already installed.
35892 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35893 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
35894 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35895 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000035896 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35897 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000035898done
35899LIBOBJS=$ac_libobjs
35900
35901LTLIBOBJS=$ac_ltlibobjs
35902
35903
cristyc0890a62012-07-19 00:18:20 +000035904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
35905$as_echo_n "checking that generated files are newer than configure... " >&6; }
35906 if test -n "$am_sleep_pid"; then
35907 # Hide warnings about reused PIDs.
35908 wait $am_sleep_pid 2>/dev/null
35909 fi
35910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
35911$as_echo "done" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000035912 if test -n "$EXEEXT"; then
35913 am__EXEEXT_TRUE=
35914 am__EXEEXT_FALSE='#'
35915else
35916 am__EXEEXT_TRUE='#'
35917 am__EXEEXT_FALSE=
35918fi
cristy3ed852e2009-09-05 21:47:34 +000035919
cristy73bd4a52010-10-05 11:24:23 +000035920if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035921 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035922Usually this means the macro was only invoked conditionally." "$LINENO" 5
35923fi
35924if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035925 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035926Usually this means the macro was only invoked conditionally." "$LINENO" 5
35927fi
35928if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035929 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035930Usually this means the macro was only invoked conditionally." "$LINENO" 5
35931fi
35932if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035933 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035934Usually this means the macro was only invoked conditionally." "$LINENO" 5
35935fi
cristy9b86f202012-11-28 21:55:35 +000035936if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
35937 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
35938Usually this means the macro was only invoked conditionally." "$LINENO" 5
35939fi
cristy73bd4a52010-10-05 11:24:23 +000035940if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035941 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035942Usually this means the macro was only invoked conditionally." "$LINENO" 5
35943fi
35944if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035945 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035946Usually this means the macro was only invoked conditionally." "$LINENO" 5
35947fi
35948if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035949 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035950Usually this means the macro was only invoked conditionally." "$LINENO" 5
35951fi
35952if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035953 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035954Usually this means the macro was only invoked conditionally." "$LINENO" 5
35955fi
cristy73bd4a52010-10-05 11:24:23 +000035956if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035957 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035958Usually this means the macro was only invoked conditionally." "$LINENO" 5
35959fi
35960if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035961 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035962Usually this means the macro was only invoked conditionally." "$LINENO" 5
35963fi
cristy73bd4a52010-10-05 11:24:23 +000035964if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035965 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035966Usually this means the macro was only invoked conditionally." "$LINENO" 5
35967fi
cristy71d8c202012-03-20 17:05:01 +000035968if test -z "${LEGACY_SUPPORT_TRUE}" && test -z "${LEGACY_SUPPORT_FALSE}"; then
35969 as_fn_error $? "conditional \"LEGACY_SUPPORT\" was never defined.
35970Usually this means the macro was only invoked conditionally." "$LINENO" 5
35971fi
cristy73bd4a52010-10-05 11:24:23 +000035972
35973if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035974 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035975Usually this means the macro was only invoked conditionally." "$LINENO" 5
35976fi
35977if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035978 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035979Usually this means the macro was only invoked conditionally." "$LINENO" 5
35980fi
35981if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035982 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035983Usually this means the macro was only invoked conditionally." "$LINENO" 5
35984fi
35985if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035986 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035987Usually this means the macro was only invoked conditionally." "$LINENO" 5
35988fi
35989if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035990 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035991Usually this means the macro was only invoked conditionally." "$LINENO" 5
35992fi
35993if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035994 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035995Usually this means the macro was only invoked conditionally." "$LINENO" 5
35996fi
cristy5eef09f2012-10-16 12:08:28 +000035997if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
35998 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
35999Usually this means the macro was only invoked conditionally." "$LINENO" 5
36000fi
cristy73bd4a52010-10-05 11:24:23 +000036001if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036002 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036003Usually this means the macro was only invoked conditionally." "$LINENO" 5
36004fi
36005if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036006 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036007Usually this means the macro was only invoked conditionally." "$LINENO" 5
36008fi
36009if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036010 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036011Usually this means the macro was only invoked conditionally." "$LINENO" 5
36012fi
36013if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036014 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036015Usually this means the macro was only invoked conditionally." "$LINENO" 5
36016fi
36017if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036018 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036019Usually this means the macro was only invoked conditionally." "$LINENO" 5
36020fi
36021if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036022 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036023Usually this means the macro was only invoked conditionally." "$LINENO" 5
36024fi
36025if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036026 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036027Usually this means the macro was only invoked conditionally." "$LINENO" 5
36028fi
36029if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036030 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036031Usually this means the macro was only invoked conditionally." "$LINENO" 5
36032fi
36033if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036034 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036035Usually this means the macro was only invoked conditionally." "$LINENO" 5
36036fi
36037if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036038 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036039Usually this means the macro was only invoked conditionally." "$LINENO" 5
36040fi
36041if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036042 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036043Usually this means the macro was only invoked conditionally." "$LINENO" 5
36044fi
36045if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036046 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036047Usually this means the macro was only invoked conditionally." "$LINENO" 5
36048fi
36049if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036050 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036051Usually this means the macro was only invoked conditionally." "$LINENO" 5
36052fi
36053if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036054 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036055Usually this means the macro was only invoked conditionally." "$LINENO" 5
36056fi
cristyfbb0ef02010-12-19 02:32:11 +000036057if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
36058 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
36059Usually this means the macro was only invoked conditionally." "$LINENO" 5
36060fi
cristy854c9cf2013-08-10 21:03:06 +000036061if test -z "${MUPDF_DELEGATE_TRUE}" && test -z "${MUPDF_DELEGATE_FALSE}"; then
36062 as_fn_error $? "conditional \"MUPDF_DELEGATE\" was never defined.
36063Usually this means the macro was only invoked conditionally." "$LINENO" 5
36064fi
cristy73bd4a52010-10-05 11:24:23 +000036065if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036066 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036067Usually this means the macro was only invoked conditionally." "$LINENO" 5
36068fi
cristy41cbe8a2011-10-27 01:35:18 +000036069if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
36070 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
36071Usually this means the macro was only invoked conditionally." "$LINENO" 5
36072fi
cristya054b762012-03-26 23:16:00 +000036073if test -z "${PANGOCAIRO_DELEGATE_TRUE}" && test -z "${PANGOCAIRO_DELEGATE_FALSE}"; then
36074 as_fn_error $? "conditional \"PANGOCAIRO_DELEGATE\" was never defined.
cristy41cbe8a2011-10-27 01:35:18 +000036075Usually this means the macro was only invoked conditionally." "$LINENO" 5
36076fi
cristy73bd4a52010-10-05 11:24:23 +000036077if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036078 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036079Usually this means the macro was only invoked conditionally." "$LINENO" 5
36080fi
36081if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036082 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036083Usually this means the macro was only invoked conditionally." "$LINENO" 5
36084fi
36085if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036086 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036087Usually this means the macro was only invoked conditionally." "$LINENO" 5
36088fi
36089if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036090 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036091Usually this means the macro was only invoked conditionally." "$LINENO" 5
36092fi
cristyb1860752011-03-14 00:27:46 +000036093if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
36094 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
36095Usually this means the macro was only invoked conditionally." "$LINENO" 5
36096fi
cristy73bd4a52010-10-05 11:24:23 +000036097if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036098 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036099Usually this means the macro was only invoked conditionally." "$LINENO" 5
36100fi
36101if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036102 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036103Usually this means the macro was only invoked conditionally." "$LINENO" 5
36104fi
36105if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036106 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036107Usually this means the macro was only invoked conditionally." "$LINENO" 5
36108fi
36109if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036110 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036111Usually this means the macro was only invoked conditionally." "$LINENO" 5
36112fi
36113if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036114 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036115Usually this means the macro was only invoked conditionally." "$LINENO" 5
36116fi
36117if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036118 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036119Usually this means the macro was only invoked conditionally." "$LINENO" 5
36120fi
36121if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036122 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036123Usually this means the macro was only invoked conditionally." "$LINENO" 5
36124fi
36125if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036126 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036127Usually this means the macro was only invoked conditionally." "$LINENO" 5
36128fi
cristy3ed852e2009-09-05 21:47:34 +000036129
cristyda16f162011-02-19 23:52:17 +000036130: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000036131ac_write_fail=0
36132ac_clean_files_save=$ac_clean_files
36133ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000036134{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000036135$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000036136as_write_fail=0
36137cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036138#! $SHELL
36139# Generated by $as_me.
36140# Run this file to recreate the current configuration.
36141# Compiler output produced by configure, useful for debugging
36142# configure, is in config.log if it exists.
36143
36144debug=false
36145ac_cs_recheck=false
36146ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000036147
cristy8b350f62009-11-15 23:12:43 +000036148SHELL=\${CONFIG_SHELL-$SHELL}
36149export SHELL
36150_ASEOF
36151cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
36152## -------------------- ##
36153## M4sh Initialization. ##
36154## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000036155
36156# Be more Bourne compatible
36157DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000036158if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000036159 emulate sh
36160 NULLCMD=:
36161 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
36162 # is contrary to our usage. Disable this feature.
36163 alias -g '${1+"$@"}'='"$@"'
36164 setopt NO_GLOB_SUBST
36165else
cristy8b350f62009-11-15 23:12:43 +000036166 case `(set -o) 2>/dev/null` in #(
36167 *posix*) :
36168 set -o posix ;; #(
36169 *) :
36170 ;;
cristy3ed852e2009-09-05 21:47:34 +000036171esac
cristy3ed852e2009-09-05 21:47:34 +000036172fi
36173
36174
cristy3ed852e2009-09-05 21:47:34 +000036175as_nl='
36176'
36177export as_nl
36178# Printing a long string crashes Solaris 7 /usr/bin/printf.
36179as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
36180as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
36181as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000036182# Prefer a ksh shell builtin over an external printf program on Solaris,
36183# but without wasting forks for bash or zsh.
36184if test -z "$BASH_VERSION$ZSH_VERSION" \
36185 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
36186 as_echo='print -r --'
36187 as_echo_n='print -rn --'
36188elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000036189 as_echo='printf %s\n'
36190 as_echo_n='printf %s'
36191else
36192 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
36193 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
36194 as_echo_n='/usr/ucb/echo -n'
36195 else
36196 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
36197 as_echo_n_body='eval
36198 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000036199 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000036200 *"$as_nl"*)
36201 expr "X$arg" : "X\\(.*\\)$as_nl";
36202 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
36203 esac;
36204 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
36205 '
36206 export as_echo_n_body
36207 as_echo_n='sh -c $as_echo_n_body as_echo'
36208 fi
36209 export as_echo_body
36210 as_echo='sh -c $as_echo_body as_echo'
36211fi
36212
36213# The user is always right.
36214if test "${PATH_SEPARATOR+set}" != set; then
36215 PATH_SEPARATOR=:
36216 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
36217 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
36218 PATH_SEPARATOR=';'
36219 }
36220fi
36221
cristy3ed852e2009-09-05 21:47:34 +000036222
36223# IFS
36224# We need space, tab and new line, in precisely that order. Quoting is
36225# there to prevent editors from complaining about space-tab.
36226# (If _AS_PATH_WALK were called with IFS unset, it would disable word
36227# splitting by setting IFS to empty value.)
36228IFS=" "" $as_nl"
36229
36230# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000036231as_myself=
cristy8b350f62009-11-15 23:12:43 +000036232case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000036233 *[\\/]* ) as_myself=$0 ;;
36234 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36235for as_dir in $PATH
36236do
36237 IFS=$as_save_IFS
36238 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000036239 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
36240 done
cristy3ed852e2009-09-05 21:47:34 +000036241IFS=$as_save_IFS
36242
36243 ;;
36244esac
36245# We did not find ourselves, most probably we were run as `sh COMMAND'
36246# in which case we are not to be found in the path.
36247if test "x$as_myself" = x; then
36248 as_myself=$0
36249fi
36250if test ! -f "$as_myself"; then
36251 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000036252 exit 1
cristy3ed852e2009-09-05 21:47:34 +000036253fi
36254
cristy8b350f62009-11-15 23:12:43 +000036255# Unset variables that we do not need and which cause bugs (e.g. in
36256# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
36257# suppresses any "Segmentation fault" message there. '((' could
36258# trigger a bug in pdksh 5.2.14.
36259for as_var in BASH_ENV ENV MAIL MAILPATH
36260do eval test x\${$as_var+set} = xset \
36261 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000036262done
36263PS1='$ '
36264PS2='> '
36265PS4='+ '
36266
36267# NLS nuisances.
36268LC_ALL=C
36269export LC_ALL
36270LANGUAGE=C
36271export LANGUAGE
36272
cristy8b350f62009-11-15 23:12:43 +000036273# CDPATH.
36274(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36275
36276
cristy98dddb52010-11-04 00:30:15 +000036277# as_fn_error STATUS ERROR [LINENO LOG_FD]
36278# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000036279# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
36280# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000036281# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000036282as_fn_error ()
36283{
cristy98dddb52010-11-04 00:30:15 +000036284 as_status=$1; test $as_status -eq 0 && as_status=1
36285 if test "$4"; then
36286 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
36287 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000036288 fi
cristy98dddb52010-11-04 00:30:15 +000036289 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000036290 as_fn_exit $as_status
36291} # as_fn_error
36292
36293
36294# as_fn_set_status STATUS
36295# -----------------------
36296# Set $? to STATUS, without forking.
36297as_fn_set_status ()
36298{
36299 return $1
36300} # as_fn_set_status
36301
36302# as_fn_exit STATUS
36303# -----------------
36304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
36305as_fn_exit ()
36306{
36307 set +e
36308 as_fn_set_status $1
36309 exit $1
36310} # as_fn_exit
36311
36312# as_fn_unset VAR
36313# ---------------
36314# Portably unset VAR.
36315as_fn_unset ()
36316{
36317 { eval $1=; unset $1;}
36318}
36319as_unset=as_fn_unset
36320# as_fn_append VAR VALUE
36321# ----------------------
36322# Append the text in VALUE to the end of the definition contained in VAR. Take
36323# advantage of any shell optimizations that allow amortized linear growth over
36324# repeated appends, instead of the typical quadratic growth present in naive
36325# implementations.
36326if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
36327 eval 'as_fn_append ()
36328 {
36329 eval $1+=\$2
36330 }'
36331else
36332 as_fn_append ()
36333 {
36334 eval $1=\$$1\$2
36335 }
36336fi # as_fn_append
36337
36338# as_fn_arith ARG...
36339# ------------------
36340# Perform arithmetic evaluation on the ARGs, and store the result in the
36341# global $as_val. Take advantage of shells that can avoid forks. The arguments
36342# must be portable across $(()) and expr.
36343if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
36344 eval 'as_fn_arith ()
36345 {
36346 as_val=$(( $* ))
36347 }'
36348else
36349 as_fn_arith ()
36350 {
36351 as_val=`expr "$@" || test $? -eq 1`
36352 }
36353fi # as_fn_arith
36354
36355
cristy3ed852e2009-09-05 21:47:34 +000036356if expr a : '\(a\)' >/dev/null 2>&1 &&
36357 test "X`expr 00001 : '.*\(...\)'`" = X001; then
36358 as_expr=expr
36359else
36360 as_expr=false
36361fi
36362
36363if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
36364 as_basename=basename
36365else
36366 as_basename=false
36367fi
36368
cristy8b350f62009-11-15 23:12:43 +000036369if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
36370 as_dirname=dirname
36371else
36372 as_dirname=false
36373fi
cristy3ed852e2009-09-05 21:47:34 +000036374
cristy3ed852e2009-09-05 21:47:34 +000036375as_me=`$as_basename -- "$0" ||
36376$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
36377 X"$0" : 'X\(//\)$' \| \
36378 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
36379$as_echo X/"$0" |
36380 sed '/^.*\/\([^/][^/]*\)\/*$/{
36381 s//\1/
36382 q
36383 }
36384 /^X\/\(\/\/\)$/{
36385 s//\1/
36386 q
36387 }
36388 /^X\/\(\/\).*/{
36389 s//\1/
36390 q
36391 }
36392 s/.*/./; q'`
36393
cristy8b350f62009-11-15 23:12:43 +000036394# Avoid depending upon Character Ranges.
36395as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36396as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36397as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36398as_cr_digits='0123456789'
36399as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000036400
36401ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000036402case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000036403-n*)
cristy8b350f62009-11-15 23:12:43 +000036404 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000036405 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000036406 xy) ECHO_C='\c';;
36407 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
36408 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000036409 esac;;
36410*)
36411 ECHO_N='-n';;
36412esac
cristy3ed852e2009-09-05 21:47:34 +000036413
36414rm -f conf$$ conf$$.exe conf$$.file
36415if test -d conf$$.dir; then
36416 rm -f conf$$.dir/conf$$.file
36417else
36418 rm -f conf$$.dir
36419 mkdir conf$$.dir 2>/dev/null
36420fi
36421if (echo >conf$$.file) 2>/dev/null; then
36422 if ln -s conf$$.file conf$$ 2>/dev/null; then
36423 as_ln_s='ln -s'
36424 # ... but there are two gotchas:
36425 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
36426 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cristy14fefe52012-05-21 00:59:18 +000036427 # In both cases, we have to default to `cp -pR'.
cristy3ed852e2009-09-05 21:47:34 +000036428 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cristy14fefe52012-05-21 00:59:18 +000036429 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036430 elif ln conf$$.file conf$$ 2>/dev/null; then
36431 as_ln_s=ln
36432 else
cristy14fefe52012-05-21 00:59:18 +000036433 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036434 fi
36435else
cristy14fefe52012-05-21 00:59:18 +000036436 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036437fi
36438rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
36439rmdir conf$$.dir 2>/dev/null
36440
cristy8b350f62009-11-15 23:12:43 +000036441
36442# as_fn_mkdir_p
36443# -------------
36444# Create "$as_dir" as a directory, including parents if necessary.
36445as_fn_mkdir_p ()
36446{
36447
36448 case $as_dir in #(
36449 -*) as_dir=./$as_dir;;
36450 esac
36451 test -d "$as_dir" || eval $as_mkdir_p || {
36452 as_dirs=
36453 while :; do
36454 case $as_dir in #(
36455 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
36456 *) as_qdir=$as_dir;;
36457 esac
36458 as_dirs="'$as_qdir' $as_dirs"
36459 as_dir=`$as_dirname -- "$as_dir" ||
36460$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36461 X"$as_dir" : 'X\(//\)[^/]' \| \
36462 X"$as_dir" : 'X\(//\)$' \| \
36463 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36464$as_echo X"$as_dir" |
36465 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36466 s//\1/
36467 q
36468 }
36469 /^X\(\/\/\)[^/].*/{
36470 s//\1/
36471 q
36472 }
36473 /^X\(\/\/\)$/{
36474 s//\1/
36475 q
36476 }
36477 /^X\(\/\).*/{
36478 s//\1/
36479 q
36480 }
36481 s/.*/./; q'`
36482 test -d "$as_dir" && break
36483 done
36484 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000036485 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000036486
36487
36488} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000036489if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000036490 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000036491else
36492 test -d ./-p && rmdir ./-p
36493 as_mkdir_p=false
36494fi
36495
cristy14fefe52012-05-21 00:59:18 +000036496
36497# as_fn_executable_p FILE
36498# -----------------------
36499# Test if FILE is an executable regular file.
36500as_fn_executable_p ()
36501{
36502 test -f "$1" && test -x "$1"
36503} # as_fn_executable_p
36504as_test_x='test -x'
36505as_executable_p=as_fn_executable_p
cristy3ed852e2009-09-05 21:47:34 +000036506
36507# Sed expression to map a string onto a valid CPP name.
36508as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
36509
36510# Sed expression to map a string onto a valid variable name.
36511as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
36512
36513
36514exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000036515## ----------------------------------- ##
36516## Main body of $CONFIG_STATUS script. ##
36517## ----------------------------------- ##
36518_ASEOF
36519test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036520
cristy8b350f62009-11-15 23:12:43 +000036521cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36522# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000036523# report actual input values of CONFIG_FILES etc. instead of their
36524# values after options handling.
36525ac_log="
cristy29eb34e2011-10-16 00:46:08 +000036526This file was extended by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +000036527generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000036528
36529 CONFIG_FILES = $CONFIG_FILES
36530 CONFIG_HEADERS = $CONFIG_HEADERS
36531 CONFIG_LINKS = $CONFIG_LINKS
36532 CONFIG_COMMANDS = $CONFIG_COMMANDS
36533 $ $0 $@
36534
36535on `(hostname || uname -n) 2>/dev/null | sed 1q`
36536"
36537
36538_ACEOF
36539
36540case $ac_config_files in *"
36541"*) set x $ac_config_files; shift; ac_config_files=$*;;
36542esac
36543
36544case $ac_config_headers in *"
36545"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
36546esac
36547
36548
36549cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36550# Files that config.status was made for.
36551config_files="$ac_config_files"
36552config_headers="$ac_config_headers"
36553config_commands="$ac_config_commands"
36554
36555_ACEOF
36556
36557cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36558ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000036559\`$as_me' instantiates files and other configuration actions
36560from templates according to the current configuration. Unless the files
36561and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000036562
cristy8b350f62009-11-15 23:12:43 +000036563Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000036564
36565 -h, --help print this help, then exit
36566 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000036567 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000036568 -q, --quiet, --silent
36569 do not print progress messages
36570 -d, --debug don't remove temporary files
36571 --recheck update $as_me by reconfiguring in the same conditions
36572 --file=FILE[:TEMPLATE]
36573 instantiate the configuration file FILE
36574 --header=FILE[:TEMPLATE]
36575 instantiate the configuration header FILE
36576
36577Configuration files:
36578$config_files
36579
36580Configuration headers:
36581$config_headers
36582
36583Configuration commands:
36584$config_commands
36585
cristy8b350f62009-11-15 23:12:43 +000036586Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000036587
36588_ACEOF
36589cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000036590ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000036591ac_cs_version="\\
cristy29eb34e2011-10-16 00:46:08 +000036592ImageMagick config.status 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +000036593configured by $0, generated by GNU Autoconf 2.69,
cristycd4c5312009-11-22 01:19:08 +000036594 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000036595
cristy14fefe52012-05-21 00:59:18 +000036596Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000036597This config.status script is free software; the Free Software Foundation
36598gives unlimited permission to copy, distribute and modify it."
36599
36600ac_pwd='$ac_pwd'
36601srcdir='$srcdir'
36602INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000036603MKDIR_P='$MKDIR_P'
36604AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000036605test -n "\$AWK" || AWK=awk
36606_ACEOF
36607
36608cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36609# The default lists apply if the user does not specify any file.
36610ac_need_defaults=:
36611while test $# != 0
36612do
36613 case $1 in
cristyda16f162011-02-19 23:52:17 +000036614 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000036615 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36616 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
36617 ac_shift=:
36618 ;;
cristyda16f162011-02-19 23:52:17 +000036619 --*=)
36620 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36621 ac_optarg=
36622 ac_shift=:
36623 ;;
cristy3ed852e2009-09-05 21:47:34 +000036624 *)
36625 ac_option=$1
36626 ac_optarg=$2
36627 ac_shift=shift
36628 ;;
36629 esac
36630
36631 case $ac_option in
36632 # Handling of the options.
36633 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36634 ac_cs_recheck=: ;;
36635 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
36636 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000036637 --config | --confi | --conf | --con | --co | --c )
36638 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000036639 --debug | --debu | --deb | --de | --d | -d )
36640 debug=: ;;
36641 --file | --fil | --fi | --f )
36642 $ac_shift
36643 case $ac_optarg in
36644 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000036645 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000036646 esac
cristy8b350f62009-11-15 23:12:43 +000036647 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036648 ac_need_defaults=false;;
36649 --header | --heade | --head | --hea )
36650 $ac_shift
36651 case $ac_optarg in
36652 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
36653 esac
cristy8b350f62009-11-15 23:12:43 +000036654 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036655 ac_need_defaults=false;;
36656 --he | --h)
36657 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000036658 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036659Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000036660 --help | --hel | -h )
36661 $as_echo "$ac_cs_usage"; exit ;;
36662 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36663 | -silent | --silent | --silen | --sile | --sil | --si | --s)
36664 ac_cs_silent=: ;;
36665
36666 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000036667 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036668Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000036669
cristy8b350f62009-11-15 23:12:43 +000036670 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000036671 ac_need_defaults=false ;;
36672
36673 esac
36674 shift
36675done
36676
36677ac_configure_extra_args=
36678
36679if $ac_cs_silent; then
36680 exec 6>/dev/null
36681 ac_configure_extra_args="$ac_configure_extra_args --silent"
36682fi
36683
36684_ACEOF
36685cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36686if \$ac_cs_recheck; then
cristy14fefe52012-05-21 00:59:18 +000036687 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
cristy3ed852e2009-09-05 21:47:34 +000036688 shift
36689 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
36690 CONFIG_SHELL='$SHELL'
36691 export CONFIG_SHELL
36692 exec "\$@"
36693fi
36694
36695_ACEOF
36696cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36697exec 5>>config.log
36698{
36699 echo
36700 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36701## Running $as_me. ##
36702_ASBOX
36703 $as_echo "$ac_log"
36704} >&5
36705
36706_ACEOF
36707cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000036708#
36709# INIT-COMMANDS
36710#
36711PACKAGE="$PACKAGE"
36712AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
36713
36714
36715# The HP-UX ksh and POSIX shell print the target directory to stdout
36716# if CDPATH is set.
36717(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36718
36719sed_quote_subst='$sed_quote_subst'
36720double_quote_subst='$double_quote_subst'
36721delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000036722SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
36723Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
36724GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
36725EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
36726FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
36727SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
36728ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
36729LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
36730macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
36731macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
36732AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
36733DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
36734OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
36735enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
36736enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
36737pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
36738enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
cristy99bd5232011-12-07 14:38:20 +000036739PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036740host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
36741host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
36742host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
36743build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
36744build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
36745build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
36746NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
36747LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
36748max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
36749ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
36750exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
36751lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
36752lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
36753lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036754lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
36755lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036756reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
36757reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
36758deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
36759file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036760file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
36761want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
36762sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036763AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
36764AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036765archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036766STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
36767RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
36768old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36769old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36770old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
36771lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
36772CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
36773CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
36774compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
36775GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
36776lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
36777lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
36778lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
36779lt_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 +000036780nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
36781lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036782objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
36783MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
36784lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036785lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036786lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036787lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
36788lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
36789need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036790MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036791DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
36792NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
36793LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
36794OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
36795OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
36796libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
36797shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
36798extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36799archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
36800enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
36801export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
36802whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
36803compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
36804old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
36805old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36806archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
36807archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36808module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
36809module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36810with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
36811allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
36812no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
36813hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036814hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
36815hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
36816hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
36817hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
36818hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
36819hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
36820inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
36821link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036822always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
36823export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
36824exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
36825include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
36826prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036827postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036828file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
36829variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
36830need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
36831need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
36832version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
36833runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
36834shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
36835shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
36836libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
36837library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
36838soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
36839install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
36840postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36841postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36842finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
36843finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
36844hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
36845sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
36846sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
36847hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
36848enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
36849enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
36850enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
36851old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
36852striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
36853compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
36854predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
36855postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
36856predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
36857postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
36858compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
36859LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
36860reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
36861reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36862old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36863compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
36864GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
36865lt_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 +000036866lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036867lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036868lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
36869lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
36870archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
36871enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
36872export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36873whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36874compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
36875old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36876old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36877archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36878archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36879module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36880module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36881with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
36882allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36883no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36884hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036885hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
36886hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
36887hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
36888hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
36889hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
36890hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
36891inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
36892link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036893always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
36894export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36895exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36896include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36897prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036898postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036899file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
36900hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
36901compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
36902predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36903postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36904predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
36905postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
36906compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000036907
36908LTCC='$LTCC'
36909LTCFLAGS='$LTCFLAGS'
36910compiler='$compiler_DEFAULT'
36911
cristy0c60a692010-11-04 01:09:47 +000036912# A function that is used when there is no print builtin or printf.
36913func_fallback_echo ()
36914{
36915 eval 'cat <<_LTECHO_EOF
36916\$1
36917_LTECHO_EOF'
36918}
36919
cristy73bd4a52010-10-05 11:24:23 +000036920# Quote evaled strings.
36921for var in SED \
36922GREP \
36923EGREP \
36924FGREP \
cristy0c60a692010-11-04 01:09:47 +000036925SHELL \
36926ECHO \
cristy73bd4a52010-10-05 11:24:23 +000036927LD \
cristy0c60a692010-11-04 01:09:47 +000036928AS \
36929DLLTOOL \
36930OBJDUMP \
cristy99bd5232011-12-07 14:38:20 +000036931PATH_SEPARATOR \
cristy73bd4a52010-10-05 11:24:23 +000036932NM \
36933LN_S \
36934lt_SP2NL \
36935lt_NL2SP \
36936reload_flag \
36937deplibs_check_method \
36938file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000036939file_magic_glob \
36940want_nocaseglob \
36941sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000036942AR \
36943AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000036944archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036945STRIP \
36946RANLIB \
36947CC \
36948CFLAGS \
36949compiler \
36950lt_cv_sys_global_symbol_pipe \
36951lt_cv_sys_global_symbol_to_cdecl \
36952lt_cv_sys_global_symbol_to_c_name_address \
36953lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000036954nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036955lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000036956lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000036957lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000036958lt_prog_compiler_static \
36959lt_cv_prog_compiler_c_o \
36960need_locks \
cristyda16f162011-02-19 23:52:17 +000036961MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000036962DSYMUTIL \
36963NMEDIT \
36964LIPO \
36965OTOOL \
36966OTOOL64 \
36967shrext_cmds \
36968export_dynamic_flag_spec \
36969whole_archive_flag_spec \
36970compiler_needs_object \
36971with_gnu_ld \
36972allow_undefined_flag \
36973no_undefined_flag \
36974hardcode_libdir_flag_spec \
cristy73bd4a52010-10-05 11:24:23 +000036975hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000036976exclude_expsyms \
36977include_expsyms \
36978file_list_spec \
36979variables_saved_for_relink \
36980libname_spec \
36981library_names_spec \
36982soname_spec \
cristy0c60a692010-11-04 01:09:47 +000036983install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000036984finish_eval \
36985old_striplib \
36986striplib \
36987compiler_lib_search_dirs \
36988predep_objects \
36989postdep_objects \
36990predeps \
36991postdeps \
36992compiler_lib_search_path \
36993LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000036994reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036995compiler_CXX \
36996lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036997lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000036998lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036999lt_prog_compiler_static_CXX \
37000lt_cv_prog_compiler_c_o_CXX \
37001export_dynamic_flag_spec_CXX \
37002whole_archive_flag_spec_CXX \
37003compiler_needs_object_CXX \
37004with_gnu_ld_CXX \
37005allow_undefined_flag_CXX \
37006no_undefined_flag_CXX \
37007hardcode_libdir_flag_spec_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037008hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037009exclude_expsyms_CXX \
37010include_expsyms_CXX \
37011file_list_spec_CXX \
37012compiler_lib_search_dirs_CXX \
37013predep_objects_CXX \
37014postdep_objects_CXX \
37015predeps_CXX \
37016postdeps_CXX \
37017compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000037018 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000037019 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000037020 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000037021 ;;
37022 *)
37023 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37024 ;;
37025 esac
37026done
37027
37028# Double-quote double-evaled strings.
37029for var in reload_cmds \
37030old_postinstall_cmds \
37031old_postuninstall_cmds \
37032old_archive_cmds \
37033extract_expsyms_cmds \
37034old_archive_from_new_cmds \
37035old_archive_from_expsyms_cmds \
37036archive_cmds \
37037archive_expsym_cmds \
37038module_cmds \
37039module_expsym_cmds \
37040export_symbols_cmds \
37041prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000037042postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000037043postinstall_cmds \
37044postuninstall_cmds \
37045finish_cmds \
37046sys_lib_search_path_spec \
37047sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000037048reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037049old_archive_cmds_CXX \
37050old_archive_from_new_cmds_CXX \
37051old_archive_from_expsyms_cmds_CXX \
37052archive_cmds_CXX \
37053archive_expsym_cmds_CXX \
37054module_cmds_CXX \
37055module_expsym_cmds_CXX \
37056export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000037057prelink_cmds_CXX \
37058postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000037059 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000037060 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000037061 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000037062 ;;
37063 *)
37064 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37065 ;;
37066 esac
37067done
37068
cristy73bd4a52010-10-05 11:24:23 +000037069ac_aux_dir='$ac_aux_dir'
37070xsi_shell='$xsi_shell'
37071lt_shell_append='$lt_shell_append'
37072
37073# See if we are running on zsh, and set the options which allow our
37074# commands through without removal of \ escapes INIT.
37075if test -n "\${ZSH_VERSION+set}" ; then
37076 setopt NO_GLOB_SUBST
37077fi
37078
37079
37080 PACKAGE='$PACKAGE'
37081 VERSION='$VERSION'
37082 TIMESTAMP='$TIMESTAMP'
37083 RM='$RM'
37084 ofile='$ofile'
37085
37086
37087
37088
37089
37090
cristy3ed852e2009-09-05 21:47:34 +000037091_ACEOF
37092
37093cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37094
37095# Handling of arguments.
37096for ac_config_target in $ac_config_targets
37097do
37098 case $ac_config_target in
37099 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy01ff9f32012-12-01 18:15:29 +000037100 "MagickCore/magick-baseconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-baseconfig.h" ;;
cristy305c5dd2012-09-13 00:30:13 +000037101 "common.shi") CONFIG_FILES="$CONFIG_FILES common.shi" ;;
cristy3ed852e2009-09-05 21:47:34 +000037102 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
37103 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
37104 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
37105 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
37106 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy2df32802012-09-17 01:15:28 +000037107 "config/Magick++.dox") CONFIG_FILES="$CONFIG_FILES config/Magick++.dox" ;;
cristy430a7312010-01-21 20:44:04 +000037108 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000037109 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
37110 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
37111 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
37112 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
37113 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000037114 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000037115 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000037116 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
37117 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
37118 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000037119 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
37120 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
cristy3ed852e2009-09-05 21:47:34 +000037121 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
cristy8d0ff762013-03-10 20:33:28 +000037122 "PerlMagick/default/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Magick.pm" ;;
cristy3e049f82013-02-13 13:26:53 +000037123 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
cristy8d0ff762013-03-10 20:33:28 +000037124 "PerlMagick/default/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Makefile.PL" ;;
cristycf0cbcc2013-02-13 23:32:58 +000037125 "PerlMagick/quantum/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/Makefile.PL" ;;
37126 "PerlMagick/quantum/quantum.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.pm" ;;
37127 "PerlMagick/quantum/quantum.xs") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.xs" ;;
37128 "PerlMagick/quantum/typemap") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/typemap" ;;
cristy3ed852e2009-09-05 21:47:34 +000037129 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
37130 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
37131 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
37132 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
37133 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
37134 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
37135 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
37136 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
37137 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
37138 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
37139 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
37140 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000037141 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
37142 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000037143 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
37144 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000037145 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
cristy2bd4b6e2012-07-22 15:29:11 +000037146 "magick.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS magick.sh.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037147 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037148 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037149 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
37150 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
37151
cristy98dddb52010-11-04 00:30:15 +000037152 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037153 esac
37154done
37155
37156
37157# If the user did not use the arguments to specify the items to instantiate,
37158# then the envvar interface is used. Set only those that are not.
37159# We use the long form for the default assignment because of an extremely
37160# bizarre bug on SunOS 4.1.3.
37161if $ac_need_defaults; then
37162 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
37163 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
37164 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
37165fi
37166
37167# Have a temporary directory for convenience. Make it in the build tree
37168# simply because there is no reason against having it here, and in addition,
37169# creating and moving files from /tmp can sometimes cause problems.
37170# Hook for its removal unless debugging.
37171# Note that there is a small window in which the directory will not be cleaned:
37172# after its creation but before its name has been assigned to `$tmp'.
37173$debug ||
37174{
cristyda16f162011-02-19 23:52:17 +000037175 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000037176 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000037177 : "${ac_tmp:=$tmp}"
37178 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000037179' 0
cristy8b350f62009-11-15 23:12:43 +000037180 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000037181}
37182# Create a (secure) tmp directory for tmp files.
37183
37184{
37185 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000037186 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000037187} ||
37188{
37189 tmp=./conf$$-$RANDOM
37190 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000037191} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037192ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000037193
37194# Set up the scripts for CONFIG_FILES section.
37195# No need to generate them if there are no CONFIG_FILES.
37196# This happens for instance with `./config.status config.h'.
37197if test -n "$CONFIG_FILES"; then
37198
37199
cristy8b350f62009-11-15 23:12:43 +000037200ac_cr=`echo X | tr X '\015'`
37201# On cygwin, bash can eat \r inside `` if the user requested igncr.
37202# But we know of no other shell where ac_cr would be empty at this
37203# point, so we can use a bashism as a fallback.
37204if test "x$ac_cr" = x; then
37205 eval ac_cr=\$\'\\r\'
37206fi
cristy3ed852e2009-09-05 21:47:34 +000037207ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
37208if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000037209 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000037210else
37211 ac_cs_awk_cr=$ac_cr
37212fi
37213
cristyda16f162011-02-19 23:52:17 +000037214echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000037215_ACEOF
37216
37217
37218{
37219 echo "cat >conf$$subs.awk <<_ACEOF" &&
37220 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
37221 echo "_ACEOF"
37222} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037223 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
37224ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000037225ac_delim='%!_!# '
37226for ac_last_try in false false false false false :; do
37227 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037228 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037229
37230 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
37231 if test $ac_delim_n = $ac_delim_num; then
37232 break
37233 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037234 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037235 else
37236 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37237 fi
37238done
37239rm -f conf$$subs.sh
37240
37241cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000037242cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037243_ACEOF
37244sed -n '
37245h
37246s/^/S["/; s/!.*/"]=/
37247p
37248g
37249s/^[^!]*!//
37250:repl
37251t repl
37252s/'"$ac_delim"'$//
37253t delim
37254:nl
37255h
cristycd4c5312009-11-22 01:19:08 +000037256s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037257t more1
37258s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
37259p
37260n
37261b repl
37262:more1
37263s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37264p
37265g
37266s/.\{148\}//
37267t nl
37268:delim
37269h
cristycd4c5312009-11-22 01:19:08 +000037270s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037271t more2
37272s/["\\]/\\&/g; s/^/"/; s/$/"/
37273p
37274b
37275:more2
37276s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37277p
37278g
37279s/.\{148\}//
37280t delim
37281' <conf$$subs.awk | sed '
37282/^[^""]/{
37283 N
37284 s/\n//
37285}
37286' >>$CONFIG_STATUS || ac_write_fail=1
37287rm -f conf$$subs.awk
37288cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37289_ACAWK
cristyda16f162011-02-19 23:52:17 +000037290cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037291 for (key in S) S_is_set[key] = 1
37292 FS = ""
37293
37294}
37295{
37296 line = $ 0
37297 nfields = split(line, field, "@")
37298 substed = 0
37299 len = length(field[1])
37300 for (i = 2; i < nfields; i++) {
37301 key = field[i]
37302 keylen = length(key)
37303 if (S_is_set[key]) {
37304 value = S[key]
37305 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
37306 len += length(value) + length(field[++i])
37307 substed = 1
37308 } else
37309 len += 1 + keylen
37310 }
37311
37312 print line
37313}
37314
37315_ACAWK
37316_ACEOF
37317cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37318if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
37319 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
37320else
37321 cat
cristyda16f162011-02-19 23:52:17 +000037322fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000037323 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037324_ACEOF
37325
cristy98dddb52010-11-04 00:30:15 +000037326# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
37327# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000037328# trailing colons and then remove the whole line if VPATH becomes empty
37329# (actually we leave an empty line to preserve line numbers).
37330if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000037331 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
37332h
37333s///
37334s/^/:/
37335s/[ ]*$/:/
37336s/:\$(srcdir):/:/g
37337s/:\${srcdir}:/:/g
37338s/:@srcdir@:/:/g
37339s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000037340s/:*$//
cristy98dddb52010-11-04 00:30:15 +000037341x
37342s/\(=[ ]*\).*/\1/
37343G
37344s/\n//
cristy3ed852e2009-09-05 21:47:34 +000037345s/^[^=]*=[ ]*$//
37346}'
37347fi
37348
37349cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37350fi # test -n "$CONFIG_FILES"
37351
37352# Set up the scripts for CONFIG_HEADERS section.
37353# No need to generate them if there are no CONFIG_HEADERS.
37354# This happens for instance with `./config.status Makefile'.
37355if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000037356cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000037357BEGIN {
37358_ACEOF
37359
37360# Transform confdefs.h into an awk script `defines.awk', embedded as
37361# here-document in config.status, that substitutes the proper values into
37362# config.h.in to produce config.h.
37363
37364# Create a delimiter string that does not exist in confdefs.h, to ease
37365# handling of long lines.
37366ac_delim='%!_!# '
37367for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000037368 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
37369 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000037370 break
37371 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037372 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037373 else
37374 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37375 fi
37376done
37377
37378# For the awk script, D is an array of macro values keyed by name,
37379# likewise P contains macro parameters if any. Preserve backslash
37380# newline sequences.
37381
37382ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
37383sed -n '
37384s/.\{148\}/&'"$ac_delim"'/g
37385t rset
37386:rset
37387s/^[ ]*#[ ]*define[ ][ ]*/ /
37388t def
37389d
37390:def
37391s/\\$//
37392t bsnl
37393s/["\\]/\\&/g
37394s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37395D["\1"]=" \3"/p
37396s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
37397d
37398:bsnl
37399s/["\\]/\\&/g
37400s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37401D["\1"]=" \3\\\\\\n"\\/p
37402t cont
37403s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
37404t cont
37405d
37406:cont
37407n
37408s/.\{148\}/&'"$ac_delim"'/g
37409t clear
37410:clear
37411s/\\$//
37412t bsnlc
37413s/["\\]/\\&/g; s/^/"/; s/$/"/p
37414d
37415:bsnlc
37416s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
37417b cont
37418' <confdefs.h | sed '
37419s/'"$ac_delim"'/"\\\
37420"/g' >>$CONFIG_STATUS || ac_write_fail=1
37421
37422cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37423 for (key in D) D_is_set[key] = 1
37424 FS = ""
37425}
37426/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
37427 line = \$ 0
37428 split(line, arg, " ")
37429 if (arg[1] == "#") {
37430 defundef = arg[2]
37431 mac1 = arg[3]
37432 } else {
37433 defundef = substr(arg[1], 2)
37434 mac1 = arg[2]
37435 }
37436 split(mac1, mac2, "(") #)
37437 macro = mac2[1]
37438 prefix = substr(line, 1, index(line, defundef) - 1)
37439 if (D_is_set[macro]) {
37440 # Preserve the white space surrounding the "#".
37441 print prefix "define", macro P[macro] D[macro]
37442 next
37443 } else {
37444 # Replace #undef with comments. This is necessary, for example,
37445 # in the case of _POSIX_SOURCE, which is predefined and required
37446 # on some systems where configure will not decide to define it.
37447 if (defundef == "undef") {
37448 print "/*", prefix defundef, macro, "*/"
37449 next
37450 }
37451 }
37452}
37453{ print }
37454_ACAWK
37455_ACEOF
37456cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000037457 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037458fi # test -n "$CONFIG_HEADERS"
37459
37460
37461eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
37462shift
37463for ac_tag
37464do
37465 case $ac_tag in
37466 :[FHLC]) ac_mode=$ac_tag; continue;;
37467 esac
37468 case $ac_mode$ac_tag in
37469 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000037470 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037471 :[FH]-) ac_tag=-:-;;
37472 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
37473 esac
37474 ac_save_IFS=$IFS
37475 IFS=:
37476 set x $ac_tag
37477 IFS=$ac_save_IFS
37478 shift
37479 ac_file=$1
37480 shift
37481
37482 case $ac_mode in
37483 :L) ac_source=$1;;
37484 :[FH])
37485 ac_file_inputs=
37486 for ac_f
37487 do
37488 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000037489 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000037490 *) # Look for the file first in the build tree, then in the source tree
37491 # (if the path is not absolute). The absolute path cannot be DOS-style,
37492 # because $ac_f cannot contain `:'.
37493 test -f "$ac_f" ||
37494 case $ac_f in
37495 [\\/$]*) false;;
37496 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
37497 esac ||
cristy98dddb52010-11-04 00:30:15 +000037498 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037499 esac
37500 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000037501 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000037502 done
37503
37504 # Let's still pretend it is `configure' which instantiates (i.e., don't
37505 # use $as_me), people would be surprised to read:
37506 # /* config.h. Generated by config.status. */
37507 configure_input='Generated from '`
37508 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
37509 `' by configure.'
37510 if test x"$ac_file" != x-; then
37511 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000037512 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000037513$as_echo "$as_me: creating $ac_file" >&6;}
37514 fi
37515 # Neutralize special characters interpreted by sed in replacement strings.
37516 case $configure_input in #(
37517 *\&* | *\|* | *\\* )
37518 ac_sed_conf_input=`$as_echo "$configure_input" |
37519 sed 's/[\\\\&|]/\\\\&/g'`;; #(
37520 *) ac_sed_conf_input=$configure_input;;
37521 esac
37522
37523 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000037524 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000037525 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000037526 esac
37527 ;;
37528 esac
37529
37530 ac_dir=`$as_dirname -- "$ac_file" ||
37531$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37532 X"$ac_file" : 'X\(//\)[^/]' \| \
37533 X"$ac_file" : 'X\(//\)$' \| \
37534 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
37535$as_echo X"$ac_file" |
37536 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37537 s//\1/
37538 q
37539 }
37540 /^X\(\/\/\)[^/].*/{
37541 s//\1/
37542 q
37543 }
37544 /^X\(\/\/\)$/{
37545 s//\1/
37546 q
37547 }
37548 /^X\(\/\).*/{
37549 s//\1/
37550 q
37551 }
37552 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000037553 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000037554 ac_builddir=.
37555
37556case "$ac_dir" in
37557.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
37558*)
37559 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
37560 # A ".." for each directory in $ac_dir_suffix.
37561 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
37562 case $ac_top_builddir_sub in
37563 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
37564 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
37565 esac ;;
37566esac
37567ac_abs_top_builddir=$ac_pwd
37568ac_abs_builddir=$ac_pwd$ac_dir_suffix
37569# for backward compatibility:
37570ac_top_builddir=$ac_top_build_prefix
37571
37572case $srcdir in
37573 .) # We are building in place.
37574 ac_srcdir=.
37575 ac_top_srcdir=$ac_top_builddir_sub
37576 ac_abs_top_srcdir=$ac_pwd ;;
37577 [\\/]* | ?:[\\/]* ) # Absolute name.
37578 ac_srcdir=$srcdir$ac_dir_suffix;
37579 ac_top_srcdir=$srcdir
37580 ac_abs_top_srcdir=$srcdir ;;
37581 *) # Relative name.
37582 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
37583 ac_top_srcdir=$ac_top_build_prefix$srcdir
37584 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
37585esac
37586ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
37587
37588
37589 case $ac_mode in
37590 :F)
37591 #
37592 # CONFIG_FILE
37593 #
37594
37595 case $INSTALL in
37596 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
37597 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
37598 esac
cristy73bd4a52010-10-05 11:24:23 +000037599 ac_MKDIR_P=$MKDIR_P
37600 case $MKDIR_P in
37601 [\\/$]* | ?:[\\/]* ) ;;
37602 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
37603 esac
cristy3ed852e2009-09-05 21:47:34 +000037604_ACEOF
37605
37606cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37607# If the template does not know about datarootdir, expand it.
37608# FIXME: This hack should be removed a few years after 2.60.
37609ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000037610ac_sed_dataroot='
37611/datarootdir/ {
37612 p
37613 q
37614}
37615/@datadir@/p
37616/@docdir@/p
37617/@infodir@/p
37618/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000037619/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000037620case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
37621*datarootdir*) ac_datarootdir_seen=yes;;
37622*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000037623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000037624$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
37625_ACEOF
37626cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37627 ac_datarootdir_hack='
37628 s&@datadir@&$datadir&g
37629 s&@docdir@&$docdir&g
37630 s&@infodir@&$infodir&g
37631 s&@localedir@&$localedir&g
37632 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000037633 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000037634esac
37635_ACEOF
37636
37637# Neutralize VPATH when `$srcdir' = `.'.
37638# Shell code in configure.ac might set extrasub.
37639# FIXME: do we really want to maintain this feature?
37640cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37641ac_sed_extra="$ac_vpsub
37642$extrasub
37643_ACEOF
37644cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37645:t
37646/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
37647s|@configure_input@|$ac_sed_conf_input|;t t
37648s&@top_builddir@&$ac_top_builddir_sub&;t t
37649s&@top_build_prefix@&$ac_top_build_prefix&;t t
37650s&@srcdir@&$ac_srcdir&;t t
37651s&@abs_srcdir@&$ac_abs_srcdir&;t t
37652s&@top_srcdir@&$ac_top_srcdir&;t t
37653s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
37654s&@builddir@&$ac_builddir&;t t
37655s&@abs_builddir@&$ac_abs_builddir&;t t
37656s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
37657s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000037658s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000037659$ac_datarootdir_hack
37660"
cristyda16f162011-02-19 23:52:17 +000037661eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
37662 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037663
37664test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000037665 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
37666 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
37667 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000037668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037669which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000037670$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037671which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000037672
cristyda16f162011-02-19 23:52:17 +000037673 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000037674 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000037675 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
37676 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000037677 esac \
cristy98dddb52010-11-04 00:30:15 +000037678 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037679 ;;
37680 :H)
37681 #
37682 # CONFIG_HEADER
37683 #
37684 if test x"$ac_file" != x-; then
37685 {
37686 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037687 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
37688 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000037689 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037690 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000037691 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000037692$as_echo "$as_me: $ac_file is unchanged" >&6;}
37693 else
37694 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000037695 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000037696 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037697 fi
37698 else
37699 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037700 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000037701 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037702 fi
cristy73bd4a52010-10-05 11:24:23 +000037703# Compute "$ac_file"'s index in $config_headers.
37704_am_arg="$ac_file"
37705_am_stamp_count=1
37706for _am_header in $config_headers :; do
37707 case $_am_header in
37708 $_am_arg | $_am_arg:* )
37709 break ;;
37710 * )
37711 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
37712 esac
37713done
37714echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
37715$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37716 X"$_am_arg" : 'X\(//\)[^/]' \| \
37717 X"$_am_arg" : 'X\(//\)$' \| \
37718 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
37719$as_echo X"$_am_arg" |
37720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37721 s//\1/
37722 q
37723 }
37724 /^X\(\/\/\)[^/].*/{
37725 s//\1/
37726 q
37727 }
37728 /^X\(\/\/\)$/{
37729 s//\1/
37730 q
37731 }
37732 /^X\(\/\).*/{
37733 s//\1/
37734 q
37735 }
37736 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000037737 ;;
37738
cristy8b350f62009-11-15 23:12:43 +000037739 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000037740$as_echo "$as_me: executing $ac_file commands" >&6;}
37741 ;;
37742 esac
37743
37744
37745 case $ac_file$ac_mode in
cristy01ff9f32012-12-01 18:15:29 +000037746 "MagickCore/magick-baseconfig.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-baseconfig.h`
cristy73bd4a52010-10-05 11:24:23 +000037747ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
37748ac_prefix_conf_PKG=`echo MagickCore`
37749ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
37750ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
37751ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
37752if test ".$ac_prefix_conf_INP" = "."; then
37753 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
37754 case "$ac_file" in
37755 *.h) ac_prefix_conf_INP=$ac_file ;;
37756 *)
37757 esac
37758 test ".$ac_prefix_conf_INP" != "." && break
37759 done
37760fi
37761if test ".$ac_prefix_conf_INP" = "."; then
37762 case "$ac_prefix_conf_OUT" in
37763 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
37764 ;;
37765 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
37766 ;;
37767 *) ac_prefix_conf_INP=config.h
37768 ;;
37769 esac
37770fi
37771if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000037772 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000037773else
37774 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
37775 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
37776 fi fi
37777 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
37778$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
37779 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000037780 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
37781 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
37782 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
37783 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
37784 $as_echo "#endif/" >> conftest.prefix
37785 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
37786 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
37787 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000037788 # now executing _script on _DEF input to create _OUT output file
37789 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
37790 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
37791 echo ' ' >>$tmp/pconfig.h
37792 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
37793
37794 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
37795 echo ' ' >>$tmp/pconfig.h
37796 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
37797 echo "#endif" >>$tmp/pconfig.h
37798 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
37799 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
37800$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
37801 else
37802 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
37803$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37804 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
37805 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
37806 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
37807$as_echo X"$ac_prefix_conf_OUT" |
37808 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37809 s//\1/
37810 q
37811 }
37812 /^X\(\/\/\)[^/].*/{
37813 s//\1/
37814 q
37815 }
37816 /^X\(\/\/\)$/{
37817 s//\1/
37818 q
37819 }
37820 /^X\(\/\).*/{
37821 s//\1/
37822 q
37823 }
37824 s/.*/./; q'`
37825 as_dir="$ac_dir"; as_fn_mkdir_p
37826 rm -f "$ac_prefix_conf_OUT"
37827 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
37828 fi
37829 cp conftest.prefix _configs.sed
37830 else
cristy98dddb52010-11-04 00:30:15 +000037831 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 +000037832 fi
37833 rm -f conftest.*
37834fi
37835 ;;
37836 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
cristy58d34aa2013-01-24 15:11:54 +000037837 # Older Autoconf quotes --file arguments for eval, but not when files
cristy73bd4a52010-10-05 11:24:23 +000037838 # are listed without --file. Let's play safe and only enable the eval
37839 # if we detect the quoting.
37840 case $CONFIG_FILES in
37841 *\'*) eval set x "$CONFIG_FILES" ;;
37842 *) set x $CONFIG_FILES ;;
37843 esac
37844 shift
37845 for mf
37846 do
37847 # Strip MF so we end up with the name of the file.
37848 mf=`echo "$mf" | sed -e 's/:.*$//'`
37849 # Check whether this is an Automake generated Makefile or not.
cristyc0890a62012-07-19 00:18:20 +000037850 # We used to match only the files named 'Makefile.in', but
cristy73bd4a52010-10-05 11:24:23 +000037851 # some people rename them; so instead we look at the file content.
37852 # Grep'ing the first line is not enough: some people post-process
37853 # each Makefile.in and add a new line on top of each file to say so.
37854 # Grep'ing the whole file is not good either: AIX grep has a line
37855 # limit of 2048, but all sed's we know have understand at least 4000.
37856 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
37857 dirpart=`$as_dirname -- "$mf" ||
37858$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37859 X"$mf" : 'X\(//\)[^/]' \| \
37860 X"$mf" : 'X\(//\)$' \| \
37861 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
37862$as_echo X"$mf" |
37863 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37864 s//\1/
37865 q
37866 }
37867 /^X\(\/\/\)[^/].*/{
37868 s//\1/
37869 q
37870 }
37871 /^X\(\/\/\)$/{
37872 s//\1/
37873 q
37874 }
37875 /^X\(\/\).*/{
37876 s//\1/
37877 q
37878 }
37879 s/.*/./; q'`
37880 else
37881 continue
37882 fi
37883 # Extract the definition of DEPDIR, am__include, and am__quote
cristyc0890a62012-07-19 00:18:20 +000037884 # from the Makefile without running 'make'.
cristy73bd4a52010-10-05 11:24:23 +000037885 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
37886 test -z "$DEPDIR" && continue
37887 am__include=`sed -n 's/^am__include = //p' < "$mf"`
cristybced8142013-05-31 01:23:57 +000037888 test -z "$am__include" && continue
cristy73bd4a52010-10-05 11:24:23 +000037889 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
cristy73bd4a52010-10-05 11:24:23 +000037890 # Find all dependency output files, they are included files with
37891 # $(DEPDIR) in their names. We invoke sed twice because it is the
37892 # simplest approach to changing $(DEPDIR) to its actual value in the
37893 # expansion.
37894 for file in `sed -n "
37895 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
cristyc0890a62012-07-19 00:18:20 +000037896 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
cristy73bd4a52010-10-05 11:24:23 +000037897 # Make sure the directory exists.
37898 test -f "$dirpart/$file" && continue
37899 fdir=`$as_dirname -- "$file" ||
37900$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37901 X"$file" : 'X\(//\)[^/]' \| \
37902 X"$file" : 'X\(//\)$' \| \
37903 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
37904$as_echo X"$file" |
37905 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37906 s//\1/
37907 q
37908 }
37909 /^X\(\/\/\)[^/].*/{
37910 s//\1/
37911 q
37912 }
37913 /^X\(\/\/\)$/{
37914 s//\1/
37915 q
37916 }
37917 /^X\(\/\).*/{
37918 s//\1/
37919 q
37920 }
37921 s/.*/./; q'`
37922 as_dir=$dirpart/$fdir; as_fn_mkdir_p
37923 # echo "creating $dirpart/$file"
37924 echo '# dummy' > "$dirpart/$file"
37925 done
37926 done
37927}
37928 ;;
37929 "libtool":C)
37930
37931 # See if we are running on zsh, and set the options which allow our
37932 # commands through without removal of \ escapes.
37933 if test -n "${ZSH_VERSION+set}" ; then
37934 setopt NO_GLOB_SUBST
37935 fi
37936
37937 cfgfile="${ofile}T"
37938 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
37939 $RM "$cfgfile"
37940
37941 cat <<_LT_EOF >> "$cfgfile"
37942#! $SHELL
37943
37944# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
37945# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
37946# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
37947# NOTE: Changes made to this file will be lost: look at ltmain.sh.
37948#
37949# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy99bd5232011-12-07 14:38:20 +000037950# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
37951# Foundation, Inc.
cristy73bd4a52010-10-05 11:24:23 +000037952# Written by Gordon Matzigkeit, 1996
37953#
37954# This file is part of GNU Libtool.
37955#
37956# GNU Libtool is free software; you can redistribute it and/or
37957# modify it under the terms of the GNU General Public License as
37958# published by the Free Software Foundation; either version 2 of
37959# the License, or (at your option) any later version.
37960#
37961# As a special exception to the GNU General Public License,
37962# if you distribute this file as part of a program or library that
37963# is built using GNU Libtool, you may include this file under the
37964# same distribution terms that you use for the rest of that program.
37965#
37966# GNU Libtool is distributed in the hope that it will be useful,
37967# but WITHOUT ANY WARRANTY; without even the implied warranty of
37968# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
37969# GNU General Public License for more details.
37970#
37971# You should have received a copy of the GNU General Public License
37972# along with GNU Libtool; see the file COPYING. If not, a copy
37973# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
37974# obtained by writing to the Free Software Foundation, Inc.,
37975# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
37976
37977
37978# The names of the tagged configurations supported by this script.
37979available_tags="CXX "
37980
37981# ### BEGIN LIBTOOL CONFIG
37982
37983# A sed program that does not truncate output.
37984SED=$lt_SED
37985
37986# Sed that helps us avoid accidentally triggering echo(1) options like -n.
37987Xsed="\$SED -e 1s/^X//"
37988
37989# A grep program that handles long lines.
37990GREP=$lt_GREP
37991
37992# An ERE matcher.
37993EGREP=$lt_EGREP
37994
37995# A literal string matcher.
37996FGREP=$lt_FGREP
37997
cristy0c60a692010-11-04 01:09:47 +000037998# Shell to use when invoking shell scripts.
37999SHELL=$lt_SHELL
38000
38001# An echo program that protects backslashes.
38002ECHO=$lt_ECHO
38003
cristy73bd4a52010-10-05 11:24:23 +000038004# Which release of libtool.m4 was used?
38005macro_version=$macro_version
38006macro_revision=$macro_revision
38007
38008# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000038009AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000038010
38011# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000038012DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000038013
38014# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000038015OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000038016
38017# Whether or not to build shared libraries.
38018build_libtool_libs=$enable_shared
38019
38020# Whether or not to build static libraries.
38021build_old_libs=$enable_static
38022
38023# What type of objects to build.
38024pic_mode=$pic_mode
38025
38026# Whether or not to optimize for fast installation.
38027fast_install=$enable_fast_install
38028
cristy99bd5232011-12-07 14:38:20 +000038029# The PATH separator for the build system.
38030PATH_SEPARATOR=$lt_PATH_SEPARATOR
38031
cristy73bd4a52010-10-05 11:24:23 +000038032# The host system.
38033host_alias=$host_alias
38034host=$host
38035host_os=$host_os
38036
38037# The build system.
38038build_alias=$build_alias
38039build=$build
38040build_os=$build_os
38041
38042# A BSD- or MS-compatible name lister.
38043NM=$lt_NM
38044
38045# Whether we need soft or hard links.
38046LN_S=$lt_LN_S
38047
38048# What is the maximum length of a command?
38049max_cmd_len=$max_cmd_len
38050
38051# Object file suffix (normally "o").
38052objext=$ac_objext
38053
38054# Executable file suffix (normally "").
38055exeext=$exeext
38056
38057# whether the shell understands "unset".
38058lt_unset=$lt_unset
38059
38060# turn spaces into newlines.
38061SP2NL=$lt_lt_SP2NL
38062
38063# turn newlines into spaces.
38064NL2SP=$lt_lt_NL2SP
38065
cristyda16f162011-02-19 23:52:17 +000038066# convert \$build file names to \$host format.
38067to_host_file_cmd=$lt_cv_to_host_file_cmd
38068
38069# convert \$build files to toolchain format.
38070to_tool_file_cmd=$lt_cv_to_tool_file_cmd
38071
cristy73bd4a52010-10-05 11:24:23 +000038072# Method to check whether dependent libraries are shared objects.
38073deplibs_check_method=$lt_deplibs_check_method
38074
cristyda16f162011-02-19 23:52:17 +000038075# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000038076file_magic_cmd=$lt_file_magic_cmd
38077
cristyda16f162011-02-19 23:52:17 +000038078# How to find potential files when deplibs_check_method = "file_magic".
38079file_magic_glob=$lt_file_magic_glob
38080
38081# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
38082want_nocaseglob=$lt_want_nocaseglob
38083
38084# Command to associate shared and link libraries.
38085sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
38086
cristy73bd4a52010-10-05 11:24:23 +000038087# The archiver.
38088AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000038089
38090# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000038091AR_FLAGS=$lt_AR_FLAGS
38092
cristyda16f162011-02-19 23:52:17 +000038093# How to feed a file listing to the archiver.
38094archiver_list_spec=$lt_archiver_list_spec
38095
cristy73bd4a52010-10-05 11:24:23 +000038096# A symbol stripping program.
38097STRIP=$lt_STRIP
38098
38099# Commands used to install an old-style archive.
38100RANLIB=$lt_RANLIB
38101old_postinstall_cmds=$lt_old_postinstall_cmds
38102old_postuninstall_cmds=$lt_old_postuninstall_cmds
38103
cristy0c60a692010-11-04 01:09:47 +000038104# Whether to use a lock for old archive extraction.
38105lock_old_archive_extraction=$lock_old_archive_extraction
38106
cristy73bd4a52010-10-05 11:24:23 +000038107# A C compiler.
38108LTCC=$lt_CC
38109
38110# LTCC compiler flags.
38111LTCFLAGS=$lt_CFLAGS
38112
38113# Take the output of nm and produce a listing of raw symbols and C names.
38114global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
38115
38116# Transform the output of nm in a proper C declaration.
38117global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
38118
38119# Transform the output of nm in a C name address pair.
38120global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
38121
38122# Transform the output of nm in a C name address pair when lib prefix is needed.
38123global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
38124
cristyda16f162011-02-19 23:52:17 +000038125# Specify filename containing input files for \$NM.
38126nm_file_list_spec=$lt_nm_file_list_spec
38127
38128# The root where to search for dependent libraries,and in which our libraries should be installed.
38129lt_sysroot=$lt_sysroot
38130
cristy73bd4a52010-10-05 11:24:23 +000038131# The name of the directory that contains temporary libtool files.
38132objdir=$objdir
38133
cristy73bd4a52010-10-05 11:24:23 +000038134# Used to examine libraries when file_magic_cmd begins with "file".
38135MAGIC_CMD=$MAGIC_CMD
38136
38137# Must we lock files when doing compilation?
38138need_locks=$lt_need_locks
38139
cristyda16f162011-02-19 23:52:17 +000038140# Manifest tool.
38141MANIFEST_TOOL=$lt_MANIFEST_TOOL
38142
cristy73bd4a52010-10-05 11:24:23 +000038143# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
38144DSYMUTIL=$lt_DSYMUTIL
38145
38146# Tool to change global to local symbols on Mac OS X.
38147NMEDIT=$lt_NMEDIT
38148
38149# Tool to manipulate fat objects and archives on Mac OS X.
38150LIPO=$lt_LIPO
38151
38152# ldd/readelf like tool for Mach-O binaries on Mac OS X.
38153OTOOL=$lt_OTOOL
38154
38155# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
38156OTOOL64=$lt_OTOOL64
38157
38158# Old archive suffix (normally "a").
38159libext=$libext
38160
38161# Shared library suffix (normally ".so").
38162shrext_cmds=$lt_shrext_cmds
38163
38164# The commands to extract the exported symbol list from a shared archive.
38165extract_expsyms_cmds=$lt_extract_expsyms_cmds
38166
38167# Variables whose values should be saved in libtool wrapper scripts and
38168# restored at link time.
38169variables_saved_for_relink=$lt_variables_saved_for_relink
38170
38171# Do we need the "lib" prefix for modules?
38172need_lib_prefix=$need_lib_prefix
38173
38174# Do we need a version for libraries?
38175need_version=$need_version
38176
38177# Library versioning type.
38178version_type=$version_type
38179
38180# Shared library runtime path variable.
38181runpath_var=$runpath_var
38182
38183# Shared library path variable.
38184shlibpath_var=$shlibpath_var
38185
38186# Is shlibpath searched before the hard-coded library search path?
38187shlibpath_overrides_runpath=$shlibpath_overrides_runpath
38188
38189# Format of library name prefix.
38190libname_spec=$lt_libname_spec
38191
38192# List of archive names. First name is the real one, the rest are links.
38193# The last name is the one that the linker finds with -lNAME
38194library_names_spec=$lt_library_names_spec
38195
38196# The coded name of the library, if different from the real name.
38197soname_spec=$lt_soname_spec
38198
cristy0c60a692010-11-04 01:09:47 +000038199# Permission mode override for installation of shared libraries.
38200install_override_mode=$lt_install_override_mode
38201
cristy73bd4a52010-10-05 11:24:23 +000038202# Command to use after installation of a shared archive.
38203postinstall_cmds=$lt_postinstall_cmds
38204
38205# Command to use after uninstallation of a shared archive.
38206postuninstall_cmds=$lt_postuninstall_cmds
38207
38208# Commands used to finish a libtool library installation in a directory.
38209finish_cmds=$lt_finish_cmds
38210
38211# As "finish_cmds", except a single script fragment to be evaled but
38212# not shown.
38213finish_eval=$lt_finish_eval
38214
38215# Whether we should hardcode library paths into libraries.
38216hardcode_into_libs=$hardcode_into_libs
38217
38218# Compile-time system search path for libraries.
38219sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
38220
38221# Run-time system search path for libraries.
38222sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
38223
38224# Whether dlopen is supported.
38225dlopen_support=$enable_dlopen
38226
38227# Whether dlopen of programs is supported.
38228dlopen_self=$enable_dlopen_self
38229
38230# Whether dlopen of statically linked programs is supported.
38231dlopen_self_static=$enable_dlopen_self_static
38232
38233# Commands to strip libraries.
38234old_striplib=$lt_old_striplib
38235striplib=$lt_striplib
38236
38237
38238# The linker used to build libraries.
38239LD=$lt_LD
38240
cristy0c60a692010-11-04 01:09:47 +000038241# How to create reloadable object files.
38242reload_flag=$lt_reload_flag
38243reload_cmds=$lt_reload_cmds
38244
cristy73bd4a52010-10-05 11:24:23 +000038245# Commands used to build an old-style archive.
38246old_archive_cmds=$lt_old_archive_cmds
38247
38248# A language specific compiler.
38249CC=$lt_compiler
38250
38251# Is the compiler the GNU compiler?
38252with_gcc=$GCC
38253
38254# Compiler flag to turn off builtin functions.
38255no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
38256
cristy73bd4a52010-10-05 11:24:23 +000038257# Additional compiler flags for building library objects.
38258pic_flag=$lt_lt_prog_compiler_pic
38259
cristyda16f162011-02-19 23:52:17 +000038260# How to pass a linker flag through the compiler.
38261wl=$lt_lt_prog_compiler_wl
38262
cristy73bd4a52010-10-05 11:24:23 +000038263# Compiler flag to prevent dynamic linking.
38264link_static_flag=$lt_lt_prog_compiler_static
38265
38266# Does compiler simultaneously support -c and -o options?
38267compiler_c_o=$lt_lt_cv_prog_compiler_c_o
38268
38269# Whether or not to add -lc for building shared libraries.
38270build_libtool_need_lc=$archive_cmds_need_lc
38271
38272# Whether or not to disallow shared libs when runtime libs are static.
38273allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
38274
38275# Compiler flag to allow reflexive dlopens.
38276export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
38277
38278# Compiler flag to generate shared objects directly from archives.
38279whole_archive_flag_spec=$lt_whole_archive_flag_spec
38280
38281# Whether the compiler copes with passing no objects directly.
38282compiler_needs_object=$lt_compiler_needs_object
38283
38284# Create an old-style archive from a shared archive.
38285old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
38286
38287# Create a temporary old-style archive to link instead of a shared archive.
38288old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
38289
38290# Commands used to build a shared archive.
38291archive_cmds=$lt_archive_cmds
38292archive_expsym_cmds=$lt_archive_expsym_cmds
38293
38294# Commands used to build a loadable module if different from building
38295# a shared archive.
38296module_cmds=$lt_module_cmds
38297module_expsym_cmds=$lt_module_expsym_cmds
38298
38299# Whether we are building with GNU ld or not.
38300with_gnu_ld=$lt_with_gnu_ld
38301
38302# Flag that allows shared libraries with undefined symbols to be built.
38303allow_undefined_flag=$lt_allow_undefined_flag
38304
38305# Flag that enforces no undefined symbols.
38306no_undefined_flag=$lt_no_undefined_flag
38307
38308# Flag to hardcode \$libdir into a binary during linking.
38309# This must work even if \$libdir does not exist
38310hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
38311
cristy73bd4a52010-10-05 11:24:23 +000038312# Whether we need a single "-rpath" flag with a separated argument.
38313hardcode_libdir_separator=$lt_hardcode_libdir_separator
38314
38315# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38316# DIR into the resulting binary.
38317hardcode_direct=$hardcode_direct
38318
38319# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38320# DIR into the resulting binary and the resulting library dependency is
38321# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38322# library is relocated.
38323hardcode_direct_absolute=$hardcode_direct_absolute
38324
38325# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38326# into the resulting binary.
38327hardcode_minus_L=$hardcode_minus_L
38328
38329# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38330# into the resulting binary.
38331hardcode_shlibpath_var=$hardcode_shlibpath_var
38332
38333# Set to "yes" if building a shared library automatically hardcodes DIR
38334# into the library and all subsequent libraries and executables linked
38335# against it.
38336hardcode_automatic=$hardcode_automatic
38337
38338# Set to yes if linker adds runtime paths of dependent libraries
38339# to runtime path list.
38340inherit_rpath=$inherit_rpath
38341
38342# Whether libtool must link a program against all its dependency libraries.
38343link_all_deplibs=$link_all_deplibs
38344
cristy73bd4a52010-10-05 11:24:23 +000038345# Set to "yes" if exported symbols are required.
38346always_export_symbols=$always_export_symbols
38347
38348# The commands to list exported symbols.
38349export_symbols_cmds=$lt_export_symbols_cmds
38350
38351# Symbols that should not be listed in the preloaded symbols.
38352exclude_expsyms=$lt_exclude_expsyms
38353
38354# Symbols that must always be exported.
38355include_expsyms=$lt_include_expsyms
38356
38357# Commands necessary for linking programs (against libraries) with templates.
38358prelink_cmds=$lt_prelink_cmds
38359
cristyda16f162011-02-19 23:52:17 +000038360# Commands necessary for finishing linking programs.
38361postlink_cmds=$lt_postlink_cmds
38362
cristy73bd4a52010-10-05 11:24:23 +000038363# Specify filename containing input files.
38364file_list_spec=$lt_file_list_spec
38365
38366# How to hardcode a shared library path into an executable.
38367hardcode_action=$hardcode_action
38368
38369# The directories searched by this compiler when creating a shared library.
38370compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
38371
38372# Dependencies to place before and after the objects being linked to
38373# create a shared library.
38374predep_objects=$lt_predep_objects
38375postdep_objects=$lt_postdep_objects
38376predeps=$lt_predeps
38377postdeps=$lt_postdeps
38378
38379# The library search path used internally by the compiler when linking
38380# a shared library.
38381compiler_lib_search_path=$lt_compiler_lib_search_path
38382
38383# ### END LIBTOOL CONFIG
38384
38385_LT_EOF
38386
38387 case $host_os in
38388 aix3*)
38389 cat <<\_LT_EOF >> "$cfgfile"
38390# AIX sometimes has problems with the GCC collect2 program. For some
38391# reason, if we set the COLLECT_NAMES environment variable, the problems
38392# vanish in a puff of smoke.
38393if test "X${COLLECT_NAMES+set}" != Xset; then
38394 COLLECT_NAMES=
38395 export COLLECT_NAMES
38396fi
38397_LT_EOF
38398 ;;
38399 esac
38400
38401
38402ltmain="$ac_aux_dir/ltmain.sh"
38403
38404
38405 # We use sed instead of cat because bash on DJGPP gets confused if
38406 # if finds mixed CR/LF and LF-only lines. Since sed operates in
38407 # text mode, it properly converts lines to CR/LF. This bash problem
38408 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000038409 sed '$q' "$ltmain" >> "$cfgfile" \
38410 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000038411
cristyda16f162011-02-19 23:52:17 +000038412 if test x"$xsi_shell" = xyes; then
38413 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
38414func_dirname ()\
38415{\
38416\ case ${1} in\
38417\ */*) func_dirname_result="${1%/*}${2}" ;;\
38418\ * ) func_dirname_result="${3}" ;;\
38419\ esac\
38420} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
38421 && mv -f "$cfgfile.tmp" "$cfgfile" \
38422 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38423test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038424
38425
cristyda16f162011-02-19 23:52:17 +000038426 sed -e '/^func_basename ()$/,/^} # func_basename /c\
38427func_basename ()\
38428{\
38429\ func_basename_result="${1##*/}"\
38430} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
38431 && mv -f "$cfgfile.tmp" "$cfgfile" \
38432 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38433test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038434
38435
cristyda16f162011-02-19 23:52:17 +000038436 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
38437func_dirname_and_basename ()\
38438{\
38439\ case ${1} in\
38440\ */*) func_dirname_result="${1%/*}${2}" ;;\
38441\ * ) func_dirname_result="${3}" ;;\
38442\ esac\
38443\ func_basename_result="${1##*/}"\
38444} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
38445 && mv -f "$cfgfile.tmp" "$cfgfile" \
38446 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38447test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038448
cristyda16f162011-02-19 23:52:17 +000038449
38450 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
38451func_stripname ()\
38452{\
38453\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
38454\ # positional parameters, so assign one to ordinary parameter first.\
38455\ func_stripname_result=${3}\
38456\ func_stripname_result=${func_stripname_result#"${1}"}\
38457\ func_stripname_result=${func_stripname_result%"${2}"}\
38458} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
38459 && mv -f "$cfgfile.tmp" "$cfgfile" \
38460 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38461test 0 -eq $? || _lt_function_replace_fail=:
38462
38463
38464 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
38465func_split_long_opt ()\
38466{\
38467\ func_split_long_opt_name=${1%%=*}\
38468\ func_split_long_opt_arg=${1#*=}\
38469} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
38470 && mv -f "$cfgfile.tmp" "$cfgfile" \
38471 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38472test 0 -eq $? || _lt_function_replace_fail=:
38473
38474
38475 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
38476func_split_short_opt ()\
38477{\
38478\ func_split_short_opt_arg=${1#??}\
38479\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
38480} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
38481 && mv -f "$cfgfile.tmp" "$cfgfile" \
38482 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38483test 0 -eq $? || _lt_function_replace_fail=:
38484
38485
38486 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
38487func_lo2o ()\
38488{\
38489\ case ${1} in\
38490\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
38491\ *) func_lo2o_result=${1} ;;\
38492\ esac\
38493} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
38494 && mv -f "$cfgfile.tmp" "$cfgfile" \
38495 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38496test 0 -eq $? || _lt_function_replace_fail=:
38497
38498
38499 sed -e '/^func_xform ()$/,/^} # func_xform /c\
38500func_xform ()\
38501{\
38502 func_xform_result=${1%.*}.lo\
38503} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
38504 && mv -f "$cfgfile.tmp" "$cfgfile" \
38505 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38506test 0 -eq $? || _lt_function_replace_fail=:
38507
38508
38509 sed -e '/^func_arith ()$/,/^} # func_arith /c\
38510func_arith ()\
38511{\
38512 func_arith_result=$(( $* ))\
38513} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
38514 && mv -f "$cfgfile.tmp" "$cfgfile" \
38515 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38516test 0 -eq $? || _lt_function_replace_fail=:
38517
38518
38519 sed -e '/^func_len ()$/,/^} # func_len /c\
38520func_len ()\
38521{\
38522 func_len_result=${#1}\
38523} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
38524 && mv -f "$cfgfile.tmp" "$cfgfile" \
38525 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38526test 0 -eq $? || _lt_function_replace_fail=:
38527
38528fi
38529
38530if test x"$lt_shell_append" = xyes; then
38531 sed -e '/^func_append ()$/,/^} # func_append /c\
38532func_append ()\
38533{\
38534 eval "${1}+=\\${2}"\
38535} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
38536 && mv -f "$cfgfile.tmp" "$cfgfile" \
38537 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38538test 0 -eq $? || _lt_function_replace_fail=:
38539
38540
38541 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
38542func_append_quoted ()\
38543{\
38544\ func_quote_for_eval "${2}"\
38545\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
38546} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
38547 && mv -f "$cfgfile.tmp" "$cfgfile" \
38548 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38549test 0 -eq $? || _lt_function_replace_fail=:
38550
38551
38552 # Save a `func_append' function call where possible by direct use of '+='
38553 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
38554 && mv -f "$cfgfile.tmp" "$cfgfile" \
38555 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38556 test 0 -eq $? || _lt_function_replace_fail=:
38557else
38558 # Save a `func_append' function call even when '+=' is not available
38559 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
38560 && mv -f "$cfgfile.tmp" "$cfgfile" \
38561 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38562 test 0 -eq $? || _lt_function_replace_fail=:
38563fi
38564
38565if test x"$_lt_function_replace_fail" = x":"; then
38566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
38567$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
38568fi
38569
38570
38571 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000038572 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
38573 chmod +x "$ofile"
38574
38575
38576 cat <<_LT_EOF >> "$ofile"
38577
38578# ### BEGIN LIBTOOL TAG CONFIG: CXX
38579
38580# The linker used to build libraries.
38581LD=$lt_LD_CXX
38582
cristy0c60a692010-11-04 01:09:47 +000038583# How to create reloadable object files.
38584reload_flag=$lt_reload_flag_CXX
38585reload_cmds=$lt_reload_cmds_CXX
38586
cristy73bd4a52010-10-05 11:24:23 +000038587# Commands used to build an old-style archive.
38588old_archive_cmds=$lt_old_archive_cmds_CXX
38589
38590# A language specific compiler.
38591CC=$lt_compiler_CXX
38592
38593# Is the compiler the GNU compiler?
38594with_gcc=$GCC_CXX
38595
38596# Compiler flag to turn off builtin functions.
38597no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
38598
cristy73bd4a52010-10-05 11:24:23 +000038599# Additional compiler flags for building library objects.
38600pic_flag=$lt_lt_prog_compiler_pic_CXX
38601
cristyda16f162011-02-19 23:52:17 +000038602# How to pass a linker flag through the compiler.
38603wl=$lt_lt_prog_compiler_wl_CXX
38604
cristy73bd4a52010-10-05 11:24:23 +000038605# Compiler flag to prevent dynamic linking.
38606link_static_flag=$lt_lt_prog_compiler_static_CXX
38607
38608# Does compiler simultaneously support -c and -o options?
38609compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
38610
38611# Whether or not to add -lc for building shared libraries.
38612build_libtool_need_lc=$archive_cmds_need_lc_CXX
38613
38614# Whether or not to disallow shared libs when runtime libs are static.
38615allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
38616
38617# Compiler flag to allow reflexive dlopens.
38618export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
38619
38620# Compiler flag to generate shared objects directly from archives.
38621whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
38622
38623# Whether the compiler copes with passing no objects directly.
38624compiler_needs_object=$lt_compiler_needs_object_CXX
38625
38626# Create an old-style archive from a shared archive.
38627old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
38628
38629# Create a temporary old-style archive to link instead of a shared archive.
38630old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
38631
38632# Commands used to build a shared archive.
38633archive_cmds=$lt_archive_cmds_CXX
38634archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
38635
38636# Commands used to build a loadable module if different from building
38637# a shared archive.
38638module_cmds=$lt_module_cmds_CXX
38639module_expsym_cmds=$lt_module_expsym_cmds_CXX
38640
38641# Whether we are building with GNU ld or not.
38642with_gnu_ld=$lt_with_gnu_ld_CXX
38643
38644# Flag that allows shared libraries with undefined symbols to be built.
38645allow_undefined_flag=$lt_allow_undefined_flag_CXX
38646
38647# Flag that enforces no undefined symbols.
38648no_undefined_flag=$lt_no_undefined_flag_CXX
38649
38650# Flag to hardcode \$libdir into a binary during linking.
38651# This must work even if \$libdir does not exist
38652hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
38653
cristy73bd4a52010-10-05 11:24:23 +000038654# Whether we need a single "-rpath" flag with a separated argument.
38655hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
38656
38657# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38658# DIR into the resulting binary.
38659hardcode_direct=$hardcode_direct_CXX
38660
38661# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38662# DIR into the resulting binary and the resulting library dependency is
38663# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38664# library is relocated.
38665hardcode_direct_absolute=$hardcode_direct_absolute_CXX
38666
38667# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38668# into the resulting binary.
38669hardcode_minus_L=$hardcode_minus_L_CXX
38670
38671# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38672# into the resulting binary.
38673hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
38674
38675# Set to "yes" if building a shared library automatically hardcodes DIR
38676# into the library and all subsequent libraries and executables linked
38677# against it.
38678hardcode_automatic=$hardcode_automatic_CXX
38679
38680# Set to yes if linker adds runtime paths of dependent libraries
38681# to runtime path list.
38682inherit_rpath=$inherit_rpath_CXX
38683
38684# Whether libtool must link a program against all its dependency libraries.
38685link_all_deplibs=$link_all_deplibs_CXX
38686
cristy73bd4a52010-10-05 11:24:23 +000038687# Set to "yes" if exported symbols are required.
38688always_export_symbols=$always_export_symbols_CXX
38689
38690# The commands to list exported symbols.
38691export_symbols_cmds=$lt_export_symbols_cmds_CXX
38692
38693# Symbols that should not be listed in the preloaded symbols.
38694exclude_expsyms=$lt_exclude_expsyms_CXX
38695
38696# Symbols that must always be exported.
38697include_expsyms=$lt_include_expsyms_CXX
38698
38699# Commands necessary for linking programs (against libraries) with templates.
38700prelink_cmds=$lt_prelink_cmds_CXX
38701
cristyda16f162011-02-19 23:52:17 +000038702# Commands necessary for finishing linking programs.
38703postlink_cmds=$lt_postlink_cmds_CXX
38704
cristy73bd4a52010-10-05 11:24:23 +000038705# Specify filename containing input files.
38706file_list_spec=$lt_file_list_spec_CXX
38707
38708# How to hardcode a shared library path into an executable.
38709hardcode_action=$hardcode_action_CXX
38710
38711# The directories searched by this compiler when creating a shared library.
38712compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
38713
38714# Dependencies to place before and after the objects being linked to
38715# create a shared library.
38716predep_objects=$lt_predep_objects_CXX
38717postdep_objects=$lt_postdep_objects_CXX
38718predeps=$lt_predeps_CXX
38719postdeps=$lt_postdeps_CXX
38720
38721# The library search path used internally by the compiler when linking
38722# a shared library.
38723compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
38724
38725# ### END LIBTOOL TAG CONFIG: CXX
38726_LT_EOF
38727
38728 ;;
cristy2bd4b6e2012-07-22 15:29:11 +000038729 "magick.sh.in":C) chmod +x magick.sh ;;
cristy4c08aed2011-07-01 19:47:50 +000038730 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000038731 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000038732 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
38733 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
38734
38735 esac
38736done # for ac_tag
38737
38738
cristy8b350f62009-11-15 23:12:43 +000038739as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000038740_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000038741ac_clean_files=$ac_clean_files_save
38742
38743test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000038744 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038745
38746
38747# configure is writing to config.log, and then calls config.status.
38748# config.status does its own redirection, appending to config.log.
38749# Unfortunately, on DOS this fails, as config.log is still kept open
38750# by configure, so config.status won't be able to write to it; its
38751# output is simply discarded. So we exec the FD to /dev/null,
38752# effectively closing config.log, so it can be properly (re)opened and
38753# appended to by config.status. When coming back to configure, we
38754# need to make the FD available again.
38755if test "$no_create" != yes; then
38756 ac_cs_success=:
38757 ac_config_status_args=
38758 test "$silent" = yes &&
38759 ac_config_status_args="$ac_config_status_args --quiet"
38760 exec 5>/dev/null
38761 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
38762 exec 5>>config.log
38763 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
38764 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000038765 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000038766fi
38767if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000038768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000038769$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
38770fi
38771
38772
38773rm -f magick-version
38774
cristy430a7312010-01-21 20:44:04 +000038775result_dejavu_font_dir='none'
38776if test "${dejavu_font_dir}x" != 'x'; then
38777 result_dejavu_font_dir=$dejavu_font_dir
38778fi
38779
cristy3ed852e2009-09-05 21:47:34 +000038780result_ghostscript_font_dir='none'
38781if test "${ghostscript_font_dir}x" != 'x'; then
38782 result_ghostscript_font_dir=$ghostscript_font_dir
38783fi
38784
38785result_windows_font_dir='none'
38786if test "${windows_font_dir}x" != 'x'; then
38787 result_windows_font_dir=${windows_font_dir}
38788fi
38789
cristyad38abe2012-12-23 23:03:21 +000038790{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
cristy3ed852e2009-09-05 21:47:34 +000038791ImageMagick is configured as follows. Please verify that this configuration
38792matches your expectations.
38793
38794Host system type: $host
38795Build system type: $build
38796
38797 Option Value
38798-------------------------------------------------------------------------------
38799Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38800Static libraries --enable-static=$enable_static $libtool_build_static_libs
cristyc6722092012-10-14 00:19:31 +000038801Module support --with-modules=$build_modules $build_modules
cristy3ed852e2009-09-05 21:47:34 +000038802GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38803Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38804High Dynamic Range Imagery
38805 --enable-hdri=$enable_hdri $enable_hdri
38806
38807Delegate Configuration:
38808BZLIB --with-bzlib=$with_bzlib $have_bzlib
38809Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038810Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038811DJVU --with-djvu=$with_djvu $have_djvu
38812DPS --with-dps=$with_dps $have_dps
38813FFTW --with-fftw=$with_fftw $have_fftw
38814FlashPIX --with-fpx=$with_fpx $have_fpx
38815FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38816FreeType --with-freetype=$with_freetype $have_freetype
38817GhostPCL None $PCLDelegate ($PCLVersion)
38818GhostXPS None $XPSDelegate ($XPSVersion)
38819Ghostscript None $PSDelegate ($GSVersion)
38820Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38821Ghostscript lib --with-gslib=$with_gslib $have_gslib
38822Graphviz --with-gvc=$with_gvc $have_gvc
38823JBIG --with-jbig=$with_jbig $have_jbig
38824JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38825JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038826LCMS v1 --with-lcms=$with_lcms $have_lcms
38827LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038828LQR --with-lqr=$with_lqr $have_lqr
cristy5eef09f2012-10-16 12:08:28 +000038829LTDL --with-ltdl=$with_ltdl $have_ltdl
cristyfbb0ef02010-12-19 02:32:11 +000038830LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038831Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
cristy854c9cf2013-08-10 21:03:06 +000038832MUPDF --with-mupdf=$with_mupdf $have_mupdf
cristy3ed852e2009-09-05 21:47:34 +000038833OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038834PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038835PERL --with-perl=$with_perl $have_perl
38836PNG --with-png=$with_png $have_png
38837RSVG --with-rsvg=$with_rsvg $have_rsvg
38838TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038839WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038840Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy01ff9f32012-12-01 18:15:29 +000038841WMF --with-wmf=$with_wmf $have_wmf
cristy3ed852e2009-09-05 21:47:34 +000038842X11 --with-x=$with_x $have_x
38843XML --with-xml=$with_xml $have_xml
38844ZLIB --with-zlib=$with_zlib $have_zlib
38845
38846X11 Configuration:
38847 X_CFLAGS = $X_CFLAGS
38848 X_PRE_LIBS = $X_PRE_LIBS
38849 X_LIBS = $X_LIBS
38850 X_EXTRA_LIBS = $X_EXTRA_LIBS
38851
38852Options used to compile and link:
38853 PREFIX = $PREFIX_DIR
38854 EXEC-PREFIX = $EXEC_PREFIX_DIR
38855 VERSION = $PACKAGE_VERSION
38856 CC = $CC
38857 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038858 CPPFLAGS = $MAGICK_CPPFLAGS
38859 PCFLAGS = $MAGICK_PCFLAGS
38860 DEFS = $DEFS
38861 LDFLAGS = $LDFLAGS
38862 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38863 LIBS = $MAGICK_LIBS
38864 CXX = $CXX
38865 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038866 FEATURES = $MAGICK_FEATURES
cristy422d5502012-12-22 22:20:57 +000038867 DELEGATES = $MAGICK_DELEGATES
cristy3ed852e2009-09-05 21:47:34 +000038868" >&5
cristyad38abe2012-12-23 23:03:21 +000038869$as_echo "
cristy3ed852e2009-09-05 21:47:34 +000038870ImageMagick is configured as follows. Please verify that this configuration
38871matches your expectations.
38872
38873Host system type: $host
38874Build system type: $build
38875
38876 Option Value
38877-------------------------------------------------------------------------------
38878Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38879Static libraries --enable-static=$enable_static $libtool_build_static_libs
cristyc6722092012-10-14 00:19:31 +000038880Module support --with-modules=$build_modules $build_modules
cristy3ed852e2009-09-05 21:47:34 +000038881GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38882Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38883High Dynamic Range Imagery
38884 --enable-hdri=$enable_hdri $enable_hdri
38885
38886Delegate Configuration:
38887BZLIB --with-bzlib=$with_bzlib $have_bzlib
38888Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038889Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038890DJVU --with-djvu=$with_djvu $have_djvu
38891DPS --with-dps=$with_dps $have_dps
38892FFTW --with-fftw=$with_fftw $have_fftw
38893FlashPIX --with-fpx=$with_fpx $have_fpx
38894FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38895FreeType --with-freetype=$with_freetype $have_freetype
38896GhostPCL None $PCLDelegate ($PCLVersion)
38897GhostXPS None $XPSDelegate ($XPSVersion)
38898Ghostscript None $PSDelegate ($GSVersion)
38899Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38900Ghostscript lib --with-gslib=$with_gslib $have_gslib
38901Graphviz --with-gvc=$with_gvc $have_gvc
38902JBIG --with-jbig=$with_jbig $have_jbig
38903JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38904JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038905LCMS v1 --with-lcms=$with_lcms $have_lcms
38906LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038907LQR --with-lqr=$with_lqr $have_lqr
cristy5eef09f2012-10-16 12:08:28 +000038908LTDL --with-ltdl=$with_ltdl $have_ltdl
cristyfbb0ef02010-12-19 02:32:11 +000038909LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038910Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
cristy854c9cf2013-08-10 21:03:06 +000038911MUPDF --with-mupdf=$with_mupdf $have_mupdf
cristy3ed852e2009-09-05 21:47:34 +000038912OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038913PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038914PERL --with-perl=$with_perl $have_perl
38915PNG --with-png=$with_png $have_png
38916RSVG --with-rsvg=$with_rsvg $have_rsvg
38917TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038918WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038919Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy01ff9f32012-12-01 18:15:29 +000038920WMF --with-wmf=$with_wmf $have_wmf
cristy3ed852e2009-09-05 21:47:34 +000038921X11 --with-x=$with_x $have_x
38922XML --with-xml=$with_xml $have_xml
38923ZLIB --with-zlib=$with_zlib $have_zlib
38924
38925X11 Configuration:
38926 X_CFLAGS = $X_CFLAGS
38927 X_PRE_LIBS = $X_PRE_LIBS
38928 X_LIBS = $X_LIBS
38929 X_EXTRA_LIBS = $X_EXTRA_LIBS
38930
38931Options used to compile and link:
38932 PREFIX = $PREFIX_DIR
38933 EXEC-PREFIX = $EXEC_PREFIX_DIR
38934 VERSION = $PACKAGE_VERSION
38935 CC = $CC
38936 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038937 CPPFLAGS = $MAGICK_CPPFLAGS
38938 PCFLAGS = $MAGICK_PCFLAGS
38939 DEFS = $DEFS
38940 LDFLAGS = $LDFLAGS
38941 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38942 LIBS = $MAGICK_LIBS
38943 CXX = $CXX
38944 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038945 FEATURES = $MAGICK_FEATURES
cristy422d5502012-12-22 22:20:57 +000038946 DELEGATES = $MAGICK_DELEGATES
cristyad38abe2012-12-23 23:03:21 +000038947" >&6; }