blob: 8b084b541a8ad311534636b64d4dd10943de8406 [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
cristy99db3872014-01-01 15:11:34 +0000806LIBOPENJP2_DELEGATE_FALSE
807LIBOPENJP2_DELEGATE_TRUE
808LIBOPENJP2_LIBS
809LIBOPENJP2_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000810LCMS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000811LCMS_DELEGATE_FALSE
812LCMS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000813JPEG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000814JPEG_DELEGATE_FALSE
815JPEG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000816JBIG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000817JBIG_DELEGATE_FALSE
818JBIG_DELEGATE_TRUE
819GVC_DELEGATE_FALSE
820GVC_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000821GVC_LIBS
822GVC_CFLAGS
823GS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000824GS_DELEGATE_FALSE
825GS_DELEGATE_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000826FREETYPE_DELEGATE_FALSE
827FREETYPE_DELEGATE_TRUE
cristy03f187e2013-01-24 00:22:19 +0000828FREETYPE_LIBS
829FREETYPE_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000830FONTCONFIG_DELEGATE_FALSE
831FONTCONFIG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000832FONTCONFIG_LIBS
833FONTCONFIG_CFLAGS
834FPX_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000835FPX_DELEGATE_FALSE
836FPX_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000837FFTW_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000838FFTW_DELEGATE_FALSE
839FFTW_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000840DJVU_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000841DJVU_DELEGATE_FALSE
842DJVU_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000843DPS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000844DPS_DELEGATE_FALSE
845DPS_DELEGATE_TRUE
846AUTOTRACE_DELEGATE_FALSE
847AUTOTRACE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000848AUTOTRACE_LIBS
849AUTOTRACE_CFLAGS
850LIB_DL
cristy5eef09f2012-10-16 12:08:28 +0000851WITH_LTDL_FALSE
852WITH_LTDL_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000853ZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000854ZLIB_DELEGATE_FALSE
855ZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000856XEXT_LIBS
857X11_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000858X11_DELEGATE_FALSE
859X11_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000860X_EXTRA_LIBS
861X_LIBS
862X_PRE_LIBS
863X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000864XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000865BZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000866BZLIB_DELEGATE_FALSE
867BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000868CCMALLOCDelegate
869UMEM_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000870HasUMEM_FALSE
871HasUMEM_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000872GOMP_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000873WITH_MAGICK_PLUS_PLUS_FALSE
874WITH_MAGICK_PLUS_PLUS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000875OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000876MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000877POW_LIB
878LIBOBJS
cristy6d5e20f2011-04-25 13:48:54 +0000879UINTPTR_F
cristy3ed852e2009-09-05 21:47:34 +0000880UINTPTR_T
cristy6d5e20f2011-04-25 13:48:54 +0000881UINTMAX_F
cristy3ed852e2009-09-05 21:47:34 +0000882UINTMAX_T
cristy6d5e20f2011-04-25 13:48:54 +0000883UINT64_F
cristy3ed852e2009-09-05 21:47:34 +0000884UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000885INT64_F
cristy3ed852e2009-09-05 21:47:34 +0000886INT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000887UINT32_F
cristy3ed852e2009-09-05 21:47:34 +0000888UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +0000889INT32_F
cristy3ed852e2009-09-05 21:47:34 +0000890INT32_T
891UINT16_T
892INT16_T
893UINT8_T
894INT8_T
895LIBRARY_EXTRA_CPPFLAGS
896MODULE_EXTRA_CPPFLAGS
897LIBSTDCLDFLAGS
898PERL_MAKE_OPTIONS
cristy3a75f062012-09-08 23:29:40 +0000899MAGICK_LT_RELEASE_OPTS
cristy7a26abd2012-12-03 00:18:59 +0000900MAGICK_ABI_SUFFIX
cristy3ed852e2009-09-05 21:47:34 +0000901QUANTUM_DEPTH
cristy71d8c202012-03-20 17:05:01 +0000902LEGACY_SUPPORT_FALSE
903LEGACY_SUPPORT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000904MAINT
905MAINTAINER_MODE_FALSE
906MAINTAINER_MODE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000907MAGICK_HDRI
cristy73bd4a52010-10-05 11:24:23 +0000908WITH_MODULES_FALSE
909WITH_MODULES_TRUE
910WITH_SHARED_LIBS_FALSE
911WITH_SHARED_LIBS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000912LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +0000913CXXCPP
914OTOOL64
915OTOOL
916LIPO
917NMEDIT
918DSYMUTIL
cristyda16f162011-02-19 23:52:17 +0000919MANIFEST_TOOL
cristy73bd4a52010-10-05 11:24:23 +0000920RANLIB
cristyda16f162011-02-19 23:52:17 +0000921ac_ct_AR
cristy73bd4a52010-10-05 11:24:23 +0000922AR
923NM
924ac_ct_DUMPBIN
925DUMPBIN
926LIBTOOL
927OBJDUMP
928DLLTOOL
929AS
cristy3ed852e2009-09-05 21:47:34 +0000930LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000931CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000932CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000933OPENMP_CFLAGS
cristy1ae5c992013-07-30 14:55:07 +0000934THREAD_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000935PTHREAD_CFLAGS
936PTHREAD_LIBS
937PTHREAD_CC
938ax_pthread_config
cristy2ec87cc2013-02-18 17:46:50 +0000939pkgconfigdir
cristy670aa3c2011-11-03 00:54:00 +0000940SHAREARCH_DIR
941INCLUDEARCH_DIR
cristy3ed852e2009-09-05 21:47:34 +0000942WinPathScript
cristy73bd4a52010-10-05 11:24:23 +0000943USING_CL_FALSE
944USING_CL_TRUE
945CYGWIN_BUILD_FALSE
946CYGWIN_BUILD_TRUE
947WIN32_NATIVE_BUILD_FALSE
948WIN32_NATIVE_BUILD_TRUE
949WINGDI32_DELEGATE_FALSE
950WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000951GDI32_LIBS
cristy9b86f202012-11-28 21:55:35 +0000952HAVE_LD_VERSION_SCRIPT_FALSE
953HAVE_LD_VERSION_SCRIPT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000954PKG_CONFIG
cristya0459972013-11-03 18:09:35 +0000955PRTDIAG
cristy3ed852e2009-09-05 21:47:34 +0000956LN_S
cristy3ed852e2009-09-05 21:47:34 +0000957LD
cristy73bd4a52010-10-05 11:24:23 +0000958FGREP
959SED
960am__fastdepCXX_FALSE
961am__fastdepCXX_TRUE
962CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000963ac_ct_CXX
964CXXFLAGS
965CXX
cristya0b81c32010-01-22 02:54:33 +0000966EGREP
967GREP
968CPP
cristy73bd4a52010-10-05 11:24:23 +0000969am__fastdepCC_FALSE
970am__fastdepCC_TRUE
971CCDEPMODE
cristy7247bba2012-02-05 16:37:27 +0000972am__nodep
cristy73bd4a52010-10-05 11:24:23 +0000973AMDEPBACKSLASH
974AMDEP_FALSE
975AMDEP_TRUE
976am__quote
977am__include
978DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000979OBJEXT
980EXEEXT
981ac_ct_CC
982CPPFLAGS
983LDFLAGS
984CFLAGS
985CC
986DIRSEP
987MAGICK_FILTER_MODULE_PATH
988MAGICK_CONFIGURE_BUILD_PATH
989MAGICK_CONFIGURE_SRC_PATH
990MAGICK_CODER_MODULE_PATH
991MAN_DIR
992INFO_DIR
993PERSISTINCLUDE_DIR
994INCLUDE_DIR
995LIB_DIR
996LOCALSTATE_DIR
997SHAREDSTATE_DIR
998SYSCONF_DIR
cristyd55889c2011-03-27 00:50:24 +0000999DOC_DIR
cristy3ed852e2009-09-05 21:47:34 +00001000DATA_DIR
1001LIBEXEC_DIR
1002SBIN_DIR
1003BIN_DIR
1004EXEC_PREFIX_DIR
1005PREFIX_DIR
1006CONFIG_STATUS_DEPENDENCIES
cristy5ed9c6e2013-07-14 21:20:31 +00001007MAGICKPP_LIB_VERSION_TEXT
1008MAGICKPP_LIB_VERSION
cristy3ed852e2009-09-05 21:47:34 +00001009MAGICK_LIB_VERSION_NUMBER
1010MAGICK_LIB_VERSION_TEXT
1011MAGICK_LIB_VERSION
cristy73bd4a52010-10-05 11:24:23 +00001012AM_BACKSLASH
1013AM_DEFAULT_VERBOSITY
cristyc3fb77b2012-02-06 01:49:41 +00001014AM_DEFAULT_V
1015AM_V
cristy73bd4a52010-10-05 11:24:23 +00001016am__untar
1017am__tar
1018AMTAR
1019am__leading_dot
1020SET_MAKE
1021AWK
1022mkdir_p
1023MKDIR_P
1024INSTALL_STRIP_PROGRAM
1025STRIP
1026install_sh
1027MAKEINFO
1028AUTOHEADER
1029AUTOMAKE
1030AUTOCONF
1031ACLOCAL
1032VERSION
1033PACKAGE
1034CYGPATH_W
1035am__isrc
1036INSTALL_DATA
1037INSTALL_SCRIPT
1038INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +00001039PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +00001040PACKAGE_RELEASE_DATE
1041PACKAGE_LIB_VERSION_NUMBER
1042PACKAGE_LIB_VERSION
1043PACKAGE_CHANGE_DATE
1044PACKAGE_RELEASE
cristy878c2f12011-08-19 00:25:19 +00001045PACKAGE_PERL_VERSION
cristy5ed9c6e2013-07-14 21:20:31 +00001046MAGICKPP_LIBRARY_VERSION_INFO
1047MAGICKPP_LIBRARY_CURRENT_MIN
1048MAGICKPP_LIBRARY_AGE
1049MAGICKPP_LIBRARY_REVISION
1050MAGICKPP_LIBRARY_CURRENT
cristybab87c32010-02-09 20:54:22 +00001051MAGICK_LIBRARY_VERSION_INFO
1052MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001053MAGICK_LIBRARY_AGE
1054MAGICK_LIBRARY_REVISION
1055MAGICK_LIBRARY_CURRENT
cristy37442762013-02-10 21:07:23 +00001056MAGICK_SVN_REVISION
1057MAGICK_VERSION
1058MAGICK_PATCHLEVEL_VERSION
1059MAGICK_MICRO_VERSION
1060MAGICK_MINOR_VERSION
1061MAGICK_MAJOR_VERSION
cristy3225a072010-04-17 01:47:28 +00001062MAGICK_TARGET_OS
1063MAGICK_TARGET_VENDOR
1064MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001065target_os
1066target_vendor
1067target_cpu
1068target
1069host_os
1070host_vendor
1071host_cpu
1072host
1073build_os
1074build_vendor
1075build_cpu
1076build
1077CONFIGURE_ARGS
1078DISTCHECK_CONFIG_FLAGS
1079target_alias
1080host_alias
1081build_alias
1082LIBS
1083ECHO_T
1084ECHO_N
1085ECHO_C
1086DEFS
1087mandir
1088localedir
1089libdir
1090psdir
1091pdfdir
1092dvidir
1093htmldir
1094infodir
1095docdir
1096oldincludedir
1097includedir
1098localstatedir
1099sharedstatedir
1100sysconfdir
1101datadir
1102datarootdir
1103libexecdir
1104sbindir
1105bindir
1106program_transform_name
1107prefix
1108exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001109PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001110PACKAGE_BUGREPORT
1111PACKAGE_STRING
1112PACKAGE_VERSION
1113PACKAGE_TARNAME
1114PACKAGE_NAME
1115PATH_SEPARATOR
1116SHELL'
1117ac_subst_files=''
1118ac_user_opts='
1119enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001120enable_silent_rules
1121enable_dependency_tracking
1122with_gnu_ld
1123with_dmalloc
cristya0459972013-11-03 18:09:35 +00001124with_gcc_arch
cristy9b86f202012-11-28 21:55:35 +00001125enable_ld_version_script
cristy3ed852e2009-09-05 21:47:34 +00001126enable_bounds_checking
1127enable_osx_universal_binary
cristy670aa3c2011-11-03 00:54:00 +00001128with_includearch_dir
1129with_sharearch_dir
cristy2ec87cc2013-02-18 17:46:50 +00001130with_pkgconfigdir
cristy3ed852e2009-09-05 21:47:34 +00001131with_threads
1132enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001133enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001134enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001135enable_shared
1136enable_static
1137with_pic
1138enable_fast_install
cristyda16f162011-02-19 23:52:17 +00001139with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001140enable_libtool_lock
cristy3ed852e2009-09-05 21:47:34 +00001141with_modules
1142enable_delegate_build
1143enable_deprecated
1144enable_installed
1145enable_cipher
cristy6e3607c2011-09-13 13:59:17 +00001146enable_zero_configuration
cristy3ed852e2009-09-05 21:47:34 +00001147enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001148enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001149enable_maintainer_mode
cristy944e51f2013-04-16 18:45:02 +00001150enable_hugepages
cristy3ed852e2009-09-05 21:47:34 +00001151enable_ccmalloc
1152enable_efence
1153enable_prof
1154enable_gprof
1155enable_gcov
1156with_method_prefix
cristy71d8c202012-03-20 17:05:01 +00001157enable_legacy_support
cristy3ed852e2009-09-05 21:47:34 +00001158with_quantum_depth
1159with_cache
1160with_frozenpaths
1161with_magick_plus_plus
cristy3a75f062012-09-08 23:29:40 +00001162with_package_release_name
cristy3ed852e2009-09-05 21:47:34 +00001163with_perl
1164with_perl_options
1165with_umem
1166with_libstdc
1167with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001168with_x
cristy3ed852e2009-09-05 21:47:34 +00001169with_zlib
1170with_autotrace
1171with_dps
1172with_djvu
cristy430a7312010-01-21 20:44:04 +00001173with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001174with_fftw
1175with_fpx
1176with_fontconfig
1177with_freetype
1178with_gslib
1179with_fontpath
1180with_gs_font_dir
1181with_gvc
1182with_jbig
1183with_jpeg
cristy3ed852e2009-09-05 21:47:34 +00001184with_lcms
cristy71203402010-06-18 13:12:03 +00001185with_lcms2
cristy99db3872014-01-01 15:11:34 +00001186with_openjp2
cristy3ed852e2009-09-05 21:47:34 +00001187with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001188with_lzma
cristy854c9cf2013-08-10 21:03:06 +00001189with_mupdf
cristy3ed852e2009-09-05 21:47:34 +00001190with_openexr
cristy41cbe8a2011-10-27 01:35:18 +00001191with_pango
cristy3ed852e2009-09-05 21:47:34 +00001192with_png
1193with_rsvg
1194with_tiff
cristyb1860752011-03-14 00:27:46 +00001195with_webp
cristy3ed852e2009-09-05 21:47:34 +00001196with_windows_font_dir
1197with_wmf
1198with_xml
1199'
1200 ac_precious_vars='build_alias
1201host_alias
1202target_alias
1203CC
1204CFLAGS
1205LDFLAGS
1206LIBS
1207CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001208CPP
cristy3ed852e2009-09-05 21:47:34 +00001209CXX
1210CXXFLAGS
1211CCC
cristy73bd4a52010-10-05 11:24:23 +00001212PKG_CONFIG
1213CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001214XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001215AUTOTRACE_CFLAGS
1216AUTOTRACE_LIBS
1217FONTCONFIG_CFLAGS
1218FONTCONFIG_LIBS
cristy03f187e2013-01-24 00:22:19 +00001219FREETYPE_CFLAGS
1220FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001221GVC_CFLAGS
1222GVC_LIBS
cristy99db3872014-01-01 15:11:34 +00001223LIBOPENJP2_CFLAGS
1224LIBOPENJP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001225LQR_CFLAGS
1226LQR_LIBS
cristyb94e5002011-11-14 13:20:10 +00001227LZMA_CFLAGS
1228LZMA_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001229OPENEXR_CFLAGS
1230OPENEXR_LIBS
cristy41cbe8a2011-10-27 01:35:18 +00001231PANGO_CFLAGS
1232PANGO_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001233RSVG_CFLAGS
1234RSVG_LIBS
1235CAIRO_SVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +00001236CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001237
1238
1239# Initialize some variables set by options.
1240ac_init_help=
1241ac_init_version=false
1242ac_unrecognized_opts=
1243ac_unrecognized_sep=
1244# The variables have the same names as the options, with
1245# dashes changed to underlines.
1246cache_file=/dev/null
1247exec_prefix=NONE
1248no_create=
1249no_recursion=
1250prefix=NONE
1251program_prefix=NONE
1252program_suffix=NONE
1253program_transform_name=s,x,x,
1254silent=
1255site=
1256srcdir=
1257verbose=
1258x_includes=NONE
1259x_libraries=NONE
1260
1261# Installation directory options.
1262# These are left unexpanded so users can "make install exec_prefix=/foo"
1263# and all the variables that are supposed to be based on exec_prefix
1264# by default will actually change.
1265# Use braces instead of parens because sh, perl, etc. also accept them.
1266# (The list follows the same order as the GNU Coding Standards.)
1267bindir='${exec_prefix}/bin'
1268sbindir='${exec_prefix}/sbin'
1269libexecdir='${exec_prefix}/libexec'
1270datarootdir='${prefix}/share'
1271datadir='${datarootdir}'
1272sysconfdir='${prefix}/etc'
1273sharedstatedir='${prefix}/com'
1274localstatedir='${prefix}/var'
1275includedir='${prefix}/include'
1276oldincludedir='/usr/include'
1277docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1278infodir='${datarootdir}/info'
1279htmldir='${docdir}'
1280dvidir='${docdir}'
1281pdfdir='${docdir}'
1282psdir='${docdir}'
1283libdir='${exec_prefix}/lib'
1284localedir='${datarootdir}/locale'
1285mandir='${datarootdir}/man'
1286
1287ac_prev=
1288ac_dashdash=
1289for ac_option
1290do
1291 # If the previous option needs an argument, assign it.
1292 if test -n "$ac_prev"; then
1293 eval $ac_prev=\$ac_option
1294 ac_prev=
1295 continue
1296 fi
1297
1298 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001299 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1300 *=) ac_optarg= ;;
1301 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001302 esac
1303
1304 # Accept the important Cygnus configure options, so we can diagnose typos.
1305
1306 case $ac_dashdash$ac_option in
1307 --)
1308 ac_dashdash=yes ;;
1309
1310 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1311 ac_prev=bindir ;;
1312 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1313 bindir=$ac_optarg ;;
1314
1315 -build | --build | --buil | --bui | --bu)
1316 ac_prev=build_alias ;;
1317 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1318 build_alias=$ac_optarg ;;
1319
1320 -cache-file | --cache-file | --cache-fil | --cache-fi \
1321 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1322 ac_prev=cache_file ;;
1323 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1324 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1325 cache_file=$ac_optarg ;;
1326
1327 --config-cache | -C)
1328 cache_file=config.cache ;;
1329
1330 -datadir | --datadir | --datadi | --datad)
1331 ac_prev=datadir ;;
1332 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1333 datadir=$ac_optarg ;;
1334
1335 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1336 | --dataroo | --dataro | --datar)
1337 ac_prev=datarootdir ;;
1338 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1339 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1340 datarootdir=$ac_optarg ;;
1341
1342 -disable-* | --disable-*)
1343 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1344 # Reject names that are not valid shell variable names.
1345 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001346 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001347 ac_useropt_orig=$ac_useropt
1348 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1349 case $ac_user_opts in
1350 *"
1351"enable_$ac_useropt"
1352"*) ;;
1353 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1354 ac_unrecognized_sep=', ';;
1355 esac
1356 eval enable_$ac_useropt=no ;;
1357
1358 -docdir | --docdir | --docdi | --doc | --do)
1359 ac_prev=docdir ;;
1360 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1361 docdir=$ac_optarg ;;
1362
1363 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1364 ac_prev=dvidir ;;
1365 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1366 dvidir=$ac_optarg ;;
1367
1368 -enable-* | --enable-*)
1369 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1370 # Reject names that are not valid shell variable names.
1371 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001372 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001373 ac_useropt_orig=$ac_useropt
1374 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1375 case $ac_user_opts in
1376 *"
1377"enable_$ac_useropt"
1378"*) ;;
1379 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1380 ac_unrecognized_sep=', ';;
1381 esac
1382 eval enable_$ac_useropt=\$ac_optarg ;;
1383
1384 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1385 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1386 | --exec | --exe | --ex)
1387 ac_prev=exec_prefix ;;
1388 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1389 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1390 | --exec=* | --exe=* | --ex=*)
1391 exec_prefix=$ac_optarg ;;
1392
1393 -gas | --gas | --ga | --g)
1394 # Obsolete; use --with-gas.
1395 with_gas=yes ;;
1396
1397 -help | --help | --hel | --he | -h)
1398 ac_init_help=long ;;
1399 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1400 ac_init_help=recursive ;;
1401 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1402 ac_init_help=short ;;
1403
1404 -host | --host | --hos | --ho)
1405 ac_prev=host_alias ;;
1406 -host=* | --host=* | --hos=* | --ho=*)
1407 host_alias=$ac_optarg ;;
1408
1409 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1410 ac_prev=htmldir ;;
1411 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1412 | --ht=*)
1413 htmldir=$ac_optarg ;;
1414
1415 -includedir | --includedir | --includedi | --included | --include \
1416 | --includ | --inclu | --incl | --inc)
1417 ac_prev=includedir ;;
1418 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1419 | --includ=* | --inclu=* | --incl=* | --inc=*)
1420 includedir=$ac_optarg ;;
1421
1422 -infodir | --infodir | --infodi | --infod | --info | --inf)
1423 ac_prev=infodir ;;
1424 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1425 infodir=$ac_optarg ;;
1426
1427 -libdir | --libdir | --libdi | --libd)
1428 ac_prev=libdir ;;
1429 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1430 libdir=$ac_optarg ;;
1431
1432 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1433 | --libexe | --libex | --libe)
1434 ac_prev=libexecdir ;;
1435 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1436 | --libexe=* | --libex=* | --libe=*)
1437 libexecdir=$ac_optarg ;;
1438
1439 -localedir | --localedir | --localedi | --localed | --locale)
1440 ac_prev=localedir ;;
1441 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1442 localedir=$ac_optarg ;;
1443
1444 -localstatedir | --localstatedir | --localstatedi | --localstated \
1445 | --localstate | --localstat | --localsta | --localst | --locals)
1446 ac_prev=localstatedir ;;
1447 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1448 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1449 localstatedir=$ac_optarg ;;
1450
1451 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1452 ac_prev=mandir ;;
1453 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1454 mandir=$ac_optarg ;;
1455
1456 -nfp | --nfp | --nf)
1457 # Obsolete; use --without-fp.
1458 with_fp=no ;;
1459
1460 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1461 | --no-cr | --no-c | -n)
1462 no_create=yes ;;
1463
1464 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1465 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1466 no_recursion=yes ;;
1467
1468 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1469 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1470 | --oldin | --oldi | --old | --ol | --o)
1471 ac_prev=oldincludedir ;;
1472 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1473 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1474 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1475 oldincludedir=$ac_optarg ;;
1476
1477 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1478 ac_prev=prefix ;;
1479 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1480 prefix=$ac_optarg ;;
1481
1482 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1483 | --program-pre | --program-pr | --program-p)
1484 ac_prev=program_prefix ;;
1485 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1486 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1487 program_prefix=$ac_optarg ;;
1488
1489 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1490 | --program-suf | --program-su | --program-s)
1491 ac_prev=program_suffix ;;
1492 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1493 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1494 program_suffix=$ac_optarg ;;
1495
1496 -program-transform-name | --program-transform-name \
1497 | --program-transform-nam | --program-transform-na \
1498 | --program-transform-n | --program-transform- \
1499 | --program-transform | --program-transfor \
1500 | --program-transfo | --program-transf \
1501 | --program-trans | --program-tran \
1502 | --progr-tra | --program-tr | --program-t)
1503 ac_prev=program_transform_name ;;
1504 -program-transform-name=* | --program-transform-name=* \
1505 | --program-transform-nam=* | --program-transform-na=* \
1506 | --program-transform-n=* | --program-transform-=* \
1507 | --program-transform=* | --program-transfor=* \
1508 | --program-transfo=* | --program-transf=* \
1509 | --program-trans=* | --program-tran=* \
1510 | --progr-tra=* | --program-tr=* | --program-t=*)
1511 program_transform_name=$ac_optarg ;;
1512
1513 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1514 ac_prev=pdfdir ;;
1515 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1516 pdfdir=$ac_optarg ;;
1517
1518 -psdir | --psdir | --psdi | --psd | --ps)
1519 ac_prev=psdir ;;
1520 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1521 psdir=$ac_optarg ;;
1522
1523 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1524 | -silent | --silent | --silen | --sile | --sil)
1525 silent=yes ;;
1526
1527 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1528 ac_prev=sbindir ;;
1529 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1530 | --sbi=* | --sb=*)
1531 sbindir=$ac_optarg ;;
1532
1533 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1534 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1535 | --sharedst | --shareds | --shared | --share | --shar \
1536 | --sha | --sh)
1537 ac_prev=sharedstatedir ;;
1538 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1539 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1540 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1541 | --sha=* | --sh=*)
1542 sharedstatedir=$ac_optarg ;;
1543
1544 -site | --site | --sit)
1545 ac_prev=site ;;
1546 -site=* | --site=* | --sit=*)
1547 site=$ac_optarg ;;
1548
1549 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1550 ac_prev=srcdir ;;
1551 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1552 srcdir=$ac_optarg ;;
1553
1554 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1555 | --syscon | --sysco | --sysc | --sys | --sy)
1556 ac_prev=sysconfdir ;;
1557 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1558 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1559 sysconfdir=$ac_optarg ;;
1560
1561 -target | --target | --targe | --targ | --tar | --ta | --t)
1562 ac_prev=target_alias ;;
1563 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1564 target_alias=$ac_optarg ;;
1565
1566 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1567 verbose=yes ;;
1568
1569 -version | --version | --versio | --versi | --vers | -V)
1570 ac_init_version=: ;;
1571
1572 -with-* | --with-*)
1573 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1574 # Reject names that are not valid shell variable names.
1575 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001576 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001577 ac_useropt_orig=$ac_useropt
1578 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1579 case $ac_user_opts in
1580 *"
1581"with_$ac_useropt"
1582"*) ;;
1583 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1584 ac_unrecognized_sep=', ';;
1585 esac
1586 eval with_$ac_useropt=\$ac_optarg ;;
1587
1588 -without-* | --without-*)
1589 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1590 # Reject names that are not valid shell variable names.
1591 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001592 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001593 ac_useropt_orig=$ac_useropt
1594 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1595 case $ac_user_opts in
1596 *"
1597"with_$ac_useropt"
1598"*) ;;
1599 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1600 ac_unrecognized_sep=', ';;
1601 esac
1602 eval with_$ac_useropt=no ;;
1603
1604 --x)
1605 # Obsolete; use --with-x.
1606 with_x=yes ;;
1607
1608 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1609 | --x-incl | --x-inc | --x-in | --x-i)
1610 ac_prev=x_includes ;;
1611 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1612 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1613 x_includes=$ac_optarg ;;
1614
1615 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1616 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1617 ac_prev=x_libraries ;;
1618 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1619 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1620 x_libraries=$ac_optarg ;;
1621
cristy98dddb52010-11-04 00:30:15 +00001622 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1623Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001624 ;;
1625
1626 *=*)
1627 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1628 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001629 case $ac_envvar in #(
1630 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001631 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001632 esac
cristy3ed852e2009-09-05 21:47:34 +00001633 eval $ac_envvar=\$ac_optarg
1634 export $ac_envvar ;;
1635
1636 *)
1637 # FIXME: should be removed in autoconf 3.0.
1638 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1639 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1640 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001641 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001642 ;;
1643
1644 esac
1645done
1646
1647if test -n "$ac_prev"; then
1648 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001649 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001650fi
1651
1652if test -n "$ac_unrecognized_opts"; then
1653 case $enable_option_checking in
1654 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001655 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001656 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1657 esac
1658fi
1659
1660# Check all directory arguments for consistency.
1661for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1662 datadir sysconfdir sharedstatedir localstatedir includedir \
1663 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1664 libdir localedir mandir
1665do
1666 eval ac_val=\$$ac_var
1667 # Remove trailing slashes.
1668 case $ac_val in
1669 */ )
1670 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1671 eval $ac_var=\$ac_val;;
1672 esac
1673 # Be sure to have absolute directory names.
1674 case $ac_val in
1675 [\\/$]* | ?:[\\/]* ) continue;;
1676 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1677 esac
cristy98dddb52010-11-04 00:30:15 +00001678 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001679done
1680
1681# There might be people who depend on the old broken behavior: `$host'
1682# used to hold the argument of --host etc.
1683# FIXME: To remove some day.
1684build=$build_alias
1685host=$host_alias
1686target=$target_alias
1687
1688# FIXME: To remove some day.
1689if test "x$host_alias" != x; then
1690 if test "x$build_alias" = x; then
1691 cross_compiling=maybe
cristy3ed852e2009-09-05 21:47:34 +00001692 elif test "x$build_alias" != "x$host_alias"; then
1693 cross_compiling=yes
1694 fi
1695fi
1696
1697ac_tool_prefix=
1698test -n "$host_alias" && ac_tool_prefix=$host_alias-
1699
1700test "$silent" = yes && exec 6>/dev/null
1701
1702
1703ac_pwd=`pwd` && test -n "$ac_pwd" &&
1704ac_ls_di=`ls -di .` &&
1705ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001706 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001707test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001708 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001709
1710
1711# Find the source files, if location was not specified.
1712if test -z "$srcdir"; then
1713 ac_srcdir_defaulted=yes
1714 # Try the directory containing this script, then the parent directory.
1715 ac_confdir=`$as_dirname -- "$as_myself" ||
1716$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1717 X"$as_myself" : 'X\(//\)[^/]' \| \
1718 X"$as_myself" : 'X\(//\)$' \| \
1719 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1720$as_echo X"$as_myself" |
1721 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1722 s//\1/
1723 q
1724 }
1725 /^X\(\/\/\)[^/].*/{
1726 s//\1/
1727 q
1728 }
1729 /^X\(\/\/\)$/{
1730 s//\1/
1731 q
1732 }
1733 /^X\(\/\).*/{
1734 s//\1/
1735 q
1736 }
1737 s/.*/./; q'`
1738 srcdir=$ac_confdir
1739 if test ! -r "$srcdir/$ac_unique_file"; then
1740 srcdir=..
1741 fi
1742else
1743 ac_srcdir_defaulted=no
1744fi
1745if test ! -r "$srcdir/$ac_unique_file"; then
1746 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001747 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001748fi
1749ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1750ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001751 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001752 pwd)`
1753# When building in place, set srcdir=.
1754if test "$ac_abs_confdir" = "$ac_pwd"; then
1755 srcdir=.
1756fi
1757# Remove unnecessary trailing slashes from srcdir.
1758# Double slashes in file names in object file debugging info
1759# mess up M-x gdb in Emacs.
1760case $srcdir in
1761*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1762esac
1763for ac_var in $ac_precious_vars; do
1764 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1765 eval ac_env_${ac_var}_value=\$${ac_var}
1766 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1767 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1768done
1769
1770#
1771# Report the --help message.
1772#
1773if test "$ac_init_help" = "long"; then
1774 # Omit some internal or obsolete options to make the list less imposing.
1775 # This message is too long to be a string in the A/UX 3.1 sh.
1776 cat <<_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00001777\`configure' configures ImageMagick 7.0.0-0 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001778
1779Usage: $0 [OPTION]... [VAR=VALUE]...
1780
1781To assign environment variables (e.g., CC, CFLAGS...), specify them as
1782VAR=VALUE. See below for descriptions of some of the useful variables.
1783
1784Defaults for the options are specified in brackets.
1785
1786Configuration:
1787 -h, --help display this help and exit
1788 --help=short display options specific to this package
1789 --help=recursive display the short help of all the included packages
1790 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001791 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001792 --cache-file=FILE cache test results in FILE [disabled]
1793 -C, --config-cache alias for \`--cache-file=config.cache'
1794 -n, --no-create do not create output files
1795 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1796
1797Installation directories:
1798 --prefix=PREFIX install architecture-independent files in PREFIX
1799 [$ac_default_prefix]
1800 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1801 [PREFIX]
1802
1803By default, \`make install' will install all the files in
1804\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1805an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1806for instance \`--prefix=\$HOME'.
1807
1808For better control, use the options below.
1809
1810Fine tuning of the installation directories:
1811 --bindir=DIR user executables [EPREFIX/bin]
1812 --sbindir=DIR system admin executables [EPREFIX/sbin]
1813 --libexecdir=DIR program executables [EPREFIX/libexec]
1814 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1815 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1816 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1817 --libdir=DIR object code libraries [EPREFIX/lib]
1818 --includedir=DIR C header files [PREFIX/include]
1819 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1820 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1821 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1822 --infodir=DIR info documentation [DATAROOTDIR/info]
1823 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1824 --mandir=DIR man documentation [DATAROOTDIR/man]
cristy09b53e12011-10-14 12:47:22 +00001825 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
cristy3ed852e2009-09-05 21:47:34 +00001826 --htmldir=DIR html documentation [DOCDIR]
1827 --dvidir=DIR dvi documentation [DOCDIR]
1828 --pdfdir=DIR pdf documentation [DOCDIR]
1829 --psdir=DIR ps documentation [DOCDIR]
1830_ACEOF
1831
1832 cat <<\_ACEOF
1833
cristy73bd4a52010-10-05 11:24:23 +00001834Program names:
1835 --program-prefix=PREFIX prepend PREFIX to installed program names
1836 --program-suffix=SUFFIX append SUFFIX to installed program names
1837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1838
cristy3ed852e2009-09-05 21:47:34 +00001839X features:
1840 --x-includes=DIR X include files are in DIR
1841 --x-libraries=DIR X library files are in DIR
1842
1843System types:
1844 --build=BUILD configure for building on BUILD [guessed]
1845 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1846 --target=TARGET configure for building compilers for TARGET [HOST]
1847_ACEOF
1848fi
1849
1850if test -n "$ac_init_help"; then
1851 case $ac_init_help in
cristy29eb34e2011-10-16 00:46:08 +00001852 short | recursive ) echo "Configuration of ImageMagick 7.0.0-0:";;
cristy3ed852e2009-09-05 21:47:34 +00001853 esac
1854 cat <<\_ACEOF
1855
1856Optional Features:
1857 --disable-option-checking ignore unrecognized --enable/--with options
1858 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1859 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristyc0890a62012-07-19 00:18:20 +00001860 --enable-silent-rules less verbose build output (undo: "make V=1")
1861 --disable-silent-rules verbose build output (undo: "make V=0")
1862 --enable-dependency-tracking
1863 do not reject slow dependency extractors
1864 --disable-dependency-tracking
1865 speeds up one-time build
cristy9b86f202012-11-28 21:55:35 +00001866 --enable-ld-version-script
1867 enable linker version script (default is enabled
1868 when possible)
cristya3824692012-03-30 17:22:07 +00001869 --enable-bounds-checking
1870 enable run-time bounds-checking
cristy3ed852e2009-09-05 21:47:34 +00001871 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001872 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001873 --disable-openmp do not use OpenMP
cristy48794642012-09-02 15:19:08 +00001874 --enable-opencl enable OpenCL support
cristy3ed852e2009-09-05 21:47:34 +00001875 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001876 --enable-shared[=PKGS] build shared libraries [default=yes]
1877 --enable-static[=PKGS] build static libraries [default=yes]
1878 --enable-fast-install[=PKGS]
1879 optimize for fast installation [default=yes]
1880 --disable-libtool-lock avoid locking (might break parallel builds)
cristy3ed852e2009-09-05 21:47:34 +00001881 --enable-delegate-build look for delegate libraries in build directory
1882 --disable-deprecated exclude deprecated methods in MagickCore and
cristy3a75f062012-09-08 23:29:40 +00001883 MagickWand APIs
cristy3ed852e2009-09-05 21:47:34 +00001884 --disable-installed Formally install ImageMagick under PREFIX
1885 --disable-cipher disable enciphering and deciphering image pixels
cristy6e3607c2011-09-13 13:59:17 +00001886 --enable-zero-configuration
1887 enable self-contained, embeddable,
cristy3ed852e2009-09-05 21:47:34 +00001888 zero-configuration ImageMagick
cristyf314dbd2012-11-15 13:35:28 +00001889 --enable-hdri accurately represent the wide range of intensity
cristy3ed852e2009-09-05 21:47:34 +00001890 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001891 --disable-assert disable assert() statements in build
cristyc0890a62012-07-19 00:18:20 +00001892 --enable-maintainer-mode
1893 enable make rules and dependencies not useful (and
1894 sometimes confusing) to the casual installer
cristy944e51f2013-04-16 18:45:02 +00001895 --enable-hugepages enable 'huge pages' support
cristy3ed852e2009-09-05 21:47:34 +00001896 --enable-ccmalloc enable 'ccmalloc' memory debug support
1897 --enable-efence enable 'efence' memory debug support
1898 --enable-prof enable 'prof' profiling support
1899 --enable-gprof enable 'gprof' profiling support
1900 --enable-gcov enable 'gcov' profiling support
cristy71d8c202012-03-20 17:05:01 +00001901 --enable-legacy-support install legacy command-line utilities (default disabled)
cristya0b81c32010-01-22 02:54:33 +00001902 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001903
1904Optional Packages:
1905 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1906 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001907 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cristy7247bba2012-02-05 16:37:27 +00001908 --with-dmalloc use dmalloc, as in http://www.dmalloc.com
cristya0459972013-11-03 18:09:35 +00001909 --with-gcc-arch=<arch> use architecture <arch> for gcc -march/-mtune,
1910 instead of guessing
cristy670aa3c2011-11-03 00:54:00 +00001911 --includearch-dir=DIR ARCH specific include directory
1912 --sharearch-dir=DIR ARCH specific config directory
cristy2ec87cc2013-02-18 17:46:50 +00001913 --with-pkgconfigdir=DIR Path to the pkgconfig directory [LIBDIR/pkgconfig]
cristy3ed852e2009-09-05 21:47:34 +00001914 --without-threads disable threads support
cristy99bd5232011-12-07 14:38:20 +00001915 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
cristy73bd4a52010-10-05 11:24:23 +00001916 both]
cristyda16f162011-02-19 23:52:17 +00001917 --with-sysroot=DIR Search for dependent libraries within DIR
1918 (or the compiler's sysroot if not specified).
cristy3ed852e2009-09-05 21:47:34 +00001919 --with-modules enable building dynamically loadable modules
1920 --with-method-prefix=PREFIX
1921 prefix MagickCore API methods
1922 --with-quantum-depth=DEPTH
1923 number of bits in a pixel quantum (default 16)
1924 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1925 memory)
1926 --with-frozenpaths freeze delegate paths
1927 --without-magick-plus-plus
1928 disable build/install of Magick++
cristy3a75f062012-09-08 23:29:40 +00001929 --with-package-release-name=NAME
1930 encode this name into the shared library
cristy3ed852e2009-09-05 21:47:34 +00001931 --with-perl enable build/install of PerlMagick
1932 --with-perl-options=OPTIONS
1933 options to pass on command-line when generating
cristyfc3d0222012-02-07 15:05:57 +00001934 PerlMagick build file
cristy3ed852e2009-09-05 21:47:34 +00001935 --with-umem enable umem memory allocation library support
1936 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1937 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001938 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001939 --without-zlib disable ZLIB support
1940 --with-autotrace enable autotrace support
1941 --without-dps disable Display Postscript support
1942 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001943 --with-dejavu-font-dir=DIR
1944 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001945 --without-fftw disable FFTW support
1946 --without-fpx disable FlashPIX support
1947 --without-fontconfig disable fontconfig support
cristy81beccd2011-10-03 18:17:24 +00001948 --without-freetype disable Freetype support
cristybdabdd62013-03-04 17:43:36 +00001949 --with-gslib enable Ghostscript library support
cristy3ed852e2009-09-05 21:47:34 +00001950 --with-fontpath=DIR prepend to default font search path
1951 --with-gs-font-dir=DIR Ghostscript font directory
cristybdabdd62013-03-04 17:43:36 +00001952 --with-gvc enable GVC support
cristy3ed852e2009-09-05 21:47:34 +00001953 --without-jbig disable JBIG support
1954 --without-jpeg disable JPEG support
cristy71203402010-06-18 13:12:03 +00001955 --without-lcms disable lcms (v1.1X) support
1956 --without-lcms2 disable lcms (v2.X) support
cristy99db3872014-01-01 15:11:34 +00001957 --without-openjp2 disable OpenJP2 support
cristyf0c78232010-03-15 12:53:40 +00001958 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00001959 --without-lzma disable LZMA support
cristy854c9cf2013-08-10 21:03:06 +00001960 --with-mupdf enable MUPDF support
cristy3ed852e2009-09-05 21:47:34 +00001961 --without-openexr disable OpenEXR support
cristy41cbe8a2011-10-27 01:35:18 +00001962 --without-pango disable PANGO support
cristy3ed852e2009-09-05 21:47:34 +00001963 --without-png disable PNG support
cristy51633f52013-04-23 14:03:19 +00001964 --with-rsvg enable RSVG support
cristy3ed852e2009-09-05 21:47:34 +00001965 --without-tiff disable TIFF support
cristyb1860752011-03-14 00:27:46 +00001966 --without-webp disable WEBP support
cristy3ed852e2009-09-05 21:47:34 +00001967 --with-windows-font-dir=DIR
1968 directory containing MS-Windows fonts
cristyde3fc5d2012-02-12 15:40:47 +00001969 --with-wmf enable WMF support
cristy3ed852e2009-09-05 21:47:34 +00001970 --without-xml disable XML support
1971
1972Some influential environment variables:
1973 CC C compiler command
1974 CFLAGS C compiler flags
1975 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1976 nonstandard directory <lib dir>
1977 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001978 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001979 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001980 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001981 CXX C++ compiler command
1982 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00001983 PKG_CONFIG path to pkg-config utility
nicolas6237c462010-10-05 06:11:49 +00001984 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00001985 XMKMF Path to xmkmf, Makefile generator for X Window System
1986 AUTOTRACE_CFLAGS
1987 C compiler flags for AUTOTRACE, overriding pkg-config
1988 AUTOTRACE_LIBS
1989 linker flags for AUTOTRACE, overriding pkg-config
1990 FONTCONFIG_CFLAGS
1991 C compiler flags for FONTCONFIG, overriding pkg-config
1992 FONTCONFIG_LIBS
1993 linker flags for FONTCONFIG, overriding pkg-config
cristy03f187e2013-01-24 00:22:19 +00001994 FREETYPE_CFLAGS
1995 C compiler flags for FREETYPE, overriding pkg-config
1996 FREETYPE_LIBS
1997 linker flags for FREETYPE, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001998 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1999 GVC_LIBS linker flags for GVC, overriding pkg-config
cristy99db3872014-01-01 15:11:34 +00002000 LIBOPENJP2_CFLAGS
2001 C compiler flags for LIBOPENJP2, overriding pkg-config
2002 LIBOPENJP2_LIBS
2003 linker flags for LIBOPENJP2, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002004 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
2005 LQR_LIBS linker flags for LQR, overriding pkg-config
cristyb94e5002011-11-14 13:20:10 +00002006 LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config
2007 LZMA_LIBS linker flags for LZMA, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002008 OPENEXR_CFLAGS
2009 C compiler flags for OPENEXR, overriding pkg-config
2010 OPENEXR_LIBS
2011 linker flags for OPENEXR, overriding pkg-config
cristy41cbe8a2011-10-27 01:35:18 +00002012 PANGO_CFLAGS
2013 C compiler flags for PANGO, overriding pkg-config
2014 PANGO_LIBS linker flags for PANGO, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002015 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
2016 RSVG_LIBS linker flags for RSVG, overriding pkg-config
2017 CAIRO_SVG_CFLAGS
2018 C compiler flags for CAIRO_SVG, overriding pkg-config
2019 CAIRO_SVG_LIBS
2020 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00002021
2022Use these variables to override the choices made by `configure' or to help
2023it to find libraries and programs with nonstandard names/locations.
2024
2025Report bugs to <http://www.imagemagick.org>.
2026_ACEOF
2027ac_status=$?
2028fi
2029
2030if test "$ac_init_help" = "recursive"; then
2031 # If there are subdirs, report their specific --help.
2032 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2033 test -d "$ac_dir" ||
2034 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2035 continue
2036 ac_builddir=.
2037
2038case "$ac_dir" in
2039.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2040*)
2041 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2042 # A ".." for each directory in $ac_dir_suffix.
2043 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2044 case $ac_top_builddir_sub in
2045 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2046 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2047 esac ;;
2048esac
2049ac_abs_top_builddir=$ac_pwd
2050ac_abs_builddir=$ac_pwd$ac_dir_suffix
2051# for backward compatibility:
2052ac_top_builddir=$ac_top_build_prefix
2053
2054case $srcdir in
2055 .) # We are building in place.
2056 ac_srcdir=.
2057 ac_top_srcdir=$ac_top_builddir_sub
2058 ac_abs_top_srcdir=$ac_pwd ;;
2059 [\\/]* | ?:[\\/]* ) # Absolute name.
2060 ac_srcdir=$srcdir$ac_dir_suffix;
2061 ac_top_srcdir=$srcdir
2062 ac_abs_top_srcdir=$srcdir ;;
2063 *) # Relative name.
2064 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2065 ac_top_srcdir=$ac_top_build_prefix$srcdir
2066 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2067esac
2068ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2069
2070 cd "$ac_dir" || { ac_status=$?; continue; }
2071 # Check for guested configure.
2072 if test -f "$ac_srcdir/configure.gnu"; then
2073 echo &&
2074 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2075 elif test -f "$ac_srcdir/configure"; then
2076 echo &&
2077 $SHELL "$ac_srcdir/configure" --help=recursive
2078 else
2079 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2080 fi || ac_status=$?
2081 cd "$ac_pwd" || { ac_status=$?; break; }
2082 done
2083fi
2084
2085test -n "$ac_init_help" && exit $ac_status
2086if $ac_init_version; then
2087 cat <<\_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00002088ImageMagick configure 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +00002089generated by GNU Autoconf 2.69
cristy3ed852e2009-09-05 21:47:34 +00002090
cristy14fefe52012-05-21 00:59:18 +00002091Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002092This configure script is free software; the Free Software Foundation
2093gives unlimited permission to copy, distribute and modify it.
2094_ACEOF
2095 exit
2096fi
cristy8b350f62009-11-15 23:12:43 +00002097
2098## ------------------------ ##
2099## Autoconf initialization. ##
2100## ------------------------ ##
2101
2102# ac_fn_c_try_compile LINENO
2103# --------------------------
2104# Try to compile conftest.$ac_ext, and return whether this succeeded.
2105ac_fn_c_try_compile ()
2106{
2107 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2108 rm -f conftest.$ac_objext
2109 if { { ac_try="$ac_compile"
2110case "(($ac_try" in
2111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2112 *) ac_try_echo=$ac_try;;
2113esac
2114eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2115$as_echo "$ac_try_echo"; } >&5
2116 (eval "$ac_compile") 2>conftest.err
2117 ac_status=$?
2118 if test -s conftest.err; then
2119 grep -v '^ *+' conftest.err >conftest.er1
2120 cat conftest.er1 >&5
2121 mv -f conftest.er1 conftest.err
2122 fi
2123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2124 test $ac_status = 0; } && {
2125 test -z "$ac_c_werror_flag" ||
2126 test ! -s conftest.err
2127 } && test -s conftest.$ac_objext; then :
2128 ac_retval=0
2129else
2130 $as_echo "$as_me: failed program was:" >&5
2131sed 's/^/| /' conftest.$ac_ext >&5
2132
2133 ac_retval=1
2134fi
cristyda16f162011-02-19 23:52:17 +00002135 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002136 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002137
2138} # ac_fn_c_try_compile
2139
cristy95646052009-11-28 23:05:30 +00002140# ac_fn_c_try_cpp LINENO
2141# ----------------------
2142# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2143ac_fn_c_try_cpp ()
2144{
2145 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2146 if { { ac_try="$ac_cpp conftest.$ac_ext"
2147case "(($ac_try" in
2148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2149 *) ac_try_echo=$ac_try;;
2150esac
2151eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2152$as_echo "$ac_try_echo"; } >&5
2153 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2154 ac_status=$?
2155 if test -s conftest.err; then
2156 grep -v '^ *+' conftest.err >conftest.er1
2157 cat conftest.er1 >&5
2158 mv -f conftest.er1 conftest.err
2159 fi
2160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002161 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002162 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2163 test ! -s conftest.err
2164 }; then :
2165 ac_retval=0
2166else
2167 $as_echo "$as_me: failed program was:" >&5
2168sed 's/^/| /' conftest.$ac_ext >&5
2169
2170 ac_retval=1
2171fi
cristyda16f162011-02-19 23:52:17 +00002172 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002173 as_fn_set_status $ac_retval
2174
2175} # ac_fn_c_try_cpp
2176
cristy8b350f62009-11-15 23:12:43 +00002177# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2178# -------------------------------------------------------
2179# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2180# the include files in INCLUDES and setting the cache variable VAR
2181# accordingly.
2182ac_fn_c_check_header_mongrel ()
2183{
2184 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002185 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2187$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002188if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002189 $as_echo_n "(cached) " >&6
2190fi
2191eval ac_res=\$$3
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2193$as_echo "$ac_res" >&6; }
2194else
2195 # Is the header compilable?
2196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2197$as_echo_n "checking $2 usability... " >&6; }
2198cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2199/* end confdefs.h. */
2200$4
2201#include <$2>
2202_ACEOF
2203if ac_fn_c_try_compile "$LINENO"; then :
2204 ac_header_compiler=yes
2205else
2206 ac_header_compiler=no
2207fi
2208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2210$as_echo "$ac_header_compiler" >&6; }
2211
2212# Is the header present?
2213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2214$as_echo_n "checking $2 presence... " >&6; }
2215cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2216/* end confdefs.h. */
2217#include <$2>
2218_ACEOF
2219if ac_fn_c_try_cpp "$LINENO"; then :
2220 ac_header_preproc=yes
2221else
2222 ac_header_preproc=no
2223fi
cristyda16f162011-02-19 23:52:17 +00002224rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2226$as_echo "$ac_header_preproc" >&6; }
2227
2228# So? What about this header?
2229case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2230 yes:no: )
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2232$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2234$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2235 ;;
2236 no:yes:* )
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2238$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2240$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2242$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2244$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2246$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002247( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002248## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002249## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002250 ) | sed "s/^/$as_me: WARNING: /" >&2
2251 ;;
2252esac
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2254$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002255if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002256 $as_echo_n "(cached) " >&6
2257else
2258 eval "$3=\$ac_header_compiler"
2259fi
2260eval ac_res=\$$3
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2262$as_echo "$ac_res" >&6; }
2263fi
cristyda16f162011-02-19 23:52:17 +00002264 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002265
2266} # ac_fn_c_check_header_mongrel
2267
2268# ac_fn_c_try_run LINENO
2269# ----------------------
2270# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2271# that executables *can* be run.
2272ac_fn_c_try_run ()
2273{
2274 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2275 if { { ac_try="$ac_link"
2276case "(($ac_try" in
2277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2278 *) ac_try_echo=$ac_try;;
2279esac
2280eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2281$as_echo "$ac_try_echo"; } >&5
2282 (eval "$ac_link") 2>&5
2283 ac_status=$?
2284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2285 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2286 { { case "(($ac_try" in
2287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2288 *) ac_try_echo=$ac_try;;
2289esac
2290eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2291$as_echo "$ac_try_echo"; } >&5
2292 (eval "$ac_try") 2>&5
2293 ac_status=$?
2294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2295 test $ac_status = 0; }; }; then :
2296 ac_retval=0
2297else
2298 $as_echo "$as_me: program exited with status $ac_status" >&5
2299 $as_echo "$as_me: failed program was:" >&5
2300sed 's/^/| /' conftest.$ac_ext >&5
2301
2302 ac_retval=$ac_status
2303fi
2304 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002305 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002306 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002307
2308} # ac_fn_c_try_run
2309
2310# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2311# -------------------------------------------------------
2312# Tests whether HEADER exists and can be compiled using the include files in
2313# INCLUDES, setting the cache variable VAR accordingly.
2314ac_fn_c_check_header_compile ()
2315{
2316 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2318$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002319if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002320 $as_echo_n "(cached) " >&6
2321else
2322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2323/* end confdefs.h. */
2324$4
2325#include <$2>
2326_ACEOF
2327if ac_fn_c_try_compile "$LINENO"; then :
2328 eval "$3=yes"
2329else
2330 eval "$3=no"
2331fi
2332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2333fi
2334eval ac_res=\$$3
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2336$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002337 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002338
2339} # ac_fn_c_check_header_compile
2340
cristya0b81c32010-01-22 02:54:33 +00002341# ac_fn_cxx_try_compile LINENO
2342# ----------------------------
2343# Try to compile conftest.$ac_ext, and return whether this succeeded.
2344ac_fn_cxx_try_compile ()
2345{
2346 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2347 rm -f conftest.$ac_objext
2348 if { { ac_try="$ac_compile"
2349case "(($ac_try" in
2350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2351 *) ac_try_echo=$ac_try;;
2352esac
2353eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2354$as_echo "$ac_try_echo"; } >&5
2355 (eval "$ac_compile") 2>conftest.err
2356 ac_status=$?
2357 if test -s conftest.err; then
2358 grep -v '^ *+' conftest.err >conftest.er1
2359 cat conftest.er1 >&5
2360 mv -f conftest.er1 conftest.err
2361 fi
2362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2363 test $ac_status = 0; } && {
2364 test -z "$ac_cxx_werror_flag" ||
2365 test ! -s conftest.err
2366 } && test -s conftest.$ac_objext; then :
2367 ac_retval=0
2368else
2369 $as_echo "$as_me: failed program was:" >&5
2370sed 's/^/| /' conftest.$ac_ext >&5
2371
2372 ac_retval=1
2373fi
cristyda16f162011-02-19 23:52:17 +00002374 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002375 as_fn_set_status $ac_retval
2376
2377} # ac_fn_cxx_try_compile
2378
cristyd95b7a52013-10-23 13:12:53 +00002379# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2380# --------------------------------------------
2381# Tries to find the compile-time value of EXPR in a program that includes
2382# INCLUDES, setting VAR accordingly. Returns whether the value could be
2383# computed
2384ac_fn_c_compute_int ()
2385{
2386 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2387 if test "$cross_compiling" = yes; then
2388 # Depending upon the size, compute the lo and hi bounds.
2389cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2390/* end confdefs.h. */
2391$4
2392int
2393main ()
2394{
2395static int test_array [1 - 2 * !(($2) >= 0)];
2396test_array [0] = 0;
2397return test_array [0];
2398
2399 ;
2400 return 0;
2401}
2402_ACEOF
2403if ac_fn_c_try_compile "$LINENO"; then :
2404 ac_lo=0 ac_mid=0
2405 while :; do
2406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2407/* end confdefs.h. */
2408$4
2409int
2410main ()
2411{
2412static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2413test_array [0] = 0;
2414return test_array [0];
2415
2416 ;
2417 return 0;
2418}
2419_ACEOF
2420if ac_fn_c_try_compile "$LINENO"; then :
2421 ac_hi=$ac_mid; break
2422else
2423 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2424 if test $ac_lo -le $ac_mid; then
2425 ac_lo= ac_hi=
2426 break
2427 fi
2428 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2429fi
2430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2431 done
2432else
2433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2434/* end confdefs.h. */
2435$4
2436int
2437main ()
2438{
2439static int test_array [1 - 2 * !(($2) < 0)];
2440test_array [0] = 0;
2441return test_array [0];
2442
2443 ;
2444 return 0;
2445}
2446_ACEOF
2447if ac_fn_c_try_compile "$LINENO"; then :
2448 ac_hi=-1 ac_mid=-1
2449 while :; do
2450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2451/* end confdefs.h. */
2452$4
2453int
2454main ()
2455{
2456static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2457test_array [0] = 0;
2458return test_array [0];
2459
2460 ;
2461 return 0;
2462}
2463_ACEOF
2464if ac_fn_c_try_compile "$LINENO"; then :
2465 ac_lo=$ac_mid; break
2466else
2467 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2468 if test $ac_mid -le $ac_hi; then
2469 ac_lo= ac_hi=
2470 break
2471 fi
2472 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2473fi
2474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2475 done
2476else
2477 ac_lo= ac_hi=
2478fi
2479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2480fi
2481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2482# Binary search between lo and hi bounds.
2483while test "x$ac_lo" != "x$ac_hi"; do
2484 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2486/* end confdefs.h. */
2487$4
2488int
2489main ()
2490{
2491static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2492test_array [0] = 0;
2493return test_array [0];
2494
2495 ;
2496 return 0;
2497}
2498_ACEOF
2499if ac_fn_c_try_compile "$LINENO"; then :
2500 ac_hi=$ac_mid
2501else
2502 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2503fi
2504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2505done
2506case $ac_lo in #((
2507?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2508'') ac_retval=1 ;;
2509esac
2510 else
2511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2512/* end confdefs.h. */
2513$4
2514static long int longval () { return $2; }
2515static unsigned long int ulongval () { return $2; }
2516#include <stdio.h>
2517#include <stdlib.h>
2518int
2519main ()
2520{
2521
2522 FILE *f = fopen ("conftest.val", "w");
2523 if (! f)
2524 return 1;
2525 if (($2) < 0)
2526 {
2527 long int i = longval ();
2528 if (i != ($2))
2529 return 1;
2530 fprintf (f, "%ld", i);
2531 }
2532 else
2533 {
2534 unsigned long int i = ulongval ();
2535 if (i != ($2))
2536 return 1;
2537 fprintf (f, "%lu", i);
2538 }
2539 /* Do not output a trailing newline, as this causes \r\n confusion
2540 on some platforms. */
2541 return ferror (f) || fclose (f) != 0;
2542
2543 ;
2544 return 0;
2545}
2546_ACEOF
2547if ac_fn_c_try_run "$LINENO"; then :
2548 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2549else
2550 ac_retval=1
2551fi
2552rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2553 conftest.$ac_objext conftest.beam conftest.$ac_ext
2554rm -f conftest.val
2555
2556 fi
2557 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2558 as_fn_set_status $ac_retval
2559
2560} # ac_fn_c_compute_int
2561
cristy8b350f62009-11-15 23:12:43 +00002562# ac_fn_c_try_link LINENO
2563# -----------------------
2564# Try to link conftest.$ac_ext, and return whether this succeeded.
2565ac_fn_c_try_link ()
2566{
2567 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2568 rm -f conftest.$ac_objext conftest$ac_exeext
2569 if { { ac_try="$ac_link"
2570case "(($ac_try" in
2571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2572 *) ac_try_echo=$ac_try;;
2573esac
2574eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2575$as_echo "$ac_try_echo"; } >&5
2576 (eval "$ac_link") 2>conftest.err
2577 ac_status=$?
2578 if test -s conftest.err; then
2579 grep -v '^ *+' conftest.err >conftest.er1
2580 cat conftest.er1 >&5
2581 mv -f conftest.er1 conftest.err
2582 fi
2583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2584 test $ac_status = 0; } && {
2585 test -z "$ac_c_werror_flag" ||
2586 test ! -s conftest.err
2587 } && test -s conftest$ac_exeext && {
2588 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002589 test -x conftest$ac_exeext
cristy8b350f62009-11-15 23:12:43 +00002590 }; then :
2591 ac_retval=0
2592else
2593 $as_echo "$as_me: failed program was:" >&5
2594sed 's/^/| /' conftest.$ac_ext >&5
2595
2596 ac_retval=1
2597fi
2598 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2599 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2600 # interfere with the next link command; also delete a directory that is
2601 # left behind by Apple's compiler. We do this before executing the actions.
2602 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002603 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002604 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002605
2606} # ac_fn_c_try_link
2607
cristy73bd4a52010-10-05 11:24:23 +00002608# ac_fn_c_check_func LINENO FUNC VAR
2609# ----------------------------------
2610# Tests whether FUNC exists, setting the cache variable VAR accordingly
2611ac_fn_c_check_func ()
2612{
2613 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2615$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002616if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002617 $as_echo_n "(cached) " >&6
2618else
2619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2620/* end confdefs.h. */
2621/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2622 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2623#define $2 innocuous_$2
2624
2625/* System header to define __stub macros and hopefully few prototypes,
2626 which can conflict with char $2 (); below.
2627 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2628 <limits.h> exists even on freestanding compilers. */
2629
2630#ifdef __STDC__
2631# include <limits.h>
2632#else
2633# include <assert.h>
2634#endif
2635
2636#undef $2
2637
2638/* Override any GCC internal prototype to avoid an error.
2639 Use char because int might match the return type of a GCC
2640 builtin and then its argument prototype would still apply. */
2641#ifdef __cplusplus
2642extern "C"
2643#endif
2644char $2 ();
2645/* The GNU C library defines this for functions which it implements
2646 to always fail with ENOSYS. Some functions are actually named
2647 something starting with __ and the normal name is an alias. */
2648#if defined __stub_$2 || defined __stub___$2
2649choke me
2650#endif
2651
2652int
2653main ()
2654{
2655return $2 ();
2656 ;
2657 return 0;
2658}
2659_ACEOF
2660if ac_fn_c_try_link "$LINENO"; then :
2661 eval "$3=yes"
2662else
2663 eval "$3=no"
2664fi
2665rm -f core conftest.err conftest.$ac_objext \
2666 conftest$ac_exeext conftest.$ac_ext
2667fi
2668eval ac_res=\$$3
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2670$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002671 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002672
2673} # ac_fn_c_check_func
2674
2675# ac_fn_cxx_try_cpp LINENO
2676# ------------------------
2677# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2678ac_fn_cxx_try_cpp ()
2679{
2680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2681 if { { ac_try="$ac_cpp conftest.$ac_ext"
2682case "(($ac_try" in
2683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2684 *) ac_try_echo=$ac_try;;
2685esac
2686eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2687$as_echo "$ac_try_echo"; } >&5
2688 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2689 ac_status=$?
2690 if test -s conftest.err; then
2691 grep -v '^ *+' conftest.err >conftest.er1
2692 cat conftest.er1 >&5
2693 mv -f conftest.er1 conftest.err
2694 fi
2695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002696 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002697 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2698 test ! -s conftest.err
2699 }; then :
2700 ac_retval=0
2701else
2702 $as_echo "$as_me: failed program was:" >&5
2703sed 's/^/| /' conftest.$ac_ext >&5
2704
2705 ac_retval=1
2706fi
cristyda16f162011-02-19 23:52:17 +00002707 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002708 as_fn_set_status $ac_retval
2709
2710} # ac_fn_cxx_try_cpp
2711
2712# ac_fn_cxx_try_link LINENO
2713# -------------------------
2714# Try to link conftest.$ac_ext, and return whether this succeeded.
2715ac_fn_cxx_try_link ()
2716{
2717 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2718 rm -f conftest.$ac_objext conftest$ac_exeext
2719 if { { ac_try="$ac_link"
2720case "(($ac_try" in
2721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2722 *) ac_try_echo=$ac_try;;
2723esac
2724eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2725$as_echo "$ac_try_echo"; } >&5
2726 (eval "$ac_link") 2>conftest.err
2727 ac_status=$?
2728 if test -s conftest.err; then
2729 grep -v '^ *+' conftest.err >conftest.er1
2730 cat conftest.er1 >&5
2731 mv -f conftest.er1 conftest.err
2732 fi
2733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2734 test $ac_status = 0; } && {
2735 test -z "$ac_cxx_werror_flag" ||
2736 test ! -s conftest.err
2737 } && test -s conftest$ac_exeext && {
2738 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002739 test -x conftest$ac_exeext
cristy73bd4a52010-10-05 11:24:23 +00002740 }; then :
2741 ac_retval=0
2742else
2743 $as_echo "$as_me: failed program was:" >&5
2744sed 's/^/| /' conftest.$ac_ext >&5
2745
2746 ac_retval=1
2747fi
2748 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2749 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2750 # interfere with the next link command; also delete a directory that is
2751 # left behind by Apple's compiler. We do this before executing the actions.
2752 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002753 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002754 as_fn_set_status $ac_retval
2755
2756} # ac_fn_cxx_try_link
2757
cristy8b350f62009-11-15 23:12:43 +00002758# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2759# -------------------------------------------
2760# Tests whether TYPE exists after having included INCLUDES, setting cache
2761# variable VAR accordingly.
2762ac_fn_c_check_type ()
2763{
2764 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2766$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002767if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002768 $as_echo_n "(cached) " >&6
2769else
2770 eval "$3=no"
2771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2772/* end confdefs.h. */
2773$4
2774int
2775main ()
2776{
2777if (sizeof ($2))
2778 return 0;
2779 ;
2780 return 0;
2781}
2782_ACEOF
2783if ac_fn_c_try_compile "$LINENO"; then :
2784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2785/* end confdefs.h. */
2786$4
2787int
2788main ()
2789{
2790if (sizeof (($2)))
2791 return 0;
2792 ;
2793 return 0;
2794}
2795_ACEOF
2796if ac_fn_c_try_compile "$LINENO"; then :
2797
2798else
2799 eval "$3=yes"
2800fi
2801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2802fi
2803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2804fi
2805eval ac_res=\$$3
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2807$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002808 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002809
2810} # ac_fn_c_check_type
2811
cristy92703d82010-04-26 00:18:18 +00002812# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2813# ----------------------------------------------------
2814# Tries to find if the field MEMBER exists in type AGGR, after including
2815# INCLUDES, setting cache variable VAR accordingly.
2816ac_fn_c_check_member ()
2817{
2818 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2820$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002821if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002822 $as_echo_n "(cached) " >&6
2823else
2824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2825/* end confdefs.h. */
2826$5
2827int
2828main ()
2829{
2830static $2 ac_aggr;
2831if (ac_aggr.$3)
2832return 0;
2833 ;
2834 return 0;
2835}
2836_ACEOF
2837if ac_fn_c_try_compile "$LINENO"; then :
2838 eval "$4=yes"
2839else
2840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2841/* end confdefs.h. */
2842$5
2843int
2844main ()
2845{
2846static $2 ac_aggr;
2847if (sizeof ac_aggr.$3)
2848return 0;
2849 ;
2850 return 0;
2851}
2852_ACEOF
2853if ac_fn_c_try_compile "$LINENO"; then :
2854 eval "$4=yes"
2855else
2856 eval "$4=no"
2857fi
2858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2859fi
2860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2861fi
2862eval ac_res=\$$4
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2864$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002865 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002866
2867} # ac_fn_c_check_member
2868
cristy5eef09f2012-10-16 12:08:28 +00002869# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2870# ---------------------------------------------
2871# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2872# accordingly.
2873ac_fn_c_check_decl ()
2874{
2875 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2876 as_decl_name=`echo $2|sed 's/ *(.*//'`
2877 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2879$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2880if eval \${$3+:} false; then :
2881 $as_echo_n "(cached) " >&6
2882else
2883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2884/* end confdefs.h. */
2885$4
2886int
2887main ()
2888{
2889#ifndef $as_decl_name
2890#ifdef __cplusplus
2891 (void) $as_decl_use;
2892#else
2893 (void) $as_decl_name;
2894#endif
2895#endif
2896
2897 ;
2898 return 0;
2899}
2900_ACEOF
2901if ac_fn_c_try_compile "$LINENO"; then :
2902 eval "$3=yes"
2903else
2904 eval "$3=no"
2905fi
2906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2907fi
2908eval ac_res=\$$3
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2910$as_echo "$ac_res" >&6; }
2911 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2912
2913} # ac_fn_c_check_decl
2914
cristy501c8042011-05-26 17:46:28 +00002915# ac_fn_c_find_intX_t LINENO BITS VAR
2916# -----------------------------------
2917# Finds a signed integer type with width BITS, setting cache variable VAR
2918# accordingly.
2919ac_fn_c_find_intX_t ()
2920{
2921 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2923$as_echo_n "checking for int$2_t... " >&6; }
2924if eval \${$3+:} false; then :
2925 $as_echo_n "(cached) " >&6
2926else
2927 eval "$3=no"
2928 # Order is important - never check a type that is potentially smaller
2929 # than half of the expected target width.
2930 for ac_type in int$2_t 'int' 'long int' \
2931 'long long int' 'short int' 'signed char'; do
2932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2933/* end confdefs.h. */
2934$ac_includes_default
2935 enum { N = $2 / 2 - 1 };
2936int
2937main ()
2938{
2939static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
cristy14fefe52012-05-21 00:59:18 +00002940test_array [0] = 0;
2941return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002942
2943 ;
2944 return 0;
2945}
2946_ACEOF
2947if ac_fn_c_try_compile "$LINENO"; then :
2948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2949/* end confdefs.h. */
2950$ac_includes_default
2951 enum { N = $2 / 2 - 1 };
2952int
2953main ()
2954{
2955static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2956 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
cristy14fefe52012-05-21 00:59:18 +00002957test_array [0] = 0;
2958return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002959
2960 ;
2961 return 0;
2962}
2963_ACEOF
2964if ac_fn_c_try_compile "$LINENO"; then :
2965
2966else
2967 case $ac_type in #(
2968 int$2_t) :
2969 eval "$3=yes" ;; #(
2970 *) :
2971 eval "$3=\$ac_type" ;;
2972esac
2973fi
2974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2975fi
2976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2977 if eval test \"x\$"$3"\" = x"no"; then :
2978
2979else
2980 break
2981fi
2982 done
2983fi
2984eval ac_res=\$$3
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2986$as_echo "$ac_res" >&6; }
2987 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2988
2989} # ac_fn_c_find_intX_t
2990
2991# ac_fn_c_find_uintX_t LINENO BITS VAR
2992# ------------------------------------
2993# Finds an unsigned integer type with width BITS, setting cache variable VAR
2994# accordingly.
2995ac_fn_c_find_uintX_t ()
2996{
2997 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2999$as_echo_n "checking for uint$2_t... " >&6; }
3000if eval \${$3+:} false; then :
3001 $as_echo_n "(cached) " >&6
3002else
3003 eval "$3=no"
3004 # Order is important - never check a type that is potentially smaller
3005 # than half of the expected target width.
3006 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
3007 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
3008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3009/* end confdefs.h. */
3010$ac_includes_default
3011int
3012main ()
3013{
3014static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
cristy14fefe52012-05-21 00:59:18 +00003015test_array [0] = 0;
3016return test_array [0];
cristy501c8042011-05-26 17:46:28 +00003017
3018 ;
3019 return 0;
3020}
3021_ACEOF
3022if ac_fn_c_try_compile "$LINENO"; then :
3023 case $ac_type in #(
3024 uint$2_t) :
3025 eval "$3=yes" ;; #(
3026 *) :
3027 eval "$3=\$ac_type" ;;
3028esac
3029fi
3030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3031 if eval test \"x\$"$3"\" = x"no"; then :
3032
3033else
3034 break
3035fi
3036 done
3037fi
3038eval ac_res=\$$3
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3040$as_echo "$ac_res" >&6; }
3041 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3042
3043} # ac_fn_c_find_uintX_t
3044
cristy8b350f62009-11-15 23:12:43 +00003045# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
3046# ---------------------------------------------------------
3047# Tests whether HEADER exists, giving a warning if it cannot be compiled using
3048# the include files in INCLUDES and setting the cache variable VAR
3049# accordingly.
3050ac_fn_cxx_check_header_mongrel ()
3051{
3052 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00003053 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3055$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003056if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003057 $as_echo_n "(cached) " >&6
3058fi
3059eval ac_res=\$$3
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3061$as_echo "$ac_res" >&6; }
3062else
3063 # Is the header compilable?
3064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3065$as_echo_n "checking $2 usability... " >&6; }
3066cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3067/* end confdefs.h. */
3068$4
3069#include <$2>
3070_ACEOF
3071if ac_fn_cxx_try_compile "$LINENO"; then :
3072 ac_header_compiler=yes
3073else
3074 ac_header_compiler=no
3075fi
3076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3078$as_echo "$ac_header_compiler" >&6; }
3079
3080# Is the header present?
3081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3082$as_echo_n "checking $2 presence... " >&6; }
3083cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3084/* end confdefs.h. */
3085#include <$2>
3086_ACEOF
3087if ac_fn_cxx_try_cpp "$LINENO"; then :
3088 ac_header_preproc=yes
3089else
3090 ac_header_preproc=no
3091fi
cristyda16f162011-02-19 23:52:17 +00003092rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00003093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3094$as_echo "$ac_header_preproc" >&6; }
3095
3096# So? What about this header?
3097case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3098 yes:no: )
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3100$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3102$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3103 ;;
3104 no:yes:* )
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3106$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3108$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3110$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3112$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3114$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003115( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00003116## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00003117## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00003118 ) | sed "s/^/$as_me: WARNING: /" >&2
3119 ;;
3120esac
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3122$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003123if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003124 $as_echo_n "(cached) " >&6
3125else
3126 eval "$3=\$ac_header_compiler"
3127fi
3128eval ac_res=\$$3
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3130$as_echo "$ac_res" >&6; }
3131fi
cristyda16f162011-02-19 23:52:17 +00003132 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00003133
3134} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003135cat >config.log <<_ACEOF
3136This file contains any messages produced by compilers while
3137running configure, to aid debugging if configure makes a mistake.
3138
cristy29eb34e2011-10-16 00:46:08 +00003139It was created by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +00003140generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003141
3142 $ $0 $@
3143
3144_ACEOF
3145exec 5>>config.log
3146{
3147cat <<_ASUNAME
3148## --------- ##
3149## Platform. ##
3150## --------- ##
3151
3152hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3153uname -m = `(uname -m) 2>/dev/null || echo unknown`
3154uname -r = `(uname -r) 2>/dev/null || echo unknown`
3155uname -s = `(uname -s) 2>/dev/null || echo unknown`
3156uname -v = `(uname -v) 2>/dev/null || echo unknown`
3157
3158/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3159/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3160
3161/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3162/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3163/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3164/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3165/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3166/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3167/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3168
3169_ASUNAME
3170
3171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3172for as_dir in $PATH
3173do
3174 IFS=$as_save_IFS
3175 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003176 $as_echo "PATH: $as_dir"
3177 done
cristy3ed852e2009-09-05 21:47:34 +00003178IFS=$as_save_IFS
3179
3180} >&5
3181
3182cat >&5 <<_ACEOF
3183
3184
3185## ----------- ##
3186## Core tests. ##
3187## ----------- ##
3188
3189_ACEOF
3190
3191
3192# Keep a trace of the command line.
3193# Strip out --no-create and --no-recursion so they do not pile up.
3194# Strip out --silent because we don't want to record it for future runs.
3195# Also quote any args containing shell meta-characters.
3196# Make two passes to allow for proper duplicate-argument suppression.
3197ac_configure_args=
3198ac_configure_args0=
3199ac_configure_args1=
3200ac_must_keep_next=false
3201for ac_pass in 1 2
3202do
3203 for ac_arg
3204 do
3205 case $ac_arg in
3206 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3207 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3208 | -silent | --silent | --silen | --sile | --sil)
3209 continue ;;
3210 *\'*)
3211 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3212 esac
3213 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003214 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003215 2)
cristy8b350f62009-11-15 23:12:43 +00003216 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003217 if test $ac_must_keep_next = true; then
3218 ac_must_keep_next=false # Got value, back to normal.
3219 else
3220 case $ac_arg in
3221 *=* | --config-cache | -C | -disable-* | --disable-* \
3222 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3223 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3224 | -with-* | --with-* | -without-* | --without-* | --x)
3225 case "$ac_configure_args0 " in
3226 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3227 esac
3228 ;;
3229 -* ) ac_must_keep_next=true ;;
3230 esac
3231 fi
cristy8b350f62009-11-15 23:12:43 +00003232 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003233 ;;
3234 esac
3235 done
3236done
cristy8b350f62009-11-15 23:12:43 +00003237{ ac_configure_args0=; unset ac_configure_args0;}
3238{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003239
3240# When interrupted or exit'd, cleanup temporary files, and complete
3241# config.log. We remove comments because anyway the quotes in there
3242# would cause problems or look ugly.
3243# WARNING: Use '\'' to represent an apostrophe within the trap.
3244# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3245trap 'exit_status=$?
3246 # Save into config.log some information that might help in debugging.
3247 {
3248 echo
3249
cristy98dddb52010-11-04 00:30:15 +00003250 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003251## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003252## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003253 echo
3254 # The following way of writing the cache mishandles newlines in values,
3255(
3256 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3257 eval ac_val=\$$ac_var
3258 case $ac_val in #(
3259 *${as_nl}*)
3260 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003261 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003262$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3263 esac
3264 case $ac_var in #(
3265 _ | IFS | as_nl) ;; #(
3266 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003267 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003268 esac ;;
3269 esac
3270 done
3271 (set) 2>&1 |
3272 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3273 *${as_nl}ac_space=\ *)
3274 sed -n \
3275 "s/'\''/'\''\\\\'\'''\''/g;
3276 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3277 ;; #(
3278 *)
3279 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3280 ;;
3281 esac |
3282 sort
3283)
3284 echo
3285
cristy98dddb52010-11-04 00:30:15 +00003286 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003287## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003288## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003289 echo
3290 for ac_var in $ac_subst_vars
3291 do
3292 eval ac_val=\$$ac_var
3293 case $ac_val in
3294 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3295 esac
3296 $as_echo "$ac_var='\''$ac_val'\''"
3297 done | sort
3298 echo
3299
3300 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003301 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003302## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003303## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003304 echo
3305 for ac_var in $ac_subst_files
3306 do
3307 eval ac_val=\$$ac_var
3308 case $ac_val in
3309 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3310 esac
3311 $as_echo "$ac_var='\''$ac_val'\''"
3312 done | sort
3313 echo
3314 fi
3315
3316 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003317 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003318## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003319## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003320 echo
3321 cat confdefs.h
3322 echo
3323 fi
3324 test "$ac_signal" != 0 &&
3325 $as_echo "$as_me: caught signal $ac_signal"
3326 $as_echo "$as_me: exit $exit_status"
3327 } >&5
3328 rm -f core *.core core.conftest.* &&
3329 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3330 exit $exit_status
3331' 0
3332for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003333 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003334done
3335ac_signal=0
3336
3337# confdefs.h avoids OS command line length limits that DEFS can exceed.
3338rm -f -r conftest* confdefs.h
3339
cristy8b350f62009-11-15 23:12:43 +00003340$as_echo "/* confdefs.h */" > confdefs.h
3341
cristy3ed852e2009-09-05 21:47:34 +00003342# Predefined preprocessor variables.
3343
3344cat >>confdefs.h <<_ACEOF
3345#define PACKAGE_NAME "$PACKAGE_NAME"
3346_ACEOF
3347
cristy3ed852e2009-09-05 21:47:34 +00003348cat >>confdefs.h <<_ACEOF
3349#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3350_ACEOF
3351
cristy3ed852e2009-09-05 21:47:34 +00003352cat >>confdefs.h <<_ACEOF
3353#define PACKAGE_VERSION "$PACKAGE_VERSION"
3354_ACEOF
3355
cristy3ed852e2009-09-05 21:47:34 +00003356cat >>confdefs.h <<_ACEOF
3357#define PACKAGE_STRING "$PACKAGE_STRING"
3358_ACEOF
3359
cristy3ed852e2009-09-05 21:47:34 +00003360cat >>confdefs.h <<_ACEOF
3361#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3362_ACEOF
3363
cristy8b350f62009-11-15 23:12:43 +00003364cat >>confdefs.h <<_ACEOF
3365#define PACKAGE_URL "$PACKAGE_URL"
3366_ACEOF
3367
cristy3ed852e2009-09-05 21:47:34 +00003368
3369# Let the site file select an alternate cache file if it wants to.
3370# Prefer an explicitly selected file to automatically selected ones.
3371ac_site_file1=NONE
3372ac_site_file2=NONE
3373if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003374 # We do not want a PATH search for config.site.
3375 case $CONFIG_SITE in #((
3376 -*) ac_site_file1=./$CONFIG_SITE;;
3377 */*) ac_site_file1=$CONFIG_SITE;;
3378 *) ac_site_file1=./$CONFIG_SITE;;
3379 esac
cristy3ed852e2009-09-05 21:47:34 +00003380elif test "x$prefix" != xNONE; then
3381 ac_site_file1=$prefix/share/config.site
3382 ac_site_file2=$prefix/etc/config.site
3383else
3384 ac_site_file1=$ac_default_prefix/share/config.site
3385 ac_site_file2=$ac_default_prefix/etc/config.site
3386fi
3387for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3388do
3389 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003390 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003391 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003392$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3393 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003394 . "$ac_site_file" \
3395 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3396$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3397as_fn_error $? "failed to load site script $ac_site_file
3398See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003399 fi
3400done
3401
3402if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003403 # Some versions of bash will fail to source /dev/null (special files
3404 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3405 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003406 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003407$as_echo "$as_me: loading cache $cache_file" >&6;}
3408 case $cache_file in
3409 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3410 *) . "./$cache_file";;
3411 esac
3412 fi
3413else
cristy8b350f62009-11-15 23:12:43 +00003414 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003415$as_echo "$as_me: creating cache $cache_file" >&6;}
3416 >$cache_file
3417fi
3418
cristycd4c5312009-11-22 01:19:08 +00003419as_fn_append ac_header_list " stdlib.h"
3420as_fn_append ac_header_list " unistd.h"
3421as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003422# Check that the precious variables saved in the cache have kept the same
3423# value.
3424ac_cache_corrupted=false
3425for ac_var in $ac_precious_vars; do
3426 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3427 eval ac_new_set=\$ac_env_${ac_var}_set
3428 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3429 eval ac_new_val=\$ac_env_${ac_var}_value
3430 case $ac_old_set,$ac_new_set in
3431 set,)
cristy8b350f62009-11-15 23:12:43 +00003432 { $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 +00003433$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3434 ac_cache_corrupted=: ;;
3435 ,set)
cristy8b350f62009-11-15 23:12:43 +00003436 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003437$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3438 ac_cache_corrupted=: ;;
3439 ,);;
3440 *)
3441 if test "x$ac_old_val" != "x$ac_new_val"; then
3442 # differences in whitespace do not lead to failure.
3443 ac_old_val_w=`echo x $ac_old_val`
3444 ac_new_val_w=`echo x $ac_new_val`
3445 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003446 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003447$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3448 ac_cache_corrupted=:
3449 else
cristy8b350f62009-11-15 23:12:43 +00003450 { $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 +00003451$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3452 eval $ac_var=\$ac_old_val
3453 fi
cristy8b350f62009-11-15 23:12:43 +00003454 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003455$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003456 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003457$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3458 fi;;
3459 esac
3460 # Pass precious variables to config.status.
3461 if test "$ac_new_set" = set; then
3462 case $ac_new_val in
3463 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3464 *) ac_arg=$ac_var=$ac_new_val ;;
3465 esac
3466 case " $ac_configure_args " in
3467 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003468 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003469 esac
3470 fi
3471done
3472if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003473 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003474$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003475 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003476$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003477 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003478fi
cristy8b350f62009-11-15 23:12:43 +00003479## -------------------- ##
3480## Main body of script. ##
3481## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003482
3483ac_ext=c
3484ac_cpp='$CPP $CPPFLAGS'
3485ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3486ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3487ac_compiler_gnu=$ac_cv_c_compiler_gnu
3488
3489
3490
3491ac_aux_dir=
3492for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003493 if test -f "$ac_dir/install-sh"; then
3494 ac_aux_dir=$ac_dir
3495 ac_install_sh="$ac_aux_dir/install-sh -c"
3496 break
3497 elif test -f "$ac_dir/install.sh"; then
3498 ac_aux_dir=$ac_dir
3499 ac_install_sh="$ac_aux_dir/install.sh -c"
3500 break
3501 elif test -f "$ac_dir/shtool"; then
3502 ac_aux_dir=$ac_dir
3503 ac_install_sh="$ac_aux_dir/shtool install -c"
3504 break
3505 fi
cristy3ed852e2009-09-05 21:47:34 +00003506done
3507if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003508 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003509fi
3510
3511# These three variables are undocumented and unsupported,
3512# and are intended to be withdrawn in a future Autoconf release.
3513# They can cause serious problems if a builder's source tree is in a directory
3514# whose full name contains unusual characters.
3515ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3516ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3517ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3518
3519
3520
3521
3522ac_config_headers="$ac_config_headers config/config.h"
3523
cristy24fc1fe2010-10-23 21:13:01 +00003524
cristy01ff9f32012-12-01 18:15:29 +00003525ac_config_commands="$ac_config_commands MagickCore/magick-baseconfig.h"
cristy73bd4a52010-10-05 11:24:23 +00003526
cristy8d0ff762013-03-10 20:33:28 +00003527ac_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 +00003528
3529
3530#
3531# Save initial user-tunable values
3532#
3533USER_LIBS=$LIBS
3534for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3535 eval isset=\${$var+set}
3536 if test "$isset" = 'set'; then
3537 eval val=$`echo $var`
3538 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3539 fi
3540done
3541
3542
3543CONFIGURE_ARGS="$0 ${ac_configure_args}"
3544
3545
3546# Source file containing package/library versioning information.
3547. ${srcdir}/version.sh
3548
cristy15a88782010-01-31 23:24:49 +00003549echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003550# Make sure we can run config.sub.
3551$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003552 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003553
cristy8b350f62009-11-15 23:12:43 +00003554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003555$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003556if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003557 $as_echo_n "(cached) " >&6
3558else
3559 ac_build_alias=$build_alias
3560test "x$ac_build_alias" = x &&
3561 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3562test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003563 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003564ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003565 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003566
3567fi
cristy8b350f62009-11-15 23:12:43 +00003568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003569$as_echo "$ac_cv_build" >&6; }
3570case $ac_cv_build in
3571*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003572*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003573esac
3574build=$ac_cv_build
3575ac_save_IFS=$IFS; IFS='-'
3576set x $ac_cv_build
3577shift
3578build_cpu=$1
3579build_vendor=$2
3580shift; shift
3581# Remember, the first character of IFS is used to create $*,
3582# except with old shells:
3583build_os=$*
3584IFS=$ac_save_IFS
3585case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3586
3587
cristy8b350f62009-11-15 23:12:43 +00003588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003589$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003590if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003591 $as_echo_n "(cached) " >&6
3592else
3593 if test "x$host_alias" = x; then
3594 ac_cv_host=$ac_cv_build
3595else
3596 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003597 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003598fi
3599
3600fi
cristy8b350f62009-11-15 23:12:43 +00003601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003602$as_echo "$ac_cv_host" >&6; }
3603case $ac_cv_host in
3604*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003605*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003606esac
3607host=$ac_cv_host
3608ac_save_IFS=$IFS; IFS='-'
3609set x $ac_cv_host
3610shift
3611host_cpu=$1
3612host_vendor=$2
3613shift; shift
3614# Remember, the first character of IFS is used to create $*,
3615# except with old shells:
3616host_os=$*
3617IFS=$ac_save_IFS
3618case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3619
3620
cristy8b350f62009-11-15 23:12:43 +00003621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003622$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003623if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003624 $as_echo_n "(cached) " >&6
3625else
3626 if test "x$target_alias" = x; then
3627 ac_cv_target=$ac_cv_host
3628else
3629 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003630 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003631fi
3632
3633fi
cristy8b350f62009-11-15 23:12:43 +00003634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003635$as_echo "$ac_cv_target" >&6; }
3636case $ac_cv_target in
3637*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003638*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003639esac
3640target=$ac_cv_target
3641ac_save_IFS=$IFS; IFS='-'
3642set x $ac_cv_target
3643shift
3644target_cpu=$1
3645target_vendor=$2
3646shift; shift
3647# Remember, the first character of IFS is used to create $*,
3648# except with old shells:
3649target_os=$*
3650IFS=$ac_save_IFS
3651case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3652
3653
3654# The aliases save the names the user supplied, while $host etc.
3655# will get canonicalized.
3656test -n "$target_alias" &&
3657 test "$program_prefix$program_suffix$program_transform_name" = \
3658 NONENONEs,x,x, &&
3659 program_prefix=${target_alias}-
3660
cristy837d6dc2010-02-27 01:16:57 +00003661
3662
3663
cristy8be34142012-06-17 14:07:18 +00003664
cristy19615b82011-04-13 20:02:01 +00003665MAGICK_TARGET_CPU=$host_cpu
cristy3225a072010-04-17 01:47:28 +00003666
3667
cristy27d53d62012-07-29 23:30:07 +00003668cat >>confdefs.h <<_ACEOF
3669#define MAGICK_TARGET_CPU $MAGICK_TARGET_CPU
3670_ACEOF
3671
3672
cristy19615b82011-04-13 20:02:01 +00003673MAGICK_TARGET_VENDOR=$host_vendor
cristy3225a072010-04-17 01:47:28 +00003674
3675
cristy27d53d62012-07-29 23:30:07 +00003676cat >>confdefs.h <<_ACEOF
3677#define MAGICK_TARGET_VENDOR $MAGICK_TARGET_VENDOR
3678_ACEOF
3679
3680
cristy19615b82011-04-13 20:02:01 +00003681MAGICK_TARGET_OS=$host_os
cristy3225a072010-04-17 01:47:28 +00003682
3683
cristy27d53d62012-07-29 23:30:07 +00003684cat >>confdefs.h <<_ACEOF
3685#define MAGICK_TARGET_OS $MAGICK_TARGET_OS
3686_ACEOF
3687
3688
cristy37442762013-02-10 21:07:23 +00003689
3690# Substitute versioning
3691MAGICK_MAJOR_VERSION=7
3692
3693MAGICK_MINOR_VERSION=0
3694
3695MAGICK_MICRO_VERSION=0
3696
3697MAGICK_PATCHLEVEL_VERSION=0
3698
3699MAGICK_VERSION=7.0.0-0
3700
cristya8940fd2014-01-12 22:52:25 +00003701MAGICK_SVN_REVISION=14346:14360M
cristy37442762013-02-10 21:07:23 +00003702
3703
cristy3ed852e2009-09-05 21:47:34 +00003704# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003705MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3706
3707MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3708
cristy37442762013-02-10 21:07:23 +00003709
cristy5ed9c6e2013-07-14 21:20:31 +00003710MAGICKPP_LIBRARY_CURRENT_MIN=`expr $MAGICKPP_LIBRARY_CURRENT - $MAGICKPP_LIBRARY_AGE`
3711
3712MAGICKPP_LIBRARY_VERSION_INFO=$MAGICKPP_LIBRARY_CURRENT:$MAGICKPP_LIBRARY_REVISION:$MAGICKPP_LIBRARY_AGE
3713
3714
cristyd694ca32011-03-27 21:42:54 +00003715
cristy3ed852e2009-09-05 21:47:34 +00003716# Ensure that make can run correctly
cristy73bd4a52010-10-05 11:24:23 +00003717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3718$as_echo_n "checking whether build environment is sane... " >&6; }
cristy73bd4a52010-10-05 11:24:23 +00003719# Reject unsafe characters in $srcdir or the absolute working directory
3720# name. Accept space and tab only in the latter.
3721am_lf='
3722'
3723case `pwd` in
3724 *[\\\"\#\$\&\'\`$am_lf]*)
cristy98dddb52010-11-04 00:30:15 +00003725 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003726esac
3727case $srcdir in
3728 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristyc0890a62012-07-19 00:18:20 +00003729 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003730esac
cristy3ed852e2009-09-05 21:47:34 +00003731
cristyc0890a62012-07-19 00:18:20 +00003732# Do 'set' in a subshell so we don't clobber the current shell's
cristy73bd4a52010-10-05 11:24:23 +00003733# arguments. Must try -L first in case configure is actually a
3734# symlink; some systems play weird games with the mod time of symlinks
3735# (eg FreeBSD returns the mod time of the symlink's containing
3736# directory).
3737if (
cristyc0890a62012-07-19 00:18:20 +00003738 am_has_slept=no
3739 for am_try in 1 2; do
3740 echo "timestamp, slept: $am_has_slept" > conftest.file
3741 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3742 if test "$*" = "X"; then
3743 # -L didn't work.
3744 set X `ls -t "$srcdir/configure" conftest.file`
3745 fi
3746 if test "$*" != "X $srcdir/configure conftest.file" \
3747 && test "$*" != "X conftest.file $srcdir/configure"; then
cristy73bd4a52010-10-05 11:24:23 +00003748
cristyc0890a62012-07-19 00:18:20 +00003749 # If neither matched, then we have a broken ls. This can happen
3750 # if, for instance, CONFIG_SHELL is bash and it inherits a
3751 # broken ls alias from the environment. This has actually
3752 # happened. Such a system could not be considered "sane".
3753 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3754 alias in your environment" "$LINENO" 5
3755 fi
3756 if test "$2" = conftest.file || test $am_try -eq 2; then
3757 break
3758 fi
3759 # Just in case.
3760 sleep 1
3761 am_has_slept=yes
3762 done
cristy73bd4a52010-10-05 11:24:23 +00003763 test "$2" = conftest.file
3764 )
3765then
3766 # Ok.
3767 :
3768else
cristy98dddb52010-11-04 00:30:15 +00003769 as_fn_error $? "newly created file is older than distributed files!
cristy73bd4a52010-10-05 11:24:23 +00003770Check your system clock" "$LINENO" 5
3771fi
3772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3773$as_echo "yes" >&6; }
cristyc0890a62012-07-19 00:18:20 +00003774# If we didn't sleep, we still need to ensure time stamps of config.status and
3775# generated files are strictly newer.
3776am_sleep_pid=
3777if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3778 ( sleep 1 ) &
3779 am_sleep_pid=$!
3780fi
cristy73bd4a52010-10-05 11:24:23 +00003781
cristyc0890a62012-07-19 00:18:20 +00003782rm -f conftest.file
3783
3784
cristya5bda012013-11-03 18:05:38 +00003785am__api_version='1.14'
cristy73bd4a52010-10-05 11:24:23 +00003786
3787# Find a good install program. We prefer a C program (faster),
3788# so one script is as good as another. But avoid the broken or
3789# incompatible versions:
3790# SysV /etc/install, /usr/sbin/install
3791# SunOS /usr/etc/install
3792# IRIX /sbin/install
3793# AIX /bin/install
3794# AmigaOS /C/install, which installs bootblocks on floppy discs
3795# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3796# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3797# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3798# OS/2's system install, which has a completely different semantic
3799# ./install, which can be erroneously created by make from ./install.sh.
3800# Reject install programs that cannot install multiple files.
3801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3802$as_echo_n "checking for a BSD-compatible install... " >&6; }
3803if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003804if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003805 $as_echo_n "(cached) " >&6
3806else
3807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3808for as_dir in $PATH
3809do
3810 IFS=$as_save_IFS
3811 test -z "$as_dir" && as_dir=.
3812 # Account for people who put trailing slashes in PATH elements.
3813case $as_dir/ in #((
3814 ./ | .// | /[cC]/* | \
3815 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3816 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3817 /usr/ucb/* ) ;;
3818 *)
3819 # OSF1 and SCO ODT 3.0 have their own names for install.
3820 # Don't use installbsd from OSF since it installs stuff as root
3821 # by default.
3822 for ac_prog in ginstall scoinst install; do
3823 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003824 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003825 if test $ac_prog = install &&
3826 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3827 # AIX install. It has an incompatible calling convention.
3828 :
3829 elif test $ac_prog = install &&
3830 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3831 # program-specific install script used by HP pwplus--don't use.
3832 :
3833 else
3834 rm -rf conftest.one conftest.two conftest.dir
3835 echo one > conftest.one
3836 echo two > conftest.two
3837 mkdir conftest.dir
3838 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3839 test -s conftest.one && test -s conftest.two &&
3840 test -s conftest.dir/conftest.one &&
3841 test -s conftest.dir/conftest.two
3842 then
3843 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3844 break 3
3845 fi
3846 fi
3847 fi
3848 done
3849 done
3850 ;;
3851esac
3852
3853 done
3854IFS=$as_save_IFS
3855
3856rm -rf conftest.one conftest.two conftest.dir
3857
3858fi
3859 if test "${ac_cv_path_install+set}" = set; then
3860 INSTALL=$ac_cv_path_install
3861 else
3862 # As a last resort, use the slow shell script. Don't cache a
3863 # value for INSTALL within a source directory, because that will
3864 # break other packages using the cache if that directory is
3865 # removed, or if the value is a relative name.
3866 INSTALL=$ac_install_sh
3867 fi
3868fi
3869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3870$as_echo "$INSTALL" >&6; }
3871
3872# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3873# It thinks the first close brace ends the variable substitution.
3874test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3875
3876test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3877
3878test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3879
3880test "$program_prefix" != NONE &&
3881 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3882# Use a double $ so make ignores it.
3883test "$program_suffix" != NONE &&
3884 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3885# Double any \ or $.
3886# By default was `s,x,x', remove it if useless.
3887ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3888program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3889
3890# expand $ac_aux_dir to an absolute path
3891am_aux_dir=`cd $ac_aux_dir && pwd`
3892
3893if test x"${MISSING+set}" != xset; then
3894 case $am_aux_dir in
3895 *\ * | *\ *)
3896 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3897 *)
3898 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3899 esac
3900fi
3901# Use eval to expand $SHELL
cristy58d34aa2013-01-24 15:11:54 +00003902if eval "$MISSING --is-lightweight"; then
3903 am_missing_run="$MISSING "
cristy73bd4a52010-10-05 11:24:23 +00003904else
3905 am_missing_run=
cristyc0890a62012-07-19 00:18:20 +00003906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3907$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
cristy73bd4a52010-10-05 11:24:23 +00003908fi
3909
3910if test x"${install_sh}" != xset; then
3911 case $am_aux_dir in
3912 *\ * | *\ *)
3913 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3914 *)
3915 install_sh="\${SHELL} $am_aux_dir/install-sh"
3916 esac
3917fi
3918
cristyc0890a62012-07-19 00:18:20 +00003919# Installed binaries are usually stripped using 'strip' when the user
3920# run "make install-strip". However 'strip' might not be the right
cristy73bd4a52010-10-05 11:24:23 +00003921# tool to use in cross-compilation environments, therefore Automake
cristyc0890a62012-07-19 00:18:20 +00003922# will honor the 'STRIP' environment variable to overrule this program.
cristy73bd4a52010-10-05 11:24:23 +00003923if test "$cross_compiling" != no; then
3924 if test -n "$ac_tool_prefix"; then
3925 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3926set dummy ${ac_tool_prefix}strip; ac_word=$2
3927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3928$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003929if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003930 $as_echo_n "(cached) " >&6
3931else
3932 if test -n "$STRIP"; then
3933 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3934else
3935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3936for as_dir in $PATH
3937do
3938 IFS=$as_save_IFS
3939 test -z "$as_dir" && as_dir=.
3940 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003942 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3944 break 2
3945 fi
3946done
3947 done
3948IFS=$as_save_IFS
3949
3950fi
3951fi
3952STRIP=$ac_cv_prog_STRIP
3953if test -n "$STRIP"; then
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3955$as_echo "$STRIP" >&6; }
3956else
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3958$as_echo "no" >&6; }
3959fi
3960
3961
3962fi
3963if test -z "$ac_cv_prog_STRIP"; then
3964 ac_ct_STRIP=$STRIP
3965 # Extract the first word of "strip", so it can be a program name with args.
3966set dummy strip; ac_word=$2
3967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3968$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003969if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003970 $as_echo_n "(cached) " >&6
3971else
3972 if test -n "$ac_ct_STRIP"; then
3973 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3974else
3975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3976for as_dir in $PATH
3977do
3978 IFS=$as_save_IFS
3979 test -z "$as_dir" && as_dir=.
3980 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003982 ac_cv_prog_ac_ct_STRIP="strip"
3983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3984 break 2
3985 fi
3986done
3987 done
3988IFS=$as_save_IFS
3989
3990fi
3991fi
3992ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3993if test -n "$ac_ct_STRIP"; then
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3995$as_echo "$ac_ct_STRIP" >&6; }
3996else
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3998$as_echo "no" >&6; }
3999fi
4000
4001 if test "x$ac_ct_STRIP" = x; then
4002 STRIP=":"
4003 else
4004 case $cross_compiling:$ac_tool_warned in
4005yes:)
4006{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4007$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4008ac_tool_warned=yes ;;
4009esac
4010 STRIP=$ac_ct_STRIP
4011 fi
4012else
4013 STRIP="$ac_cv_prog_STRIP"
4014fi
4015
4016fi
4017INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4018
4019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4020$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4021if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00004022 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004023 $as_echo_n "(cached) " >&6
4024else
4025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4026for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4027do
4028 IFS=$as_save_IFS
4029 test -z "$as_dir" && as_dir=.
4030 for ac_prog in mkdir gmkdir; do
4031 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004032 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
cristy73bd4a52010-10-05 11:24:23 +00004033 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4034 'mkdir (GNU coreutils) '* | \
4035 'mkdir (coreutils) '* | \
4036 'mkdir (fileutils) '4.1*)
4037 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4038 break 3;;
4039 esac
4040 done
4041 done
4042 done
4043IFS=$as_save_IFS
4044
4045fi
4046
4047 test -d ./--version && rmdir ./--version
4048 if test "${ac_cv_path_mkdir+set}" = set; then
4049 MKDIR_P="$ac_cv_path_mkdir -p"
4050 else
4051 # As a last resort, use the slow shell script. Don't cache a
4052 # value for MKDIR_P within a source directory, because that will
4053 # break other packages using the cache if that directory is
4054 # removed, or if the value is a relative name.
4055 MKDIR_P="$ac_install_sh -d"
4056 fi
4057fi
4058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4059$as_echo "$MKDIR_P" >&6; }
4060
cristy73bd4a52010-10-05 11:24:23 +00004061for ac_prog in gawk mawk nawk awk
4062do
4063 # Extract the first word of "$ac_prog", so it can be a program name with args.
4064set dummy $ac_prog; ac_word=$2
4065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4066$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004067if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004068 $as_echo_n "(cached) " >&6
4069else
4070 if test -n "$AWK"; then
4071 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4072else
4073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4074for as_dir in $PATH
4075do
4076 IFS=$as_save_IFS
4077 test -z "$as_dir" && as_dir=.
4078 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00004080 ac_cv_prog_AWK="$ac_prog"
4081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4082 break 2
4083 fi
4084done
4085 done
4086IFS=$as_save_IFS
4087
4088fi
4089fi
4090AWK=$ac_cv_prog_AWK
4091if test -n "$AWK"; then
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4093$as_echo "$AWK" >&6; }
4094else
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4096$as_echo "no" >&6; }
4097fi
4098
4099
4100 test -n "$AWK" && break
4101done
4102
4103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4104$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4105set x ${MAKE-make}
4106ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00004107if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004108 $as_echo_n "(cached) " >&6
4109else
4110 cat >conftest.make <<\_ACEOF
4111SHELL = /bin/sh
4112all:
4113 @echo '@@@%%%=$(MAKE)=@@@%%%'
4114_ACEOF
cristy98dddb52010-11-04 00:30:15 +00004115# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00004116case `${MAKE-make} -f conftest.make 2>/dev/null` in
4117 *@@@%%%=?*=@@@%%%*)
4118 eval ac_cv_prog_make_${ac_make}_set=yes;;
4119 *)
4120 eval ac_cv_prog_make_${ac_make}_set=no;;
4121esac
4122rm -f conftest.make
4123fi
4124if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4126$as_echo "yes" >&6; }
4127 SET_MAKE=
4128else
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4130$as_echo "no" >&6; }
4131 SET_MAKE="MAKE=${MAKE-make}"
4132fi
4133
4134rm -rf .tst 2>/dev/null
4135mkdir .tst 2>/dev/null
4136if test -d .tst; then
4137 am__leading_dot=.
4138else
4139 am__leading_dot=_
4140fi
4141rmdir .tst 2>/dev/null
4142
cristya448bd22011-10-14 12:38:13 +00004143# Check whether --enable-silent-rules was given.
4144if test "${enable_silent_rules+set}" = set; then :
4145 enableval=$enable_silent_rules;
4146fi
4147
cristyc0890a62012-07-19 00:18:20 +00004148case $enable_silent_rules in # (((
4149 yes) AM_DEFAULT_VERBOSITY=0;;
4150 no) AM_DEFAULT_VERBOSITY=1;;
4151 *) AM_DEFAULT_VERBOSITY=1;;
cristya448bd22011-10-14 12:38:13 +00004152esac
cristyc3fb77b2012-02-06 01:49:41 +00004153am_make=${MAKE-make}
4154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4155$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4156if ${am_cv_make_support_nested_variables+:} false; then :
4157 $as_echo_n "(cached) " >&6
4158else
4159 if $as_echo 'TRUE=$(BAR$(V))
4160BAR0=false
4161BAR1=true
4162V=1
4163am__doit:
4164 @$(TRUE)
4165.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4166 am_cv_make_support_nested_variables=yes
4167else
4168 am_cv_make_support_nested_variables=no
4169fi
4170fi
4171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4172$as_echo "$am_cv_make_support_nested_variables" >&6; }
4173if test $am_cv_make_support_nested_variables = yes; then
4174 AM_V='$(V)'
4175 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4176else
4177 AM_V=$AM_DEFAULT_VERBOSITY
4178 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4179fi
cristya448bd22011-10-14 12:38:13 +00004180AM_BACKSLASH='\'
4181
cristy73bd4a52010-10-05 11:24:23 +00004182if test "`cd $srcdir && pwd`" != "`pwd`"; then
4183 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4184 # is not polluted with repeated "-I."
4185 am__isrc=' -I$(srcdir)'
4186 # test to see if srcdir already configured
4187 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00004188 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00004189 fi
4190fi
4191
4192# test whether we have cygpath
4193if test -z "$CYGPATH_W"; then
4194 if (cygpath --version) >/dev/null 2>/dev/null; then
4195 CYGPATH_W='cygpath -w'
4196 else
4197 CYGPATH_W=echo
4198 fi
4199fi
4200
4201
4202# Define the identity of the package.
cristy09b53e12011-10-14 12:47:22 +00004203 PACKAGE='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +00004204 VERSION='7.0.0-0'
cristy73bd4a52010-10-05 11:24:23 +00004205
4206
cristya448bd22011-10-14 12:38:13 +00004207cat >>confdefs.h <<_ACEOF
4208#define PACKAGE "$PACKAGE"
4209_ACEOF
4210
4211
4212cat >>confdefs.h <<_ACEOF
4213#define VERSION "$VERSION"
4214_ACEOF
4215
cristy73bd4a52010-10-05 11:24:23 +00004216# Some tools Automake needs.
4217
4218ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4219
4220
4221AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4222
4223
4224AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4225
4226
4227AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4228
4229
4230MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4231
cristyc0890a62012-07-19 00:18:20 +00004232# For better backward compatibility. To be removed once Automake 1.9.x
4233# dies out for good. For more background, see:
4234# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4235# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4236mkdir_p='$(MKDIR_P)'
4237
cristy73bd4a52010-10-05 11:24:23 +00004238# We need awk for the "check" target. The system "awk" is bad on
4239# some platforms.
cristyc3fb77b2012-02-06 01:49:41 +00004240# Always define AMTAR for backward compatibility. Yes, it's still used
4241# in the wild :-( We should find a proper way to deprecate it ...
4242AMTAR='$${TAR-tar}'
cristy73bd4a52010-10-05 11:24:23 +00004243
cristye69bdbe2013-05-03 21:40:44 +00004244
4245# We'll loop over all known methods to create a tar archive until one works.
4246_am_tools='gnutar pax cpio none'
4247
cristyc3fb77b2012-02-06 01:49:41 +00004248am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
cristy73bd4a52010-10-05 11:24:23 +00004249
4250
4251
4252
4253
cristy3ed852e2009-09-05 21:47:34 +00004254
cristya5bda012013-11-03 18:05:38 +00004255# POSIX will say in a future version that running "rm -f" with no argument
4256# is OK; and we want to be able to make that assumption in our Makefile
4257# recipes. So use an aggressive probe to check that the usage we want is
4258# actually supported "in the wild" to an acceptable degree.
4259# See automake bug#10828.
4260# To make any issue more visible, cause the running configure to be aborted
4261# by default if the 'rm' program in use doesn't match our expectations; the
4262# user can still override this though.
4263if rm -f && rm -fr && rm -rf; then : OK; else
4264 cat >&2 <<'END'
4265Oops!
4266
4267Your 'rm' program seems unable to run without file operands specified
4268on the command line, even when the '-f' option is present. This is contrary
4269to the behaviour of most rm programs out there, and not conforming with
4270the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4271
4272Please tell bug-automake@gnu.org about your system, including the value
4273of your $PATH and any error possibly output before this message. This
4274can help us improve future automake versions.
4275
4276END
4277 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4278 echo 'Configuration will proceed anyway, since you have set the' >&2
4279 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4280 echo >&2
4281 else
4282 cat >&2 <<'END'
4283Aborting the configuration process, to ensure you take notice of the issue.
4284
4285You can download and install GNU coreutils to get an 'rm' implementation
4286that behaves properly: <http://www.gnu.org/software/coreutils/>.
4287
4288If you want to complete the configuration process using your problematic
4289'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4290to "yes", and re-run configure.
4291
4292END
4293 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4294 fi
4295fi
cristye69bdbe2013-05-03 21:40:44 +00004296
cristy3ed852e2009-09-05 21:47:34 +00004297# Enable support for silent build rules
cristy73bd4a52010-10-05 11:24:23 +00004298# Check whether --enable-silent-rules was given.
4299if test "${enable_silent_rules+set}" = set; then :
4300 enableval=$enable_silent_rules;
4301fi
4302
cristyc0890a62012-07-19 00:18:20 +00004303case $enable_silent_rules in # (((
4304 yes) AM_DEFAULT_VERBOSITY=0;;
4305 no) AM_DEFAULT_VERBOSITY=1;;
4306 *) AM_DEFAULT_VERBOSITY=0;;
cristy73bd4a52010-10-05 11:24:23 +00004307esac
cristyc3fb77b2012-02-06 01:49:41 +00004308am_make=${MAKE-make}
4309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4310$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4311if ${am_cv_make_support_nested_variables+:} false; then :
4312 $as_echo_n "(cached) " >&6
4313else
4314 if $as_echo 'TRUE=$(BAR$(V))
4315BAR0=false
4316BAR1=true
4317V=1
4318am__doit:
4319 @$(TRUE)
4320.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4321 am_cv_make_support_nested_variables=yes
4322else
4323 am_cv_make_support_nested_variables=no
4324fi
4325fi
4326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4327$as_echo "$am_cv_make_support_nested_variables" >&6; }
4328if test $am_cv_make_support_nested_variables = yes; then
4329 AM_V='$(V)'
4330 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4331else
4332 AM_V=$AM_DEFAULT_VERBOSITY
4333 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4334fi
cristy73bd4a52010-10-05 11:24:23 +00004335AM_BACKSLASH='\'
4336
cristy3ed852e2009-09-05 21:47:34 +00004337
cristy5ed9c6e2013-07-14 21:20:31 +00004338# versionning of library
cristy3ed852e2009-09-05 21:47:34 +00004339MAGICK_LIB_VERSION="0x"
4340if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4341 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4342fi
4343MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4344if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4345 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4346fi
4347MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4348if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4349 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4350fi
4351MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4352
4353
4354# Definition used to define MagickLibVersionText in version.h
4355MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4356
4357
4358# Definition used to define MagickLibVersionNumber in version.h
4359MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4360
4361
cristy5ed9c6e2013-07-14 21:20:31 +00004362MAGICKPP_LIB_VERSION="0x"
4363if test ${MAGICKPP_LIBRARY_CURRENT} -lt 10 ; then
4364 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4365fi
4366MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_CURRENT}
4367if test ${MAGICKPP_LIBRARY_AGE} -lt 10 ; then
4368 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4369fi
4370MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_AGE}
4371if test ${MAGICKPP_LIBRARY_REVISION} -lt 10 ; then
4372 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4373fi
4374MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_REVISION}
4375
4376
4377# Definition used to define MagickLibVersionText in version.h
4378MAGICKPP_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4379
4380
4381# Definition used to define MagickLibVersionNumber in version.h
4382MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4383
4384
4385
4386
cristy3ed852e2009-09-05 21:47:34 +00004387# Regenerate config.status if ChangeLog or version.sh is updated.
4388CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4389
4390
4391PERLMAINCC=$CC
4392
4393MAGICK_CFLAGS=''
4394MAGICK_CPPFLAGS=$CPPFLAGS_USER
4395MAGICK_PCFLAGS=$CPPFLAGS_USER
4396MAGICK_LDFLAGS=''
4397MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004398MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004399
4400#
4401# Evaluate shell variable equivalents to Makefile directory variables
4402#
4403if test "x$prefix" = xNONE; then
4404 prefix=$ac_default_prefix
4405fi
4406# Let make expand exec_prefix.
4407if test "x$exec_prefix" = xNONE; then
4408 exec_prefix='${prefix}'
4409fi
4410
4411#
4412eval "eval PREFIX_DIR=${prefix}"
4413
4414eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4415
4416eval "eval BIN_DIR=$bindir"
4417
4418eval "eval SBIN_DIR=$sbindir"
4419
4420eval "eval LIBEXEC_DIR=$libexecdir"
4421
4422eval "eval DATA_DIR=$datadir"
4423
cristy4e65ec22012-04-08 01:33:27 +00004424eval "eval DOC_DIR=$datadir/doc"
cristyd55889c2011-03-27 00:50:24 +00004425
cristy3ed852e2009-09-05 21:47:34 +00004426eval "eval SYSCONF_DIR=$sysconfdir"
4427
4428eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4429
4430eval "eval LOCALSTATE_DIR=$localstatedir"
4431
4432eval "eval LIB_DIR=$libdir"
4433
4434eval "eval INCLUDE_DIR=$includedir"
4435
4436eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4437
4438eval "eval INFO_DIR=$infodir"
4439
4440eval "eval MAN_DIR=$mandir"
4441
4442
4443# Get full paths to source and build directories
4444srcdirfull="`cd $srcdir && pwd`"
4445builddir="`pwd`"
4446
4447#
4448# Compute variables useful for running uninstalled software.
4449#
4450MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4451MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4452MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4453MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4454DIRSEP=':'
4455case "${build_os}" in
4456 mingw* )
4457 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4458 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4459 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4460 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4461 DIRSEP=';'
4462 ;;
4463esac
4464case "${host_os}" in
4465 mingw* )
4466 DIRSEP=';'
4467 ;;
4468esac
4469
4470
4471
4472
4473
4474
cristya0b81c32010-01-22 02:54:33 +00004475
4476#
4477# Enable OS features.
4478#
cristy73bd4a52010-10-05 11:24:23 +00004479DEPDIR="${am__leading_dot}deps"
4480
4481ac_config_commands="$ac_config_commands depfiles"
4482
4483
4484am_make=${MAKE-make}
4485cat > confinc << 'END'
4486am__doit:
4487 @echo this is the am__doit target
4488.PHONY: am__doit
4489END
4490# If we don't find an include directive, just comment out the code.
4491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4492$as_echo_n "checking for style of include used by $am_make... " >&6; }
4493am__include="#"
4494am__quote=
4495_am_result=none
4496# First try GNU make style include.
4497echo "include confinc" > confmf
cristyc0890a62012-07-19 00:18:20 +00004498# Ignore all kinds of additional output from 'make'.
cristy73bd4a52010-10-05 11:24:23 +00004499case `$am_make -s -f confmf 2> /dev/null` in #(
4500*the\ am__doit\ target*)
4501 am__include=include
4502 am__quote=
4503 _am_result=GNU
4504 ;;
4505esac
4506# Now try BSD make style include.
4507if test "$am__include" = "#"; then
4508 echo '.include "confinc"' > confmf
4509 case `$am_make -s -f confmf 2> /dev/null` in #(
4510 *the\ am__doit\ target*)
4511 am__include=.include
4512 am__quote="\""
4513 _am_result=BSD
4514 ;;
4515 esac
4516fi
4517
4518
4519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4520$as_echo "$_am_result" >&6; }
4521rm -f confinc confmf
4522
4523# Check whether --enable-dependency-tracking was given.
4524if test "${enable_dependency_tracking+set}" = set; then :
4525 enableval=$enable_dependency_tracking;
4526fi
4527
4528if test "x$enable_dependency_tracking" != xno; then
4529 am_depcomp="$ac_aux_dir/depcomp"
4530 AMDEPBACKSLASH='\'
cristy7247bba2012-02-05 16:37:27 +00004531 am__nodep='_no'
cristy73bd4a52010-10-05 11:24:23 +00004532fi
4533 if test "x$enable_dependency_tracking" != xno; then
4534 AMDEP_TRUE=
4535 AMDEP_FALSE='#'
4536else
4537 AMDEP_TRUE='#'
4538 AMDEP_FALSE=
4539fi
4540
4541
cristy3ed852e2009-09-05 21:47:34 +00004542ac_ext=c
4543ac_cpp='$CPP $CPPFLAGS'
4544ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4545ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4546ac_compiler_gnu=$ac_cv_c_compiler_gnu
4547if test -n "$ac_tool_prefix"; then
4548 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4549set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004551$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004552if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004553 $as_echo_n "(cached) " >&6
4554else
4555 if test -n "$CC"; then
4556 ac_cv_prog_CC="$CC" # Let the user override the test.
4557else
4558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4559for as_dir in $PATH
4560do
4561 IFS=$as_save_IFS
4562 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004563 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004565 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004567 break 2
4568 fi
4569done
cristy8b350f62009-11-15 23:12:43 +00004570 done
cristy3ed852e2009-09-05 21:47:34 +00004571IFS=$as_save_IFS
4572
4573fi
4574fi
4575CC=$ac_cv_prog_CC
4576if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004578$as_echo "$CC" >&6; }
4579else
cristy8b350f62009-11-15 23:12:43 +00004580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004581$as_echo "no" >&6; }
4582fi
4583
4584
4585fi
4586if test -z "$ac_cv_prog_CC"; then
4587 ac_ct_CC=$CC
4588 # Extract the first word of "gcc", so it can be a program name with args.
4589set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004591$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004592if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004593 $as_echo_n "(cached) " >&6
4594else
4595 if test -n "$ac_ct_CC"; then
4596 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4597else
4598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4599for as_dir in $PATH
4600do
4601 IFS=$as_save_IFS
4602 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004603 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004605 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004607 break 2
4608 fi
4609done
cristy8b350f62009-11-15 23:12:43 +00004610 done
cristy3ed852e2009-09-05 21:47:34 +00004611IFS=$as_save_IFS
4612
4613fi
4614fi
4615ac_ct_CC=$ac_cv_prog_ac_ct_CC
4616if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004618$as_echo "$ac_ct_CC" >&6; }
4619else
cristy8b350f62009-11-15 23:12:43 +00004620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004621$as_echo "no" >&6; }
4622fi
4623
4624 if test "x$ac_ct_CC" = x; then
4625 CC=""
4626 else
4627 case $cross_compiling:$ac_tool_warned in
4628yes:)
cristy8b350f62009-11-15 23:12:43 +00004629{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004630$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4631ac_tool_warned=yes ;;
4632esac
4633 CC=$ac_ct_CC
4634 fi
4635else
4636 CC="$ac_cv_prog_CC"
4637fi
4638
4639if test -z "$CC"; then
4640 if test -n "$ac_tool_prefix"; then
4641 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4642set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004644$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004645if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004646 $as_echo_n "(cached) " >&6
4647else
4648 if test -n "$CC"; then
4649 ac_cv_prog_CC="$CC" # Let the user override the test.
4650else
4651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4652for as_dir in $PATH
4653do
4654 IFS=$as_save_IFS
4655 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004656 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004658 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004660 break 2
4661 fi
4662done
cristy8b350f62009-11-15 23:12:43 +00004663 done
cristy3ed852e2009-09-05 21:47:34 +00004664IFS=$as_save_IFS
4665
4666fi
4667fi
4668CC=$ac_cv_prog_CC
4669if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004671$as_echo "$CC" >&6; }
4672else
cristy8b350f62009-11-15 23:12:43 +00004673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004674$as_echo "no" >&6; }
4675fi
4676
4677
4678 fi
4679fi
4680if test -z "$CC"; then
4681 # Extract the first word of "cc", so it can be a program name with args.
4682set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004684$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004685if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004686 $as_echo_n "(cached) " >&6
4687else
4688 if test -n "$CC"; then
4689 ac_cv_prog_CC="$CC" # Let the user override the test.
4690else
4691 ac_prog_rejected=no
4692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4693for as_dir in $PATH
4694do
4695 IFS=$as_save_IFS
4696 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004697 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004699 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4700 ac_prog_rejected=yes
4701 continue
4702 fi
4703 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004705 break 2
4706 fi
4707done
cristy8b350f62009-11-15 23:12:43 +00004708 done
cristy3ed852e2009-09-05 21:47:34 +00004709IFS=$as_save_IFS
4710
4711if test $ac_prog_rejected = yes; then
4712 # We found a bogon in the path, so make sure we never use it.
4713 set dummy $ac_cv_prog_CC
4714 shift
4715 if test $# != 0; then
4716 # We chose a different compiler from the bogus one.
4717 # However, it has the same basename, so the bogon will be chosen
4718 # first if we set CC to just the basename; use the full file name.
4719 shift
4720 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4721 fi
4722fi
4723fi
4724fi
4725CC=$ac_cv_prog_CC
4726if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004728$as_echo "$CC" >&6; }
4729else
cristy8b350f62009-11-15 23:12:43 +00004730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004731$as_echo "no" >&6; }
4732fi
4733
4734
4735fi
4736if test -z "$CC"; then
4737 if test -n "$ac_tool_prefix"; then
4738 for ac_prog in cl.exe
4739 do
4740 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4741set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004743$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004744if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004745 $as_echo_n "(cached) " >&6
4746else
4747 if test -n "$CC"; then
4748 ac_cv_prog_CC="$CC" # Let the user override the test.
4749else
4750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4751for as_dir in $PATH
4752do
4753 IFS=$as_save_IFS
4754 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004755 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004757 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004759 break 2
4760 fi
4761done
cristy8b350f62009-11-15 23:12:43 +00004762 done
cristy3ed852e2009-09-05 21:47:34 +00004763IFS=$as_save_IFS
4764
4765fi
4766fi
4767CC=$ac_cv_prog_CC
4768if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004770$as_echo "$CC" >&6; }
4771else
cristy8b350f62009-11-15 23:12:43 +00004772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004773$as_echo "no" >&6; }
4774fi
4775
4776
4777 test -n "$CC" && break
4778 done
4779fi
4780if test -z "$CC"; then
4781 ac_ct_CC=$CC
4782 for ac_prog in cl.exe
4783do
4784 # Extract the first word of "$ac_prog", so it can be a program name with args.
4785set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004787$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004788if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004789 $as_echo_n "(cached) " >&6
4790else
4791 if test -n "$ac_ct_CC"; then
4792 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4793else
4794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4795for as_dir in $PATH
4796do
4797 IFS=$as_save_IFS
4798 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004799 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004801 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004803 break 2
4804 fi
4805done
cristy8b350f62009-11-15 23:12:43 +00004806 done
cristy3ed852e2009-09-05 21:47:34 +00004807IFS=$as_save_IFS
4808
4809fi
4810fi
4811ac_ct_CC=$ac_cv_prog_ac_ct_CC
4812if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004814$as_echo "$ac_ct_CC" >&6; }
4815else
cristy8b350f62009-11-15 23:12:43 +00004816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004817$as_echo "no" >&6; }
4818fi
4819
4820
4821 test -n "$ac_ct_CC" && break
4822done
4823
4824 if test "x$ac_ct_CC" = x; then
4825 CC=""
4826 else
4827 case $cross_compiling:$ac_tool_warned in
4828yes:)
cristy8b350f62009-11-15 23:12:43 +00004829{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004830$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4831ac_tool_warned=yes ;;
4832esac
4833 CC=$ac_ct_CC
4834 fi
4835fi
4836
4837fi
4838
4839
cristy8b350f62009-11-15 23:12:43 +00004840test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004841$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004842as_fn_error $? "no acceptable C compiler found in \$PATH
4843See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004844
4845# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004846$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004847set X $ac_compile
4848ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004849for ac_option in --version -v -V -qversion; do
4850 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004851case "(($ac_try" in
4852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4853 *) ac_try_echo=$ac_try;;
4854esac
cristy8b350f62009-11-15 23:12:43 +00004855eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4856$as_echo "$ac_try_echo"; } >&5
4857 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004858 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004859 if test -s conftest.err; then
4860 sed '10a\
4861... rest of stderr output deleted ...
4862 10q' conftest.err >conftest.er1
4863 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004864 fi
cristycd4c5312009-11-22 01:19:08 +00004865 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4867 test $ac_status = 0; }
4868done
cristy3ed852e2009-09-05 21:47:34 +00004869
cristy8b350f62009-11-15 23:12:43 +00004870cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004871/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004872
cristy3ed852e2009-09-05 21:47:34 +00004873int
4874main ()
4875{
4876
4877 ;
4878 return 0;
4879}
4880_ACEOF
4881ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004882ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004883# Try to create an executable without -o first, disregard a.out.
4884# It will help us diagnose broken compilers, and finding out an intuition
4885# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4887$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004888ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4889
4890# The possible output files:
4891ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4892
4893ac_rmfiles=
4894for ac_file in $ac_files
4895do
4896 case $ac_file in
4897 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4898 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4899 esac
4900done
4901rm -f $ac_rmfiles
4902
cristy8b350f62009-11-15 23:12:43 +00004903if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004904case "(($ac_try" in
4905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4906 *) ac_try_echo=$ac_try;;
4907esac
cristy8b350f62009-11-15 23:12:43 +00004908eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4909$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004910 (eval "$ac_link_default") 2>&5
4911 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4913 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004914 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4915# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4916# in a Makefile. We should not override ac_cv_exeext if it was cached,
4917# so that the user can short-circuit this test for compilers unknown to
4918# Autoconf.
4919for ac_file in $ac_files ''
4920do
4921 test -f "$ac_file" || continue
4922 case $ac_file in
4923 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4924 ;;
4925 [ab].out )
4926 # We found the default executable, but exeext='' is most
4927 # certainly right.
4928 break;;
4929 *.* )
cristy8b350f62009-11-15 23:12:43 +00004930 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004931 then :; else
4932 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4933 fi
4934 # We set ac_cv_exeext here because the later test for it is not
4935 # safe: cross compilers may not add the suffix if given an `-o'
4936 # argument, so we may need to know it at that point already.
4937 # Even if this section looks crufty: it has the advantage of
4938 # actually working.
4939 break;;
4940 * )
4941 break;;
4942 esac
4943done
4944test "$ac_cv_exeext" = no && ac_cv_exeext=
4945
4946else
4947 ac_file=''
4948fi
cristy8b350f62009-11-15 23:12:43 +00004949if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4951$as_echo "no" >&6; }
4952$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004953sed 's/^/| /' conftest.$ac_ext >&5
4954
cristy8b350f62009-11-15 23:12:43 +00004955{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004956$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004957as_fn_error 77 "C compiler cannot create executables
4958See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004959else
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4961$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004962fi
cristycd4c5312009-11-22 01:19:08 +00004963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4964$as_echo_n "checking for C compiler default output file name... " >&6; }
4965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4966$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004967ac_exeext=$ac_cv_exeext
4968
cristycd4c5312009-11-22 01:19:08 +00004969rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004970ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004972$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004973if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004974case "(($ac_try" in
4975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4976 *) ac_try_echo=$ac_try;;
4977esac
cristy8b350f62009-11-15 23:12:43 +00004978eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4979$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004980 (eval "$ac_link") 2>&5
4981 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4983 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004984 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4985# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4986# work properly (i.e., refer to `conftest.exe'), while it won't with
4987# `rm'.
4988for ac_file in conftest.exe conftest conftest.*; do
4989 test -f "$ac_file" || continue
4990 case $ac_file in
4991 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4992 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4993 break;;
4994 * ) break;;
4995 esac
4996done
4997else
cristy8b350f62009-11-15 23:12:43 +00004998 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004999$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005000as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5001See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00005002fi
cristycd4c5312009-11-22 01:19:08 +00005003rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00005004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005005$as_echo "$ac_cv_exeext" >&6; }
5006
5007rm -f conftest.$ac_ext
5008EXEEXT=$ac_cv_exeext
5009ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00005010cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5011/* end confdefs.h. */
5012#include <stdio.h>
5013int
5014main ()
5015{
5016FILE *f = fopen ("conftest.out", "w");
5017 return ferror (f) || fclose (f) != 0;
5018
5019 ;
5020 return 0;
5021}
5022_ACEOF
5023ac_clean_files="$ac_clean_files conftest.out"
5024# Check that the compiler produces executables we can run. If not, either
5025# the compiler is broken, or we cross compile.
5026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5027$as_echo_n "checking whether we are cross compiling... " >&6; }
5028if test "$cross_compiling" != yes; then
5029 { { ac_try="$ac_link"
5030case "(($ac_try" in
5031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5032 *) ac_try_echo=$ac_try;;
5033esac
5034eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5035$as_echo "$ac_try_echo"; } >&5
5036 (eval "$ac_link") 2>&5
5037 ac_status=$?
5038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5039 test $ac_status = 0; }
5040 if { ac_try='./conftest$ac_cv_exeext'
5041 { { case "(($ac_try" in
5042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5043 *) ac_try_echo=$ac_try;;
5044esac
5045eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5046$as_echo "$ac_try_echo"; } >&5
5047 (eval "$ac_try") 2>&5
5048 ac_status=$?
5049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5050 test $ac_status = 0; }; }; then
5051 cross_compiling=no
5052 else
5053 if test "$cross_compiling" = maybe; then
5054 cross_compiling=yes
5055 else
5056 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5057$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005058as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00005059If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00005060See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00005061 fi
5062 fi
5063fi
5064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5065$as_echo "$cross_compiling" >&6; }
5066
5067rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5068ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00005069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00005070$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005071if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005072 $as_echo_n "(cached) " >&6
5073else
cristy8b350f62009-11-15 23:12:43 +00005074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005075/* end confdefs.h. */
5076
5077int
5078main ()
5079{
5080
5081 ;
5082 return 0;
5083}
5084_ACEOF
5085rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00005086if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00005087case "(($ac_try" in
5088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5089 *) ac_try_echo=$ac_try;;
5090esac
cristy8b350f62009-11-15 23:12:43 +00005091eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5092$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00005093 (eval "$ac_compile") 2>&5
5094 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00005095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5096 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00005097 for ac_file in conftest.o conftest.obj conftest.*; do
5098 test -f "$ac_file" || continue;
5099 case $ac_file in
5100 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5101 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5102 break;;
5103 esac
5104done
5105else
5106 $as_echo "$as_me: failed program was:" >&5
5107sed 's/^/| /' conftest.$ac_ext >&5
5108
cristy8b350f62009-11-15 23:12:43 +00005109{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005110$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005111as_fn_error $? "cannot compute suffix of object files: cannot compile
5112See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00005113fi
cristy3ed852e2009-09-05 21:47:34 +00005114rm -f conftest.$ac_cv_objext conftest.$ac_ext
5115fi
cristy8b350f62009-11-15 23:12:43 +00005116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005117$as_echo "$ac_cv_objext" >&6; }
5118OBJEXT=$ac_cv_objext
5119ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00005120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00005121$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005122if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005123 $as_echo_n "(cached) " >&6
5124else
cristy8b350f62009-11-15 23:12:43 +00005125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005126/* end confdefs.h. */
5127
5128int
5129main ()
5130{
5131#ifndef __GNUC__
5132 choke me
5133#endif
5134
5135 ;
5136 return 0;
5137}
5138_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005139if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005140 ac_compiler_gnu=yes
5141else
cristy8b350f62009-11-15 23:12:43 +00005142 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00005143fi
cristy3ed852e2009-09-05 21:47:34 +00005144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5145ac_cv_c_compiler_gnu=$ac_compiler_gnu
5146
5147fi
cristy8b350f62009-11-15 23:12:43 +00005148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00005149$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5150if test $ac_compiler_gnu = yes; then
5151 GCC=yes
5152else
5153 GCC=
5154fi
5155ac_test_CFLAGS=${CFLAGS+set}
5156ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00005157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005158$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005159if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005160 $as_echo_n "(cached) " >&6
5161else
5162 ac_save_c_werror_flag=$ac_c_werror_flag
5163 ac_c_werror_flag=yes
5164 ac_cv_prog_cc_g=no
5165 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005167/* end confdefs.h. */
5168
5169int
5170main ()
5171{
5172
5173 ;
5174 return 0;
5175}
5176_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005177if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005178 ac_cv_prog_cc_g=yes
5179else
cristy8b350f62009-11-15 23:12:43 +00005180 CFLAGS=""
5181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005182/* end confdefs.h. */
5183
5184int
5185main ()
5186{
5187
5188 ;
5189 return 0;
5190}
5191_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005192if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005193
cristy8b350f62009-11-15 23:12:43 +00005194else
5195 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00005196 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005198/* end confdefs.h. */
5199
5200int
5201main ()
5202{
5203
5204 ;
5205 return 0;
5206}
5207_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005208if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005209 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00005210fi
cristy3ed852e2009-09-05 21:47:34 +00005211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5212fi
cristy3ed852e2009-09-05 21:47:34 +00005213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5214fi
cristy3ed852e2009-09-05 21:47:34 +00005215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5216 ac_c_werror_flag=$ac_save_c_werror_flag
5217fi
cristy8b350f62009-11-15 23:12:43 +00005218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005219$as_echo "$ac_cv_prog_cc_g" >&6; }
5220if test "$ac_test_CFLAGS" = set; then
5221 CFLAGS=$ac_save_CFLAGS
5222elif test $ac_cv_prog_cc_g = yes; then
5223 if test "$GCC" = yes; then
5224 CFLAGS="-g -O2"
5225 else
5226 CFLAGS="-g"
5227 fi
5228else
5229 if test "$GCC" = yes; then
5230 CFLAGS="-O2"
5231 else
5232 CFLAGS=
5233 fi
5234fi
cristy8b350f62009-11-15 23:12:43 +00005235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005236$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005237if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005238 $as_echo_n "(cached) " >&6
5239else
5240 ac_cv_prog_cc_c89=no
5241ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005242cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005243/* end confdefs.h. */
5244#include <stdarg.h>
5245#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00005246struct stat;
cristy3ed852e2009-09-05 21:47:34 +00005247/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5248struct buf { int x; };
5249FILE * (*rcsopen) (struct buf *, struct stat *, int);
5250static char *e (p, i)
5251 char **p;
5252 int i;
5253{
5254 return p[i];
5255}
5256static char *f (char * (*g) (char **, int), char **p, ...)
5257{
5258 char *s;
5259 va_list v;
5260 va_start (v,p);
5261 s = g (p, va_arg (v,int));
5262 va_end (v);
5263 return s;
5264}
5265
5266/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5267 function prototypes and stuff, but not '\xHH' hex character constants.
5268 These don't provoke an error unfortunately, instead are silently treated
5269 as 'x'. The following induces an error, until -std is added to get
5270 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5271 array size at least. It's necessary to write '\x00'==0 to get something
5272 that's true only with -std. */
5273int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5274
5275/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5276 inside strings and character constants. */
5277#define FOO(x) 'x'
5278int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5279
5280int test (int i, double x);
5281struct s1 {int (*f) (int a);};
5282struct s2 {int (*f) (double a);};
5283int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5284int argc;
5285char **argv;
5286int
5287main ()
5288{
5289return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5290 ;
5291 return 0;
5292}
5293_ACEOF
5294for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5295 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5296do
5297 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005298 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005299 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005300fi
cristy3ed852e2009-09-05 21:47:34 +00005301rm -f core conftest.err conftest.$ac_objext
5302 test "x$ac_cv_prog_cc_c89" != "xno" && break
5303done
5304rm -f conftest.$ac_ext
5305CC=$ac_save_CC
5306
5307fi
5308# AC_CACHE_VAL
5309case "x$ac_cv_prog_cc_c89" in
5310 x)
cristy8b350f62009-11-15 23:12:43 +00005311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005312$as_echo "none needed" >&6; } ;;
5313 xno)
cristy8b350f62009-11-15 23:12:43 +00005314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005315$as_echo "unsupported" >&6; } ;;
5316 *)
5317 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005319$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5320esac
cristy8b350f62009-11-15 23:12:43 +00005321if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005322
cristy8b350f62009-11-15 23:12:43 +00005323fi
cristy3ed852e2009-09-05 21:47:34 +00005324
5325ac_ext=c
5326ac_cpp='$CPP $CPPFLAGS'
5327ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5328ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5329ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005330
cristya5bda012013-11-03 18:05:38 +00005331ac_ext=c
5332ac_cpp='$CPP $CPPFLAGS'
5333ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5334ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5335ac_compiler_gnu=$ac_cv_c_compiler_gnu
5336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5337$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5338if ${am_cv_prog_cc_c_o+:} false; then :
5339 $as_echo_n "(cached) " >&6
5340else
5341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5342/* end confdefs.h. */
5343
5344int
5345main ()
5346{
5347
5348 ;
5349 return 0;
5350}
5351_ACEOF
5352 # Make sure it works both with $CC and with simple cc.
5353 # Following AC_PROG_CC_C_O, we do the test twice because some
5354 # compilers refuse to overwrite an existing .o file with -o,
5355 # though they will create one.
5356 am_cv_prog_cc_c_o=yes
5357 for am_i in 1 2; do
5358 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5359 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5360 ac_status=$?
5361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362 (exit $ac_status); } \
5363 && test -f conftest2.$ac_objext; then
5364 : OK
5365 else
5366 am_cv_prog_cc_c_o=no
5367 break
5368 fi
5369 done
5370 rm -f core conftest*
5371 unset am_i
5372fi
5373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5374$as_echo "$am_cv_prog_cc_c_o" >&6; }
5375if test "$am_cv_prog_cc_c_o" != yes; then
5376 # Losing compiler, so override with the script.
5377 # FIXME: It is wrong to rewrite CC.
5378 # But if we don't then we get into trouble of one sort or another.
5379 # A longer-term fix would be to have automake use am__CC in this case,
5380 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5381 CC="$am_aux_dir/compile $CC"
5382fi
5383ac_ext=c
5384ac_cpp='$CPP $CPPFLAGS'
5385ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5386ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5387ac_compiler_gnu=$ac_cv_c_compiler_gnu
5388
5389
cristy73bd4a52010-10-05 11:24:23 +00005390depcc="$CC" am_compiler_list=
5391
5392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5393$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005394if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00005395 $as_echo_n "(cached) " >&6
5396else
5397 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5398 # We make a subdir and do the tests there. Otherwise we can end up
5399 # making bogus files that we don't know about and never remove. For
5400 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00005401 # making a dummy file named 'D' -- because '-MD' means "put the output
5402 # in D".
cristy7247bba2012-02-05 16:37:27 +00005403 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00005404 mkdir conftest.dir
5405 # Copy depcomp to subdir because otherwise we won't find it if we're
5406 # using a relative directory.
5407 cp "$am_depcomp" conftest.dir
5408 cd conftest.dir
5409 # We will build objects and dependencies in a subdirectory because
5410 # it helps to detect inapplicable dependency modes. For instance
5411 # both Tru64's cc and ICC support -MD to output dependencies as a
5412 # side effect of compilation, but ICC will put the dependencies in
5413 # the current directory while Tru64 will put them in the object
5414 # directory.
5415 mkdir sub
5416
5417 am_cv_CC_dependencies_compiler_type=none
5418 if test "$am_compiler_list" = ""; then
5419 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5420 fi
5421 am__universal=false
5422 case " $depcc " in #(
5423 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5424 esac
5425
5426 for depmode in $am_compiler_list; do
5427 # Setup a source with many dependencies, because some compilers
5428 # like to wrap large dependency lists on column 80 (with \), and
5429 # we should not choose a depcomp mode which is confused by this.
5430 #
5431 # We need to recreate these files for each test, as the compiler may
5432 # overwrite some of them when testing with obscure command lines.
5433 # This happens at least with the AIX C compiler.
5434 : > sub/conftest.c
5435 for i in 1 2 3 4 5 6; do
5436 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00005437 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5438 # Solaris 10 /bin/sh.
5439 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00005440 done
5441 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5442
cristyc0890a62012-07-19 00:18:20 +00005443 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00005444 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00005445 # handle '-M -o', and we need to detect this. Also, some Intel
5446 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00005447 am__obj=sub/conftest.${OBJEXT-o}
5448 am__minus_obj="-o $am__obj"
5449 case $depmode in
5450 gcc)
5451 # This depmode causes a compiler race in universal mode.
5452 test "$am__universal" = false || continue
5453 ;;
5454 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00005455 # After this tag, mechanisms are not by side-effect, so they'll
5456 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00005457 if test "x$enable_dependency_tracking" = xyes; then
5458 continue
5459 else
5460 break
5461 fi
5462 ;;
cristy7247bba2012-02-05 16:37:27 +00005463 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00005464 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00005465 # not run yet. These depmodes are late enough in the game, and
5466 # so weak that their functioning should not be impacted.
5467 am__obj=conftest.${OBJEXT-o}
5468 am__minus_obj=
5469 ;;
5470 none) break ;;
5471 esac
5472 if depmode=$depmode \
5473 source=sub/conftest.c object=$am__obj \
5474 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5475 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5476 >/dev/null 2>conftest.err &&
5477 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5478 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5479 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5480 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5481 # icc doesn't choke on unknown options, it will just issue warnings
5482 # or remarks (even with -Werror). So we grep stderr for any message
5483 # that says an option was ignored or not supported.
5484 # When given -MP, icc 7.0 and 7.1 complain thusly:
5485 # icc: Command line warning: ignoring option '-M'; no argument required
5486 # The diagnosis changed in icc 8.0:
5487 # icc: Command line remark: option '-MP' not supported
5488 if (grep 'ignoring option' conftest.err ||
5489 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5490 am_cv_CC_dependencies_compiler_type=$depmode
5491 break
5492 fi
5493 fi
5494 done
5495
5496 cd ..
5497 rm -rf conftest.dir
5498else
5499 am_cv_CC_dependencies_compiler_type=none
5500fi
5501
5502fi
5503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5504$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5505CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5506
5507 if
5508 test "x$enable_dependency_tracking" != xno \
5509 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5510 am__fastdepCC_TRUE=
5511 am__fastdepCC_FALSE='#'
5512else
5513 am__fastdepCC_TRUE='#'
5514 am__fastdepCC_FALSE=
5515fi
5516
5517
cristy3ed852e2009-09-05 21:47:34 +00005518
cristya0b81c32010-01-22 02:54:33 +00005519ac_ext=c
5520ac_cpp='$CPP $CPPFLAGS'
5521ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5522ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5523ac_compiler_gnu=$ac_cv_c_compiler_gnu
5524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5525$as_echo_n "checking how to run the C preprocessor... " >&6; }
5526# On Suns, sometimes $CPP names a directory.
5527if test -n "$CPP" && test -d "$CPP"; then
5528 CPP=
5529fi
5530if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005531 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005532 $as_echo_n "(cached) " >&6
5533else
5534 # Double quotes because CPP needs to be expanded
5535 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5536 do
5537 ac_preproc_ok=false
5538for ac_c_preproc_warn_flag in '' yes
5539do
5540 # Use a header file that comes with gcc, so configuring glibc
5541 # with a fresh cross-compiler works.
5542 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5543 # <limits.h> exists even on freestanding compilers.
5544 # On the NeXT, cc -E runs the code through the compiler's parser,
5545 # not just through cpp. "Syntax error" is here to catch this case.
5546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5547/* end confdefs.h. */
5548#ifdef __STDC__
5549# include <limits.h>
5550#else
5551# include <assert.h>
5552#endif
5553 Syntax error
5554_ACEOF
5555if ac_fn_c_try_cpp "$LINENO"; then :
5556
5557else
5558 # Broken: fails on valid input.
5559continue
5560fi
cristyda16f162011-02-19 23:52:17 +00005561rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005562
5563 # OK, works on sane cases. Now check whether nonexistent headers
5564 # can be detected and how.
5565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5566/* end confdefs.h. */
5567#include <ac_nonexistent.h>
5568_ACEOF
5569if ac_fn_c_try_cpp "$LINENO"; then :
5570 # Broken: success on invalid input.
5571continue
5572else
5573 # Passes both tests.
5574ac_preproc_ok=:
5575break
5576fi
cristyda16f162011-02-19 23:52:17 +00005577rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005578
5579done
5580# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005581rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005582if $ac_preproc_ok; then :
5583 break
5584fi
5585
5586 done
5587 ac_cv_prog_CPP=$CPP
5588
5589fi
5590 CPP=$ac_cv_prog_CPP
5591else
5592 ac_cv_prog_CPP=$CPP
5593fi
5594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5595$as_echo "$CPP" >&6; }
5596ac_preproc_ok=false
5597for ac_c_preproc_warn_flag in '' yes
5598do
5599 # Use a header file that comes with gcc, so configuring glibc
5600 # with a fresh cross-compiler works.
5601 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5602 # <limits.h> exists even on freestanding compilers.
5603 # On the NeXT, cc -E runs the code through the compiler's parser,
5604 # not just through cpp. "Syntax error" is here to catch this case.
5605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5606/* end confdefs.h. */
5607#ifdef __STDC__
5608# include <limits.h>
5609#else
5610# include <assert.h>
5611#endif
5612 Syntax error
5613_ACEOF
5614if ac_fn_c_try_cpp "$LINENO"; then :
5615
5616else
5617 # Broken: fails on valid input.
5618continue
5619fi
cristyda16f162011-02-19 23:52:17 +00005620rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005621
5622 # OK, works on sane cases. Now check whether nonexistent headers
5623 # can be detected and how.
5624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5625/* end confdefs.h. */
5626#include <ac_nonexistent.h>
5627_ACEOF
5628if ac_fn_c_try_cpp "$LINENO"; then :
5629 # Broken: success on invalid input.
5630continue
5631else
5632 # Passes both tests.
5633ac_preproc_ok=:
5634break
5635fi
cristyda16f162011-02-19 23:52:17 +00005636rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005637
5638done
5639# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005640rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005641if $ac_preproc_ok; then :
5642
5643else
5644 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5645$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005646as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5647See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005648fi
5649
5650ac_ext=c
5651ac_cpp='$CPP $CPPFLAGS'
5652ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5653ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5654ac_compiler_gnu=$ac_cv_c_compiler_gnu
5655
5656
5657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5658$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005659if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005660 $as_echo_n "(cached) " >&6
5661else
5662 if test -z "$GREP"; then
5663 ac_path_GREP_found=false
5664 # Loop through the user's path and test for each of PROGNAME-LIST
5665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5666for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5667do
5668 IFS=$as_save_IFS
5669 test -z "$as_dir" && as_dir=.
5670 for ac_prog in grep ggrep; do
5671 for ac_exec_ext in '' $ac_executable_extensions; do
5672 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005673 as_fn_executable_p "$ac_path_GREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005674# Check for GNU ac_path_GREP and select it if it is found.
5675 # Check for GNU $ac_path_GREP
5676case `"$ac_path_GREP" --version 2>&1` in
5677*GNU*)
5678 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5679*)
5680 ac_count=0
5681 $as_echo_n 0123456789 >"conftest.in"
5682 while :
5683 do
5684 cat "conftest.in" "conftest.in" >"conftest.tmp"
5685 mv "conftest.tmp" "conftest.in"
5686 cp "conftest.in" "conftest.nl"
5687 $as_echo 'GREP' >> "conftest.nl"
5688 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5689 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5690 as_fn_arith $ac_count + 1 && ac_count=$as_val
5691 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5692 # Best one so far, save it but keep looking for a better one
5693 ac_cv_path_GREP="$ac_path_GREP"
5694 ac_path_GREP_max=$ac_count
5695 fi
5696 # 10*(2^10) chars as input seems more than enough
5697 test $ac_count -gt 10 && break
5698 done
5699 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5700esac
5701
5702 $ac_path_GREP_found && break 3
5703 done
5704 done
5705 done
5706IFS=$as_save_IFS
5707 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005708 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005709 fi
5710else
5711 ac_cv_path_GREP=$GREP
5712fi
5713
5714fi
5715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5716$as_echo "$ac_cv_path_GREP" >&6; }
5717 GREP="$ac_cv_path_GREP"
5718
5719
5720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5721$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005722if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005723 $as_echo_n "(cached) " >&6
5724else
5725 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5726 then ac_cv_path_EGREP="$GREP -E"
5727 else
5728 if test -z "$EGREP"; then
5729 ac_path_EGREP_found=false
5730 # Loop through the user's path and test for each of PROGNAME-LIST
5731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5732for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5733do
5734 IFS=$as_save_IFS
5735 test -z "$as_dir" && as_dir=.
5736 for ac_prog in egrep; do
5737 for ac_exec_ext in '' $ac_executable_extensions; do
5738 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005739 as_fn_executable_p "$ac_path_EGREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005740# Check for GNU ac_path_EGREP and select it if it is found.
5741 # Check for GNU $ac_path_EGREP
5742case `"$ac_path_EGREP" --version 2>&1` in
5743*GNU*)
5744 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5745*)
5746 ac_count=0
5747 $as_echo_n 0123456789 >"conftest.in"
5748 while :
5749 do
5750 cat "conftest.in" "conftest.in" >"conftest.tmp"
5751 mv "conftest.tmp" "conftest.in"
5752 cp "conftest.in" "conftest.nl"
5753 $as_echo 'EGREP' >> "conftest.nl"
5754 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5755 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5756 as_fn_arith $ac_count + 1 && ac_count=$as_val
5757 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5758 # Best one so far, save it but keep looking for a better one
5759 ac_cv_path_EGREP="$ac_path_EGREP"
5760 ac_path_EGREP_max=$ac_count
5761 fi
5762 # 10*(2^10) chars as input seems more than enough
5763 test $ac_count -gt 10 && break
5764 done
5765 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5766esac
5767
5768 $ac_path_EGREP_found && break 3
5769 done
5770 done
5771 done
5772IFS=$as_save_IFS
5773 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005774 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005775 fi
5776else
5777 ac_cv_path_EGREP=$EGREP
5778fi
5779
5780 fi
5781fi
5782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5783$as_echo "$ac_cv_path_EGREP" >&6; }
5784 EGREP="$ac_cv_path_EGREP"
5785
5786
5787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5788$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005789if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005790 $as_echo_n "(cached) " >&6
5791else
5792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5793/* end confdefs.h. */
5794#include <stdlib.h>
5795#include <stdarg.h>
5796#include <string.h>
5797#include <float.h>
5798
5799int
5800main ()
5801{
5802
5803 ;
5804 return 0;
5805}
5806_ACEOF
5807if ac_fn_c_try_compile "$LINENO"; then :
5808 ac_cv_header_stdc=yes
5809else
5810 ac_cv_header_stdc=no
5811fi
5812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5813
5814if test $ac_cv_header_stdc = yes; then
5815 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5817/* end confdefs.h. */
5818#include <string.h>
5819
5820_ACEOF
5821if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5822 $EGREP "memchr" >/dev/null 2>&1; then :
5823
5824else
5825 ac_cv_header_stdc=no
5826fi
5827rm -f conftest*
5828
5829fi
5830
5831if test $ac_cv_header_stdc = yes; then
5832 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5834/* end confdefs.h. */
5835#include <stdlib.h>
5836
5837_ACEOF
5838if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5839 $EGREP "free" >/dev/null 2>&1; then :
5840
5841else
5842 ac_cv_header_stdc=no
5843fi
5844rm -f conftest*
5845
5846fi
5847
5848if test $ac_cv_header_stdc = yes; then
5849 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5850 if test "$cross_compiling" = yes; then :
5851 :
5852else
5853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5854/* end confdefs.h. */
5855#include <ctype.h>
5856#include <stdlib.h>
5857#if ((' ' & 0x0FF) == 0x020)
5858# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5859# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5860#else
5861# define ISLOWER(c) \
5862 (('a' <= (c) && (c) <= 'i') \
5863 || ('j' <= (c) && (c) <= 'r') \
5864 || ('s' <= (c) && (c) <= 'z'))
5865# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5866#endif
5867
5868#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5869int
5870main ()
5871{
5872 int i;
5873 for (i = 0; i < 256; i++)
5874 if (XOR (islower (i), ISLOWER (i))
5875 || toupper (i) != TOUPPER (i))
5876 return 2;
5877 return 0;
5878}
5879_ACEOF
5880if ac_fn_c_try_run "$LINENO"; then :
5881
5882else
5883 ac_cv_header_stdc=no
5884fi
5885rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5886 conftest.$ac_objext conftest.beam conftest.$ac_ext
5887fi
5888
5889fi
5890fi
5891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5892$as_echo "$ac_cv_header_stdc" >&6; }
5893if test $ac_cv_header_stdc = yes; then
5894
5895$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5896
5897fi
5898
5899# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5900for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5901 inttypes.h stdint.h unistd.h
5902do :
5903 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5904ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5905"
cristy98dddb52010-11-04 00:30:15 +00005906if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005907 cat >>confdefs.h <<_ACEOF
5908#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5909_ACEOF
5910
5911fi
5912
5913done
5914
5915
5916
5917 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 +00005918if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00005919 MINIX=yes
5920else
5921 MINIX=
5922fi
5923
5924
5925 if test "$MINIX" = yes; then
5926
5927$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5928
5929
5930$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5931
5932
5933$as_echo "#define _MINIX 1" >>confdefs.h
5934
5935 fi
5936
5937
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5939$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005940if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005941 $as_echo_n "(cached) " >&6
5942else
5943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5944/* end confdefs.h. */
5945
cristy14fefe52012-05-21 00:59:18 +00005946# define __EXTENSIONS__ 1
5947 $ac_includes_default
cristya0b81c32010-01-22 02:54:33 +00005948int
5949main ()
5950{
5951
5952 ;
5953 return 0;
5954}
5955_ACEOF
5956if ac_fn_c_try_compile "$LINENO"; then :
5957 ac_cv_safe_to_define___extensions__=yes
5958else
5959 ac_cv_safe_to_define___extensions__=no
5960fi
5961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5962fi
5963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5964$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5965 test $ac_cv_safe_to_define___extensions__ = yes &&
5966 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5967
5968 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5969
5970 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5971
5972 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5973
5974 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5975
5976
5977
5978# Check for programs
5979ac_ext=c
5980ac_cpp='$CPP $CPPFLAGS'
5981ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5982ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5983ac_compiler_gnu=$ac_cv_c_compiler_gnu
5984if test -n "$ac_tool_prefix"; then
5985 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5986set dummy ${ac_tool_prefix}gcc; ac_word=$2
5987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5988$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005989if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005990 $as_echo_n "(cached) " >&6
5991else
5992 if test -n "$CC"; then
5993 ac_cv_prog_CC="$CC" # Let the user override the test.
5994else
5995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5996for as_dir in $PATH
5997do
5998 IFS=$as_save_IFS
5999 test -z "$as_dir" && as_dir=.
6000 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006002 ac_cv_prog_CC="${ac_tool_prefix}gcc"
6003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6004 break 2
6005 fi
6006done
6007 done
6008IFS=$as_save_IFS
6009
6010fi
6011fi
6012CC=$ac_cv_prog_CC
6013if test -n "$CC"; then
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6015$as_echo "$CC" >&6; }
6016else
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6018$as_echo "no" >&6; }
6019fi
6020
6021
6022fi
6023if test -z "$ac_cv_prog_CC"; then
6024 ac_ct_CC=$CC
6025 # Extract the first word of "gcc", so it can be a program name with args.
6026set dummy gcc; ac_word=$2
6027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6028$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006029if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006030 $as_echo_n "(cached) " >&6
6031else
6032 if test -n "$ac_ct_CC"; then
6033 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6034else
6035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6036for as_dir in $PATH
6037do
6038 IFS=$as_save_IFS
6039 test -z "$as_dir" && as_dir=.
6040 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006042 ac_cv_prog_ac_ct_CC="gcc"
6043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6044 break 2
6045 fi
6046done
6047 done
6048IFS=$as_save_IFS
6049
6050fi
6051fi
6052ac_ct_CC=$ac_cv_prog_ac_ct_CC
6053if test -n "$ac_ct_CC"; then
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6055$as_echo "$ac_ct_CC" >&6; }
6056else
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6058$as_echo "no" >&6; }
6059fi
6060
6061 if test "x$ac_ct_CC" = x; then
6062 CC=""
6063 else
6064 case $cross_compiling:$ac_tool_warned in
6065yes:)
6066{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6067$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6068ac_tool_warned=yes ;;
6069esac
6070 CC=$ac_ct_CC
6071 fi
6072else
6073 CC="$ac_cv_prog_CC"
6074fi
6075
6076if test -z "$CC"; then
6077 if test -n "$ac_tool_prefix"; then
6078 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6079set dummy ${ac_tool_prefix}cc; ac_word=$2
6080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6081$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006082if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006083 $as_echo_n "(cached) " >&6
6084else
6085 if test -n "$CC"; then
6086 ac_cv_prog_CC="$CC" # Let the user override the test.
6087else
6088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6089for as_dir in $PATH
6090do
6091 IFS=$as_save_IFS
6092 test -z "$as_dir" && as_dir=.
6093 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006095 ac_cv_prog_CC="${ac_tool_prefix}cc"
6096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6097 break 2
6098 fi
6099done
6100 done
6101IFS=$as_save_IFS
6102
6103fi
6104fi
6105CC=$ac_cv_prog_CC
6106if test -n "$CC"; then
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6108$as_echo "$CC" >&6; }
6109else
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6111$as_echo "no" >&6; }
6112fi
6113
6114
6115 fi
6116fi
6117if test -z "$CC"; then
6118 # Extract the first word of "cc", so it can be a program name with args.
6119set dummy cc; ac_word=$2
6120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6121$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006122if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006123 $as_echo_n "(cached) " >&6
6124else
6125 if test -n "$CC"; then
6126 ac_cv_prog_CC="$CC" # Let the user override the test.
6127else
6128 ac_prog_rejected=no
6129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6130for as_dir in $PATH
6131do
6132 IFS=$as_save_IFS
6133 test -z "$as_dir" && as_dir=.
6134 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006136 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6137 ac_prog_rejected=yes
6138 continue
6139 fi
6140 ac_cv_prog_CC="cc"
6141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6142 break 2
6143 fi
6144done
6145 done
6146IFS=$as_save_IFS
6147
6148if test $ac_prog_rejected = yes; then
6149 # We found a bogon in the path, so make sure we never use it.
6150 set dummy $ac_cv_prog_CC
6151 shift
6152 if test $# != 0; then
6153 # We chose a different compiler from the bogus one.
6154 # However, it has the same basename, so the bogon will be chosen
6155 # first if we set CC to just the basename; use the full file name.
6156 shift
6157 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6158 fi
6159fi
6160fi
6161fi
6162CC=$ac_cv_prog_CC
6163if test -n "$CC"; then
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6165$as_echo "$CC" >&6; }
6166else
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6168$as_echo "no" >&6; }
6169fi
6170
6171
6172fi
6173if test -z "$CC"; then
6174 if test -n "$ac_tool_prefix"; then
6175 for ac_prog in cl.exe
6176 do
6177 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6178set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6180$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006181if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006182 $as_echo_n "(cached) " >&6
6183else
6184 if test -n "$CC"; then
6185 ac_cv_prog_CC="$CC" # Let the user override the test.
6186else
6187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6188for as_dir in $PATH
6189do
6190 IFS=$as_save_IFS
6191 test -z "$as_dir" && as_dir=.
6192 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006194 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6196 break 2
6197 fi
6198done
6199 done
6200IFS=$as_save_IFS
6201
6202fi
6203fi
6204CC=$ac_cv_prog_CC
6205if test -n "$CC"; then
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6207$as_echo "$CC" >&6; }
6208else
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6210$as_echo "no" >&6; }
6211fi
6212
6213
6214 test -n "$CC" && break
6215 done
6216fi
6217if test -z "$CC"; then
6218 ac_ct_CC=$CC
6219 for ac_prog in cl.exe
6220do
6221 # Extract the first word of "$ac_prog", so it can be a program name with args.
6222set dummy $ac_prog; ac_word=$2
6223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6224$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006225if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006226 $as_echo_n "(cached) " >&6
6227else
6228 if test -n "$ac_ct_CC"; then
6229 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6230else
6231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6232for as_dir in $PATH
6233do
6234 IFS=$as_save_IFS
6235 test -z "$as_dir" && as_dir=.
6236 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006238 ac_cv_prog_ac_ct_CC="$ac_prog"
6239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6240 break 2
6241 fi
6242done
6243 done
6244IFS=$as_save_IFS
6245
6246fi
6247fi
6248ac_ct_CC=$ac_cv_prog_ac_ct_CC
6249if test -n "$ac_ct_CC"; then
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6251$as_echo "$ac_ct_CC" >&6; }
6252else
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6254$as_echo "no" >&6; }
6255fi
6256
6257
6258 test -n "$ac_ct_CC" && break
6259done
6260
6261 if test "x$ac_ct_CC" = x; then
6262 CC=""
6263 else
6264 case $cross_compiling:$ac_tool_warned in
6265yes:)
6266{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6267$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6268ac_tool_warned=yes ;;
6269esac
6270 CC=$ac_ct_CC
6271 fi
6272fi
6273
6274fi
6275
6276
6277test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6278$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00006279as_fn_error $? "no acceptable C compiler found in \$PATH
6280See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00006281
6282# Provide some information about the compiler.
6283$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6284set X $ac_compile
6285ac_compiler=$2
6286for ac_option in --version -v -V -qversion; do
6287 { { ac_try="$ac_compiler $ac_option >&5"
6288case "(($ac_try" in
6289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6290 *) ac_try_echo=$ac_try;;
6291esac
6292eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6293$as_echo "$ac_try_echo"; } >&5
6294 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6295 ac_status=$?
6296 if test -s conftest.err; then
6297 sed '10a\
6298... rest of stderr output deleted ...
6299 10q' conftest.err >conftest.er1
6300 cat conftest.er1 >&5
6301 fi
6302 rm -f conftest.er1 conftest.err
6303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6304 test $ac_status = 0; }
6305done
6306
6307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6308$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006309if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006310 $as_echo_n "(cached) " >&6
6311else
6312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6313/* end confdefs.h. */
6314
6315int
6316main ()
6317{
6318#ifndef __GNUC__
6319 choke me
6320#endif
6321
6322 ;
6323 return 0;
6324}
6325_ACEOF
6326if ac_fn_c_try_compile "$LINENO"; then :
6327 ac_compiler_gnu=yes
6328else
6329 ac_compiler_gnu=no
6330fi
6331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6332ac_cv_c_compiler_gnu=$ac_compiler_gnu
6333
6334fi
6335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6336$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6337if test $ac_compiler_gnu = yes; then
6338 GCC=yes
6339else
6340 GCC=
6341fi
6342ac_test_CFLAGS=${CFLAGS+set}
6343ac_save_CFLAGS=$CFLAGS
6344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6345$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006346if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006347 $as_echo_n "(cached) " >&6
6348else
6349 ac_save_c_werror_flag=$ac_c_werror_flag
6350 ac_c_werror_flag=yes
6351 ac_cv_prog_cc_g=no
6352 CFLAGS="-g"
6353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6354/* end confdefs.h. */
6355
6356int
6357main ()
6358{
6359
6360 ;
6361 return 0;
6362}
6363_ACEOF
6364if ac_fn_c_try_compile "$LINENO"; then :
6365 ac_cv_prog_cc_g=yes
6366else
6367 CFLAGS=""
6368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6369/* end confdefs.h. */
6370
6371int
6372main ()
6373{
6374
6375 ;
6376 return 0;
6377}
6378_ACEOF
6379if ac_fn_c_try_compile "$LINENO"; then :
6380
6381else
6382 ac_c_werror_flag=$ac_save_c_werror_flag
6383 CFLAGS="-g"
6384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6385/* end confdefs.h. */
6386
6387int
6388main ()
6389{
6390
6391 ;
6392 return 0;
6393}
6394_ACEOF
6395if ac_fn_c_try_compile "$LINENO"; then :
6396 ac_cv_prog_cc_g=yes
6397fi
6398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6399fi
6400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6401fi
6402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6403 ac_c_werror_flag=$ac_save_c_werror_flag
6404fi
6405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6406$as_echo "$ac_cv_prog_cc_g" >&6; }
6407if test "$ac_test_CFLAGS" = set; then
6408 CFLAGS=$ac_save_CFLAGS
6409elif test $ac_cv_prog_cc_g = yes; then
6410 if test "$GCC" = yes; then
6411 CFLAGS="-g -O2"
6412 else
6413 CFLAGS="-g"
6414 fi
6415else
6416 if test "$GCC" = yes; then
6417 CFLAGS="-O2"
6418 else
6419 CFLAGS=
6420 fi
6421fi
6422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6423$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006424if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006425 $as_echo_n "(cached) " >&6
6426else
6427 ac_cv_prog_cc_c89=no
6428ac_save_CC=$CC
6429cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6430/* end confdefs.h. */
6431#include <stdarg.h>
6432#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00006433struct stat;
cristya0b81c32010-01-22 02:54:33 +00006434/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6435struct buf { int x; };
6436FILE * (*rcsopen) (struct buf *, struct stat *, int);
6437static char *e (p, i)
6438 char **p;
6439 int i;
6440{
6441 return p[i];
6442}
6443static char *f (char * (*g) (char **, int), char **p, ...)
6444{
6445 char *s;
6446 va_list v;
6447 va_start (v,p);
6448 s = g (p, va_arg (v,int));
6449 va_end (v);
6450 return s;
6451}
6452
6453/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6454 function prototypes and stuff, but not '\xHH' hex character constants.
6455 These don't provoke an error unfortunately, instead are silently treated
6456 as 'x'. The following induces an error, until -std is added to get
6457 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6458 array size at least. It's necessary to write '\x00'==0 to get something
6459 that's true only with -std. */
6460int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6461
6462/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6463 inside strings and character constants. */
6464#define FOO(x) 'x'
6465int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6466
6467int test (int i, double x);
6468struct s1 {int (*f) (int a);};
6469struct s2 {int (*f) (double a);};
6470int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6471int argc;
6472char **argv;
6473int
6474main ()
6475{
6476return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6477 ;
6478 return 0;
6479}
6480_ACEOF
6481for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6482 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6483do
6484 CC="$ac_save_CC $ac_arg"
6485 if ac_fn_c_try_compile "$LINENO"; then :
6486 ac_cv_prog_cc_c89=$ac_arg
6487fi
6488rm -f core conftest.err conftest.$ac_objext
6489 test "x$ac_cv_prog_cc_c89" != "xno" && break
6490done
6491rm -f conftest.$ac_ext
6492CC=$ac_save_CC
6493
6494fi
6495# AC_CACHE_VAL
6496case "x$ac_cv_prog_cc_c89" in
6497 x)
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6499$as_echo "none needed" >&6; } ;;
6500 xno)
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6502$as_echo "unsupported" >&6; } ;;
6503 *)
6504 CC="$CC $ac_cv_prog_cc_c89"
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6506$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6507esac
6508if test "x$ac_cv_prog_cc_c89" != xno; then :
6509
6510fi
6511
6512ac_ext=c
6513ac_cpp='$CPP $CPPFLAGS'
6514ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6515ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6516ac_compiler_gnu=$ac_cv_c_compiler_gnu
6517
cristya5bda012013-11-03 18:05:38 +00006518ac_ext=c
6519ac_cpp='$CPP $CPPFLAGS'
6520ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6521ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6522ac_compiler_gnu=$ac_cv_c_compiler_gnu
6523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6524$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6525if ${am_cv_prog_cc_c_o+:} false; then :
6526 $as_echo_n "(cached) " >&6
6527else
6528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6529/* end confdefs.h. */
6530
6531int
6532main ()
6533{
6534
6535 ;
6536 return 0;
6537}
6538_ACEOF
6539 # Make sure it works both with $CC and with simple cc.
6540 # Following AC_PROG_CC_C_O, we do the test twice because some
6541 # compilers refuse to overwrite an existing .o file with -o,
6542 # though they will create one.
6543 am_cv_prog_cc_c_o=yes
6544 for am_i in 1 2; do
6545 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6546 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6547 ac_status=$?
6548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549 (exit $ac_status); } \
6550 && test -f conftest2.$ac_objext; then
6551 : OK
6552 else
6553 am_cv_prog_cc_c_o=no
6554 break
6555 fi
6556 done
6557 rm -f core conftest*
6558 unset am_i
6559fi
6560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6561$as_echo "$am_cv_prog_cc_c_o" >&6; }
6562if test "$am_cv_prog_cc_c_o" != yes; then
6563 # Losing compiler, so override with the script.
6564 # FIXME: It is wrong to rewrite CC.
6565 # But if we don't then we get into trouble of one sort or another.
6566 # A longer-term fix would be to have automake use am__CC in this case,
6567 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6568 CC="$am_aux_dir/compile $CC"
6569fi
6570ac_ext=c
6571ac_cpp='$CPP $CPPFLAGS'
6572ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6573ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6574ac_compiler_gnu=$ac_cv_c_compiler_gnu
6575
6576
cristy73bd4a52010-10-05 11:24:23 +00006577depcc="$CC" am_compiler_list=
6578
6579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6580$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006581if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006582 $as_echo_n "(cached) " >&6
6583else
6584 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6585 # We make a subdir and do the tests there. Otherwise we can end up
6586 # making bogus files that we don't know about and never remove. For
6587 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006588 # making a dummy file named 'D' -- because '-MD' means "put the output
6589 # in D".
cristy7247bba2012-02-05 16:37:27 +00006590 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006591 mkdir conftest.dir
6592 # Copy depcomp to subdir because otherwise we won't find it if we're
6593 # using a relative directory.
6594 cp "$am_depcomp" conftest.dir
6595 cd conftest.dir
6596 # We will build objects and dependencies in a subdirectory because
6597 # it helps to detect inapplicable dependency modes. For instance
6598 # both Tru64's cc and ICC support -MD to output dependencies as a
6599 # side effect of compilation, but ICC will put the dependencies in
6600 # the current directory while Tru64 will put them in the object
6601 # directory.
6602 mkdir sub
6603
6604 am_cv_CC_dependencies_compiler_type=none
6605 if test "$am_compiler_list" = ""; then
6606 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6607 fi
6608 am__universal=false
6609 case " $depcc " in #(
6610 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6611 esac
6612
6613 for depmode in $am_compiler_list; do
6614 # Setup a source with many dependencies, because some compilers
6615 # like to wrap large dependency lists on column 80 (with \), and
6616 # we should not choose a depcomp mode which is confused by this.
6617 #
6618 # We need to recreate these files for each test, as the compiler may
6619 # overwrite some of them when testing with obscure command lines.
6620 # This happens at least with the AIX C compiler.
6621 : > sub/conftest.c
6622 for i in 1 2 3 4 5 6; do
6623 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006624 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6625 # Solaris 10 /bin/sh.
6626 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006627 done
6628 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6629
cristyc0890a62012-07-19 00:18:20 +00006630 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006631 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006632 # handle '-M -o', and we need to detect this. Also, some Intel
6633 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006634 am__obj=sub/conftest.${OBJEXT-o}
6635 am__minus_obj="-o $am__obj"
6636 case $depmode in
6637 gcc)
6638 # This depmode causes a compiler race in universal mode.
6639 test "$am__universal" = false || continue
6640 ;;
6641 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006642 # After this tag, mechanisms are not by side-effect, so they'll
6643 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006644 if test "x$enable_dependency_tracking" = xyes; then
6645 continue
6646 else
6647 break
6648 fi
6649 ;;
cristy7247bba2012-02-05 16:37:27 +00006650 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006651 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006652 # not run yet. These depmodes are late enough in the game, and
6653 # so weak that their functioning should not be impacted.
6654 am__obj=conftest.${OBJEXT-o}
6655 am__minus_obj=
6656 ;;
6657 none) break ;;
6658 esac
6659 if depmode=$depmode \
6660 source=sub/conftest.c object=$am__obj \
6661 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6662 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6663 >/dev/null 2>conftest.err &&
6664 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6665 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6666 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6667 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6668 # icc doesn't choke on unknown options, it will just issue warnings
6669 # or remarks (even with -Werror). So we grep stderr for any message
6670 # that says an option was ignored or not supported.
6671 # When given -MP, icc 7.0 and 7.1 complain thusly:
6672 # icc: Command line warning: ignoring option '-M'; no argument required
6673 # The diagnosis changed in icc 8.0:
6674 # icc: Command line remark: option '-MP' not supported
6675 if (grep 'ignoring option' conftest.err ||
6676 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6677 am_cv_CC_dependencies_compiler_type=$depmode
6678 break
6679 fi
6680 fi
6681 done
6682
6683 cd ..
6684 rm -rf conftest.dir
6685else
6686 am_cv_CC_dependencies_compiler_type=none
6687fi
6688
6689fi
6690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6691$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6692CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6693
6694 if
6695 test "x$enable_dependency_tracking" != xno \
6696 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6697 am__fastdepCC_TRUE=
6698 am__fastdepCC_FALSE='#'
6699else
6700 am__fastdepCC_TRUE='#'
6701 am__fastdepCC_FALSE=
6702fi
6703
6704
cristy95646052009-11-28 23:05:30 +00006705ac_ext=cpp
6706ac_cpp='$CXXCPP $CPPFLAGS'
6707ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6708ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6709ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6710if test -z "$CXX"; then
6711 if test -n "$CCC"; then
6712 CXX=$CCC
6713 else
6714 if test -n "$ac_tool_prefix"; then
6715 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6716 do
6717 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6718set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6720$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006721if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006722 $as_echo_n "(cached) " >&6
6723else
6724 if test -n "$CXX"; then
6725 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6726else
6727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6728for as_dir in $PATH
6729do
6730 IFS=$as_save_IFS
6731 test -z "$as_dir" && as_dir=.
6732 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006734 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6736 break 2
6737 fi
6738done
6739 done
6740IFS=$as_save_IFS
6741
6742fi
6743fi
6744CXX=$ac_cv_prog_CXX
6745if test -n "$CXX"; then
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6747$as_echo "$CXX" >&6; }
6748else
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6750$as_echo "no" >&6; }
6751fi
6752
6753
6754 test -n "$CXX" && break
6755 done
6756fi
6757if test -z "$CXX"; then
6758 ac_ct_CXX=$CXX
6759 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6760do
6761 # Extract the first word of "$ac_prog", so it can be a program name with args.
6762set dummy $ac_prog; ac_word=$2
6763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6764$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006765if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006766 $as_echo_n "(cached) " >&6
6767else
6768 if test -n "$ac_ct_CXX"; then
6769 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6770else
6771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6772for as_dir in $PATH
6773do
6774 IFS=$as_save_IFS
6775 test -z "$as_dir" && as_dir=.
6776 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006778 ac_cv_prog_ac_ct_CXX="$ac_prog"
6779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6780 break 2
6781 fi
6782done
6783 done
6784IFS=$as_save_IFS
6785
6786fi
6787fi
6788ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6789if test -n "$ac_ct_CXX"; then
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6791$as_echo "$ac_ct_CXX" >&6; }
6792else
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6794$as_echo "no" >&6; }
6795fi
6796
6797
6798 test -n "$ac_ct_CXX" && break
6799done
6800
6801 if test "x$ac_ct_CXX" = x; then
6802 CXX="g++"
6803 else
6804 case $cross_compiling:$ac_tool_warned in
6805yes:)
6806{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6807$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6808ac_tool_warned=yes ;;
6809esac
6810 CXX=$ac_ct_CXX
6811 fi
6812fi
6813
6814 fi
6815fi
6816# Provide some information about the compiler.
6817$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6818set X $ac_compile
6819ac_compiler=$2
6820for ac_option in --version -v -V -qversion; do
6821 { { ac_try="$ac_compiler $ac_option >&5"
6822case "(($ac_try" in
6823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6824 *) ac_try_echo=$ac_try;;
6825esac
6826eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6827$as_echo "$ac_try_echo"; } >&5
6828 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6829 ac_status=$?
6830 if test -s conftest.err; then
6831 sed '10a\
6832... rest of stderr output deleted ...
6833 10q' conftest.err >conftest.er1
6834 cat conftest.er1 >&5
6835 fi
6836 rm -f conftest.er1 conftest.err
6837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6838 test $ac_status = 0; }
6839done
6840
6841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6842$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006843if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00006844 $as_echo_n "(cached) " >&6
6845else
6846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6847/* end confdefs.h. */
6848
6849int
6850main ()
6851{
6852#ifndef __GNUC__
6853 choke me
6854#endif
6855
6856 ;
6857 return 0;
6858}
6859_ACEOF
6860if ac_fn_cxx_try_compile "$LINENO"; then :
6861 ac_compiler_gnu=yes
6862else
6863 ac_compiler_gnu=no
6864fi
6865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6866ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6867
6868fi
6869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6870$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6871if test $ac_compiler_gnu = yes; then
6872 GXX=yes
6873else
6874 GXX=
6875fi
6876ac_test_CXXFLAGS=${CXXFLAGS+set}
6877ac_save_CXXFLAGS=$CXXFLAGS
6878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6879$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006880if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00006881 $as_echo_n "(cached) " >&6
6882else
6883 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6884 ac_cxx_werror_flag=yes
6885 ac_cv_prog_cxx_g=no
6886 CXXFLAGS="-g"
6887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6888/* end confdefs.h. */
6889
6890int
6891main ()
6892{
6893
6894 ;
6895 return 0;
6896}
6897_ACEOF
6898if ac_fn_cxx_try_compile "$LINENO"; then :
6899 ac_cv_prog_cxx_g=yes
6900else
6901 CXXFLAGS=""
6902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6903/* end confdefs.h. */
6904
6905int
6906main ()
6907{
6908
6909 ;
6910 return 0;
6911}
6912_ACEOF
6913if ac_fn_cxx_try_compile "$LINENO"; then :
6914
6915else
6916 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6917 CXXFLAGS="-g"
6918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6919/* end confdefs.h. */
6920
6921int
6922main ()
6923{
6924
6925 ;
6926 return 0;
6927}
6928_ACEOF
6929if ac_fn_cxx_try_compile "$LINENO"; then :
6930 ac_cv_prog_cxx_g=yes
6931fi
6932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6933fi
6934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6935fi
6936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6937 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6938fi
6939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6940$as_echo "$ac_cv_prog_cxx_g" >&6; }
6941if test "$ac_test_CXXFLAGS" = set; then
6942 CXXFLAGS=$ac_save_CXXFLAGS
6943elif test $ac_cv_prog_cxx_g = yes; then
6944 if test "$GXX" = yes; then
6945 CXXFLAGS="-g -O2"
6946 else
6947 CXXFLAGS="-g"
6948 fi
6949else
6950 if test "$GXX" = yes; then
6951 CXXFLAGS="-O2"
6952 else
6953 CXXFLAGS=
6954 fi
6955fi
6956ac_ext=c
6957ac_cpp='$CPP $CPPFLAGS'
6958ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6959ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6960ac_compiler_gnu=$ac_cv_c_compiler_gnu
6961
cristy73bd4a52010-10-05 11:24:23 +00006962depcc="$CXX" am_compiler_list=
6963
6964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6965$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006966if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006967 $as_echo_n "(cached) " >&6
6968else
6969 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6970 # We make a subdir and do the tests there. Otherwise we can end up
6971 # making bogus files that we don't know about and never remove. For
6972 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006973 # making a dummy file named 'D' -- because '-MD' means "put the output
6974 # in D".
cristy7247bba2012-02-05 16:37:27 +00006975 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006976 mkdir conftest.dir
6977 # Copy depcomp to subdir because otherwise we won't find it if we're
6978 # using a relative directory.
6979 cp "$am_depcomp" conftest.dir
6980 cd conftest.dir
6981 # We will build objects and dependencies in a subdirectory because
6982 # it helps to detect inapplicable dependency modes. For instance
6983 # both Tru64's cc and ICC support -MD to output dependencies as a
6984 # side effect of compilation, but ICC will put the dependencies in
6985 # the current directory while Tru64 will put them in the object
6986 # directory.
6987 mkdir sub
6988
6989 am_cv_CXX_dependencies_compiler_type=none
6990 if test "$am_compiler_list" = ""; then
6991 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6992 fi
6993 am__universal=false
6994 case " $depcc " in #(
6995 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6996 esac
6997
6998 for depmode in $am_compiler_list; do
6999 # Setup a source with many dependencies, because some compilers
7000 # like to wrap large dependency lists on column 80 (with \), and
7001 # we should not choose a depcomp mode which is confused by this.
7002 #
7003 # We need to recreate these files for each test, as the compiler may
7004 # overwrite some of them when testing with obscure command lines.
7005 # This happens at least with the AIX C compiler.
7006 : > sub/conftest.c
7007 for i in 1 2 3 4 5 6; do
7008 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00007009 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7010 # Solaris 10 /bin/sh.
7011 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00007012 done
7013 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7014
cristyc0890a62012-07-19 00:18:20 +00007015 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00007016 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00007017 # handle '-M -o', and we need to detect this. Also, some Intel
7018 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00007019 am__obj=sub/conftest.${OBJEXT-o}
7020 am__minus_obj="-o $am__obj"
7021 case $depmode in
7022 gcc)
7023 # This depmode causes a compiler race in universal mode.
7024 test "$am__universal" = false || continue
7025 ;;
7026 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00007027 # After this tag, mechanisms are not by side-effect, so they'll
7028 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00007029 if test "x$enable_dependency_tracking" = xyes; then
7030 continue
7031 else
7032 break
7033 fi
7034 ;;
cristy7247bba2012-02-05 16:37:27 +00007035 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00007036 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00007037 # not run yet. These depmodes are late enough in the game, and
7038 # so weak that their functioning should not be impacted.
7039 am__obj=conftest.${OBJEXT-o}
7040 am__minus_obj=
7041 ;;
7042 none) break ;;
7043 esac
7044 if depmode=$depmode \
7045 source=sub/conftest.c object=$am__obj \
7046 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7047 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7048 >/dev/null 2>conftest.err &&
7049 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7050 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7051 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7052 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7053 # icc doesn't choke on unknown options, it will just issue warnings
7054 # or remarks (even with -Werror). So we grep stderr for any message
7055 # that says an option was ignored or not supported.
7056 # When given -MP, icc 7.0 and 7.1 complain thusly:
7057 # icc: Command line warning: ignoring option '-M'; no argument required
7058 # The diagnosis changed in icc 8.0:
7059 # icc: Command line remark: option '-MP' not supported
7060 if (grep 'ignoring option' conftest.err ||
7061 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7062 am_cv_CXX_dependencies_compiler_type=$depmode
7063 break
7064 fi
7065 fi
7066 done
7067
7068 cd ..
7069 rm -rf conftest.dir
7070else
7071 am_cv_CXX_dependencies_compiler_type=none
7072fi
7073
7074fi
7075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7076$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7077CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7078
7079 if
7080 test "x$enable_dependency_tracking" != xno \
7081 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7082 am__fastdepCXX_TRUE=
7083 am__fastdepCXX_FALSE='#'
7084else
7085 am__fastdepCXX_TRUE='#'
7086 am__fastdepCXX_FALSE=
7087fi
7088
7089
cristy8b350f62009-11-15 23:12:43 +00007090 case $ac_cv_prog_cc_stdc in #(
7091 no) :
7092 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
7093 *) :
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007095$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007096if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007097 $as_echo_n "(cached) " >&6
7098else
7099 ac_cv_prog_cc_c99=no
7100ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007101cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007102/* end confdefs.h. */
7103#include <stdarg.h>
7104#include <stdbool.h>
7105#include <stdlib.h>
7106#include <wchar.h>
7107#include <stdio.h>
7108
7109// Check varargs macros. These examples are taken from C99 6.10.3.5.
7110#define debug(...) fprintf (stderr, __VA_ARGS__)
7111#define showlist(...) puts (#__VA_ARGS__)
7112#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7113static void
7114test_varargs_macros (void)
7115{
7116 int x = 1234;
7117 int y = 5678;
7118 debug ("Flag");
7119 debug ("X = %d\n", x);
7120 showlist (The first, second, and third items.);
7121 report (x>y, "x is %d but y is %d", x, y);
7122}
7123
7124// Check long long types.
7125#define BIG64 18446744073709551615ull
7126#define BIG32 4294967295ul
7127#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7128#if !BIG_OK
7129 your preprocessor is broken;
7130#endif
7131#if BIG_OK
7132#else
7133 your preprocessor is broken;
7134#endif
7135static long long int bignum = -9223372036854775807LL;
7136static unsigned long long int ubignum = BIG64;
7137
7138struct incomplete_array
7139{
7140 int datasize;
7141 double data[];
7142};
7143
7144struct named_init {
7145 int number;
7146 const wchar_t *name;
7147 double average;
7148};
7149
7150typedef const char *ccp;
7151
7152static inline int
7153test_restrict (ccp restrict text)
7154{
7155 // See if C++-style comments work.
7156 // Iterate through items via the restricted pointer.
7157 // Also check for declarations in for loops.
7158 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7159 continue;
7160 return 0;
7161}
7162
7163// Check varargs and va_copy.
7164static void
7165test_varargs (const char *format, ...)
7166{
7167 va_list args;
7168 va_start (args, format);
7169 va_list args_copy;
7170 va_copy (args_copy, args);
7171
7172 const char *str;
7173 int number;
7174 float fnumber;
7175
7176 while (*format)
7177 {
7178 switch (*format++)
7179 {
7180 case 's': // string
7181 str = va_arg (args_copy, const char *);
7182 break;
7183 case 'd': // int
7184 number = va_arg (args_copy, int);
7185 break;
7186 case 'f': // float
7187 fnumber = va_arg (args_copy, double);
7188 break;
7189 default:
7190 break;
7191 }
7192 }
7193 va_end (args_copy);
7194 va_end (args);
7195}
7196
7197int
7198main ()
7199{
7200
7201 // Check bool.
7202 _Bool success = false;
7203
7204 // Check restrict.
7205 if (test_restrict ("String literal") == 0)
7206 success = true;
7207 char *restrict newvar = "Another string";
7208
7209 // Check varargs.
7210 test_varargs ("s, d' f .", "string", 65, 34.234);
7211 test_varargs_macros ();
7212
7213 // Check flexible array members.
7214 struct incomplete_array *ia =
7215 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7216 ia->datasize = 10;
7217 for (int i = 0; i < ia->datasize; ++i)
7218 ia->data[i] = i * 1.234;
7219
7220 // Check named initializers.
7221 struct named_init ni = {
7222 .number = 34,
7223 .name = L"Test wide string",
7224 .average = 543.34343,
7225 };
7226
7227 ni.number = 58;
7228
7229 int dynamic_array[ni.number];
7230 dynamic_array[ni.number - 1] = 543;
7231
7232 // work around unused variable warnings
7233 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7234 || dynamic_array[ni.number - 1] != 543);
7235
7236 ;
7237 return 0;
7238}
7239_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007240for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy3ed852e2009-09-05 21:47:34 +00007241do
7242 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007243 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007244 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007245fi
cristy3ed852e2009-09-05 21:47:34 +00007246rm -f core conftest.err conftest.$ac_objext
7247 test "x$ac_cv_prog_cc_c99" != "xno" && break
7248done
7249rm -f conftest.$ac_ext
7250CC=$ac_save_CC
7251
7252fi
7253# AC_CACHE_VAL
7254case "x$ac_cv_prog_cc_c99" in
7255 x)
cristy8b350f62009-11-15 23:12:43 +00007256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007257$as_echo "none needed" >&6; } ;;
7258 xno)
cristy8b350f62009-11-15 23:12:43 +00007259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007260$as_echo "unsupported" >&6; } ;;
7261 *)
7262 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00007263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007264$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7265esac
cristy8b350f62009-11-15 23:12:43 +00007266if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007267 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7268else
cristy8b350f62009-11-15 23:12:43 +00007269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007270$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007271if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007272 $as_echo_n "(cached) " >&6
7273else
7274 ac_cv_prog_cc_c89=no
7275ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007276cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007277/* end confdefs.h. */
7278#include <stdarg.h>
7279#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00007280struct stat;
cristy3ed852e2009-09-05 21:47:34 +00007281/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7282struct buf { int x; };
7283FILE * (*rcsopen) (struct buf *, struct stat *, int);
7284static char *e (p, i)
7285 char **p;
7286 int i;
7287{
7288 return p[i];
7289}
7290static char *f (char * (*g) (char **, int), char **p, ...)
7291{
7292 char *s;
7293 va_list v;
7294 va_start (v,p);
7295 s = g (p, va_arg (v,int));
7296 va_end (v);
7297 return s;
7298}
7299
7300/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7301 function prototypes and stuff, but not '\xHH' hex character constants.
7302 These don't provoke an error unfortunately, instead are silently treated
7303 as 'x'. The following induces an error, until -std is added to get
7304 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7305 array size at least. It's necessary to write '\x00'==0 to get something
7306 that's true only with -std. */
7307int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7308
7309/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7310 inside strings and character constants. */
7311#define FOO(x) 'x'
7312int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7313
7314int test (int i, double x);
7315struct s1 {int (*f) (int a);};
7316struct s2 {int (*f) (double a);};
7317int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7318int argc;
7319char **argv;
7320int
7321main ()
7322{
7323return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7324 ;
7325 return 0;
7326}
7327_ACEOF
7328for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7329 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7330do
7331 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007332 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007333 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007334fi
cristy3ed852e2009-09-05 21:47:34 +00007335rm -f core conftest.err conftest.$ac_objext
7336 test "x$ac_cv_prog_cc_c89" != "xno" && break
7337done
7338rm -f conftest.$ac_ext
7339CC=$ac_save_CC
7340
7341fi
7342# AC_CACHE_VAL
7343case "x$ac_cv_prog_cc_c89" in
7344 x)
cristy8b350f62009-11-15 23:12:43 +00007345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007346$as_echo "none needed" >&6; } ;;
7347 xno)
cristy8b350f62009-11-15 23:12:43 +00007348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007349$as_echo "unsupported" >&6; } ;;
7350 *)
7351 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00007352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007353$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7354esac
cristy8b350f62009-11-15 23:12:43 +00007355if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007356 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7357else
7358 ac_cv_prog_cc_stdc=no
7359fi
7360
cristy3ed852e2009-09-05 21:47:34 +00007361fi
cristy3ed852e2009-09-05 21:47:34 +00007362 ;;
7363esac
cristy8b350f62009-11-15 23:12:43 +00007364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00007365$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007366 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007367 $as_echo_n "(cached) " >&6
7368fi
7369
cristy8b350f62009-11-15 23:12:43 +00007370 case $ac_cv_prog_cc_stdc in #(
7371 no) :
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7373$as_echo "unsupported" >&6; } ;; #(
7374 '') :
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7376$as_echo "none needed" >&6; } ;; #(
7377 *) :
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00007379$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7380esac
7381
cristy3ed852e2009-09-05 21:47:34 +00007382ac_ext=c
7383ac_cpp='$CPP $CPPFLAGS'
7384ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7385ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7386ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00007387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00007388$as_echo_n "checking how to run the C preprocessor... " >&6; }
7389# On Suns, sometimes $CPP names a directory.
7390if test -n "$CPP" && test -d "$CPP"; then
7391 CPP=
7392fi
7393if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00007394 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007395 $as_echo_n "(cached) " >&6
7396else
7397 # Double quotes because CPP needs to be expanded
7398 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7399 do
7400 ac_preproc_ok=false
7401for ac_c_preproc_warn_flag in '' yes
7402do
7403 # Use a header file that comes with gcc, so configuring glibc
7404 # with a fresh cross-compiler works.
7405 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7406 # <limits.h> exists even on freestanding compilers.
7407 # On the NeXT, cc -E runs the code through the compiler's parser,
7408 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007410/* end confdefs.h. */
7411#ifdef __STDC__
7412# include <limits.h>
7413#else
7414# include <assert.h>
7415#endif
7416 Syntax error
7417_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007418if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007419
cristy8b350f62009-11-15 23:12:43 +00007420else
cristy3ed852e2009-09-05 21:47:34 +00007421 # Broken: fails on valid input.
7422continue
7423fi
cristyda16f162011-02-19 23:52:17 +00007424rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007425
7426 # OK, works on sane cases. Now check whether nonexistent headers
7427 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007429/* end confdefs.h. */
7430#include <ac_nonexistent.h>
7431_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007432if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007433 # Broken: success on invalid input.
7434continue
7435else
cristy3ed852e2009-09-05 21:47:34 +00007436 # Passes both tests.
7437ac_preproc_ok=:
7438break
7439fi
cristyda16f162011-02-19 23:52:17 +00007440rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007441
7442done
7443# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007444rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007445if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007446 break
7447fi
7448
7449 done
7450 ac_cv_prog_CPP=$CPP
7451
7452fi
7453 CPP=$ac_cv_prog_CPP
7454else
7455 ac_cv_prog_CPP=$CPP
7456fi
cristy8b350f62009-11-15 23:12:43 +00007457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007458$as_echo "$CPP" >&6; }
7459ac_preproc_ok=false
7460for ac_c_preproc_warn_flag in '' yes
7461do
7462 # Use a header file that comes with gcc, so configuring glibc
7463 # with a fresh cross-compiler works.
7464 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7465 # <limits.h> exists even on freestanding compilers.
7466 # On the NeXT, cc -E runs the code through the compiler's parser,
7467 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007469/* end confdefs.h. */
7470#ifdef __STDC__
7471# include <limits.h>
7472#else
7473# include <assert.h>
7474#endif
7475 Syntax error
7476_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007477if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007478
cristy8b350f62009-11-15 23:12:43 +00007479else
cristy3ed852e2009-09-05 21:47:34 +00007480 # Broken: fails on valid input.
7481continue
7482fi
cristyda16f162011-02-19 23:52:17 +00007483rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007484
7485 # OK, works on sane cases. Now check whether nonexistent headers
7486 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007488/* end confdefs.h. */
7489#include <ac_nonexistent.h>
7490_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007491if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007492 # Broken: success on invalid input.
7493continue
7494else
cristy3ed852e2009-09-05 21:47:34 +00007495 # Passes both tests.
7496ac_preproc_ok=:
7497break
7498fi
cristyda16f162011-02-19 23:52:17 +00007499rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007500
7501done
7502# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007503rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007504if $ac_preproc_ok; then :
7505
cristy3ed852e2009-09-05 21:47:34 +00007506else
cristy8b350f62009-11-15 23:12:43 +00007507 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007508$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00007509as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7510See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007511fi
7512
7513ac_ext=c
7514ac_cpp='$CPP $CPPFLAGS'
7515ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7516ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7517ac_compiler_gnu=$ac_cv_c_compiler_gnu
7518
cristy73bd4a52010-10-05 11:24:23 +00007519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7520$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007521if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007522 $as_echo_n "(cached) " >&6
7523else
7524 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7525 for ac_i in 1 2 3 4 5 6 7; do
7526 ac_script="$ac_script$as_nl$ac_script"
7527 done
7528 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7529 { ac_script=; unset ac_script;}
7530 if test -z "$SED"; then
7531 ac_path_SED_found=false
7532 # Loop through the user's path and test for each of PROGNAME-LIST
7533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7534for as_dir in $PATH
7535do
7536 IFS=$as_save_IFS
7537 test -z "$as_dir" && as_dir=.
7538 for ac_prog in sed gsed; do
7539 for ac_exec_ext in '' $ac_executable_extensions; do
7540 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007541 as_fn_executable_p "$ac_path_SED" || continue
cristy73bd4a52010-10-05 11:24:23 +00007542# Check for GNU ac_path_SED and select it if it is found.
7543 # Check for GNU $ac_path_SED
7544case `"$ac_path_SED" --version 2>&1` in
7545*GNU*)
7546 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7547*)
7548 ac_count=0
7549 $as_echo_n 0123456789 >"conftest.in"
7550 while :
7551 do
7552 cat "conftest.in" "conftest.in" >"conftest.tmp"
7553 mv "conftest.tmp" "conftest.in"
7554 cp "conftest.in" "conftest.nl"
7555 $as_echo '' >> "conftest.nl"
7556 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7557 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7558 as_fn_arith $ac_count + 1 && ac_count=$as_val
7559 if test $ac_count -gt ${ac_path_SED_max-0}; then
7560 # Best one so far, save it but keep looking for a better one
7561 ac_cv_path_SED="$ac_path_SED"
7562 ac_path_SED_max=$ac_count
7563 fi
7564 # 10*(2^10) chars as input seems more than enough
7565 test $ac_count -gt 10 && break
7566 done
7567 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7568esac
7569
7570 $ac_path_SED_found && break 3
7571 done
7572 done
7573 done
7574IFS=$as_save_IFS
7575 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007576 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007577 fi
7578else
7579 ac_cv_path_SED=$SED
7580fi
7581
7582fi
7583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7584$as_echo "$ac_cv_path_SED" >&6; }
7585 SED="$ac_cv_path_SED"
7586 rm -f conftest.sed
7587
7588test -z "$SED" && SED=sed
7589Xsed="$SED -e 1s/^X//"
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7602$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007603if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007604 $as_echo_n "(cached) " >&6
7605else
7606 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7607 then ac_cv_path_FGREP="$GREP -F"
7608 else
7609 if test -z "$FGREP"; then
7610 ac_path_FGREP_found=false
7611 # Loop through the user's path and test for each of PROGNAME-LIST
7612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7613for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7614do
7615 IFS=$as_save_IFS
7616 test -z "$as_dir" && as_dir=.
7617 for ac_prog in fgrep; do
7618 for ac_exec_ext in '' $ac_executable_extensions; do
7619 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007620 as_fn_executable_p "$ac_path_FGREP" || continue
cristy73bd4a52010-10-05 11:24:23 +00007621# Check for GNU ac_path_FGREP and select it if it is found.
7622 # Check for GNU $ac_path_FGREP
7623case `"$ac_path_FGREP" --version 2>&1` in
7624*GNU*)
7625 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7626*)
7627 ac_count=0
7628 $as_echo_n 0123456789 >"conftest.in"
7629 while :
7630 do
7631 cat "conftest.in" "conftest.in" >"conftest.tmp"
7632 mv "conftest.tmp" "conftest.in"
7633 cp "conftest.in" "conftest.nl"
7634 $as_echo 'FGREP' >> "conftest.nl"
7635 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7636 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7637 as_fn_arith $ac_count + 1 && ac_count=$as_val
7638 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7639 # Best one so far, save it but keep looking for a better one
7640 ac_cv_path_FGREP="$ac_path_FGREP"
7641 ac_path_FGREP_max=$ac_count
7642 fi
7643 # 10*(2^10) chars as input seems more than enough
7644 test $ac_count -gt 10 && break
7645 done
7646 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7647esac
7648
7649 $ac_path_FGREP_found && break 3
7650 done
7651 done
7652 done
7653IFS=$as_save_IFS
7654 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007655 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007656 fi
7657else
7658 ac_cv_path_FGREP=$FGREP
7659fi
7660
7661 fi
7662fi
7663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7664$as_echo "$ac_cv_path_FGREP" >&6; }
7665 FGREP="$ac_cv_path_FGREP"
7666
7667
7668test -z "$GREP" && GREP=grep
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
cristy0c60a692010-11-04 01:09:47 +00007686ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7687ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7688ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7689
7690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7691$as_echo_n "checking how to print strings... " >&6; }
7692# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00007693if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00007694 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7695 ECHO='print -r --'
7696elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7697 ECHO='printf %s\n'
7698else
7699 # Use this function as a fallback that always works.
7700 func_fallback_echo ()
7701 {
7702 eval 'cat <<_LTECHO_EOF
7703$1
7704_LTECHO_EOF'
7705 }
7706 ECHO='func_fallback_echo'
7707fi
7708
7709# func_echo_all arg...
7710# Invoke $ECHO with all args, space-separated.
7711func_echo_all ()
7712{
7713 $ECHO ""
7714}
7715
7716case "$ECHO" in
7717 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7718$as_echo "printf" >&6; } ;;
7719 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7720$as_echo "print -r" >&6; } ;;
7721 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7722$as_echo "cat" >&6; } ;;
7723esac
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
cristy73bd4a52010-10-05 11:24:23 +00007738
7739
7740# Check whether --with-gnu-ld was given.
7741if test "${with_gnu_ld+set}" = set; then :
7742 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7743else
7744 with_gnu_ld=no
7745fi
7746
7747ac_prog=ld
7748if test "$GCC" = yes; then
7749 # Check if gcc -print-prog-name=ld gives a path.
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7751$as_echo_n "checking for ld used by $CC... " >&6; }
7752 case $host in
7753 *-*-mingw*)
7754 # gcc leaves a trailing carriage return which upsets mingw
7755 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7756 *)
7757 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7758 esac
7759 case $ac_prog in
7760 # Accept absolute paths.
7761 [\\/]* | ?:[\\/]*)
7762 re_direlt='/[^/][^/]*/\.\./'
7763 # Canonicalize the pathname of ld
7764 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7765 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7766 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7767 done
7768 test -z "$LD" && LD="$ac_prog"
7769 ;;
7770 "")
7771 # If it fails, then pretend we aren't using GCC.
7772 ac_prog=ld
7773 ;;
7774 *)
7775 # If it is relative, then search for the first ld in PATH.
7776 with_gnu_ld=unknown
7777 ;;
7778 esac
7779elif test "$with_gnu_ld" = yes; then
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7781$as_echo_n "checking for GNU ld... " >&6; }
7782else
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7784$as_echo_n "checking for non-GNU ld... " >&6; }
7785fi
cristyda16f162011-02-19 23:52:17 +00007786if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007787 $as_echo_n "(cached) " >&6
7788else
7789 if test -z "$LD"; then
7790 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7791 for ac_dir in $PATH; do
7792 IFS="$lt_save_ifs"
7793 test -z "$ac_dir" && ac_dir=.
7794 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7795 lt_cv_path_LD="$ac_dir/$ac_prog"
7796 # Check to see if the program is GNU ld. I'd rather use --version,
7797 # but apparently some variants of GNU ld only accept -v.
7798 # Break only if it was the GNU/non-GNU ld that we prefer.
7799 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7800 *GNU* | *'with BFD'*)
7801 test "$with_gnu_ld" != no && break
7802 ;;
7803 *)
7804 test "$with_gnu_ld" != yes && break
7805 ;;
7806 esac
7807 fi
7808 done
7809 IFS="$lt_save_ifs"
7810else
7811 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7812fi
7813fi
7814
7815LD="$lt_cv_path_LD"
7816if test -n "$LD"; then
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7818$as_echo "$LD" >&6; }
7819else
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7821$as_echo "no" >&6; }
7822fi
cristy98dddb52010-11-04 00:30:15 +00007823test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7825$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007826if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007827 $as_echo_n "(cached) " >&6
7828else
7829 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7830case `$LD -v 2>&1 </dev/null` in
7831*GNU* | *'with BFD'*)
7832 lt_cv_prog_gnu_ld=yes
7833 ;;
7834*)
7835 lt_cv_prog_gnu_ld=no
7836 ;;
7837esac
7838fi
7839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7840$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7841with_gnu_ld=$lt_cv_prog_gnu_ld
7842
7843
7844
7845
7846
7847
7848
7849
7850
cristy3ed852e2009-09-05 21:47:34 +00007851
cristy837d6dc2010-02-27 01:16:57 +00007852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7853$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007854if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00007855 $as_echo_n "(cached) " >&6
7856else
7857 ac_cv_prog_cc_c99=no
7858ac_save_CC=$CC
7859cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7860/* end confdefs.h. */
7861#include <stdarg.h>
7862#include <stdbool.h>
7863#include <stdlib.h>
7864#include <wchar.h>
7865#include <stdio.h>
7866
7867// Check varargs macros. These examples are taken from C99 6.10.3.5.
7868#define debug(...) fprintf (stderr, __VA_ARGS__)
7869#define showlist(...) puts (#__VA_ARGS__)
7870#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7871static void
7872test_varargs_macros (void)
7873{
7874 int x = 1234;
7875 int y = 5678;
7876 debug ("Flag");
7877 debug ("X = %d\n", x);
7878 showlist (The first, second, and third items.);
7879 report (x>y, "x is %d but y is %d", x, y);
7880}
7881
7882// Check long long types.
7883#define BIG64 18446744073709551615ull
7884#define BIG32 4294967295ul
7885#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7886#if !BIG_OK
7887 your preprocessor is broken;
7888#endif
7889#if BIG_OK
7890#else
7891 your preprocessor is broken;
7892#endif
7893static long long int bignum = -9223372036854775807LL;
7894static unsigned long long int ubignum = BIG64;
7895
7896struct incomplete_array
7897{
7898 int datasize;
7899 double data[];
7900};
7901
7902struct named_init {
7903 int number;
7904 const wchar_t *name;
7905 double average;
7906};
7907
7908typedef const char *ccp;
7909
7910static inline int
7911test_restrict (ccp restrict text)
7912{
7913 // See if C++-style comments work.
7914 // Iterate through items via the restricted pointer.
7915 // Also check for declarations in for loops.
7916 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7917 continue;
7918 return 0;
7919}
7920
7921// Check varargs and va_copy.
7922static void
7923test_varargs (const char *format, ...)
7924{
7925 va_list args;
7926 va_start (args, format);
7927 va_list args_copy;
7928 va_copy (args_copy, args);
7929
7930 const char *str;
7931 int number;
7932 float fnumber;
7933
7934 while (*format)
7935 {
7936 switch (*format++)
7937 {
7938 case 's': // string
7939 str = va_arg (args_copy, const char *);
7940 break;
7941 case 'd': // int
7942 number = va_arg (args_copy, int);
7943 break;
7944 case 'f': // float
7945 fnumber = va_arg (args_copy, double);
7946 break;
7947 default:
7948 break;
7949 }
7950 }
7951 va_end (args_copy);
7952 va_end (args);
7953}
7954
7955int
7956main ()
7957{
7958
7959 // Check bool.
7960 _Bool success = false;
7961
7962 // Check restrict.
7963 if (test_restrict ("String literal") == 0)
7964 success = true;
7965 char *restrict newvar = "Another string";
7966
7967 // Check varargs.
7968 test_varargs ("s, d' f .", "string", 65, 34.234);
7969 test_varargs_macros ();
7970
7971 // Check flexible array members.
7972 struct incomplete_array *ia =
7973 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7974 ia->datasize = 10;
7975 for (int i = 0; i < ia->datasize; ++i)
7976 ia->data[i] = i * 1.234;
7977
7978 // Check named initializers.
7979 struct named_init ni = {
7980 .number = 34,
7981 .name = L"Test wide string",
7982 .average = 543.34343,
7983 };
7984
7985 ni.number = 58;
7986
7987 int dynamic_array[ni.number];
7988 dynamic_array[ni.number - 1] = 543;
7989
7990 // work around unused variable warnings
7991 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7992 || dynamic_array[ni.number - 1] != 543);
7993
7994 ;
7995 return 0;
7996}
7997_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007998for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy837d6dc2010-02-27 01:16:57 +00007999do
8000 CC="$ac_save_CC $ac_arg"
8001 if ac_fn_c_try_compile "$LINENO"; then :
8002 ac_cv_prog_cc_c99=$ac_arg
8003fi
8004rm -f core conftest.err conftest.$ac_objext
8005 test "x$ac_cv_prog_cc_c99" != "xno" && break
8006done
8007rm -f conftest.$ac_ext
8008CC=$ac_save_CC
8009
8010fi
8011# AC_CACHE_VAL
8012case "x$ac_cv_prog_cc_c99" in
8013 x)
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
8015$as_echo "none needed" >&6; } ;;
8016 xno)
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
8018$as_echo "unsupported" >&6; } ;;
8019 *)
8020 CC="$CC $ac_cv_prog_cc_c99"
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
8022$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
8023esac
8024if test "x$ac_cv_prog_cc_c99" != xno; then :
8025
8026fi
8027
8028
cristy73bd4a52010-10-05 11:24:23 +00008029
8030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
8031$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008032if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008033 $as_echo_n "(cached) " >&6
8034else
8035 ac_cv_cflags_warn_all="no, unknown"
cristy73bd4a52010-10-05 11:24:23 +00008036 ac_ext=c
8037ac_cpp='$CPP $CPPFLAGS'
8038ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8039ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8040ac_compiler_gnu=$ac_cv_c_compiler_gnu
8041
8042 ac_save_CFLAGS="$CFLAGS"
8043for 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" #
8044do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
8045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8046/* end confdefs.h. */
8047
8048int
8049main ()
8050{
cristy24fc1fe2010-10-23 21:13:01 +00008051
cristy73bd4a52010-10-05 11:24:23 +00008052 ;
8053 return 0;
8054}
8055_ACEOF
8056if ac_fn_c_try_compile "$LINENO"; then :
8057 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
8058fi
8059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8060done
8061 CFLAGS="$ac_save_CFLAGS"
8062 ac_ext=c
8063ac_cpp='$CPP $CPPFLAGS'
8064ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8065ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8066ac_compiler_gnu=$ac_cv_c_compiler_gnu
8067
8068
8069fi
8070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
8071$as_echo "$ac_cv_cflags_warn_all" >&6; }
8072case ".$ac_cv_cflags_warn_all" in
8073 .ok|.ok,*) ;;
8074 .|.no|.no,*)
8075 ;;
8076 *)
8077 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
8078 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
8079 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
8080 ac_status=$?
8081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8082 test $ac_status = 0; }
8083 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
8084 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
8085 ac_status=$?
8086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8087 test $ac_status = 0; }
8088 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
8089 fi
8090 ;;
nicolas6237c462010-10-05 06:11:49 +00008091esac
cristy3ed852e2009-09-05 21:47:34 +00008092
cristya0b81c32010-01-22 02:54:33 +00008093
8094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8095$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8096set x ${MAKE-make}
8097ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00008098if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00008099 $as_echo_n "(cached) " >&6
8100else
8101 cat >conftest.make <<\_ACEOF
8102SHELL = /bin/sh
8103all:
8104 @echo '@@@%%%=$(MAKE)=@@@%%%'
8105_ACEOF
cristy98dddb52010-11-04 00:30:15 +00008106# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00008107case `${MAKE-make} -f conftest.make 2>/dev/null` in
8108 *@@@%%%=?*=@@@%%%*)
8109 eval ac_cv_prog_make_${ac_make}_set=yes;;
8110 *)
8111 eval ac_cv_prog_make_${ac_make}_set=no;;
8112esac
8113rm -f conftest.make
8114fi
8115if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8117$as_echo "yes" >&6; }
8118 SET_MAKE=
8119else
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8121$as_echo "no" >&6; }
8122 SET_MAKE="MAKE=${MAKE-make}"
8123fi
8124
cristy8b350f62009-11-15 23:12:43 +00008125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00008126$as_echo_n "checking whether ln -s works... " >&6; }
8127LN_S=$as_ln_s
8128if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00008129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00008130$as_echo "yes" >&6; }
8131else
cristy8b350f62009-11-15 23:12:43 +00008132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00008133$as_echo "no, using $LN_S" >&6; }
8134fi
8135
cristy8d0ff762013-03-10 20:33:28 +00008136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8137$as_echo_n "checking for a sed that does not truncate output... " >&6; }
8138if ${ac_cv_path_SED+:} false; then :
8139 $as_echo_n "(cached) " >&6
8140else
8141 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8142 for ac_i in 1 2 3 4 5 6 7; do
8143 ac_script="$ac_script$as_nl$ac_script"
8144 done
8145 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8146 { ac_script=; unset ac_script;}
8147 if test -z "$SED"; then
8148 ac_path_SED_found=false
8149 # Loop through the user's path and test for each of PROGNAME-LIST
8150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8151for as_dir in $PATH
8152do
8153 IFS=$as_save_IFS
8154 test -z "$as_dir" && as_dir=.
8155 for ac_prog in sed gsed; do
8156 for ac_exec_ext in '' $ac_executable_extensions; do
8157 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8158 as_fn_executable_p "$ac_path_SED" || continue
8159# Check for GNU ac_path_SED and select it if it is found.
8160 # Check for GNU $ac_path_SED
8161case `"$ac_path_SED" --version 2>&1` in
8162*GNU*)
8163 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8164*)
8165 ac_count=0
8166 $as_echo_n 0123456789 >"conftest.in"
8167 while :
8168 do
8169 cat "conftest.in" "conftest.in" >"conftest.tmp"
8170 mv "conftest.tmp" "conftest.in"
8171 cp "conftest.in" "conftest.nl"
8172 $as_echo '' >> "conftest.nl"
8173 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8174 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8175 as_fn_arith $ac_count + 1 && ac_count=$as_val
8176 if test $ac_count -gt ${ac_path_SED_max-0}; then
8177 # Best one so far, save it but keep looking for a better one
8178 ac_cv_path_SED="$ac_path_SED"
8179 ac_path_SED_max=$ac_count
8180 fi
8181 # 10*(2^10) chars as input seems more than enough
8182 test $ac_count -gt 10 && break
8183 done
8184 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8185esac
8186
8187 $ac_path_SED_found && break 3
8188 done
8189 done
8190 done
8191IFS=$as_save_IFS
8192 if test -z "$ac_cv_path_SED"; then
8193 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8194 fi
8195else
8196 ac_cv_path_SED=$SED
8197fi
8198
8199fi
8200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8201$as_echo "$ac_cv_path_SED" >&6; }
8202 SED="$ac_cv_path_SED"
8203 rm -f conftest.sed
8204
cristybc556452012-08-17 19:44:03 +00008205for ac_prog in gawk mawk nawk awk
8206do
8207 # Extract the first word of "$ac_prog", so it can be a program name with args.
8208set dummy $ac_prog; ac_word=$2
8209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8210$as_echo_n "checking for $ac_word... " >&6; }
8211if ${ac_cv_prog_AWK+:} false; then :
8212 $as_echo_n "(cached) " >&6
8213else
8214 if test -n "$AWK"; then
8215 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8216else
8217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8218for as_dir in $PATH
8219do
8220 IFS=$as_save_IFS
8221 test -z "$as_dir" && as_dir=.
8222 for ac_exec_ext in '' $ac_executable_extensions; do
8223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8224 ac_cv_prog_AWK="$ac_prog"
8225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8226 break 2
8227 fi
8228done
8229 done
8230IFS=$as_save_IFS
8231
8232fi
8233fi
8234AWK=$ac_cv_prog_AWK
8235if test -n "$AWK"; then
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8237$as_echo "$AWK" >&6; }
8238else
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8240$as_echo "no" >&6; }
8241fi
8242
8243
8244 test -n "$AWK" && break
8245done
8246
cristy73bd4a52010-10-05 11:24:23 +00008247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
8248$as_echo_n "checking if malloc debugging is wanted... " >&6; }
8249
8250# Check whether --with-dmalloc was given.
8251if test "${with_dmalloc+set}" = set; then :
8252 withval=$with_dmalloc; if test "$withval" = yes; then
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8254$as_echo "yes" >&6; }
8255
8256$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
8257
8258 LIBS="$LIBS -ldmalloc"
8259 LDFLAGS="$LDFLAGS -g"
8260else
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8262$as_echo "no" >&6; }
8263fi
8264else
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8266$as_echo "no" >&6; }
8267fi
8268
8269
8270
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
8272$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008273if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008274 $as_echo_n "(cached) " >&6
8275else
8276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8277/* end confdefs.h. */
8278#include <stdlib.h>
cristy73380532012-02-18 20:26:28 +00008279 static void foo(void) __attribute__ ((__unused__));
cristy73bd4a52010-10-05 11:24:23 +00008280 static void
8281 foo(void) {
8282 exit(1);
8283 }
8284
8285int
8286main ()
8287{
8288
8289 ;
8290 return 0;
8291}
8292_ACEOF
8293if ac_fn_c_try_compile "$LINENO"; then :
8294 ax_cv___attribute__=yes
8295else
8296 ax_cv___attribute__=no
8297
8298fi
8299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8300
8301fi
8302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
8303$as_echo "$ax_cv___attribute__" >&6; }
8304 if test "$ax_cv___attribute__" = "yes"; then
8305
8306$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
8307
8308 fi
8309
8310
8311
cristya0459972013-11-03 18:09:35 +00008312
8313
8314# Check whether --with-gcc-arch was given.
8315if test "${with_gcc_arch+set}" = set; then :
8316 withval=$with_gcc_arch; ax_gcc_arch=$withval
8317else
8318 ax_gcc_arch=no
8319fi
8320
8321
8322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8323$as_echo_n "checking for gcc architecture flag... " >&6; }
8324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8325$as_echo "" >&6; }
8326if ${ax_cv_gcc_archflag+:} false; then :
8327 $as_echo_n "(cached) " >&6
8328else
8329
8330ax_cv_gcc_archflag="unknown"
8331
8332if test "$GCC" = yes; then
8333
8334if test "x$ax_gcc_arch" = xyes; then
8335ax_gcc_arch=""
8336if test "$cross_compiling" = no; then
8337case $host_cpu in
8338 i[3456]86*|x86_64*) # use cpuid codes
8339
8340ac_ext=c
8341ac_cpp='$CPP $CPPFLAGS'
8342ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8343ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8344ac_compiler_gnu=$ac_cv_c_compiler_gnu
8345
8346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
8347$as_echo_n "checking for x86 cpuid 0 output... " >&6; }
8348if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
8349 $as_echo_n "(cached) " >&6
8350else
8351 if test "$cross_compiling" = yes; then :
8352 ax_cv_gcc_x86_cpuid_0=unknown
8353else
8354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8355/* end confdefs.h. */
8356#include <stdio.h>
8357int
8358main ()
8359{
8360
8361 int op = 0, eax, ebx, ecx, edx;
8362 FILE *f;
8363 __asm__("cpuid"
8364 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8365 : "a" (op));
8366 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8367 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8368 fclose(f);
8369 return 0;
8370
8371 ;
8372 return 0;
8373}
8374_ACEOF
8375if ac_fn_c_try_run "$LINENO"; then :
8376 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
8377else
8378 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
8379fi
8380rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8381 conftest.$ac_objext conftest.beam conftest.$ac_ext
8382fi
8383
8384fi
8385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
8386$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
8387ac_ext=c
8388ac_cpp='$CPP $CPPFLAGS'
8389ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8390ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8391ac_compiler_gnu=$ac_cv_c_compiler_gnu
8392
8393
8394
8395ac_ext=c
8396ac_cpp='$CPP $CPPFLAGS'
8397ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8398ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8399ac_compiler_gnu=$ac_cv_c_compiler_gnu
8400
8401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
8402$as_echo_n "checking for x86 cpuid 1 output... " >&6; }
8403if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
8404 $as_echo_n "(cached) " >&6
8405else
8406 if test "$cross_compiling" = yes; then :
8407 ax_cv_gcc_x86_cpuid_1=unknown
8408else
8409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8410/* end confdefs.h. */
8411#include <stdio.h>
8412int
8413main ()
8414{
8415
8416 int op = 1, eax, ebx, ecx, edx;
8417 FILE *f;
8418 __asm__("cpuid"
8419 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8420 : "a" (op));
8421 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8422 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8423 fclose(f);
8424 return 0;
8425
8426 ;
8427 return 0;
8428}
8429_ACEOF
8430if ac_fn_c_try_run "$LINENO"; then :
8431 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
8432else
8433 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
8434fi
8435rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8436 conftest.$ac_objext conftest.beam conftest.$ac_ext
8437fi
8438
8439fi
8440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
8441$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
8442ac_ext=c
8443ac_cpp='$CPP $CPPFLAGS'
8444ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8445ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8446ac_compiler_gnu=$ac_cv_c_compiler_gnu
8447
8448
8449 case $ax_cv_gcc_x86_cpuid_0 in
8450 *:756e6547:*:*) # Intel
8451 case $ax_cv_gcc_x86_cpuid_1 in
8452 *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
8453 *5??:*:*:*) ax_gcc_arch=pentium ;;
8454 *0?6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8455 *0?6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8456 *0?6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8457 *0?6[9de]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
8458 *0?6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8459 *0?6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
8460 *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
8461 *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) ax_gcc_arch="corei7 core2 pentium-m pentium3 pentiumpro" ;;
8462 *1?6c?:*:*:*|*[23]?66?:*:*:*) ax_gcc_arch="atom core2 pentium-m pentium3 pentiumpro" ;;
8463 *2?6[ad]?:*:*:*) ax_gcc_arch="corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8464 *0?6??:*:*:*) ax_gcc_arch=pentiumpro ;;
8465 *6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
8466 ?000?f3[347]:*:*:*|?000?f41347:*:*:*|?000?f6?:*:*:*)
8467 case $host_cpu in
8468 x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
8469 *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
8470 esac ;;
8471 ?000?f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
8472 esac ;;
8473 *:68747541:*:*) # AMD
8474 case $ax_cv_gcc_x86_cpuid_1 in
8475 *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
8476 *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
8477 *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
8478 *60?:*:*:*) ax_gcc_arch=k7 ;;
8479 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
8480 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
8481 *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
8482 *6[68a]?:*:*:*)
8483
8484ac_ext=c
8485ac_cpp='$CPP $CPPFLAGS'
8486ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8487ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8488ac_compiler_gnu=$ac_cv_c_compiler_gnu
8489
8490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5
8491$as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; }
8492if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then :
8493 $as_echo_n "(cached) " >&6
8494else
8495 if test "$cross_compiling" = yes; then :
8496 ax_cv_gcc_x86_cpuid_0x80000006=unknown
8497else
8498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8499/* end confdefs.h. */
8500#include <stdio.h>
8501int
8502main ()
8503{
8504
8505 int op = 0x80000006, eax, ebx, ecx, edx;
8506 FILE *f;
8507 __asm__("cpuid"
8508 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8509 : "a" (op));
8510 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8511 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8512 fclose(f);
8513 return 0;
8514
8515 ;
8516 return 0;
8517}
8518_ACEOF
8519if ac_fn_c_try_run "$LINENO"; then :
8520 ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid
8521else
8522 ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid
8523fi
8524rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8525 conftest.$ac_objext conftest.beam conftest.$ac_ext
8526fi
8527
8528fi
8529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5
8530$as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; }
8531ac_ext=c
8532ac_cpp='$CPP $CPPFLAGS'
8533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8535ac_compiler_gnu=$ac_cv_c_compiler_gnu
8536
8537 # L2 cache size
8538 case $ax_cv_gcc_x86_cpuid_0x80000006 in
8539 *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256
8540 ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
8541 *) ax_gcc_arch="athlon-4 athlon k7" ;;
8542 esac ;;
8543 ?00??f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
8544 ?00??f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
8545 ?00??f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
8546 ?00??f??:*:*:*) ax_gcc_arch="k8" ;;
8547 ?05??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
8548 ?06??f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
8549 *f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
8550 esac ;;
8551 *:746e6543:*:*) # IDT
8552 case $ax_cv_gcc_x86_cpuid_1 in
8553 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
8554 *58?:*:*:*) ax_gcc_arch=winchip2 ;;
8555 *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
8556 *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
8557 esac ;;
8558 esac
8559 if test x"$ax_gcc_arch" = x; then # fallback
8560 case $host_cpu in
8561 i586*) ax_gcc_arch=pentium ;;
8562 i686*) ax_gcc_arch=pentiumpro ;;
8563 esac
8564 fi
8565 ;;
8566
8567 sparc*)
8568 # Extract the first word of "prtdiag", so it can be a program name with args.
8569set dummy prtdiag; ac_word=$2
8570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8571$as_echo_n "checking for $ac_word... " >&6; }
8572if ${ac_cv_path_PRTDIAG+:} false; then :
8573 $as_echo_n "(cached) " >&6
8574else
8575 case $PRTDIAG in
8576 [\\/]* | ?:[\\/]*)
8577 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
8578 ;;
8579 *)
8580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8581as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
8582for as_dir in $as_dummy
8583do
8584 IFS=$as_save_IFS
8585 test -z "$as_dir" && as_dir=.
8586 for ac_exec_ext in '' $ac_executable_extensions; do
8587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8588 ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
8589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8590 break 2
8591 fi
8592done
8593 done
8594IFS=$as_save_IFS
8595
8596 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
8597 ;;
8598esac
8599fi
8600PRTDIAG=$ac_cv_path_PRTDIAG
8601if test -n "$PRTDIAG"; then
8602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
8603$as_echo "$PRTDIAG" >&6; }
8604else
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8606$as_echo "no" >&6; }
8607fi
8608
8609
8610 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`
8611 cputype=`echo "$cputype" | tr -d ' -' |tr $as_cr_LETTERS $as_cr_letters`
8612 case $cputype in
8613 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
8614 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
8615 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
8616 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
8617 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
8618 *cypress*) ax_gcc_arch=cypress ;;
8619 esac ;;
8620
8621 alphaev5) ax_gcc_arch=ev5 ;;
8622 alphaev56) ax_gcc_arch=ev56 ;;
8623 alphapca56) ax_gcc_arch="pca56 ev56" ;;
8624 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
8625 alphaev6) ax_gcc_arch=ev6 ;;
8626 alphaev67) ax_gcc_arch=ev67 ;;
8627 alphaev68) ax_gcc_arch="ev68 ev67" ;;
8628 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
8629 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
8630 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
8631
8632 powerpc*)
8633 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`
8634 cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'`
8635 case $cputype in
8636 *750*) ax_gcc_arch="750 G3" ;;
8637 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
8638 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
8639 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
8640 *970*) ax_gcc_arch="970 G5 power4";;
8641 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
8642 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
8643 603ev|8240) ax_gcc_arch="$cputype 603e 603";;
8644 *) ax_gcc_arch=$cputype ;;
8645 esac
8646 ax_gcc_arch="$ax_gcc_arch powerpc"
8647 ;;
8648esac
8649fi # not cross-compiling
8650fi # guess arch
8651
8652if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
8653for arch in $ax_gcc_arch; do
8654 if test "xno" = xyes; then # if we require portable code
8655 flags="-mtune=$arch"
8656 # -mcpu=$arch and m$arch generate nonportable code on every arch except
8657 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr.
8658 case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
8659 else
8660 flags="-march=$arch -mcpu=$arch -m$arch"
8661 fi
8662 for flag in $flags; do
8663 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
8664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
8665$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
8666if eval \${$as_CACHEVAR+:} false; then :
8667 $as_echo_n "(cached) " >&6
8668else
8669
8670 ax_check_save_flags=$CFLAGS
8671 CFLAGS="$CFLAGS $flag"
8672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8673/* end confdefs.h. */
8674
8675int
8676main ()
8677{
8678
8679 ;
8680 return 0;
8681}
8682_ACEOF
8683if ac_fn_c_try_compile "$LINENO"; then :
8684 eval "$as_CACHEVAR=yes"
8685else
8686 eval "$as_CACHEVAR=no"
8687fi
8688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8689 CFLAGS=$ax_check_save_flags
8690fi
8691eval ac_res=\$$as_CACHEVAR
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8693$as_echo "$ac_res" >&6; }
8694if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
8695 ax_cv_gcc_archflag=$flag; break
8696else
8697 :
8698fi
8699
8700 done
8701 test "x$ax_cv_gcc_archflag" = xunknown || break
8702done
8703fi
8704
8705fi # $GCC=yes
8706
8707fi
8708
8709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8710$as_echo_n "checking for gcc architecture flag... " >&6; }
8711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
8712$as_echo "$ax_cv_gcc_archflag" >&6; }
8713if test "x$ax_cv_gcc_archflag" = xunknown; then
8714 :
8715else
8716 CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
8717fi
8718
8719
8720
cristy73bd4a52010-10-05 11:24:23 +00008721if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8722 if test -n "$ac_tool_prefix"; then
8723 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8724set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8726$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008727if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008728 $as_echo_n "(cached) " >&6
8729else
8730 case $PKG_CONFIG in
8731 [\\/]* | ?:[\\/]*)
8732 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8733 ;;
8734 *)
8735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8736for as_dir in $PATH
8737do
8738 IFS=$as_save_IFS
8739 test -z "$as_dir" && as_dir=.
8740 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008742 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8744 break 2
8745 fi
8746done
8747 done
8748IFS=$as_save_IFS
8749
8750 ;;
8751esac
8752fi
8753PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8754if test -n "$PKG_CONFIG"; then
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8756$as_echo "$PKG_CONFIG" >&6; }
8757else
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8759$as_echo "no" >&6; }
8760fi
8761
8762
8763fi
8764if test -z "$ac_cv_path_PKG_CONFIG"; then
8765 ac_pt_PKG_CONFIG=$PKG_CONFIG
8766 # Extract the first word of "pkg-config", so it can be a program name with args.
8767set dummy pkg-config; ac_word=$2
8768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8769$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008770if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008771 $as_echo_n "(cached) " >&6
8772else
8773 case $ac_pt_PKG_CONFIG in
8774 [\\/]* | ?:[\\/]*)
8775 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8776 ;;
8777 *)
8778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8779for as_dir in $PATH
8780do
8781 IFS=$as_save_IFS
8782 test -z "$as_dir" && as_dir=.
8783 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008785 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8787 break 2
8788 fi
8789done
8790 done
8791IFS=$as_save_IFS
8792
8793 ;;
8794esac
8795fi
8796ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8797if test -n "$ac_pt_PKG_CONFIG"; then
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8799$as_echo "$ac_pt_PKG_CONFIG" >&6; }
8800else
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8802$as_echo "no" >&6; }
8803fi
8804
8805 if test "x$ac_pt_PKG_CONFIG" = x; then
8806 PKG_CONFIG=""
8807 else
8808 case $cross_compiling:$ac_tool_warned in
8809yes:)
8810{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8811$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8812ac_tool_warned=yes ;;
8813esac
8814 PKG_CONFIG=$ac_pt_PKG_CONFIG
8815 fi
8816else
8817 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8818fi
8819
8820fi
8821if test -n "$PKG_CONFIG"; then
8822 _pkg_min_version=0.9.0
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8824$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8825 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8827$as_echo "yes" >&6; }
8828 else
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8830$as_echo "no" >&6; }
8831 PKG_CONFIG=""
8832 fi
8833
8834fi
cristy3ed852e2009-09-05 21:47:34 +00008835
cristyd95b7a52013-10-23 13:12:53 +00008836# Test for 64-bit build.
8837# The cast to long int works around a bug in the HP C Compiler
8838# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8839# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8840# This bug is HP SR number 8606223364.
8841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
8842$as_echo_n "checking size of size_t... " >&6; }
8843if ${ac_cv_sizeof_size_t+:} false; then :
8844 $as_echo_n "(cached) " >&6
8845else
8846 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
8847
8848else
8849 if test "$ac_cv_type_size_t" = yes; then
8850 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8851$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8852as_fn_error 77 "cannot compute sizeof (size_t)
8853See \`config.log' for more details" "$LINENO" 5; }
8854 else
8855 ac_cv_sizeof_size_t=0
8856 fi
8857fi
8858
8859fi
8860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
8861$as_echo "$ac_cv_sizeof_size_t" >&6; }
8862
8863
8864
8865cat >>confdefs.h <<_ACEOF
8866#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
8867_ACEOF
8868
8869
8870
8871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
8872$as_echo_n "checking for C compiler vendor... " >&6; }
8873if ${ax_cv_c_compiler_vendor+:} false; then :
8874 $as_echo_n "(cached) " >&6
8875else
8876 # note: don't check for gcc first since some other compilers define __GNUC__
8877 vendors="intel: __ICC,__ECC,__INTEL_COMPILER
8878 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__
8879 pathscale: __PATHCC__,__PATHSCALE__
8880 clang: __clang__
8881 gnu: __GNUC__
8882 sun: __SUNPRO_C,__SUNPRO_CC
8883 hp: __HP_cc,__HP_aCC
8884 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
8885 borland: __BORLANDC__,__TURBOC__
8886 comeau: __COMO__
8887 cray: _CRAYC
8888 kai: __KCC
8889 lcc: __LCC__
8890 sgi: __sgi,sgi
8891 microsoft: _MSC_VER
8892 metrowerks: __MWERKS__
8893 watcom: __WATCOMC__
8894 portland: __PGI
8895 unknown: UNKNOWN"
8896 for ventest in $vendors; do
8897 case $ventest in
8898 *:) vendor=$ventest; continue ;;
8899 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
8900 esac
8901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8902/* end confdefs.h. */
8903
8904int
8905main ()
8906{
8907
8908 #if !($vencpp)
8909 thisisanerror;
8910 #endif
8911
8912 ;
8913 return 0;
8914}
8915_ACEOF
8916if ac_fn_c_try_compile "$LINENO"; then :
8917 break
8918fi
8919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8920 done
8921 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
8922
8923fi
8924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
8925$as_echo "$ax_cv_c_compiler_vendor" >&6; }
8926
cristyd95b7a52013-10-23 13:12:53 +00008927# The AX_CFLAGS_WARN_ALL macro doesn't currently work for sunpro
8928# compiler.
8929if test "$ax_cv_c_compiler_vendor" != "sun"; then
8930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
8931$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
8932if ${ac_cv_cflags_warn_all+:} false; then :
8933 $as_echo_n "(cached) " >&6
8934else
8935 ac_cv_cflags_warn_all="no, unknown"
8936 ac_ext=c
8937ac_cpp='$CPP $CPPFLAGS'
8938ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8939ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8940ac_compiler_gnu=$ac_cv_c_compiler_gnu
8941
8942 ac_save_CFLAGS="$CFLAGS"
8943for 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" #
8944do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
8945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8946/* end confdefs.h. */
8947
8948int
8949main ()
8950{
8951
8952 ;
8953 return 0;
8954}
8955_ACEOF
8956if ac_fn_c_try_compile "$LINENO"; then :
8957 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
8958fi
8959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8960done
8961 CFLAGS="$ac_save_CFLAGS"
8962 ac_ext=c
8963ac_cpp='$CPP $CPPFLAGS'
8964ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8965ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8966ac_compiler_gnu=$ac_cv_c_compiler_gnu
8967
8968
8969fi
8970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
8971$as_echo "$ac_cv_cflags_warn_all" >&6; }
8972case ".$ac_cv_cflags_warn_all" in
8973 .ok|.ok,*) ;;
8974 .|.no|.no,*)
8975 ;;
8976 *)
8977 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
8978 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
8979 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
8980 ac_status=$?
8981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8982 test $ac_status = 0; }
8983 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
8984 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
8985 ac_status=$?
8986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8987 test $ac_status = 0; }
8988 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
8989 fi
8990 ;;
8991esac
8992
8993fi
8994
8995if test "x$GCC" = "xyes"; then
8996 CFLAGS="$CFLAGS -fexceptions"
8997 touch local.exp
8998else
8999 cat > local.exp <<EOF
9000set CC_FOR_TARGET "$CC"
9001EOF
9002fi
9003
cristy9b86f202012-11-28 21:55:35 +00009004# Check for linker script support
9005
9006 # Check whether --enable-ld-version-script was given.
9007if test "${enable_ld_version_script+set}" = set; then :
9008 enableval=$enable_ld_version_script; have_ld_version_script=$enableval
9009fi
9010
9011 if test -z "$have_ld_version_script"; then
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
9013$as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
9014 save_LDFLAGS="$LDFLAGS"
9015 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
9016 cat > conftest.map <<EOF
9017foo
9018EOF
9019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9020/* end confdefs.h. */
9021
9022int
9023main ()
9024{
9025
9026 ;
9027 return 0;
9028}
9029_ACEOF
9030if ac_fn_c_try_link "$LINENO"; then :
9031 accepts_syntax_errors=yes
9032else
9033 accepts_syntax_errors=no
9034fi
9035rm -f core conftest.err conftest.$ac_objext \
9036 conftest$ac_exeext conftest.$ac_ext
9037 if test "$accepts_syntax_errors" = no; then
9038 cat > conftest.map <<EOF
9039VERS_1 {
9040 global: sym;
9041};
9042
9043VERS_2 {
9044 global: sym;
9045} VERS_1;
9046EOF
9047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9048/* end confdefs.h. */
9049
9050int
9051main ()
9052{
9053
9054 ;
9055 return 0;
9056}
9057_ACEOF
9058if ac_fn_c_try_link "$LINENO"; then :
9059 have_ld_version_script=yes
9060else
9061 have_ld_version_script=no
9062fi
9063rm -f core conftest.err conftest.$ac_objext \
9064 conftest$ac_exeext conftest.$ac_ext
9065 else
9066 have_ld_version_script=no
9067 fi
9068 rm -f conftest.map
9069 LDFLAGS="$save_LDFLAGS"
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
9071$as_echo "$have_ld_version_script" >&6; }
9072 fi
9073 if test "$have_ld_version_script" = "yes"; then
9074 HAVE_LD_VERSION_SCRIPT_TRUE=
9075 HAVE_LD_VERSION_SCRIPT_FALSE='#'
9076else
9077 HAVE_LD_VERSION_SCRIPT_TRUE='#'
9078 HAVE_LD_VERSION_SCRIPT_FALSE=
9079fi
9080
9081
9082
cristy3ed852e2009-09-05 21:47:34 +00009083#
cristy3ed852e2009-09-05 21:47:34 +00009084# Enable run-time checking.
9085#
9086# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00009087if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009088 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
9089else
9090 enable_bounds_checking='no'
9091fi
9092
9093
9094if test "$enable_bounds_checking" = yes; then
9095
cristy8b350f62009-11-15 23:12:43 +00009096$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009097
9098fi
9099
9100#
9101# Tests for Windows
9102#
9103
9104
9105
9106GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00009107native_win32_build='no'
9108cygwin_build='no'
9109case "${host_os}" in
9110 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00009111 cygwin_build='yes'
9112 GDI32_LIBS='-lgdi32'
9113 ;;
9114 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00009115 native_win32_build='yes'
9116 GDI32_LIBS='-lgdi32'
9117 ;;
9118esac
9119if test "${GDI32_LIBS}x" != 'x'; then
9120
cristy8b350f62009-11-15 23:12:43 +00009121$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009122
9123fi
9124
cristy73bd4a52010-10-05 11:24:23 +00009125 if test "${GDI32_LIBS}x" != 'x' ; then
9126 WINGDI32_DELEGATE_TRUE=
9127 WINGDI32_DELEGATE_FALSE='#'
9128else
9129 WINGDI32_DELEGATE_TRUE='#'
9130 WINGDI32_DELEGATE_FALSE=
9131fi
9132
9133 if test "${native_win32_build}" = 'yes' ; then
9134 WIN32_NATIVE_BUILD_TRUE=
9135 WIN32_NATIVE_BUILD_FALSE='#'
9136else
9137 WIN32_NATIVE_BUILD_TRUE='#'
9138 WIN32_NATIVE_BUILD_FALSE=
9139fi
9140
9141 if test "${cygwin_build}" = 'yes' ; then
9142 CYGWIN_BUILD_TRUE=
9143 CYGWIN_BUILD_FALSE='#'
9144else
9145 CYGWIN_BUILD_TRUE='#'
9146 CYGWIN_BUILD_FALSE=
9147fi
9148
9149 if test "x${CC}" = 'xcl.exe' ; then
9150 USING_CL_TRUE=
9151 USING_CL_FALSE='#'
9152else
9153 USING_CL_TRUE='#'
9154 USING_CL_FALSE=
9155fi
9156
cristy3ed852e2009-09-05 21:47:34 +00009157
9158WinPathScript="${srcdirfull}/winpath.sh"
9159
9160
9161#
9162# Compiler flags tweaks
9163#
9164if test "${GCC}" != "yes"; then
9165 case "${host}" in
9166 *-*-hpux* )
9167 # aCC: HP ANSI C++ B3910B A.03.34
9168 CFLAGS="${CFLAGS} -Wp,-H30000"
9169 if test -n "${CXXFLAGS}"; then
9170 CXXFLAGS='-AA'
9171 else
9172 CXXFLAGS="${CXXFLAGS} -AA"
9173 fi
9174 ;;
9175 *-dec-osf5.* )
9176 # Compaq alphaev68-dec-osf5.1 compiler
9177 if test -n "${CXXFLAGS}"; then
9178 CXXFLAGS='-std strict_ansi -noimplicit_include'
9179 else
9180 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
9181 fi
9182 esac
9183fi
9184
9185# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00009186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00009187$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009188if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009189 $as_echo_n "(cached) " >&6
9190else
9191
9192im_cv_ld_lazyload='none'
9193case "${host}" in
9194 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
9195 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
9196 im_cv_ld_lazyload='-Wl,-zlazyload'
9197 fi
9198 ;;
9199esac
9200
9201fi
cristy8b350f62009-11-15 23:12:43 +00009202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00009203$as_echo "$im_cv_ld_lazyload" >&6; }
9204if test "${im_cv_ld_lazyload}" != 'none' ; then
9205 if test -z "${LDFLAGS}" ; then
9206 LDFLAGS="${im_cv_ld_lazyload}"
9207 else
9208 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
9209 fi
9210fi
9211
9212case "$host" in
cristyc37574e2013-02-16 01:04:55 +00009213 *darwin* | *-macos10*)
cristyb3b90d32013-02-16 15:44:08 +00009214 CFLAGS="${CFLAGS} -D_FORTIFY_SOURCE=0"
cristyc37574e2013-02-16 01:04:55 +00009215 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00009216if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009217 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
9218else
9219 build_osxuniversal=no
9220fi
9221
9222
cristyc37574e2013-02-16 01:04:55 +00009223 if test "${build_osxuniversal}" != no ; then
9224 if test "$enable_dependency_tracking" != no ; then
9225 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00009226Please re-run configure with these options:
9227 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00009228 " "$LINENO" 5
cristyc37574e2013-02-16 01:04:55 +00009229 fi
9230 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9231 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9232 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
cristy3ed852e2009-09-05 21:47:34 +00009233 fi
9234 ;;
9235esac
9236
cristy0151ae12011-10-28 16:32:29 +00009237#
9238# ARCH specific include directory
9239#
9240
cristy670aa3c2011-11-03 00:54:00 +00009241# Check whether --with-includearch-dir was given.
9242if test "${with_includearch_dir+set}" = set; then :
9243 withval=$with_includearch_dir; includearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00009244else
cristy670aa3c2011-11-03 00:54:00 +00009245 includearch_dir=$INCLUDE_DIR
cristy0151ae12011-10-28 16:32:29 +00009246fi
9247
9248
cristyd286fd72013-02-24 19:25:33 +00009249eval "eval INCLUDEARCH_DIR=$includearch_dir"
cristyac9041a2011-10-28 16:52:32 +00009250
cristy0151ae12011-10-28 16:32:29 +00009251
9252#
9253# ARCH specific configuration directory
9254#
9255
cristy670aa3c2011-11-03 00:54:00 +00009256# Check whether --with-sharearch-dir was given.
9257if test "${with_sharearch_dir+set}" = set; then :
9258 withval=$with_sharearch_dir; sharearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00009259else
cristy408ebcd2011-11-14 01:36:57 +00009260 sharearch_dir="${LIB_DIR}"
cristy0151ae12011-10-28 16:32:29 +00009261fi
9262
9263
cristy670aa3c2011-11-03 00:54:00 +00009264eval "eval SHAREARCH_DIR=$sharearch_dir"
cristyac9041a2011-10-28 16:52:32 +00009265
cristy0151ae12011-10-28 16:32:29 +00009266
cristy2ec87cc2013-02-18 17:46:50 +00009267# Path to the pkgconfig folder
9268
9269# Check whether --with-pkgconfigdir was given.
9270if test "${with_pkgconfigdir+set}" = set; then :
9271 withval=$with_pkgconfigdir; pkgconfigdir="$withval"
9272else
9273 pkgconfigdir='${libdir}/pkgconfig'
9274fi
9275
9276
9277
cristy0151ae12011-10-28 16:32:29 +00009278#
cristy3ed852e2009-09-05 21:47:34 +00009279# Enable support for threads
cristy1ae5c992013-07-30 14:55:07 +00009280#
9281# Find Posix threads library
9282#
cristy3ed852e2009-09-05 21:47:34 +00009283
9284# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00009285if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009286 withval=$with_threads; with_threads=$withval
9287else
9288 with_threads='yes'
9289fi
9290
9291
cristy1ae5c992013-07-30 14:55:07 +00009292THREAD_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00009293have_threads=no
9294if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00009295
9296
cristy73bd4a52010-10-05 11:24:23 +00009297ac_ext=c
9298ac_cpp='$CPP $CPPFLAGS'
9299ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9300ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9301ac_compiler_gnu=$ac_cv_c_compiler_gnu
9302
9303ax_pthread_ok=no
9304
9305# We used to check for pthread.h first, but this fails if pthread.h
9306# requires special compiler flags (e.g. on True64 or Sequent).
9307# It gets checked for in the link test anyway.
9308
9309# First of all, check if the user has set any of the PTHREAD_LIBS,
9310# etcetera environment variables, and if threads linking works using
9311# them:
9312if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9313 save_CFLAGS="$CFLAGS"
9314 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9315 save_LIBS="$LIBS"
9316 LIBS="$PTHREAD_LIBS $LIBS"
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9318$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9320/* end confdefs.h. */
9321
9322/* Override any GCC internal prototype to avoid an error.
9323 Use char because int might match the return type of a GCC
9324 builtin and then its argument prototype would still apply. */
9325#ifdef __cplusplus
9326extern "C"
9327#endif
9328char pthread_join ();
9329int
9330main ()
9331{
9332return pthread_join ();
9333 ;
9334 return 0;
9335}
9336_ACEOF
9337if ac_fn_c_try_link "$LINENO"; then :
9338 ax_pthread_ok=yes
9339fi
9340rm -f core conftest.err conftest.$ac_objext \
9341 conftest$ac_exeext conftest.$ac_ext
9342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9343$as_echo "$ax_pthread_ok" >&6; }
9344 if test x"$ax_pthread_ok" = xno; then
9345 PTHREAD_LIBS=""
9346 PTHREAD_CFLAGS=""
9347 fi
9348 LIBS="$save_LIBS"
9349 CFLAGS="$save_CFLAGS"
9350fi
9351
9352# We must check for the threads library under a number of different
9353# names; the ordering is very important because some systems
9354# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9355# libraries is broken (non-POSIX).
9356
9357# Create a list of thread flags to try. Items starting with a "-" are
9358# C compiler flags, and other items are library names, except for "none"
9359# which indicates that we try without any flags at all, and "pthread-config"
9360# which is a program returning the flags for the Pth emulation library.
9361
cristy2ec87cc2013-02-18 17:46:50 +00009362ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009363
9364# The ordering *is* (sometimes) important. Some notes on the
9365# individual items follow:
9366
9367# pthreads: AIX (must check this before -lpthread)
9368# none: in case threads are in libc; should be tried before -Kthread and
9369# other compiler flags to prevent continual compiler warnings
9370# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9371# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9372# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9373# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9374# -pthreads: Solaris/gcc
9375# -mthreads: Mingw32/gcc, Lynx/gcc
9376# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9377# doesn't hurt to check since this sometimes defines pthreads too;
9378# also defines -D_REENTRANT)
9379# ... -mt is also the pthreads flag for HP/aCC
9380# pthread: Linux, etcetera
9381# --thread-safe: KAI C++
9382# pthread-config: use pthread-config program (for GNU Pth library)
9383
cristy2ec87cc2013-02-18 17:46:50 +00009384case ${host_os} in
9385 solaris*)
cristy73bd4a52010-10-05 11:24:23 +00009386
9387 # On Solaris (at least, for some versions), libc contains stubbed
9388 # (non-functional) versions of the pthreads routines, so link-based
9389 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9390 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9391 # a function called by this macro, so we could check for that, but
9392 # who knows whether they'll stub that too in a future libc.) So,
9393 # we'll just look for -pthreads and -lpthread first:
9394
9395 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9396 ;;
9397
cristy2ec87cc2013-02-18 17:46:50 +00009398 darwin*)
cristya316db12011-10-24 00:49:45 +00009399 ax_pthread_flags="-pthread $ax_pthread_flags"
9400 ;;
cristy73bd4a52010-10-05 11:24:23 +00009401esac
9402
9403if test x"$ax_pthread_ok" = xno; then
9404for flag in $ax_pthread_flags; do
9405
9406 case $flag in
9407 none)
9408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9409$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9410 ;;
9411
9412 -*)
9413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9414$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9415 PTHREAD_CFLAGS="$flag"
9416 ;;
9417
cristya316db12011-10-24 00:49:45 +00009418 pthread-config)
9419 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009420set dummy pthread-config; ac_word=$2
9421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9422$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009423if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009424 $as_echo_n "(cached) " >&6
9425else
9426 if test -n "$ax_pthread_config"; then
9427 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9428else
9429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9430for as_dir in $PATH
9431do
9432 IFS=$as_save_IFS
9433 test -z "$as_dir" && as_dir=.
9434 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009436 ac_cv_prog_ax_pthread_config="yes"
9437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9438 break 2
9439 fi
9440done
9441 done
9442IFS=$as_save_IFS
9443
9444 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9445fi
9446fi
9447ax_pthread_config=$ac_cv_prog_ax_pthread_config
9448if test -n "$ax_pthread_config"; then
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9450$as_echo "$ax_pthread_config" >&6; }
9451else
9452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9453$as_echo "no" >&6; }
9454fi
9455
9456
cristya316db12011-10-24 00:49:45 +00009457 if test x"$ax_pthread_config" = xno; then continue; fi
9458 PTHREAD_CFLAGS="`pthread-config --cflags`"
9459 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9460 ;;
cristy73bd4a52010-10-05 11:24:23 +00009461
9462 *)
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9464$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9465 PTHREAD_LIBS="-l$flag"
9466 ;;
9467 esac
9468
9469 save_LIBS="$LIBS"
9470 save_CFLAGS="$CFLAGS"
9471 LIBS="$PTHREAD_LIBS $LIBS"
9472 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9473
9474 # Check for various functions. We must include pthread.h,
9475 # since some functions may be macros. (On the Sequent, we
9476 # need a special flag -Kthread to make this header compile.)
9477 # We check for pthread_join because it is in -lpthread on IRIX
9478 # while pthread_create is in libc. We check for pthread_attr_init
9479 # due to DEC craziness with -lpthreads. We check for
9480 # pthread_cleanup_push because it is one of the few pthread
9481 # functions on Solaris that doesn't have a non-functional libc stub.
9482 # We try pthread_create on general principles.
9483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9484/* end confdefs.h. */
9485#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009486 static void routine(void *a) { a = 0; }
9487 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009488int
9489main ()
9490{
9491pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009492 pthread_create(&th, 0, start_routine, 0);
9493 pthread_join(th, 0);
9494 pthread_attr_init(&attr);
9495 pthread_cleanup_push(routine, 0);
9496 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009497 ;
9498 return 0;
9499}
9500_ACEOF
9501if ac_fn_c_try_link "$LINENO"; then :
9502 ax_pthread_ok=yes
9503fi
9504rm -f core conftest.err conftest.$ac_objext \
9505 conftest$ac_exeext conftest.$ac_ext
9506
9507 LIBS="$save_LIBS"
9508 CFLAGS="$save_CFLAGS"
9509
9510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9511$as_echo "$ax_pthread_ok" >&6; }
9512 if test "x$ax_pthread_ok" = xyes; then
9513 break;
9514 fi
9515
9516 PTHREAD_LIBS=""
9517 PTHREAD_CFLAGS=""
9518done
9519fi
9520
9521# Various other checks:
9522if test "x$ax_pthread_ok" = xyes; then
9523 save_LIBS="$LIBS"
9524 LIBS="$PTHREAD_LIBS $LIBS"
9525 save_CFLAGS="$CFLAGS"
9526 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9527
9528 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009530$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009531 attr_name=unknown
9532 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009534/* end confdefs.h. */
9535#include <pthread.h>
9536int
9537main ()
9538{
cristya316db12011-10-24 00:49:45 +00009539int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009540 ;
9541 return 0;
9542}
9543_ACEOF
9544if ac_fn_c_try_link "$LINENO"; then :
9545 attr_name=$attr; break
9546fi
9547rm -f core conftest.err conftest.$ac_objext \
9548 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009549 done
cristy73bd4a52010-10-05 11:24:23 +00009550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9551$as_echo "$attr_name" >&6; }
9552 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9553
9554cat >>confdefs.h <<_ACEOF
9555#define PTHREAD_CREATE_JOINABLE $attr_name
9556_ACEOF
9557
9558 fi
9559
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9561$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9562 flag=no
cristy2ec87cc2013-02-18 17:46:50 +00009563 case ${host_os} in
9564 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
9565 osf* | hpux*) flag="-D_REENTRANT";;
9566 solaris*)
9567 if test "$GCC" = "yes"; then
9568 flag="-D_REENTRANT"
9569 else
9570 flag="-mt -D_REENTRANT"
9571 fi
9572 ;;
cristy73bd4a52010-10-05 11:24:23 +00009573 esac
9574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9575$as_echo "${flag}" >&6; }
9576 if test "x$flag" != xno; then
9577 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9578 fi
9579
cristya316db12011-10-24 00:49:45 +00009580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9581$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9582if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9583 $as_echo_n "(cached) " >&6
9584else
9585
9586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9587/* end confdefs.h. */
9588
9589 #include <pthread.h>
9590int
9591main ()
9592{
9593int i = PTHREAD_PRIO_INHERIT;
9594 ;
9595 return 0;
9596}
9597_ACEOF
9598if ac_fn_c_try_link "$LINENO"; then :
9599 ax_cv_PTHREAD_PRIO_INHERIT=yes
9600else
9601 ax_cv_PTHREAD_PRIO_INHERIT=no
9602fi
9603rm -f core conftest.err conftest.$ac_objext \
9604 conftest$ac_exeext conftest.$ac_ext
9605
9606fi
9607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9608$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9609 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9610
9611$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9612
9613fi
9614
cristy73bd4a52010-10-05 11:24:23 +00009615 LIBS="$save_LIBS"
9616 CFLAGS="$save_CFLAGS"
9617
cristy23493c42013-04-11 16:04:59 +00009618 # More AIX lossage: compile with *_r variant
9619 if test "x$GCC" != xyes; then
9620 case $host_os in
9621 aix*)
9622 case "x/$CC" in #(
9623 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
9624 #handle absolute path differently from PATH based program lookup
9625 case "x$CC" in #(
9626 x/*) :
9627 if as_fn_executable_p ${CC}_r; then :
9628 PTHREAD_CC="${CC}_r"
9629fi ;; #(
9630 *) :
9631 for ac_prog in ${CC}_r
cristy73bd4a52010-10-05 11:24:23 +00009632do
9633 # Extract the first word of "$ac_prog", so it can be a program name with args.
9634set dummy $ac_prog; ac_word=$2
9635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9636$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009637if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009638 $as_echo_n "(cached) " >&6
9639else
9640 if test -n "$PTHREAD_CC"; then
9641 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9642else
9643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9644for as_dir in $PATH
9645do
9646 IFS=$as_save_IFS
9647 test -z "$as_dir" && as_dir=.
9648 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009650 ac_cv_prog_PTHREAD_CC="$ac_prog"
9651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9652 break 2
9653 fi
9654done
9655 done
9656IFS=$as_save_IFS
9657
9658fi
9659fi
9660PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9661if test -n "$PTHREAD_CC"; then
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9663$as_echo "$PTHREAD_CC" >&6; }
9664else
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9666$as_echo "no" >&6; }
9667fi
9668
9669
9670 test -n "$PTHREAD_CC" && break
9671done
cristy23493c42013-04-11 16:04:59 +00009672test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9673 ;;
9674esac ;; #(
9675 *) :
9676 ;;
9677esac
9678 ;;
9679 esac
cristya316db12011-10-24 00:49:45 +00009680 fi
cristy73bd4a52010-10-05 11:24:23 +00009681fi
9682
cristy23493c42013-04-11 16:04:59 +00009683test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9684
cristy73bd4a52010-10-05 11:24:23 +00009685
9686
9687
9688
9689# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9690if test x"$ax_pthread_ok" = xyes; then
9691
9692$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9693
9694 :
9695else
9696 ax_pthread_ok=no
9697
9698fi
9699ac_ext=c
9700ac_cpp='$CPP $CPPFLAGS'
9701ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9702ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9703ac_compiler_gnu=$ac_cv_c_compiler_gnu
9704
9705
cristy7acf8fb2010-09-23 19:58:53 +00009706 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00009707 have_threads=yes
9708 DEF_THREAD="$PTHREAD_CFLAGS"
9709 CFLAGS="$CFLAGS $DEF_THREAD"
9710 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
cristy1ae5c992013-07-30 14:55:07 +00009711 THREAD_LIBS="$PTHREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +00009712 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00009713 { $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 +00009714$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
9715 CC="$PTHREAD_CC"
9716 fi
cristy55bf91c2010-09-24 00:29:41 +00009717
9718$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
9719
cristy3ed852e2009-09-05 21:47:34 +00009720 fi
9721fi
cristy1ae5c992013-07-30 14:55:07 +00009722LIBS="$LIBS $THREAD_LIBS"
9723
cristy3ed852e2009-09-05 21:47:34 +00009724
9725# Enable support for OpenMP
9726if test "$have_threads" != 'yes'; then
9727 ac_cv_prog_c_openmp=unsupported
9728fi
9729
9730 OPENMP_CFLAGS=
9731 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00009732if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009733 enableval=$enable_openmp;
9734fi
9735
9736 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00009737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009738$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009739if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009740 $as_echo_n "(cached) " >&6
9741else
cristy8b350f62009-11-15 23:12:43 +00009742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9743/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009744
9745#ifndef _OPENMP
9746 choke me
9747#endif
9748#include <omp.h>
9749int main () { return omp_get_num_threads (); }
9750
9751_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009752if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009753 ac_cv_prog_c_openmp='none needed'
9754else
cristy8b350f62009-11-15 23:12:43 +00009755 ac_cv_prog_c_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +00009756 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
9757 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +00009758 ac_save_CFLAGS=$CFLAGS
9759 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00009760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9761/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009762
9763#ifndef _OPENMP
9764 choke me
9765#endif
9766#include <omp.h>
9767int main () { return omp_get_num_threads (); }
9768
9769_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009770if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009771 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00009772fi
cristy8b350f62009-11-15 23:12:43 +00009773rm -f core conftest.err conftest.$ac_objext \
9774 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009775 CFLAGS=$ac_save_CFLAGS
9776 if test "$ac_cv_prog_c_openmp" != unsupported; then
9777 break
9778 fi
9779 done
9780fi
cristy8b350f62009-11-15 23:12:43 +00009781rm -f core conftest.err conftest.$ac_objext \
9782 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009783fi
cristy8b350f62009-11-15 23:12:43 +00009784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00009785$as_echo "$ac_cv_prog_c_openmp" >&6; }
9786 case $ac_cv_prog_c_openmp in #(
9787 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00009788 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00009789 *)
cristy8b350f62009-11-15 23:12:43 +00009790 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00009791 esac
9792 fi
9793
9794
9795CFLAGS="$OPENMP_CFLAGS $CFLAGS"
9796MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
9797
cristy391f1ce2010-09-09 17:23:28 +00009798if test "$enable_openmp" != no; then
9799 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
9800 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
9801 fi
9802fi
cristy3ed852e2009-09-05 21:47:34 +00009803
cristy736173a2009-09-20 21:18:22 +00009804# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00009805
9806
cristy73bd4a52010-10-05 11:24:23 +00009807ac_ext=c
9808ac_cpp='$CPP $CPPFLAGS'
9809ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9810ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9811ac_compiler_gnu=$ac_cv_c_compiler_gnu
9812
9813ax_pthread_ok=no
9814
9815# We used to check for pthread.h first, but this fails if pthread.h
9816# requires special compiler flags (e.g. on True64 or Sequent).
9817# It gets checked for in the link test anyway.
9818
9819# First of all, check if the user has set any of the PTHREAD_LIBS,
9820# etcetera environment variables, and if threads linking works using
9821# them:
9822if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9823 save_CFLAGS="$CFLAGS"
9824 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9825 save_LIBS="$LIBS"
9826 LIBS="$PTHREAD_LIBS $LIBS"
9827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9828$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9830/* end confdefs.h. */
9831
9832/* Override any GCC internal prototype to avoid an error.
9833 Use char because int might match the return type of a GCC
9834 builtin and then its argument prototype would still apply. */
9835#ifdef __cplusplus
9836extern "C"
9837#endif
9838char pthread_join ();
9839int
9840main ()
9841{
9842return pthread_join ();
9843 ;
9844 return 0;
9845}
9846_ACEOF
9847if ac_fn_c_try_link "$LINENO"; then :
9848 ax_pthread_ok=yes
9849fi
9850rm -f core conftest.err conftest.$ac_objext \
9851 conftest$ac_exeext conftest.$ac_ext
9852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9853$as_echo "$ax_pthread_ok" >&6; }
9854 if test x"$ax_pthread_ok" = xno; then
9855 PTHREAD_LIBS=""
9856 PTHREAD_CFLAGS=""
9857 fi
9858 LIBS="$save_LIBS"
9859 CFLAGS="$save_CFLAGS"
9860fi
9861
9862# We must check for the threads library under a number of different
9863# names; the ordering is very important because some systems
9864# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9865# libraries is broken (non-POSIX).
9866
9867# Create a list of thread flags to try. Items starting with a "-" are
9868# C compiler flags, and other items are library names, except for "none"
9869# which indicates that we try without any flags at all, and "pthread-config"
9870# which is a program returning the flags for the Pth emulation library.
9871
cristy2ec87cc2013-02-18 17:46:50 +00009872ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009873
9874# The ordering *is* (sometimes) important. Some notes on the
9875# individual items follow:
9876
9877# pthreads: AIX (must check this before -lpthread)
9878# none: in case threads are in libc; should be tried before -Kthread and
9879# other compiler flags to prevent continual compiler warnings
9880# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9881# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9882# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9883# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9884# -pthreads: Solaris/gcc
9885# -mthreads: Mingw32/gcc, Lynx/gcc
9886# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9887# doesn't hurt to check since this sometimes defines pthreads too;
9888# also defines -D_REENTRANT)
9889# ... -mt is also the pthreads flag for HP/aCC
9890# pthread: Linux, etcetera
9891# --thread-safe: KAI C++
9892# pthread-config: use pthread-config program (for GNU Pth library)
9893
cristy2ec87cc2013-02-18 17:46:50 +00009894case ${host_os} in
9895 solaris*)
cristy73bd4a52010-10-05 11:24:23 +00009896
9897 # On Solaris (at least, for some versions), libc contains stubbed
9898 # (non-functional) versions of the pthreads routines, so link-based
9899 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9900 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9901 # a function called by this macro, so we could check for that, but
9902 # who knows whether they'll stub that too in a future libc.) So,
9903 # we'll just look for -pthreads and -lpthread first:
9904
9905 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9906 ;;
9907
cristy2ec87cc2013-02-18 17:46:50 +00009908 darwin*)
cristya316db12011-10-24 00:49:45 +00009909 ax_pthread_flags="-pthread $ax_pthread_flags"
9910 ;;
cristy73bd4a52010-10-05 11:24:23 +00009911esac
9912
9913if test x"$ax_pthread_ok" = xno; then
9914for flag in $ax_pthread_flags; do
9915
9916 case $flag in
9917 none)
9918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9919$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9920 ;;
9921
9922 -*)
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9924$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9925 PTHREAD_CFLAGS="$flag"
9926 ;;
9927
cristya316db12011-10-24 00:49:45 +00009928 pthread-config)
9929 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009930set dummy pthread-config; ac_word=$2
9931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9932$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009933if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009934 $as_echo_n "(cached) " >&6
9935else
9936 if test -n "$ax_pthread_config"; then
9937 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9938else
9939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9940for as_dir in $PATH
9941do
9942 IFS=$as_save_IFS
9943 test -z "$as_dir" && as_dir=.
9944 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009946 ac_cv_prog_ax_pthread_config="yes"
9947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9948 break 2
9949 fi
9950done
9951 done
9952IFS=$as_save_IFS
9953
9954 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9955fi
9956fi
9957ax_pthread_config=$ac_cv_prog_ax_pthread_config
9958if test -n "$ax_pthread_config"; then
9959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9960$as_echo "$ax_pthread_config" >&6; }
9961else
9962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9963$as_echo "no" >&6; }
9964fi
9965
9966
cristya316db12011-10-24 00:49:45 +00009967 if test x"$ax_pthread_config" = xno; then continue; fi
9968 PTHREAD_CFLAGS="`pthread-config --cflags`"
9969 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9970 ;;
cristy73bd4a52010-10-05 11:24:23 +00009971
9972 *)
9973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9974$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9975 PTHREAD_LIBS="-l$flag"
9976 ;;
9977 esac
9978
9979 save_LIBS="$LIBS"
9980 save_CFLAGS="$CFLAGS"
9981 LIBS="$PTHREAD_LIBS $LIBS"
9982 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9983
9984 # Check for various functions. We must include pthread.h,
9985 # since some functions may be macros. (On the Sequent, we
9986 # need a special flag -Kthread to make this header compile.)
9987 # We check for pthread_join because it is in -lpthread on IRIX
9988 # while pthread_create is in libc. We check for pthread_attr_init
9989 # due to DEC craziness with -lpthreads. We check for
9990 # pthread_cleanup_push because it is one of the few pthread
9991 # functions on Solaris that doesn't have a non-functional libc stub.
9992 # We try pthread_create on general principles.
9993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9994/* end confdefs.h. */
9995#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009996 static void routine(void *a) { a = 0; }
9997 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009998int
9999main ()
10000{
10001pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +000010002 pthread_create(&th, 0, start_routine, 0);
10003 pthread_join(th, 0);
10004 pthread_attr_init(&attr);
10005 pthread_cleanup_push(routine, 0);
10006 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +000010007 ;
10008 return 0;
10009}
10010_ACEOF
10011if ac_fn_c_try_link "$LINENO"; then :
10012 ax_pthread_ok=yes
10013fi
10014rm -f core conftest.err conftest.$ac_objext \
10015 conftest$ac_exeext conftest.$ac_ext
10016
10017 LIBS="$save_LIBS"
10018 CFLAGS="$save_CFLAGS"
10019
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
10021$as_echo "$ax_pthread_ok" >&6; }
10022 if test "x$ax_pthread_ok" = xyes; then
10023 break;
10024 fi
10025
10026 PTHREAD_LIBS=""
10027 PTHREAD_CFLAGS=""
10028done
10029fi
10030
10031# Various other checks:
10032if test "x$ax_pthread_ok" = xyes; then
10033 save_LIBS="$LIBS"
10034 LIBS="$PTHREAD_LIBS $LIBS"
10035 save_CFLAGS="$CFLAGS"
10036 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10037
10038 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +000010039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +000010040$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +000010041 attr_name=unknown
10042 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
10043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000010044/* end confdefs.h. */
10045#include <pthread.h>
10046int
10047main ()
10048{
cristya316db12011-10-24 00:49:45 +000010049int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +000010050 ;
10051 return 0;
10052}
10053_ACEOF
10054if ac_fn_c_try_link "$LINENO"; then :
10055 attr_name=$attr; break
10056fi
10057rm -f core conftest.err conftest.$ac_objext \
10058 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +000010059 done
cristy73bd4a52010-10-05 11:24:23 +000010060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
10061$as_echo "$attr_name" >&6; }
10062 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
10063
10064cat >>confdefs.h <<_ACEOF
10065#define PTHREAD_CREATE_JOINABLE $attr_name
10066_ACEOF
10067
10068 fi
10069
10070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
10071$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
10072 flag=no
cristy2ec87cc2013-02-18 17:46:50 +000010073 case ${host_os} in
10074 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
10075 osf* | hpux*) flag="-D_REENTRANT";;
10076 solaris*)
10077 if test "$GCC" = "yes"; then
10078 flag="-D_REENTRANT"
10079 else
10080 flag="-mt -D_REENTRANT"
10081 fi
10082 ;;
cristy73bd4a52010-10-05 11:24:23 +000010083 esac
10084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
10085$as_echo "${flag}" >&6; }
10086 if test "x$flag" != xno; then
10087 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
10088 fi
10089
cristya316db12011-10-24 00:49:45 +000010090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
10091$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
10092if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
10093 $as_echo_n "(cached) " >&6
10094else
10095
10096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10097/* end confdefs.h. */
10098
10099 #include <pthread.h>
10100int
10101main ()
10102{
10103int i = PTHREAD_PRIO_INHERIT;
10104 ;
10105 return 0;
10106}
10107_ACEOF
10108if ac_fn_c_try_link "$LINENO"; then :
10109 ax_cv_PTHREAD_PRIO_INHERIT=yes
10110else
10111 ax_cv_PTHREAD_PRIO_INHERIT=no
10112fi
10113rm -f core conftest.err conftest.$ac_objext \
10114 conftest$ac_exeext conftest.$ac_ext
10115
10116fi
10117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
10118$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
10119 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
10120
10121$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
10122
10123fi
10124
cristy73bd4a52010-10-05 11:24:23 +000010125 LIBS="$save_LIBS"
10126 CFLAGS="$save_CFLAGS"
10127
cristy23493c42013-04-11 16:04:59 +000010128 # More AIX lossage: compile with *_r variant
10129 if test "x$GCC" != xyes; then
10130 case $host_os in
10131 aix*)
10132 case "x/$CC" in #(
10133 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
10134 #handle absolute path differently from PATH based program lookup
10135 case "x$CC" in #(
10136 x/*) :
10137 if as_fn_executable_p ${CC}_r; then :
10138 PTHREAD_CC="${CC}_r"
10139fi ;; #(
10140 *) :
10141 for ac_prog in ${CC}_r
cristy73bd4a52010-10-05 11:24:23 +000010142do
10143 # Extract the first word of "$ac_prog", so it can be a program name with args.
10144set dummy $ac_prog; ac_word=$2
10145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10146$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010147if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010148 $as_echo_n "(cached) " >&6
10149else
10150 if test -n "$PTHREAD_CC"; then
10151 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
10152else
10153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10154for as_dir in $PATH
10155do
10156 IFS=$as_save_IFS
10157 test -z "$as_dir" && as_dir=.
10158 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010160 ac_cv_prog_PTHREAD_CC="$ac_prog"
10161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10162 break 2
10163 fi
10164done
10165 done
10166IFS=$as_save_IFS
10167
10168fi
10169fi
10170PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
10171if test -n "$PTHREAD_CC"; then
10172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
10173$as_echo "$PTHREAD_CC" >&6; }
10174else
10175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10176$as_echo "no" >&6; }
10177fi
10178
10179
10180 test -n "$PTHREAD_CC" && break
10181done
cristy23493c42013-04-11 16:04:59 +000010182test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10183 ;;
10184esac ;; #(
10185 *) :
10186 ;;
10187esac
10188 ;;
10189 esac
cristya316db12011-10-24 00:49:45 +000010190 fi
cristy73bd4a52010-10-05 11:24:23 +000010191fi
10192
cristy23493c42013-04-11 16:04:59 +000010193test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10194
cristy73bd4a52010-10-05 11:24:23 +000010195
10196
10197
10198
10199# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
10200if test x"$ax_pthread_ok" = xyes; then
10201
10202$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10203
10204 :
10205else
10206 ax_pthread_ok=no
10207
10208fi
10209ac_ext=c
10210ac_cpp='$CPP $CPPFLAGS'
10211ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10212ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10213ac_compiler_gnu=$ac_cv_c_compiler_gnu
10214
10215
10216
10217# Check whether --enable-opencl was given.
10218if test "${enable_opencl+set}" = set; then :
cristy48794642012-09-02 15:19:08 +000010219 enableval=$enable_opencl; enable_opencl=$enableval
cristy73bd4a52010-10-05 11:24:23 +000010220else
cristy48794642012-09-02 15:19:08 +000010221 enable_opencl='no'
cristy73bd4a52010-10-05 11:24:23 +000010222fi
10223
10224
cristy48794642012-09-02 15:19:08 +000010225if test "$enable_opencl" = 'yes'; then
cristy73bd4a52010-10-05 11:24:23 +000010226 ac_ext=c
10227ac_cpp='$CPP $CPPFLAGS'
10228ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10229ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10230ac_compiler_gnu=$ac_cv_c_compiler_gnu
10231
cristy75314cc2012-09-15 23:08:29 +000010232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
10233$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
10234if ${ax_cv_c_compiler_ms+:} false; then :
10235 $as_echo_n "(cached) " >&6
10236else
10237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10238/* end confdefs.h. */
10239
10240int
10241main ()
10242{
10243#ifndef _MSC_VER
10244 choke me
10245#endif
10246
10247 ;
10248 return 0;
10249}
10250_ACEOF
10251if ac_fn_c_try_compile "$LINENO"; then :
10252 ax_compiler_ms=yes
10253else
10254 ax_compiler_ms=no
10255fi
10256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10257ax_cv_c_compiler_ms=$ax_compiler_ms
10258
10259fi
10260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
10261$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000010262 if test X$ax_compiler_ms = Xno; then :
10263 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
10264fi
10265
10266 ax_save_CPPFLAGS=$CPPFLAGS
cristyfdc7d122013-08-17 20:46:45 +000010267 ax_save_CL_CFLAGS=$CL_CFLAGS
10268
10269 found_opencl_header='no'
cristy73bd4a52010-10-05 11:24:23 +000010270 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
10271 for ac_header in CL/cl.h OpenCL/cl.h
10272do :
10273 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10274ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000010275if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000010276 cat >>confdefs.h <<_ACEOF
10277#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10278_ACEOF
cristyfdc7d122013-08-17 20:46:45 +000010279 found_opencl_header='yes'
10280 break;
10281else
10282 found_opencl_header='no'
cristy73bd4a52010-10-05 11:24:23 +000010283fi
10284
10285done
10286
cristyfdc7d122013-08-17 20:46:45 +000010287
10288 if test X$found_opencl_header = Xno; then :
10289 { ac_cv_header_CL_cl_h=; unset ac_cv_header_CL_cl_h;}
10290 { ac_cv_header_OpenCL_cl_h=; unset ac_cv_header_OpenCL_cl_h;}
10291 CL_CFLAGS="-I$AMDAPPSDKROOT/include"
10292 CPPFLAGS="$ax_save_CPPFLAGS $CL_CFLAGS"
10293 for ac_header in CL/cl.h OpenCL/cl.h
10294do :
10295 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10296ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10297if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10298 cat >>confdefs.h <<_ACEOF
10299#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10300_ACEOF
10301 found_opencl_header='yes'
10302 break;
10303else
10304 found_opencl_header='no'
10305fi
10306
10307done
10308
10309
10310fi
10311
10312 CPPFLAGS="$ax_save_CPPFLAGS"
cristy73bd4a52010-10-05 11:24:23 +000010313
10314 for ac_header in windows.h
10315do :
10316 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000010317if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000010318 cat >>confdefs.h <<_ACEOF
10319#define HAVE_WINDOWS_H 1
10320_ACEOF
10321
10322fi
10323
10324done
10325
10326
10327
10328
10329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
10330$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010331if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010332 $as_echo_n "(cached) " >&6
10333else
10334 ax_cv_check_cl_libcl=no
10335 case $host_cpu in
cristyfdc7d122013-08-17 20:46:45 +000010336 x86_64) ax_check_cl_libdir=lib64
10337 ax_check_cl_amd_libdir=x86_64
10338 ;;
10339 *) ax_check_cl_libdir=lib
10340 ax_check_cl_amd_libdir=x86
10341 ;;
cristy73bd4a52010-10-05 11:24:23 +000010342 esac
10343 ax_save_CPPFLAGS=$CPPFLAGS
10344 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
10345 ax_save_LIBS=$LIBS
10346 LIBS=""
10347 ax_check_libs="-lOpenCL -lCL -lclparser"
10348 for ax_lib in $ax_check_libs; do
10349 if test X$ax_compiler_ms = Xyes; then :
10350 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
10351else
10352 ax_try_lib=$ax_lib
10353fi
10354 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
10355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10356/* end confdefs.h. */
10357
10358 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10359 # include <windows.h>
10360 # endif
10361 # ifdef HAVE_CL_CL_H
10362 # include <CL/cl.h>
10363 # elif defined(HAVE_OPENCL_CL_H)
10364 # include <OpenCL/cl.h>
10365 # else
10366 # error no CL.h
10367 # endif
10368int
10369main ()
10370{
10371clCreateContextFromType(0,0,0,0,0)
10372 ;
10373 return 0;
10374}
10375_ACEOF
10376if ac_fn_c_try_link "$LINENO"; then :
10377 ax_cv_check_cl_libcl=$ax_try_lib; break
10378else
10379 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"
10380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10381/* end confdefs.h. */
10382
10383 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10384 # include <windows.h>
10385 # endif
10386 # ifdef HAVE_CL_CL_H
10387 # include <CL/cl.h>
10388 # elif defined(HAVE_OPENCL_CL_H)
10389 # include <OpenCL/cl.h>
10390 # else
10391 # error no CL.h
10392 # endif
10393int
10394main ()
10395{
10396clCreateContextFromType(0,0,0,0,0)
10397 ;
10398 return 0;
10399}
10400_ACEOF
10401if ac_fn_c_try_link "$LINENO"; then :
10402 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
10403else
cristy78c5a0c2010-12-04 20:00:59 +000010404 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 +000010405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10406/* end confdefs.h. */
10407
10408 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10409 # include <windows.h>
10410 # endif
10411 # ifdef HAVE_CL_CL_H
10412 # include <CL/cl.h>
10413 # elif defined(HAVE_OPENCL_CL_H)
10414 # include <OpenCL/cl.h>
10415 # else
10416 # error no CL.h
10417 # endif
10418int
10419main ()
10420{
10421clCreateContextFromType(0,0,0,0,0)
10422 ;
10423 return 0;
10424}
10425_ACEOF
10426if ac_fn_c_try_link "$LINENO"; then :
10427 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
cristyfdc7d122013-08-17 20:46:45 +000010428else
10429 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"
10430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10431/* end confdefs.h. */
10432
10433 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10434 # include <windows.h>
10435 # endif
10436 # ifdef HAVE_CL_CL_H
10437 # include <CL/cl.h>
10438 # elif defined(HAVE_OPENCL_CL_H)
10439 # include <OpenCL/cl.h>
10440 # else
10441 # error no CL.h
10442 # endif
10443int
10444main ()
10445{
10446clCreateContextFromType(0,0,0,0,0)
10447 ;
10448 return 0;
10449}
10450_ACEOF
10451if ac_fn_c_try_link "$LINENO"; then :
10452 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_amd_flags"; break
10453
10454fi
10455rm -f core conftest.err conftest.$ac_objext \
10456 conftest$ac_exeext conftest.$ac_ext
10457
10458
cristy73bd4a52010-10-05 11:24:23 +000010459fi
10460rm -f core conftest.err conftest.$ac_objext \
10461 conftest$ac_exeext conftest.$ac_ext
10462fi
10463rm -f core conftest.err conftest.$ac_objext \
10464 conftest$ac_exeext conftest.$ac_ext
10465fi
10466rm -f core conftest.err conftest.$ac_objext \
10467 conftest$ac_exeext conftest.$ac_ext
10468 done
10469
cristyc3f8b8e2011-12-22 14:55:16 +000010470 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy78c5a0c2010-12-04 20:00:59 +000010471 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +000010472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10473/* end confdefs.h. */
10474
10475 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10476 # include <windows.h>
10477 # endif
10478 # ifdef HAVE_CL_CL_H
10479 # include <CL/cl.h>
10480 # elif defined(HAVE_OPENCL_CL_H)
10481 # include <OpenCL/cl.h>
10482 # else
10483 # error no CL.h
10484 # endif
10485int
10486main ()
10487{
10488clCreateContextFromType(0,0,0,0,0)
10489 ;
10490 return 0;
10491}
10492_ACEOF
10493if ac_fn_c_try_link "$LINENO"; then :
10494 ax_cv_check_cl_libcl=$LIBS
10495fi
10496rm -f core conftest.err conftest.$ac_objext \
10497 conftest$ac_exeext conftest.$ac_ext
10498fi
10499
10500 LIBS=$ax_save_LIBS
10501 CPPFLAGS=$ax_save_CPPFLAGS
10502fi
10503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
10504$as_echo "$ax_cv_check_cl_libcl" >&6; }
10505
10506 if test "X$ax_cv_check_cl_libcl" = Xno; then :
10507 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
10508else
10509 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
10510$as_echo "#define _OPENCL 1" >>confdefs.h
10511
10512fi
10513 ac_ext=c
10514ac_cpp='$CPP $CPPFLAGS'
10515ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10516ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10517ac_compiler_gnu=$ac_cv_c_compiler_gnu
10518
10519fi
10520
10521
10522
10523
cristyc7083c12009-10-14 03:16:55 +000010524CFLAGS="$CL_CFLAGS $CFLAGS"
cristyfdc7d122013-08-17 20:46:45 +000010525CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
cristyc7083c12009-10-14 03:16:55 +000010526LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +000010527
cristy391f1ce2010-09-09 17:23:28 +000010528if test "$enable_opencl" != no; then
cristy6e3607c2011-09-13 13:59:17 +000010529 if test "X$ax_cv_check_cl_libcl" != Xno; then :
cristy391f1ce2010-09-09 17:23:28 +000010530 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
10531 fi
cristyfd9dcd42010-08-08 18:07:02 +000010532fi
cristy2e8b51d2009-10-17 18:26:15 +000010533
cristy3ed852e2009-09-05 21:47:34 +000010534########
10535#
10536# Check for large file support
10537#
10538########
10539# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +000010540if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010541 enableval=$enable_largefile;
10542fi
10543
10544if test "$enable_largefile" != no; then
10545
cristy8b350f62009-11-15 23:12:43 +000010546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010547$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010548if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010549 $as_echo_n "(cached) " >&6
10550else
10551 ac_cv_sys_largefile_CC=no
10552 if test "$GCC" != yes; then
10553 ac_save_CC=$CC
10554 while :; do
10555 # IRIX 6.2 and later do not support large files by default,
10556 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +000010557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010558/* end confdefs.h. */
10559#include <sys/types.h>
10560 /* Check that off_t can represent 2**63 - 1 correctly.
10561 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10562 since some C++ compilers masquerading as C compilers
10563 incorrectly reject 9223372036854775807. */
10564#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10565 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10566 && LARGE_OFF_T % 2147483647 == 1)
10567 ? 1 : -1];
10568int
10569main ()
10570{
10571
10572 ;
10573 return 0;
10574}
10575_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010576 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010577 break
cristy3ed852e2009-09-05 21:47:34 +000010578fi
cristy3ed852e2009-09-05 21:47:34 +000010579rm -f core conftest.err conftest.$ac_objext
10580 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +000010581 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010582 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +000010583fi
cristy3ed852e2009-09-05 21:47:34 +000010584rm -f core conftest.err conftest.$ac_objext
10585 break
10586 done
10587 CC=$ac_save_CC
10588 rm -f conftest.$ac_ext
10589 fi
10590fi
cristy8b350f62009-11-15 23:12:43 +000010591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000010592$as_echo "$ac_cv_sys_largefile_CC" >&6; }
10593 if test "$ac_cv_sys_largefile_CC" != no; then
10594 CC=$CC$ac_cv_sys_largefile_CC
10595 fi
10596
cristy8b350f62009-11-15 23:12:43 +000010597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010598$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010599if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010600 $as_echo_n "(cached) " >&6
10601else
10602 while :; do
cristy8b350f62009-11-15 23:12:43 +000010603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010604/* end confdefs.h. */
10605#include <sys/types.h>
10606 /* Check that off_t can represent 2**63 - 1 correctly.
10607 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10608 since some C++ compilers masquerading as C compilers
10609 incorrectly reject 9223372036854775807. */
10610#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10611 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10612 && LARGE_OFF_T % 2147483647 == 1)
10613 ? 1 : -1];
10614int
10615main ()
10616{
10617
10618 ;
10619 return 0;
10620}
10621_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010622if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010623 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +000010624fi
cristy3ed852e2009-09-05 21:47:34 +000010625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010627/* end confdefs.h. */
10628#define _FILE_OFFSET_BITS 64
10629#include <sys/types.h>
10630 /* Check that off_t can represent 2**63 - 1 correctly.
10631 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10632 since some C++ compilers masquerading as C compilers
10633 incorrectly reject 9223372036854775807. */
10634#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10635 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10636 && LARGE_OFF_T % 2147483647 == 1)
10637 ? 1 : -1];
10638int
10639main ()
10640{
10641
10642 ;
10643 return 0;
10644}
10645_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010646if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010647 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +000010648fi
cristy3ed852e2009-09-05 21:47:34 +000010649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10650 ac_cv_sys_file_offset_bits=unknown
10651 break
10652done
10653fi
cristy8b350f62009-11-15 23:12:43 +000010654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +000010655$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10656case $ac_cv_sys_file_offset_bits in #(
10657 no | unknown) ;;
10658 *)
10659cat >>confdefs.h <<_ACEOF
10660#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10661_ACEOF
10662;;
10663esac
10664rm -rf conftest*
10665 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +000010666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010667$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010668if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010669 $as_echo_n "(cached) " >&6
10670else
10671 while :; do
cristy8b350f62009-11-15 23:12:43 +000010672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010673/* end confdefs.h. */
10674#include <sys/types.h>
10675 /* Check that off_t can represent 2**63 - 1 correctly.
10676 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10677 since some C++ compilers masquerading as C compilers
10678 incorrectly reject 9223372036854775807. */
10679#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10680 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10681 && LARGE_OFF_T % 2147483647 == 1)
10682 ? 1 : -1];
10683int
10684main ()
10685{
10686
10687 ;
10688 return 0;
10689}
10690_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010691if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010692 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +000010693fi
cristy3ed852e2009-09-05 21:47:34 +000010694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010696/* end confdefs.h. */
10697#define _LARGE_FILES 1
10698#include <sys/types.h>
10699 /* Check that off_t can represent 2**63 - 1 correctly.
10700 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10701 since some C++ compilers masquerading as C compilers
10702 incorrectly reject 9223372036854775807. */
10703#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10704 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10705 && LARGE_OFF_T % 2147483647 == 1)
10706 ? 1 : -1];
10707int
10708main ()
10709{
10710
10711 ;
10712 return 0;
10713}
10714_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010715if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010716 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +000010717fi
cristy3ed852e2009-09-05 21:47:34 +000010718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10719 ac_cv_sys_large_files=unknown
10720 break
10721done
10722fi
cristy8b350f62009-11-15 23:12:43 +000010723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010724$as_echo "$ac_cv_sys_large_files" >&6; }
10725case $ac_cv_sys_large_files in #(
10726 no | unknown) ;;
10727 *)
10728cat >>confdefs.h <<_ACEOF
10729#define _LARGE_FILES $ac_cv_sys_large_files
10730_ACEOF
10731;;
10732esac
10733rm -rf conftest*
10734 fi
cristy14fefe52012-05-21 00:59:18 +000010735
10736
cristy3ed852e2009-09-05 21:47:34 +000010737fi
10738
cristy8b350f62009-11-15 23:12:43 +000010739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010740$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010741if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010742 $as_echo_n "(cached) " >&6
10743else
10744 while :; do
cristy8b350f62009-11-15 23:12:43 +000010745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010746/* end confdefs.h. */
10747#include <sys/types.h> /* for off_t */
10748 #include <stdio.h>
10749int
10750main ()
10751{
10752int (*fp) (FILE *, off_t, int) = fseeko;
10753 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10754 ;
10755 return 0;
10756}
10757_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010758if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010759 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +000010760fi
cristy8b350f62009-11-15 23:12:43 +000010761rm -f core conftest.err conftest.$ac_objext \
10762 conftest$ac_exeext conftest.$ac_ext
10763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010764/* end confdefs.h. */
10765#define _LARGEFILE_SOURCE 1
10766#include <sys/types.h> /* for off_t */
10767 #include <stdio.h>
10768int
10769main ()
10770{
10771int (*fp) (FILE *, off_t, int) = fseeko;
10772 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10773 ;
10774 return 0;
10775}
10776_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010777if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010778 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +000010779fi
cristy8b350f62009-11-15 23:12:43 +000010780rm -f core conftest.err conftest.$ac_objext \
10781 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010782 ac_cv_sys_largefile_source=unknown
10783 break
10784done
10785fi
cristy8b350f62009-11-15 23:12:43 +000010786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +000010787$as_echo "$ac_cv_sys_largefile_source" >&6; }
10788case $ac_cv_sys_largefile_source in #(
10789 no | unknown) ;;
10790 *)
10791cat >>confdefs.h <<_ACEOF
10792#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10793_ACEOF
10794;;
10795esac
10796rm -rf conftest*
10797
10798# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10799# in glibc 2.1.3, but that breaks too many other things.
10800# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10801if test $ac_cv_sys_largefile_source != unknown; then
10802
cristy8b350f62009-11-15 23:12:43 +000010803$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010804
10805fi
10806
10807LFS_CPPFLAGS=''
10808if test "$enable_largefile" != no; then
cristyc1e0cc12011-09-21 16:41:16 +000010809 case $ac_cv_sys_file_offset_bits in
10810 no)
10811 # nothing to do here as the host supports LFS fine
10812 ;;
10813 unknown)
cristy8b350f62009-11-15 23:12:43 +000010814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +000010815$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010816 if test "$cross_compiling" = yes; then :
10817 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000010818$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000010819as_fn_error $? "cannot run test program while cross compiling
10820See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000010821else
cristy8b350f62009-11-15 23:12:43 +000010822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10823/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000010824#include <unistd.h>
10825 main () {
10826 exit(!(sizeof(off_t) == 8));
10827 }
cristyda16f162011-02-19 23:52:17 +000010828int
10829main ()
10830{
10831
10832 ;
10833 return 0;
10834}
cristy3ed852e2009-09-05 21:47:34 +000010835_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010836if ac_fn_c_try_run "$LINENO"; then :
10837 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010838
cristyad38abe2012-12-23 23:03:21 +000010839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10840$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000010841else
cristyad38abe2012-12-23 23:03:21 +000010842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10843$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000010844fi
cristy8b350f62009-11-15 23:12:43 +000010845rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10846 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010847fi
10848
cristyc1e0cc12011-09-21 16:41:16 +000010849 ;;
10850 *)
10851 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
10852 ;;
10853 esac
cristy3ed852e2009-09-05 21:47:34 +000010854 if test "$ac_cv_sys_large_files" != 'no'; then
10855 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
10856 fi
10857 if test "$ac_cv_sys_largefile_source" != 'no'; then
10858 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
10859 fi
10860fi
10861
10862
cristy3ed852e2009-09-05 21:47:34 +000010863# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +000010864enable_dlopen=yes
10865
10866
10867
10868case `pwd` in
10869 *\ * | *\ *)
10870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10871$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10872esac
10873
10874
10875
cristy99bd5232011-12-07 14:38:20 +000010876macro_version='2.4.2'
10877macro_revision='1.3337'
cristy73bd4a52010-10-05 11:24:23 +000010878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891ltmain="$ac_aux_dir/ltmain.sh"
10892
cristy0c60a692010-11-04 01:09:47 +000010893# Backslashify metacharacters that are still active within
10894# double-quoted strings.
10895sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10896
10897# Same as above, but do not quote variable references.
10898double_quote_subst='s/\(["`\\]\)/\\\1/g'
10899
10900# Sed substitution to delay expansion of an escaped shell variable in a
10901# double_quote_subst'ed string.
10902delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10903
10904# Sed substitution to delay expansion of an escaped single quote.
10905delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10906
10907# Sed substitution to avoid accidental globbing in evaled expressions
10908no_glob_subst='s/\*/\\\*/g'
10909
cristy73bd4a52010-10-05 11:24:23 +000010910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
10911$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010912if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010913 $as_echo_n "(cached) " >&6
10914else
10915 if test -n "$NM"; then
10916 # Let the user override the test.
10917 lt_cv_path_NM="$NM"
10918else
10919 lt_nm_to_check="${ac_tool_prefix}nm"
10920 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
10921 lt_nm_to_check="$lt_nm_to_check nm"
10922 fi
10923 for lt_tmp_nm in $lt_nm_to_check; do
10924 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10925 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
10926 IFS="$lt_save_ifs"
10927 test -z "$ac_dir" && ac_dir=.
10928 tmp_nm="$ac_dir/$lt_tmp_nm"
10929 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
10930 # Check to see if the nm accepts a BSD-compat flag.
10931 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
10932 # nm: unknown option "B" ignored
10933 # Tru64's nm complains that /dev/null is an invalid object file
10934 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
10935 */dev/null* | *'Invalid file or object type'*)
10936 lt_cv_path_NM="$tmp_nm -B"
10937 break
10938 ;;
10939 *)
10940 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
10941 */dev/null*)
10942 lt_cv_path_NM="$tmp_nm -p"
10943 break
10944 ;;
10945 *)
10946 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10947 continue # so that we can try to find one that supports BSD flags
10948 ;;
10949 esac
10950 ;;
10951 esac
10952 fi
10953 done
10954 IFS="$lt_save_ifs"
10955 done
10956 : ${lt_cv_path_NM=no}
10957fi
10958fi
10959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
10960$as_echo "$lt_cv_path_NM" >&6; }
10961if test "$lt_cv_path_NM" != "no"; then
10962 NM="$lt_cv_path_NM"
10963else
10964 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +000010965 if test -n "$DUMPBIN"; then :
10966 # Let the user override the test.
10967 else
10968 if test -n "$ac_tool_prefix"; then
10969 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010970 do
10971 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10972set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10974$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010975if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010976 $as_echo_n "(cached) " >&6
10977else
10978 if test -n "$DUMPBIN"; then
10979 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
10980else
10981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10982for as_dir in $PATH
10983do
10984 IFS=$as_save_IFS
10985 test -z "$as_dir" && as_dir=.
10986 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010988 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
10989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10990 break 2
10991 fi
10992done
10993 done
10994IFS=$as_save_IFS
10995
10996fi
10997fi
10998DUMPBIN=$ac_cv_prog_DUMPBIN
10999if test -n "$DUMPBIN"; then
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11001$as_echo "$DUMPBIN" >&6; }
11002else
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11004$as_echo "no" >&6; }
11005fi
11006
11007
11008 test -n "$DUMPBIN" && break
11009 done
11010fi
11011if test -z "$DUMPBIN"; then
11012 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +000011013 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000011014do
11015 # Extract the first word of "$ac_prog", so it can be a program name with args.
11016set dummy $ac_prog; ac_word=$2
11017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11018$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011019if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011020 $as_echo_n "(cached) " >&6
11021else
11022 if test -n "$ac_ct_DUMPBIN"; then
11023 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11024else
11025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11026for as_dir in $PATH
11027do
11028 IFS=$as_save_IFS
11029 test -z "$as_dir" && as_dir=.
11030 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011032 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11034 break 2
11035 fi
11036done
11037 done
11038IFS=$as_save_IFS
11039
11040fi
11041fi
11042ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11043if test -n "$ac_ct_DUMPBIN"; then
11044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11045$as_echo "$ac_ct_DUMPBIN" >&6; }
11046else
11047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11048$as_echo "no" >&6; }
11049fi
11050
11051
11052 test -n "$ac_ct_DUMPBIN" && break
11053done
11054
11055 if test "x$ac_ct_DUMPBIN" = x; then
11056 DUMPBIN=":"
11057 else
11058 case $cross_compiling:$ac_tool_warned in
11059yes:)
11060{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11061$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11062ac_tool_warned=yes ;;
11063esac
11064 DUMPBIN=$ac_ct_DUMPBIN
11065 fi
11066fi
11067
cristy0c60a692010-11-04 01:09:47 +000011068 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11069 *COFF*)
11070 DUMPBIN="$DUMPBIN -symbols"
11071 ;;
11072 *)
11073 DUMPBIN=:
11074 ;;
11075 esac
11076 fi
cristy73bd4a52010-10-05 11:24:23 +000011077
11078 if test "$DUMPBIN" != ":"; then
11079 NM="$DUMPBIN"
11080 fi
11081fi
11082test -z "$NM" && NM=nm
11083
11084
11085
11086
11087
11088
11089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11090$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011091if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011092 $as_echo_n "(cached) " >&6
11093else
11094 lt_cv_nm_interface="BSD nm"
11095 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000011096 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000011097 (eval "$ac_compile" 2>conftest.err)
11098 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000011099 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000011100 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11101 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000011102 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000011103 cat conftest.out >&5
11104 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11105 lt_cv_nm_interface="MS dumpbin"
11106 fi
11107 rm -f conftest*
11108fi
11109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11110$as_echo "$lt_cv_nm_interface" >&6; }
11111
11112# find the maximum length of command line arguments
11113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11114$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011115if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011116 $as_echo_n "(cached) " >&6
11117else
11118 i=0
11119 teststring="ABCD"
11120
11121 case $build_os in
11122 msdosdjgpp*)
11123 # On DJGPP, this test can blow up pretty badly due to problems in libc
11124 # (any single argument exceeding 2000 bytes causes a buffer overrun
11125 # during glob expansion). Even if it were fixed, the result of this
11126 # check would be larger than it should be.
11127 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11128 ;;
11129
11130 gnu*)
11131 # Under GNU Hurd, this test is not required because there is
11132 # no limit to the length of command line arguments.
11133 # Libtool will interpret -1 as no limit whatsoever
11134 lt_cv_sys_max_cmd_len=-1;
11135 ;;
11136
11137 cygwin* | mingw* | cegcc*)
11138 # On Win9x/ME, this test blows up -- it succeeds, but takes
11139 # about 5 minutes as the teststring grows exponentially.
11140 # Worse, since 9x/ME are not pre-emptively multitasking,
11141 # you end up with a "frozen" computer, even though with patience
11142 # the test eventually succeeds (with a max line length of 256k).
11143 # Instead, let's just punt: use the minimum linelength reported by
11144 # all of the supported platforms: 8192 (on NT/2K/XP).
11145 lt_cv_sys_max_cmd_len=8192;
11146 ;;
11147
cristy0c60a692010-11-04 01:09:47 +000011148 mint*)
11149 # On MiNT this can take a long time and run out of memory.
11150 lt_cv_sys_max_cmd_len=8192;
11151 ;;
11152
cristy73bd4a52010-10-05 11:24:23 +000011153 amigaos*)
11154 # On AmigaOS with pdksh, this test takes hours, literally.
11155 # So we just punt and use a minimum line length of 8192.
11156 lt_cv_sys_max_cmd_len=8192;
11157 ;;
11158
11159 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11160 # This has been around since 386BSD, at least. Likely further.
11161 if test -x /sbin/sysctl; then
11162 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11163 elif test -x /usr/sbin/sysctl; then
11164 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11165 else
11166 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11167 fi
11168 # And add a safety zone
11169 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11170 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11171 ;;
11172
11173 interix*)
11174 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11175 lt_cv_sys_max_cmd_len=196608
11176 ;;
11177
cristy99bd5232011-12-07 14:38:20 +000011178 os2*)
11179 # The test takes a long time on OS/2.
11180 lt_cv_sys_max_cmd_len=8192
11181 ;;
11182
cristy73bd4a52010-10-05 11:24:23 +000011183 osf*)
11184 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11185 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11186 # nice to cause kernel panics so lets avoid the loop below.
11187 # First set a reasonable default.
11188 lt_cv_sys_max_cmd_len=16384
11189 #
11190 if test -x /sbin/sysconfig; then
11191 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11192 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11193 esac
11194 fi
11195 ;;
11196 sco3.2v5*)
11197 lt_cv_sys_max_cmd_len=102400
11198 ;;
11199 sysv5* | sco5v6* | sysv4.2uw2*)
11200 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11201 if test -n "$kargmax"; then
11202 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11203 else
11204 lt_cv_sys_max_cmd_len=32768
11205 fi
11206 ;;
11207 *)
11208 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11209 if test -n "$lt_cv_sys_max_cmd_len"; then
11210 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11211 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11212 else
11213 # Make teststring a little bigger before we do anything with it.
11214 # a 1K string should be a reasonable start.
11215 for i in 1 2 3 4 5 6 7 8 ; do
11216 teststring=$teststring$teststring
11217 done
11218 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11219 # If test is not a shell built-in, we'll probably end up computing a
11220 # maximum length that is only half of the actual maximum length, but
11221 # we can't tell.
cristy99bd5232011-12-07 14:38:20 +000011222 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
cristy0c60a692010-11-04 01:09:47 +000011223 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +000011224 test $i != 17 # 1/2 MB should be enough
11225 do
11226 i=`expr $i + 1`
11227 teststring=$teststring$teststring
11228 done
11229 # Only check the string length outside the loop.
11230 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11231 teststring=
11232 # Add a significant safety factor because C++ compilers can tack on
11233 # massive amounts of additional arguments before passing them to the
11234 # linker. It appears as though 1/2 is a usable value.
11235 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11236 fi
11237 ;;
11238 esac
11239
11240fi
11241
11242if test -n $lt_cv_sys_max_cmd_len ; then
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11244$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11245else
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11247$as_echo "none" >&6; }
11248fi
11249max_cmd_len=$lt_cv_sys_max_cmd_len
11250
11251
11252
11253
11254
11255
11256: ${CP="cp -f"}
11257: ${MV="mv -f"}
11258: ${RM="rm -f"}
11259
11260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11261$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11262# Try some XSI features
11263xsi_shell=no
11264( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +000011265 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
11266 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +000011267 && eval 'test $(( 1 + 1 )) -eq 2 \
11268 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11269 && xsi_shell=yes
11270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11271$as_echo "$xsi_shell" >&6; }
11272
11273
11274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11275$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11276lt_shell_append=no
11277( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11278 >/dev/null 2>&1 \
11279 && lt_shell_append=yes
11280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11281$as_echo "$lt_shell_append" >&6; }
11282
11283
11284if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11285 lt_unset=unset
11286else
11287 lt_unset=false
11288fi
11289
11290
11291
11292
11293
11294# test EBCDIC or ASCII
11295case `echo X|tr X '\101'` in
11296 A) # ASCII based system
11297 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11298 lt_SP2NL='tr \040 \012'
11299 lt_NL2SP='tr \015\012 \040\040'
11300 ;;
11301 *) # EBCDIC based system
11302 lt_SP2NL='tr \100 \n'
11303 lt_NL2SP='tr \r\n \100\100'
11304 ;;
11305esac
11306
11307
11308
11309
11310
11311
11312
11313
11314
cristyda16f162011-02-19 23:52:17 +000011315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11316$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11317if ${lt_cv_to_host_file_cmd+:} false; then :
11318 $as_echo_n "(cached) " >&6
11319else
11320 case $host in
11321 *-*-mingw* )
11322 case $build in
11323 *-*-mingw* ) # actually msys
11324 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11325 ;;
11326 *-*-cygwin* )
11327 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11328 ;;
11329 * ) # otherwise, assume *nix
11330 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11331 ;;
11332 esac
11333 ;;
11334 *-*-cygwin* )
11335 case $build in
11336 *-*-mingw* ) # actually msys
11337 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11338 ;;
11339 *-*-cygwin* )
11340 lt_cv_to_host_file_cmd=func_convert_file_noop
11341 ;;
11342 * ) # otherwise, assume *nix
11343 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11344 ;;
11345 esac
11346 ;;
11347 * ) # unhandled hosts (and "normal" native builds)
11348 lt_cv_to_host_file_cmd=func_convert_file_noop
11349 ;;
11350esac
11351
11352fi
11353
11354to_host_file_cmd=$lt_cv_to_host_file_cmd
11355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11356$as_echo "$lt_cv_to_host_file_cmd" >&6; }
11357
11358
11359
11360
11361
11362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11363$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11364if ${lt_cv_to_tool_file_cmd+:} false; then :
11365 $as_echo_n "(cached) " >&6
11366else
11367 #assume ordinary cross tools, or native build.
11368lt_cv_to_tool_file_cmd=func_convert_file_noop
11369case $host in
11370 *-*-mingw* )
11371 case $build in
11372 *-*-mingw* ) # actually msys
11373 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11374 ;;
11375 esac
11376 ;;
11377esac
11378
11379fi
11380
11381to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11383$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11384
11385
11386
11387
11388
cristy73bd4a52010-10-05 11:24:23 +000011389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11390$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011391if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011392 $as_echo_n "(cached) " >&6
11393else
11394 lt_cv_ld_reload_flag='-r'
11395fi
11396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11397$as_echo "$lt_cv_ld_reload_flag" >&6; }
11398reload_flag=$lt_cv_ld_reload_flag
11399case $reload_flag in
11400"" | " "*) ;;
11401*) reload_flag=" $reload_flag" ;;
11402esac
11403reload_cmds='$LD$reload_flag -o $output$reload_objs'
11404case $host_os in
cristyda16f162011-02-19 23:52:17 +000011405 cygwin* | mingw* | pw32* | cegcc*)
11406 if test "$GCC" != yes; then
11407 reload_cmds=false
11408 fi
11409 ;;
cristy73bd4a52010-10-05 11:24:23 +000011410 darwin*)
11411 if test "$GCC" = yes; then
11412 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11413 else
11414 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11415 fi
11416 ;;
11417esac
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427if test -n "$ac_tool_prefix"; then
11428 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11429set dummy ${ac_tool_prefix}objdump; ac_word=$2
11430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11431$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011432if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011433 $as_echo_n "(cached) " >&6
11434else
11435 if test -n "$OBJDUMP"; then
11436 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11437else
11438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11439for as_dir in $PATH
11440do
11441 IFS=$as_save_IFS
11442 test -z "$as_dir" && as_dir=.
11443 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011445 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11447 break 2
11448 fi
11449done
11450 done
11451IFS=$as_save_IFS
11452
11453fi
11454fi
11455OBJDUMP=$ac_cv_prog_OBJDUMP
11456if test -n "$OBJDUMP"; then
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11458$as_echo "$OBJDUMP" >&6; }
11459else
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11461$as_echo "no" >&6; }
11462fi
11463
11464
11465fi
11466if test -z "$ac_cv_prog_OBJDUMP"; then
11467 ac_ct_OBJDUMP=$OBJDUMP
11468 # Extract the first word of "objdump", so it can be a program name with args.
11469set dummy objdump; ac_word=$2
11470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11471$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011472if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011473 $as_echo_n "(cached) " >&6
11474else
11475 if test -n "$ac_ct_OBJDUMP"; then
11476 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11477else
11478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11479for as_dir in $PATH
11480do
11481 IFS=$as_save_IFS
11482 test -z "$as_dir" && as_dir=.
11483 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011485 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11487 break 2
11488 fi
11489done
11490 done
11491IFS=$as_save_IFS
11492
11493fi
11494fi
11495ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11496if test -n "$ac_ct_OBJDUMP"; then
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11498$as_echo "$ac_ct_OBJDUMP" >&6; }
11499else
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11501$as_echo "no" >&6; }
11502fi
11503
11504 if test "x$ac_ct_OBJDUMP" = x; then
11505 OBJDUMP="false"
11506 else
11507 case $cross_compiling:$ac_tool_warned in
11508yes:)
11509{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11510$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11511ac_tool_warned=yes ;;
11512esac
11513 OBJDUMP=$ac_ct_OBJDUMP
11514 fi
11515else
11516 OBJDUMP="$ac_cv_prog_OBJDUMP"
11517fi
11518
11519test -z "$OBJDUMP" && OBJDUMP=objdump
11520
11521
11522
11523
11524
11525
11526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11527$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011528if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011529 $as_echo_n "(cached) " >&6
11530else
11531 lt_cv_file_magic_cmd='$MAGIC_CMD'
11532lt_cv_file_magic_test_file=
11533lt_cv_deplibs_check_method='unknown'
11534# Need to set the preceding variable on all platforms that support
11535# interlibrary dependencies.
11536# 'none' -- dependencies not supported.
11537# `unknown' -- same as none, but documents that we really don't know.
11538# 'pass_all' -- all dependencies passed with no checks.
11539# 'test_compile' -- check by making test program.
11540# 'file_magic [[regex]]' -- check by looking for files in library path
11541# which responds to the $file_magic_cmd with a given extended regex.
11542# If you have `file' or equivalent on your system and you're not sure
11543# whether `pass_all' will *always* work, you probably want this one.
11544
11545case $host_os in
11546aix[4-9]*)
11547 lt_cv_deplibs_check_method=pass_all
11548 ;;
11549
11550beos*)
11551 lt_cv_deplibs_check_method=pass_all
11552 ;;
11553
11554bsdi[45]*)
11555 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11556 lt_cv_file_magic_cmd='/usr/bin/file -L'
11557 lt_cv_file_magic_test_file=/shlib/libc.so
11558 ;;
11559
11560cygwin*)
11561 # func_win32_libid is a shell function defined in ltmain.sh
11562 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11563 lt_cv_file_magic_cmd='func_win32_libid'
11564 ;;
11565
11566mingw* | pw32*)
11567 # Base MSYS/MinGW do not provide the 'file' command needed by
11568 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11569 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000011570 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11571 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000011572 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11573 lt_cv_file_magic_cmd='func_win32_libid'
11574 else
cristy0c60a692010-11-04 01:09:47 +000011575 # Keep this pattern in sync with the one in func_win32_libid.
11576 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 +000011577 lt_cv_file_magic_cmd='$OBJDUMP -f'
11578 fi
11579 ;;
11580
cristy0c60a692010-11-04 01:09:47 +000011581cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000011582 # use the weaker test based on 'objdump'. See mingw*.
11583 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11584 lt_cv_file_magic_cmd='$OBJDUMP -f'
11585 ;;
11586
11587darwin* | rhapsody*)
11588 lt_cv_deplibs_check_method=pass_all
11589 ;;
11590
11591freebsd* | dragonfly*)
11592 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11593 case $host_cpu in
11594 i*86 )
11595 # Not sure whether the presence of OpenBSD here was a mistake.
11596 # Let's accept both of them until this is cleared up.
11597 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11598 lt_cv_file_magic_cmd=/usr/bin/file
11599 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11600 ;;
11601 esac
11602 else
11603 lt_cv_deplibs_check_method=pass_all
11604 fi
11605 ;;
11606
11607gnu*)
11608 lt_cv_deplibs_check_method=pass_all
11609 ;;
11610
cristy0c60a692010-11-04 01:09:47 +000011611haiku*)
11612 lt_cv_deplibs_check_method=pass_all
11613 ;;
11614
cristy73bd4a52010-10-05 11:24:23 +000011615hpux10.20* | hpux11*)
11616 lt_cv_file_magic_cmd=/usr/bin/file
11617 case $host_cpu in
11618 ia64*)
11619 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11620 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11621 ;;
11622 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000011623 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 +000011624 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11625 ;;
11626 *)
cristy0c60a692010-11-04 01:09:47 +000011627 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 +000011628 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11629 ;;
11630 esac
11631 ;;
11632
11633interix[3-9]*)
11634 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11635 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11636 ;;
11637
11638irix5* | irix6* | nonstopux*)
11639 case $LD in
11640 *-32|*"-32 ") libmagic=32-bit;;
11641 *-n32|*"-n32 ") libmagic=N32;;
11642 *-64|*"-64 ") libmagic=64-bit;;
11643 *) libmagic=never-match;;
11644 esac
11645 lt_cv_deplibs_check_method=pass_all
11646 ;;
11647
cristy99bd5232011-12-07 14:38:20 +000011648# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000011649linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000011650 lt_cv_deplibs_check_method=pass_all
11651 ;;
11652
11653netbsd*)
11654 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11655 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11656 else
11657 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11658 fi
11659 ;;
11660
11661newos6*)
11662 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11663 lt_cv_file_magic_cmd=/usr/bin/file
11664 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11665 ;;
11666
11667*nto* | *qnx*)
11668 lt_cv_deplibs_check_method=pass_all
11669 ;;
11670
11671openbsd*)
11672 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11673 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11674 else
11675 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11676 fi
11677 ;;
11678
11679osf3* | osf4* | osf5*)
11680 lt_cv_deplibs_check_method=pass_all
11681 ;;
11682
11683rdos*)
11684 lt_cv_deplibs_check_method=pass_all
11685 ;;
11686
11687solaris*)
11688 lt_cv_deplibs_check_method=pass_all
11689 ;;
11690
11691sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11692 lt_cv_deplibs_check_method=pass_all
11693 ;;
11694
11695sysv4 | sysv4.3*)
11696 case $host_vendor in
11697 motorola)
11698 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]'
11699 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11700 ;;
11701 ncr)
11702 lt_cv_deplibs_check_method=pass_all
11703 ;;
11704 sequent)
11705 lt_cv_file_magic_cmd='/bin/file'
11706 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11707 ;;
11708 sni)
11709 lt_cv_file_magic_cmd='/bin/file'
11710 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11711 lt_cv_file_magic_test_file=/lib/libc.so
11712 ;;
11713 siemens)
11714 lt_cv_deplibs_check_method=pass_all
11715 ;;
11716 pc)
11717 lt_cv_deplibs_check_method=pass_all
11718 ;;
11719 esac
11720 ;;
11721
11722tpf*)
11723 lt_cv_deplibs_check_method=pass_all
11724 ;;
11725esac
11726
11727fi
11728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11729$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000011730
11731file_magic_glob=
11732want_nocaseglob=no
11733if test "$build" = "$host"; then
11734 case $host_os in
11735 mingw* | pw32*)
11736 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11737 want_nocaseglob=yes
11738 else
11739 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11740 fi
11741 ;;
11742 esac
11743fi
11744
cristy73bd4a52010-10-05 11:24:23 +000011745file_magic_cmd=$lt_cv_file_magic_cmd
11746deplibs_check_method=$lt_cv_deplibs_check_method
11747test -z "$deplibs_check_method" && deplibs_check_method=unknown
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
cristyda16f162011-02-19 23:52:17 +000011760
11761
11762
11763
11764
11765
11766
11767
11768
11769
cristy73bd4a52010-10-05 11:24:23 +000011770if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000011771 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11772set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11774$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011775if ${ac_cv_prog_DLLTOOL+:} false; then :
11776 $as_echo_n "(cached) " >&6
11777else
11778 if test -n "$DLLTOOL"; then
11779 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11780else
11781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11782for as_dir in $PATH
11783do
11784 IFS=$as_save_IFS
11785 test -z "$as_dir" && as_dir=.
11786 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011788 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11790 break 2
11791 fi
11792done
11793 done
11794IFS=$as_save_IFS
11795
11796fi
11797fi
11798DLLTOOL=$ac_cv_prog_DLLTOOL
11799if test -n "$DLLTOOL"; then
11800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11801$as_echo "$DLLTOOL" >&6; }
11802else
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11804$as_echo "no" >&6; }
11805fi
11806
11807
11808fi
11809if test -z "$ac_cv_prog_DLLTOOL"; then
11810 ac_ct_DLLTOOL=$DLLTOOL
11811 # Extract the first word of "dlltool", so it can be a program name with args.
11812set dummy dlltool; ac_word=$2
11813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11814$as_echo_n "checking for $ac_word... " >&6; }
11815if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11816 $as_echo_n "(cached) " >&6
11817else
11818 if test -n "$ac_ct_DLLTOOL"; then
11819 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11820else
11821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11822for as_dir in $PATH
11823do
11824 IFS=$as_save_IFS
11825 test -z "$as_dir" && as_dir=.
11826 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011828 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11830 break 2
11831 fi
11832done
11833 done
11834IFS=$as_save_IFS
11835
11836fi
11837fi
11838ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11839if test -n "$ac_ct_DLLTOOL"; then
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11841$as_echo "$ac_ct_DLLTOOL" >&6; }
11842else
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11844$as_echo "no" >&6; }
11845fi
11846
11847 if test "x$ac_ct_DLLTOOL" = x; then
11848 DLLTOOL="false"
11849 else
11850 case $cross_compiling:$ac_tool_warned in
11851yes:)
11852{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11853$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11854ac_tool_warned=yes ;;
11855esac
11856 DLLTOOL=$ac_ct_DLLTOOL
11857 fi
11858else
11859 DLLTOOL="$ac_cv_prog_DLLTOOL"
11860fi
11861
11862test -z "$DLLTOOL" && DLLTOOL=dlltool
11863
11864
11865
11866
11867
11868
11869
11870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
11871$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
11872if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
11873 $as_echo_n "(cached) " >&6
11874else
11875 lt_cv_sharedlib_from_linklib_cmd='unknown'
11876
11877case $host_os in
11878cygwin* | mingw* | pw32* | cegcc*)
11879 # two different shell functions defined in ltmain.sh
11880 # decide which to use based on capabilities of $DLLTOOL
11881 case `$DLLTOOL --help 2>&1` in
11882 *--identify-strict*)
11883 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
11884 ;;
11885 *)
11886 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
11887 ;;
11888 esac
11889 ;;
11890*)
11891 # fallback: assume linklib IS sharedlib
11892 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
11893 ;;
11894esac
11895
11896fi
11897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
11898$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
11899sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
11900test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
11901
11902
11903
11904
11905
11906
11907
11908if test -n "$ac_tool_prefix"; then
11909 for ac_prog in ar
11910 do
11911 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11912set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11914$as_echo_n "checking for $ac_word... " >&6; }
11915if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011916 $as_echo_n "(cached) " >&6
11917else
11918 if test -n "$AR"; then
11919 ac_cv_prog_AR="$AR" # Let the user override the test.
11920else
11921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11922for as_dir in $PATH
11923do
11924 IFS=$as_save_IFS
11925 test -z "$as_dir" && as_dir=.
11926 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011928 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11930 break 2
11931 fi
11932done
11933 done
11934IFS=$as_save_IFS
11935
11936fi
11937fi
11938AR=$ac_cv_prog_AR
11939if test -n "$AR"; then
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11941$as_echo "$AR" >&6; }
11942else
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11944$as_echo "no" >&6; }
11945fi
11946
11947
cristyda16f162011-02-19 23:52:17 +000011948 test -n "$AR" && break
11949 done
cristy73bd4a52010-10-05 11:24:23 +000011950fi
cristyda16f162011-02-19 23:52:17 +000011951if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000011952 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000011953 for ac_prog in ar
11954do
11955 # Extract the first word of "$ac_prog", so it can be a program name with args.
11956set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11958$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011959if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011960 $as_echo_n "(cached) " >&6
11961else
11962 if test -n "$ac_ct_AR"; then
11963 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11964else
11965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11966for as_dir in $PATH
11967do
11968 IFS=$as_save_IFS
11969 test -z "$as_dir" && as_dir=.
11970 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011972 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11974 break 2
11975 fi
11976done
11977 done
11978IFS=$as_save_IFS
11979
11980fi
11981fi
11982ac_ct_AR=$ac_cv_prog_ac_ct_AR
11983if test -n "$ac_ct_AR"; then
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11985$as_echo "$ac_ct_AR" >&6; }
11986else
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11988$as_echo "no" >&6; }
11989fi
11990
cristyda16f162011-02-19 23:52:17 +000011991
11992 test -n "$ac_ct_AR" && break
11993done
11994
cristy73bd4a52010-10-05 11:24:23 +000011995 if test "x$ac_ct_AR" = x; then
11996 AR="false"
11997 else
11998 case $cross_compiling:$ac_tool_warned in
11999yes:)
12000{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12001$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12002ac_tool_warned=yes ;;
12003esac
12004 AR=$ac_ct_AR
12005 fi
cristy73bd4a52010-10-05 11:24:23 +000012006fi
12007
cristyda16f162011-02-19 23:52:17 +000012008: ${AR=ar}
12009: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000012010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
cristyda16f162011-02-19 23:52:17 +000012021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12022$as_echo_n "checking for archiver @FILE support... " >&6; }
12023if ${lt_cv_ar_at_file+:} false; then :
12024 $as_echo_n "(cached) " >&6
12025else
12026 lt_cv_ar_at_file=no
12027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12028/* end confdefs.h. */
12029
12030int
12031main ()
12032{
12033
12034 ;
12035 return 0;
12036}
12037_ACEOF
12038if ac_fn_c_try_compile "$LINENO"; then :
12039 echo conftest.$ac_objext > conftest.lst
12040 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12041 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12042 (eval $lt_ar_try) 2>&5
12043 ac_status=$?
12044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12045 test $ac_status = 0; }
12046 if test "$ac_status" -eq 0; then
12047 # Ensure the archiver fails upon bogus file names.
12048 rm -f conftest.$ac_objext libconftest.a
12049 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12050 (eval $lt_ar_try) 2>&5
12051 ac_status=$?
12052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12053 test $ac_status = 0; }
12054 if test "$ac_status" -ne 0; then
12055 lt_cv_ar_at_file=@
12056 fi
12057 fi
12058 rm -f conftest.* libconftest.a
12059
12060fi
12061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12062
12063fi
12064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12065$as_echo "$lt_cv_ar_at_file" >&6; }
12066
12067if test "x$lt_cv_ar_at_file" = xno; then
12068 archiver_list_spec=
12069else
12070 archiver_list_spec=$lt_cv_ar_at_file
12071fi
12072
12073
12074
12075
12076
12077
12078
cristy73bd4a52010-10-05 11:24:23 +000012079if test -n "$ac_tool_prefix"; then
12080 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12081set dummy ${ac_tool_prefix}strip; ac_word=$2
12082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12083$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012084if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012085 $as_echo_n "(cached) " >&6
12086else
12087 if test -n "$STRIP"; then
12088 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12089else
12090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12091for as_dir in $PATH
12092do
12093 IFS=$as_save_IFS
12094 test -z "$as_dir" && as_dir=.
12095 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012097 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12099 break 2
12100 fi
12101done
12102 done
12103IFS=$as_save_IFS
12104
12105fi
12106fi
12107STRIP=$ac_cv_prog_STRIP
12108if test -n "$STRIP"; then
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12110$as_echo "$STRIP" >&6; }
12111else
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12113$as_echo "no" >&6; }
12114fi
12115
12116
12117fi
12118if test -z "$ac_cv_prog_STRIP"; then
12119 ac_ct_STRIP=$STRIP
12120 # Extract the first word of "strip", so it can be a program name with args.
12121set dummy strip; ac_word=$2
12122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12123$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012124if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012125 $as_echo_n "(cached) " >&6
12126else
12127 if test -n "$ac_ct_STRIP"; then
12128 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12129else
12130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12131for as_dir in $PATH
12132do
12133 IFS=$as_save_IFS
12134 test -z "$as_dir" && as_dir=.
12135 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012137 ac_cv_prog_ac_ct_STRIP="strip"
12138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12139 break 2
12140 fi
12141done
12142 done
12143IFS=$as_save_IFS
12144
12145fi
12146fi
12147ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12148if test -n "$ac_ct_STRIP"; then
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12150$as_echo "$ac_ct_STRIP" >&6; }
12151else
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12153$as_echo "no" >&6; }
12154fi
12155
12156 if test "x$ac_ct_STRIP" = x; then
12157 STRIP=":"
12158 else
12159 case $cross_compiling:$ac_tool_warned in
12160yes:)
12161{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12162$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12163ac_tool_warned=yes ;;
12164esac
12165 STRIP=$ac_ct_STRIP
12166 fi
12167else
12168 STRIP="$ac_cv_prog_STRIP"
12169fi
12170
12171test -z "$STRIP" && STRIP=:
12172
12173
12174
12175
12176
12177
12178if test -n "$ac_tool_prefix"; then
12179 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12180set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12182$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012183if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012184 $as_echo_n "(cached) " >&6
12185else
12186 if test -n "$RANLIB"; then
12187 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12188else
12189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12190for as_dir in $PATH
12191do
12192 IFS=$as_save_IFS
12193 test -z "$as_dir" && as_dir=.
12194 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012196 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12198 break 2
12199 fi
12200done
12201 done
12202IFS=$as_save_IFS
12203
12204fi
12205fi
12206RANLIB=$ac_cv_prog_RANLIB
12207if test -n "$RANLIB"; then
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12209$as_echo "$RANLIB" >&6; }
12210else
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12212$as_echo "no" >&6; }
12213fi
12214
12215
12216fi
12217if test -z "$ac_cv_prog_RANLIB"; then
12218 ac_ct_RANLIB=$RANLIB
12219 # Extract the first word of "ranlib", so it can be a program name with args.
12220set dummy ranlib; ac_word=$2
12221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12222$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012223if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012224 $as_echo_n "(cached) " >&6
12225else
12226 if test -n "$ac_ct_RANLIB"; then
12227 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12228else
12229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12230for as_dir in $PATH
12231do
12232 IFS=$as_save_IFS
12233 test -z "$as_dir" && as_dir=.
12234 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012236 ac_cv_prog_ac_ct_RANLIB="ranlib"
12237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12238 break 2
12239 fi
12240done
12241 done
12242IFS=$as_save_IFS
12243
12244fi
12245fi
12246ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12247if test -n "$ac_ct_RANLIB"; then
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12249$as_echo "$ac_ct_RANLIB" >&6; }
12250else
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12252$as_echo "no" >&6; }
12253fi
12254
12255 if test "x$ac_ct_RANLIB" = x; then
12256 RANLIB=":"
12257 else
12258 case $cross_compiling:$ac_tool_warned in
12259yes:)
12260{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12261$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12262ac_tool_warned=yes ;;
12263esac
12264 RANLIB=$ac_ct_RANLIB
12265 fi
12266else
12267 RANLIB="$ac_cv_prog_RANLIB"
12268fi
12269
12270test -z "$RANLIB" && RANLIB=:
12271
12272
12273
12274
12275
12276
12277# Determine commands to create old-style static archives.
12278old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12279old_postinstall_cmds='chmod 644 $oldlib'
12280old_postuninstall_cmds=
12281
12282if test -n "$RANLIB"; then
12283 case $host_os in
12284 openbsd*)
cristy99bd5232011-12-07 14:38:20 +000012285 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012286 ;;
12287 *)
cristy99bd5232011-12-07 14:38:20 +000012288 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012289 ;;
12290 esac
cristy99bd5232011-12-07 14:38:20 +000012291 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012292fi
12293
cristy0c60a692010-11-04 01:09:47 +000012294case $host_os in
12295 darwin*)
12296 lock_old_archive_extraction=yes ;;
12297 *)
12298 lock_old_archive_extraction=no ;;
12299esac
12300
12301
12302
12303
12304
12305
cristy73bd4a52010-10-05 11:24:23 +000012306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339# If no C compiler was specified, use CC.
12340LTCC=${LTCC-"$CC"}
12341
12342# If no C compiler flags were specified, use CFLAGS.
12343LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12344
12345# Allow CC to be a program name with arguments.
12346compiler=$CC
12347
12348
12349# Check for command to grab the raw symbol name followed by C symbol from nm.
12350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12351$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012352if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012353 $as_echo_n "(cached) " >&6
12354else
12355
12356# These are sane defaults that work on at least a few old systems.
12357# [They come from Ultrix. What could be older than Ultrix?!! ;)]
12358
12359# Character class describing NM global symbol codes.
12360symcode='[BCDEGRST]'
12361
12362# Regexp to match symbols that can be accessed directly from C.
12363sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12364
12365# Define system-specific variables.
12366case $host_os in
12367aix*)
12368 symcode='[BCDT]'
12369 ;;
12370cygwin* | mingw* | pw32* | cegcc*)
12371 symcode='[ABCDGISTW]'
12372 ;;
12373hpux*)
12374 if test "$host_cpu" = ia64; then
12375 symcode='[ABCDEGRST]'
12376 fi
12377 ;;
12378irix* | nonstopux*)
12379 symcode='[BCDEGRST]'
12380 ;;
12381osf*)
12382 symcode='[BCDEGQRST]'
12383 ;;
12384solaris*)
12385 symcode='[BDRT]'
12386 ;;
12387sco3.2v5*)
12388 symcode='[DT]'
12389 ;;
12390sysv4.2uw2*)
12391 symcode='[DT]'
12392 ;;
12393sysv5* | sco5v6* | unixware* | OpenUNIX*)
12394 symcode='[ABDT]'
12395 ;;
12396sysv4)
12397 symcode='[DFNSTU]'
12398 ;;
12399esac
12400
12401# If we're using GNU nm, then use its standard symbol codes.
12402case `$NM -V 2>&1` in
12403*GNU* | *'with BFD'*)
12404 symcode='[ABCDGIRSTW]' ;;
12405esac
12406
12407# Transform an extracted symbol line into a proper C declaration.
12408# Some systems (esp. on ia64) link data and code symbols differently,
12409# so use this general approach.
12410lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12411
12412# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000012413lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12414lt_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 +000012415
12416# Handle CRLF in mingw tool chain
12417opt_cr=
12418case $build_os in
12419mingw*)
12420 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12421 ;;
12422esac
12423
12424# Try without a prefix underscore, then with it.
12425for ac_symprfx in "" "_"; do
12426
12427 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12428 symxfrm="\\1 $ac_symprfx\\2 \\2"
12429
12430 # Write the raw and C identifiers.
12431 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12432 # Fake it for dumpbin and say T for any non-static function
12433 # and D for any global variable.
12434 # Also find C++ and __fastcall symbols from MSVC++,
12435 # which start with @ or ?.
12436 lt_cv_sys_global_symbol_pipe="$AWK '"\
12437" {last_section=section; section=\$ 3};"\
cristy99bd5232011-12-07 14:38:20 +000012438" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
cristy73bd4a52010-10-05 11:24:23 +000012439" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12440" \$ 0!~/External *\|/{next};"\
12441" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12442" {if(hide[section]) next};"\
12443" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12444" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12445" s[1]~/^[@?]/{print s[1], s[1]; next};"\
12446" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12447" ' prfx=^$ac_symprfx"
12448 else
12449 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12450 fi
cristyda16f162011-02-19 23:52:17 +000012451 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000012452
12453 # Check to see that the pipe works correctly.
12454 pipe_works=no
12455
12456 rm -f conftest*
12457 cat > conftest.$ac_ext <<_LT_EOF
12458#ifdef __cplusplus
12459extern "C" {
12460#endif
12461char nm_test_var;
12462void nm_test_func(void);
12463void nm_test_func(void){}
12464#ifdef __cplusplus
12465}
12466#endif
12467int main(){nm_test_var='a';nm_test_func();return(0);}
12468_LT_EOF
12469
12470 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12471 (eval $ac_compile) 2>&5
12472 ac_status=$?
12473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12474 test $ac_status = 0; }; then
12475 # Now try to grab the symbols.
12476 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000012477 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12478 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000012479 ac_status=$?
12480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12481 test $ac_status = 0; } && test -s "$nlist"; then
12482 # Try sorting and uniquifying the output.
12483 if sort "$nlist" | uniq > "$nlist"T; then
12484 mv -f "$nlist"T "$nlist"
12485 else
12486 rm -f "$nlist"T
12487 fi
12488
12489 # Make sure that we snagged all the symbols we need.
12490 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12491 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12492 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000012493/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12494#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12495/* DATA imports from DLLs on WIN32 con't be const, because runtime
12496 relocations are performed -- see ld's documentation on pseudo-relocs. */
12497# define LT_DLSYM_CONST
12498#elif defined(__osf__)
12499/* This system does not cope well with relocations in const data. */
12500# define LT_DLSYM_CONST
12501#else
12502# define LT_DLSYM_CONST const
12503#endif
12504
cristy73bd4a52010-10-05 11:24:23 +000012505#ifdef __cplusplus
12506extern "C" {
12507#endif
12508
12509_LT_EOF
12510 # Now generate the symbol file.
12511 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12512
12513 cat <<_LT_EOF >> conftest.$ac_ext
12514
12515/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000012516LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000012517 const char *name;
12518 void *address;
12519}
12520lt__PROGRAM__LTX_preloaded_symbols[] =
12521{
12522 { "@PROGRAM@", (void *) 0 },
12523_LT_EOF
12524 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12525 cat <<\_LT_EOF >> conftest.$ac_ext
12526 {0, (void *) 0}
12527};
12528
12529/* This works around a problem in FreeBSD linker */
12530#ifdef FREEBSD_WORKAROUND
12531static const void *lt_preloaded_setup() {
12532 return lt__PROGRAM__LTX_preloaded_symbols;
12533}
12534#endif
12535
12536#ifdef __cplusplus
12537}
12538#endif
12539_LT_EOF
12540 # Now try linking the two files.
12541 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000012542 lt_globsym_save_LIBS=$LIBS
12543 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012544 LIBS="conftstm.$ac_objext"
12545 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12546 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12547 (eval $ac_link) 2>&5
12548 ac_status=$?
12549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12550 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12551 pipe_works=yes
12552 fi
cristyda16f162011-02-19 23:52:17 +000012553 LIBS=$lt_globsym_save_LIBS
12554 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012555 else
12556 echo "cannot find nm_test_func in $nlist" >&5
12557 fi
12558 else
12559 echo "cannot find nm_test_var in $nlist" >&5
12560 fi
12561 else
12562 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12563 fi
12564 else
12565 echo "$progname: failed program was:" >&5
12566 cat conftest.$ac_ext >&5
12567 fi
12568 rm -rf conftest* conftst*
12569
12570 # Do not use the global_symbol_pipe unless it works.
12571 if test "$pipe_works" = yes; then
12572 break
12573 else
12574 lt_cv_sys_global_symbol_pipe=
12575 fi
12576done
12577
12578fi
12579
12580if test -z "$lt_cv_sys_global_symbol_pipe"; then
12581 lt_cv_sys_global_symbol_to_cdecl=
12582fi
12583if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12585$as_echo "failed" >&6; }
12586else
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12588$as_echo "ok" >&6; }
12589fi
12590
cristyda16f162011-02-19 23:52:17 +000012591# Response file support.
12592if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12593 nm_file_list_spec='@'
12594elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12595 nm_file_list_spec='@'
12596fi
cristy73bd4a52010-10-05 11:24:23 +000012597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
cristyda16f162011-02-19 23:52:17 +000012618
12619
12620
12621
12622
12623
12624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12625$as_echo_n "checking for sysroot... " >&6; }
12626
12627# Check whether --with-sysroot was given.
12628if test "${with_sysroot+set}" = set; then :
12629 withval=$with_sysroot;
12630else
12631 with_sysroot=no
12632fi
12633
12634
12635lt_sysroot=
12636case ${with_sysroot} in #(
12637 yes)
12638 if test "$GCC" = yes; then
12639 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12640 fi
12641 ;; #(
12642 /*)
12643 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12644 ;; #(
12645 no|'')
12646 ;; #(
12647 *)
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12649$as_echo "${with_sysroot}" >&6; }
12650 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12651 ;;
12652esac
12653
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12655$as_echo "${lt_sysroot:-no}" >&6; }
12656
12657
12658
12659
12660
cristy73bd4a52010-10-05 11:24:23 +000012661# Check whether --enable-libtool-lock was given.
12662if test "${enable_libtool_lock+set}" = set; then :
12663 enableval=$enable_libtool_lock;
12664fi
12665
12666test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12667
12668# Some flags need to be propagated to the compiler or linker for good
12669# libtool support.
12670case $host in
12671ia64-*-hpux*)
12672 # Find out which ABI we are using.
12673 echo 'int i;' > conftest.$ac_ext
12674 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12675 (eval $ac_compile) 2>&5
12676 ac_status=$?
12677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12678 test $ac_status = 0; }; then
12679 case `/usr/bin/file conftest.$ac_objext` in
12680 *ELF-32*)
12681 HPUX_IA64_MODE="32"
12682 ;;
12683 *ELF-64*)
12684 HPUX_IA64_MODE="64"
12685 ;;
12686 esac
12687 fi
12688 rm -rf conftest*
12689 ;;
12690*-*-irix6*)
12691 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000012692 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000012693 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12694 (eval $ac_compile) 2>&5
12695 ac_status=$?
12696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12697 test $ac_status = 0; }; then
12698 if test "$lt_cv_prog_gnu_ld" = yes; then
12699 case `/usr/bin/file conftest.$ac_objext` in
12700 *32-bit*)
12701 LD="${LD-ld} -melf32bsmip"
12702 ;;
12703 *N32*)
12704 LD="${LD-ld} -melf32bmipn32"
12705 ;;
12706 *64-bit*)
12707 LD="${LD-ld} -melf64bmip"
12708 ;;
12709 esac
12710 else
12711 case `/usr/bin/file conftest.$ac_objext` in
12712 *32-bit*)
12713 LD="${LD-ld} -32"
12714 ;;
12715 *N32*)
12716 LD="${LD-ld} -n32"
12717 ;;
12718 *64-bit*)
12719 LD="${LD-ld} -64"
12720 ;;
12721 esac
12722 fi
12723 fi
12724 rm -rf conftest*
12725 ;;
12726
cristyd95b7a52013-10-23 13:12:53 +000012727x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
cristy73bd4a52010-10-05 11:24:23 +000012728s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12729 # Find out which ABI we are using.
12730 echo 'int i;' > conftest.$ac_ext
12731 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12732 (eval $ac_compile) 2>&5
12733 ac_status=$?
12734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12735 test $ac_status = 0; }; then
12736 case `/usr/bin/file conftest.o` in
12737 *32-bit*)
12738 case $host in
12739 x86_64-*kfreebsd*-gnu)
12740 LD="${LD-ld} -m elf_i386_fbsd"
12741 ;;
12742 x86_64-*linux*)
12743 LD="${LD-ld} -m elf_i386"
12744 ;;
cristya5bda012013-11-03 18:05:38 +000012745 powerpc64le-*linux*)
cristyd95b7a52013-10-23 13:12:53 +000012746 LD="${LD-ld} -m elf32lppclinux"
12747 ;;
cristya5bda012013-11-03 18:05:38 +000012748 powerpc64-*linux*)
cristy73bd4a52010-10-05 11:24:23 +000012749 LD="${LD-ld} -m elf32ppclinux"
12750 ;;
12751 s390x-*linux*)
12752 LD="${LD-ld} -m elf_s390"
12753 ;;
12754 sparc64-*linux*)
12755 LD="${LD-ld} -m elf32_sparc"
12756 ;;
12757 esac
12758 ;;
12759 *64-bit*)
12760 case $host in
12761 x86_64-*kfreebsd*-gnu)
12762 LD="${LD-ld} -m elf_x86_64_fbsd"
12763 ;;
12764 x86_64-*linux*)
12765 LD="${LD-ld} -m elf_x86_64"
12766 ;;
cristyd95b7a52013-10-23 13:12:53 +000012767 powerpcle-*linux*)
12768 LD="${LD-ld} -m elf64lppc"
12769 ;;
12770 powerpc-*linux*)
cristy73bd4a52010-10-05 11:24:23 +000012771 LD="${LD-ld} -m elf64ppc"
12772 ;;
12773 s390*-*linux*|s390*-*tpf*)
12774 LD="${LD-ld} -m elf64_s390"
12775 ;;
12776 sparc*-*linux*)
12777 LD="${LD-ld} -m elf64_sparc"
12778 ;;
12779 esac
12780 ;;
12781 esac
12782 fi
12783 rm -rf conftest*
12784 ;;
12785
12786*-*-sco3.2v5*)
12787 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12788 SAVE_CFLAGS="$CFLAGS"
12789 CFLAGS="$CFLAGS -belf"
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12791$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012792if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012793 $as_echo_n "(cached) " >&6
12794else
12795 ac_ext=c
12796ac_cpp='$CPP $CPPFLAGS'
12797ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12798ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12799ac_compiler_gnu=$ac_cv_c_compiler_gnu
12800
12801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12802/* end confdefs.h. */
12803
12804int
12805main ()
12806{
12807
12808 ;
12809 return 0;
12810}
12811_ACEOF
12812if ac_fn_c_try_link "$LINENO"; then :
12813 lt_cv_cc_needs_belf=yes
12814else
12815 lt_cv_cc_needs_belf=no
12816fi
12817rm -f core conftest.err conftest.$ac_objext \
12818 conftest$ac_exeext conftest.$ac_ext
12819 ac_ext=c
12820ac_cpp='$CPP $CPPFLAGS'
12821ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12822ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12823ac_compiler_gnu=$ac_cv_c_compiler_gnu
12824
12825fi
12826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12827$as_echo "$lt_cv_cc_needs_belf" >&6; }
12828 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12829 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12830 CFLAGS="$SAVE_CFLAGS"
12831 fi
12832 ;;
cristy99bd5232011-12-07 14:38:20 +000012833*-*solaris*)
cristy73bd4a52010-10-05 11:24:23 +000012834 # Find out which ABI we are using.
12835 echo 'int i;' > conftest.$ac_ext
12836 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12837 (eval $ac_compile) 2>&5
12838 ac_status=$?
12839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12840 test $ac_status = 0; }; then
12841 case `/usr/bin/file conftest.o` in
12842 *64-bit*)
12843 case $lt_cv_prog_gnu_ld in
cristy99bd5232011-12-07 14:38:20 +000012844 yes*)
12845 case $host in
12846 i?86-*-solaris*)
12847 LD="${LD-ld} -m elf_x86_64"
12848 ;;
12849 sparc*-*-solaris*)
12850 LD="${LD-ld} -m elf64_sparc"
12851 ;;
12852 esac
12853 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
12854 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12855 LD="${LD-ld}_sol2"
12856 fi
12857 ;;
cristy73bd4a52010-10-05 11:24:23 +000012858 *)
12859 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12860 LD="${LD-ld} -64"
12861 fi
12862 ;;
12863 esac
12864 ;;
12865 esac
12866 fi
12867 rm -rf conftest*
12868 ;;
12869esac
12870
12871need_locks="$enable_libtool_lock"
12872
cristyda16f162011-02-19 23:52:17 +000012873if test -n "$ac_tool_prefix"; then
12874 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
12875set dummy ${ac_tool_prefix}mt; ac_word=$2
12876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12877$as_echo_n "checking for $ac_word... " >&6; }
12878if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
12879 $as_echo_n "(cached) " >&6
12880else
12881 if test -n "$MANIFEST_TOOL"; then
12882 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
12883else
12884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12885for as_dir in $PATH
12886do
12887 IFS=$as_save_IFS
12888 test -z "$as_dir" && as_dir=.
12889 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012891 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
12892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12893 break 2
12894 fi
12895done
12896 done
12897IFS=$as_save_IFS
12898
12899fi
12900fi
12901MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
12902if test -n "$MANIFEST_TOOL"; then
12903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
12904$as_echo "$MANIFEST_TOOL" >&6; }
12905else
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12907$as_echo "no" >&6; }
12908fi
12909
12910
12911fi
12912if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
12913 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
12914 # Extract the first word of "mt", so it can be a program name with args.
12915set dummy mt; ac_word=$2
12916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12917$as_echo_n "checking for $ac_word... " >&6; }
12918if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
12919 $as_echo_n "(cached) " >&6
12920else
12921 if test -n "$ac_ct_MANIFEST_TOOL"; then
12922 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
12923else
12924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12925for as_dir in $PATH
12926do
12927 IFS=$as_save_IFS
12928 test -z "$as_dir" && as_dir=.
12929 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012931 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
12932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12933 break 2
12934 fi
12935done
12936 done
12937IFS=$as_save_IFS
12938
12939fi
12940fi
12941ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
12942if test -n "$ac_ct_MANIFEST_TOOL"; then
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
12944$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
12945else
12946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12947$as_echo "no" >&6; }
12948fi
12949
12950 if test "x$ac_ct_MANIFEST_TOOL" = x; then
12951 MANIFEST_TOOL=":"
12952 else
12953 case $cross_compiling:$ac_tool_warned in
12954yes:)
12955{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12956$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12957ac_tool_warned=yes ;;
12958esac
12959 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
12960 fi
12961else
12962 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
12963fi
12964
12965test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
12966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
12967$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
12968if ${lt_cv_path_mainfest_tool+:} false; then :
12969 $as_echo_n "(cached) " >&6
12970else
12971 lt_cv_path_mainfest_tool=no
12972 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
12973 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
12974 cat conftest.err >&5
12975 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
12976 lt_cv_path_mainfest_tool=yes
12977 fi
12978 rm -f conftest*
12979fi
12980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
12981$as_echo "$lt_cv_path_mainfest_tool" >&6; }
12982if test "x$lt_cv_path_mainfest_tool" != xyes; then
12983 MANIFEST_TOOL=:
12984fi
12985
12986
12987
12988
12989
cristy73bd4a52010-10-05 11:24:23 +000012990
12991 case $host_os in
12992 rhapsody* | darwin*)
12993 if test -n "$ac_tool_prefix"; then
12994 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
12995set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
12996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12997$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012998if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012999 $as_echo_n "(cached) " >&6
13000else
13001 if test -n "$DSYMUTIL"; then
13002 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13003else
13004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13005for as_dir in $PATH
13006do
13007 IFS=$as_save_IFS
13008 test -z "$as_dir" && as_dir=.
13009 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013011 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13013 break 2
13014 fi
13015done
13016 done
13017IFS=$as_save_IFS
13018
13019fi
13020fi
13021DSYMUTIL=$ac_cv_prog_DSYMUTIL
13022if test -n "$DSYMUTIL"; then
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13024$as_echo "$DSYMUTIL" >&6; }
13025else
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13027$as_echo "no" >&6; }
13028fi
13029
13030
13031fi
13032if test -z "$ac_cv_prog_DSYMUTIL"; then
13033 ac_ct_DSYMUTIL=$DSYMUTIL
13034 # Extract the first word of "dsymutil", so it can be a program name with args.
13035set dummy dsymutil; ac_word=$2
13036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13037$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013038if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013039 $as_echo_n "(cached) " >&6
13040else
13041 if test -n "$ac_ct_DSYMUTIL"; then
13042 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13043else
13044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13045for as_dir in $PATH
13046do
13047 IFS=$as_save_IFS
13048 test -z "$as_dir" && as_dir=.
13049 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013051 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13053 break 2
13054 fi
13055done
13056 done
13057IFS=$as_save_IFS
13058
13059fi
13060fi
13061ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13062if test -n "$ac_ct_DSYMUTIL"; then
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13064$as_echo "$ac_ct_DSYMUTIL" >&6; }
13065else
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13067$as_echo "no" >&6; }
13068fi
13069
13070 if test "x$ac_ct_DSYMUTIL" = x; then
13071 DSYMUTIL=":"
13072 else
13073 case $cross_compiling:$ac_tool_warned in
13074yes:)
13075{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13076$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13077ac_tool_warned=yes ;;
13078esac
13079 DSYMUTIL=$ac_ct_DSYMUTIL
13080 fi
13081else
13082 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13083fi
13084
13085 if test -n "$ac_tool_prefix"; then
13086 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13087set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13089$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013090if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013091 $as_echo_n "(cached) " >&6
13092else
13093 if test -n "$NMEDIT"; then
13094 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13095else
13096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13097for as_dir in $PATH
13098do
13099 IFS=$as_save_IFS
13100 test -z "$as_dir" && as_dir=.
13101 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013103 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13105 break 2
13106 fi
13107done
13108 done
13109IFS=$as_save_IFS
13110
13111fi
13112fi
13113NMEDIT=$ac_cv_prog_NMEDIT
13114if test -n "$NMEDIT"; then
13115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13116$as_echo "$NMEDIT" >&6; }
13117else
13118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13119$as_echo "no" >&6; }
13120fi
13121
13122
13123fi
13124if test -z "$ac_cv_prog_NMEDIT"; then
13125 ac_ct_NMEDIT=$NMEDIT
13126 # Extract the first word of "nmedit", so it can be a program name with args.
13127set dummy nmedit; ac_word=$2
13128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13129$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013130if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013131 $as_echo_n "(cached) " >&6
13132else
13133 if test -n "$ac_ct_NMEDIT"; then
13134 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13135else
13136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13137for as_dir in $PATH
13138do
13139 IFS=$as_save_IFS
13140 test -z "$as_dir" && as_dir=.
13141 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013143 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13145 break 2
13146 fi
13147done
13148 done
13149IFS=$as_save_IFS
13150
13151fi
13152fi
13153ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13154if test -n "$ac_ct_NMEDIT"; then
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13156$as_echo "$ac_ct_NMEDIT" >&6; }
13157else
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13159$as_echo "no" >&6; }
13160fi
13161
13162 if test "x$ac_ct_NMEDIT" = x; then
13163 NMEDIT=":"
13164 else
13165 case $cross_compiling:$ac_tool_warned in
13166yes:)
13167{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13168$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13169ac_tool_warned=yes ;;
13170esac
13171 NMEDIT=$ac_ct_NMEDIT
13172 fi
13173else
13174 NMEDIT="$ac_cv_prog_NMEDIT"
13175fi
13176
13177 if test -n "$ac_tool_prefix"; then
13178 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13179set dummy ${ac_tool_prefix}lipo; ac_word=$2
13180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13181$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013182if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013183 $as_echo_n "(cached) " >&6
13184else
13185 if test -n "$LIPO"; then
13186 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13187else
13188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13189for as_dir in $PATH
13190do
13191 IFS=$as_save_IFS
13192 test -z "$as_dir" && as_dir=.
13193 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013195 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13197 break 2
13198 fi
13199done
13200 done
13201IFS=$as_save_IFS
13202
13203fi
13204fi
13205LIPO=$ac_cv_prog_LIPO
13206if test -n "$LIPO"; then
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13208$as_echo "$LIPO" >&6; }
13209else
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13211$as_echo "no" >&6; }
13212fi
13213
13214
13215fi
13216if test -z "$ac_cv_prog_LIPO"; then
13217 ac_ct_LIPO=$LIPO
13218 # Extract the first word of "lipo", so it can be a program name with args.
13219set dummy lipo; ac_word=$2
13220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13221$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013222if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013223 $as_echo_n "(cached) " >&6
13224else
13225 if test -n "$ac_ct_LIPO"; then
13226 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13227else
13228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13229for as_dir in $PATH
13230do
13231 IFS=$as_save_IFS
13232 test -z "$as_dir" && as_dir=.
13233 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013235 ac_cv_prog_ac_ct_LIPO="lipo"
13236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13237 break 2
13238 fi
13239done
13240 done
13241IFS=$as_save_IFS
13242
13243fi
13244fi
13245ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13246if test -n "$ac_ct_LIPO"; then
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13248$as_echo "$ac_ct_LIPO" >&6; }
13249else
13250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13251$as_echo "no" >&6; }
13252fi
13253
13254 if test "x$ac_ct_LIPO" = x; then
13255 LIPO=":"
13256 else
13257 case $cross_compiling:$ac_tool_warned in
13258yes:)
13259{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13260$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13261ac_tool_warned=yes ;;
13262esac
13263 LIPO=$ac_ct_LIPO
13264 fi
13265else
13266 LIPO="$ac_cv_prog_LIPO"
13267fi
13268
13269 if test -n "$ac_tool_prefix"; then
13270 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13271set dummy ${ac_tool_prefix}otool; ac_word=$2
13272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13273$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013274if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013275 $as_echo_n "(cached) " >&6
13276else
13277 if test -n "$OTOOL"; then
13278 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13279else
13280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13281for as_dir in $PATH
13282do
13283 IFS=$as_save_IFS
13284 test -z "$as_dir" && as_dir=.
13285 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013287 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13289 break 2
13290 fi
13291done
13292 done
13293IFS=$as_save_IFS
13294
13295fi
13296fi
13297OTOOL=$ac_cv_prog_OTOOL
13298if test -n "$OTOOL"; then
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13300$as_echo "$OTOOL" >&6; }
13301else
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13303$as_echo "no" >&6; }
13304fi
13305
13306
13307fi
13308if test -z "$ac_cv_prog_OTOOL"; then
13309 ac_ct_OTOOL=$OTOOL
13310 # Extract the first word of "otool", so it can be a program name with args.
13311set dummy otool; ac_word=$2
13312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13313$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013314if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013315 $as_echo_n "(cached) " >&6
13316else
13317 if test -n "$ac_ct_OTOOL"; then
13318 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13319else
13320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13321for as_dir in $PATH
13322do
13323 IFS=$as_save_IFS
13324 test -z "$as_dir" && as_dir=.
13325 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013327 ac_cv_prog_ac_ct_OTOOL="otool"
13328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13329 break 2
13330 fi
13331done
13332 done
13333IFS=$as_save_IFS
13334
13335fi
13336fi
13337ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13338if test -n "$ac_ct_OTOOL"; then
13339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13340$as_echo "$ac_ct_OTOOL" >&6; }
13341else
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13343$as_echo "no" >&6; }
13344fi
13345
13346 if test "x$ac_ct_OTOOL" = x; then
13347 OTOOL=":"
13348 else
13349 case $cross_compiling:$ac_tool_warned in
13350yes:)
13351{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13352$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13353ac_tool_warned=yes ;;
13354esac
13355 OTOOL=$ac_ct_OTOOL
13356 fi
13357else
13358 OTOOL="$ac_cv_prog_OTOOL"
13359fi
13360
13361 if test -n "$ac_tool_prefix"; then
13362 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13363set dummy ${ac_tool_prefix}otool64; ac_word=$2
13364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13365$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013366if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013367 $as_echo_n "(cached) " >&6
13368else
13369 if test -n "$OTOOL64"; then
13370 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13371else
13372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13373for as_dir in $PATH
13374do
13375 IFS=$as_save_IFS
13376 test -z "$as_dir" && as_dir=.
13377 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013379 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13381 break 2
13382 fi
13383done
13384 done
13385IFS=$as_save_IFS
13386
13387fi
13388fi
13389OTOOL64=$ac_cv_prog_OTOOL64
13390if test -n "$OTOOL64"; then
13391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13392$as_echo "$OTOOL64" >&6; }
13393else
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13395$as_echo "no" >&6; }
13396fi
13397
13398
13399fi
13400if test -z "$ac_cv_prog_OTOOL64"; then
13401 ac_ct_OTOOL64=$OTOOL64
13402 # Extract the first word of "otool64", so it can be a program name with args.
13403set dummy otool64; ac_word=$2
13404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13405$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013406if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013407 $as_echo_n "(cached) " >&6
13408else
13409 if test -n "$ac_ct_OTOOL64"; then
13410 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13411else
13412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13413for as_dir in $PATH
13414do
13415 IFS=$as_save_IFS
13416 test -z "$as_dir" && as_dir=.
13417 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013419 ac_cv_prog_ac_ct_OTOOL64="otool64"
13420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13421 break 2
13422 fi
13423done
13424 done
13425IFS=$as_save_IFS
13426
13427fi
13428fi
13429ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13430if test -n "$ac_ct_OTOOL64"; then
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13432$as_echo "$ac_ct_OTOOL64" >&6; }
13433else
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13435$as_echo "no" >&6; }
13436fi
13437
13438 if test "x$ac_ct_OTOOL64" = x; then
13439 OTOOL64=":"
13440 else
13441 case $cross_compiling:$ac_tool_warned in
13442yes:)
13443{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13444$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13445ac_tool_warned=yes ;;
13446esac
13447 OTOOL64=$ac_ct_OTOOL64
13448 fi
13449else
13450 OTOOL64="$ac_cv_prog_OTOOL64"
13451fi
13452
13453
13454
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13480$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013481if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013482 $as_echo_n "(cached) " >&6
13483else
13484 lt_cv_apple_cc_single_mod=no
13485 if test -z "${LT_MULTI_MODULE}"; then
13486 # By default we will add the -single_module flag. You can override
13487 # by either setting the environment variable LT_MULTI_MODULE
13488 # non-empty at configure time, or by adding -multi_module to the
13489 # link flags.
13490 rm -rf libconftest.dylib*
13491 echo "int foo(void){return 1;}" > conftest.c
13492 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13493-dynamiclib -Wl,-single_module conftest.c" >&5
13494 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13495 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13496 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013497 # If there is a non-empty error log, and "single_module"
13498 # appears in it, assume the flag caused a linker warning
13499 if test -s conftest.err && $GREP single_module conftest.err; then
13500 cat conftest.err >&5
13501 # Otherwise, if the output was created with a 0 exit code from
13502 # the compiler, it worked.
13503 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
cristy73bd4a52010-10-05 11:24:23 +000013504 lt_cv_apple_cc_single_mod=yes
13505 else
13506 cat conftest.err >&5
13507 fi
13508 rm -rf libconftest.dylib*
13509 rm -f conftest.*
13510 fi
13511fi
13512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13513$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013514
cristy73bd4a52010-10-05 11:24:23 +000013515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13516$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013517if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013518 $as_echo_n "(cached) " >&6
13519else
13520 lt_cv_ld_exported_symbols_list=no
13521 save_LDFLAGS=$LDFLAGS
13522 echo "_main" > conftest.sym
13523 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13525/* end confdefs.h. */
13526
13527int
13528main ()
13529{
13530
13531 ;
13532 return 0;
13533}
13534_ACEOF
13535if ac_fn_c_try_link "$LINENO"; then :
13536 lt_cv_ld_exported_symbols_list=yes
13537else
13538 lt_cv_ld_exported_symbols_list=no
13539fi
13540rm -f core conftest.err conftest.$ac_objext \
13541 conftest$ac_exeext conftest.$ac_ext
13542 LDFLAGS="$save_LDFLAGS"
13543
13544fi
13545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13546$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013547
cristy0c60a692010-11-04 01:09:47 +000013548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13549$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013550if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000013551 $as_echo_n "(cached) " >&6
13552else
13553 lt_cv_ld_force_load=no
13554 cat > conftest.c << _LT_EOF
13555int forced_loaded() { return 2;}
13556_LT_EOF
13557 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13558 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13559 echo "$AR cru libconftest.a conftest.o" >&5
13560 $AR cru libconftest.a conftest.o 2>&5
13561 echo "$RANLIB libconftest.a" >&5
13562 $RANLIB libconftest.a 2>&5
13563 cat > conftest.c << _LT_EOF
13564int main() { return 0;}
13565_LT_EOF
13566 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13567 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13568 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013569 if test -s conftest.err && $GREP force_load conftest.err; then
13570 cat conftest.err >&5
13571 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
cristy0c60a692010-11-04 01:09:47 +000013572 lt_cv_ld_force_load=yes
13573 else
13574 cat conftest.err >&5
13575 fi
13576 rm -f conftest.err libconftest.a conftest conftest.c
13577 rm -rf conftest.dSYM
13578
13579fi
13580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13581$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000013582 case $host_os in
13583 rhapsody* | darwin1.[012])
13584 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13585 darwin1.*)
13586 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13587 darwin*) # darwin 5.x on
13588 # if running on 10.5 or later, the deployment target defaults
13589 # to the OS version, if on x86, and 10.4, the deployment
13590 # target defaults to 10.4. Don't you love it?
13591 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13592 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13593 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13594 10.[012]*)
13595 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13596 10.*)
13597 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13598 esac
13599 ;;
13600 esac
13601 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13602 _lt_dar_single_mod='$single_module'
13603 fi
13604 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13605 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13606 else
13607 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13608 fi
cristy0c60a692010-11-04 01:09:47 +000013609 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000013610 _lt_dsymutil='~$DSYMUTIL $lib || :'
13611 else
13612 _lt_dsymutil=
13613 fi
13614 ;;
13615 esac
13616
13617for ac_header in dlfcn.h
13618do :
13619 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13620"
cristyda16f162011-02-19 23:52:17 +000013621if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000013622 cat >>confdefs.h <<_ACEOF
13623#define HAVE_DLFCN_H 1
13624_ACEOF
13625
13626fi
13627
13628done
13629
13630
13631
cristy73bd4a52010-10-05 11:24:23 +000013632
cristyda16f162011-02-19 23:52:17 +000013633func_stripname_cnf ()
13634{
13635 case ${2} in
13636 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13637 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13638 esac
13639} # func_stripname_cnf
13640
13641
13642
cristy73bd4a52010-10-05 11:24:23 +000013643
13644
13645# Set options
13646enable_win32_dll=yes
13647
13648case $host in
cristy0c60a692010-11-04 01:09:47 +000013649*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000013650 if test -n "$ac_tool_prefix"; then
13651 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
13652set dummy ${ac_tool_prefix}as; ac_word=$2
13653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13654$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013655if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013656 $as_echo_n "(cached) " >&6
13657else
13658 if test -n "$AS"; then
13659 ac_cv_prog_AS="$AS" # Let the user override the test.
13660else
13661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13662for as_dir in $PATH
13663do
13664 IFS=$as_save_IFS
13665 test -z "$as_dir" && as_dir=.
13666 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013668 ac_cv_prog_AS="${ac_tool_prefix}as"
13669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13670 break 2
13671 fi
13672done
13673 done
13674IFS=$as_save_IFS
13675
13676fi
13677fi
13678AS=$ac_cv_prog_AS
13679if test -n "$AS"; then
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
13681$as_echo "$AS" >&6; }
13682else
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13684$as_echo "no" >&6; }
13685fi
13686
13687
13688fi
13689if test -z "$ac_cv_prog_AS"; then
13690 ac_ct_AS=$AS
13691 # Extract the first word of "as", so it can be a program name with args.
13692set dummy as; ac_word=$2
13693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13694$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013695if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013696 $as_echo_n "(cached) " >&6
13697else
13698 if test -n "$ac_ct_AS"; then
13699 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
13700else
13701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13702for as_dir in $PATH
13703do
13704 IFS=$as_save_IFS
13705 test -z "$as_dir" && as_dir=.
13706 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013708 ac_cv_prog_ac_ct_AS="as"
13709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13710 break 2
13711 fi
13712done
13713 done
13714IFS=$as_save_IFS
13715
13716fi
13717fi
13718ac_ct_AS=$ac_cv_prog_ac_ct_AS
13719if test -n "$ac_ct_AS"; then
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
13721$as_echo "$ac_ct_AS" >&6; }
13722else
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13724$as_echo "no" >&6; }
13725fi
13726
13727 if test "x$ac_ct_AS" = x; then
13728 AS="false"
13729 else
13730 case $cross_compiling:$ac_tool_warned in
13731yes:)
13732{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13733$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13734ac_tool_warned=yes ;;
13735esac
13736 AS=$ac_ct_AS
13737 fi
13738else
13739 AS="$ac_cv_prog_AS"
13740fi
13741
13742 if test -n "$ac_tool_prefix"; then
13743 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13744set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13746$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013747if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013748 $as_echo_n "(cached) " >&6
13749else
13750 if test -n "$DLLTOOL"; then
13751 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13752else
13753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13754for as_dir in $PATH
13755do
13756 IFS=$as_save_IFS
13757 test -z "$as_dir" && as_dir=.
13758 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013760 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13762 break 2
13763 fi
13764done
13765 done
13766IFS=$as_save_IFS
13767
13768fi
13769fi
13770DLLTOOL=$ac_cv_prog_DLLTOOL
13771if test -n "$DLLTOOL"; then
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
13773$as_echo "$DLLTOOL" >&6; }
13774else
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13776$as_echo "no" >&6; }
13777fi
13778
13779
13780fi
13781if test -z "$ac_cv_prog_DLLTOOL"; then
13782 ac_ct_DLLTOOL=$DLLTOOL
13783 # Extract the first word of "dlltool", so it can be a program name with args.
13784set dummy dlltool; ac_word=$2
13785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13786$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013787if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013788 $as_echo_n "(cached) " >&6
13789else
13790 if test -n "$ac_ct_DLLTOOL"; then
13791 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13792else
13793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13794for as_dir in $PATH
13795do
13796 IFS=$as_save_IFS
13797 test -z "$as_dir" && as_dir=.
13798 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013800 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13802 break 2
13803 fi
13804done
13805 done
13806IFS=$as_save_IFS
13807
13808fi
13809fi
13810ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13811if test -n "$ac_ct_DLLTOOL"; then
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
13813$as_echo "$ac_ct_DLLTOOL" >&6; }
13814else
13815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13816$as_echo "no" >&6; }
13817fi
13818
13819 if test "x$ac_ct_DLLTOOL" = x; then
13820 DLLTOOL="false"
13821 else
13822 case $cross_compiling:$ac_tool_warned in
13823yes:)
13824{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13825$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13826ac_tool_warned=yes ;;
13827esac
13828 DLLTOOL=$ac_ct_DLLTOOL
13829 fi
13830else
13831 DLLTOOL="$ac_cv_prog_DLLTOOL"
13832fi
13833
13834 if test -n "$ac_tool_prefix"; then
13835 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13836set dummy ${ac_tool_prefix}objdump; ac_word=$2
13837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13838$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013839if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013840 $as_echo_n "(cached) " >&6
13841else
13842 if test -n "$OBJDUMP"; then
13843 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13844else
13845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13846for as_dir in $PATH
13847do
13848 IFS=$as_save_IFS
13849 test -z "$as_dir" && as_dir=.
13850 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013852 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13854 break 2
13855 fi
13856done
13857 done
13858IFS=$as_save_IFS
13859
13860fi
13861fi
13862OBJDUMP=$ac_cv_prog_OBJDUMP
13863if test -n "$OBJDUMP"; then
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13865$as_echo "$OBJDUMP" >&6; }
13866else
13867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13868$as_echo "no" >&6; }
13869fi
13870
13871
13872fi
13873if test -z "$ac_cv_prog_OBJDUMP"; then
13874 ac_ct_OBJDUMP=$OBJDUMP
13875 # Extract the first word of "objdump", so it can be a program name with args.
13876set dummy objdump; ac_word=$2
13877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13878$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013879if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013880 $as_echo_n "(cached) " >&6
13881else
13882 if test -n "$ac_ct_OBJDUMP"; then
13883 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13884else
13885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13886for as_dir in $PATH
13887do
13888 IFS=$as_save_IFS
13889 test -z "$as_dir" && as_dir=.
13890 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013892 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13894 break 2
13895 fi
13896done
13897 done
13898IFS=$as_save_IFS
13899
13900fi
13901fi
13902ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13903if test -n "$ac_ct_OBJDUMP"; then
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13905$as_echo "$ac_ct_OBJDUMP" >&6; }
13906else
13907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13908$as_echo "no" >&6; }
13909fi
13910
13911 if test "x$ac_ct_OBJDUMP" = x; then
13912 OBJDUMP="false"
13913 else
13914 case $cross_compiling:$ac_tool_warned in
13915yes:)
13916{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13917$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13918ac_tool_warned=yes ;;
13919esac
13920 OBJDUMP=$ac_ct_OBJDUMP
13921 fi
13922else
13923 OBJDUMP="$ac_cv_prog_OBJDUMP"
13924fi
13925
13926 ;;
13927esac
13928
13929test -z "$AS" && AS=as
13930
13931
13932
13933
13934
13935test -z "$DLLTOOL" && DLLTOOL=dlltool
13936
13937
13938
13939
13940
13941test -z "$OBJDUMP" && OBJDUMP=objdump
13942
13943
13944
13945
13946
13947
13948
13949
13950
13951 # Check whether --enable-shared was given.
13952if test "${enable_shared+set}" = set; then :
13953 enableval=$enable_shared; p=${PACKAGE-default}
13954 case $enableval in
13955 yes) enable_shared=yes ;;
13956 no) enable_shared=no ;;
13957 *)
13958 enable_shared=no
13959 # Look at the argument we got. We use all the common list separators.
13960 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13961 for pkg in $enableval; do
13962 IFS="$lt_save_ifs"
13963 if test "X$pkg" = "X$p"; then
13964 enable_shared=yes
13965 fi
13966 done
13967 IFS="$lt_save_ifs"
13968 ;;
13969 esac
13970else
13971 enable_shared=yes
13972fi
13973
13974
13975
13976
13977
13978
13979
13980
13981
13982 # Check whether --enable-static was given.
13983if test "${enable_static+set}" = set; then :
13984 enableval=$enable_static; p=${PACKAGE-default}
13985 case $enableval in
13986 yes) enable_static=yes ;;
13987 no) enable_static=no ;;
13988 *)
13989 enable_static=no
13990 # Look at the argument we got. We use all the common list separators.
13991 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13992 for pkg in $enableval; do
13993 IFS="$lt_save_ifs"
13994 if test "X$pkg" = "X$p"; then
13995 enable_static=yes
13996 fi
13997 done
13998 IFS="$lt_save_ifs"
13999 ;;
14000 esac
14001else
14002 enable_static=yes
14003fi
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014# Check whether --with-pic was given.
14015if test "${with_pic+set}" = set; then :
cristy99bd5232011-12-07 14:38:20 +000014016 withval=$with_pic; lt_p=${PACKAGE-default}
14017 case $withval in
14018 yes|no) pic_mode=$withval ;;
14019 *)
14020 pic_mode=default
14021 # Look at the argument we got. We use all the common list separators.
14022 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14023 for lt_pkg in $withval; do
14024 IFS="$lt_save_ifs"
14025 if test "X$lt_pkg" = "X$lt_p"; then
14026 pic_mode=yes
14027 fi
14028 done
14029 IFS="$lt_save_ifs"
14030 ;;
14031 esac
cristy73bd4a52010-10-05 11:24:23 +000014032else
14033 pic_mode=default
14034fi
14035
14036
14037test -z "$pic_mode" && pic_mode=default
14038
14039
14040
14041
14042
14043
14044
14045 # Check whether --enable-fast-install was given.
14046if test "${enable_fast_install+set}" = set; then :
14047 enableval=$enable_fast_install; p=${PACKAGE-default}
14048 case $enableval in
14049 yes) enable_fast_install=yes ;;
14050 no) enable_fast_install=no ;;
14051 *)
14052 enable_fast_install=no
14053 # Look at the argument we got. We use all the common list separators.
14054 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14055 for pkg in $enableval; do
14056 IFS="$lt_save_ifs"
14057 if test "X$pkg" = "X$p"; then
14058 enable_fast_install=yes
14059 fi
14060 done
14061 IFS="$lt_save_ifs"
14062 ;;
14063 esac
14064else
14065 enable_fast_install=yes
14066fi
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078# This can be used to rebuild libtool when needed
14079LIBTOOL_DEPS="$ltmain"
14080
14081# Always use our own libtool.
14082LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
cristy0c60a692010-11-04 01:09:47 +000014108
cristy99bd5232011-12-07 14:38:20 +000014109
14110
14111
14112
cristy73bd4a52010-10-05 11:24:23 +000014113test -z "$LN_S" && LN_S="ln -s"
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128if test -n "${ZSH_VERSION+set}" ; then
14129 setopt NO_GLOB_SUBST
14130fi
14131
14132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14133$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014134if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014135 $as_echo_n "(cached) " >&6
14136else
14137 rm -f .libs 2>/dev/null
14138mkdir .libs 2>/dev/null
14139if test -d .libs; then
14140 lt_cv_objdir=.libs
14141else
14142 # MS-DOS does not allow filenames that begin with a dot.
14143 lt_cv_objdir=_libs
14144fi
14145rmdir .libs 2>/dev/null
14146fi
14147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14148$as_echo "$lt_cv_objdir" >&6; }
14149objdir=$lt_cv_objdir
14150
14151
14152
14153
14154
14155cat >>confdefs.h <<_ACEOF
14156#define LT_OBJDIR "$lt_cv_objdir/"
14157_ACEOF
14158
14159
14160
14161
cristy73bd4a52010-10-05 11:24:23 +000014162case $host_os in
14163aix3*)
14164 # AIX sometimes has problems with the GCC collect2 program. For some
14165 # reason, if we set the COLLECT_NAMES environment variable, the problems
14166 # vanish in a puff of smoke.
14167 if test "X${COLLECT_NAMES+set}" != Xset; then
14168 COLLECT_NAMES=
14169 export COLLECT_NAMES
14170 fi
14171 ;;
14172esac
14173
cristy73bd4a52010-10-05 11:24:23 +000014174# Global variables:
14175ofile=libtool
14176can_build_shared=yes
14177
14178# All known linkers require a `.a' archive for static linking (except MSVC,
14179# which needs '.lib').
14180libext=a
14181
14182with_gnu_ld="$lt_cv_prog_gnu_ld"
14183
14184old_CC="$CC"
14185old_CFLAGS="$CFLAGS"
14186
14187# Set sane defaults for various variables
14188test -z "$CC" && CC=cc
14189test -z "$LTCC" && LTCC=$CC
14190test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14191test -z "$LD" && LD=ld
14192test -z "$ac_objext" && ac_objext=o
14193
14194for cc_temp in $compiler""; do
14195 case $cc_temp in
14196 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14197 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14198 \-*) ;;
14199 *) break;;
14200 esac
14201done
cristy0c60a692010-11-04 01:09:47 +000014202cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000014203
14204
14205# Only perform the check for file, if the check method requires it
14206test -z "$MAGIC_CMD" && MAGIC_CMD=file
14207case $deplibs_check_method in
14208file_magic*)
14209 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14211$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014212if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014213 $as_echo_n "(cached) " >&6
14214else
14215 case $MAGIC_CMD in
14216[\\/*] | ?:[\\/]*)
14217 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14218 ;;
14219*)
14220 lt_save_MAGIC_CMD="$MAGIC_CMD"
14221 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14222 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14223 for ac_dir in $ac_dummy; do
14224 IFS="$lt_save_ifs"
14225 test -z "$ac_dir" && ac_dir=.
14226 if test -f $ac_dir/${ac_tool_prefix}file; then
14227 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14228 if test -n "$file_magic_test_file"; then
14229 case $deplibs_check_method in
14230 "file_magic "*)
14231 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14232 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14233 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14234 $EGREP "$file_magic_regex" > /dev/null; then
14235 :
14236 else
14237 cat <<_LT_EOF 1>&2
14238
14239*** Warning: the command libtool uses to detect shared libraries,
14240*** $file_magic_cmd, produces output that libtool cannot recognize.
14241*** The result is that libtool may fail to recognize shared libraries
14242*** as such. This will affect the creation of libtool libraries that
14243*** depend on shared libraries, but programs linked with such libtool
14244*** libraries will work regardless of this problem. Nevertheless, you
14245*** may want to report the problem to your system manager and/or to
14246*** bug-libtool@gnu.org
14247
14248_LT_EOF
14249 fi ;;
14250 esac
14251 fi
14252 break
14253 fi
14254 done
14255 IFS="$lt_save_ifs"
14256 MAGIC_CMD="$lt_save_MAGIC_CMD"
14257 ;;
14258esac
14259fi
14260
14261MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14262if test -n "$MAGIC_CMD"; then
14263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14264$as_echo "$MAGIC_CMD" >&6; }
14265else
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14267$as_echo "no" >&6; }
14268fi
14269
14270
14271
14272
14273
14274if test -z "$lt_cv_path_MAGIC_CMD"; then
14275 if test -n "$ac_tool_prefix"; then
14276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14277$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014278if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014279 $as_echo_n "(cached) " >&6
14280else
14281 case $MAGIC_CMD in
14282[\\/*] | ?:[\\/]*)
14283 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14284 ;;
14285*)
14286 lt_save_MAGIC_CMD="$MAGIC_CMD"
14287 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14288 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14289 for ac_dir in $ac_dummy; do
14290 IFS="$lt_save_ifs"
14291 test -z "$ac_dir" && ac_dir=.
14292 if test -f $ac_dir/file; then
14293 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14294 if test -n "$file_magic_test_file"; then
14295 case $deplibs_check_method in
14296 "file_magic "*)
14297 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14298 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14299 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14300 $EGREP "$file_magic_regex" > /dev/null; then
14301 :
14302 else
14303 cat <<_LT_EOF 1>&2
14304
14305*** Warning: the command libtool uses to detect shared libraries,
14306*** $file_magic_cmd, produces output that libtool cannot recognize.
14307*** The result is that libtool may fail to recognize shared libraries
14308*** as such. This will affect the creation of libtool libraries that
14309*** depend on shared libraries, but programs linked with such libtool
14310*** libraries will work regardless of this problem. Nevertheless, you
14311*** may want to report the problem to your system manager and/or to
14312*** bug-libtool@gnu.org
14313
14314_LT_EOF
14315 fi ;;
14316 esac
14317 fi
14318 break
14319 fi
14320 done
14321 IFS="$lt_save_ifs"
14322 MAGIC_CMD="$lt_save_MAGIC_CMD"
14323 ;;
14324esac
14325fi
14326
14327MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14328if test -n "$MAGIC_CMD"; then
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14330$as_echo "$MAGIC_CMD" >&6; }
14331else
14332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14333$as_echo "no" >&6; }
14334fi
14335
14336
14337 else
14338 MAGIC_CMD=:
14339 fi
14340fi
14341
14342 fi
14343 ;;
14344esac
14345
14346# Use C for the default configuration in the libtool script
14347
14348lt_save_CC="$CC"
14349ac_ext=c
14350ac_cpp='$CPP $CPPFLAGS'
14351ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14352ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14353ac_compiler_gnu=$ac_cv_c_compiler_gnu
14354
14355
14356# Source file extension for C test sources.
14357ac_ext=c
14358
14359# Object file extension for compiled C test sources.
14360objext=o
14361objext=$objext
14362
14363# Code to be used in simple compile tests
14364lt_simple_compile_test_code="int some_variable = 0;"
14365
14366# Code to be used in simple link tests
14367lt_simple_link_test_code='int main(){return(0);}'
14368
14369
14370
14371
14372
14373
14374
14375# If no C compiler was specified, use CC.
14376LTCC=${LTCC-"$CC"}
14377
14378# If no C compiler flags were specified, use CFLAGS.
14379LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14380
14381# Allow CC to be a program name with arguments.
14382compiler=$CC
14383
14384# Save the default compiler, since it gets overwritten when the other
14385# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14386compiler_DEFAULT=$CC
14387
14388# save warnings/boilerplate of simple test code
14389ac_outfile=conftest.$ac_objext
14390echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14391eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14392_lt_compiler_boilerplate=`cat conftest.err`
14393$RM conftest*
14394
14395ac_outfile=conftest.$ac_objext
14396echo "$lt_simple_link_test_code" >conftest.$ac_ext
14397eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14398_lt_linker_boilerplate=`cat conftest.err`
14399$RM -r conftest*
14400
14401
14402## CAVEAT EMPTOR:
14403## There is no encapsulation within the following macros, do not change
14404## the running order or otherwise move them around unless you know exactly
14405## what you are doing...
14406if test -n "$compiler"; then
14407
14408lt_prog_compiler_no_builtin_flag=
14409
14410if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000014411 case $cc_basename in
14412 nvcc*)
14413 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14414 *)
14415 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14416 esac
cristy73bd4a52010-10-05 11:24:23 +000014417
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14419$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014420if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014421 $as_echo_n "(cached) " >&6
14422else
14423 lt_cv_prog_compiler_rtti_exceptions=no
14424 ac_outfile=conftest.$ac_objext
14425 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14426 lt_compiler_flag="-fno-rtti -fno-exceptions"
14427 # Insert the option either (1) after the last *FLAGS variable, or
14428 # (2) before a word containing "conftest.", or (3) at the end.
14429 # Note that $ac_compile itself does not contain backslashes and begins
14430 # with a dollar sign (not a hyphen), so the echo should work correctly.
14431 # The option is referenced via a variable to avoid confusing sed.
14432 lt_compile=`echo "$ac_compile" | $SED \
14433 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14434 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14435 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014436 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014437 (eval "$lt_compile" 2>conftest.err)
14438 ac_status=$?
14439 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014441 if (exit $ac_status) && test -s "$ac_outfile"; then
14442 # The compiler can only warn and ignore the option if not recognized
14443 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014444 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014445 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14446 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14447 lt_cv_prog_compiler_rtti_exceptions=yes
14448 fi
14449 fi
14450 $RM conftest*
14451
14452fi
14453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14454$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14455
14456if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14457 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14458else
14459 :
14460fi
14461
14462fi
14463
14464
14465
14466
14467
14468
14469 lt_prog_compiler_wl=
14470lt_prog_compiler_pic=
14471lt_prog_compiler_static=
14472
cristy73bd4a52010-10-05 11:24:23 +000014473
14474 if test "$GCC" = yes; then
14475 lt_prog_compiler_wl='-Wl,'
14476 lt_prog_compiler_static='-static'
14477
14478 case $host_os in
14479 aix*)
14480 # All AIX code is PIC.
14481 if test "$host_cpu" = ia64; then
14482 # AIX 5 now supports IA64 processor
14483 lt_prog_compiler_static='-Bstatic'
14484 fi
14485 ;;
14486
14487 amigaos*)
14488 case $host_cpu in
14489 powerpc)
14490 # see comment about AmigaOS4 .so support
14491 lt_prog_compiler_pic='-fPIC'
14492 ;;
14493 m68k)
14494 # FIXME: we need at least 68020 code to build shared libraries, but
14495 # adding the `-m68020' flag to GCC prevents building anything better,
14496 # like `-m68040'.
14497 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14498 ;;
14499 esac
14500 ;;
14501
14502 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14503 # PIC is the default for these OSes.
14504 ;;
14505
14506 mingw* | cygwin* | pw32* | os2* | cegcc*)
14507 # This hack is so that the source file can tell whether it is being
14508 # built for inclusion in a dll (and should export symbols for example).
14509 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14510 # (--disable-auto-import) libraries
14511 lt_prog_compiler_pic='-DDLL_EXPORT'
14512 ;;
14513
14514 darwin* | rhapsody*)
14515 # PIC is the default on this platform
14516 # Common symbols not allowed in MH_DYLIB files
14517 lt_prog_compiler_pic='-fno-common'
14518 ;;
14519
cristy0c60a692010-11-04 01:09:47 +000014520 haiku*)
14521 # PIC is the default for Haiku.
14522 # The "-static" flag exists, but is broken.
14523 lt_prog_compiler_static=
14524 ;;
14525
cristy73bd4a52010-10-05 11:24:23 +000014526 hpux*)
14527 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14528 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14529 # sets the default TLS model and affects inlining.
14530 case $host_cpu in
14531 hppa*64*)
14532 # +Z the default
14533 ;;
14534 *)
14535 lt_prog_compiler_pic='-fPIC'
14536 ;;
14537 esac
14538 ;;
14539
14540 interix[3-9]*)
14541 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14542 # Instead, we relocate shared libraries at runtime.
14543 ;;
14544
14545 msdosdjgpp*)
14546 # Just because we use GCC doesn't mean we suddenly get shared libraries
14547 # on systems that don't support them.
14548 lt_prog_compiler_can_build_shared=no
14549 enable_shared=no
14550 ;;
14551
14552 *nto* | *qnx*)
14553 # QNX uses GNU C++, but need to define -shared option too, otherwise
14554 # it will coredump.
14555 lt_prog_compiler_pic='-fPIC -shared'
14556 ;;
14557
14558 sysv4*MP*)
14559 if test -d /usr/nec; then
14560 lt_prog_compiler_pic=-Kconform_pic
14561 fi
14562 ;;
14563
14564 *)
14565 lt_prog_compiler_pic='-fPIC'
14566 ;;
14567 esac
cristy0c60a692010-11-04 01:09:47 +000014568
14569 case $cc_basename in
14570 nvcc*) # Cuda Compiler Driver 2.2
14571 lt_prog_compiler_wl='-Xlinker '
cristy99bd5232011-12-07 14:38:20 +000014572 if test -n "$lt_prog_compiler_pic"; then
14573 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14574 fi
cristy0c60a692010-11-04 01:09:47 +000014575 ;;
14576 esac
cristy73bd4a52010-10-05 11:24:23 +000014577 else
14578 # PORTME Check for flag to pass linker flags through the system compiler.
14579 case $host_os in
14580 aix*)
14581 lt_prog_compiler_wl='-Wl,'
14582 if test "$host_cpu" = ia64; then
14583 # AIX 5 now supports IA64 processor
14584 lt_prog_compiler_static='-Bstatic'
14585 else
14586 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14587 fi
14588 ;;
14589
14590 mingw* | cygwin* | pw32* | os2* | cegcc*)
14591 # This hack is so that the source file can tell whether it is being
14592 # built for inclusion in a dll (and should export symbols for example).
14593 lt_prog_compiler_pic='-DDLL_EXPORT'
14594 ;;
14595
14596 hpux9* | hpux10* | hpux11*)
14597 lt_prog_compiler_wl='-Wl,'
14598 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14599 # not for PA HP-UX.
14600 case $host_cpu in
14601 hppa*64*|ia64*)
14602 # +Z the default
14603 ;;
14604 *)
14605 lt_prog_compiler_pic='+Z'
14606 ;;
14607 esac
14608 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14609 lt_prog_compiler_static='${wl}-a ${wl}archive'
14610 ;;
14611
14612 irix5* | irix6* | nonstopux*)
14613 lt_prog_compiler_wl='-Wl,'
14614 # PIC (with -KPIC) is the default.
14615 lt_prog_compiler_static='-non_shared'
14616 ;;
14617
cristy0c60a692010-11-04 01:09:47 +000014618 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014619 case $cc_basename in
14620 # old Intel for x86_64 which still supported -KPIC.
14621 ecc*)
14622 lt_prog_compiler_wl='-Wl,'
14623 lt_prog_compiler_pic='-KPIC'
14624 lt_prog_compiler_static='-static'
14625 ;;
14626 # icc used to be incompatible with GCC.
14627 # ICC 10 doesn't accept -KPIC any more.
14628 icc* | ifort*)
14629 lt_prog_compiler_wl='-Wl,'
14630 lt_prog_compiler_pic='-fPIC'
14631 lt_prog_compiler_static='-static'
14632 ;;
14633 # Lahey Fortran 8.1.
14634 lf95*)
14635 lt_prog_compiler_wl='-Wl,'
14636 lt_prog_compiler_pic='--shared'
14637 lt_prog_compiler_static='--static'
14638 ;;
cristyda16f162011-02-19 23:52:17 +000014639 nagfor*)
14640 # NAG Fortran compiler
14641 lt_prog_compiler_wl='-Wl,-Wl,,'
14642 lt_prog_compiler_pic='-PIC'
14643 lt_prog_compiler_static='-Bstatic'
14644 ;;
cristy0c60a692010-11-04 01:09:47 +000014645 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000014646 # Portland Group compilers (*not* the Pentium gcc compiler,
14647 # which looks to be a dead project)
14648 lt_prog_compiler_wl='-Wl,'
14649 lt_prog_compiler_pic='-fpic'
14650 lt_prog_compiler_static='-Bstatic'
14651 ;;
14652 ccc*)
14653 lt_prog_compiler_wl='-Wl,'
14654 # All Alpha code is PIC.
14655 lt_prog_compiler_static='-non_shared'
14656 ;;
cristy0c60a692010-11-04 01:09:47 +000014657 xl* | bgxl* | bgf* | mpixl*)
14658 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000014659 lt_prog_compiler_wl='-Wl,'
14660 lt_prog_compiler_pic='-qpic'
14661 lt_prog_compiler_static='-qstaticlink'
14662 ;;
14663 *)
14664 case `$CC -V 2>&1 | sed 5q` in
cristy99bd5232011-12-07 14:38:20 +000014665 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
cristy0c60a692010-11-04 01:09:47 +000014666 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14667 lt_prog_compiler_pic='-KPIC'
14668 lt_prog_compiler_static='-Bstatic'
14669 lt_prog_compiler_wl=''
14670 ;;
cristy99bd5232011-12-07 14:38:20 +000014671 *Sun\ F* | *Sun*Fortran*)
14672 lt_prog_compiler_pic='-KPIC'
14673 lt_prog_compiler_static='-Bstatic'
14674 lt_prog_compiler_wl='-Qoption ld '
14675 ;;
cristy73bd4a52010-10-05 11:24:23 +000014676 *Sun\ C*)
14677 # Sun C 5.9
14678 lt_prog_compiler_pic='-KPIC'
14679 lt_prog_compiler_static='-Bstatic'
14680 lt_prog_compiler_wl='-Wl,'
14681 ;;
cristy99bd5232011-12-07 14:38:20 +000014682 *Intel*\ [CF]*Compiler*)
14683 lt_prog_compiler_wl='-Wl,'
14684 lt_prog_compiler_pic='-fPIC'
14685 lt_prog_compiler_static='-static'
14686 ;;
14687 *Portland\ Group*)
14688 lt_prog_compiler_wl='-Wl,'
14689 lt_prog_compiler_pic='-fpic'
14690 lt_prog_compiler_static='-Bstatic'
14691 ;;
cristy73bd4a52010-10-05 11:24:23 +000014692 esac
14693 ;;
14694 esac
14695 ;;
14696
14697 newsos6)
14698 lt_prog_compiler_pic='-KPIC'
14699 lt_prog_compiler_static='-Bstatic'
14700 ;;
14701
14702 *nto* | *qnx*)
14703 # QNX uses GNU C++, but need to define -shared option too, otherwise
14704 # it will coredump.
14705 lt_prog_compiler_pic='-fPIC -shared'
14706 ;;
14707
14708 osf3* | osf4* | osf5*)
14709 lt_prog_compiler_wl='-Wl,'
14710 # All OSF/1 code is PIC.
14711 lt_prog_compiler_static='-non_shared'
14712 ;;
14713
14714 rdos*)
14715 lt_prog_compiler_static='-non_shared'
14716 ;;
14717
14718 solaris*)
14719 lt_prog_compiler_pic='-KPIC'
14720 lt_prog_compiler_static='-Bstatic'
14721 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014722 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000014723 lt_prog_compiler_wl='-Qoption ld ';;
14724 *)
14725 lt_prog_compiler_wl='-Wl,';;
14726 esac
14727 ;;
14728
14729 sunos4*)
14730 lt_prog_compiler_wl='-Qoption ld '
14731 lt_prog_compiler_pic='-PIC'
14732 lt_prog_compiler_static='-Bstatic'
14733 ;;
14734
14735 sysv4 | sysv4.2uw2* | sysv4.3*)
14736 lt_prog_compiler_wl='-Wl,'
14737 lt_prog_compiler_pic='-KPIC'
14738 lt_prog_compiler_static='-Bstatic'
14739 ;;
14740
14741 sysv4*MP*)
14742 if test -d /usr/nec ;then
14743 lt_prog_compiler_pic='-Kconform_pic'
14744 lt_prog_compiler_static='-Bstatic'
14745 fi
14746 ;;
14747
14748 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14749 lt_prog_compiler_wl='-Wl,'
14750 lt_prog_compiler_pic='-KPIC'
14751 lt_prog_compiler_static='-Bstatic'
14752 ;;
14753
14754 unicos*)
14755 lt_prog_compiler_wl='-Wl,'
14756 lt_prog_compiler_can_build_shared=no
14757 ;;
14758
14759 uts4*)
14760 lt_prog_compiler_pic='-pic'
14761 lt_prog_compiler_static='-Bstatic'
14762 ;;
14763
14764 *)
14765 lt_prog_compiler_can_build_shared=no
14766 ;;
14767 esac
14768 fi
14769
14770case $host_os in
14771 # For platforms which do not support PIC, -DPIC is meaningless:
14772 *djgpp*)
14773 lt_prog_compiler_pic=
14774 ;;
14775 *)
14776 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14777 ;;
14778esac
cristy73bd4a52010-10-05 11:24:23 +000014779
cristyda16f162011-02-19 23:52:17 +000014780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14781$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14782if ${lt_cv_prog_compiler_pic+:} false; then :
14783 $as_echo_n "(cached) " >&6
14784else
14785 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14786fi
14787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14788$as_echo "$lt_cv_prog_compiler_pic" >&6; }
14789lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000014790
14791#
14792# Check to make sure the PIC flag actually works.
14793#
14794if test -n "$lt_prog_compiler_pic"; then
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14796$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014797if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014798 $as_echo_n "(cached) " >&6
14799else
14800 lt_cv_prog_compiler_pic_works=no
14801 ac_outfile=conftest.$ac_objext
14802 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14803 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14804 # Insert the option either (1) after the last *FLAGS variable, or
14805 # (2) before a word containing "conftest.", or (3) at the end.
14806 # Note that $ac_compile itself does not contain backslashes and begins
14807 # with a dollar sign (not a hyphen), so the echo should work correctly.
14808 # The option is referenced via a variable to avoid confusing sed.
14809 lt_compile=`echo "$ac_compile" | $SED \
14810 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14811 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14812 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014813 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014814 (eval "$lt_compile" 2>conftest.err)
14815 ac_status=$?
14816 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014818 if (exit $ac_status) && test -s "$ac_outfile"; then
14819 # The compiler can only warn and ignore the option if not recognized
14820 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014821 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014822 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14823 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14824 lt_cv_prog_compiler_pic_works=yes
14825 fi
14826 fi
14827 $RM conftest*
14828
14829fi
14830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14831$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14832
14833if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14834 case $lt_prog_compiler_pic in
14835 "" | " "*) ;;
14836 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14837 esac
14838else
14839 lt_prog_compiler_pic=
14840 lt_prog_compiler_can_build_shared=no
14841fi
14842
14843fi
14844
14845
14846
14847
14848
14849
cristyda16f162011-02-19 23:52:17 +000014850
14851
14852
14853
14854
cristy73bd4a52010-10-05 11:24:23 +000014855#
14856# Check to make sure the static flag actually works.
14857#
14858wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14860$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014861if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014862 $as_echo_n "(cached) " >&6
14863else
14864 lt_cv_prog_compiler_static_works=no
14865 save_LDFLAGS="$LDFLAGS"
14866 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14867 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14868 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14869 # The linker can only warn and ignore the option if not recognized
14870 # So say no if there are warnings
14871 if test -s conftest.err; then
14872 # Append any errors to the config.log.
14873 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000014874 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014875 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14876 if diff conftest.exp conftest.er2 >/dev/null; then
14877 lt_cv_prog_compiler_static_works=yes
14878 fi
14879 else
14880 lt_cv_prog_compiler_static_works=yes
14881 fi
14882 fi
14883 $RM -r conftest*
14884 LDFLAGS="$save_LDFLAGS"
14885
14886fi
14887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14888$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14889
14890if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14891 :
14892else
14893 lt_prog_compiler_static=
14894fi
14895
14896
14897
14898
14899
14900
14901
14902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14903$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014904if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014905 $as_echo_n "(cached) " >&6
14906else
14907 lt_cv_prog_compiler_c_o=no
14908 $RM -r conftest 2>/dev/null
14909 mkdir conftest
14910 cd conftest
14911 mkdir out
14912 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14913
14914 lt_compiler_flag="-o out/conftest2.$ac_objext"
14915 # Insert the option either (1) after the last *FLAGS variable, or
14916 # (2) before a word containing "conftest.", or (3) at the end.
14917 # Note that $ac_compile itself does not contain backslashes and begins
14918 # with a dollar sign (not a hyphen), so the echo should work correctly.
14919 lt_compile=`echo "$ac_compile" | $SED \
14920 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14921 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14922 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014923 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014924 (eval "$lt_compile" 2>out/conftest.err)
14925 ac_status=$?
14926 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014928 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14929 then
14930 # The compiler can only warn and ignore the option if not recognized
14931 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014932 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014933 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14934 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14935 lt_cv_prog_compiler_c_o=yes
14936 fi
14937 fi
14938 chmod u+w . 2>&5
14939 $RM conftest*
14940 # SGI C++ compiler will create directory out/ii_files/ for
14941 # template instantiation
14942 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14943 $RM out/* && rmdir out
14944 cd ..
14945 $RM -r conftest
14946 $RM conftest*
14947
14948fi
14949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14950$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14951
14952
14953
14954
14955
14956
14957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14958$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014959if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014960 $as_echo_n "(cached) " >&6
14961else
14962 lt_cv_prog_compiler_c_o=no
14963 $RM -r conftest 2>/dev/null
14964 mkdir conftest
14965 cd conftest
14966 mkdir out
14967 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14968
14969 lt_compiler_flag="-o out/conftest2.$ac_objext"
14970 # Insert the option either (1) after the last *FLAGS variable, or
14971 # (2) before a word containing "conftest.", or (3) at the end.
14972 # Note that $ac_compile itself does not contain backslashes and begins
14973 # with a dollar sign (not a hyphen), so the echo should work correctly.
14974 lt_compile=`echo "$ac_compile" | $SED \
14975 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14976 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14977 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014978 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014979 (eval "$lt_compile" 2>out/conftest.err)
14980 ac_status=$?
14981 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014983 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14984 then
14985 # The compiler can only warn and ignore the option if not recognized
14986 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014987 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014988 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14989 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14990 lt_cv_prog_compiler_c_o=yes
14991 fi
14992 fi
14993 chmod u+w . 2>&5
14994 $RM conftest*
14995 # SGI C++ compiler will create directory out/ii_files/ for
14996 # template instantiation
14997 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14998 $RM out/* && rmdir out
14999 cd ..
15000 $RM -r conftest
15001 $RM conftest*
15002
15003fi
15004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15005$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15006
15007
15008
15009
15010hard_links="nottested"
15011if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15012 # do not overwrite the value of need_locks provided by the user
15013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15014$as_echo_n "checking if we can lock with hard links... " >&6; }
15015 hard_links=yes
15016 $RM conftest*
15017 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15018 touch conftest.a
15019 ln conftest.a conftest.b 2>&5 || hard_links=no
15020 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15022$as_echo "$hard_links" >&6; }
15023 if test "$hard_links" = no; then
15024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15025$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15026 need_locks=warn
15027 fi
15028else
15029 need_locks=no
15030fi
15031
15032
15033
15034
15035
15036
15037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15038$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15039
15040 runpath_var=
15041 allow_undefined_flag=
15042 always_export_symbols=no
15043 archive_cmds=
15044 archive_expsym_cmds=
15045 compiler_needs_object=no
15046 enable_shared_with_static_runtimes=no
15047 export_dynamic_flag_spec=
15048 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15049 hardcode_automatic=no
15050 hardcode_direct=no
15051 hardcode_direct_absolute=no
15052 hardcode_libdir_flag_spec=
cristy73bd4a52010-10-05 11:24:23 +000015053 hardcode_libdir_separator=
15054 hardcode_minus_L=no
15055 hardcode_shlibpath_var=unsupported
15056 inherit_rpath=no
15057 link_all_deplibs=unknown
15058 module_cmds=
15059 module_expsym_cmds=
15060 old_archive_from_new_cmds=
15061 old_archive_from_expsyms_cmds=
15062 thread_safe_flag_spec=
15063 whole_archive_flag_spec=
15064 # include_expsyms should be a list of space-separated symbols to be *always*
15065 # included in the symbol list
15066 include_expsyms=
15067 # exclude_expsyms can be an extended regexp of symbols to exclude
15068 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15069 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15070 # as well as any symbol that contains `d'.
15071 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15072 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15073 # platforms (ab)use it in PIC code, but their linkers get confused if
15074 # the symbol is explicitly referenced. Since portable code cannot
15075 # rely on this symbol name, it's probably fine to never include it in
15076 # preloaded symbol tables.
15077 # Exclude shared library initialization/finalization symbols.
15078 extract_expsyms_cmds=
15079
15080 case $host_os in
15081 cygwin* | mingw* | pw32* | cegcc*)
15082 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15083 # When not using gcc, we currently assume that we are using
15084 # Microsoft Visual C++.
15085 if test "$GCC" != yes; then
15086 with_gnu_ld=no
15087 fi
15088 ;;
15089 interix*)
15090 # we just hope/assume this is gcc and not c89 (= MSVC++)
15091 with_gnu_ld=yes
15092 ;;
15093 openbsd*)
15094 with_gnu_ld=no
15095 ;;
15096 esac
15097
15098 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000015099
15100 # On some targets, GNU ld is compatible enough with the native linker
15101 # that we're better off using the native interface for both.
15102 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000015103 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000015104 case $host_os in
15105 aix*)
15106 # The AIX port of GNU ld has always aspired to compatibility
15107 # with the native linker. However, as the warning in the GNU ld
15108 # block says, versions before 2.19.5* couldn't really create working
15109 # shared libraries, regardless of the interface used.
15110 case `$LD -v 2>&1` in
15111 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15112 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15113 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15114 *)
15115 lt_use_gnu_ld_interface=yes
15116 ;;
15117 esac
15118 ;;
15119 *)
15120 lt_use_gnu_ld_interface=yes
15121 ;;
15122 esac
15123 fi
15124
15125 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000015126 # If archive_cmds runs LD, not CC, wlarc should be empty
15127 wlarc='${wl}'
15128
15129 # Set some defaults for GNU ld with shared library support. These
15130 # are reset later if shared libraries are not supported. Putting them
15131 # here allows them to be overridden if necessary.
15132 runpath_var=LD_RUN_PATH
15133 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15134 export_dynamic_flag_spec='${wl}--export-dynamic'
15135 # ancient GNU ld didn't support --whole-archive et. al.
15136 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15137 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15138 else
15139 whole_archive_flag_spec=
15140 fi
15141 supports_anon_versioning=no
15142 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000015143 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000015144 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15145 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15146 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15147 *\ 2.11.*) ;; # other 2.11 versions
15148 *) supports_anon_versioning=yes ;;
15149 esac
15150
15151 # See if GNU ld supports shared libraries.
15152 case $host_os in
15153 aix[3-9]*)
15154 # On AIX/PPC, the GNU linker is very broken
15155 if test "$host_cpu" != ia64; then
15156 ld_shlibs=no
15157 cat <<_LT_EOF 1>&2
15158
cristy0c60a692010-11-04 01:09:47 +000015159*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000015160*** to be unable to reliably create shared libraries on AIX.
15161*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000015162*** really care for shared libraries, you may want to install binutils
15163*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15164*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000015165
15166_LT_EOF
15167 fi
15168 ;;
15169
15170 amigaos*)
15171 case $host_cpu in
15172 powerpc)
15173 # see comment about AmigaOS4 .so support
15174 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15175 archive_expsym_cmds=''
15176 ;;
15177 m68k)
15178 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)'
15179 hardcode_libdir_flag_spec='-L$libdir'
15180 hardcode_minus_L=yes
15181 ;;
15182 esac
15183 ;;
15184
15185 beos*)
15186 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15187 allow_undefined_flag=unsupported
15188 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15189 # support --undefined. This deserves some investigation. FIXME
15190 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15191 else
15192 ld_shlibs=no
15193 fi
15194 ;;
15195
15196 cygwin* | mingw* | pw32* | cegcc*)
15197 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15198 # as there is no search path for DLLs.
15199 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000015200 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000015201 allow_undefined_flag=unsupported
15202 always_export_symbols=no
15203 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000015204 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'
15205 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 +000015206
15207 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15208 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15209 # If the export-symbols file already is a .def file (1st line
15210 # is EXPORTS), use it as is; otherwise, prepend...
15211 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15212 cp $export_symbols $output_objdir/$soname.def;
15213 else
15214 echo EXPORTS > $output_objdir/$soname.def;
15215 cat $export_symbols >> $output_objdir/$soname.def;
15216 fi~
15217 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15218 else
15219 ld_shlibs=no
15220 fi
15221 ;;
15222
cristy0c60a692010-11-04 01:09:47 +000015223 haiku*)
15224 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15225 link_all_deplibs=yes
15226 ;;
15227
cristy73bd4a52010-10-05 11:24:23 +000015228 interix[3-9]*)
15229 hardcode_direct=no
15230 hardcode_shlibpath_var=no
15231 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15232 export_dynamic_flag_spec='${wl}-E'
15233 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15234 # Instead, shared libraries are loaded at an image base (0x10000000 by
15235 # default) and relocated if they conflict, which is a slow very memory
15236 # consuming and fragmenting process. To avoid this, we pick a random,
15237 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15238 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15239 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15240 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'
15241 ;;
15242
cristy0c60a692010-11-04 01:09:47 +000015243 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000015244 tmp_diet=no
15245 if test "$host_os" = linux-dietlibc; then
15246 case $cc_basename in
15247 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15248 esac
15249 fi
15250 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15251 && test "$tmp_diet" = no
15252 then
cristyda16f162011-02-19 23:52:17 +000015253 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000015254 tmp_sharedflag='-shared'
15255 case $cc_basename,$host_cpu in
15256 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000015257 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 +000015258 tmp_addflag=' $pic_flag'
15259 ;;
cristy0c60a692010-11-04 01:09:47 +000015260 pgf77* | pgf90* | pgf95* | pgfortran*)
15261 # Portland Group f77 and f90 compilers
15262 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 +000015263 tmp_addflag=' $pic_flag -Mnomain' ;;
15264 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15265 tmp_addflag=' -i_dynamic' ;;
15266 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15267 tmp_addflag=' -i_dynamic -nofor_main' ;;
15268 ifc* | ifort*) # Intel Fortran compiler
15269 tmp_addflag=' -nofor_main' ;;
15270 lf95*) # Lahey Fortran 8.1
15271 whole_archive_flag_spec=
15272 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000015273 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000015274 tmp_sharedflag='-qmkshrobj'
15275 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000015276 nvcc*) # Cuda Compiler Driver 2.2
15277 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'
15278 compiler_needs_object=yes
15279 ;;
cristy73bd4a52010-10-05 11:24:23 +000015280 esac
15281 case `$CC -V 2>&1 | sed 5q` in
15282 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000015283 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 +000015284 compiler_needs_object=yes
15285 tmp_sharedflag='-G' ;;
15286 *Sun\ F*) # Sun Fortran 8.3
15287 tmp_sharedflag='-G' ;;
15288 esac
15289 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15290
15291 if test "x$supports_anon_versioning" = xyes; then
15292 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15293 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15294 echo "local: *; };" >> $output_objdir/$libname.ver~
15295 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15296 fi
15297
15298 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000015299 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000015300 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15301 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
cristy99bd5232011-12-07 14:38:20 +000015302 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cristy0c60a692010-11-04 01:09:47 +000015303 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015304 if test "x$supports_anon_versioning" = xyes; then
15305 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15306 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15307 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000015308 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015309 fi
15310 ;;
15311 esac
15312 else
15313 ld_shlibs=no
15314 fi
15315 ;;
15316
15317 netbsd*)
15318 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15319 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15320 wlarc=
15321 else
cristyda16f162011-02-19 23:52:17 +000015322 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15323 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 +000015324 fi
15325 ;;
15326
15327 solaris*)
15328 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15329 ld_shlibs=no
15330 cat <<_LT_EOF 1>&2
15331
15332*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15333*** create shared libraries on Solaris systems. Therefore, libtool
15334*** is disabling shared libraries support. We urge you to upgrade GNU
15335*** binutils to release 2.9.1 or newer. Another option is to modify
15336*** your PATH or compiler configuration so that the native linker is
15337*** used, and then restart.
15338
15339_LT_EOF
15340 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000015341 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15342 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 +000015343 else
15344 ld_shlibs=no
15345 fi
15346 ;;
15347
15348 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15349 case `$LD -v 2>&1` in
15350 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15351 ld_shlibs=no
15352 cat <<_LT_EOF 1>&2
15353
15354*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15355*** reliably create shared libraries on SCO systems. Therefore, libtool
15356*** is disabling shared libraries support. We urge you to upgrade GNU
15357*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15358*** your PATH or compiler configuration so that the native linker is
15359*** used, and then restart.
15360
15361_LT_EOF
15362 ;;
15363 *)
15364 # For security reasons, it is highly recommended that you always
15365 # use absolute paths for naming shared libraries, and exclude the
15366 # DT_RUNPATH tag from executables and libraries. But doing so
15367 # requires that you compile everything twice, which is a pain.
15368 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15369 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15370 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15371 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15372 else
15373 ld_shlibs=no
15374 fi
15375 ;;
15376 esac
15377 ;;
15378
15379 sunos4*)
15380 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15381 wlarc=
15382 hardcode_direct=yes
15383 hardcode_shlibpath_var=no
15384 ;;
15385
15386 *)
15387 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000015388 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15389 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 +000015390 else
15391 ld_shlibs=no
15392 fi
15393 ;;
15394 esac
15395
15396 if test "$ld_shlibs" = no; then
15397 runpath_var=
15398 hardcode_libdir_flag_spec=
15399 export_dynamic_flag_spec=
15400 whole_archive_flag_spec=
15401 fi
15402 else
15403 # PORTME fill in a description of your system's linker (not GNU ld)
15404 case $host_os in
15405 aix3*)
15406 allow_undefined_flag=unsupported
15407 always_export_symbols=yes
15408 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'
15409 # Note: this linker hardcodes the directories in LIBPATH if there
15410 # are no directories specified by -L.
15411 hardcode_minus_L=yes
15412 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15413 # Neither direct hardcoding nor static linking is supported with a
15414 # broken collect2.
15415 hardcode_direct=unsupported
15416 fi
15417 ;;
15418
15419 aix[4-9]*)
15420 if test "$host_cpu" = ia64; then
15421 # On IA64, the linker does run time linking by default, so we don't
15422 # have to do anything special.
15423 aix_use_runtimelinking=no
15424 exp_sym_flag='-Bexport'
15425 no_entry_flag=""
15426 else
15427 # If we're using GNU nm, then we don't want the "-C" option.
15428 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000015429 # Also, AIX nm treats weak defined symbols like other global
15430 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000015431 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000015432 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 +000015433 else
15434 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'
15435 fi
15436 aix_use_runtimelinking=no
15437
15438 # Test if we are trying to use run time linking or normal
15439 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15440 # need to do runtime linking.
15441 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15442 for ld_flag in $LDFLAGS; do
15443 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15444 aix_use_runtimelinking=yes
15445 break
15446 fi
15447 done
15448 ;;
15449 esac
15450
15451 exp_sym_flag='-bexport'
15452 no_entry_flag='-bnoentry'
15453 fi
15454
15455 # When large executables or shared objects are built, AIX ld can
15456 # have problems creating the table of contents. If linking a library
15457 # or program results in "error TOC overflow" add -mminimal-toc to
15458 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15459 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15460
15461 archive_cmds=''
15462 hardcode_direct=yes
15463 hardcode_direct_absolute=yes
15464 hardcode_libdir_separator=':'
15465 link_all_deplibs=yes
15466 file_list_spec='${wl}-f,'
15467
15468 if test "$GCC" = yes; then
15469 case $host_os in aix4.[012]|aix4.[012].*)
15470 # We only want to do this on AIX 4.2 and lower, the check
15471 # below for broken collect2 doesn't work under 4.3+
15472 collect2name=`${CC} -print-prog-name=collect2`
15473 if test -f "$collect2name" &&
15474 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15475 then
15476 # We have reworked collect2
15477 :
15478 else
15479 # We have old collect2
15480 hardcode_direct=unsupported
15481 # It fails to find uninstalled libraries when the uninstalled
15482 # path is not listed in the libpath. Setting hardcode_minus_L
15483 # to unsupported forces relinking
15484 hardcode_minus_L=yes
15485 hardcode_libdir_flag_spec='-L$libdir'
15486 hardcode_libdir_separator=
15487 fi
15488 ;;
15489 esac
15490 shared_flag='-shared'
15491 if test "$aix_use_runtimelinking" = yes; then
15492 shared_flag="$shared_flag "'${wl}-G'
15493 fi
15494 else
15495 # not using gcc
15496 if test "$host_cpu" = ia64; then
15497 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15498 # chokes on -Wl,-G. The following line is correct:
15499 shared_flag='-G'
15500 else
15501 if test "$aix_use_runtimelinking" = yes; then
15502 shared_flag='${wl}-G'
15503 else
15504 shared_flag='${wl}-bM:SRE'
15505 fi
15506 fi
15507 fi
15508
15509 export_dynamic_flag_spec='${wl}-bexpall'
15510 # It seems that -bexpall does not export symbols beginning with
15511 # underscore (_), so it is better to generate a list of symbols to export.
15512 always_export_symbols=yes
15513 if test "$aix_use_runtimelinking" = yes; then
15514 # Warning - without using the other runtime loading flags (-brtl),
15515 # -berok will link without error, but may produce a broken library.
15516 allow_undefined_flag='-berok'
15517 # Determine the default libpath from the value encoded in an
15518 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015519 if test "${lt_cv_aix_libpath+set}" = set; then
15520 aix_libpath=$lt_cv_aix_libpath
15521else
15522 if ${lt_cv_aix_libpath_+:} false; then :
15523 $as_echo_n "(cached) " >&6
15524else
15525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015526/* end confdefs.h. */
15527
15528int
15529main ()
15530{
15531
15532 ;
15533 return 0;
15534}
15535_ACEOF
15536if ac_fn_c_try_link "$LINENO"; then :
15537
cristyda16f162011-02-19 23:52:17 +000015538 lt_aix_libpath_sed='
15539 /Import File Strings/,/^$/ {
15540 /^0/ {
15541 s/^0 *\([^ ]*\) *$/\1/
15542 p
15543 }
15544 }'
15545 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15546 # Check for a 64-bit object if we didn't find anything.
15547 if test -z "$lt_cv_aix_libpath_"; then
15548 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15549 fi
cristy73bd4a52010-10-05 11:24:23 +000015550fi
15551rm -f core conftest.err conftest.$ac_objext \
15552 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015553 if test -z "$lt_cv_aix_libpath_"; then
15554 lt_cv_aix_libpath_="/usr/lib:/lib"
15555 fi
15556
15557fi
15558
15559 aix_libpath=$lt_cv_aix_libpath_
15560fi
cristy73bd4a52010-10-05 11:24:23 +000015561
15562 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000015563 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 +000015564 else
15565 if test "$host_cpu" = ia64; then
15566 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15567 allow_undefined_flag="-z nodefs"
15568 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"
15569 else
15570 # Determine the default libpath from the value encoded in an
15571 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015572 if test "${lt_cv_aix_libpath+set}" = set; then
15573 aix_libpath=$lt_cv_aix_libpath
15574else
15575 if ${lt_cv_aix_libpath_+:} false; then :
15576 $as_echo_n "(cached) " >&6
15577else
15578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015579/* end confdefs.h. */
15580
15581int
15582main ()
15583{
15584
15585 ;
15586 return 0;
15587}
15588_ACEOF
15589if ac_fn_c_try_link "$LINENO"; then :
15590
cristyda16f162011-02-19 23:52:17 +000015591 lt_aix_libpath_sed='
15592 /Import File Strings/,/^$/ {
15593 /^0/ {
15594 s/^0 *\([^ ]*\) *$/\1/
15595 p
15596 }
15597 }'
15598 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15599 # Check for a 64-bit object if we didn't find anything.
15600 if test -z "$lt_cv_aix_libpath_"; then
15601 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15602 fi
cristy73bd4a52010-10-05 11:24:23 +000015603fi
15604rm -f core conftest.err conftest.$ac_objext \
15605 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015606 if test -z "$lt_cv_aix_libpath_"; then
15607 lt_cv_aix_libpath_="/usr/lib:/lib"
15608 fi
15609
15610fi
15611
15612 aix_libpath=$lt_cv_aix_libpath_
15613fi
cristy73bd4a52010-10-05 11:24:23 +000015614
15615 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15616 # Warning - without using the other run time loading flags,
15617 # -berok will link without error, but may produce a broken library.
15618 no_undefined_flag=' ${wl}-bernotok'
15619 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000015620 if test "$with_gnu_ld" = yes; then
15621 # We only use this code for GNU lds that support --whole-archive.
15622 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15623 else
15624 # Exported symbols can be pulled into shared objects from archives
15625 whole_archive_flag_spec='$convenience'
15626 fi
cristy73bd4a52010-10-05 11:24:23 +000015627 archive_cmds_need_lc=yes
15628 # This is similar to how AIX traditionally builds its shared libraries.
15629 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'
15630 fi
15631 fi
15632 ;;
15633
15634 amigaos*)
15635 case $host_cpu in
15636 powerpc)
15637 # see comment about AmigaOS4 .so support
15638 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15639 archive_expsym_cmds=''
15640 ;;
15641 m68k)
15642 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)'
15643 hardcode_libdir_flag_spec='-L$libdir'
15644 hardcode_minus_L=yes
15645 ;;
15646 esac
15647 ;;
15648
15649 bsdi[45]*)
15650 export_dynamic_flag_spec=-rdynamic
15651 ;;
15652
15653 cygwin* | mingw* | pw32* | cegcc*)
15654 # When not using gcc, we currently assume that we are using
15655 # Microsoft Visual C++.
15656 # hardcode_libdir_flag_spec is actually meaningless, as there is
15657 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000015658 case $cc_basename in
15659 cl*)
15660 # Native MSVC
15661 hardcode_libdir_flag_spec=' '
15662 allow_undefined_flag=unsupported
15663 always_export_symbols=yes
15664 file_list_spec='@'
15665 # Tell ltmain to make .lib files, not .a files.
15666 libext=lib
15667 # Tell ltmain to make .dll files, not .so files.
15668 shrext_cmds=".dll"
15669 # FIXME: Setting linknames here is a bad hack.
15670 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15671 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15672 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15673 else
15674 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15675 fi~
15676 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15677 linknames='
15678 # The linker will not automatically build a static lib if we build a DLL.
15679 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15680 enable_shared_with_static_runtimes=yes
cristy99bd5232011-12-07 14:38:20 +000015681 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
cristyda16f162011-02-19 23:52:17 +000015682 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15683 # Don't use ranlib
15684 old_postinstall_cmds='chmod 644 $oldlib'
15685 postlink_cmds='lt_outputfile="@OUTPUT@"~
15686 lt_tool_outputfile="@TOOL_OUTPUT@"~
15687 case $lt_outputfile in
15688 *.exe|*.EXE) ;;
15689 *)
15690 lt_outputfile="$lt_outputfile.exe"
15691 lt_tool_outputfile="$lt_tool_outputfile.exe"
15692 ;;
15693 esac~
15694 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15695 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15696 $RM "$lt_outputfile.manifest";
15697 fi'
15698 ;;
15699 *)
15700 # Assume MSVC wrapper
15701 hardcode_libdir_flag_spec=' '
15702 allow_undefined_flag=unsupported
15703 # Tell ltmain to make .lib files, not .a files.
15704 libext=lib
15705 # Tell ltmain to make .dll files, not .so files.
15706 shrext_cmds=".dll"
15707 # FIXME: Setting linknames here is a bad hack.
15708 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15709 # The linker will automatically build a .lib file if we build a DLL.
15710 old_archive_from_new_cmds='true'
15711 # FIXME: Should let the user specify the lib program.
15712 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15713 enable_shared_with_static_runtimes=yes
15714 ;;
15715 esac
cristy73bd4a52010-10-05 11:24:23 +000015716 ;;
15717
15718 darwin* | rhapsody*)
15719
15720
15721 archive_cmds_need_lc=no
15722 hardcode_direct=no
15723 hardcode_automatic=yes
15724 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000015725 if test "$lt_cv_ld_force_load" = "yes"; then
15726 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 +000015727
cristy0c60a692010-11-04 01:09:47 +000015728 else
15729 whole_archive_flag_spec=''
15730 fi
cristy73bd4a52010-10-05 11:24:23 +000015731 link_all_deplibs=yes
15732 allow_undefined_flag="$_lt_dar_allow_undefined"
15733 case $cc_basename in
15734 ifort*) _lt_dar_can_shared=yes ;;
15735 *) _lt_dar_can_shared=$GCC ;;
15736 esac
15737 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000015738 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000015739 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15740 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15741 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}"
15742 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}"
15743
15744 else
15745 ld_shlibs=no
15746 fi
15747
15748 ;;
15749
15750 dgux*)
15751 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15752 hardcode_libdir_flag_spec='-L$libdir'
15753 hardcode_shlibpath_var=no
15754 ;;
15755
cristy73bd4a52010-10-05 11:24:23 +000015756 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15757 # support. Future versions do this automatically, but an explicit c++rt0.o
15758 # does not break anything, and helps significantly (at the cost of a little
15759 # extra space).
15760 freebsd2.2*)
15761 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15762 hardcode_libdir_flag_spec='-R$libdir'
15763 hardcode_direct=yes
15764 hardcode_shlibpath_var=no
15765 ;;
15766
15767 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cristy99bd5232011-12-07 14:38:20 +000015768 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000015769 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15770 hardcode_direct=yes
15771 hardcode_minus_L=yes
15772 hardcode_shlibpath_var=no
15773 ;;
15774
15775 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15776 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000015777 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015778 hardcode_libdir_flag_spec='-R$libdir'
15779 hardcode_direct=yes
15780 hardcode_shlibpath_var=no
15781 ;;
15782
15783 hpux9*)
15784 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015785 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 +000015786 else
15787 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'
15788 fi
15789 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15790 hardcode_libdir_separator=:
15791 hardcode_direct=yes
15792
15793 # hardcode_minus_L: Not really in the search PATH,
15794 # but as the default location of the library.
15795 hardcode_minus_L=yes
15796 export_dynamic_flag_spec='${wl}-E'
15797 ;;
15798
15799 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000015800 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000015801 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 +000015802 else
15803 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15804 fi
15805 if test "$with_gnu_ld" = no; then
15806 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cristy73bd4a52010-10-05 11:24:23 +000015807 hardcode_libdir_separator=:
15808 hardcode_direct=yes
15809 hardcode_direct_absolute=yes
15810 export_dynamic_flag_spec='${wl}-E'
15811 # hardcode_minus_L: Not really in the search PATH,
15812 # but as the default location of the library.
15813 hardcode_minus_L=yes
15814 fi
15815 ;;
15816
15817 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000015818 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000015819 case $host_cpu in
15820 hppa*64*)
15821 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15822 ;;
15823 ia64*)
cristyda16f162011-02-19 23:52:17 +000015824 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015825 ;;
15826 *)
cristyda16f162011-02-19 23:52:17 +000015827 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 +000015828 ;;
15829 esac
15830 else
15831 case $host_cpu in
15832 hppa*64*)
15833 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15834 ;;
15835 ia64*)
15836 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15837 ;;
15838 *)
cristy0c60a692010-11-04 01:09:47 +000015839
15840 # Older versions of the 11.00 compiler do not understand -b yet
15841 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15843$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015844if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015845 $as_echo_n "(cached) " >&6
15846else
15847 lt_cv_prog_compiler__b=no
15848 save_LDFLAGS="$LDFLAGS"
15849 LDFLAGS="$LDFLAGS -b"
15850 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15851 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15852 # The linker can only warn and ignore the option if not recognized
15853 # So say no if there are warnings
15854 if test -s conftest.err; then
15855 # Append any errors to the config.log.
15856 cat conftest.err 1>&5
15857 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15858 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15859 if diff conftest.exp conftest.er2 >/dev/null; then
15860 lt_cv_prog_compiler__b=yes
15861 fi
15862 else
15863 lt_cv_prog_compiler__b=yes
15864 fi
15865 fi
15866 $RM -r conftest*
15867 LDFLAGS="$save_LDFLAGS"
15868
15869fi
15870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15871$as_echo "$lt_cv_prog_compiler__b" >&6; }
15872
15873if test x"$lt_cv_prog_compiler__b" = xyes; then
15874 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15875else
15876 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15877fi
15878
cristy73bd4a52010-10-05 11:24:23 +000015879 ;;
15880 esac
15881 fi
15882 if test "$with_gnu_ld" = no; then
15883 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15884 hardcode_libdir_separator=:
15885
15886 case $host_cpu in
15887 hppa*64*|ia64*)
15888 hardcode_direct=no
15889 hardcode_shlibpath_var=no
15890 ;;
15891 *)
15892 hardcode_direct=yes
15893 hardcode_direct_absolute=yes
15894 export_dynamic_flag_spec='${wl}-E'
15895
15896 # hardcode_minus_L: Not really in the search PATH,
15897 # but as the default location of the library.
15898 hardcode_minus_L=yes
15899 ;;
15900 esac
15901 fi
15902 ;;
15903
15904 irix5* | irix6* | nonstopux*)
15905 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015906 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 +000015907 # Try to use the -exported_symbol ld option, if it does not
15908 # work, assume that -exports_file does not work either and
15909 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000015910 # This should be the same for all languages, so no per-tag cache variable.
15911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15912$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15913if ${lt_cv_irix_exported_symbol+:} false; then :
15914 $as_echo_n "(cached) " >&6
15915else
15916 save_LDFLAGS="$LDFLAGS"
15917 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015919/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000015920int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000015921_ACEOF
15922if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000015923 lt_cv_irix_exported_symbol=yes
15924else
15925 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000015926fi
15927rm -f core conftest.err conftest.$ac_objext \
15928 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015929 LDFLAGS="$save_LDFLAGS"
15930fi
15931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15932$as_echo "$lt_cv_irix_exported_symbol" >&6; }
15933 if test "$lt_cv_irix_exported_symbol" = yes; then
15934 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'
15935 fi
cristy73bd4a52010-10-05 11:24:23 +000015936 else
cristy0c60a692010-11-04 01:09:47 +000015937 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'
15938 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 +000015939 fi
15940 archive_cmds_need_lc='no'
15941 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15942 hardcode_libdir_separator=:
15943 inherit_rpath=yes
15944 link_all_deplibs=yes
15945 ;;
15946
15947 netbsd*)
15948 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15949 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15950 else
15951 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15952 fi
15953 hardcode_libdir_flag_spec='-R$libdir'
15954 hardcode_direct=yes
15955 hardcode_shlibpath_var=no
15956 ;;
15957
15958 newsos6)
15959 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15960 hardcode_direct=yes
15961 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15962 hardcode_libdir_separator=:
15963 hardcode_shlibpath_var=no
15964 ;;
15965
15966 *nto* | *qnx*)
15967 ;;
15968
15969 openbsd*)
15970 if test -f /usr/libexec/ld.so; then
15971 hardcode_direct=yes
15972 hardcode_shlibpath_var=no
15973 hardcode_direct_absolute=yes
15974 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15975 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15976 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15977 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15978 export_dynamic_flag_spec='${wl}-E'
15979 else
15980 case $host_os in
15981 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15982 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15983 hardcode_libdir_flag_spec='-R$libdir'
15984 ;;
15985 *)
15986 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15987 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15988 ;;
15989 esac
15990 fi
15991 else
15992 ld_shlibs=no
15993 fi
15994 ;;
15995
15996 os2*)
15997 hardcode_libdir_flag_spec='-L$libdir'
15998 hardcode_minus_L=yes
15999 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000016000 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 +000016001 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16002 ;;
16003
16004 osf3*)
16005 if test "$GCC" = yes; then
16006 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000016007 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 +000016008 else
16009 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000016010 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 +000016011 fi
16012 archive_cmds_need_lc='no'
16013 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16014 hardcode_libdir_separator=:
16015 ;;
16016
16017 osf4* | osf5*) # as osf3* with the addition of -msym flag
16018 if test "$GCC" = yes; then
16019 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000016020 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 +000016021 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16022 else
16023 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000016024 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 +000016025 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 +000016026 $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 +000016027
16028 # Both c and cxx compiler support -rpath directly
16029 hardcode_libdir_flag_spec='-rpath $libdir'
16030 fi
16031 archive_cmds_need_lc='no'
16032 hardcode_libdir_separator=:
16033 ;;
16034
16035 solaris*)
16036 no_undefined_flag=' -z defs'
16037 if test "$GCC" = yes; then
16038 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000016039 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 +000016040 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 +000016041 $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 +000016042 else
16043 case `$CC -V 2>&1` in
16044 *"Compilers 5.0"*)
16045 wlarc=''
16046 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16047 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16048 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16049 ;;
16050 *)
16051 wlarc='${wl}'
16052 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16053 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16054 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16055 ;;
16056 esac
16057 fi
16058 hardcode_libdir_flag_spec='-R$libdir'
16059 hardcode_shlibpath_var=no
16060 case $host_os in
16061 solaris2.[0-5] | solaris2.[0-5].*) ;;
16062 *)
16063 # The compiler driver will combine and reorder linker options,
16064 # but understands `-z linker_flag'. GCC discards it without `$wl',
16065 # but is careful enough not to reorder.
16066 # Supported since Solaris 2.6 (maybe 2.5.1?)
16067 if test "$GCC" = yes; then
16068 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16069 else
16070 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16071 fi
16072 ;;
16073 esac
16074 link_all_deplibs=yes
16075 ;;
16076
16077 sunos4*)
16078 if test "x$host_vendor" = xsequent; then
16079 # Use $CC to link under sequent, because it throws in some extra .o
16080 # files that make .init and .fini sections work.
16081 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16082 else
16083 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16084 fi
16085 hardcode_libdir_flag_spec='-L$libdir'
16086 hardcode_direct=yes
16087 hardcode_minus_L=yes
16088 hardcode_shlibpath_var=no
16089 ;;
16090
16091 sysv4)
16092 case $host_vendor in
16093 sni)
16094 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16095 hardcode_direct=yes # is this really true???
16096 ;;
16097 siemens)
16098 ## LD is ld it makes a PLAMLIB
16099 ## CC just makes a GrossModule.
16100 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16101 reload_cmds='$CC -r -o $output$reload_objs'
16102 hardcode_direct=no
16103 ;;
16104 motorola)
16105 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16106 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16107 ;;
16108 esac
16109 runpath_var='LD_RUN_PATH'
16110 hardcode_shlibpath_var=no
16111 ;;
16112
16113 sysv4.3*)
16114 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16115 hardcode_shlibpath_var=no
16116 export_dynamic_flag_spec='-Bexport'
16117 ;;
16118
16119 sysv4*MP*)
16120 if test -d /usr/nec; then
16121 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16122 hardcode_shlibpath_var=no
16123 runpath_var=LD_RUN_PATH
16124 hardcode_runpath_var=yes
16125 ld_shlibs=yes
16126 fi
16127 ;;
16128
16129 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16130 no_undefined_flag='${wl}-z,text'
16131 archive_cmds_need_lc=no
16132 hardcode_shlibpath_var=no
16133 runpath_var='LD_RUN_PATH'
16134
16135 if test "$GCC" = yes; then
16136 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16137 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16138 else
16139 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16140 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16141 fi
16142 ;;
16143
16144 sysv5* | sco3.2v5* | sco5v6*)
16145 # Note: We can NOT use -z defs as we might desire, because we do not
16146 # link with -lc, and that would cause any symbols used from libc to
16147 # always be unresolved, which means just about no library would
16148 # ever link correctly. If we're not using GNU ld we use -z text
16149 # though, which does catch some bad symbols but isn't as heavy-handed
16150 # as -z defs.
16151 no_undefined_flag='${wl}-z,text'
16152 allow_undefined_flag='${wl}-z,nodefs'
16153 archive_cmds_need_lc=no
16154 hardcode_shlibpath_var=no
16155 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16156 hardcode_libdir_separator=':'
16157 link_all_deplibs=yes
16158 export_dynamic_flag_spec='${wl}-Bexport'
16159 runpath_var='LD_RUN_PATH'
16160
16161 if test "$GCC" = yes; then
16162 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16163 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16164 else
16165 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16166 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16167 fi
16168 ;;
16169
16170 uts4*)
16171 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16172 hardcode_libdir_flag_spec='-L$libdir'
16173 hardcode_shlibpath_var=no
16174 ;;
16175
16176 *)
16177 ld_shlibs=no
16178 ;;
16179 esac
16180
16181 if test x$host_vendor = xsni; then
16182 case $host in
16183 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16184 export_dynamic_flag_spec='${wl}-Blargedynsym'
16185 ;;
16186 esac
16187 fi
16188 fi
16189
16190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16191$as_echo "$ld_shlibs" >&6; }
16192test "$ld_shlibs" = no && can_build_shared=no
16193
16194with_gnu_ld=$with_gnu_ld
16195
16196
16197
16198
16199
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210#
16211# Do we need to explicitly link libc?
16212#
16213case "x$archive_cmds_need_lc" in
16214x|xyes)
16215 # Assume -lc should be added
16216 archive_cmds_need_lc=yes
16217
16218 if test "$enable_shared" = yes && test "$GCC" = yes; then
16219 case $archive_cmds in
16220 *'~'*)
16221 # FIXME: we may have to deal with multi-command sequences.
16222 ;;
16223 '$CC '*)
16224 # Test whether the compiler implicitly links with -lc since on some
16225 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16226 # to ld, don't add -lc before -lgcc.
16227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16228$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016229if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016230 $as_echo_n "(cached) " >&6
16231else
16232 $RM conftest*
16233 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016234
cristy0c60a692010-11-04 01:09:47 +000016235 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000016236 (eval $ac_compile) 2>&5
16237 ac_status=$?
16238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16239 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000016240 soname=conftest
16241 lib=conftest
16242 libobjs=conftest.$ac_objext
16243 deplibs=
16244 wl=$lt_prog_compiler_wl
16245 pic_flag=$lt_prog_compiler_pic
16246 compiler_flags=-v
16247 linker_flags=-v
16248 verstring=
16249 output_objdir=.
16250 libname=conftest
16251 lt_save_allow_undefined_flag=$allow_undefined_flag
16252 allow_undefined_flag=
16253 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 +000016254 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16255 ac_status=$?
16256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16257 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000016258 then
16259 lt_cv_archive_cmds_need_lc=no
16260 else
16261 lt_cv_archive_cmds_need_lc=yes
16262 fi
16263 allow_undefined_flag=$lt_save_allow_undefined_flag
16264 else
16265 cat conftest.err 1>&5
16266 fi
16267 $RM conftest*
16268
16269fi
16270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16271$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16272 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000016273 ;;
16274 esac
16275 fi
16276 ;;
16277esac
16278
16279
16280
16281
16282
16283
16284
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298
16299
16300
16301
16302
16303
16304
16305
16306
16307
16308
16309
16310
16311
16312
16313
16314
16315
16316
16317
16318
16319
16320
16321
16322
16323
16324
16325
16326
16327
16328
16329
16330
16331
16332
16333
16334
16335
16336
16337
16338
16339
16340
16341
16342
16343
16344
16345
16346
16347
16348
16349
16350
16351
16352
16353
16354
16355
16356
16357
16358
16359
16360
16361
16362
16363
16364
16365
16366
16367
16368
16369
16370
16371
16372
16373
16374
16375
16376
16377
16378
16379
16380
16381
16382
16383
16384
16385
16386
16387
16388
16389
16390
16391
16392
16393
16394
16395
16396
16397
16398
16399
16400
16401
16402
16403
16404
16405
16406
16407
16408
16409
16410
16411
16412
16413
16414
16415
16416
16417
16418
16419
16420
16421
16422
16423
16424
16425
16426
16427
16428
16429
cristy73bd4a52010-10-05 11:24:23 +000016430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16431$as_echo_n "checking dynamic linker characteristics... " >&6; }
16432
16433if test "$GCC" = yes; then
16434 case $host_os in
16435 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16436 *) lt_awk_arg="/^libraries:/" ;;
16437 esac
cristy0c60a692010-11-04 01:09:47 +000016438 case $host_os in
16439 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16440 *) lt_sed_strip_eq="s,=/,/,g" ;;
16441 esac
16442 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16443 case $lt_search_path_spec in
16444 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000016445 # if the path contains ";" then we assume it to be the separator
16446 # otherwise default to the standard path separator (i.e. ":") - it is
16447 # assumed that no part of a normal pathname contains ";" but that should
16448 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000016449 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16450 ;;
16451 *)
16452 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16453 ;;
16454 esac
cristy73bd4a52010-10-05 11:24:23 +000016455 # Ok, now we have the path, separated by spaces, we can step through it
16456 # and add multilib dir if necessary.
16457 lt_tmp_lt_search_path_spec=
16458 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16459 for lt_sys_path in $lt_search_path_spec; do
16460 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16461 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16462 else
16463 test -d "$lt_sys_path" && \
16464 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16465 fi
16466 done
cristy0c60a692010-11-04 01:09:47 +000016467 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000016468BEGIN {RS=" "; FS="/|\n";} {
16469 lt_foo="";
16470 lt_count=0;
16471 for (lt_i = NF; lt_i > 0; lt_i--) {
16472 if ($lt_i != "" && $lt_i != ".") {
16473 if ($lt_i == "..") {
16474 lt_count++;
16475 } else {
16476 if (lt_count == 0) {
16477 lt_foo="/" $lt_i lt_foo;
16478 } else {
16479 lt_count--;
16480 }
16481 }
16482 }
16483 }
16484 if (lt_foo != "") { lt_freq[lt_foo]++; }
16485 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16486}'`
cristy0c60a692010-11-04 01:09:47 +000016487 # AWK program above erroneously prepends '/' to C:/dos/paths
16488 # for these hosts.
16489 case $host_os in
16490 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16491 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16492 esac
16493 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000016494else
16495 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16496fi
16497library_names_spec=
16498libname_spec='lib$name'
16499soname_spec=
16500shrext_cmds=".so"
16501postinstall_cmds=
16502postuninstall_cmds=
16503finish_cmds=
16504finish_eval=
16505shlibpath_var=
16506shlibpath_overrides_runpath=unknown
16507version_type=none
16508dynamic_linker="$host_os ld.so"
16509sys_lib_dlsearch_path_spec="/lib /usr/lib"
16510need_lib_prefix=unknown
16511hardcode_into_libs=no
16512
16513# when you set need_version to no, make sure it does not cause -set_version
16514# flags to be left without arguments
16515need_version=unknown
16516
16517case $host_os in
16518aix3*)
cristy99bd5232011-12-07 14:38:20 +000016519 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016520 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16521 shlibpath_var=LIBPATH
16522
16523 # AIX 3 has no versioning support, so we append a major version to the name.
16524 soname_spec='${libname}${release}${shared_ext}$major'
16525 ;;
16526
16527aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000016528 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016529 need_lib_prefix=no
16530 need_version=no
16531 hardcode_into_libs=yes
16532 if test "$host_cpu" = ia64; then
16533 # AIX 5 supports IA64
16534 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16535 shlibpath_var=LD_LIBRARY_PATH
16536 else
16537 # With GCC up to 2.95.x, collect2 would create an import file
16538 # for dependence libraries. The import file would start with
16539 # the line `#! .'. This would cause the generated library to
16540 # depend on `.', always an invalid library. This was fixed in
16541 # development snapshots of GCC prior to 3.0.
16542 case $host_os in
16543 aix4 | aix4.[01] | aix4.[01].*)
16544 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16545 echo ' yes '
16546 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16547 :
16548 else
16549 can_build_shared=no
16550 fi
16551 ;;
16552 esac
16553 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16554 # soname into executable. Probably we can add versioning support to
16555 # collect2, so additional links can be useful in future.
16556 if test "$aix_use_runtimelinking" = yes; then
16557 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16558 # instead of lib<name>.a to let people know that these are not
16559 # typical AIX shared libraries.
16560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16561 else
16562 # We preserve .a as extension for shared libraries through AIX4.2
16563 # and later when we are not doing run time linking.
16564 library_names_spec='${libname}${release}.a $libname.a'
16565 soname_spec='${libname}${release}${shared_ext}$major'
16566 fi
16567 shlibpath_var=LIBPATH
16568 fi
16569 ;;
16570
16571amigaos*)
16572 case $host_cpu in
16573 powerpc)
16574 # Since July 2007 AmigaOS4 officially supports .so libraries.
16575 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16577 ;;
16578 m68k)
16579 library_names_spec='$libname.ixlibrary $libname.a'
16580 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000016581 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 +000016582 ;;
16583 esac
16584 ;;
16585
16586beos*)
16587 library_names_spec='${libname}${shared_ext}'
16588 dynamic_linker="$host_os ld.so"
16589 shlibpath_var=LIBRARY_PATH
16590 ;;
16591
16592bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000016593 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016594 need_version=no
16595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16596 soname_spec='${libname}${release}${shared_ext}$major'
16597 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16598 shlibpath_var=LD_LIBRARY_PATH
16599 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16600 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16601 # the default ld.so.conf also contains /usr/contrib/lib and
16602 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16603 # libtool to hard-code these into programs
16604 ;;
16605
16606cygwin* | mingw* | pw32* | cegcc*)
16607 version_type=windows
16608 shrext_cmds=".dll"
16609 need_version=no
16610 need_lib_prefix=no
16611
cristyda16f162011-02-19 23:52:17 +000016612 case $GCC,$cc_basename in
16613 yes,*)
16614 # gcc
cristy73bd4a52010-10-05 11:24:23 +000016615 library_names_spec='$libname.dll.a'
16616 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16617 postinstall_cmds='base_file=`basename \${file}`~
16618 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16619 dldir=$destdir/`dirname \$dlpath`~
16620 test -d \$dldir || mkdir -p \$dldir~
16621 $install_prog $dir/$dlname \$dldir/$dlname~
16622 chmod a+x \$dldir/$dlname~
16623 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16624 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16625 fi'
16626 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16627 dlpath=$dir/\$dldll~
16628 $RM \$dlpath'
16629 shlibpath_overrides_runpath=yes
16630
16631 case $host_os in
16632 cygwin*)
16633 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16634 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000016635
16636 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000016637 ;;
16638 mingw* | cegcc*)
16639 # MinGW DLLs use traditional 'lib' prefix
16640 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000016641 ;;
16642 pw32*)
16643 # pw32 DLLs use 'pw' prefix rather than 'lib'
16644 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16645 ;;
16646 esac
cristyda16f162011-02-19 23:52:17 +000016647 dynamic_linker='Win32 ld.exe'
16648 ;;
16649
16650 *,cl*)
16651 # Native MSVC
16652 libname_spec='$name'
16653 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16654 library_names_spec='${libname}.dll.lib'
16655
16656 case $build_os in
16657 mingw*)
16658 sys_lib_search_path_spec=
16659 lt_save_ifs=$IFS
16660 IFS=';'
16661 for lt_path in $LIB
16662 do
16663 IFS=$lt_save_ifs
16664 # Let DOS variable expansion print the short 8.3 style file name.
16665 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16666 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16667 done
16668 IFS=$lt_save_ifs
16669 # Convert to MSYS style.
16670 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16671 ;;
16672 cygwin*)
16673 # Convert to unix form, then to dos form, then back to unix form
16674 # but this time dos style (no spaces!) so that the unix form looks
16675 # like /cygdrive/c/PROGRA~1:/cygdr...
16676 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16677 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16678 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16679 ;;
16680 *)
16681 sys_lib_search_path_spec="$LIB"
16682 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16683 # It is most probably a Windows format PATH.
16684 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16685 else
16686 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16687 fi
16688 # FIXME: find the short name or the path components, as spaces are
16689 # common. (e.g. "Program Files" -> "PROGRA~1")
16690 ;;
16691 esac
16692
16693 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16694 postinstall_cmds='base_file=`basename \${file}`~
16695 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16696 dldir=$destdir/`dirname \$dlpath`~
16697 test -d \$dldir || mkdir -p \$dldir~
16698 $install_prog $dir/$dlname \$dldir/$dlname'
16699 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16700 dlpath=$dir/\$dldll~
16701 $RM \$dlpath'
16702 shlibpath_overrides_runpath=yes
16703 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000016704 ;;
16705
16706 *)
cristyda16f162011-02-19 23:52:17 +000016707 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000016708 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000016709 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000016710 ;;
16711 esac
cristy73bd4a52010-10-05 11:24:23 +000016712 # FIXME: first we should search . and the directory the executable is in
16713 shlibpath_var=PATH
16714 ;;
16715
16716darwin* | rhapsody*)
16717 dynamic_linker="$host_os dyld"
16718 version_type=darwin
16719 need_lib_prefix=no
16720 need_version=no
16721 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16722 soname_spec='${libname}${release}${major}$shared_ext'
16723 shlibpath_overrides_runpath=yes
16724 shlibpath_var=DYLD_LIBRARY_PATH
16725 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16726
16727 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16728 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16729 ;;
16730
16731dgux*)
cristy99bd5232011-12-07 14:38:20 +000016732 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016733 need_lib_prefix=no
16734 need_version=no
16735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16736 soname_spec='${libname}${release}${shared_ext}$major'
16737 shlibpath_var=LD_LIBRARY_PATH
16738 ;;
16739
cristy73bd4a52010-10-05 11:24:23 +000016740freebsd* | dragonfly*)
16741 # DragonFly does not have aout. When/if they implement a new
16742 # versioning mechanism, adjust this.
16743 if test -x /usr/bin/objformat; then
16744 objformat=`/usr/bin/objformat`
16745 else
16746 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016747 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000016748 *) objformat=elf ;;
16749 esac
16750 fi
16751 version_type=freebsd-$objformat
16752 case $version_type in
16753 freebsd-elf*)
16754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16755 need_version=no
16756 need_lib_prefix=no
16757 ;;
16758 freebsd-*)
16759 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16760 need_version=yes
16761 ;;
16762 esac
16763 shlibpath_var=LD_LIBRARY_PATH
16764 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016765 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000016766 shlibpath_overrides_runpath=yes
16767 ;;
16768 freebsd3.[01]* | freebsdelf3.[01]*)
16769 shlibpath_overrides_runpath=yes
16770 hardcode_into_libs=yes
16771 ;;
16772 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16773 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16774 shlibpath_overrides_runpath=no
16775 hardcode_into_libs=yes
16776 ;;
16777 *) # from 4.6 on, and DragonFly
16778 shlibpath_overrides_runpath=yes
16779 hardcode_into_libs=yes
16780 ;;
16781 esac
16782 ;;
16783
16784gnu*)
cristy99bd5232011-12-07 14:38:20 +000016785 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016786 need_lib_prefix=no
16787 need_version=no
16788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16789 soname_spec='${libname}${release}${shared_ext}$major'
16790 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000016791 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000016792 hardcode_into_libs=yes
16793 ;;
16794
cristy0c60a692010-11-04 01:09:47 +000016795haiku*)
cristy99bd5232011-12-07 14:38:20 +000016796 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000016797 need_lib_prefix=no
16798 need_version=no
16799 dynamic_linker="$host_os runtime_loader"
16800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16801 soname_spec='${libname}${release}${shared_ext}$major'
16802 shlibpath_var=LIBRARY_PATH
16803 shlibpath_overrides_runpath=yes
16804 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16805 hardcode_into_libs=yes
16806 ;;
16807
cristy73bd4a52010-10-05 11:24:23 +000016808hpux9* | hpux10* | hpux11*)
16809 # Give a soname corresponding to the major version so that dld.sl refuses to
16810 # link against other versions.
16811 version_type=sunos
16812 need_lib_prefix=no
16813 need_version=no
16814 case $host_cpu in
16815 ia64*)
16816 shrext_cmds='.so'
16817 hardcode_into_libs=yes
16818 dynamic_linker="$host_os dld.so"
16819 shlibpath_var=LD_LIBRARY_PATH
16820 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16822 soname_spec='${libname}${release}${shared_ext}$major'
16823 if test "X$HPUX_IA64_MODE" = X32; then
16824 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16825 else
16826 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16827 fi
16828 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16829 ;;
16830 hppa*64*)
16831 shrext_cmds='.sl'
16832 hardcode_into_libs=yes
16833 dynamic_linker="$host_os dld.sl"
16834 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16835 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16837 soname_spec='${libname}${release}${shared_ext}$major'
16838 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16839 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16840 ;;
16841 *)
16842 shrext_cmds='.sl'
16843 dynamic_linker="$host_os dld.sl"
16844 shlibpath_var=SHLIB_PATH
16845 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16847 soname_spec='${libname}${release}${shared_ext}$major'
16848 ;;
16849 esac
cristy0c60a692010-11-04 01:09:47 +000016850 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000016851 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000016852 # or fails outright, so override atomically:
16853 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000016854 ;;
16855
16856interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000016857 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016858 need_lib_prefix=no
16859 need_version=no
16860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16861 soname_spec='${libname}${release}${shared_ext}$major'
16862 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16863 shlibpath_var=LD_LIBRARY_PATH
16864 shlibpath_overrides_runpath=no
16865 hardcode_into_libs=yes
16866 ;;
16867
16868irix5* | irix6* | nonstopux*)
16869 case $host_os in
16870 nonstopux*) version_type=nonstopux ;;
16871 *)
16872 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000016873 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016874 else
16875 version_type=irix
16876 fi ;;
16877 esac
16878 need_lib_prefix=no
16879 need_version=no
16880 soname_spec='${libname}${release}${shared_ext}$major'
16881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16882 case $host_os in
16883 irix5* | nonstopux*)
16884 libsuff= shlibsuff=
16885 ;;
16886 *)
16887 case $LD in # libtool.m4 will add one of these switches to LD
16888 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16889 libsuff= shlibsuff= libmagic=32-bit;;
16890 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16891 libsuff=32 shlibsuff=N32 libmagic=N32;;
16892 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16893 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16894 *) libsuff= shlibsuff= libmagic=never-match;;
16895 esac
16896 ;;
16897 esac
16898 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16899 shlibpath_overrides_runpath=no
16900 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16901 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16902 hardcode_into_libs=yes
16903 ;;
16904
16905# No shared lib support for Linux oldld, aout, or coff.
16906linux*oldld* | linux*aout* | linux*coff*)
16907 dynamic_linker=no
16908 ;;
16909
cristy99bd5232011-12-07 14:38:20 +000016910# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000016911linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000016912 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016913 need_lib_prefix=no
16914 need_version=no
16915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16916 soname_spec='${libname}${release}${shared_ext}$major'
16917 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16918 shlibpath_var=LD_LIBRARY_PATH
16919 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000016920
cristy73bd4a52010-10-05 11:24:23 +000016921 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000016922 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016923 $as_echo_n "(cached) " >&6
16924else
16925 lt_cv_shlibpath_overrides_runpath=no
16926 save_LDFLAGS=$LDFLAGS
16927 save_libdir=$libdir
16928 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16929 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016931/* end confdefs.h. */
16932
16933int
16934main ()
16935{
16936
16937 ;
16938 return 0;
16939}
16940_ACEOF
16941if ac_fn_c_try_link "$LINENO"; then :
16942 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000016943 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000016944fi
16945fi
16946rm -f core conftest.err conftest.$ac_objext \
16947 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016948 LDFLAGS=$save_LDFLAGS
16949 libdir=$save_libdir
16950
16951fi
16952
16953 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000016954
16955 # This implies no fast_install, which is unacceptable.
16956 # Some rework will be needed to allow for fast_install
16957 # before this can be enabled.
16958 hardcode_into_libs=yes
16959
16960 # Add ABI-specific directories to the system library path.
16961 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16962
16963 # Append ld.so.conf contents to the search path
16964 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000016965 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 +000016966 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000016967
cristy73bd4a52010-10-05 11:24:23 +000016968 fi
16969
16970 # We used to test for /lib/ld.so.1 and disable shared libraries on
16971 # powerpc, because MkLinux only supported shared libraries with the
16972 # GNU dynamic linker. Since this was broken with cross compilers,
16973 # most powerpc-linux boxes support dynamic linking these days and
16974 # people can always --disable-shared, the test was removed, and we
16975 # assume the GNU/Linux dynamic linker is in use.
16976 dynamic_linker='GNU/Linux ld.so'
16977 ;;
16978
16979netbsd*)
16980 version_type=sunos
16981 need_lib_prefix=no
16982 need_version=no
16983 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16985 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16986 dynamic_linker='NetBSD (a.out) ld.so'
16987 else
16988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16989 soname_spec='${libname}${release}${shared_ext}$major'
16990 dynamic_linker='NetBSD ld.elf_so'
16991 fi
16992 shlibpath_var=LD_LIBRARY_PATH
16993 shlibpath_overrides_runpath=yes
16994 hardcode_into_libs=yes
16995 ;;
16996
16997newsos6)
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 shlibpath_var=LD_LIBRARY_PATH
17001 shlibpath_overrides_runpath=yes
17002 ;;
17003
17004*nto* | *qnx*)
17005 version_type=qnx
17006 need_lib_prefix=no
17007 need_version=no
17008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17009 soname_spec='${libname}${release}${shared_ext}$major'
17010 shlibpath_var=LD_LIBRARY_PATH
17011 shlibpath_overrides_runpath=no
17012 hardcode_into_libs=yes
17013 dynamic_linker='ldqnx.so'
17014 ;;
17015
17016openbsd*)
17017 version_type=sunos
17018 sys_lib_dlsearch_path_spec="/usr/lib"
17019 need_lib_prefix=no
17020 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17021 case $host_os in
17022 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17023 *) need_version=no ;;
17024 esac
17025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17026 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17027 shlibpath_var=LD_LIBRARY_PATH
17028 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17029 case $host_os in
17030 openbsd2.[89] | openbsd2.[89].*)
17031 shlibpath_overrides_runpath=no
17032 ;;
17033 *)
17034 shlibpath_overrides_runpath=yes
17035 ;;
17036 esac
17037 else
17038 shlibpath_overrides_runpath=yes
17039 fi
17040 ;;
17041
17042os2*)
17043 libname_spec='$name'
17044 shrext_cmds=".dll"
17045 need_lib_prefix=no
17046 library_names_spec='$libname${shared_ext} $libname.a'
17047 dynamic_linker='OS/2 ld.exe'
17048 shlibpath_var=LIBPATH
17049 ;;
17050
17051osf3* | osf4* | osf5*)
17052 version_type=osf
17053 need_lib_prefix=no
17054 need_version=no
17055 soname_spec='${libname}${release}${shared_ext}$major'
17056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17057 shlibpath_var=LD_LIBRARY_PATH
17058 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17059 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17060 ;;
17061
17062rdos*)
17063 dynamic_linker=no
17064 ;;
17065
17066solaris*)
cristy99bd5232011-12-07 14:38:20 +000017067 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017068 need_lib_prefix=no
17069 need_version=no
17070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17071 soname_spec='${libname}${release}${shared_ext}$major'
17072 shlibpath_var=LD_LIBRARY_PATH
17073 shlibpath_overrides_runpath=yes
17074 hardcode_into_libs=yes
17075 # ldd complains unless libraries are executable
17076 postinstall_cmds='chmod +x $lib'
17077 ;;
17078
17079sunos4*)
17080 version_type=sunos
17081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17082 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17083 shlibpath_var=LD_LIBRARY_PATH
17084 shlibpath_overrides_runpath=yes
17085 if test "$with_gnu_ld" = yes; then
17086 need_lib_prefix=no
17087 fi
17088 need_version=yes
17089 ;;
17090
17091sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000017092 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17094 soname_spec='${libname}${release}${shared_ext}$major'
17095 shlibpath_var=LD_LIBRARY_PATH
17096 case $host_vendor in
17097 sni)
17098 shlibpath_overrides_runpath=no
17099 need_lib_prefix=no
17100 runpath_var=LD_RUN_PATH
17101 ;;
17102 siemens)
17103 need_lib_prefix=no
17104 ;;
17105 motorola)
17106 need_lib_prefix=no
17107 need_version=no
17108 shlibpath_overrides_runpath=no
17109 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17110 ;;
17111 esac
17112 ;;
17113
17114sysv4*MP*)
17115 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000017116 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017117 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17118 soname_spec='$libname${shared_ext}.$major'
17119 shlibpath_var=LD_LIBRARY_PATH
17120 fi
17121 ;;
17122
17123sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17124 version_type=freebsd-elf
17125 need_lib_prefix=no
17126 need_version=no
17127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17128 soname_spec='${libname}${release}${shared_ext}$major'
17129 shlibpath_var=LD_LIBRARY_PATH
17130 shlibpath_overrides_runpath=yes
17131 hardcode_into_libs=yes
17132 if test "$with_gnu_ld" = yes; then
17133 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17134 else
17135 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17136 case $host_os in
17137 sco3.2v5*)
17138 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17139 ;;
17140 esac
17141 fi
17142 sys_lib_dlsearch_path_spec='/usr/lib'
17143 ;;
17144
17145tpf*)
17146 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000017147 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017148 need_lib_prefix=no
17149 need_version=no
17150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17151 shlibpath_var=LD_LIBRARY_PATH
17152 shlibpath_overrides_runpath=no
17153 hardcode_into_libs=yes
17154 ;;
17155
17156uts4*)
cristy99bd5232011-12-07 14:38:20 +000017157 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17159 soname_spec='${libname}${release}${shared_ext}$major'
17160 shlibpath_var=LD_LIBRARY_PATH
17161 ;;
17162
17163*)
17164 dynamic_linker=no
17165 ;;
17166esac
17167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17168$as_echo "$dynamic_linker" >&6; }
17169test "$dynamic_linker" = no && can_build_shared=no
17170
17171variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17172if test "$GCC" = yes; then
17173 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17174fi
17175
17176if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17177 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17178fi
17179if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17180 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17181fi
17182
17183
17184
17185
17186
17187
17188
17189
17190
17191
17192
17193
17194
17195
17196
17197
17198
17199
17200
17201
17202
17203
17204
17205
17206
17207
17208
17209
17210
17211
17212
17213
17214
17215
17216
17217
17218
17219
17220
17221
17222
17223
17224
17225
17226
17227
17228
17229
17230
17231
17232
17233
17234
17235
17236
17237
17238
17239
17240
17241
17242
17243
17244
17245
17246
17247
17248
17249
17250
17251
17252
17253
17254
17255
17256
17257
17258
17259
17260
17261
17262
17263
17264
17265
17266
17267
17268
cristy0c60a692010-11-04 01:09:47 +000017269
17270
17271
17272
17273
cristy73bd4a52010-10-05 11:24:23 +000017274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17275$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17276hardcode_action=
17277if test -n "$hardcode_libdir_flag_spec" ||
17278 test -n "$runpath_var" ||
17279 test "X$hardcode_automatic" = "Xyes" ; then
17280
17281 # We can hardcode non-existent directories.
17282 if test "$hardcode_direct" != no &&
17283 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17284 # have to relink, otherwise we might link with an installed library
17285 # when we should be linking with a yet-to-be-installed one
17286 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17287 test "$hardcode_minus_L" != no; then
17288 # Linking always hardcodes the temporary library directory.
17289 hardcode_action=relink
17290 else
17291 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17292 hardcode_action=immediate
17293 fi
17294else
17295 # We cannot hardcode anything, or else we can only hardcode existing
17296 # directories.
17297 hardcode_action=unsupported
17298fi
17299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17300$as_echo "$hardcode_action" >&6; }
17301
17302if test "$hardcode_action" = relink ||
17303 test "$inherit_rpath" = yes; then
17304 # Fast installation is not supported
17305 enable_fast_install=no
17306elif test "$shlibpath_overrides_runpath" = yes ||
17307 test "$enable_shared" = no; then
17308 # Fast installation is not necessary
17309 enable_fast_install=needless
17310fi
17311
17312
17313
17314
17315
17316
17317 if test "x$enable_dlopen" != xyes; then
17318 enable_dlopen=unknown
17319 enable_dlopen_self=unknown
17320 enable_dlopen_self_static=unknown
17321else
17322 lt_cv_dlopen=no
17323 lt_cv_dlopen_libs=
17324
17325 case $host_os in
17326 beos*)
17327 lt_cv_dlopen="load_add_on"
17328 lt_cv_dlopen_libs=
17329 lt_cv_dlopen_self=yes
17330 ;;
17331
17332 mingw* | pw32* | cegcc*)
17333 lt_cv_dlopen="LoadLibrary"
17334 lt_cv_dlopen_libs=
17335 ;;
17336
17337 cygwin*)
17338 lt_cv_dlopen="dlopen"
17339 lt_cv_dlopen_libs=
17340 ;;
17341
17342 darwin*)
17343 # if libdl is installed we need to link against it
17344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17345$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017346if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017347 $as_echo_n "(cached) " >&6
17348else
17349 ac_check_lib_save_LIBS=$LIBS
17350LIBS="-ldl $LIBS"
17351cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17352/* end confdefs.h. */
17353
17354/* Override any GCC internal prototype to avoid an error.
17355 Use char because int might match the return type of a GCC
17356 builtin and then its argument prototype would still apply. */
17357#ifdef __cplusplus
17358extern "C"
17359#endif
17360char dlopen ();
17361int
17362main ()
17363{
17364return dlopen ();
17365 ;
17366 return 0;
17367}
17368_ACEOF
17369if ac_fn_c_try_link "$LINENO"; then :
17370 ac_cv_lib_dl_dlopen=yes
17371else
17372 ac_cv_lib_dl_dlopen=no
17373fi
17374rm -f core conftest.err conftest.$ac_objext \
17375 conftest$ac_exeext conftest.$ac_ext
17376LIBS=$ac_check_lib_save_LIBS
17377fi
17378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17379$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017380if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017381 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17382else
17383
17384 lt_cv_dlopen="dyld"
17385 lt_cv_dlopen_libs=
17386 lt_cv_dlopen_self=yes
17387
17388fi
17389
17390 ;;
17391
17392 *)
17393 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000017394if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017395 lt_cv_dlopen="shl_load"
17396else
17397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17398$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017399if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017400 $as_echo_n "(cached) " >&6
17401else
17402 ac_check_lib_save_LIBS=$LIBS
17403LIBS="-ldld $LIBS"
17404cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17405/* end confdefs.h. */
17406
17407/* Override any GCC internal prototype to avoid an error.
17408 Use char because int might match the return type of a GCC
17409 builtin and then its argument prototype would still apply. */
17410#ifdef __cplusplus
17411extern "C"
17412#endif
17413char shl_load ();
17414int
17415main ()
17416{
17417return shl_load ();
17418 ;
17419 return 0;
17420}
17421_ACEOF
17422if ac_fn_c_try_link "$LINENO"; then :
17423 ac_cv_lib_dld_shl_load=yes
17424else
17425 ac_cv_lib_dld_shl_load=no
17426fi
17427rm -f core conftest.err conftest.$ac_objext \
17428 conftest$ac_exeext conftest.$ac_ext
17429LIBS=$ac_check_lib_save_LIBS
17430fi
17431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17432$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000017433if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017434 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17435else
17436 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000017437if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017438 lt_cv_dlopen="dlopen"
17439else
17440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17441$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017442if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017443 $as_echo_n "(cached) " >&6
17444else
17445 ac_check_lib_save_LIBS=$LIBS
17446LIBS="-ldl $LIBS"
17447cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17448/* end confdefs.h. */
17449
17450/* Override any GCC internal prototype to avoid an error.
17451 Use char because int might match the return type of a GCC
17452 builtin and then its argument prototype would still apply. */
17453#ifdef __cplusplus
17454extern "C"
17455#endif
17456char dlopen ();
17457int
17458main ()
17459{
17460return dlopen ();
17461 ;
17462 return 0;
17463}
17464_ACEOF
17465if ac_fn_c_try_link "$LINENO"; then :
17466 ac_cv_lib_dl_dlopen=yes
17467else
17468 ac_cv_lib_dl_dlopen=no
17469fi
17470rm -f core conftest.err conftest.$ac_objext \
17471 conftest$ac_exeext conftest.$ac_ext
17472LIBS=$ac_check_lib_save_LIBS
17473fi
17474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17475$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017476if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017477 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17478else
17479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17480$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017481if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017482 $as_echo_n "(cached) " >&6
17483else
17484 ac_check_lib_save_LIBS=$LIBS
17485LIBS="-lsvld $LIBS"
17486cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17487/* end confdefs.h. */
17488
17489/* Override any GCC internal prototype to avoid an error.
17490 Use char because int might match the return type of a GCC
17491 builtin and then its argument prototype would still apply. */
17492#ifdef __cplusplus
17493extern "C"
17494#endif
17495char dlopen ();
17496int
17497main ()
17498{
17499return dlopen ();
17500 ;
17501 return 0;
17502}
17503_ACEOF
17504if ac_fn_c_try_link "$LINENO"; then :
17505 ac_cv_lib_svld_dlopen=yes
17506else
17507 ac_cv_lib_svld_dlopen=no
17508fi
17509rm -f core conftest.err conftest.$ac_objext \
17510 conftest$ac_exeext conftest.$ac_ext
17511LIBS=$ac_check_lib_save_LIBS
17512fi
17513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17514$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017515if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017516 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17517else
17518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17519$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017520if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017521 $as_echo_n "(cached) " >&6
17522else
17523 ac_check_lib_save_LIBS=$LIBS
17524LIBS="-ldld $LIBS"
17525cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17526/* end confdefs.h. */
17527
17528/* Override any GCC internal prototype to avoid an error.
17529 Use char because int might match the return type of a GCC
17530 builtin and then its argument prototype would still apply. */
17531#ifdef __cplusplus
17532extern "C"
17533#endif
17534char dld_link ();
17535int
17536main ()
17537{
17538return dld_link ();
17539 ;
17540 return 0;
17541}
17542_ACEOF
17543if ac_fn_c_try_link "$LINENO"; then :
17544 ac_cv_lib_dld_dld_link=yes
17545else
17546 ac_cv_lib_dld_dld_link=no
17547fi
17548rm -f core conftest.err conftest.$ac_objext \
17549 conftest$ac_exeext conftest.$ac_ext
17550LIBS=$ac_check_lib_save_LIBS
17551fi
17552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17553$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000017554if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017555 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17556fi
17557
17558
17559fi
17560
17561
17562fi
17563
17564
17565fi
17566
17567
17568fi
17569
17570
17571fi
17572
17573 ;;
17574 esac
17575
17576 if test "x$lt_cv_dlopen" != xno; then
17577 enable_dlopen=yes
17578 else
17579 enable_dlopen=no
17580 fi
17581
17582 case $lt_cv_dlopen in
17583 dlopen)
17584 save_CPPFLAGS="$CPPFLAGS"
17585 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17586
17587 save_LDFLAGS="$LDFLAGS"
17588 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17589
17590 save_LIBS="$LIBS"
17591 LIBS="$lt_cv_dlopen_libs $LIBS"
17592
17593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17594$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017595if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017596 $as_echo_n "(cached) " >&6
17597else
17598 if test "$cross_compiling" = yes; then :
17599 lt_cv_dlopen_self=cross
17600else
17601 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17602 lt_status=$lt_dlunknown
17603 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017604#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017605#include "confdefs.h"
17606
17607#if HAVE_DLFCN_H
17608#include <dlfcn.h>
17609#endif
17610
17611#include <stdio.h>
17612
17613#ifdef RTLD_GLOBAL
17614# define LT_DLGLOBAL RTLD_GLOBAL
17615#else
17616# ifdef DL_GLOBAL
17617# define LT_DLGLOBAL DL_GLOBAL
17618# else
17619# define LT_DLGLOBAL 0
17620# endif
17621#endif
17622
17623/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17624 find out it does not work in some platform. */
17625#ifndef LT_DLLAZY_OR_NOW
17626# ifdef RTLD_LAZY
17627# define LT_DLLAZY_OR_NOW RTLD_LAZY
17628# else
17629# ifdef DL_LAZY
17630# define LT_DLLAZY_OR_NOW DL_LAZY
17631# else
17632# ifdef RTLD_NOW
17633# define LT_DLLAZY_OR_NOW RTLD_NOW
17634# else
17635# ifdef DL_NOW
17636# define LT_DLLAZY_OR_NOW DL_NOW
17637# else
17638# define LT_DLLAZY_OR_NOW 0
17639# endif
17640# endif
17641# endif
17642# endif
17643#endif
17644
cristy0c60a692010-11-04 01:09:47 +000017645/* When -fvisbility=hidden is used, assume the code has been annotated
17646 correspondingly for the symbols needed. */
17647#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017648int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017649#endif
17650
cristyda16f162011-02-19 23:52:17 +000017651int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017652int main ()
17653{
17654 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17655 int status = $lt_dlunknown;
17656
17657 if (self)
17658 {
17659 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017660 else
17661 {
17662 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17663 else puts (dlerror ());
17664 }
cristy73bd4a52010-10-05 11:24:23 +000017665 /* dlclose (self); */
17666 }
17667 else
17668 puts (dlerror ());
17669
17670 return status;
17671}
17672_LT_EOF
17673 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17674 (eval $ac_link) 2>&5
17675 ac_status=$?
17676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17677 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17678 (./conftest; exit; ) >&5 2>/dev/null
17679 lt_status=$?
17680 case x$lt_status in
17681 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17682 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17683 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17684 esac
17685 else :
17686 # compilation failed
17687 lt_cv_dlopen_self=no
17688 fi
17689fi
17690rm -fr conftest*
17691
17692
17693fi
17694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17695$as_echo "$lt_cv_dlopen_self" >&6; }
17696
17697 if test "x$lt_cv_dlopen_self" = xyes; then
17698 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17700$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017701if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017702 $as_echo_n "(cached) " >&6
17703else
17704 if test "$cross_compiling" = yes; then :
17705 lt_cv_dlopen_self_static=cross
17706else
17707 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17708 lt_status=$lt_dlunknown
17709 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017710#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017711#include "confdefs.h"
17712
17713#if HAVE_DLFCN_H
17714#include <dlfcn.h>
17715#endif
17716
17717#include <stdio.h>
17718
17719#ifdef RTLD_GLOBAL
17720# define LT_DLGLOBAL RTLD_GLOBAL
17721#else
17722# ifdef DL_GLOBAL
17723# define LT_DLGLOBAL DL_GLOBAL
17724# else
17725# define LT_DLGLOBAL 0
17726# endif
17727#endif
17728
17729/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17730 find out it does not work in some platform. */
17731#ifndef LT_DLLAZY_OR_NOW
17732# ifdef RTLD_LAZY
17733# define LT_DLLAZY_OR_NOW RTLD_LAZY
17734# else
17735# ifdef DL_LAZY
17736# define LT_DLLAZY_OR_NOW DL_LAZY
17737# else
17738# ifdef RTLD_NOW
17739# define LT_DLLAZY_OR_NOW RTLD_NOW
17740# else
17741# ifdef DL_NOW
17742# define LT_DLLAZY_OR_NOW DL_NOW
17743# else
17744# define LT_DLLAZY_OR_NOW 0
17745# endif
17746# endif
17747# endif
17748# endif
17749#endif
17750
cristy0c60a692010-11-04 01:09:47 +000017751/* When -fvisbility=hidden is used, assume the code has been annotated
17752 correspondingly for the symbols needed. */
17753#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017754int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017755#endif
17756
cristyda16f162011-02-19 23:52:17 +000017757int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017758int main ()
17759{
17760 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17761 int status = $lt_dlunknown;
17762
17763 if (self)
17764 {
17765 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017766 else
17767 {
17768 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17769 else puts (dlerror ());
17770 }
cristy73bd4a52010-10-05 11:24:23 +000017771 /* dlclose (self); */
17772 }
17773 else
17774 puts (dlerror ());
17775
17776 return status;
17777}
17778_LT_EOF
17779 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17780 (eval $ac_link) 2>&5
17781 ac_status=$?
17782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17783 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17784 (./conftest; exit; ) >&5 2>/dev/null
17785 lt_status=$?
17786 case x$lt_status in
17787 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17788 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17789 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17790 esac
17791 else :
17792 # compilation failed
17793 lt_cv_dlopen_self_static=no
17794 fi
17795fi
17796rm -fr conftest*
17797
17798
17799fi
17800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17801$as_echo "$lt_cv_dlopen_self_static" >&6; }
17802 fi
17803
17804 CPPFLAGS="$save_CPPFLAGS"
17805 LDFLAGS="$save_LDFLAGS"
17806 LIBS="$save_LIBS"
17807 ;;
17808 esac
17809
17810 case $lt_cv_dlopen_self in
17811 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17812 *) enable_dlopen_self=unknown ;;
17813 esac
17814
17815 case $lt_cv_dlopen_self_static in
17816 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17817 *) enable_dlopen_self_static=unknown ;;
17818 esac
17819fi
17820
17821
17822
17823
17824
17825
17826
17827
17828
17829
17830
17831
17832
17833
17834
17835
17836
17837striplib=
17838old_striplib=
17839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17840$as_echo_n "checking whether stripping libraries is possible... " >&6; }
17841if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17842 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17843 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17845$as_echo "yes" >&6; }
17846else
17847# FIXME - insert some real tests, host_os isn't really good enough
17848 case $host_os in
17849 darwin*)
17850 if test -n "$STRIP" ; then
17851 striplib="$STRIP -x"
17852 old_striplib="$STRIP -S"
17853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17854$as_echo "yes" >&6; }
17855 else
17856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17857$as_echo "no" >&6; }
17858 fi
17859 ;;
17860 *)
17861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17862$as_echo "no" >&6; }
17863 ;;
17864 esac
17865fi
17866
17867
17868
17869
17870
17871
17872
17873
17874
17875
17876
17877
17878 # Report which library types will actually be built
17879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17880$as_echo_n "checking if libtool supports shared libraries... " >&6; }
17881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17882$as_echo "$can_build_shared" >&6; }
17883
17884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17885$as_echo_n "checking whether to build shared libraries... " >&6; }
17886 test "$can_build_shared" = "no" && enable_shared=no
17887
17888 # On AIX, shared libraries and static libraries use the same namespace, and
17889 # are all built from PIC.
17890 case $host_os in
17891 aix3*)
17892 test "$enable_shared" = yes && enable_static=no
17893 if test -n "$RANLIB"; then
17894 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17895 postinstall_cmds='$RANLIB $lib'
17896 fi
17897 ;;
17898
17899 aix[4-9]*)
17900 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17901 test "$enable_shared" = yes && enable_static=no
17902 fi
17903 ;;
17904 esac
17905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17906$as_echo "$enable_shared" >&6; }
17907
17908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17909$as_echo_n "checking whether to build static libraries... " >&6; }
17910 # Make sure either enable_shared or enable_static is yes.
17911 test "$enable_shared" = yes || enable_static=yes
17912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17913$as_echo "$enable_static" >&6; }
17914
17915
17916
17917
17918fi
17919ac_ext=c
17920ac_cpp='$CPP $CPPFLAGS'
17921ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17922ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17923ac_compiler_gnu=$ac_cv_c_compiler_gnu
17924
17925CC="$lt_save_CC"
17926
cristy0c60a692010-11-04 01:09:47 +000017927 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17928 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17929 (test "X$CXX" != "Xg++"))) ; then
17930 ac_ext=cpp
17931ac_cpp='$CXXCPP $CPPFLAGS'
17932ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17933ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17934ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17936$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17937if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000017938 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000017939 $as_echo_n "(cached) " >&6
17940else
17941 # Double quotes because CXXCPP needs to be expanded
17942 for CXXCPP in "$CXX -E" "/lib/cpp"
17943 do
17944 ac_preproc_ok=false
17945for ac_cxx_preproc_warn_flag in '' yes
17946do
17947 # Use a header file that comes with gcc, so configuring glibc
17948 # with a fresh cross-compiler works.
17949 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17950 # <limits.h> exists even on freestanding compilers.
17951 # On the NeXT, cc -E runs the code through the compiler's parser,
17952 # not just through cpp. "Syntax error" is here to catch this case.
17953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17954/* end confdefs.h. */
17955#ifdef __STDC__
17956# include <limits.h>
17957#else
17958# include <assert.h>
17959#endif
17960 Syntax error
17961_ACEOF
17962if ac_fn_cxx_try_cpp "$LINENO"; then :
17963
17964else
17965 # Broken: fails on valid input.
17966continue
17967fi
cristyda16f162011-02-19 23:52:17 +000017968rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017969
17970 # OK, works on sane cases. Now check whether nonexistent headers
17971 # can be detected and how.
17972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17973/* end confdefs.h. */
17974#include <ac_nonexistent.h>
17975_ACEOF
17976if ac_fn_cxx_try_cpp "$LINENO"; then :
17977 # Broken: success on invalid input.
17978continue
17979else
17980 # Passes both tests.
17981ac_preproc_ok=:
17982break
17983fi
cristyda16f162011-02-19 23:52:17 +000017984rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017985
17986done
17987# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017988rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017989if $ac_preproc_ok; then :
17990 break
17991fi
17992
17993 done
17994 ac_cv_prog_CXXCPP=$CXXCPP
17995
17996fi
17997 CXXCPP=$ac_cv_prog_CXXCPP
17998else
17999 ac_cv_prog_CXXCPP=$CXXCPP
18000fi
18001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18002$as_echo "$CXXCPP" >&6; }
18003ac_preproc_ok=false
18004for ac_cxx_preproc_warn_flag in '' yes
18005do
18006 # Use a header file that comes with gcc, so configuring glibc
18007 # with a fresh cross-compiler works.
18008 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18009 # <limits.h> exists even on freestanding compilers.
18010 # On the NeXT, cc -E runs the code through the compiler's parser,
18011 # not just through cpp. "Syntax error" is here to catch this case.
18012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18013/* end confdefs.h. */
18014#ifdef __STDC__
18015# include <limits.h>
18016#else
18017# include <assert.h>
18018#endif
18019 Syntax error
18020_ACEOF
18021if ac_fn_cxx_try_cpp "$LINENO"; then :
18022
18023else
18024 # Broken: fails on valid input.
18025continue
18026fi
cristyda16f162011-02-19 23:52:17 +000018027rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018028
18029 # OK, works on sane cases. Now check whether nonexistent headers
18030 # can be detected and how.
18031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18032/* end confdefs.h. */
18033#include <ac_nonexistent.h>
18034_ACEOF
18035if ac_fn_cxx_try_cpp "$LINENO"; then :
18036 # Broken: success on invalid input.
18037continue
18038else
18039 # Passes both tests.
18040ac_preproc_ok=:
18041break
18042fi
cristyda16f162011-02-19 23:52:17 +000018043rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018044
18045done
18046# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000018047rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018048if $ac_preproc_ok; then :
18049
18050else
18051 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18052$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18053as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
18054See \`config.log' for more details" "$LINENO" 5; }
18055fi
18056
18057ac_ext=c
18058ac_cpp='$CPP $CPPFLAGS'
18059ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18060ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18061ac_compiler_gnu=$ac_cv_c_compiler_gnu
18062
18063else
18064 _lt_caught_CXX_error=yes
18065fi
cristy73bd4a52010-10-05 11:24:23 +000018066
18067ac_ext=cpp
18068ac_cpp='$CXXCPP $CPPFLAGS'
18069ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18070ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18071ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18072
18073archive_cmds_need_lc_CXX=no
18074allow_undefined_flag_CXX=
18075always_export_symbols_CXX=no
18076archive_expsym_cmds_CXX=
18077compiler_needs_object_CXX=no
18078export_dynamic_flag_spec_CXX=
18079hardcode_direct_CXX=no
18080hardcode_direct_absolute_CXX=no
18081hardcode_libdir_flag_spec_CXX=
cristy73bd4a52010-10-05 11:24:23 +000018082hardcode_libdir_separator_CXX=
18083hardcode_minus_L_CXX=no
18084hardcode_shlibpath_var_CXX=unsupported
18085hardcode_automatic_CXX=no
18086inherit_rpath_CXX=no
18087module_cmds_CXX=
18088module_expsym_cmds_CXX=
18089link_all_deplibs_CXX=unknown
18090old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000018091reload_flag_CXX=$reload_flag
18092reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000018093no_undefined_flag_CXX=
18094whole_archive_flag_spec_CXX=
18095enable_shared_with_static_runtimes_CXX=no
18096
18097# Source file extension for C++ test sources.
18098ac_ext=cpp
18099
18100# Object file extension for compiled C++ test sources.
18101objext=o
18102objext_CXX=$objext
18103
18104# No sense in running all these tests if we already determined that
18105# the CXX compiler isn't working. Some variables (like enable_shared)
18106# are currently assumed to apply to all compilers on this platform,
18107# and will be corrupted by setting them based on a non-working compiler.
18108if test "$_lt_caught_CXX_error" != yes; then
18109 # Code to be used in simple compile tests
18110 lt_simple_compile_test_code="int some_variable = 0;"
18111
18112 # Code to be used in simple link tests
18113 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18114
18115 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18116
18117
18118
18119
18120
18121
18122# If no C compiler was specified, use CC.
18123LTCC=${LTCC-"$CC"}
18124
18125# If no C compiler flags were specified, use CFLAGS.
18126LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18127
18128# Allow CC to be a program name with arguments.
18129compiler=$CC
18130
18131
18132 # save warnings/boilerplate of simple test code
18133 ac_outfile=conftest.$ac_objext
18134echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18135eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18136_lt_compiler_boilerplate=`cat conftest.err`
18137$RM conftest*
18138
18139 ac_outfile=conftest.$ac_objext
18140echo "$lt_simple_link_test_code" >conftest.$ac_ext
18141eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18142_lt_linker_boilerplate=`cat conftest.err`
18143$RM -r conftest*
18144
18145
18146 # Allow CC to be a program name with arguments.
18147 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000018148 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018149 lt_save_LD=$LD
18150 lt_save_GCC=$GCC
18151 GCC=$GXX
18152 lt_save_with_gnu_ld=$with_gnu_ld
18153 lt_save_path_LD=$lt_cv_path_LD
18154 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18155 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18156 else
18157 $as_unset lt_cv_prog_gnu_ld
18158 fi
18159 if test -n "${lt_cv_path_LDCXX+set}"; then
18160 lt_cv_path_LD=$lt_cv_path_LDCXX
18161 else
18162 $as_unset lt_cv_path_LD
18163 fi
18164 test -z "${LDCXX+set}" || LD=$LDCXX
18165 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000018166 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018167 compiler=$CC
18168 compiler_CXX=$CC
18169 for cc_temp in $compiler""; do
18170 case $cc_temp in
18171 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18172 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18173 \-*) ;;
18174 *) break;;
18175 esac
18176done
cristy0c60a692010-11-04 01:09:47 +000018177cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000018178
18179
18180 if test -n "$compiler"; then
18181 # We don't want -fno-exception when compiling C++ code, so set the
18182 # no_builtin_flag separately
18183 if test "$GXX" = yes; then
18184 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18185 else
18186 lt_prog_compiler_no_builtin_flag_CXX=
18187 fi
18188
18189 if test "$GXX" = yes; then
18190 # Set up default GNU C++ configuration
18191
18192
18193
18194# Check whether --with-gnu-ld was given.
18195if test "${with_gnu_ld+set}" = set; then :
18196 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18197else
18198 with_gnu_ld=no
18199fi
18200
18201ac_prog=ld
18202if test "$GCC" = yes; then
18203 # Check if gcc -print-prog-name=ld gives a path.
18204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18205$as_echo_n "checking for ld used by $CC... " >&6; }
18206 case $host in
18207 *-*-mingw*)
18208 # gcc leaves a trailing carriage return which upsets mingw
18209 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18210 *)
18211 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18212 esac
18213 case $ac_prog in
18214 # Accept absolute paths.
18215 [\\/]* | ?:[\\/]*)
18216 re_direlt='/[^/][^/]*/\.\./'
18217 # Canonicalize the pathname of ld
18218 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18219 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18220 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18221 done
18222 test -z "$LD" && LD="$ac_prog"
18223 ;;
18224 "")
18225 # If it fails, then pretend we aren't using GCC.
18226 ac_prog=ld
18227 ;;
18228 *)
18229 # If it is relative, then search for the first ld in PATH.
18230 with_gnu_ld=unknown
18231 ;;
18232 esac
18233elif test "$with_gnu_ld" = yes; then
18234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18235$as_echo_n "checking for GNU ld... " >&6; }
18236else
18237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18238$as_echo_n "checking for non-GNU ld... " >&6; }
18239fi
cristyda16f162011-02-19 23:52:17 +000018240if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018241 $as_echo_n "(cached) " >&6
18242else
18243 if test -z "$LD"; then
18244 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18245 for ac_dir in $PATH; do
18246 IFS="$lt_save_ifs"
18247 test -z "$ac_dir" && ac_dir=.
18248 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18249 lt_cv_path_LD="$ac_dir/$ac_prog"
18250 # Check to see if the program is GNU ld. I'd rather use --version,
18251 # but apparently some variants of GNU ld only accept -v.
18252 # Break only if it was the GNU/non-GNU ld that we prefer.
18253 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18254 *GNU* | *'with BFD'*)
18255 test "$with_gnu_ld" != no && break
18256 ;;
18257 *)
18258 test "$with_gnu_ld" != yes && break
18259 ;;
18260 esac
18261 fi
18262 done
18263 IFS="$lt_save_ifs"
18264else
18265 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18266fi
18267fi
18268
18269LD="$lt_cv_path_LD"
18270if test -n "$LD"; then
18271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18272$as_echo "$LD" >&6; }
18273else
18274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18275$as_echo "no" >&6; }
18276fi
cristy98dddb52010-11-04 00:30:15 +000018277test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000018278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18279$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018280if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018281 $as_echo_n "(cached) " >&6
18282else
18283 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18284case `$LD -v 2>&1 </dev/null` in
18285*GNU* | *'with BFD'*)
18286 lt_cv_prog_gnu_ld=yes
18287 ;;
18288*)
18289 lt_cv_prog_gnu_ld=no
18290 ;;
18291esac
18292fi
18293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18294$as_echo "$lt_cv_prog_gnu_ld" >&6; }
18295with_gnu_ld=$lt_cv_prog_gnu_ld
18296
18297
18298
18299
18300
18301
18302
18303 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18304 # archiving commands below assume that GNU ld is being used.
18305 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000018306 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18307 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 +000018308
18309 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18310 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18311
18312 # If archive_cmds runs LD, not CC, wlarc should be empty
18313 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18314 # investigate it a little bit more. (MM)
18315 wlarc='${wl}'
18316
18317 # ancient GNU ld didn't support --whole-archive et. al.
18318 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18319 $GREP 'no-whole-archive' > /dev/null; then
18320 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18321 else
18322 whole_archive_flag_spec_CXX=
18323 fi
18324 else
18325 with_gnu_ld=no
18326 wlarc=
18327
18328 # A generic and very simple default shared library creation
18329 # command for GNU C++ for the case where it uses the native
18330 # linker, instead of GNU ld. If possible, this setting should
18331 # overridden to take advantage of the native linker features on
18332 # the platform it is being used on.
18333 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18334 fi
18335
18336 # Commands to make compiler produce verbose output that lists
18337 # what "hidden" libraries, object files and flags are used when
18338 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018339 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018340
18341 else
18342 GXX=no
18343 with_gnu_ld=no
18344 wlarc=
18345 fi
18346
18347 # PORTME: fill in a description of your system's C++ link characteristics
18348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18349$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18350 ld_shlibs_CXX=yes
18351 case $host_os in
18352 aix3*)
18353 # FIXME: insert proper C++ library support
18354 ld_shlibs_CXX=no
18355 ;;
18356 aix[4-9]*)
18357 if test "$host_cpu" = ia64; then
18358 # On IA64, the linker does run time linking by default, so we don't
18359 # have to do anything special.
18360 aix_use_runtimelinking=no
18361 exp_sym_flag='-Bexport'
18362 no_entry_flag=""
18363 else
18364 aix_use_runtimelinking=no
18365
18366 # Test if we are trying to use run time linking or normal
18367 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18368 # need to do runtime linking.
18369 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18370 for ld_flag in $LDFLAGS; do
18371 case $ld_flag in
18372 *-brtl*)
18373 aix_use_runtimelinking=yes
18374 break
18375 ;;
18376 esac
18377 done
18378 ;;
18379 esac
18380
18381 exp_sym_flag='-bexport'
18382 no_entry_flag='-bnoentry'
18383 fi
18384
18385 # When large executables or shared objects are built, AIX ld can
18386 # have problems creating the table of contents. If linking a library
18387 # or program results in "error TOC overflow" add -mminimal-toc to
18388 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18389 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18390
18391 archive_cmds_CXX=''
18392 hardcode_direct_CXX=yes
18393 hardcode_direct_absolute_CXX=yes
18394 hardcode_libdir_separator_CXX=':'
18395 link_all_deplibs_CXX=yes
18396 file_list_spec_CXX='${wl}-f,'
18397
18398 if test "$GXX" = yes; then
18399 case $host_os in aix4.[012]|aix4.[012].*)
18400 # We only want to do this on AIX 4.2 and lower, the check
18401 # below for broken collect2 doesn't work under 4.3+
18402 collect2name=`${CC} -print-prog-name=collect2`
18403 if test -f "$collect2name" &&
18404 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18405 then
18406 # We have reworked collect2
18407 :
18408 else
18409 # We have old collect2
18410 hardcode_direct_CXX=unsupported
18411 # It fails to find uninstalled libraries when the uninstalled
18412 # path is not listed in the libpath. Setting hardcode_minus_L
18413 # to unsupported forces relinking
18414 hardcode_minus_L_CXX=yes
18415 hardcode_libdir_flag_spec_CXX='-L$libdir'
18416 hardcode_libdir_separator_CXX=
18417 fi
18418 esac
18419 shared_flag='-shared'
18420 if test "$aix_use_runtimelinking" = yes; then
18421 shared_flag="$shared_flag "'${wl}-G'
18422 fi
18423 else
18424 # not using gcc
18425 if test "$host_cpu" = ia64; then
18426 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18427 # chokes on -Wl,-G. The following line is correct:
18428 shared_flag='-G'
18429 else
18430 if test "$aix_use_runtimelinking" = yes; then
18431 shared_flag='${wl}-G'
18432 else
18433 shared_flag='${wl}-bM:SRE'
18434 fi
18435 fi
18436 fi
18437
18438 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18439 # It seems that -bexpall does not export symbols beginning with
18440 # underscore (_), so it is better to generate a list of symbols to
18441 # export.
18442 always_export_symbols_CXX=yes
18443 if test "$aix_use_runtimelinking" = yes; then
18444 # Warning - without using the other runtime loading flags (-brtl),
18445 # -berok will link without error, but may produce a broken library.
18446 allow_undefined_flag_CXX='-berok'
18447 # Determine the default libpath from the value encoded in an empty
18448 # executable.
cristyda16f162011-02-19 23:52:17 +000018449 if test "${lt_cv_aix_libpath+set}" = set; then
18450 aix_libpath=$lt_cv_aix_libpath
18451else
18452 if ${lt_cv_aix_libpath__CXX+:} false; then :
18453 $as_echo_n "(cached) " >&6
18454else
18455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018456/* end confdefs.h. */
18457
18458int
18459main ()
18460{
18461
18462 ;
18463 return 0;
18464}
18465_ACEOF
18466if ac_fn_cxx_try_link "$LINENO"; then :
18467
cristyda16f162011-02-19 23:52:17 +000018468 lt_aix_libpath_sed='
18469 /Import File Strings/,/^$/ {
18470 /^0/ {
18471 s/^0 *\([^ ]*\) *$/\1/
18472 p
18473 }
18474 }'
18475 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18476 # Check for a 64-bit object if we didn't find anything.
18477 if test -z "$lt_cv_aix_libpath__CXX"; then
18478 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18479 fi
cristy73bd4a52010-10-05 11:24:23 +000018480fi
18481rm -f core conftest.err conftest.$ac_objext \
18482 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018483 if test -z "$lt_cv_aix_libpath__CXX"; then
18484 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18485 fi
18486
18487fi
18488
18489 aix_libpath=$lt_cv_aix_libpath__CXX
18490fi
cristy73bd4a52010-10-05 11:24:23 +000018491
18492 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18493
cristy0c60a692010-11-04 01:09:47 +000018494 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 +000018495 else
18496 if test "$host_cpu" = ia64; then
18497 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18498 allow_undefined_flag_CXX="-z nodefs"
18499 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"
18500 else
18501 # Determine the default libpath from the value encoded in an
18502 # empty executable.
cristyda16f162011-02-19 23:52:17 +000018503 if test "${lt_cv_aix_libpath+set}" = set; then
18504 aix_libpath=$lt_cv_aix_libpath
18505else
18506 if ${lt_cv_aix_libpath__CXX+:} false; then :
18507 $as_echo_n "(cached) " >&6
18508else
18509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018510/* end confdefs.h. */
18511
18512int
18513main ()
18514{
18515
18516 ;
18517 return 0;
18518}
18519_ACEOF
18520if ac_fn_cxx_try_link "$LINENO"; then :
18521
cristyda16f162011-02-19 23:52:17 +000018522 lt_aix_libpath_sed='
18523 /Import File Strings/,/^$/ {
18524 /^0/ {
18525 s/^0 *\([^ ]*\) *$/\1/
18526 p
18527 }
18528 }'
18529 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18530 # Check for a 64-bit object if we didn't find anything.
18531 if test -z "$lt_cv_aix_libpath__CXX"; then
18532 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18533 fi
cristy73bd4a52010-10-05 11:24:23 +000018534fi
18535rm -f core conftest.err conftest.$ac_objext \
18536 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018537 if test -z "$lt_cv_aix_libpath__CXX"; then
18538 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18539 fi
18540
18541fi
18542
18543 aix_libpath=$lt_cv_aix_libpath__CXX
18544fi
cristy73bd4a52010-10-05 11:24:23 +000018545
18546 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18547 # Warning - without using the other run time loading flags,
18548 # -berok will link without error, but may produce a broken library.
18549 no_undefined_flag_CXX=' ${wl}-bernotok'
18550 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000018551 if test "$with_gnu_ld" = yes; then
18552 # We only use this code for GNU lds that support --whole-archive.
18553 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18554 else
18555 # Exported symbols can be pulled into shared objects from archives
18556 whole_archive_flag_spec_CXX='$convenience'
18557 fi
cristy73bd4a52010-10-05 11:24:23 +000018558 archive_cmds_need_lc_CXX=yes
18559 # This is similar to how AIX traditionally builds its shared
18560 # libraries.
18561 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'
18562 fi
18563 fi
18564 ;;
18565
18566 beos*)
18567 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18568 allow_undefined_flag_CXX=unsupported
18569 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18570 # support --undefined. This deserves some investigation. FIXME
18571 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18572 else
18573 ld_shlibs_CXX=no
18574 fi
18575 ;;
18576
18577 chorus*)
18578 case $cc_basename in
18579 *)
18580 # FIXME: insert proper C++ library support
18581 ld_shlibs_CXX=no
18582 ;;
18583 esac
18584 ;;
18585
18586 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000018587 case $GXX,$cc_basename in
18588 ,cl* | no,cl*)
18589 # Native MSVC
18590 # hardcode_libdir_flag_spec is actually meaningless, as there is
18591 # no search path for DLLs.
18592 hardcode_libdir_flag_spec_CXX=' '
18593 allow_undefined_flag_CXX=unsupported
18594 always_export_symbols_CXX=yes
18595 file_list_spec_CXX='@'
18596 # Tell ltmain to make .lib files, not .a files.
18597 libext=lib
18598 # Tell ltmain to make .dll files, not .so files.
18599 shrext_cmds=".dll"
18600 # FIXME: Setting linknames here is a bad hack.
18601 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
18602 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18603 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
18604 else
18605 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
18606 fi~
18607 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
18608 linknames='
18609 # The linker will not automatically build a static lib if we build a DLL.
18610 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
18611 enable_shared_with_static_runtimes_CXX=yes
18612 # Don't use ranlib
18613 old_postinstall_cmds_CXX='chmod 644 $oldlib'
18614 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
18615 lt_tool_outputfile="@TOOL_OUTPUT@"~
18616 case $lt_outputfile in
18617 *.exe|*.EXE) ;;
18618 *)
18619 lt_outputfile="$lt_outputfile.exe"
18620 lt_tool_outputfile="$lt_tool_outputfile.exe"
18621 ;;
18622 esac~
18623 func_to_tool_file "$lt_outputfile"~
18624 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
18625 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
18626 $RM "$lt_outputfile.manifest";
18627 fi'
18628 ;;
18629 *)
18630 # g++
18631 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18632 # as there is no search path for DLLs.
18633 hardcode_libdir_flag_spec_CXX='-L$libdir'
18634 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18635 allow_undefined_flag_CXX=unsupported
18636 always_export_symbols_CXX=no
18637 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000018638
cristyda16f162011-02-19 23:52:17 +000018639 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18640 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'
18641 # If the export-symbols file already is a .def file (1st line
18642 # is EXPORTS), use it as is; otherwise, prepend...
18643 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18644 cp $export_symbols $output_objdir/$soname.def;
18645 else
18646 echo EXPORTS > $output_objdir/$soname.def;
18647 cat $export_symbols >> $output_objdir/$soname.def;
18648 fi~
18649 $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'
18650 else
18651 ld_shlibs_CXX=no
18652 fi
18653 ;;
18654 esac
18655 ;;
cristy73bd4a52010-10-05 11:24:23 +000018656 darwin* | rhapsody*)
18657
18658
18659 archive_cmds_need_lc_CXX=no
18660 hardcode_direct_CXX=no
18661 hardcode_automatic_CXX=yes
18662 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000018663 if test "$lt_cv_ld_force_load" = "yes"; then
18664 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 +000018665
cristy0c60a692010-11-04 01:09:47 +000018666 else
18667 whole_archive_flag_spec_CXX=''
18668 fi
cristy73bd4a52010-10-05 11:24:23 +000018669 link_all_deplibs_CXX=yes
18670 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18671 case $cc_basename in
18672 ifort*) _lt_dar_can_shared=yes ;;
18673 *) _lt_dar_can_shared=$GCC ;;
18674 esac
18675 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000018676 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018677 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}"
18678 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18679 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}"
18680 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}"
18681 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18682 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}"
18683 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}"
18684 fi
18685
18686 else
18687 ld_shlibs_CXX=no
18688 fi
18689
18690 ;;
18691
18692 dgux*)
18693 case $cc_basename in
18694 ec++*)
18695 # FIXME: insert proper C++ library support
18696 ld_shlibs_CXX=no
18697 ;;
18698 ghcx*)
18699 # Green Hills C++ Compiler
18700 # FIXME: insert proper C++ library support
18701 ld_shlibs_CXX=no
18702 ;;
18703 *)
18704 # FIXME: insert proper C++ library support
18705 ld_shlibs_CXX=no
18706 ;;
18707 esac
18708 ;;
18709
cristy99bd5232011-12-07 14:38:20 +000018710 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000018711 # C++ shared libraries reported to be fairly broken before
18712 # switch to ELF
18713 ld_shlibs_CXX=no
18714 ;;
18715
18716 freebsd-elf*)
18717 archive_cmds_need_lc_CXX=no
18718 ;;
18719
18720 freebsd* | dragonfly*)
18721 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18722 # conventions
18723 ld_shlibs_CXX=yes
18724 ;;
18725
18726 gnu*)
18727 ;;
18728
cristy0c60a692010-11-04 01:09:47 +000018729 haiku*)
18730 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18731 link_all_deplibs_CXX=yes
18732 ;;
18733
cristy73bd4a52010-10-05 11:24:23 +000018734 hpux9*)
18735 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18736 hardcode_libdir_separator_CXX=:
18737 export_dynamic_flag_spec_CXX='${wl}-E'
18738 hardcode_direct_CXX=yes
18739 hardcode_minus_L_CXX=yes # Not in the search PATH,
18740 # but as the default
18741 # location of the library.
18742
18743 case $cc_basename in
18744 CC*)
18745 # FIXME: insert proper C++ library support
18746 ld_shlibs_CXX=no
18747 ;;
18748 aCC*)
18749 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'
18750 # Commands to make compiler produce verbose output that lists
18751 # what "hidden" libraries, object files and flags are used when
18752 # linking a shared library.
18753 #
18754 # There doesn't appear to be a way to prevent this compiler from
18755 # explicitly linking system object files so we need to strip them
18756 # from the output so that they don't get included in the library
18757 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018758 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 +000018759 ;;
18760 *)
18761 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000018762 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 +000018763 else
18764 # FIXME: insert proper C++ library support
18765 ld_shlibs_CXX=no
18766 fi
18767 ;;
18768 esac
18769 ;;
18770
18771 hpux10*|hpux11*)
18772 if test $with_gnu_ld = no; then
18773 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18774 hardcode_libdir_separator_CXX=:
18775
18776 case $host_cpu in
18777 hppa*64*|ia64*)
18778 ;;
18779 *)
18780 export_dynamic_flag_spec_CXX='${wl}-E'
18781 ;;
18782 esac
18783 fi
18784 case $host_cpu in
18785 hppa*64*|ia64*)
18786 hardcode_direct_CXX=no
18787 hardcode_shlibpath_var_CXX=no
18788 ;;
18789 *)
18790 hardcode_direct_CXX=yes
18791 hardcode_direct_absolute_CXX=yes
18792 hardcode_minus_L_CXX=yes # Not in the search PATH,
18793 # but as the default
18794 # location of the library.
18795 ;;
18796 esac
18797
18798 case $cc_basename in
18799 CC*)
18800 # FIXME: insert proper C++ library support
18801 ld_shlibs_CXX=no
18802 ;;
18803 aCC*)
18804 case $host_cpu in
18805 hppa*64*)
18806 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18807 ;;
18808 ia64*)
18809 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18810 ;;
18811 *)
18812 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18813 ;;
18814 esac
18815 # Commands to make compiler produce verbose output that lists
18816 # what "hidden" libraries, object files and flags are used when
18817 # linking a shared library.
18818 #
18819 # There doesn't appear to be a way to prevent this compiler from
18820 # explicitly linking system object files so we need to strip them
18821 # from the output so that they don't get included in the library
18822 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018823 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 +000018824 ;;
18825 *)
18826 if test "$GXX" = yes; then
18827 if test $with_gnu_ld = no; then
18828 case $host_cpu in
18829 hppa*64*)
18830 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18831 ;;
18832 ia64*)
cristyda16f162011-02-19 23:52:17 +000018833 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 +000018834 ;;
18835 *)
cristyda16f162011-02-19 23:52:17 +000018836 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 +000018837 ;;
18838 esac
18839 fi
18840 else
18841 # FIXME: insert proper C++ library support
18842 ld_shlibs_CXX=no
18843 fi
18844 ;;
18845 esac
18846 ;;
18847
18848 interix[3-9]*)
18849 hardcode_direct_CXX=no
18850 hardcode_shlibpath_var_CXX=no
18851 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18852 export_dynamic_flag_spec_CXX='${wl}-E'
18853 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18854 # Instead, shared libraries are loaded at an image base (0x10000000 by
18855 # default) and relocated if they conflict, which is a slow very memory
18856 # consuming and fragmenting process. To avoid this, we pick a random,
18857 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18858 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18859 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'
18860 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'
18861 ;;
18862 irix5* | irix6*)
18863 case $cc_basename in
18864 CC*)
18865 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000018866 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 +000018867
18868 # Archives containing C++ object files must be created using
18869 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18870 # necessary to make sure instantiated templates are included
18871 # in the archive.
18872 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18873 ;;
18874 *)
18875 if test "$GXX" = yes; then
18876 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000018877 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 +000018878 else
cristyda16f162011-02-19 23:52:17 +000018879 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 +000018880 fi
18881 fi
18882 link_all_deplibs_CXX=yes
18883 ;;
18884 esac
18885 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18886 hardcode_libdir_separator_CXX=:
18887 inherit_rpath_CXX=yes
18888 ;;
18889
cristy0c60a692010-11-04 01:09:47 +000018890 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000018891 case $cc_basename in
18892 KCC*)
18893 # Kuck and Associates, Inc. (KAI) C++ Compiler
18894
18895 # KCC will only create a shared library if the output file
18896 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18897 # to its proper name (with version) after linking.
18898 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'
18899 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'
18900 # Commands to make compiler produce verbose output that lists
18901 # what "hidden" libraries, object files and flags are used when
18902 # linking a shared library.
18903 #
18904 # There doesn't appear to be a way to prevent this compiler from
18905 # explicitly linking system object files so we need to strip them
18906 # from the output so that they don't get included in the library
18907 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018908 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 +000018909
18910 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18911 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18912
18913 # Archives containing C++ object files must be created using
18914 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18915 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18916 ;;
18917 icpc* | ecpc* )
18918 # Intel C++
18919 with_gnu_ld=yes
18920 # version 8.0 and above of icpc choke on multiply defined symbols
18921 # if we add $predep_objects and $postdep_objects, however 7.1 and
18922 # earlier do not add the objects themselves.
18923 case `$CC -V 2>&1` in
18924 *"Version 7."*)
18925 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18926 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'
18927 ;;
18928 *) # Version 8.0 or newer
18929 tmp_idyn=
18930 case $host_cpu in
18931 ia64*) tmp_idyn=' -i_dynamic';;
18932 esac
18933 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18934 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'
18935 ;;
18936 esac
18937 archive_cmds_need_lc_CXX=no
18938 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18939 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18940 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18941 ;;
18942 pgCC* | pgcpp*)
18943 # Portland Group C++ compiler
18944 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000018945 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000018946 prelink_cmds_CXX='tpldir=Template.dir~
18947 rm -rf $tpldir~
18948 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018949 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000018950 old_archive_cmds_CXX='tpldir=Template.dir~
18951 rm -rf $tpldir~
18952 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018953 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000018954 $RANLIB $oldlib'
18955 archive_cmds_CXX='tpldir=Template.dir~
18956 rm -rf $tpldir~
18957 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018958 $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 +000018959 archive_expsym_cmds_CXX='tpldir=Template.dir~
18960 rm -rf $tpldir~
18961 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018962 $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 +000018963 ;;
cristy0c60a692010-11-04 01:09:47 +000018964 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000018965 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18966 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'
18967 ;;
18968 esac
18969
18970 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18971 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000018972 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 +000018973 ;;
18974 cxx*)
18975 # Compaq C++
18976 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18977 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'
18978
18979 runpath_var=LD_RUN_PATH
18980 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18981 hardcode_libdir_separator_CXX=:
18982
18983 # Commands to make compiler produce verbose output that lists
18984 # what "hidden" libraries, object files and flags are used when
18985 # linking a shared library.
18986 #
18987 # There doesn't appear to be a way to prevent this compiler from
18988 # explicitly linking system object files so we need to strip them
18989 # from the output so that they don't get included in the library
18990 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018991 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 +000018992 ;;
cristy0c60a692010-11-04 01:09:47 +000018993 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000018994 # IBM XL 8.0 on PPC, with GNU ld
18995 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18996 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18997 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18998 if test "x$supports_anon_versioning" = xyes; then
18999 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19000 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19001 echo "local: *; };" >> $output_objdir/$libname.ver~
19002 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19003 fi
19004 ;;
19005 *)
19006 case `$CC -V 2>&1 | sed 5q` in
19007 *Sun\ C*)
19008 # Sun C++ 5.9
19009 no_undefined_flag_CXX=' -zdefs'
19010 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19011 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'
19012 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000019013 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 +000019014 compiler_needs_object_CXX=yes
19015
19016 # Not sure whether something based on
19017 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19018 # would be better.
cristy0c60a692010-11-04 01:09:47 +000019019 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000019020
19021 # Archives containing C++ object files must be created using
19022 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19023 # necessary to make sure instantiated templates are included
19024 # in the archive.
19025 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19026 ;;
19027 esac
19028 ;;
19029 esac
19030 ;;
19031
19032 lynxos*)
19033 # FIXME: insert proper C++ library support
19034 ld_shlibs_CXX=no
19035 ;;
19036
19037 m88k*)
19038 # FIXME: insert proper C++ library support
19039 ld_shlibs_CXX=no
19040 ;;
19041
19042 mvs*)
19043 case $cc_basename in
19044 cxx*)
19045 # FIXME: insert proper C++ library support
19046 ld_shlibs_CXX=no
19047 ;;
19048 *)
19049 # FIXME: insert proper C++ library support
19050 ld_shlibs_CXX=no
19051 ;;
19052 esac
19053 ;;
19054
19055 netbsd*)
19056 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19057 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19058 wlarc=
19059 hardcode_libdir_flag_spec_CXX='-R$libdir'
19060 hardcode_direct_CXX=yes
19061 hardcode_shlibpath_var_CXX=no
19062 fi
19063 # Workaround some broken pre-1.5 toolchains
19064 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19065 ;;
19066
19067 *nto* | *qnx*)
19068 ld_shlibs_CXX=yes
19069 ;;
19070
19071 openbsd2*)
19072 # C++ shared libraries are fairly broken
19073 ld_shlibs_CXX=no
19074 ;;
19075
19076 openbsd*)
19077 if test -f /usr/libexec/ld.so; then
19078 hardcode_direct_CXX=yes
19079 hardcode_shlibpath_var_CXX=no
19080 hardcode_direct_absolute_CXX=yes
19081 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19082 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19083 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19084 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19085 export_dynamic_flag_spec_CXX='${wl}-E'
19086 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19087 fi
cristy0c60a692010-11-04 01:09:47 +000019088 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000019089 else
19090 ld_shlibs_CXX=no
19091 fi
19092 ;;
19093
19094 osf3* | osf4* | osf5*)
19095 case $cc_basename in
19096 KCC*)
19097 # Kuck and Associates, Inc. (KAI) C++ Compiler
19098
19099 # KCC will only create a shared library if the output file
19100 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19101 # to its proper name (with version) after linking.
19102 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'
19103
19104 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19105 hardcode_libdir_separator_CXX=:
19106
19107 # Archives containing C++ object files must be created using
19108 # the KAI C++ compiler.
19109 case $host in
19110 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19111 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19112 esac
19113 ;;
19114 RCC*)
19115 # Rational C++ 2.4.1
19116 # FIXME: insert proper C++ library support
19117 ld_shlibs_CXX=no
19118 ;;
19119 cxx*)
19120 case $host in
19121 osf3*)
19122 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000019123 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 +000019124 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19125 ;;
19126 *)
19127 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000019128 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 +000019129 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19130 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000019131 $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 +000019132 $RM $lib.exp'
19133 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19134 ;;
19135 esac
19136
19137 hardcode_libdir_separator_CXX=:
19138
19139 # Commands to make compiler produce verbose output that lists
19140 # what "hidden" libraries, object files and flags are used when
19141 # linking a shared library.
19142 #
19143 # There doesn't appear to be a way to prevent this compiler from
19144 # explicitly linking system object files so we need to strip them
19145 # from the output so that they don't get included in the library
19146 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000019147 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 +000019148 ;;
19149 *)
19150 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19151 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19152 case $host in
19153 osf3*)
cristy0c60a692010-11-04 01:09:47 +000019154 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 +000019155 ;;
19156 *)
cristyda16f162011-02-19 23:52:17 +000019157 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 +000019158 ;;
19159 esac
19160
19161 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19162 hardcode_libdir_separator_CXX=:
19163
19164 # Commands to make compiler produce verbose output that lists
19165 # what "hidden" libraries, object files and flags are used when
19166 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019167 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019168
19169 else
19170 # FIXME: insert proper C++ library support
19171 ld_shlibs_CXX=no
19172 fi
19173 ;;
19174 esac
19175 ;;
19176
19177 psos*)
19178 # FIXME: insert proper C++ library support
19179 ld_shlibs_CXX=no
19180 ;;
19181
19182 sunos4*)
19183 case $cc_basename in
19184 CC*)
19185 # Sun C++ 4.x
19186 # FIXME: insert proper C++ library support
19187 ld_shlibs_CXX=no
19188 ;;
19189 lcc*)
19190 # Lucid
19191 # FIXME: insert proper C++ library support
19192 ld_shlibs_CXX=no
19193 ;;
19194 *)
19195 # FIXME: insert proper C++ library support
19196 ld_shlibs_CXX=no
19197 ;;
19198 esac
19199 ;;
19200
19201 solaris*)
19202 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019203 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019204 # Sun C++ 4.2, 5.x and Centerline C++
19205 archive_cmds_need_lc_CXX=yes
19206 no_undefined_flag_CXX=' -zdefs'
19207 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19208 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19209 $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'
19210
19211 hardcode_libdir_flag_spec_CXX='-R$libdir'
19212 hardcode_shlibpath_var_CXX=no
19213 case $host_os in
19214 solaris2.[0-5] | solaris2.[0-5].*) ;;
19215 *)
19216 # The compiler driver will combine and reorder linker options,
19217 # but understands `-z linker_flag'.
19218 # Supported since Solaris 2.6 (maybe 2.5.1?)
19219 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19220 ;;
19221 esac
19222 link_all_deplibs_CXX=yes
19223
cristy0c60a692010-11-04 01:09:47 +000019224 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000019225
19226 # Archives containing C++ object files must be created using
19227 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19228 # necessary to make sure instantiated templates are included
19229 # in the archive.
19230 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19231 ;;
19232 gcx*)
19233 # Green Hills C++ Compiler
19234 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19235
19236 # The C++ compiler must be used to create the archive.
19237 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19238 ;;
19239 *)
19240 # GNU C++ compiler with Solaris linker
19241 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19242 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19243 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000019244 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 +000019245 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 +000019246 $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 +000019247
19248 # Commands to make compiler produce verbose output that lists
19249 # what "hidden" libraries, object files and flags are used when
19250 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019251 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019252 else
19253 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19254 # platform.
19255 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19256 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19257 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19258
19259 # Commands to make compiler produce verbose output that lists
19260 # what "hidden" libraries, object files and flags are used when
19261 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019262 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019263 fi
19264
19265 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19266 case $host_os in
19267 solaris2.[0-5] | solaris2.[0-5].*) ;;
19268 *)
19269 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19270 ;;
19271 esac
19272 fi
19273 ;;
19274 esac
19275 ;;
19276
19277 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19278 no_undefined_flag_CXX='${wl}-z,text'
19279 archive_cmds_need_lc_CXX=no
19280 hardcode_shlibpath_var_CXX=no
19281 runpath_var='LD_RUN_PATH'
19282
19283 case $cc_basename in
19284 CC*)
19285 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19286 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19287 ;;
19288 *)
19289 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19290 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19291 ;;
19292 esac
19293 ;;
19294
19295 sysv5* | sco3.2v5* | sco5v6*)
19296 # Note: We can NOT use -z defs as we might desire, because we do not
19297 # link with -lc, and that would cause any symbols used from libc to
19298 # always be unresolved, which means just about no library would
19299 # ever link correctly. If we're not using GNU ld we use -z text
19300 # though, which does catch some bad symbols but isn't as heavy-handed
19301 # as -z defs.
19302 no_undefined_flag_CXX='${wl}-z,text'
19303 allow_undefined_flag_CXX='${wl}-z,nodefs'
19304 archive_cmds_need_lc_CXX=no
19305 hardcode_shlibpath_var_CXX=no
19306 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19307 hardcode_libdir_separator_CXX=':'
19308 link_all_deplibs_CXX=yes
19309 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19310 runpath_var='LD_RUN_PATH'
19311
19312 case $cc_basename in
19313 CC*)
19314 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19315 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 +000019316 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19317 '"$old_archive_cmds_CXX"
19318 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19319 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000019320 ;;
19321 *)
19322 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19323 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19324 ;;
19325 esac
19326 ;;
19327
19328 tandem*)
19329 case $cc_basename in
19330 NCC*)
19331 # NonStop-UX NCC 3.20
19332 # FIXME: insert proper C++ library support
19333 ld_shlibs_CXX=no
19334 ;;
19335 *)
19336 # FIXME: insert proper C++ library support
19337 ld_shlibs_CXX=no
19338 ;;
19339 esac
19340 ;;
19341
19342 vxworks*)
19343 # FIXME: insert proper C++ library support
19344 ld_shlibs_CXX=no
19345 ;;
19346
19347 *)
19348 # FIXME: insert proper C++ library support
19349 ld_shlibs_CXX=no
19350 ;;
19351 esac
19352
19353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19354$as_echo "$ld_shlibs_CXX" >&6; }
19355 test "$ld_shlibs_CXX" = no && can_build_shared=no
19356
19357 GCC_CXX="$GXX"
19358 LD_CXX="$LD"
19359
19360 ## CAVEAT EMPTOR:
19361 ## There is no encapsulation within the following macros, do not change
19362 ## the running order or otherwise move them around unless you know exactly
19363 ## what you are doing...
19364 # Dependencies to place before and after the object being linked:
19365predep_objects_CXX=
19366postdep_objects_CXX=
19367predeps_CXX=
19368postdeps_CXX=
19369compiler_lib_search_path_CXX=
19370
19371cat > conftest.$ac_ext <<_LT_EOF
19372class Foo
19373{
19374public:
19375 Foo (void) { a = 0; }
19376private:
19377 int a;
19378};
19379_LT_EOF
19380
cristyda16f162011-02-19 23:52:17 +000019381
19382_lt_libdeps_save_CFLAGS=$CFLAGS
19383case "$CC $CFLAGS " in #(
19384*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
19385*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
cristy99bd5232011-12-07 14:38:20 +000019386*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
cristyda16f162011-02-19 23:52:17 +000019387esac
19388
cristy73bd4a52010-10-05 11:24:23 +000019389if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19390 (eval $ac_compile) 2>&5
19391 ac_status=$?
19392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19393 test $ac_status = 0; }; then
19394 # Parse the compiler output and extract the necessary
19395 # objects, libraries and library flags.
19396
19397 # Sentinel used to keep track of whether or not we are before
19398 # the conftest object file.
19399 pre_test_object_deps_done=no
19400
19401 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000019402 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000019403
19404 -L* | -R* | -l*)
19405 # Some compilers place space between "-{L,R}" and the path.
19406 # Remove the space.
19407 if test $p = "-L" ||
19408 test $p = "-R"; then
19409 prev=$p
19410 continue
cristy73bd4a52010-10-05 11:24:23 +000019411 fi
19412
cristyda16f162011-02-19 23:52:17 +000019413 # Expand the sysroot to ease extracting the directories later.
19414 if test -z "$prev"; then
19415 case $p in
19416 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
19417 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
19418 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
19419 esac
19420 fi
19421 case $p in
19422 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
19423 esac
cristy73bd4a52010-10-05 11:24:23 +000019424 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000019425 case ${prev} in
19426 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000019427 # Internal compiler library paths should come after those
19428 # provided the user. The postdeps already come after the
19429 # user supplied libs so there is no need to process them.
19430 if test -z "$compiler_lib_search_path_CXX"; then
19431 compiler_lib_search_path_CXX="${prev}${p}"
19432 else
19433 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19434 fi
19435 ;;
19436 # The "-l" case would never come before the object being
19437 # linked, so don't bother handling this case.
19438 esac
19439 else
19440 if test -z "$postdeps_CXX"; then
19441 postdeps_CXX="${prev}${p}"
19442 else
19443 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19444 fi
19445 fi
cristyda16f162011-02-19 23:52:17 +000019446 prev=
cristy73bd4a52010-10-05 11:24:23 +000019447 ;;
19448
cristyda16f162011-02-19 23:52:17 +000019449 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000019450 *.$objext)
19451 # This assumes that the test object file only shows up
19452 # once in the compiler output.
19453 if test "$p" = "conftest.$objext"; then
19454 pre_test_object_deps_done=yes
19455 continue
19456 fi
19457
19458 if test "$pre_test_object_deps_done" = no; then
19459 if test -z "$predep_objects_CXX"; then
19460 predep_objects_CXX="$p"
19461 else
19462 predep_objects_CXX="$predep_objects_CXX $p"
19463 fi
19464 else
19465 if test -z "$postdep_objects_CXX"; then
19466 postdep_objects_CXX="$p"
19467 else
19468 postdep_objects_CXX="$postdep_objects_CXX $p"
19469 fi
19470 fi
19471 ;;
19472
19473 *) ;; # Ignore the rest.
19474
19475 esac
19476 done
19477
19478 # Clean up.
19479 rm -f a.out a.exe
19480else
19481 echo "libtool.m4: error: problem compiling CXX test program"
19482fi
19483
19484$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000019485CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000019486
19487# PORTME: override above test on systems where it is broken
19488case $host_os in
19489interix[3-9]*)
19490 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19491 # hack all around it, let's just trust "g++" to DTRT.
19492 predep_objects_CXX=
19493 postdep_objects_CXX=
19494 postdeps_CXX=
19495 ;;
19496
19497linux*)
19498 case `$CC -V 2>&1 | sed 5q` in
19499 *Sun\ C*)
19500 # Sun C++ 5.9
19501
19502 # The more standards-conforming stlport4 library is
19503 # incompatible with the Cstd library. Avoid specifying
19504 # it if it's in CXXFLAGS. Ignore libCrun as
19505 # -library=stlport4 depends on it.
19506 case " $CXX $CXXFLAGS " in
19507 *" -library=stlport4 "*)
19508 solaris_use_stlport4=yes
19509 ;;
19510 esac
19511
19512 if test "$solaris_use_stlport4" != yes; then
19513 postdeps_CXX='-library=Cstd -library=Crun'
19514 fi
19515 ;;
19516 esac
19517 ;;
19518
19519solaris*)
19520 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019521 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019522 # The more standards-conforming stlport4 library is
19523 # incompatible with the Cstd library. Avoid specifying
19524 # it if it's in CXXFLAGS. Ignore libCrun as
19525 # -library=stlport4 depends on it.
19526 case " $CXX $CXXFLAGS " in
19527 *" -library=stlport4 "*)
19528 solaris_use_stlport4=yes
19529 ;;
19530 esac
19531
19532 # Adding this requires a known-good setup of shared libraries for
19533 # Sun compiler versions before 5.6, else PIC objects from an old
19534 # archive will be linked into the output, leading to subtle bugs.
19535 if test "$solaris_use_stlport4" != yes; then
19536 postdeps_CXX='-library=Cstd -library=Crun'
19537 fi
19538 ;;
19539 esac
19540 ;;
19541esac
19542
19543
19544case " $postdeps_CXX " in
19545*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19546esac
19547 compiler_lib_search_dirs_CXX=
19548if test -n "${compiler_lib_search_path_CXX}"; then
19549 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19550fi
19551
19552
19553
19554
19555
19556
19557
19558
19559
19560
19561
19562
19563
19564
19565
19566
19567
19568
19569
19570
19571
19572
19573
19574
19575
19576
19577
19578
19579
19580
19581
19582 lt_prog_compiler_wl_CXX=
19583lt_prog_compiler_pic_CXX=
19584lt_prog_compiler_static_CXX=
19585
cristy73bd4a52010-10-05 11:24:23 +000019586
19587 # C++ specific cases for pic, static, wl, etc.
19588 if test "$GXX" = yes; then
19589 lt_prog_compiler_wl_CXX='-Wl,'
19590 lt_prog_compiler_static_CXX='-static'
19591
19592 case $host_os in
19593 aix*)
19594 # All AIX code is PIC.
19595 if test "$host_cpu" = ia64; then
19596 # AIX 5 now supports IA64 processor
19597 lt_prog_compiler_static_CXX='-Bstatic'
19598 fi
19599 ;;
19600
19601 amigaos*)
19602 case $host_cpu in
19603 powerpc)
19604 # see comment about AmigaOS4 .so support
19605 lt_prog_compiler_pic_CXX='-fPIC'
19606 ;;
19607 m68k)
19608 # FIXME: we need at least 68020 code to build shared libraries, but
19609 # adding the `-m68020' flag to GCC prevents building anything better,
19610 # like `-m68040'.
19611 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19612 ;;
19613 esac
19614 ;;
19615
19616 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19617 # PIC is the default for these OSes.
19618 ;;
19619 mingw* | cygwin* | os2* | pw32* | cegcc*)
19620 # This hack is so that the source file can tell whether it is being
19621 # built for inclusion in a dll (and should export symbols for example).
19622 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19623 # (--disable-auto-import) libraries
19624 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19625 ;;
19626 darwin* | rhapsody*)
19627 # PIC is the default on this platform
19628 # Common symbols not allowed in MH_DYLIB files
19629 lt_prog_compiler_pic_CXX='-fno-common'
19630 ;;
19631 *djgpp*)
19632 # DJGPP does not support shared libraries at all
19633 lt_prog_compiler_pic_CXX=
19634 ;;
cristy0c60a692010-11-04 01:09:47 +000019635 haiku*)
19636 # PIC is the default for Haiku.
19637 # The "-static" flag exists, but is broken.
19638 lt_prog_compiler_static_CXX=
19639 ;;
cristy73bd4a52010-10-05 11:24:23 +000019640 interix[3-9]*)
19641 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19642 # Instead, we relocate shared libraries at runtime.
19643 ;;
19644 sysv4*MP*)
19645 if test -d /usr/nec; then
19646 lt_prog_compiler_pic_CXX=-Kconform_pic
19647 fi
19648 ;;
19649 hpux*)
19650 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19651 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19652 # sets the default TLS model and affects inlining.
19653 case $host_cpu in
19654 hppa*64*)
19655 ;;
19656 *)
19657 lt_prog_compiler_pic_CXX='-fPIC'
19658 ;;
19659 esac
19660 ;;
19661 *qnx* | *nto*)
19662 # QNX uses GNU C++, but need to define -shared option too, otherwise
19663 # it will coredump.
19664 lt_prog_compiler_pic_CXX='-fPIC -shared'
19665 ;;
19666 *)
19667 lt_prog_compiler_pic_CXX='-fPIC'
19668 ;;
19669 esac
19670 else
19671 case $host_os in
19672 aix[4-9]*)
19673 # All AIX code is PIC.
19674 if test "$host_cpu" = ia64; then
19675 # AIX 5 now supports IA64 processor
19676 lt_prog_compiler_static_CXX='-Bstatic'
19677 else
19678 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19679 fi
19680 ;;
19681 chorus*)
19682 case $cc_basename in
19683 cxch68*)
19684 # Green Hills C++ Compiler
19685 # _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"
19686 ;;
19687 esac
19688 ;;
cristyda16f162011-02-19 23:52:17 +000019689 mingw* | cygwin* | os2* | pw32* | cegcc*)
19690 # This hack is so that the source file can tell whether it is being
19691 # built for inclusion in a dll (and should export symbols for example).
19692 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19693 ;;
cristy73bd4a52010-10-05 11:24:23 +000019694 dgux*)
19695 case $cc_basename in
19696 ec++*)
19697 lt_prog_compiler_pic_CXX='-KPIC'
19698 ;;
19699 ghcx*)
19700 # Green Hills C++ Compiler
19701 lt_prog_compiler_pic_CXX='-pic'
19702 ;;
19703 *)
19704 ;;
19705 esac
19706 ;;
19707 freebsd* | dragonfly*)
19708 # FreeBSD uses GNU C++
19709 ;;
19710 hpux9* | hpux10* | hpux11*)
19711 case $cc_basename in
19712 CC*)
19713 lt_prog_compiler_wl_CXX='-Wl,'
19714 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19715 if test "$host_cpu" != ia64; then
19716 lt_prog_compiler_pic_CXX='+Z'
19717 fi
19718 ;;
19719 aCC*)
19720 lt_prog_compiler_wl_CXX='-Wl,'
19721 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19722 case $host_cpu in
19723 hppa*64*|ia64*)
19724 # +Z the default
19725 ;;
19726 *)
19727 lt_prog_compiler_pic_CXX='+Z'
19728 ;;
19729 esac
19730 ;;
19731 *)
19732 ;;
19733 esac
19734 ;;
19735 interix*)
19736 # This is c89, which is MS Visual C++ (no shared libs)
19737 # Anyone wants to do a port?
19738 ;;
19739 irix5* | irix6* | nonstopux*)
19740 case $cc_basename in
19741 CC*)
19742 lt_prog_compiler_wl_CXX='-Wl,'
19743 lt_prog_compiler_static_CXX='-non_shared'
19744 # CC pic flag -KPIC is the default.
19745 ;;
19746 *)
19747 ;;
19748 esac
19749 ;;
cristy0c60a692010-11-04 01:09:47 +000019750 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019751 case $cc_basename in
19752 KCC*)
19753 # KAI C++ Compiler
19754 lt_prog_compiler_wl_CXX='--backend -Wl,'
19755 lt_prog_compiler_pic_CXX='-fPIC'
19756 ;;
19757 ecpc* )
19758 # old Intel C++ for x86_64 which still supported -KPIC.
19759 lt_prog_compiler_wl_CXX='-Wl,'
19760 lt_prog_compiler_pic_CXX='-KPIC'
19761 lt_prog_compiler_static_CXX='-static'
19762 ;;
19763 icpc* )
19764 # Intel C++, used to be incompatible with GCC.
19765 # ICC 10 doesn't accept -KPIC any more.
19766 lt_prog_compiler_wl_CXX='-Wl,'
19767 lt_prog_compiler_pic_CXX='-fPIC'
19768 lt_prog_compiler_static_CXX='-static'
19769 ;;
19770 pgCC* | pgcpp*)
19771 # Portland Group C++ compiler
19772 lt_prog_compiler_wl_CXX='-Wl,'
19773 lt_prog_compiler_pic_CXX='-fpic'
19774 lt_prog_compiler_static_CXX='-Bstatic'
19775 ;;
19776 cxx*)
19777 # Compaq C++
19778 # Make sure the PIC flag is empty. It appears that all Alpha
19779 # Linux and Compaq Tru64 Unix objects are PIC.
19780 lt_prog_compiler_pic_CXX=
19781 lt_prog_compiler_static_CXX='-non_shared'
19782 ;;
cristy0c60a692010-11-04 01:09:47 +000019783 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19784 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000019785 lt_prog_compiler_wl_CXX='-Wl,'
19786 lt_prog_compiler_pic_CXX='-qpic'
19787 lt_prog_compiler_static_CXX='-qstaticlink'
19788 ;;
19789 *)
19790 case `$CC -V 2>&1 | sed 5q` in
19791 *Sun\ C*)
19792 # Sun C++ 5.9
19793 lt_prog_compiler_pic_CXX='-KPIC'
19794 lt_prog_compiler_static_CXX='-Bstatic'
19795 lt_prog_compiler_wl_CXX='-Qoption ld '
19796 ;;
19797 esac
19798 ;;
19799 esac
19800 ;;
19801 lynxos*)
19802 ;;
19803 m88k*)
19804 ;;
19805 mvs*)
19806 case $cc_basename in
19807 cxx*)
19808 lt_prog_compiler_pic_CXX='-W c,exportall'
19809 ;;
19810 *)
19811 ;;
19812 esac
19813 ;;
19814 netbsd*)
19815 ;;
19816 *qnx* | *nto*)
19817 # QNX uses GNU C++, but need to define -shared option too, otherwise
19818 # it will coredump.
19819 lt_prog_compiler_pic_CXX='-fPIC -shared'
19820 ;;
19821 osf3* | osf4* | osf5*)
19822 case $cc_basename in
19823 KCC*)
19824 lt_prog_compiler_wl_CXX='--backend -Wl,'
19825 ;;
19826 RCC*)
19827 # Rational C++ 2.4.1
19828 lt_prog_compiler_pic_CXX='-pic'
19829 ;;
19830 cxx*)
19831 # Digital/Compaq C++
19832 lt_prog_compiler_wl_CXX='-Wl,'
19833 # Make sure the PIC flag is empty. It appears that all Alpha
19834 # Linux and Compaq Tru64 Unix objects are PIC.
19835 lt_prog_compiler_pic_CXX=
19836 lt_prog_compiler_static_CXX='-non_shared'
19837 ;;
19838 *)
19839 ;;
19840 esac
19841 ;;
19842 psos*)
19843 ;;
19844 solaris*)
19845 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019846 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019847 # Sun C++ 4.2, 5.x and Centerline C++
19848 lt_prog_compiler_pic_CXX='-KPIC'
19849 lt_prog_compiler_static_CXX='-Bstatic'
19850 lt_prog_compiler_wl_CXX='-Qoption ld '
19851 ;;
19852 gcx*)
19853 # Green Hills C++ Compiler
19854 lt_prog_compiler_pic_CXX='-PIC'
19855 ;;
19856 *)
19857 ;;
19858 esac
19859 ;;
19860 sunos4*)
19861 case $cc_basename in
19862 CC*)
19863 # Sun C++ 4.x
19864 lt_prog_compiler_pic_CXX='-pic'
19865 lt_prog_compiler_static_CXX='-Bstatic'
19866 ;;
19867 lcc*)
19868 # Lucid
19869 lt_prog_compiler_pic_CXX='-pic'
19870 ;;
19871 *)
19872 ;;
19873 esac
19874 ;;
19875 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19876 case $cc_basename in
19877 CC*)
19878 lt_prog_compiler_wl_CXX='-Wl,'
19879 lt_prog_compiler_pic_CXX='-KPIC'
19880 lt_prog_compiler_static_CXX='-Bstatic'
19881 ;;
19882 esac
19883 ;;
19884 tandem*)
19885 case $cc_basename in
19886 NCC*)
19887 # NonStop-UX NCC 3.20
19888 lt_prog_compiler_pic_CXX='-KPIC'
19889 ;;
19890 *)
19891 ;;
19892 esac
19893 ;;
19894 vxworks*)
19895 ;;
19896 *)
19897 lt_prog_compiler_can_build_shared_CXX=no
19898 ;;
19899 esac
19900 fi
19901
19902case $host_os in
19903 # For platforms which do not support PIC, -DPIC is meaningless:
19904 *djgpp*)
19905 lt_prog_compiler_pic_CXX=
19906 ;;
19907 *)
19908 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19909 ;;
19910esac
cristy73bd4a52010-10-05 11:24:23 +000019911
cristyda16f162011-02-19 23:52:17 +000019912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19913$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19914if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
19915 $as_echo_n "(cached) " >&6
19916else
19917 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
19918fi
19919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
19920$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
19921lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000019922
19923#
19924# Check to make sure the PIC flag actually works.
19925#
19926if test -n "$lt_prog_compiler_pic_CXX"; then
19927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19928$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019929if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019930 $as_echo_n "(cached) " >&6
19931else
19932 lt_cv_prog_compiler_pic_works_CXX=no
19933 ac_outfile=conftest.$ac_objext
19934 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19935 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19936 # Insert the option either (1) after the last *FLAGS variable, or
19937 # (2) before a word containing "conftest.", or (3) at the end.
19938 # Note that $ac_compile itself does not contain backslashes and begins
19939 # with a dollar sign (not a hyphen), so the echo should work correctly.
19940 # The option is referenced via a variable to avoid confusing sed.
19941 lt_compile=`echo "$ac_compile" | $SED \
19942 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19943 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19944 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019945 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019946 (eval "$lt_compile" 2>conftest.err)
19947 ac_status=$?
19948 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019950 if (exit $ac_status) && test -s "$ac_outfile"; then
19951 # The compiler can only warn and ignore the option if not recognized
19952 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000019953 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019954 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19955 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19956 lt_cv_prog_compiler_pic_works_CXX=yes
19957 fi
19958 fi
19959 $RM conftest*
19960
19961fi
19962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19963$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19964
19965if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19966 case $lt_prog_compiler_pic_CXX in
19967 "" | " "*) ;;
19968 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19969 esac
19970else
19971 lt_prog_compiler_pic_CXX=
19972 lt_prog_compiler_can_build_shared_CXX=no
19973fi
19974
19975fi
19976
19977
19978
cristyda16f162011-02-19 23:52:17 +000019979
19980
cristy73bd4a52010-10-05 11:24:23 +000019981#
19982# Check to make sure the static flag actually works.
19983#
19984wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19986$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019987if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019988 $as_echo_n "(cached) " >&6
19989else
19990 lt_cv_prog_compiler_static_works_CXX=no
19991 save_LDFLAGS="$LDFLAGS"
19992 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19993 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19994 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19995 # The linker can only warn and ignore the option if not recognized
19996 # So say no if there are warnings
19997 if test -s conftest.err; then
19998 # Append any errors to the config.log.
19999 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000020000 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020001 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20002 if diff conftest.exp conftest.er2 >/dev/null; then
20003 lt_cv_prog_compiler_static_works_CXX=yes
20004 fi
20005 else
20006 lt_cv_prog_compiler_static_works_CXX=yes
20007 fi
20008 fi
20009 $RM -r conftest*
20010 LDFLAGS="$save_LDFLAGS"
20011
20012fi
20013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20014$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20015
20016if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20017 :
20018else
20019 lt_prog_compiler_static_CXX=
20020fi
20021
20022
20023
20024
20025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20026$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020027if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020028 $as_echo_n "(cached) " >&6
20029else
20030 lt_cv_prog_compiler_c_o_CXX=no
20031 $RM -r conftest 2>/dev/null
20032 mkdir conftest
20033 cd conftest
20034 mkdir out
20035 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20036
20037 lt_compiler_flag="-o out/conftest2.$ac_objext"
20038 # Insert the option either (1) after the last *FLAGS variable, or
20039 # (2) before a word containing "conftest.", or (3) at the end.
20040 # Note that $ac_compile itself does not contain backslashes and begins
20041 # with a dollar sign (not a hyphen), so the echo should work correctly.
20042 lt_compile=`echo "$ac_compile" | $SED \
20043 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20044 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20045 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000020046 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000020047 (eval "$lt_compile" 2>out/conftest.err)
20048 ac_status=$?
20049 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000020050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000020051 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20052 then
20053 # The compiler can only warn and ignore the option if not recognized
20054 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000020055 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020056 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20057 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20058 lt_cv_prog_compiler_c_o_CXX=yes
20059 fi
20060 fi
20061 chmod u+w . 2>&5
20062 $RM conftest*
20063 # SGI C++ compiler will create directory out/ii_files/ for
20064 # template instantiation
20065 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20066 $RM out/* && rmdir out
20067 cd ..
20068 $RM -r conftest
20069 $RM conftest*
20070
20071fi
20072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20073$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20074
20075
20076
20077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20078$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020079if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020080 $as_echo_n "(cached) " >&6
20081else
20082 lt_cv_prog_compiler_c_o_CXX=no
20083 $RM -r conftest 2>/dev/null
20084 mkdir conftest
20085 cd conftest
20086 mkdir out
20087 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20088
20089 lt_compiler_flag="-o out/conftest2.$ac_objext"
20090 # Insert the option either (1) after the last *FLAGS variable, or
20091 # (2) before a word containing "conftest.", or (3) at the end.
20092 # Note that $ac_compile itself does not contain backslashes and begins
20093 # with a dollar sign (not a hyphen), so the echo should work correctly.
20094 lt_compile=`echo "$ac_compile" | $SED \
20095 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20096 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20097 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000020098 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000020099 (eval "$lt_compile" 2>out/conftest.err)
20100 ac_status=$?
20101 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000020102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000020103 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20104 then
20105 # The compiler can only warn and ignore the option if not recognized
20106 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000020107 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020108 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20109 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20110 lt_cv_prog_compiler_c_o_CXX=yes
20111 fi
20112 fi
20113 chmod u+w . 2>&5
20114 $RM conftest*
20115 # SGI C++ compiler will create directory out/ii_files/ for
20116 # template instantiation
20117 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20118 $RM out/* && rmdir out
20119 cd ..
20120 $RM -r conftest
20121 $RM conftest*
20122
20123fi
20124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20125$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20126
20127
20128
20129
20130hard_links="nottested"
20131if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20132 # do not overwrite the value of need_locks provided by the user
20133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20134$as_echo_n "checking if we can lock with hard links... " >&6; }
20135 hard_links=yes
20136 $RM conftest*
20137 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20138 touch conftest.a
20139 ln conftest.a conftest.b 2>&5 || hard_links=no
20140 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20142$as_echo "$hard_links" >&6; }
20143 if test "$hard_links" = no; then
20144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20145$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20146 need_locks=warn
20147 fi
20148else
20149 need_locks=no
20150fi
20151
20152
20153
20154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20155$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20156
20157 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000020158 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000020159 case $host_os in
20160 aix[4-9]*)
20161 # If we're using GNU nm, then we don't want the "-C" option.
20162 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000020163 # Also, AIX nm treats weak defined symbols like other global defined
20164 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000020165 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000020166 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 +000020167 else
20168 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'
20169 fi
20170 ;;
20171 pw32*)
20172 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000020173 ;;
cristy73bd4a52010-10-05 11:24:23 +000020174 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000020175 case $cc_basename in
cristy99bd5232011-12-07 14:38:20 +000020176 cl*)
20177 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
20178 ;;
cristyda16f162011-02-19 23:52:17 +000020179 *)
20180 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'
20181 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
20182 ;;
20183 esac
20184 ;;
cristy73bd4a52010-10-05 11:24:23 +000020185 *)
20186 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000020187 ;;
cristy73bd4a52010-10-05 11:24:23 +000020188 esac
cristy73bd4a52010-10-05 11:24:23 +000020189
20190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20191$as_echo "$ld_shlibs_CXX" >&6; }
20192test "$ld_shlibs_CXX" = no && can_build_shared=no
20193
20194with_gnu_ld_CXX=$with_gnu_ld
20195
20196
20197
20198
20199
20200
20201#
20202# Do we need to explicitly link libc?
20203#
20204case "x$archive_cmds_need_lc_CXX" in
20205x|xyes)
20206 # Assume -lc should be added
20207 archive_cmds_need_lc_CXX=yes
20208
20209 if test "$enable_shared" = yes && test "$GCC" = yes; then
20210 case $archive_cmds_CXX in
20211 *'~'*)
20212 # FIXME: we may have to deal with multi-command sequences.
20213 ;;
20214 '$CC '*)
20215 # Test whether the compiler implicitly links with -lc since on some
20216 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20217 # to ld, don't add -lc before -lgcc.
20218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20219$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020220if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000020221 $as_echo_n "(cached) " >&6
20222else
20223 $RM conftest*
20224 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000020225
cristy0c60a692010-11-04 01:09:47 +000020226 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000020227 (eval $ac_compile) 2>&5
20228 ac_status=$?
20229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20230 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000020231 soname=conftest
20232 lib=conftest
20233 libobjs=conftest.$ac_objext
20234 deplibs=
20235 wl=$lt_prog_compiler_wl_CXX
20236 pic_flag=$lt_prog_compiler_pic_CXX
20237 compiler_flags=-v
20238 linker_flags=-v
20239 verstring=
20240 output_objdir=.
20241 libname=conftest
20242 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20243 allow_undefined_flag_CXX=
20244 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 +000020245 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20246 ac_status=$?
20247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20248 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000020249 then
20250 lt_cv_archive_cmds_need_lc_CXX=no
20251 else
20252 lt_cv_archive_cmds_need_lc_CXX=yes
20253 fi
20254 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20255 else
20256 cat conftest.err 1>&5
20257 fi
20258 $RM conftest*
20259
20260fi
20261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20262$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20263 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000020264 ;;
20265 esac
20266 fi
20267 ;;
20268esac
20269
20270
20271
20272
20273
20274
20275
20276
20277
20278
20279
20280
20281
20282
20283
20284
20285
20286
20287
20288
20289
20290
20291
20292
20293
20294
20295
20296
20297
20298
20299
20300
20301
20302
20303
20304
20305
20306
20307
20308
20309
20310
20311
20312
20313
20314
20315
20316
20317
20318
20319
20320
20321
20322
20323
20324
20325
20326
20327
20328
20329
20330
cristy73bd4a52010-10-05 11:24:23 +000020331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20332$as_echo_n "checking dynamic linker characteristics... " >&6; }
20333
20334library_names_spec=
20335libname_spec='lib$name'
20336soname_spec=
20337shrext_cmds=".so"
20338postinstall_cmds=
20339postuninstall_cmds=
20340finish_cmds=
20341finish_eval=
20342shlibpath_var=
20343shlibpath_overrides_runpath=unknown
20344version_type=none
20345dynamic_linker="$host_os ld.so"
20346sys_lib_dlsearch_path_spec="/lib /usr/lib"
20347need_lib_prefix=unknown
20348hardcode_into_libs=no
20349
20350# when you set need_version to no, make sure it does not cause -set_version
20351# flags to be left without arguments
20352need_version=unknown
20353
20354case $host_os in
20355aix3*)
cristy99bd5232011-12-07 14:38:20 +000020356 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020357 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20358 shlibpath_var=LIBPATH
20359
20360 # AIX 3 has no versioning support, so we append a major version to the name.
20361 soname_spec='${libname}${release}${shared_ext}$major'
20362 ;;
20363
20364aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000020365 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020366 need_lib_prefix=no
20367 need_version=no
20368 hardcode_into_libs=yes
20369 if test "$host_cpu" = ia64; then
20370 # AIX 5 supports IA64
20371 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20372 shlibpath_var=LD_LIBRARY_PATH
20373 else
20374 # With GCC up to 2.95.x, collect2 would create an import file
20375 # for dependence libraries. The import file would start with
20376 # the line `#! .'. This would cause the generated library to
20377 # depend on `.', always an invalid library. This was fixed in
20378 # development snapshots of GCC prior to 3.0.
20379 case $host_os in
20380 aix4 | aix4.[01] | aix4.[01].*)
20381 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20382 echo ' yes '
20383 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20384 :
20385 else
20386 can_build_shared=no
20387 fi
20388 ;;
20389 esac
20390 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20391 # soname into executable. Probably we can add versioning support to
20392 # collect2, so additional links can be useful in future.
20393 if test "$aix_use_runtimelinking" = yes; then
20394 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20395 # instead of lib<name>.a to let people know that these are not
20396 # typical AIX shared libraries.
20397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20398 else
20399 # We preserve .a as extension for shared libraries through AIX4.2
20400 # and later when we are not doing run time linking.
20401 library_names_spec='${libname}${release}.a $libname.a'
20402 soname_spec='${libname}${release}${shared_ext}$major'
20403 fi
20404 shlibpath_var=LIBPATH
20405 fi
20406 ;;
20407
20408amigaos*)
20409 case $host_cpu in
20410 powerpc)
20411 # Since July 2007 AmigaOS4 officially supports .so libraries.
20412 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20414 ;;
20415 m68k)
20416 library_names_spec='$libname.ixlibrary $libname.a'
20417 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000020418 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 +000020419 ;;
20420 esac
20421 ;;
20422
20423beos*)
20424 library_names_spec='${libname}${shared_ext}'
20425 dynamic_linker="$host_os ld.so"
20426 shlibpath_var=LIBRARY_PATH
20427 ;;
20428
20429bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000020430 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020431 need_version=no
20432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20433 soname_spec='${libname}${release}${shared_ext}$major'
20434 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20435 shlibpath_var=LD_LIBRARY_PATH
20436 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20437 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20438 # the default ld.so.conf also contains /usr/contrib/lib and
20439 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20440 # libtool to hard-code these into programs
20441 ;;
20442
20443cygwin* | mingw* | pw32* | cegcc*)
20444 version_type=windows
20445 shrext_cmds=".dll"
20446 need_version=no
20447 need_lib_prefix=no
20448
cristyda16f162011-02-19 23:52:17 +000020449 case $GCC,$cc_basename in
20450 yes,*)
20451 # gcc
cristy73bd4a52010-10-05 11:24:23 +000020452 library_names_spec='$libname.dll.a'
20453 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20454 postinstall_cmds='base_file=`basename \${file}`~
20455 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20456 dldir=$destdir/`dirname \$dlpath`~
20457 test -d \$dldir || mkdir -p \$dldir~
20458 $install_prog $dir/$dlname \$dldir/$dlname~
20459 chmod a+x \$dldir/$dlname~
20460 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20461 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20462 fi'
20463 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20464 dlpath=$dir/\$dldll~
20465 $RM \$dlpath'
20466 shlibpath_overrides_runpath=yes
20467
20468 case $host_os in
20469 cygwin*)
20470 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20471 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000020472
cristy73bd4a52010-10-05 11:24:23 +000020473 ;;
20474 mingw* | cegcc*)
20475 # MinGW DLLs use traditional 'lib' prefix
20476 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000020477 ;;
20478 pw32*)
20479 # pw32 DLLs use 'pw' prefix rather than 'lib'
20480 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20481 ;;
20482 esac
cristyda16f162011-02-19 23:52:17 +000020483 dynamic_linker='Win32 ld.exe'
20484 ;;
20485
20486 *,cl*)
20487 # Native MSVC
20488 libname_spec='$name'
20489 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20490 library_names_spec='${libname}.dll.lib'
20491
20492 case $build_os in
20493 mingw*)
20494 sys_lib_search_path_spec=
20495 lt_save_ifs=$IFS
20496 IFS=';'
20497 for lt_path in $LIB
20498 do
20499 IFS=$lt_save_ifs
20500 # Let DOS variable expansion print the short 8.3 style file name.
20501 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
20502 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
20503 done
20504 IFS=$lt_save_ifs
20505 # Convert to MSYS style.
20506 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
20507 ;;
20508 cygwin*)
20509 # Convert to unix form, then to dos form, then back to unix form
20510 # but this time dos style (no spaces!) so that the unix form looks
20511 # like /cygdrive/c/PROGRA~1:/cygdr...
20512 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
20513 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
20514 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20515 ;;
20516 *)
20517 sys_lib_search_path_spec="$LIB"
20518 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
20519 # It is most probably a Windows format PATH.
20520 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20521 else
20522 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20523 fi
20524 # FIXME: find the short name or the path components, as spaces are
20525 # common. (e.g. "Program Files" -> "PROGRA~1")
20526 ;;
20527 esac
20528
20529 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20530 postinstall_cmds='base_file=`basename \${file}`~
20531 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20532 dldir=$destdir/`dirname \$dlpath`~
20533 test -d \$dldir || mkdir -p \$dldir~
20534 $install_prog $dir/$dlname \$dldir/$dlname'
20535 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20536 dlpath=$dir/\$dldll~
20537 $RM \$dlpath'
20538 shlibpath_overrides_runpath=yes
20539 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000020540 ;;
20541
20542 *)
cristyda16f162011-02-19 23:52:17 +000020543 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000020544 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000020545 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000020546 ;;
20547 esac
cristy73bd4a52010-10-05 11:24:23 +000020548 # FIXME: first we should search . and the directory the executable is in
20549 shlibpath_var=PATH
20550 ;;
20551
20552darwin* | rhapsody*)
20553 dynamic_linker="$host_os dyld"
20554 version_type=darwin
20555 need_lib_prefix=no
20556 need_version=no
20557 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20558 soname_spec='${libname}${release}${major}$shared_ext'
20559 shlibpath_overrides_runpath=yes
20560 shlibpath_var=DYLD_LIBRARY_PATH
20561 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20562
20563 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20564 ;;
20565
20566dgux*)
cristy99bd5232011-12-07 14:38:20 +000020567 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020568 need_lib_prefix=no
20569 need_version=no
20570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20571 soname_spec='${libname}${release}${shared_ext}$major'
20572 shlibpath_var=LD_LIBRARY_PATH
20573 ;;
20574
cristy73bd4a52010-10-05 11:24:23 +000020575freebsd* | dragonfly*)
20576 # DragonFly does not have aout. When/if they implement a new
20577 # versioning mechanism, adjust this.
20578 if test -x /usr/bin/objformat; then
20579 objformat=`/usr/bin/objformat`
20580 else
20581 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020582 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000020583 *) objformat=elf ;;
20584 esac
20585 fi
20586 version_type=freebsd-$objformat
20587 case $version_type in
20588 freebsd-elf*)
20589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20590 need_version=no
20591 need_lib_prefix=no
20592 ;;
20593 freebsd-*)
20594 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20595 need_version=yes
20596 ;;
20597 esac
20598 shlibpath_var=LD_LIBRARY_PATH
20599 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020600 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000020601 shlibpath_overrides_runpath=yes
20602 ;;
20603 freebsd3.[01]* | freebsdelf3.[01]*)
20604 shlibpath_overrides_runpath=yes
20605 hardcode_into_libs=yes
20606 ;;
20607 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20608 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20609 shlibpath_overrides_runpath=no
20610 hardcode_into_libs=yes
20611 ;;
20612 *) # from 4.6 on, and DragonFly
20613 shlibpath_overrides_runpath=yes
20614 hardcode_into_libs=yes
20615 ;;
20616 esac
20617 ;;
20618
20619gnu*)
cristy99bd5232011-12-07 14:38:20 +000020620 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020621 need_lib_prefix=no
20622 need_version=no
20623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20624 soname_spec='${libname}${release}${shared_ext}$major'
20625 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000020626 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000020627 hardcode_into_libs=yes
20628 ;;
20629
cristy0c60a692010-11-04 01:09:47 +000020630haiku*)
cristy99bd5232011-12-07 14:38:20 +000020631 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000020632 need_lib_prefix=no
20633 need_version=no
20634 dynamic_linker="$host_os runtime_loader"
20635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20636 soname_spec='${libname}${release}${shared_ext}$major'
20637 shlibpath_var=LIBRARY_PATH
20638 shlibpath_overrides_runpath=yes
20639 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
20640 hardcode_into_libs=yes
20641 ;;
20642
cristy73bd4a52010-10-05 11:24:23 +000020643hpux9* | hpux10* | hpux11*)
20644 # Give a soname corresponding to the major version so that dld.sl refuses to
20645 # link against other versions.
20646 version_type=sunos
20647 need_lib_prefix=no
20648 need_version=no
20649 case $host_cpu in
20650 ia64*)
20651 shrext_cmds='.so'
20652 hardcode_into_libs=yes
20653 dynamic_linker="$host_os dld.so"
20654 shlibpath_var=LD_LIBRARY_PATH
20655 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20657 soname_spec='${libname}${release}${shared_ext}$major'
20658 if test "X$HPUX_IA64_MODE" = X32; then
20659 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20660 else
20661 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20662 fi
20663 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20664 ;;
20665 hppa*64*)
20666 shrext_cmds='.sl'
20667 hardcode_into_libs=yes
20668 dynamic_linker="$host_os dld.sl"
20669 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20670 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20672 soname_spec='${libname}${release}${shared_ext}$major'
20673 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20674 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20675 ;;
20676 *)
20677 shrext_cmds='.sl'
20678 dynamic_linker="$host_os dld.sl"
20679 shlibpath_var=SHLIB_PATH
20680 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20682 soname_spec='${libname}${release}${shared_ext}$major'
20683 ;;
20684 esac
cristy0c60a692010-11-04 01:09:47 +000020685 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000020686 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000020687 # or fails outright, so override atomically:
20688 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000020689 ;;
20690
20691interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000020692 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020693 need_lib_prefix=no
20694 need_version=no
20695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20696 soname_spec='${libname}${release}${shared_ext}$major'
20697 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20698 shlibpath_var=LD_LIBRARY_PATH
20699 shlibpath_overrides_runpath=no
20700 hardcode_into_libs=yes
20701 ;;
20702
20703irix5* | irix6* | nonstopux*)
20704 case $host_os in
20705 nonstopux*) version_type=nonstopux ;;
20706 *)
20707 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000020708 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020709 else
20710 version_type=irix
20711 fi ;;
20712 esac
20713 need_lib_prefix=no
20714 need_version=no
20715 soname_spec='${libname}${release}${shared_ext}$major'
20716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20717 case $host_os in
20718 irix5* | nonstopux*)
20719 libsuff= shlibsuff=
20720 ;;
20721 *)
20722 case $LD in # libtool.m4 will add one of these switches to LD
20723 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20724 libsuff= shlibsuff= libmagic=32-bit;;
20725 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20726 libsuff=32 shlibsuff=N32 libmagic=N32;;
20727 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20728 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20729 *) libsuff= shlibsuff= libmagic=never-match;;
20730 esac
20731 ;;
20732 esac
20733 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20734 shlibpath_overrides_runpath=no
20735 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20736 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20737 hardcode_into_libs=yes
20738 ;;
20739
20740# No shared lib support for Linux oldld, aout, or coff.
20741linux*oldld* | linux*aout* | linux*coff*)
20742 dynamic_linker=no
20743 ;;
20744
cristy99bd5232011-12-07 14:38:20 +000020745# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000020746linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000020747 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020748 need_lib_prefix=no
20749 need_version=no
20750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20751 soname_spec='${libname}${release}${shared_ext}$major'
20752 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20753 shlibpath_var=LD_LIBRARY_PATH
20754 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000020755
cristy73bd4a52010-10-05 11:24:23 +000020756 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000020757 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000020758 $as_echo_n "(cached) " >&6
20759else
20760 lt_cv_shlibpath_overrides_runpath=no
20761 save_LDFLAGS=$LDFLAGS
20762 save_libdir=$libdir
20763 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20764 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000020766/* end confdefs.h. */
20767
20768int
20769main ()
20770{
20771
20772 ;
20773 return 0;
20774}
20775_ACEOF
20776if ac_fn_cxx_try_link "$LINENO"; then :
20777 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000020778 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000020779fi
20780fi
20781rm -f core conftest.err conftest.$ac_objext \
20782 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000020783 LDFLAGS=$save_LDFLAGS
20784 libdir=$save_libdir
20785
20786fi
20787
20788 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000020789
20790 # This implies no fast_install, which is unacceptable.
20791 # Some rework will be needed to allow for fast_install
20792 # before this can be enabled.
20793 hardcode_into_libs=yes
20794
20795 # Add ABI-specific directories to the system library path.
20796 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
20797
20798 # Append ld.so.conf contents to the search path
20799 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000020800 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 +000020801 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000020802
cristy73bd4a52010-10-05 11:24:23 +000020803 fi
20804
20805 # We used to test for /lib/ld.so.1 and disable shared libraries on
20806 # powerpc, because MkLinux only supported shared libraries with the
20807 # GNU dynamic linker. Since this was broken with cross compilers,
20808 # most powerpc-linux boxes support dynamic linking these days and
20809 # people can always --disable-shared, the test was removed, and we
20810 # assume the GNU/Linux dynamic linker is in use.
20811 dynamic_linker='GNU/Linux ld.so'
20812 ;;
20813
20814netbsd*)
20815 version_type=sunos
20816 need_lib_prefix=no
20817 need_version=no
20818 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20820 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20821 dynamic_linker='NetBSD (a.out) ld.so'
20822 else
20823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20824 soname_spec='${libname}${release}${shared_ext}$major'
20825 dynamic_linker='NetBSD ld.elf_so'
20826 fi
20827 shlibpath_var=LD_LIBRARY_PATH
20828 shlibpath_overrides_runpath=yes
20829 hardcode_into_libs=yes
20830 ;;
20831
20832newsos6)
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 shlibpath_var=LD_LIBRARY_PATH
20836 shlibpath_overrides_runpath=yes
20837 ;;
20838
20839*nto* | *qnx*)
20840 version_type=qnx
20841 need_lib_prefix=no
20842 need_version=no
20843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20844 soname_spec='${libname}${release}${shared_ext}$major'
20845 shlibpath_var=LD_LIBRARY_PATH
20846 shlibpath_overrides_runpath=no
20847 hardcode_into_libs=yes
20848 dynamic_linker='ldqnx.so'
20849 ;;
20850
20851openbsd*)
20852 version_type=sunos
20853 sys_lib_dlsearch_path_spec="/usr/lib"
20854 need_lib_prefix=no
20855 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20856 case $host_os in
20857 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20858 *) need_version=no ;;
20859 esac
20860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20861 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20862 shlibpath_var=LD_LIBRARY_PATH
20863 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20864 case $host_os in
20865 openbsd2.[89] | openbsd2.[89].*)
20866 shlibpath_overrides_runpath=no
20867 ;;
20868 *)
20869 shlibpath_overrides_runpath=yes
20870 ;;
20871 esac
20872 else
20873 shlibpath_overrides_runpath=yes
20874 fi
20875 ;;
20876
20877os2*)
20878 libname_spec='$name'
20879 shrext_cmds=".dll"
20880 need_lib_prefix=no
20881 library_names_spec='$libname${shared_ext} $libname.a'
20882 dynamic_linker='OS/2 ld.exe'
20883 shlibpath_var=LIBPATH
20884 ;;
20885
20886osf3* | osf4* | osf5*)
20887 version_type=osf
20888 need_lib_prefix=no
20889 need_version=no
20890 soname_spec='${libname}${release}${shared_ext}$major'
20891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20892 shlibpath_var=LD_LIBRARY_PATH
20893 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20894 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20895 ;;
20896
20897rdos*)
20898 dynamic_linker=no
20899 ;;
20900
20901solaris*)
cristy99bd5232011-12-07 14:38:20 +000020902 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020903 need_lib_prefix=no
20904 need_version=no
20905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20906 soname_spec='${libname}${release}${shared_ext}$major'
20907 shlibpath_var=LD_LIBRARY_PATH
20908 shlibpath_overrides_runpath=yes
20909 hardcode_into_libs=yes
20910 # ldd complains unless libraries are executable
20911 postinstall_cmds='chmod +x $lib'
20912 ;;
20913
20914sunos4*)
20915 version_type=sunos
20916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20917 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20918 shlibpath_var=LD_LIBRARY_PATH
20919 shlibpath_overrides_runpath=yes
20920 if test "$with_gnu_ld" = yes; then
20921 need_lib_prefix=no
20922 fi
20923 need_version=yes
20924 ;;
20925
20926sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000020927 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20929 soname_spec='${libname}${release}${shared_ext}$major'
20930 shlibpath_var=LD_LIBRARY_PATH
20931 case $host_vendor in
20932 sni)
20933 shlibpath_overrides_runpath=no
20934 need_lib_prefix=no
20935 runpath_var=LD_RUN_PATH
20936 ;;
20937 siemens)
20938 need_lib_prefix=no
20939 ;;
20940 motorola)
20941 need_lib_prefix=no
20942 need_version=no
20943 shlibpath_overrides_runpath=no
20944 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20945 ;;
20946 esac
20947 ;;
20948
20949sysv4*MP*)
20950 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000020951 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020952 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20953 soname_spec='$libname${shared_ext}.$major'
20954 shlibpath_var=LD_LIBRARY_PATH
20955 fi
20956 ;;
20957
20958sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20959 version_type=freebsd-elf
20960 need_lib_prefix=no
20961 need_version=no
20962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20963 soname_spec='${libname}${release}${shared_ext}$major'
20964 shlibpath_var=LD_LIBRARY_PATH
20965 shlibpath_overrides_runpath=yes
20966 hardcode_into_libs=yes
20967 if test "$with_gnu_ld" = yes; then
20968 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20969 else
20970 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20971 case $host_os in
20972 sco3.2v5*)
20973 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20974 ;;
20975 esac
20976 fi
20977 sys_lib_dlsearch_path_spec='/usr/lib'
20978 ;;
20979
20980tpf*)
20981 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000020982 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020983 need_lib_prefix=no
20984 need_version=no
20985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20986 shlibpath_var=LD_LIBRARY_PATH
20987 shlibpath_overrides_runpath=no
20988 hardcode_into_libs=yes
20989 ;;
20990
20991uts4*)
cristy99bd5232011-12-07 14:38:20 +000020992 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20994 soname_spec='${libname}${release}${shared_ext}$major'
20995 shlibpath_var=LD_LIBRARY_PATH
20996 ;;
20997
20998*)
20999 dynamic_linker=no
21000 ;;
21001esac
21002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21003$as_echo "$dynamic_linker" >&6; }
21004test "$dynamic_linker" = no && can_build_shared=no
21005
21006variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21007if test "$GCC" = yes; then
21008 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21009fi
21010
21011if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21012 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21013fi
21014if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21015 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21016fi
21017
21018
21019
21020
21021
21022
21023
21024
21025
21026
21027
21028
21029
21030
21031
21032
21033
21034
21035
21036
21037
21038
21039
21040
21041
21042
21043
21044
21045
21046
21047
21048
21049
21050
21051
21052
cristy0c60a692010-11-04 01:09:47 +000021053
21054
cristy73bd4a52010-10-05 11:24:23 +000021055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21056$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21057hardcode_action_CXX=
21058if test -n "$hardcode_libdir_flag_spec_CXX" ||
21059 test -n "$runpath_var_CXX" ||
21060 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21061
21062 # We can hardcode non-existent directories.
21063 if test "$hardcode_direct_CXX" != no &&
21064 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21065 # have to relink, otherwise we might link with an installed library
21066 # when we should be linking with a yet-to-be-installed one
21067 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21068 test "$hardcode_minus_L_CXX" != no; then
21069 # Linking always hardcodes the temporary library directory.
21070 hardcode_action_CXX=relink
21071 else
21072 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21073 hardcode_action_CXX=immediate
21074 fi
21075else
21076 # We cannot hardcode anything, or else we can only hardcode existing
21077 # directories.
21078 hardcode_action_CXX=unsupported
21079fi
21080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21081$as_echo "$hardcode_action_CXX" >&6; }
21082
21083if test "$hardcode_action_CXX" = relink ||
21084 test "$inherit_rpath_CXX" = yes; then
21085 # Fast installation is not supported
21086 enable_fast_install=no
21087elif test "$shlibpath_overrides_runpath" = yes ||
21088 test "$enable_shared" = no; then
21089 # Fast installation is not necessary
21090 enable_fast_install=needless
21091fi
21092
21093
21094
21095
21096
21097
21098
21099 fi # test -n "$compiler"
21100
21101 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000021102 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000021103 LDCXX=$LD
21104 LD=$lt_save_LD
21105 GCC=$lt_save_GCC
21106 with_gnu_ld=$lt_save_with_gnu_ld
21107 lt_cv_path_LDCXX=$lt_cv_path_LD
21108 lt_cv_path_LD=$lt_save_path_LD
21109 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21110 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21111fi # test "$_lt_caught_CXX_error" != yes
21112
21113ac_ext=c
21114ac_cpp='$CPP $CPPFLAGS'
21115ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21116ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21117ac_compiler_gnu=$ac_cv_c_compiler_gnu
21118
21119
21120
21121
21122
21123
21124
21125
21126
21127
21128
21129
21130
cristy99bd5232011-12-07 14:38:20 +000021131
21132
cristy73bd4a52010-10-05 11:24:23 +000021133 ac_config_commands="$ac_config_commands libtool"
21134
21135
21136
21137
21138# Only expand once:
21139
21140
21141
cristy3ed852e2009-09-05 21:47:34 +000021142
21143
cristy3ed852e2009-09-05 21:47:34 +000021144# Check to see if building shared libraries
21145libtool_build_shared_libs='no'
21146if test "$enable_shared" = 'yes'; then
21147 libtool_build_shared_libs='yes'
21148fi
21149
21150# Check to see if building static libraries
21151libtool_build_static_libs='no'
21152if test "$enable_static" = 'yes'; then
21153 libtool_build_static_libs='yes'
21154fi
21155
cristy73bd4a52010-10-05 11:24:23 +000021156 if test "${libtool_build_shared_libs}" = 'yes'; then
21157 WITH_SHARED_LIBS_TRUE=
21158 WITH_SHARED_LIBS_FALSE='#'
21159else
21160 WITH_SHARED_LIBS_TRUE='#'
21161 WITH_SHARED_LIBS_FALSE=
21162fi
21163
cristy3ed852e2009-09-05 21:47:34 +000021164#
21165# Enable support for building loadable modules
21166#
cristyaf4cbf32012-10-16 23:47:41 +000021167build_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000021168
21169# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000021170if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021171 withval=$with_modules; with_modules=$withval
21172else
cristy5a1cefd2010-01-06 20:42:35 +000021173 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000021174fi
21175
21176
21177# Only allow building loadable modules if we are building shared libraries
21178if test "$with_modules" != 'no' ; then
21179 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000021180 { $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 +000021181$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
cristyc6722092012-10-14 00:19:31 +000021182 build_modules='no'
21183 else
21184 build_modules='yes'
21185 fi
cristy3ed852e2009-09-05 21:47:34 +000021186fi
cristyc6722092012-10-14 00:19:31 +000021187if test "$build_modules" != 'no' ; then
cristy3ed852e2009-09-05 21:47:34 +000021188
cristy8b350f62009-11-15 23:12:43 +000021189$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021190
cristyfa161182012-12-19 15:45:28 +000021191 MAGICK_FEATURES="$MAGICK_FEATURES Modules"
cristy3ed852e2009-09-05 21:47:34 +000021192fi
cristyc6722092012-10-14 00:19:31 +000021193 if test "$build_modules" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +000021194 WITH_MODULES_TRUE=
21195 WITH_MODULES_FALSE='#'
21196else
21197 WITH_MODULES_TRUE='#'
21198 WITH_MODULES_FALSE=
21199fi
21200
cristy3ed852e2009-09-05 21:47:34 +000021201
cristy3ed852e2009-09-05 21:47:34 +000021202# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000021203# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000021204# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000021205if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021206 enableval=$enable_delegate_build; enable_delegate_build=$enableval
21207else
21208 enable_delegate_build='no'
21209fi
21210
21211
21212# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000021213if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021214 enableval=$enable_deprecated; enable_deprecated=$enableval
21215else
21216 enable_deprecated='no'
21217fi
21218
21219
21220if test "$enable_deprecated" = 'yes'; then
21221
cristy8b350f62009-11-15 23:12:43 +000021222$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021223
21224else
21225 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
21226fi
21227
21228# Build a version of ImageMagick which operates uninstalled.
21229# Used to build distributions located via MAGICK_HOME / executable path
21230# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000021231if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021232 enableval=$enable_installed; enable_installed=$enableval
21233else
21234 enable_installed='yes'
21235fi
21236
21237
21238if test "$enable_installed" = 'yes'; then
21239
cristy8b350f62009-11-15 23:12:43 +000021240$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021241
21242else
21243 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
21244fi
21245
21246# Permit enciphering and deciphering image pixels.
21247# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000021248if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021249 enableval=$enable_cipher; enable_cipher=$enableval
21250else
21251 enable_cipher='yes'
21252fi
21253
21254
21255if test "$enable_cipher" = 'yes'; then
21256
cristy8b350f62009-11-15 23:12:43 +000021257$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021258
21259fi
21260
cristy6e3607c2011-09-13 13:59:17 +000021261# Build a zero-configuration version of ImageMagick.
21262# Check whether --enable-zero-configuration was given.
21263if test "${enable_zero_configuration+set}" = set; then :
21264 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
cristy3ed852e2009-09-05 21:47:34 +000021265else
cristy6e3607c2011-09-13 13:59:17 +000021266 enable_zero_configuration='no'
cristy3ed852e2009-09-05 21:47:34 +000021267fi
21268
21269
cristy6e3607c2011-09-13 13:59:17 +000021270if test "$enable_zero_configuration" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021271
cristy6e3607c2011-09-13 13:59:17 +000021272$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021273
cristy81af5702011-09-13 14:20:58 +000021274 MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021275fi
21276
21277# Build a high dynamic range version of ImageMagick.
21278# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000021279if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021280 enableval=$enable_hdri; enable_hdri=$enableval
21281else
cristy191c0b72012-08-12 16:29:52 +000021282 enable_hdri='yes'
cristy3ed852e2009-09-05 21:47:34 +000021283fi
21284
21285
21286MAGICK_HDRI=""
21287if test "$enable_hdri" = 'yes'; then
21288 MAGICK_HDRI="HDRI"
cristye52f12f2012-12-31 15:32:36 +000021289 magick_hdri_enable='1';
cristyfd9dcd42010-08-08 18:07:02 +000021290 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristye52f12f2012-12-31 15:32:36 +000021291else
21292 magick_hdri_enable='0'
cristy3ed852e2009-09-05 21:47:34 +000021293fi
21294
cristye52f12f2012-12-31 15:32:36 +000021295cat >>confdefs.h <<_ACEOF
21296#define HDRI_ENABLE_OBSOLETE_IN_H $magick_hdri_enable
21297_ACEOF
21298
21299MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
21300CFLAGS="$CFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristy72062382012-12-31 16:49:52 +000021301CPPFLAGS="$CPPFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristye52f12f2012-12-31 15:32:36 +000021302
cristy3ed852e2009-09-05 21:47:34 +000021303# Build a version of ImageMagick with assert statements.
21304# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000021305if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021306 enableval=$enable_assert; enable_assert=$enableval
21307else
21308 enable_assert='yes'
21309fi
21310
21311
21312if test "$enable_assert" = 'no'; then
21313
cristy8b350f62009-11-15 23:12:43 +000021314$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021315
21316fi
21317
cristya448bd22011-10-14 12:38:13 +000021318# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
cristy73bd4a52010-10-05 11:24:23 +000021319
21320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
21321$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21322 # Check whether --enable-maintainer-mode was given.
21323if test "${enable_maintainer_mode+set}" = set; then :
21324 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21325else
21326 USE_MAINTAINER_MODE=no
21327fi
21328
21329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
21330$as_echo "$USE_MAINTAINER_MODE" >&6; }
21331 if test $USE_MAINTAINER_MODE = yes; then
21332 MAINTAINER_MODE_TRUE=
21333 MAINTAINER_MODE_FALSE='#'
21334else
21335 MAINTAINER_MODE_TRUE='#'
21336 MAINTAINER_MODE_FALSE=
21337fi
21338
21339 MAINT=$MAINTAINER_MODE_TRUE
21340
21341
cristy3ed852e2009-09-05 21:47:34 +000021342
cristy944e51f2013-04-16 18:45:02 +000021343# Enable hugepages support
21344# Check whether --enable-hugepages was given.
21345if test "${enable_hugepages+set}" = set; then :
21346 enableval=$enable_hugepages; enable_hugepages=$enableval
21347else
21348 enable_hugepages='no'
21349fi
21350
21351
cristy3ed852e2009-09-05 21:47:34 +000021352# Enable ccmalloc memory debugging support
21353# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000021354if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021355 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
21356else
21357 enable_ccmalloc='no'
21358fi
21359
21360
21361# Enable Electric Fence memory debugging support
21362# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000021363if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021364 enableval=$enable_efence; enable_efence=$enableval
21365else
21366 enable_efence='no'
21367fi
21368
21369
21370# Enable prof-based profiling support
21371# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000021372if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021373 enableval=$enable_prof; enable_prof=$enableval
21374else
21375 enable_prof='no'
21376fi
21377
21378
21379# Enable gprof-based profiling support
21380# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000021381if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021382 enableval=$enable_gprof; enable_gprof=$enableval
21383else
21384 enable_gprof='no'
21385fi
21386
21387
21388# Enable gcov-based profiling support
21389# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000021390if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021391 enableval=$enable_gcov; enable_gcov=$enableval
21392else
21393 enable_gcov='no'
21394fi
21395
21396
21397enable_profiling='no'
21398if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21399 enable_profiling='yes'
21400 if test "$libtool_build_shared_libs" = 'yes'; then
21401 echo "Warning: Can not profile code using shared libraries"
21402 fi
21403fi
21404
21405# Magick API method prefix
21406
21407# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000021408if test "${with_method_prefix+set}" = set; then :
cristyfc3d0222012-02-07 15:05:57 +000021409 withval=$with_method_prefix; with_method_prefix=$withval
cristy3ed852e2009-09-05 21:47:34 +000021410else
cristyfc3d0222012-02-07 15:05:57 +000021411 with_method_prefix='no'
cristy3ed852e2009-09-05 21:47:34 +000021412fi
21413
21414
cristyfc3d0222012-02-07 15:05:57 +000021415if test "$with_method_prefix" != 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000021416
21417cat >>confdefs.h <<_ACEOF
21418#define NAMESPACE_PREFIX $with_method_prefix
21419_ACEOF
21420
cristyfc3d0222012-02-07 15:05:57 +000021421 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix "
cristy3ed852e2009-09-05 21:47:34 +000021422fi
21423
cristy71d8c202012-03-20 17:05:01 +000021424# Enable legacy support (default no)
21425# Check whether --enable-legacy-support was given.
21426if test "${enable_legacy_support+set}" = set; then :
21427 enableval=$enable_legacy_support; with_legacy_support=$enableval
21428else
21429 with_legacy_support='no'
21430fi
21431
21432 if test "$with_legacy_support" != 'no'; then
21433 LEGACY_SUPPORT_TRUE=
21434 LEGACY_SUPPORT_FALSE='#'
21435else
21436 LEGACY_SUPPORT_TRUE='#'
21437 LEGACY_SUPPORT_FALSE=
21438fi
21439
21440
cristy3ed852e2009-09-05 21:47:34 +000021441# Number of bits in a Quantum
21442
21443# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000021444if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021445 withval=$with_quantum_depth; with_quantum_depth=$withval
21446else
21447 with_quantum_depth=16
21448fi
21449
21450
21451if test "$with_quantum_depth" != '8'; then
21452 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21453fi
21454
21455case "${with_quantum_depth}" in
21456 8 ) ;;
21457 16 ) ;;
21458 32 ) ;;
21459 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000021460 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021461esac
21462QUANTUM_DEPTH="$with_quantum_depth"
21463
21464cat >>confdefs.h <<_ACEOF
cristye52f12f2012-12-31 15:32:36 +000021465#define QUANTUM_DEPTH_OBSOLETE_IN_H $QUANTUM_DEPTH
cristy3ed852e2009-09-05 21:47:34 +000021466_ACEOF
21467
cristya371edf2013-02-06 13:42:17 +000021468MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristye52f12f2012-12-31 15:32:36 +000021469CFLAGS="$CFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy72062382012-12-31 16:49:52 +000021470CPPFLAGS="$CPPFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy3ed852e2009-09-05 21:47:34 +000021471
cristy01ff9f32012-12-01 18:15:29 +000021472# define a lib suffix for abi purpose
cristy7a26abd2012-12-03 00:18:59 +000021473MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}"
cristye386d192012-12-01 21:05:20 +000021474if test "$enable_hdri" = 'yes'; then
cristy7a26abd2012-12-03 00:18:59 +000021475 MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}${MAGICK_HDRI}"
cristye386d192012-12-01 21:05:20 +000021476fi
cristy01ff9f32012-12-01 18:15:29 +000021477
21478
cristy3ed852e2009-09-05 21:47:34 +000021479# Set pixel cache threshold
21480
21481# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000021482if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021483 withval=$with_cache; with_cache=$withval
21484else
21485 with_cache=''
21486fi
21487
21488
21489if test "$with_cache" != ''; then
21490
21491cat >>confdefs.h <<_ACEOF
21492#define PixelCacheThreshold $with_cache
21493_ACEOF
21494
21495 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21496fi
21497
21498# Disable/Enable support for full delegate paths
21499
21500# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000021501if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021502 withval=$with_frozenpaths; with_frozenpaths=$withval
21503else
21504 with_frozenpaths='no'
21505fi
21506
21507
21508# Enable build/install of Magick++
21509
21510# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000021511if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021512 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21513else
21514 with_magick_plus_plus='yes'
21515fi
21516
21517
cristy3a75f062012-09-08 23:29:40 +000021518# Encode the this name into the shared library.
21519
21520# Check whether --with-package-release-name was given.
21521if test "${with_package_release_name+set}" = set; then :
21522 withval=$with_package_release_name; MAGICK_LT_RELEASE_OPTS="-release $withval"
21523fi
21524
21525
21526
cristy3ed852e2009-09-05 21:47:34 +000021527# Disable build/install of PerlMagick.
21528
21529# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000021530if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021531 withval=$with_perl; with_perl=$withval
21532else
cristyb5f4e2f2010-04-25 00:49:11 +000021533 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000021534fi
21535
21536
21537# Options to pass when configuring PerlMagick
21538
21539# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000021540if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000021541 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000021542fi
21543
21544
cristy3ed852e2009-09-05 21:47:34 +000021545
21546# Enable umem, object-caching memory allocation library.
21547
21548# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000021549if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021550 withval=$with_umem; with_umem=$withval
21551else
21552 with_umem='no'
21553fi
21554
21555if test "$with_umem" != 'yes' ; then
21556 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21557fi
21558
21559#
21560# Specify path to shared libstdc++ if not in normal location
21561#
21562
21563# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000021564if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021565 withval=$with_libstdc; with_libstdc=$withval
21566else
21567 with_libstdc=''
21568fi
21569
21570
21571if test "$with_libstdc" != ''; then
21572 if test -d "$with_libstdc"; then
21573 LIBSTDCLDFLAGS="-L$with_libstdc"
21574 fi
21575fi
21576
21577
21578# Does gcc required -traditional?
21579if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000021580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021581$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021582if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021583 $as_echo_n "(cached) " >&6
21584else
21585 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000021586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021587/* end confdefs.h. */
21588#include <sgtty.h>
21589Autoconf TIOCGETP
21590_ACEOF
21591if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021592 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021593 ac_cv_prog_gcc_traditional=yes
21594else
21595 ac_cv_prog_gcc_traditional=no
21596fi
21597rm -f conftest*
21598
21599
21600 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000021601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021602/* end confdefs.h. */
21603#include <termio.h>
21604Autoconf TCGETA
21605_ACEOF
21606if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021607 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021608 ac_cv_prog_gcc_traditional=yes
21609fi
21610rm -f conftest*
21611
21612 fi
21613fi
cristy8b350f62009-11-15 23:12:43 +000021614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021615$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21616 if test $ac_cv_prog_gcc_traditional = yes; then
21617 CC="$CC -traditional"
21618 fi
21619fi
21620
21621
21622########
21623#
21624# Set defines required to build DLLs and modules using MinGW
21625#
21626########
21627# These options are set for multi-thread DLL module build
21628# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
21629# module: _DLL
21630# executable/Magick++: _DLL _MAGICKMOD_
21631MODULE_EXTRA_CPPFLAGS=''
21632LIBRARY_EXTRA_CPPFLAGS=''
21633if test "${native_win32_build}" = 'yes'; then
21634 if test "${libtool_build_shared_libs}" = 'yes'; then
21635 CPPFLAGS="$CPPFLAGS -D_DLL"
21636 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
21637 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
21638 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
cristyc6722092012-10-14 00:19:31 +000021639 if test "$build_modules" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021640 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
21641 else
21642 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21643 fi
21644 else
21645 CPPFLAGS="$CPPFLAGS -D_LIB"
21646 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
21647 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
21648 fi
21649 if test "$with_threads" = 'yes'; then
21650 CPPFLAGS="$CPPFLAGS -D_MT"
21651 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
21652 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
21653 fi
21654fi
21655
21656
21657
21658# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000021659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000021660$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021661if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021662 $as_echo_n "(cached) " >&6
21663else
cristy8b350f62009-11-15 23:12:43 +000021664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021665/* end confdefs.h. */
21666#include <stdlib.h>
21667#include <stdarg.h>
21668#include <string.h>
21669#include <float.h>
21670
21671int
21672main ()
21673{
21674
21675 ;
21676 return 0;
21677}
21678_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021679if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021680 ac_cv_header_stdc=yes
21681else
cristy8b350f62009-11-15 23:12:43 +000021682 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021683fi
cristy3ed852e2009-09-05 21:47:34 +000021684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21685
21686if test $ac_cv_header_stdc = yes; then
21687 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021689/* end confdefs.h. */
21690#include <string.h>
21691
21692_ACEOF
21693if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021694 $EGREP "memchr" >/dev/null 2>&1; then :
21695
cristy3ed852e2009-09-05 21:47:34 +000021696else
21697 ac_cv_header_stdc=no
21698fi
21699rm -f conftest*
21700
21701fi
21702
21703if test $ac_cv_header_stdc = yes; then
21704 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021706/* end confdefs.h. */
21707#include <stdlib.h>
21708
21709_ACEOF
21710if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021711 $EGREP "free" >/dev/null 2>&1; then :
21712
cristy3ed852e2009-09-05 21:47:34 +000021713else
21714 ac_cv_header_stdc=no
21715fi
21716rm -f conftest*
21717
21718fi
21719
21720if test $ac_cv_header_stdc = yes; then
21721 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000021722 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021723 :
21724else
cristy8b350f62009-11-15 23:12:43 +000021725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021726/* end confdefs.h. */
21727#include <ctype.h>
21728#include <stdlib.h>
21729#if ((' ' & 0x0FF) == 0x020)
21730# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21731# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21732#else
21733# define ISLOWER(c) \
21734 (('a' <= (c) && (c) <= 'i') \
21735 || ('j' <= (c) && (c) <= 'r') \
21736 || ('s' <= (c) && (c) <= 'z'))
21737# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21738#endif
21739
21740#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21741int
21742main ()
21743{
21744 int i;
21745 for (i = 0; i < 256; i++)
21746 if (XOR (islower (i), ISLOWER (i))
21747 || toupper (i) != TOUPPER (i))
21748 return 2;
21749 return 0;
21750}
21751_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021752if ac_fn_c_try_run "$LINENO"; then :
21753
cristy3ed852e2009-09-05 21:47:34 +000021754else
cristy8b350f62009-11-15 23:12:43 +000021755 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021756fi
cristy8b350f62009-11-15 23:12:43 +000021757rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21758 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021759fi
21760
cristy3ed852e2009-09-05 21:47:34 +000021761fi
21762fi
cristy8b350f62009-11-15 23:12:43 +000021763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000021764$as_echo "$ac_cv_header_stdc" >&6; }
21765if test $ac_cv_header_stdc = yes; then
21766
cristy8b350f62009-11-15 23:12:43 +000021767$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021768
21769fi
21770
21771if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000021772 { $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 +000021773 header files. Compilation cannot proceed. Please install the ANSI C
21774 headers and rerun this script." >&5
21775$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
21776 header files. Compilation cannot proceed. Please install the ANSI C
21777 headers and rerun this script." >&2;};
21778fi
cristya0b81c32010-01-22 02:54:33 +000021779
21780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
21781$as_echo_n "checking whether to enable assertions... " >&6; }
21782 # Check whether --enable-assert was given.
21783if test "${enable_assert+set}" = set; then :
21784 enableval=$enable_assert; ac_enable_assert=$enableval
21785 if test "x$enableval" = xno; then :
21786
21787$as_echo "#define NDEBUG 1" >>confdefs.h
21788
21789elif test "x$enableval" != xyes; then :
21790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
21791$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
21792 ac_enable_assert=yes
21793fi
21794else
21795 ac_enable_assert=yes
21796fi
21797
21798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
21799$as_echo "$ac_enable_assert" >&6; }
21800
cristy3ed852e2009-09-05 21:47:34 +000021801ac_header_dirent=no
21802for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21803 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000021804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000021805$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021806if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021807 $as_echo_n "(cached) " >&6
21808else
cristy8b350f62009-11-15 23:12:43 +000021809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021810/* end confdefs.h. */
21811#include <sys/types.h>
21812#include <$ac_hdr>
21813
21814int
21815main ()
21816{
21817if ((DIR *) 0)
21818return 0;
21819 ;
21820 return 0;
21821}
21822_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021823if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021824 eval "$as_ac_Header=yes"
21825else
cristy8b350f62009-11-15 23:12:43 +000021826 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000021827fi
cristy3ed852e2009-09-05 21:47:34 +000021828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21829fi
cristy8b350f62009-11-15 23:12:43 +000021830eval ac_res=\$$as_ac_Header
21831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000021832$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000021833if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021834 cat >>confdefs.h <<_ACEOF
21835#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21836_ACEOF
21837
21838ac_header_dirent=$ac_hdr; break
21839fi
21840
21841done
21842# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21843if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000021844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021845$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021846if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021847 $as_echo_n "(cached) " >&6
21848else
21849 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021850cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021851/* end confdefs.h. */
21852
21853/* Override any GCC internal prototype to avoid an error.
21854 Use char because int might match the return type of a GCC
21855 builtin and then its argument prototype would still apply. */
21856#ifdef __cplusplus
21857extern "C"
21858#endif
21859char opendir ();
21860int
21861main ()
21862{
21863return opendir ();
21864 ;
21865 return 0;
21866}
21867_ACEOF
21868for ac_lib in '' dir; do
21869 if test -z "$ac_lib"; then
21870 ac_res="none required"
21871 else
21872 ac_res=-l$ac_lib
21873 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21874 fi
cristy8b350f62009-11-15 23:12:43 +000021875 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021876 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021877fi
cristy8b350f62009-11-15 23:12:43 +000021878rm -f core conftest.err conftest.$ac_objext \
21879 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021880 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021881 break
21882fi
21883done
cristyda16f162011-02-19 23:52:17 +000021884if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021885
cristy3ed852e2009-09-05 21:47:34 +000021886else
21887 ac_cv_search_opendir=no
21888fi
21889rm conftest.$ac_ext
21890LIBS=$ac_func_search_save_LIBS
21891fi
cristy8b350f62009-11-15 23:12:43 +000021892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021893$as_echo "$ac_cv_search_opendir" >&6; }
21894ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021895if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021896 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21897
21898fi
21899
21900else
cristy8b350f62009-11-15 23:12:43 +000021901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021902$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021903if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021904 $as_echo_n "(cached) " >&6
21905else
21906 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021907cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021908/* end confdefs.h. */
21909
21910/* Override any GCC internal prototype to avoid an error.
21911 Use char because int might match the return type of a GCC
21912 builtin and then its argument prototype would still apply. */
21913#ifdef __cplusplus
21914extern "C"
21915#endif
21916char opendir ();
21917int
21918main ()
21919{
21920return opendir ();
21921 ;
21922 return 0;
21923}
21924_ACEOF
21925for ac_lib in '' x; do
21926 if test -z "$ac_lib"; then
21927 ac_res="none required"
21928 else
21929 ac_res=-l$ac_lib
21930 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21931 fi
cristy8b350f62009-11-15 23:12:43 +000021932 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021933 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021934fi
cristy8b350f62009-11-15 23:12:43 +000021935rm -f core conftest.err conftest.$ac_objext \
21936 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021937 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021938 break
21939fi
21940done
cristyda16f162011-02-19 23:52:17 +000021941if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021942
cristy3ed852e2009-09-05 21:47:34 +000021943else
21944 ac_cv_search_opendir=no
21945fi
21946rm conftest.$ac_ext
21947LIBS=$ac_func_search_save_LIBS
21948fi
cristy8b350f62009-11-15 23:12:43 +000021949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021950$as_echo "$ac_cv_search_opendir" >&6; }
21951ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021952if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021953 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21954
21955fi
21956
21957fi
21958
21959
21960# Check additional headers
cristy03f187e2013-01-24 00:22:19 +000021961for 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 +000021962do :
21963 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21964ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000021965if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021966 cat >>confdefs.h <<_ACEOF
21967#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21968_ACEOF
21969
21970fi
21971
21972done
21973
21974
21975########
21976#
21977# Checks for typedefs, structures, and compiler characteristics.
21978#
21979########
21980
cristy8b350f62009-11-15 23:12:43 +000021981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000021982$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021983if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021984 $as_echo_n "(cached) " >&6
21985else
cristy8b350f62009-11-15 23:12:43 +000021986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021987/* end confdefs.h. */
21988
cristy14fefe52012-05-21 00:59:18 +000021989 #include <stdbool.h>
21990 #ifndef bool
21991 "error: bool is not defined"
21992 #endif
21993 #ifndef false
21994 "error: false is not defined"
21995 #endif
21996 #if false
21997 "error: false is not 0"
21998 #endif
21999 #ifndef true
22000 "error: true is not defined"
22001 #endif
22002 #if true != 1
22003 "error: true is not 1"
22004 #endif
22005 #ifndef __bool_true_false_are_defined
22006 "error: __bool_true_false_are_defined is not defined"
22007 #endif
cristy3ed852e2009-09-05 21:47:34 +000022008
cristy14fefe52012-05-21 00:59:18 +000022009 struct s { _Bool s: 1; _Bool t; } s;
cristy3ed852e2009-09-05 21:47:34 +000022010
cristy14fefe52012-05-21 00:59:18 +000022011 char a[true == 1 ? 1 : -1];
22012 char b[false == 0 ? 1 : -1];
22013 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
22014 char d[(bool) 0.5 == true ? 1 : -1];
22015 /* See body of main program for 'e'. */
22016 char f[(_Bool) 0.0 == false ? 1 : -1];
22017 char g[true];
22018 char h[sizeof (_Bool)];
22019 char i[sizeof s.t];
22020 enum { j = false, k = true, l = false * true, m = true * 256 };
22021 /* The following fails for
22022 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
22023 _Bool n[m];
22024 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
22025 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
22026 /* Catch a bug in an HP-UX C compiler. See
22027 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
22028 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
22029 */
22030 _Bool q = true;
22031 _Bool *pq = &q;
cristy3ed852e2009-09-05 21:47:34 +000022032
22033int
22034main ()
22035{
22036
cristy14fefe52012-05-21 00:59:18 +000022037 bool e = &s;
22038 *pq |= q;
22039 *pq |= ! q;
22040 /* Refer to every declared value, to avoid compiler optimizations. */
22041 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
22042 + !m + !n + !o + !p + !q + !pq);
cristy3ed852e2009-09-05 21:47:34 +000022043
22044 ;
22045 return 0;
22046}
22047_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022048if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022049 ac_cv_header_stdbool_h=yes
22050else
cristy8b350f62009-11-15 23:12:43 +000022051 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000022052fi
cristy3ed852e2009-09-05 21:47:34 +000022053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22054fi
cristy8b350f62009-11-15 23:12:43 +000022055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000022056$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy14fefe52012-05-21 00:59:18 +000022057 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000022058if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000022059
22060cat >>confdefs.h <<_ACEOF
22061#define HAVE__BOOL 1
22062_ACEOF
22063
22064
22065fi
22066
cristy14fefe52012-05-21 00:59:18 +000022067
cristy3ed852e2009-09-05 21:47:34 +000022068if test $ac_cv_header_stdbool_h = yes; then
22069
cristy8b350f62009-11-15 23:12:43 +000022070$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022071
22072fi
22073
cristy8b350f62009-11-15 23:12:43 +000022074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022075$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022076if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022077 $as_echo_n "(cached) " >&6
22078else
cristy8b350f62009-11-15 23:12:43 +000022079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022080/* end confdefs.h. */
22081
22082int
22083main ()
22084{
22085
22086volatile int x;
22087int * volatile y = (int *) 0;
22088return !x && !y;
22089 ;
22090 return 0;
22091}
22092_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022093if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022094 ac_cv_c_volatile=yes
22095else
cristy8b350f62009-11-15 23:12:43 +000022096 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000022097fi
cristy3ed852e2009-09-05 21:47:34 +000022098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22099fi
cristy8b350f62009-11-15 23:12:43 +000022100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022101$as_echo "$ac_cv_c_volatile" >&6; }
22102if test $ac_cv_c_volatile = no; then
22103
cristy8b350f62009-11-15 23:12:43 +000022104$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022105
22106fi
22107
cristy8b350f62009-11-15 23:12:43 +000022108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000022109$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022110if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022111 $as_echo_n "(cached) " >&6
22112else
cristy8b350f62009-11-15 23:12:43 +000022113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022114/* end confdefs.h. */
22115#define x(y) #y
22116
22117char *s = x(teststring);
22118_ACEOF
22119if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022120 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022121 ac_cv_c_stringize=no
22122else
22123 ac_cv_c_stringize=yes
22124fi
22125rm -f conftest*
22126
22127fi
cristy8b350f62009-11-15 23:12:43 +000022128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000022129$as_echo "$ac_cv_c_stringize" >&6; }
22130if test $ac_cv_c_stringize = yes; then
22131
cristy8b350f62009-11-15 23:12:43 +000022132$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022133
22134fi
22135
cristy8b350f62009-11-15 23:12:43 +000022136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022137$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022138if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022139 $as_echo_n "(cached) " >&6
22140else
cristy8b350f62009-11-15 23:12:43 +000022141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022142/* end confdefs.h. */
22143#include <sys/types.h>
22144#include <sys/stat.h>
22145
22146#if defined S_ISBLK && defined S_IFDIR
22147extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22148#endif
22149
22150#if defined S_ISBLK && defined S_IFCHR
22151extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22152#endif
22153
22154#if defined S_ISLNK && defined S_IFREG
22155extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22156#endif
22157
22158#if defined S_ISSOCK && defined S_IFREG
22159extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22160#endif
22161
22162_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022163if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022164 ac_cv_header_stat_broken=no
22165else
cristy8b350f62009-11-15 23:12:43 +000022166 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000022167fi
cristy3ed852e2009-09-05 21:47:34 +000022168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22169fi
cristy8b350f62009-11-15 23:12:43 +000022170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022171$as_echo "$ac_cv_header_stat_broken" >&6; }
22172if test $ac_cv_header_stat_broken = yes; then
22173
cristy8b350f62009-11-15 23:12:43 +000022174$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022175
22176fi
22177
cristy8b350f62009-11-15 23:12:43 +000022178{ $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 +000022179$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022180if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022181 $as_echo_n "(cached) " >&6
22182else
cristy8b350f62009-11-15 23:12:43 +000022183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022184/* end confdefs.h. */
22185#include <sys/types.h>
22186#include <sys/time.h>
22187#include <time.h>
22188
22189int
22190main ()
22191{
22192if ((struct tm *) 0)
22193return 0;
22194 ;
22195 return 0;
22196}
22197_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022198if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022199 ac_cv_header_time=yes
22200else
cristy8b350f62009-11-15 23:12:43 +000022201 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000022202fi
cristy3ed852e2009-09-05 21:47:34 +000022203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22204fi
cristy8b350f62009-11-15 23:12:43 +000022205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000022206$as_echo "$ac_cv_header_time" >&6; }
22207if test $ac_cv_header_time = yes; then
22208
cristy8b350f62009-11-15 23:12:43 +000022209$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022210
22211fi
22212
cristy8b350f62009-11-15 23:12:43 +000022213{ $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 +000022214$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022215if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022216 $as_echo_n "(cached) " >&6
22217else
cristy8b350f62009-11-15 23:12:43 +000022218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022219/* end confdefs.h. */
22220#include <sys/types.h>
22221#include <time.h>
22222
22223int
22224main ()
22225{
22226struct tm tm;
22227 int *p = &tm.tm_sec;
22228 return !p;
22229 ;
22230 return 0;
22231}
22232_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022233if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022234 ac_cv_struct_tm=time.h
22235else
cristy8b350f62009-11-15 23:12:43 +000022236 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000022237fi
cristy3ed852e2009-09-05 21:47:34 +000022238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22239fi
cristy8b350f62009-11-15 23:12:43 +000022240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000022241$as_echo "$ac_cv_struct_tm" >&6; }
22242if test $ac_cv_struct_tm = sys/time.h; then
22243
cristy8b350f62009-11-15 23:12:43 +000022244$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022245
22246fi
22247
cristy92703d82010-04-26 00:18:18 +000022248ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
22249#include <$ac_cv_struct_tm>
22250
22251"
cristyda16f162011-02-19 23:52:17 +000022252if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022253
22254cat >>confdefs.h <<_ACEOF
22255#define HAVE_STRUCT_TM_TM_ZONE 1
22256_ACEOF
22257
22258
22259fi
22260
22261if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22262
22263$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
22264
22265else
22266 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
22267"
cristyda16f162011-02-19 23:52:17 +000022268if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022269 ac_have_decl=1
22270else
22271 ac_have_decl=0
22272fi
22273
22274cat >>confdefs.h <<_ACEOF
22275#define HAVE_DECL_TZNAME $ac_have_decl
22276_ACEOF
22277
22278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
22279$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022280if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000022281 $as_echo_n "(cached) " >&6
22282else
22283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22284/* end confdefs.h. */
22285#include <time.h>
22286#if !HAVE_DECL_TZNAME
22287extern char *tzname[];
22288#endif
22289
22290int
22291main ()
22292{
22293return tzname[0][0];
22294 ;
22295 return 0;
22296}
22297_ACEOF
22298if ac_fn_c_try_link "$LINENO"; then :
22299 ac_cv_var_tzname=yes
22300else
22301 ac_cv_var_tzname=no
22302fi
22303rm -f core conftest.err conftest.$ac_objext \
22304 conftest$ac_exeext conftest.$ac_ext
22305fi
22306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22307$as_echo "$ac_cv_var_tzname" >&6; }
22308 if test $ac_cv_var_tzname = yes; then
22309
22310$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
22311
22312 fi
22313fi
22314
cristy8b350f62009-11-15 23:12:43 +000022315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000022316$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022317if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022318 $as_echo_n "(cached) " >&6
22319else
22320 echo '#! /bin/cat
22321exit 69
22322' >conftest
22323chmod u+x conftest
22324(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
22325if test $? -ne 69; then
22326 ac_cv_sys_interpreter=yes
22327else
22328 ac_cv_sys_interpreter=no
22329fi
22330rm -f conftest
22331fi
cristy8b350f62009-11-15 23:12:43 +000022332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000022333$as_echo "$ac_cv_sys_interpreter" >&6; }
22334interpval=$ac_cv_sys_interpreter
22335
22336
cristye80f9cb2013-01-09 01:09:31 +000022337#
22338# Checks for language qualifiers and semantics.
22339#
22340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
22341$as_echo_n "checking whether char is unsigned... " >&6; }
22342if ${ac_cv_c_char_unsigned+:} false; then :
22343 $as_echo_n "(cached) " >&6
22344else
22345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22346/* end confdefs.h. */
22347$ac_includes_default
22348int
22349main ()
22350{
22351static int test_array [1 - 2 * !(((char) -1) < 0)];
22352test_array [0] = 0;
22353return test_array [0];
22354
22355 ;
22356 return 0;
22357}
22358_ACEOF
22359if ac_fn_c_try_compile "$LINENO"; then :
22360 ac_cv_c_char_unsigned=no
22361else
22362 ac_cv_c_char_unsigned=yes
22363fi
22364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22365fi
22366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
22367$as_echo "$ac_cv_c_char_unsigned" >&6; }
22368if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
22369 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
22370
22371fi
22372
22373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
22374$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
22375if ${ac_cv_c_const+:} false; then :
22376 $as_echo_n "(cached) " >&6
22377else
22378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22379/* end confdefs.h. */
22380
22381int
22382main ()
22383{
22384
22385#ifndef __cplusplus
22386 /* Ultrix mips cc rejects this sort of thing. */
22387 typedef int charset[2];
22388 const charset cs = { 0, 0 };
22389 /* SunOS 4.1.1 cc rejects this. */
22390 char const *const *pcpcc;
22391 char **ppc;
22392 /* NEC SVR4.0.2 mips cc rejects this. */
22393 struct point {int x, y;};
22394 static struct point const zero = {0,0};
22395 /* AIX XL C 1.02.0.0 rejects this.
22396 It does not let you subtract one const X* pointer from another in
22397 an arm of an if-expression whose if-part is not a constant
22398 expression */
22399 const char *g = "string";
22400 pcpcc = &g + (g ? g-g : 0);
22401 /* HPUX 7.0 cc rejects these. */
22402 ++pcpcc;
22403 ppc = (char**) pcpcc;
22404 pcpcc = (char const *const *) ppc;
22405 { /* SCO 3.2v4 cc rejects this sort of thing. */
22406 char tx;
22407 char *t = &tx;
22408 char const *s = 0 ? (char *) 0 : (char const *) 0;
22409
22410 *t++ = 0;
22411 if (s) return 0;
22412 }
22413 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22414 int x[] = {25, 17};
22415 const int *foo = &x[0];
22416 ++foo;
22417 }
22418 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22419 typedef const int *iptr;
22420 iptr p = 0;
22421 ++p;
22422 }
22423 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
22424 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22425 struct s { int j; const int *ap[3]; } bx;
22426 struct s *b = &bx; b->j = 5;
22427 }
22428 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22429 const int foo = 10;
22430 if (!foo) return 0;
22431 }
22432 return !cs[0] && !zero.x;
22433#endif
22434
22435 ;
22436 return 0;
22437}
22438_ACEOF
22439if ac_fn_c_try_compile "$LINENO"; then :
22440 ac_cv_c_const=yes
22441else
22442 ac_cv_c_const=no
22443fi
22444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22445fi
22446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
22447$as_echo "$ac_cv_c_const" >&6; }
22448if test $ac_cv_c_const = no; then
22449
22450$as_echo "#define const /**/" >>confdefs.h
22451
22452fi
22453
cristy8b350f62009-11-15 23:12:43 +000022454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022455$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022456if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022457 $as_echo_n "(cached) " >&6
22458else
22459 ac_cv_c_inline=no
22460for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000022461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022462/* end confdefs.h. */
22463#ifndef __cplusplus
22464typedef int foo_t;
22465static $ac_kw foo_t static_foo () {return 0; }
22466$ac_kw foo_t foo () {return 0; }
22467#endif
22468
22469_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022470if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022471 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022472fi
cristy3ed852e2009-09-05 21:47:34 +000022473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22474 test "$ac_cv_c_inline" != no && break
22475done
22476
22477fi
cristy8b350f62009-11-15 23:12:43 +000022478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022479$as_echo "$ac_cv_c_inline" >&6; }
22480
cristy3ed852e2009-09-05 21:47:34 +000022481case $ac_cv_c_inline in
22482 inline | yes) ;;
22483 *)
22484 case $ac_cv_c_inline in
22485 no) ac_val=;;
22486 *) ac_val=$ac_cv_c_inline;;
22487 esac
22488 cat >>confdefs.h <<_ACEOF
22489#ifndef __cplusplus
22490#define inline $ac_val
22491#endif
22492_ACEOF
22493 ;;
22494esac
22495
cristy8b350f62009-11-15 23:12:43 +000022496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000022497$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022498if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022499 $as_echo_n "(cached) " >&6
22500else
22501 ac_cv_c_restrict=no
22502 # The order here caters to the fact that C++ does not require restrict.
22503 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000022504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022505/* end confdefs.h. */
22506typedef int * int_ptr;
22507 int foo (int_ptr $ac_kw ip) {
22508 return ip[0];
22509 }
22510int
22511main ()
22512{
22513int s[1];
22514 int * $ac_kw t = s;
22515 t[0] = 0;
22516 return foo(t)
22517 ;
22518 return 0;
22519}
22520_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022521if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022522 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022523fi
cristy3ed852e2009-09-05 21:47:34 +000022524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22525 test "$ac_cv_c_restrict" != no && break
22526 done
22527
22528fi
cristy8b350f62009-11-15 23:12:43 +000022529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000022530$as_echo "$ac_cv_c_restrict" >&6; }
22531
cristy3ed852e2009-09-05 21:47:34 +000022532 case $ac_cv_c_restrict in
22533 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000022534 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022535 ;;
22536 *) cat >>confdefs.h <<_ACEOF
22537#define restrict $ac_cv_c_restrict
22538_ACEOF
22539 ;;
22540 esac
22541
cristye80f9cb2013-01-09 01:09:31 +000022542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
22543$as_echo_n "checking for working volatile... " >&6; }
22544if ${ac_cv_c_volatile+:} false; then :
22545 $as_echo_n "(cached) " >&6
22546else
22547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22548/* end confdefs.h. */
22549
22550int
22551main ()
22552{
22553
22554volatile int x;
22555int * volatile y = (int *) 0;
22556return !x && !y;
22557 ;
22558 return 0;
22559}
22560_ACEOF
22561if ac_fn_c_try_compile "$LINENO"; then :
22562 ac_cv_c_volatile=yes
22563else
22564 ac_cv_c_volatile=no
22565fi
22566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22567fi
22568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
22569$as_echo "$ac_cv_c_volatile" >&6; }
22570if test $ac_cv_c_volatile = no; then
22571
22572$as_echo "#define volatile /**/" >>confdefs.h
22573
22574fi
22575
cristy3ed852e2009-09-05 21:47:34 +000022576
22577# If words are stored with the most significant byte first (like
22578# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000022579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022580$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022581if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022582 $as_echo_n "(cached) " >&6
22583else
22584 ac_cv_c_bigendian=unknown
22585 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000022586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022587/* end confdefs.h. */
22588#ifndef __APPLE_CC__
22589 not a universal capable compiler
22590 #endif
22591 typedef int dummy;
22592
22593_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022594if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022595
22596 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000022597 # there are at least two -arch flags with different values.
22598 ac_arch=
22599 ac_prev=
22600 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22601 if test -n "$ac_prev"; then
22602 case $ac_word in
22603 i?86 | x86_64 | ppc | ppc64)
22604 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22605 ac_arch=$ac_word
22606 else
22607 ac_cv_c_bigendian=universal
22608 break
22609 fi
22610 ;;
22611 esac
22612 ac_prev=
22613 elif test "x$ac_word" = "x-arch"; then
22614 ac_prev=arch
22615 fi
22616 done
cristy3ed852e2009-09-05 21:47:34 +000022617fi
cristy3ed852e2009-09-05 21:47:34 +000022618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22619 if test $ac_cv_c_bigendian = unknown; then
22620 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000022621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022622/* end confdefs.h. */
22623#include <sys/types.h>
22624 #include <sys/param.h>
22625
22626int
22627main ()
22628{
22629#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22630 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22631 && LITTLE_ENDIAN)
22632 bogus endian macros
22633 #endif
22634
22635 ;
22636 return 0;
22637}
22638_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022639if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022640 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022642/* end confdefs.h. */
22643#include <sys/types.h>
22644 #include <sys/param.h>
22645
22646int
22647main ()
22648{
22649#if BYTE_ORDER != BIG_ENDIAN
22650 not big endian
22651 #endif
22652
22653 ;
22654 return 0;
22655}
22656_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022657if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022658 ac_cv_c_bigendian=yes
22659else
cristy8b350f62009-11-15 23:12:43 +000022660 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022661fi
cristy3ed852e2009-09-05 21:47:34 +000022662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022663fi
cristy3ed852e2009-09-05 21:47:34 +000022664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22665 fi
22666 if test $ac_cv_c_bigendian = unknown; then
22667 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000022668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022669/* end confdefs.h. */
22670#include <limits.h>
22671
22672int
22673main ()
22674{
22675#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22676 bogus endian macros
22677 #endif
22678
22679 ;
22680 return 0;
22681}
22682_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022683if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022684 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022686/* end confdefs.h. */
22687#include <limits.h>
22688
22689int
22690main ()
22691{
22692#ifndef _BIG_ENDIAN
22693 not big endian
22694 #endif
22695
22696 ;
22697 return 0;
22698}
22699_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022700if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022701 ac_cv_c_bigendian=yes
22702else
cristy8b350f62009-11-15 23:12:43 +000022703 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022704fi
cristy3ed852e2009-09-05 21:47:34 +000022705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022706fi
cristy3ed852e2009-09-05 21:47:34 +000022707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22708 fi
22709 if test $ac_cv_c_bigendian = unknown; then
22710 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000022711 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022712 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000022713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022714/* end confdefs.h. */
22715short int ascii_mm[] =
22716 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22717 short int ascii_ii[] =
22718 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22719 int use_ascii (int i) {
22720 return ascii_mm[i] + ascii_ii[i];
22721 }
22722 short int ebcdic_ii[] =
22723 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22724 short int ebcdic_mm[] =
22725 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22726 int use_ebcdic (int i) {
22727 return ebcdic_mm[i] + ebcdic_ii[i];
22728 }
22729 extern int foo;
22730
22731int
22732main ()
22733{
22734return use_ascii (foo) == use_ebcdic (foo);
22735 ;
22736 return 0;
22737}
22738_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022739if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022740 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22741 ac_cv_c_bigendian=yes
22742 fi
22743 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22744 if test "$ac_cv_c_bigendian" = unknown; then
22745 ac_cv_c_bigendian=no
22746 else
22747 # finding both strings is unlikely to happen, but who knows?
22748 ac_cv_c_bigendian=unknown
22749 fi
22750 fi
cristy3ed852e2009-09-05 21:47:34 +000022751fi
cristy3ed852e2009-09-05 21:47:34 +000022752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22753else
cristy8b350f62009-11-15 23:12:43 +000022754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022755/* end confdefs.h. */
22756$ac_includes_default
22757int
22758main ()
22759{
22760
22761 /* Are we little or big endian? From Harbison&Steele. */
22762 union
22763 {
22764 long int l;
22765 char c[sizeof (long int)];
22766 } u;
22767 u.l = 1;
22768 return u.c[sizeof (long int) - 1] == 1;
22769
22770 ;
22771 return 0;
22772}
22773_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022774if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022775 ac_cv_c_bigendian=no
22776else
cristy8b350f62009-11-15 23:12:43 +000022777 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000022778fi
cristy8b350f62009-11-15 23:12:43 +000022779rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22780 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022781fi
22782
cristy3ed852e2009-09-05 21:47:34 +000022783 fi
22784fi
cristy8b350f62009-11-15 23:12:43 +000022785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022786$as_echo "$ac_cv_c_bigendian" >&6; }
22787 case $ac_cv_c_bigendian in #(
22788 yes)
cristy8b350f62009-11-15 23:12:43 +000022789 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022790;; #(
22791 no)
22792 ;; #(
22793 universal)
22794
cristy8b350f62009-11-15 23:12:43 +000022795$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022796
22797 ;; #(
22798 *)
cristy98dddb52010-11-04 00:30:15 +000022799 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000022800 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000022801 esac
22802
22803
cristy501c8042011-05-26 17:46:28 +000022804# Define to a suitable type, if standard headers do not define it.
22805ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
22806case $ac_cv_c_int8_t in #(
22807 no|yes) ;; #(
22808 *)
cristy3ed852e2009-09-05 21:47:34 +000022809
22810cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022811#define int8_t $ac_cv_c_int8_t
22812_ACEOF
22813;;
22814esac
22815
22816ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
22817case $ac_cv_c_int16_t in #(
22818 no|yes) ;; #(
22819 *)
22820
22821cat >>confdefs.h <<_ACEOF
22822#define int16_t $ac_cv_c_int16_t
22823_ACEOF
22824;;
22825esac
22826
22827ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
22828case $ac_cv_c_int32_t in #(
22829 no|yes) ;; #(
22830 *)
22831
22832cat >>confdefs.h <<_ACEOF
22833#define int32_t $ac_cv_c_int32_t
22834_ACEOF
22835;;
22836esac
22837
22838ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
22839case $ac_cv_c_int64_t in #(
22840 no|yes) ;; #(
22841 *)
22842
22843cat >>confdefs.h <<_ACEOF
22844#define int64_t $ac_cv_c_int64_t
22845_ACEOF
22846;;
22847esac
22848
22849
cristy045228a2013-06-23 11:00:16 +000022850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
22851$as_echo_n "checking for unsigned long long int... " >&6; }
22852if ${ac_cv_type_unsigned_long_long_int+:} false; then :
cristy501c8042011-05-26 17:46:28 +000022853 $as_echo_n "(cached) " >&6
22854else
cristy045228a2013-06-23 11:00:16 +000022855 ac_cv_type_unsigned_long_long_int=yes
22856 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
22857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000022858/* end confdefs.h. */
22859
22860 /* For now, do not test the preprocessor; as of 2007 there are too many
cristy5ed9c6e2013-07-14 21:20:31 +000022861 implementations with broken preprocessors. Perhaps this can
22862 be revisited in 2012. In the meantime, code should not expect
22863 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000022864 /* Test literals. */
22865 long long int ll = 9223372036854775807ll;
22866 long long int nll = -9223372036854775807LL;
22867 unsigned long long int ull = 18446744073709551615ULL;
22868 /* Test constant expressions. */
22869 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristy5ed9c6e2013-07-14 21:20:31 +000022870 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000022871 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristy5ed9c6e2013-07-14 21:20:31 +000022872 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000022873 int i = 63;
22874int
22875main ()
22876{
22877/* Test availability of runtime routines for shift and division. */
22878 long long int llmax = 9223372036854775807ll;
22879 unsigned long long int ullmax = 18446744073709551615ull;
22880 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristy5ed9c6e2013-07-14 21:20:31 +000022881 | (llmax / ll) | (llmax % ll)
22882 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22883 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000022884 ;
22885 return 0;
22886}
22887
22888_ACEOF
22889if ac_fn_c_try_link "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000022890
22891else
22892 ac_cv_type_unsigned_long_long_int=no
22893fi
22894rm -f core conftest.err conftest.$ac_objext \
22895 conftest$ac_exeext conftest.$ac_ext
22896 fi
22897fi
22898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
22899$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
22900 if test $ac_cv_type_unsigned_long_long_int = yes; then
22901
22902$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
22903
22904 fi
22905
22906
22907
22908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22909$as_echo_n "checking for long long int... " >&6; }
22910if ${ac_cv_type_long_long_int+:} false; then :
22911 $as_echo_n "(cached) " >&6
22912else
cristy501c8042011-05-26 17:46:28 +000022913 ac_cv_type_long_long_int=yes
cristy045228a2013-06-23 11:00:16 +000022914 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
cristy5ed9c6e2013-07-14 21:20:31 +000022915 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
22916 if test $ac_cv_type_long_long_int = yes; then
22917 if test "$cross_compiling" = yes; then :
cristy045228a2013-06-23 11:00:16 +000022918 :
cristy501c8042011-05-26 17:46:28 +000022919else
22920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22921/* end confdefs.h. */
22922#include <limits.h>
cristy5ed9c6e2013-07-14 21:20:31 +000022923 #ifndef LLONG_MAX
22924 # define HALF \
22925 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22926 # define LLONG_MAX (HALF - 1 + HALF)
22927 #endif
cristy501c8042011-05-26 17:46:28 +000022928int
22929main ()
22930{
22931long long int n = 1;
cristy5ed9c6e2013-07-14 21:20:31 +000022932 int i;
22933 for (i = 0; ; i++)
22934 {
22935 long long int m = n << i;
22936 if (m >> i != n)
22937 return 1;
22938 if (LLONG_MAX / 2 < m)
22939 break;
22940 }
22941 return 0;
cristy501c8042011-05-26 17:46:28 +000022942 ;
22943 return 0;
22944}
22945_ACEOF
22946if ac_fn_c_try_run "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000022947
cristy501c8042011-05-26 17:46:28 +000022948else
22949 ac_cv_type_long_long_int=no
22950fi
22951rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22952 conftest.$ac_objext conftest.beam conftest.$ac_ext
22953fi
22954
cristy5ed9c6e2013-07-14 21:20:31 +000022955 fi
cristy045228a2013-06-23 11:00:16 +000022956 fi
cristy501c8042011-05-26 17:46:28 +000022957fi
22958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22959$as_echo "$ac_cv_type_long_long_int" >&6; }
22960 if test $ac_cv_type_long_long_int = yes; then
22961
22962$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22963
22964 fi
22965
22966
22967
22968 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
22969if test "x$ac_cv_type_intmax_t" = xyes; then :
22970
22971$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
22972
22973else
22974 test $ac_cv_type_long_long_int = yes \
22975 && ac_type='long long int' \
22976 || ac_type='long int'
22977
22978cat >>confdefs.h <<_ACEOF
22979#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022980_ACEOF
22981
22982fi
22983
22984
cristy501c8042011-05-26 17:46:28 +000022985
22986 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
22987if test "x$ac_cv_type_intptr_t" = xyes; then :
22988
22989$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022990
cristy3ed852e2009-09-05 21:47:34 +000022991else
cristy501c8042011-05-26 17:46:28 +000022992 for ac_type in 'int' 'long int' 'long long int'; do
22993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22994/* end confdefs.h. */
22995$ac_includes_default
22996int
22997main ()
22998{
22999static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000023000test_array [0] = 0;
23001return test_array [0];
cristy501c8042011-05-26 17:46:28 +000023002
23003 ;
23004 return 0;
23005}
23006_ACEOF
23007if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023008
23009cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000023010#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000023011_ACEOF
23012
cristy501c8042011-05-26 17:46:28 +000023013 ac_type=
23014fi
23015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23016 test -z "$ac_type" && break
23017 done
cristy3ed852e2009-09-05 21:47:34 +000023018fi
23019
23020
cristy3ed852e2009-09-05 21:47:34 +000023021
cristy501c8042011-05-26 17:46:28 +000023022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
23023$as_echo_n "checking for long double... " >&6; }
23024if ${ac_cv_type_long_double+:} false; then :
23025 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000023026else
cristy501c8042011-05-26 17:46:28 +000023027 if test "$GCC" = yes; then
23028 ac_cv_type_long_double=yes
23029 else
23030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23031/* end confdefs.h. */
23032/* The Stardent Vistra knows sizeof (long double), but does
23033 not support it. */
23034 long double foo = 0.0L;
23035int
23036main ()
23037{
23038static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
23039 sizeof (double) <= sizeof (long double))];
cristy14fefe52012-05-21 00:59:18 +000023040test_array [0] = 0;
23041return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023042
cristy501c8042011-05-26 17:46:28 +000023043 ;
23044 return 0;
23045}
cristy3ed852e2009-09-05 21:47:34 +000023046_ACEOF
cristy501c8042011-05-26 17:46:28 +000023047if ac_fn_c_try_compile "$LINENO"; then :
23048 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000023049else
cristy501c8042011-05-26 17:46:28 +000023050 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000023051fi
cristy501c8042011-05-26 17:46:28 +000023052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23053 fi
cristy3ed852e2009-09-05 21:47:34 +000023054fi
cristy501c8042011-05-26 17:46:28 +000023055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
23056$as_echo "$ac_cv_type_long_double" >&6; }
23057 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023058
cristy501c8042011-05-26 17:46:28 +000023059$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023060
cristy501c8042011-05-26 17:46:28 +000023061 fi
23062
cristy3ed852e2009-09-05 21:47:34 +000023063
cristy8b350f62009-11-15 23:12:43 +000023064 { $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 +000023065$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023066if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023067 $as_echo_n "(cached) " >&6
23068else
cristy8b350f62009-11-15 23:12:43 +000023069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023070/* end confdefs.h. */
23071#include <float.h>
23072 long double const a[] =
23073 {
23074 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
23075 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
23076 };
23077 long double
23078 f (long double x)
23079 {
23080 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
23081 + (x ? f (x) : 'c'));
23082 }
23083
23084int
23085main ()
23086{
23087static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
23088 + (DBL_MANT_DIG < LDBL_MANT_DIG)
23089 - (LDBL_MAX_EXP < DBL_MAX_EXP)
23090 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
23091 && (int) LDBL_EPSILON == 0
23092 )];
cristy14fefe52012-05-21 00:59:18 +000023093test_array [0] = 0;
23094return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023095
23096 ;
23097 return 0;
23098}
23099_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023100if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023101 ac_cv_type_long_double_wider=yes
23102else
cristy8b350f62009-11-15 23:12:43 +000023103 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000023104fi
cristy3ed852e2009-09-05 21:47:34 +000023105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23106fi
cristy8b350f62009-11-15 23:12:43 +000023107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000023108$as_echo "$ac_cv_type_long_double_wider" >&6; }
23109 if test $ac_cv_type_long_double_wider = yes; then
23110
cristy8b350f62009-11-15 23:12:43 +000023111$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023112
23113 fi
23114
23115
cristy045228a2013-06-23 11:00:16 +000023116
cristy501c8042011-05-26 17:46:28 +000023117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
23118$as_echo_n "checking for long long int... " >&6; }
23119if ${ac_cv_type_long_long_int+:} false; then :
23120 $as_echo_n "(cached) " >&6
23121else
cristy501c8042011-05-26 17:46:28 +000023122 ac_cv_type_long_long_int=yes
cristy045228a2013-06-23 11:00:16 +000023123 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
cristy5ed9c6e2013-07-14 21:20:31 +000023124 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
23125 if test $ac_cv_type_long_long_int = yes; then
23126 if test "$cross_compiling" = yes; then :
cristy045228a2013-06-23 11:00:16 +000023127 :
cristy501c8042011-05-26 17:46:28 +000023128else
23129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23130/* end confdefs.h. */
23131#include <limits.h>
cristy5ed9c6e2013-07-14 21:20:31 +000023132 #ifndef LLONG_MAX
23133 # define HALF \
23134 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
23135 # define LLONG_MAX (HALF - 1 + HALF)
23136 #endif
cristy501c8042011-05-26 17:46:28 +000023137int
23138main ()
23139{
23140long long int n = 1;
cristy5ed9c6e2013-07-14 21:20:31 +000023141 int i;
23142 for (i = 0; ; i++)
23143 {
23144 long long int m = n << i;
23145 if (m >> i != n)
23146 return 1;
23147 if (LLONG_MAX / 2 < m)
23148 break;
23149 }
23150 return 0;
cristy501c8042011-05-26 17:46:28 +000023151 ;
23152 return 0;
23153}
23154_ACEOF
23155if ac_fn_c_try_run "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023156
cristy501c8042011-05-26 17:46:28 +000023157else
23158 ac_cv_type_long_long_int=no
23159fi
23160rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23161 conftest.$ac_objext conftest.beam conftest.$ac_ext
23162fi
23163
cristy5ed9c6e2013-07-14 21:20:31 +000023164 fi
cristy045228a2013-06-23 11:00:16 +000023165 fi
cristy501c8042011-05-26 17:46:28 +000023166fi
23167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23168$as_echo "$ac_cv_type_long_long_int" >&6; }
23169 if test $ac_cv_type_long_long_int = yes; then
23170
23171$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23172
23173 fi
23174
23175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
23176$as_echo_n "checking for mbstate_t... " >&6; }
23177if ${ac_cv_type_mbstate_t+:} false; then :
23178 $as_echo_n "(cached) " >&6
23179else
23180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23181/* end confdefs.h. */
23182$ac_includes_default
23183# include <wchar.h>
23184int
23185main ()
23186{
23187mbstate_t x; return sizeof x;
23188 ;
23189 return 0;
23190}
23191_ACEOF
23192if ac_fn_c_try_compile "$LINENO"; then :
23193 ac_cv_type_mbstate_t=yes
23194else
23195 ac_cv_type_mbstate_t=no
23196fi
23197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23198fi
23199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
23200$as_echo "$ac_cv_type_mbstate_t" >&6; }
23201 if test $ac_cv_type_mbstate_t = yes; then
23202
23203$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
23204
23205 else
23206
23207$as_echo "#define mbstate_t int" >>confdefs.h
23208
23209 fi
23210ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
23211if test "x$ac_cv_type_mode_t" = xyes; then :
23212
23213else
23214
23215cat >>confdefs.h <<_ACEOF
23216#define mode_t int
23217_ACEOF
23218
23219fi
23220
23221ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
23222if test "x$ac_cv_type_off_t" = xyes; then :
23223
23224else
23225
23226cat >>confdefs.h <<_ACEOF
23227#define off_t long int
23228_ACEOF
23229
23230fi
23231
23232ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
23233if test "x$ac_cv_type_pid_t" = xyes; then :
23234
23235else
23236
23237cat >>confdefs.h <<_ACEOF
23238#define pid_t int
23239_ACEOF
23240
23241fi
23242
23243ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
23244if test "x$ac_cv_type_size_t" = xyes; then :
23245
23246else
23247
23248cat >>confdefs.h <<_ACEOF
23249#define size_t unsigned int
23250_ACEOF
23251
23252fi
23253
23254ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23255if test "x$ac_cv_type_ssize_t" = xyes; then :
23256
23257else
23258
23259cat >>confdefs.h <<_ACEOF
23260#define ssize_t int
23261_ACEOF
23262
23263fi
23264
23265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
23266$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
23267if ${ac_cv_type_uid_t+:} false; then :
23268 $as_echo_n "(cached) " >&6
23269else
23270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23271/* end confdefs.h. */
23272#include <sys/types.h>
23273
23274_ACEOF
23275if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23276 $EGREP "uid_t" >/dev/null 2>&1; then :
23277 ac_cv_type_uid_t=yes
23278else
23279 ac_cv_type_uid_t=no
23280fi
23281rm -f conftest*
23282
23283fi
23284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
23285$as_echo "$ac_cv_type_uid_t" >&6; }
23286if test $ac_cv_type_uid_t = no; then
23287
23288$as_echo "#define uid_t int" >>confdefs.h
23289
23290
23291$as_echo "#define gid_t int" >>confdefs.h
23292
23293fi
23294
23295ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
23296case $ac_cv_c_uint8_t in #(
23297 no|yes) ;; #(
23298 *)
23299
23300$as_echo "#define _UINT8_T 1" >>confdefs.h
23301
23302
23303cat >>confdefs.h <<_ACEOF
23304#define uint8_t $ac_cv_c_uint8_t
23305_ACEOF
23306;;
23307 esac
23308
23309ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
23310case $ac_cv_c_uint16_t in #(
23311 no|yes) ;; #(
23312 *)
23313
23314
23315cat >>confdefs.h <<_ACEOF
23316#define uint16_t $ac_cv_c_uint16_t
23317_ACEOF
23318;;
23319 esac
23320
23321ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
23322case $ac_cv_c_uint32_t in #(
23323 no|yes) ;; #(
23324 *)
23325
23326$as_echo "#define _UINT32_T 1" >>confdefs.h
23327
23328
23329cat >>confdefs.h <<_ACEOF
23330#define uint32_t $ac_cv_c_uint32_t
23331_ACEOF
23332;;
23333 esac
23334
23335ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
23336case $ac_cv_c_uint64_t in #(
23337 no|yes) ;; #(
23338 *)
23339
23340$as_echo "#define _UINT64_T 1" >>confdefs.h
23341
23342
23343cat >>confdefs.h <<_ACEOF
23344#define uint64_t $ac_cv_c_uint64_t
23345_ACEOF
23346;;
23347 esac
23348
23349
cristy501c8042011-05-26 17:46:28 +000023350
23351 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
23352if test "x$ac_cv_type_uintmax_t" = xyes; then :
23353
23354$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
23355
23356else
23357 test $ac_cv_type_unsigned_long_long_int = yes \
23358 && ac_type='unsigned long long int' \
23359 || ac_type='unsigned long int'
23360
23361cat >>confdefs.h <<_ACEOF
23362#define uintmax_t $ac_type
23363_ACEOF
23364
23365fi
23366
23367
23368
23369 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23370if test "x$ac_cv_type_uintptr_t" = xyes; then :
23371
23372$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
23373
23374else
23375 for ac_type in 'unsigned int' 'unsigned long int' \
23376 'unsigned long long int'; do
23377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23378/* end confdefs.h. */
23379$ac_includes_default
23380int
23381main ()
23382{
23383static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000023384test_array [0] = 0;
23385return test_array [0];
cristy501c8042011-05-26 17:46:28 +000023386
23387 ;
23388 return 0;
23389}
23390_ACEOF
23391if ac_fn_c_try_compile "$LINENO"; then :
23392
23393cat >>confdefs.h <<_ACEOF
23394#define uintptr_t $ac_type
23395_ACEOF
23396
23397 ac_type=
23398fi
23399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23400 test -z "$ac_type" && break
23401 done
23402fi
23403
23404
23405
23406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23407$as_echo_n "checking for unsigned long long int... " >&6; }
23408if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23409 $as_echo_n "(cached) " >&6
23410else
cristy045228a2013-06-23 11:00:16 +000023411 ac_cv_type_unsigned_long_long_int=yes
23412 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
23413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000023414/* end confdefs.h. */
23415
23416 /* For now, do not test the preprocessor; as of 2007 there are too many
cristy5ed9c6e2013-07-14 21:20:31 +000023417 implementations with broken preprocessors. Perhaps this can
23418 be revisited in 2012. In the meantime, code should not expect
23419 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000023420 /* Test literals. */
23421 long long int ll = 9223372036854775807ll;
23422 long long int nll = -9223372036854775807LL;
23423 unsigned long long int ull = 18446744073709551615ULL;
23424 /* Test constant expressions. */
23425 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristy5ed9c6e2013-07-14 21:20:31 +000023426 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023427 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristy5ed9c6e2013-07-14 21:20:31 +000023428 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023429 int i = 63;
23430int
23431main ()
23432{
23433/* Test availability of runtime routines for shift and division. */
23434 long long int llmax = 9223372036854775807ll;
23435 unsigned long long int ullmax = 18446744073709551615ull;
23436 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristy5ed9c6e2013-07-14 21:20:31 +000023437 | (llmax / ll) | (llmax % ll)
23438 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23439 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000023440 ;
23441 return 0;
23442}
23443
23444_ACEOF
23445if ac_fn_c_try_link "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023446
cristy501c8042011-05-26 17:46:28 +000023447else
23448 ac_cv_type_unsigned_long_long_int=no
23449fi
23450rm -f core conftest.err conftest.$ac_objext \
23451 conftest$ac_exeext conftest.$ac_ext
cristy045228a2013-06-23 11:00:16 +000023452 fi
cristy501c8042011-05-26 17:46:28 +000023453fi
23454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23455$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23456 if test $ac_cv_type_unsigned_long_long_int = yes; then
23457
23458$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23459
23460 fi
23461
23462
cristyfec31822013-05-23 12:32:12 +000023463# Float_t and double_t are intended to be the the most efficient type.
23464ac_fn_c_check_type "$LINENO" "float_t" "ac_cv_type_float_t" "#include <math.h>
23465"
23466if test "x$ac_cv_type_float_t" = xyes; then :
23467
23468cat >>confdefs.h <<_ACEOF
23469#define HAVE_FLOAT_T 1
23470_ACEOF
23471
23472
23473fi
23474
23475ac_fn_c_check_type "$LINENO" "double_t" "ac_cv_type_double_t" "#include <math.h>
23476"
23477if test "x$ac_cv_type_double_t" = xyes; then :
23478
23479cat >>confdefs.h <<_ACEOF
23480#define HAVE_DOUBLE_T 1
23481_ACEOF
23482
23483
23484fi
23485
23486# The cast to long int works around a bug in the HP C Compiler
23487# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23488# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23489# This bug is HP SR number 8606223364.
23490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float_t" >&5
23491$as_echo_n "checking size of float_t... " >&6; }
23492if ${ac_cv_sizeof_float_t+:} false; then :
23493 $as_echo_n "(cached) " >&6
23494else
23495 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float_t))" "ac_cv_sizeof_float_t" "#include <math.h>
23496"; then :
23497
23498else
23499 if test "$ac_cv_type_float_t" = yes; then
23500 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23501$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23502as_fn_error 77 "cannot compute sizeof (float_t)
23503See \`config.log' for more details" "$LINENO" 5; }
23504 else
23505 ac_cv_sizeof_float_t=0
23506 fi
23507fi
23508
23509fi
23510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float_t" >&5
23511$as_echo "$ac_cv_sizeof_float_t" >&6; }
23512
23513
23514
23515cat >>confdefs.h <<_ACEOF
23516#define SIZEOF_FLOAT_T $ac_cv_sizeof_float_t
23517_ACEOF
23518
23519
23520# The cast to long int works around a bug in the HP C Compiler
23521# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23522# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23523# This bug is HP SR number 8606223364.
23524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double_t" >&5
23525$as_echo_n "checking size of double_t... " >&6; }
23526if ${ac_cv_sizeof_double_t+:} false; then :
23527 $as_echo_n "(cached) " >&6
23528else
23529 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double_t))" "ac_cv_sizeof_double_t" "#include <math.h>
23530"; then :
23531
23532else
23533 if test "$ac_cv_type_double_t" = yes; then
23534 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23535$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23536as_fn_error 77 "cannot compute sizeof (double_t)
23537See \`config.log' for more details" "$LINENO" 5; }
23538 else
23539 ac_cv_sizeof_double_t=0
23540 fi
23541fi
23542
23543fi
23544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double_t" >&5
23545$as_echo "$ac_cv_sizeof_double_t" >&6; }
23546
23547
23548
23549cat >>confdefs.h <<_ACEOF
23550#define SIZEOF_DOUBLE_T $ac_cv_sizeof_double_t
23551_ACEOF
23552
23553
23554
cristy9b86f202012-11-28 21:55:35 +000023555# Get size of float, double and long double for comparaison.
23556# The cast to long int works around a bug in the HP C Compiler
23557# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23558# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23559# This bug is HP SR number 8606223364.
23560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
23561$as_echo_n "checking size of float... " >&6; }
23562if ${ac_cv_sizeof_float+:} false; then :
23563 $as_echo_n "(cached) " >&6
23564else
23565 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
23566
23567else
23568 if test "$ac_cv_type_float" = yes; then
23569 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23570$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23571as_fn_error 77 "cannot compute sizeof (float)
23572See \`config.log' for more details" "$LINENO" 5; }
23573 else
23574 ac_cv_sizeof_float=0
23575 fi
23576fi
23577
23578fi
23579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
23580$as_echo "$ac_cv_sizeof_float" >&6; }
23581
23582
23583
23584cat >>confdefs.h <<_ACEOF
23585#define SIZEOF_FLOAT $ac_cv_sizeof_float
23586_ACEOF
23587
23588
23589# The cast to long int works around a bug in the HP C Compiler
23590# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23591# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23592# This bug is HP SR number 8606223364.
23593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
23594$as_echo_n "checking size of double... " >&6; }
23595if ${ac_cv_sizeof_double+:} false; then :
23596 $as_echo_n "(cached) " >&6
23597else
23598 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
23599
23600else
23601 if test "$ac_cv_type_double" = yes; then
23602 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23603$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23604as_fn_error 77 "cannot compute sizeof (double)
23605See \`config.log' for more details" "$LINENO" 5; }
23606 else
23607 ac_cv_sizeof_double=0
23608 fi
23609fi
23610
23611fi
23612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
23613$as_echo "$ac_cv_sizeof_double" >&6; }
23614
23615
23616
23617cat >>confdefs.h <<_ACEOF
23618#define SIZEOF_DOUBLE $ac_cv_sizeof_double
23619_ACEOF
23620
23621
cristyfec31822013-05-23 12:32:12 +000023622# The cast to long int works around a bug in the HP C Compiler
23623# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23624# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23625# This bug is HP SR number 8606223364.
23626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
23627$as_echo_n "checking size of long double... " >&6; }
23628if ${ac_cv_sizeof_long_double+:} false; then :
23629 $as_echo_n "(cached) " >&6
23630else
23631 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
23632
23633else
23634 if test "$ac_cv_type_long_double" = yes; then
23635 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23636$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23637as_fn_error 77 "cannot compute sizeof (long double)
23638See \`config.log' for more details" "$LINENO" 5; }
23639 else
23640 ac_cv_sizeof_long_double=0
23641 fi
23642fi
23643
23644fi
23645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
23646$as_echo "$ac_cv_sizeof_long_double" >&6; }
23647
23648
23649
23650cat >>confdefs.h <<_ACEOF
23651#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
23652_ACEOF
23653
23654
cristyf0cf9a22012-10-24 12:05:01 +000023655
cristy3ed852e2009-09-05 21:47:34 +000023656# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
23657# The cast to long int works around a bug in the HP C Compiler
23658# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23659# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23660# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023662$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023663if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023664 $as_echo_n "(cached) " >&6
23665else
cristy8b350f62009-11-15 23:12:43 +000023666 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 +000023667
cristy3ed852e2009-09-05 21:47:34 +000023668else
cristy8b350f62009-11-15 23:12:43 +000023669 if test "$ac_cv_type_signed_short" = yes; then
23670 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023671$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023672as_fn_error 77 "cannot compute sizeof (signed short)
23673See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023674 else
23675 ac_cv_sizeof_signed_short=0
23676 fi
23677fi
cristy8b350f62009-11-15 23:12:43 +000023678
cristy3ed852e2009-09-05 21:47:34 +000023679fi
cristy8b350f62009-11-15 23:12:43 +000023680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023681$as_echo "$ac_cv_sizeof_signed_short" >&6; }
23682
23683
23684
23685cat >>confdefs.h <<_ACEOF
23686#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
23687_ACEOF
23688
23689
23690
23691# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
23692# The cast to long int works around a bug in the HP C Compiler
23693# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23694# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23695# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023697$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023698if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023699 $as_echo_n "(cached) " >&6
23700else
cristy8b350f62009-11-15 23:12:43 +000023701 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 +000023702
cristy3ed852e2009-09-05 21:47:34 +000023703else
cristy8b350f62009-11-15 23:12:43 +000023704 if test "$ac_cv_type_unsigned_short" = yes; then
23705 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023706$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023707as_fn_error 77 "cannot compute sizeof (unsigned short)
23708See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023709 else
23710 ac_cv_sizeof_unsigned_short=0
23711 fi
23712fi
cristy8b350f62009-11-15 23:12:43 +000023713
cristy3ed852e2009-09-05 21:47:34 +000023714fi
cristy8b350f62009-11-15 23:12:43 +000023715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023716$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
23717
23718
23719
23720cat >>confdefs.h <<_ACEOF
23721#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
23722_ACEOF
23723
23724
23725
23726# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
23727# The cast to long int works around a bug in the HP C Compiler
23728# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23729# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23730# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023732$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023733if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023734 $as_echo_n "(cached) " >&6
23735else
cristy8b350f62009-11-15 23:12:43 +000023736 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 +000023737
cristy3ed852e2009-09-05 21:47:34 +000023738else
cristy8b350f62009-11-15 23:12:43 +000023739 if test "$ac_cv_type_signed_int" = yes; then
23740 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023741$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023742as_fn_error 77 "cannot compute sizeof (signed int)
23743See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023744 else
23745 ac_cv_sizeof_signed_int=0
23746 fi
23747fi
cristy8b350f62009-11-15 23:12:43 +000023748
cristy3ed852e2009-09-05 21:47:34 +000023749fi
cristy8b350f62009-11-15 23:12:43 +000023750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023751$as_echo "$ac_cv_sizeof_signed_int" >&6; }
23752
23753
23754
23755cat >>confdefs.h <<_ACEOF
23756#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
23757_ACEOF
23758
23759
23760
23761# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
23762# The cast to long int works around a bug in the HP C Compiler
23763# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23764# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23765# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023767$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023768if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023769 $as_echo_n "(cached) " >&6
23770else
cristy8b350f62009-11-15 23:12:43 +000023771 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 +000023772
cristy3ed852e2009-09-05 21:47:34 +000023773else
cristy8b350f62009-11-15 23:12:43 +000023774 if test "$ac_cv_type_unsigned_int" = yes; then
23775 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023776$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023777as_fn_error 77 "cannot compute sizeof (unsigned int)
23778See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023779 else
23780 ac_cv_sizeof_unsigned_int=0
23781 fi
23782fi
cristy8b350f62009-11-15 23:12:43 +000023783
cristy3ed852e2009-09-05 21:47:34 +000023784fi
cristy8b350f62009-11-15 23:12:43 +000023785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023786$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
23787
23788
23789
23790cat >>confdefs.h <<_ACEOF
23791#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
23792_ACEOF
23793
23794
23795
23796# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
23797# The cast to long int works around a bug in the HP C Compiler
23798# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23799# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23800# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023802$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023803if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023804 $as_echo_n "(cached) " >&6
23805else
cristy8b350f62009-11-15 23:12:43 +000023806 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 +000023807
cristy3ed852e2009-09-05 21:47:34 +000023808else
cristy8b350f62009-11-15 23:12:43 +000023809 if test "$ac_cv_type_signed_long" = yes; then
23810 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023811$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023812as_fn_error 77 "cannot compute sizeof (signed long)
23813See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023814 else
23815 ac_cv_sizeof_signed_long=0
23816 fi
23817fi
cristy8b350f62009-11-15 23:12:43 +000023818
cristy3ed852e2009-09-05 21:47:34 +000023819fi
cristy8b350f62009-11-15 23:12:43 +000023820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023821$as_echo "$ac_cv_sizeof_signed_long" >&6; }
23822
23823
23824
23825cat >>confdefs.h <<_ACEOF
23826#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
23827_ACEOF
23828
23829
23830
23831# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
23832# The cast to long int works around a bug in the HP C Compiler
23833# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23834# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23835# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023837$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023838if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023839 $as_echo_n "(cached) " >&6
23840else
cristy8b350f62009-11-15 23:12:43 +000023841 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 +000023842
cristy3ed852e2009-09-05 21:47:34 +000023843else
cristy8b350f62009-11-15 23:12:43 +000023844 if test "$ac_cv_type_unsigned_long" = yes; then
23845 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023846$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023847as_fn_error 77 "cannot compute sizeof (unsigned long)
23848See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023849 else
23850 ac_cv_sizeof_unsigned_long=0
23851 fi
23852fi
cristy8b350f62009-11-15 23:12:43 +000023853
cristy3ed852e2009-09-05 21:47:34 +000023854fi
cristy8b350f62009-11-15 23:12:43 +000023855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023856$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
23857
23858
23859
23860cat >>confdefs.h <<_ACEOF
23861#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
23862_ACEOF
23863
23864
23865
23866# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
23867# 'signed long long' is not supported then the value defined is zero.
23868# The cast to long int works around a bug in the HP C Compiler
23869# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23870# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23871# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023873$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023874if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023875 $as_echo_n "(cached) " >&6
23876else
cristy8b350f62009-11-15 23:12:43 +000023877 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 +000023878
cristy3ed852e2009-09-05 21:47:34 +000023879else
cristy8b350f62009-11-15 23:12:43 +000023880 if test "$ac_cv_type_signed_long_long" = yes; then
23881 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023882$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023883as_fn_error 77 "cannot compute sizeof (signed long long)
23884See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023885 else
23886 ac_cv_sizeof_signed_long_long=0
23887 fi
23888fi
cristy8b350f62009-11-15 23:12:43 +000023889
cristy3ed852e2009-09-05 21:47:34 +000023890fi
cristy8b350f62009-11-15 23:12:43 +000023891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023892$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
23893
23894
23895
23896cat >>confdefs.h <<_ACEOF
23897#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
23898_ACEOF
23899
23900
23901
23902# Obtain size of a 'unsigned long long' and define as
23903# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
23904# supported then the value defined is zero.
23905# The cast to long int works around a bug in the HP C Compiler
23906# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23907# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23908# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023910$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023911if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023912 $as_echo_n "(cached) " >&6
23913else
cristy8b350f62009-11-15 23:12:43 +000023914 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 +000023915
cristy3ed852e2009-09-05 21:47:34 +000023916else
cristy8b350f62009-11-15 23:12:43 +000023917 if test "$ac_cv_type_unsigned_long_long" = yes; then
23918 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023919$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023920as_fn_error 77 "cannot compute sizeof (unsigned long long)
23921See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023922 else
23923 ac_cv_sizeof_unsigned_long_long=0
23924 fi
23925fi
cristy8b350f62009-11-15 23:12:43 +000023926
cristy3ed852e2009-09-05 21:47:34 +000023927fi
cristy8b350f62009-11-15 23:12:43 +000023928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023929$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
23930
23931
23932
23933cat >>confdefs.h <<_ACEOF
23934#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
23935_ACEOF
23936
23937
23938
cristyfec31822013-05-23 12:32:12 +000023939# Obtain size of off_t and define as SIZEOF_OFF_T
23940# The cast to long int works around a bug in the HP C Compiler
23941# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23942# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23943# This bug is HP SR number 8606223364.
23944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
23945$as_echo_n "checking size of off_t... " >&6; }
23946if ${ac_cv_sizeof_off_t+:} false; then :
23947 $as_echo_n "(cached) " >&6
23948else
23949 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
23950
23951else
23952 if test "$ac_cv_type_off_t" = yes; then
23953 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23954$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23955as_fn_error 77 "cannot compute sizeof (off_t)
23956See \`config.log' for more details" "$LINENO" 5; }
23957 else
23958 ac_cv_sizeof_off_t=0
23959 fi
23960fi
23961
23962fi
23963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
23964$as_echo "$ac_cv_sizeof_off_t" >&6; }
23965
23966
23967
23968cat >>confdefs.h <<_ACEOF
23969#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
23970_ACEOF
23971
23972
23973
23974# Obtain size of size_t and define as SIZEOF_SIZE_T
23975# The cast to long int works around a bug in the HP C Compiler
23976# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23977# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23978# This bug is HP SR number 8606223364.
23979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
23980$as_echo_n "checking size of size_t... " >&6; }
23981if ${ac_cv_sizeof_size_t+:} false; then :
23982 $as_echo_n "(cached) " >&6
23983else
23984 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
23985
23986else
23987 if test "$ac_cv_type_size_t" = yes; then
23988 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23989$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23990as_fn_error 77 "cannot compute sizeof (size_t)
23991See \`config.log' for more details" "$LINENO" 5; }
23992 else
23993 ac_cv_sizeof_size_t=0
23994 fi
23995fi
23996
23997fi
23998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
23999$as_echo "$ac_cv_sizeof_size_t" >&6; }
24000
24001
24002
24003cat >>confdefs.h <<_ACEOF
24004#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
24005_ACEOF
24006
24007
24008
24009# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
24010# The cast to long int works around a bug in the HP C Compiler
24011# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24012# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24013# This bug is HP SR number 8606223364.
24014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
24015$as_echo_n "checking size of ssize_t... " >&6; }
24016if ${ac_cv_sizeof_ssize_t+:} false; then :
24017 $as_echo_n "(cached) " >&6
24018else
24019 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
24020
24021else
24022 if test "$ac_cv_type_ssize_t" = yes; then
24023 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24024$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24025as_fn_error 77 "cannot compute sizeof (ssize_t)
24026See \`config.log' for more details" "$LINENO" 5; }
24027 else
24028 ac_cv_sizeof_ssize_t=0
24029 fi
24030fi
24031
24032fi
24033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
24034$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
24035
24036
24037
24038cat >>confdefs.h <<_ACEOF
24039#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
24040_ACEOF
24041
24042
24043
cristy3ed852e2009-09-05 21:47:34 +000024044# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
24045# The cast to long int works around a bug in the HP C Compiler
24046# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24047# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24048# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000024050$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024051if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024052 $as_echo_n "(cached) " >&6
24053else
cristy8b350f62009-11-15 23:12:43 +000024054 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 +000024055
cristy3ed852e2009-09-05 21:47:34 +000024056else
cristy8b350f62009-11-15 23:12:43 +000024057 if test "$ac_cv_type_unsigned_intp" = yes; then
24058 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024059$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024060as_fn_error 77 "cannot compute sizeof (unsigned int*)
24061See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024062 else
24063 ac_cv_sizeof_unsigned_intp=0
24064 fi
24065fi
cristy8b350f62009-11-15 23:12:43 +000024066
cristy3ed852e2009-09-05 21:47:34 +000024067fi
cristy8b350f62009-11-15 23:12:43 +000024068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024069$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
24070
24071
24072
24073cat >>confdefs.h <<_ACEOF
24074#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
24075_ACEOF
24076
24077
24078
24079#
24080# Compute sized types for current CPU and compiler options.
24081#
24082
cristy8b350f62009-11-15 23:12:43 +000024083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024084$as_echo_n "checking for signed 8-bit type... " >&6; }
24085INT8_T='signed char'
cristyad38abe2012-12-23 23:03:21 +000024086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
24087$as_echo "$INT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024088
24089
cristy8b350f62009-11-15 23:12:43 +000024090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024091$as_echo_n "checking for unsigned 8-bit type... " >&6; }
24092UINT8_T='unsigned char'
cristyad38abe2012-12-23 23:03:21 +000024093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
24094$as_echo "$UINT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024095
24096
cristy8b350f62009-11-15 23:12:43 +000024097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024098$as_echo_n "checking for signed 16-bit type... " >&6; }
24099INT16_T='signed short'
cristyad38abe2012-12-23 23:03:21 +000024100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
24101$as_echo "$INT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024102
24103
cristy8b350f62009-11-15 23:12:43 +000024104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024105$as_echo_n "checking for unsigned 16-bit type... " >&6; }
24106UINT16_T='unsigned short'
cristyad38abe2012-12-23 23:03:21 +000024107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
24108$as_echo "$UINT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024109
24110
cristy8b350f62009-11-15 23:12:43 +000024111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024112$as_echo_n "checking for signed 32-bit type... " >&6; }
24113INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024114INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024115if test $ac_cv_sizeof_signed_int -eq 4; then
24116 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000024117 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000024118elif test $ac_cv_sizeof_signed_long -eq 4; then
24119 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000024120 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024121fi
cristyad38abe2012-12-23 23:03:21 +000024122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
24123$as_echo "$INT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024124
24125
cristy6d5e20f2011-04-25 13:48:54 +000024126
cristy8b350f62009-11-15 23:12:43 +000024127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024128$as_echo_n "checking for unsigned 32-bit type... " >&6; }
24129UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024130UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024131if test $ac_cv_sizeof_unsigned_int -eq 4; then
24132 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000024133 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000024134elif test $ac_cv_sizeof_unsigned_long -eq 4; then
24135 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024136 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024137fi
cristyad38abe2012-12-23 23:03:21 +000024138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
24139$as_echo "$UINT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024140
24141
cristy6d5e20f2011-04-25 13:48:54 +000024142
cristy8b350f62009-11-15 23:12:43 +000024143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024144$as_echo_n "checking for signed 64-bit type... " >&6; }
24145INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024146INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024147if test $ac_cv_sizeof_signed_long -eq 8; then
24148 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000024149 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024150elif test $ac_cv_sizeof_signed_long_long -eq 8; then
24151 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000024152 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024153fi
cristy3a99dcf2011-12-17 01:29:40 +000024154case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000024155 mingw* )
24156 INT64_F='"I64"'
24157 ;;
24158esac
cristyad38abe2012-12-23 23:03:21 +000024159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
24160$as_echo "$INT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024161
24162
cristy6d5e20f2011-04-25 13:48:54 +000024163
cristy8b350f62009-11-15 23:12:43 +000024164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024165$as_echo_n "checking for unsigned 64-bit type... " >&6; }
24166UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024167UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024168if test $ac_cv_sizeof_unsigned_long -eq 8; then
24169 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024170 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024171elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
24172 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000024173 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024174fi
cristy3a99dcf2011-12-17 01:29:40 +000024175case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000024176 mingw* )
24177 UINT64_F='"I64"'
24178 ;;
24179esac
cristyad38abe2012-12-23 23:03:21 +000024180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
24181$as_echo "$UINT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024182
24183
cristy6d5e20f2011-04-25 13:48:54 +000024184
cristy8b350f62009-11-15 23:12:43 +000024185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024186$as_echo_n "checking for unsigned maximum type... " >&6; }
24187UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024188UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024189if test "$UINT64_T" != 'none'; then
24190 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000024191 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000024192elif test "$UINT32_T" != 'none'; then
24193 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000024194 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000024195fi
cristyad38abe2012-12-23 23:03:21 +000024196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
24197$as_echo "$UINTMAX_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024198
24199
cristy6d5e20f2011-04-25 13:48:54 +000024200
cristy8b350f62009-11-15 23:12:43 +000024201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024202$as_echo_n "checking for pointer difference type... " >&6; }
24203UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024204UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024205if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
24206 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024207 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024208elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
24209 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000024210 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024211fi
cristyad38abe2012-12-23 23:03:21 +000024212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
24213$as_echo "$UINTPTR_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024214
24215
cristy6d5e20f2011-04-25 13:48:54 +000024216
cristy8b350f62009-11-15 23:12:43 +000024217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024218$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024219cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024220/* end confdefs.h. */
24221
24222int
24223main ()
24224{
24225{ const char *func = __func__; return(func != 0 ? 0 : 1); }
24226 ;
24227 return 0;
24228}
24229_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024230if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000024231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24232$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024233else
cristyad38abe2012-12-23 23:03:21 +000024234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24235$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024237$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024239/* end confdefs.h. */
24240
24241int
24242main ()
24243{
24244{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
24245 ;
24246 return 0;
24247}
24248_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024249if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000024250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24251$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024252
cristy8b350f62009-11-15 23:12:43 +000024253$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024254
24255else
cristyad38abe2012-12-23 23:03:21 +000024256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24257$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024258
cristy8b350f62009-11-15 23:12:43 +000024259$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024260
24261fi
cristy3ed852e2009-09-05 21:47:34 +000024262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24263fi
cristy3ed852e2009-09-05 21:47:34 +000024264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24265
24266########
24267#
24268# Check for functions
24269#
24270########
cristy8b350f62009-11-15 23:12:43 +000024271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024272$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024273if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024274 $as_echo_n "(cached) " >&6
24275else
cristy8b350f62009-11-15 23:12:43 +000024276 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024277 ac_cv_func_closedir_void=yes
24278else
cristy8b350f62009-11-15 23:12:43 +000024279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024280/* end confdefs.h. */
24281$ac_includes_default
24282#include <$ac_header_dirent>
24283#ifndef __cplusplus
24284int closedir ();
24285#endif
24286
24287int
24288main ()
24289{
24290return closedir (opendir (".")) != 0;
24291 ;
24292 return 0;
24293}
24294_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024295if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024296 ac_cv_func_closedir_void=no
24297else
cristy8b350f62009-11-15 23:12:43 +000024298 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000024299fi
cristy8b350f62009-11-15 23:12:43 +000024300rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24301 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024302fi
24303
cristy3ed852e2009-09-05 21:47:34 +000024304fi
cristy8b350f62009-11-15 23:12:43 +000024305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024306$as_echo "$ac_cv_func_closedir_void" >&6; }
24307if test $ac_cv_func_closedir_void = yes; then
24308
cristy8b350f62009-11-15 23:12:43 +000024309$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024310
24311fi
24312
cristycd4c5312009-11-22 01:19:08 +000024313
24314
24315
24316 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000024317do :
24318 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000024319ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24320"
cristy98dddb52010-11-04 00:30:15 +000024321if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024322 cat >>confdefs.h <<_ACEOF
24323#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24324_ACEOF
24325
24326fi
24327
24328done
24329
cristycd4c5312009-11-22 01:19:08 +000024330
24331
24332
24333
24334
24335
24336
cristy3ed852e2009-09-05 21:47:34 +000024337for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000024338do :
24339 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024340if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024341 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024342#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000024343_ACEOF
24344
24345fi
24346done
24347
cristy8b350f62009-11-15 23:12:43 +000024348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000024349$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024350if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024351 $as_echo_n "(cached) " >&6
24352else
cristy8b350f62009-11-15 23:12:43 +000024353 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024354 ac_cv_func_mmap_fixed_mapped=no
24355else
cristy8b350f62009-11-15 23:12:43 +000024356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024357/* end confdefs.h. */
24358$ac_includes_default
24359/* malloc might have been renamed as rpl_malloc. */
24360#undef malloc
24361
24362/* Thanks to Mike Haertel and Jim Avera for this test.
24363 Here is a matrix of mmap possibilities:
24364 mmap private not fixed
24365 mmap private fixed at somewhere currently unmapped
24366 mmap private fixed at somewhere already mapped
24367 mmap shared not fixed
24368 mmap shared fixed at somewhere currently unmapped
24369 mmap shared fixed at somewhere already mapped
24370 For private mappings, we should verify that changes cannot be read()
24371 back from the file, nor mmap's back from the file at a different
24372 address. (There have been systems where private was not correctly
24373 implemented like the infamous i386 svr4.0, and systems where the
24374 VM page cache was not coherent with the file system buffer cache
24375 like early versions of FreeBSD and possibly contemporary NetBSD.)
24376 For shared mappings, we should conversely verify that changes get
24377 propagated back to all the places they're supposed to be.
24378
24379 Grep wants private fixed already mapped.
24380 The main things grep needs to know about mmap are:
24381 * does it exist and is it safe to write into the mmap'd area
24382 * how to use it (BSD variants) */
24383
24384#include <fcntl.h>
24385#include <sys/mman.h>
24386
24387#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24388char *malloc ();
24389#endif
24390
24391/* This mess was copied from the GNU getpagesize.h. */
24392#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000024393# ifdef _SC_PAGESIZE
24394# define getpagesize() sysconf(_SC_PAGESIZE)
24395# else /* no _SC_PAGESIZE */
24396# ifdef HAVE_SYS_PARAM_H
24397# include <sys/param.h>
24398# ifdef EXEC_PAGESIZE
24399# define getpagesize() EXEC_PAGESIZE
24400# else /* no EXEC_PAGESIZE */
24401# ifdef NBPG
24402# define getpagesize() NBPG * CLSIZE
24403# ifndef CLSIZE
24404# define CLSIZE 1
24405# endif /* no CLSIZE */
24406# else /* no NBPG */
24407# ifdef NBPC
24408# define getpagesize() NBPC
24409# else /* no NBPC */
24410# ifdef PAGESIZE
24411# define getpagesize() PAGESIZE
24412# endif /* PAGESIZE */
24413# endif /* no NBPC */
24414# endif /* no NBPG */
24415# endif /* no EXEC_PAGESIZE */
24416# else /* no HAVE_SYS_PARAM_H */
24417# define getpagesize() 8192 /* punt totally */
24418# endif /* no HAVE_SYS_PARAM_H */
24419# endif /* no _SC_PAGESIZE */
24420
24421#endif /* no HAVE_GETPAGESIZE */
24422
24423int
24424main ()
24425{
24426 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000024427 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000024428 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000024429 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000024430
24431 pagesize = getpagesize ();
24432
24433 /* First, make a file with some known garbage in it. */
24434 data = (char *) malloc (pagesize);
24435 if (!data)
24436 return 1;
24437 for (i = 0; i < pagesize; ++i)
24438 *(data + i) = rand ();
24439 umask (0);
24440 fd = creat ("conftest.mmap", 0600);
24441 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024442 return 2;
cristy3ed852e2009-09-05 21:47:34 +000024443 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024444 return 3;
cristy3ed852e2009-09-05 21:47:34 +000024445 close (fd);
24446
cristycd4c5312009-11-22 01:19:08 +000024447 /* Next, check that the tail of a page is zero-filled. File must have
24448 non-zero length, otherwise we risk SIGBUS for entire page. */
24449 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24450 if (fd2 < 0)
24451 return 4;
cristyc54f5d42009-11-27 21:36:31 +000024452 cdata2 = "";
24453 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000024454 return 5;
cristyc54f5d42009-11-27 21:36:31 +000024455 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000024456 if (data2 == MAP_FAILED)
24457 return 6;
24458 for (i = 0; i < pagesize; ++i)
24459 if (*(data2 + i))
24460 return 7;
24461 close (fd2);
24462 if (munmap (data2, pagesize))
24463 return 8;
24464
cristy3ed852e2009-09-05 21:47:34 +000024465 /* Next, try to mmap the file at a fixed address which already has
24466 something else allocated at it. If we can, also make sure that
24467 we see the same garbage. */
24468 fd = open ("conftest.mmap", O_RDWR);
24469 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024470 return 9;
cristy3ed852e2009-09-05 21:47:34 +000024471 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24472 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000024473 return 10;
cristy3ed852e2009-09-05 21:47:34 +000024474 for (i = 0; i < pagesize; ++i)
24475 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000024476 return 11;
cristy3ed852e2009-09-05 21:47:34 +000024477
24478 /* Finally, make sure that changes to the mapped area do not
24479 percolate back to the file as seen by read(). (This is a bug on
24480 some variants of i386 svr4.0.) */
24481 for (i = 0; i < pagesize; ++i)
24482 *(data2 + i) = *(data2 + i) + 1;
24483 data3 = (char *) malloc (pagesize);
24484 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000024485 return 12;
cristy3ed852e2009-09-05 21:47:34 +000024486 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024487 return 13;
cristy3ed852e2009-09-05 21:47:34 +000024488 for (i = 0; i < pagesize; ++i)
24489 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000024490 return 14;
cristy3ed852e2009-09-05 21:47:34 +000024491 close (fd);
24492 return 0;
24493}
24494_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024495if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024496 ac_cv_func_mmap_fixed_mapped=yes
24497else
cristy8b350f62009-11-15 23:12:43 +000024498 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000024499fi
cristy8b350f62009-11-15 23:12:43 +000024500rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24501 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024502fi
24503
cristy3ed852e2009-09-05 21:47:34 +000024504fi
cristy8b350f62009-11-15 23:12:43 +000024505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000024506$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24507if test $ac_cv_func_mmap_fixed_mapped = yes; then
24508
cristy8b350f62009-11-15 23:12:43 +000024509$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024510
24511fi
cristycd4c5312009-11-22 01:19:08 +000024512rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000024513
cristy3ed852e2009-09-05 21:47:34 +000024514for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000024515do :
24516 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000024517if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024518 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024519#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000024520_ACEOF
24521
24522fi
24523
24524done
24525
cristy3ed852e2009-09-05 21:47:34 +000024526for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000024527do :
24528 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24529ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024530if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024531 cat >>confdefs.h <<_ACEOF
24532#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24533_ACEOF
24534
24535fi
24536done
24537
24538if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024540$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024541if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024542 $as_echo_n "(cached) " >&6
24543else
cristy8b350f62009-11-15 23:12:43 +000024544 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024545 ac_cv_func_fork_works=cross
24546else
cristy8b350f62009-11-15 23:12:43 +000024547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024548/* end confdefs.h. */
24549$ac_includes_default
24550int
24551main ()
24552{
24553
24554 /* By Ruediger Kuhlmann. */
24555 return fork () < 0;
24556
24557 ;
24558 return 0;
24559}
24560_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024561if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024562 ac_cv_func_fork_works=yes
24563else
cristy8b350f62009-11-15 23:12:43 +000024564 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024565fi
cristy8b350f62009-11-15 23:12:43 +000024566rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24567 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024568fi
24569
cristy3ed852e2009-09-05 21:47:34 +000024570fi
cristy8b350f62009-11-15 23:12:43 +000024571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024572$as_echo "$ac_cv_func_fork_works" >&6; }
24573
24574else
24575 ac_cv_func_fork_works=$ac_cv_func_fork
24576fi
24577if test "x$ac_cv_func_fork_works" = xcross; then
24578 case $host in
24579 *-*-amigaos* | *-*-msdosdjgpp*)
24580 # Override, as these systems have only a dummy fork() stub
24581 ac_cv_func_fork_works=no
24582 ;;
24583 *)
24584 ac_cv_func_fork_works=yes
24585 ;;
24586 esac
cristy8b350f62009-11-15 23:12:43 +000024587 { $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 +000024588$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24589fi
24590ac_cv_func_vfork_works=$ac_cv_func_vfork
24591if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024593$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024594if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024595 $as_echo_n "(cached) " >&6
24596else
cristy8b350f62009-11-15 23:12:43 +000024597 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024598 ac_cv_func_vfork_works=cross
24599else
cristy8b350f62009-11-15 23:12:43 +000024600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024601/* end confdefs.h. */
24602/* Thanks to Paul Eggert for this test. */
24603$ac_includes_default
24604#include <sys/wait.h>
24605#ifdef HAVE_VFORK_H
24606# include <vfork.h>
24607#endif
24608/* On some sparc systems, changes by the child to local and incoming
24609 argument registers are propagated back to the parent. The compiler
24610 is told about this with #include <vfork.h>, but some compilers
24611 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24612 static variable whose address is put into a register that is
24613 clobbered by the vfork. */
24614static void
24615#ifdef __cplusplus
24616sparc_address_test (int arg)
24617# else
24618sparc_address_test (arg) int arg;
24619#endif
24620{
24621 static pid_t child;
24622 if (!child) {
24623 child = vfork ();
24624 if (child < 0) {
24625 perror ("vfork");
24626 _exit(2);
24627 }
24628 if (!child) {
24629 arg = getpid();
24630 write(-1, "", 0);
24631 _exit (arg);
24632 }
24633 }
24634}
24635
24636int
24637main ()
24638{
24639 pid_t parent = getpid ();
24640 pid_t child;
24641
24642 sparc_address_test (0);
24643
24644 child = vfork ();
24645
24646 if (child == 0) {
24647 /* Here is another test for sparc vfork register problems. This
24648 test uses lots of local variables, at least as many local
24649 variables as main has allocated so far including compiler
24650 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24651 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24652 reuse the register of parent for one of the local variables,
24653 since it will think that parent can't possibly be used any more
24654 in this routine. Assigning to the local variable will thus
24655 munge parent in the parent process. */
24656 pid_t
24657 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24658 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24659 /* Convince the compiler that p..p7 are live; otherwise, it might
24660 use the same hardware register for all 8 local variables. */
24661 if (p != p1 || p != p2 || p != p3 || p != p4
24662 || p != p5 || p != p6 || p != p7)
24663 _exit(1);
24664
24665 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24666 from child file descriptors. If the child closes a descriptor
24667 before it execs or exits, this munges the parent's descriptor
24668 as well. Test for this by closing stdout in the child. */
24669 _exit(close(fileno(stdout)) != 0);
24670 } else {
24671 int status;
24672 struct stat st;
24673
24674 while (wait(&status) != child)
24675 ;
24676 return (
24677 /* Was there some problem with vforking? */
24678 child < 0
24679
24680 /* Did the child fail? (This shouldn't happen.) */
24681 || status
24682
24683 /* Did the vfork/compiler bug occur? */
24684 || parent != getpid()
24685
24686 /* Did the file descriptor bug occur? */
24687 || fstat(fileno(stdout), &st) != 0
24688 );
24689 }
24690}
24691_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024692if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024693 ac_cv_func_vfork_works=yes
24694else
cristy8b350f62009-11-15 23:12:43 +000024695 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024696fi
cristy8b350f62009-11-15 23:12:43 +000024697rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24698 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024699fi
24700
cristy3ed852e2009-09-05 21:47:34 +000024701fi
cristy8b350f62009-11-15 23:12:43 +000024702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024703$as_echo "$ac_cv_func_vfork_works" >&6; }
24704
24705fi;
24706if test "x$ac_cv_func_fork_works" = xcross; then
24707 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000024708 { $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 +000024709$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24710fi
24711
24712if test "x$ac_cv_func_vfork_works" = xyes; then
24713
cristy8b350f62009-11-15 23:12:43 +000024714$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024715
24716else
24717
cristy8b350f62009-11-15 23:12:43 +000024718$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024719
24720fi
24721if test "x$ac_cv_func_fork_works" = xyes; then
24722
cristy8b350f62009-11-15 23:12:43 +000024723$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024724
24725fi
24726
cristy8b350f62009-11-15 23:12:43 +000024727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024728$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024729if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024730 $as_echo_n "(cached) " >&6
24731else
cristy8b350f62009-11-15 23:12:43 +000024732 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024733 ac_cv_func_memcmp_working=no
24734else
cristy8b350f62009-11-15 23:12:43 +000024735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024736/* end confdefs.h. */
24737$ac_includes_default
24738int
24739main ()
24740{
24741
24742 /* Some versions of memcmp are not 8-bit clean. */
24743 char c0 = '\100', c1 = '\200', c2 = '\201';
24744 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24745 return 1;
24746
24747 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24748 or more and with at least one buffer not starting on a 4-byte boundary.
24749 William Lewis provided this test program. */
24750 {
24751 char foo[21];
24752 char bar[21];
24753 int i;
24754 for (i = 0; i < 4; i++)
24755 {
24756 char *a = foo + i;
24757 char *b = bar + i;
24758 strcpy (a, "--------01111111");
24759 strcpy (b, "--------10000000");
24760 if (memcmp (a, b, 16) >= 0)
24761 return 1;
24762 }
24763 return 0;
24764 }
24765
24766 ;
24767 return 0;
24768}
24769_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024770if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024771 ac_cv_func_memcmp_working=yes
24772else
cristy8b350f62009-11-15 23:12:43 +000024773 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000024774fi
cristy8b350f62009-11-15 23:12:43 +000024775rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24776 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024777fi
24778
cristy3ed852e2009-09-05 21:47:34 +000024779fi
cristy8b350f62009-11-15 23:12:43 +000024780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000024781$as_echo "$ac_cv_func_memcmp_working" >&6; }
24782test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24783 *" memcmp.$ac_objext "* ) ;;
24784 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24785 ;;
24786esac
24787
24788
cristy3ed852e2009-09-05 21:47:34 +000024789for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000024790do :
24791 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24792ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000024793if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024794 cat >>confdefs.h <<_ACEOF
24795#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24796_ACEOF
24797
24798fi
24799
24800done
24801
cristy8b350f62009-11-15 23:12:43 +000024802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000024803$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024804if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024805 $as_echo_n "(cached) " >&6
24806else
24807 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
24808 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
24809 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000024810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024811/* end confdefs.h. */
24812$ac_includes_default
24813#ifdef HAVE_SYS_SELECT_H
24814# include <sys/select.h>
24815#endif
24816#ifdef HAVE_SYS_SOCKET_H
24817# include <sys/socket.h>
24818#endif
24819
24820int
24821main ()
24822{
24823extern int select ($ac_arg1,
24824 $ac_arg234, $ac_arg234, $ac_arg234,
24825 $ac_arg5);
24826 ;
24827 return 0;
24828}
24829_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024830if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024831 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000024832fi
cristy3ed852e2009-09-05 21:47:34 +000024833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24834 done
24835 done
24836done
24837# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000024838: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000024839
24840fi
cristy8b350f62009-11-15 23:12:43 +000024841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000024842$as_echo "$ac_cv_func_select_args" >&6; }
24843ac_save_IFS=$IFS; IFS=','
24844set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
24845IFS=$ac_save_IFS
24846shift
24847
24848cat >>confdefs.h <<_ACEOF
24849#define SELECT_TYPE_ARG1 $1
24850_ACEOF
24851
24852
24853cat >>confdefs.h <<_ACEOF
24854#define SELECT_TYPE_ARG234 ($2)
24855_ACEOF
24856
24857
24858cat >>confdefs.h <<_ACEOF
24859#define SELECT_TYPE_ARG5 ($3)
24860_ACEOF
24861
24862rm -f conftest*
24863
cristyda16f162011-02-19 23:52:17 +000024864if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024865 $as_echo_n "(cached) " >&6
24866else
24867 ac_cv_func_setvbuf_reversed=no
24868fi
24869
24870
cristy8b350f62009-11-15 23:12:43 +000024871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000024872$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024873if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024874 $as_echo_n "(cached) " >&6
24875else
cristy8b350f62009-11-15 23:12:43 +000024876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024877/* end confdefs.h. */
24878#include <sys/types.h>
24879#include <signal.h>
24880
24881int
24882main ()
24883{
24884return *(signal (0, 0)) (0) == 1;
24885 ;
24886 return 0;
24887}
24888_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024889if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024890 ac_cv_type_signal=int
24891else
cristy8b350f62009-11-15 23:12:43 +000024892 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000024893fi
cristy3ed852e2009-09-05 21:47:34 +000024894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24895fi
cristy8b350f62009-11-15 23:12:43 +000024896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000024897$as_echo "$ac_cv_type_signal" >&6; }
24898
24899cat >>confdefs.h <<_ACEOF
24900#define RETSIGTYPE $ac_cv_type_signal
24901_ACEOF
24902
24903
cristy8b350f62009-11-15 23:12:43 +000024904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024905$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024906if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024907 $as_echo_n "(cached) " >&6
24908else
cristy8b350f62009-11-15 23:12:43 +000024909 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024910 ac_cv_func_strtod=no
24911else
cristy8b350f62009-11-15 23:12:43 +000024912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024913/* end confdefs.h. */
24914
24915$ac_includes_default
24916#ifndef strtod
24917double strtod ();
24918#endif
24919int
24920main()
24921{
24922 {
24923 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
24924 char *string = " +69";
24925 char *term;
24926 double value;
24927 value = strtod (string, &term);
24928 if (value != 69 || term != (string + 4))
24929 return 1;
24930 }
24931
24932 {
24933 /* Under Solaris 2.4, strtod returns the wrong value for the
24934 terminating character under some conditions. */
24935 char *string = "NaN";
24936 char *term;
24937 strtod (string, &term);
24938 if (term != string && *(term - 1) == 0)
24939 return 1;
24940 }
24941 return 0;
24942}
24943
24944_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024945if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024946 ac_cv_func_strtod=yes
24947else
cristy8b350f62009-11-15 23:12:43 +000024948 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000024949fi
cristy8b350f62009-11-15 23:12:43 +000024950rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24951 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024952fi
24953
cristy3ed852e2009-09-05 21:47:34 +000024954fi
cristy8b350f62009-11-15 23:12:43 +000024955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024956$as_echo "$ac_cv_func_strtod" >&6; }
24957if test $ac_cv_func_strtod = no; then
24958 case " $LIBOBJS " in
24959 *" strtod.$ac_objext "* ) ;;
24960 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
24961 ;;
24962esac
24963
cristy8b350f62009-11-15 23:12:43 +000024964ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000024965if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024966
cristy3ed852e2009-09-05 21:47:34 +000024967fi
24968
cristy3ed852e2009-09-05 21:47:34 +000024969if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000024970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000024971$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024972if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024973 $as_echo_n "(cached) " >&6
24974else
24975 ac_check_lib_save_LIBS=$LIBS
24976LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024977cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024978/* end confdefs.h. */
24979
24980/* Override any GCC internal prototype to avoid an error.
24981 Use char because int might match the return type of a GCC
24982 builtin and then its argument prototype would still apply. */
24983#ifdef __cplusplus
24984extern "C"
24985#endif
24986char pow ();
24987int
24988main ()
24989{
24990return pow ();
24991 ;
24992 return 0;
24993}
24994_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024995if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024996 ac_cv_lib_m_pow=yes
24997else
cristy8b350f62009-11-15 23:12:43 +000024998 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000024999fi
cristy8b350f62009-11-15 23:12:43 +000025000rm -f core conftest.err conftest.$ac_objext \
25001 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025002LIBS=$ac_check_lib_save_LIBS
25003fi
cristy8b350f62009-11-15 23:12:43 +000025004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000025005$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000025006if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025007 POW_LIB=-lm
25008else
cristy8b350f62009-11-15 23:12:43 +000025009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000025010$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
25011fi
25012
25013fi
25014
25015fi
25016
cristy7d4a1d62011-10-13 15:54:12 +000025017ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
25018if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
25019 ac_have_decl=1
25020else
25021 ac_have_decl=0
25022fi
25023
25024cat >>confdefs.h <<_ACEOF
25025#define HAVE_DECL_STRERROR_R $ac_have_decl
25026_ACEOF
25027
25028for ac_func in strerror_r
25029do :
25030 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
25031if test "x$ac_cv_func_strerror_r" = xyes; then :
25032 cat >>confdefs.h <<_ACEOF
25033#define HAVE_STRERROR_R 1
25034_ACEOF
25035
25036fi
25037done
25038
25039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
25040$as_echo_n "checking whether strerror_r returns char *... " >&6; }
25041if ${ac_cv_func_strerror_r_char_p+:} false; then :
25042 $as_echo_n "(cached) " >&6
25043else
25044
25045 ac_cv_func_strerror_r_char_p=no
25046 if test $ac_cv_have_decl_strerror_r = yes; then
25047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25048/* end confdefs.h. */
25049$ac_includes_default
25050int
25051main ()
25052{
25053
25054 char buf[100];
25055 char x = *strerror_r (0, buf, sizeof buf);
25056 char *p = strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000025057 return !p || x;
cristy7d4a1d62011-10-13 15:54:12 +000025058
25059 ;
25060 return 0;
25061}
25062_ACEOF
25063if ac_fn_c_try_compile "$LINENO"; then :
25064 ac_cv_func_strerror_r_char_p=yes
25065fi
25066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25067 else
25068 # strerror_r is not declared. Choose between
25069 # systems that have relatively inaccessible declarations for the
25070 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
25071 # former has a strerror_r that returns char*, while the latter
25072 # has a strerror_r that returns `int'.
25073 # This test should segfault on the DEC system.
25074 if test "$cross_compiling" = yes; then :
25075 :
25076else
25077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25078/* end confdefs.h. */
25079$ac_includes_default
25080 extern char *strerror_r ();
25081int
25082main ()
25083{
25084char buf[100];
25085 char x = *strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000025086 return ! isalpha (x);
cristy7d4a1d62011-10-13 15:54:12 +000025087 ;
25088 return 0;
25089}
25090_ACEOF
25091if ac_fn_c_try_run "$LINENO"; then :
25092 ac_cv_func_strerror_r_char_p=yes
25093fi
25094rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25095 conftest.$ac_objext conftest.beam conftest.$ac_ext
25096fi
25097
25098 fi
25099
25100fi
25101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
25102$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
25103if test $ac_cv_func_strerror_r_char_p = yes; then
25104
25105$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
25106
25107fi
25108
cristy3ed852e2009-09-05 21:47:34 +000025109for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000025110do :
25111 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000025112if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025113 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025114#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000025115_ACEOF
25116
cristy8b350f62009-11-15 23:12:43 +000025117ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000025118if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025119
cristy8b350f62009-11-15 23:12:43 +000025120$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025121
25122fi
25123
25124fi
25125done
25126
25127
25128
cristy161b9262010-03-20 19:34:32 +000025129#
25130# Find math library
25131#
25132MATH_LIBS=''
25133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
25134$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025135if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000025136 $as_echo_n "(cached) " >&6
25137else
25138 ac_check_lib_save_LIBS=$LIBS
25139LIBS="-lm $LIBS"
25140cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25141/* end confdefs.h. */
25142
25143/* Override any GCC internal prototype to avoid an error.
25144 Use char because int might match the return type of a GCC
25145 builtin and then its argument prototype would still apply. */
25146#ifdef __cplusplus
25147extern "C"
25148#endif
25149char sqrt ();
25150int
25151main ()
25152{
25153return sqrt ();
25154 ;
25155 return 0;
25156}
25157_ACEOF
25158if ac_fn_c_try_link "$LINENO"; then :
25159 ac_cv_lib_m_sqrt=yes
25160else
25161 ac_cv_lib_m_sqrt=no
25162fi
25163rm -f core conftest.err conftest.$ac_objext \
25164 conftest$ac_exeext conftest.$ac_ext
25165LIBS=$ac_check_lib_save_LIBS
25166fi
25167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
25168$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000025169if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000025170 MATH_LIBS="-lm"
25171fi
25172
25173LIBS="$MATH_LIBS $LIBS"
25174
25175
cristy85572162013-01-04 19:19:32 +000025176#
25177# Find socket library
25178#
cristy8a5d7f42013-01-06 15:24:33 +000025179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
25180$as_echo_n "checking for library containing gethostbyname... " >&6; }
25181if ${ac_cv_search_gethostbyname+:} false; then :
25182 $as_echo_n "(cached) " >&6
25183else
25184 ac_func_search_save_LIBS=$LIBS
25185cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25186/* end confdefs.h. */
25187
25188/* Override any GCC internal prototype to avoid an error.
25189 Use char because int might match the return type of a GCC
25190 builtin and then its argument prototype would still apply. */
25191#ifdef __cplusplus
25192extern "C"
25193#endif
25194char gethostbyname ();
25195int
25196main ()
25197{
25198return gethostbyname ();
25199 ;
25200 return 0;
25201}
25202_ACEOF
25203for ac_lib in '' resolv nsl; do
25204 if test -z "$ac_lib"; then
25205 ac_res="none required"
25206 else
25207 ac_res=-l$ac_lib
25208 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25209 fi
25210 if ac_fn_c_try_link "$LINENO"; then :
25211 ac_cv_search_gethostbyname=$ac_res
25212fi
25213rm -f core conftest.err conftest.$ac_objext \
25214 conftest$ac_exeext
25215 if ${ac_cv_search_gethostbyname+:} false; then :
25216 break
25217fi
25218done
25219if ${ac_cv_search_gethostbyname+:} false; then :
25220
25221else
25222 ac_cv_search_gethostbyname=no
25223fi
25224rm conftest.$ac_ext
25225LIBS=$ac_func_search_save_LIBS
25226fi
25227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
25228$as_echo "$ac_cv_search_gethostbyname" >&6; }
25229ac_res=$ac_cv_search_gethostbyname
25230if test "$ac_res" != no; then :
25231 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25232
25233fi
25234
cristy85572162013-01-04 19:19:32 +000025235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
25236$as_echo_n "checking for library containing socket... " >&6; }
25237if ${ac_cv_search_socket+:} false; then :
25238 $as_echo_n "(cached) " >&6
25239else
25240 ac_func_search_save_LIBS=$LIBS
25241cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25242/* end confdefs.h. */
25243
25244/* Override any GCC internal prototype to avoid an error.
25245 Use char because int might match the return type of a GCC
25246 builtin and then its argument prototype would still apply. */
25247#ifdef __cplusplus
25248extern "C"
25249#endif
25250char socket ();
25251int
25252main ()
25253{
25254return socket ();
25255 ;
25256 return 0;
25257}
25258_ACEOF
25259for ac_lib in '' socket; do
25260 if test -z "$ac_lib"; then
25261 ac_res="none required"
25262 else
25263 ac_res=-l$ac_lib
25264 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25265 fi
25266 if ac_fn_c_try_link "$LINENO"; then :
25267 ac_cv_search_socket=$ac_res
25268fi
25269rm -f core conftest.err conftest.$ac_objext \
25270 conftest$ac_exeext
25271 if ${ac_cv_search_socket+:} false; then :
25272 break
25273fi
25274done
25275if ${ac_cv_search_socket+:} false; then :
25276
25277else
25278 ac_cv_search_socket=no
25279fi
25280rm conftest.$ac_ext
25281LIBS=$ac_func_search_save_LIBS
25282fi
25283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
25284$as_echo "$ac_cv_search_socket" >&6; }
25285ac_res=$ac_cv_search_socket
25286if test "$ac_res" != no; then :
25287 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25288
cristy85572162013-01-04 19:19:32 +000025289
cristy8a5d7f42013-01-06 15:24:33 +000025290$as_echo "#define HAVE_SOCKET 1" >>confdefs.h
cristy85572162013-01-04 19:19:32 +000025291
cristy03f187e2013-01-24 00:22:19 +000025292 MAGICK_FEATURES="DPC $MAGICK_FEATURES"
cristy85572162013-01-04 19:19:32 +000025293
25294fi
25295
25296
25297for 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 +000025298do :
25299 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25300ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025301if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025302 cat >>confdefs.h <<_ACEOF
25303#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25304_ACEOF
25305
25306fi
25307done
25308
25309
cristye43a45e2009-09-28 14:49:00 +000025310#
25311# Check for clock_gettime().
25312#
cristy8b350f62009-11-15 23:12:43 +000025313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025314$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025315if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025316 $as_echo_n "(cached) " >&6
25317else
25318 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000025319cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025320/* end confdefs.h. */
25321
25322/* Override any GCC internal prototype to avoid an error.
25323 Use char because int might match the return type of a GCC
25324 builtin and then its argument prototype would still apply. */
25325#ifdef __cplusplus
25326extern "C"
25327#endif
25328char clock_gettime ();
25329int
25330main ()
25331{
25332return clock_gettime ();
25333 ;
25334 return 0;
25335}
25336_ACEOF
25337for ac_lib in '' rt; do
25338 if test -z "$ac_lib"; then
25339 ac_res="none required"
25340 else
25341 ac_res=-l$ac_lib
25342 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25343 fi
cristy8b350f62009-11-15 23:12:43 +000025344 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025345 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000025346fi
cristy8b350f62009-11-15 23:12:43 +000025347rm -f core conftest.err conftest.$ac_objext \
25348 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000025349 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025350 break
25351fi
25352done
cristyda16f162011-02-19 23:52:17 +000025353if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000025354
cristye43a45e2009-09-28 14:49:00 +000025355else
25356 ac_cv_search_clock_gettime=no
25357fi
25358rm conftest.$ac_ext
25359LIBS=$ac_func_search_save_LIBS
25360fi
cristy8b350f62009-11-15 23:12:43 +000025361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025362$as_echo "$ac_cv_search_clock_gettime" >&6; }
25363ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000025364if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000025365 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25366
25367
cristy8b350f62009-11-15 23:12:43 +000025368$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025369
cristy8b350f62009-11-15 23:12:43 +000025370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000025371$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025373/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000025374
25375 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000025376int
25377main ()
25378{
25379clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000025380 ;
25381 return 0;
25382}
25383_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025384if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025385
cristyad38abe2012-12-23 23:03:21 +000025386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25387$as_echo "yes" >&6; }
cristye43a45e2009-09-28 14:49:00 +000025388
cristy8b350f62009-11-15 23:12:43 +000025389$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025390
25391
25392else
cristyad38abe2012-12-23 23:03:21 +000025393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25394$as_echo "no" >&6; }
cristye43a45e2009-09-28 14:49:00 +000025395
25396fi
cristye43a45e2009-09-28 14:49:00 +000025397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25398
25399else
25400
cristy8b350f62009-11-15 23:12:43 +000025401 for ac_func in gettimeofday ftime
25402do :
25403 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25404ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025405if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000025406 cat >>confdefs.h <<_ACEOF
25407#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25408_ACEOF
25409 break
25410fi
25411done
25412
25413
25414
25415fi
25416
25417
cristy3ed852e2009-09-05 21:47:34 +000025418########
25419#
25420# Check for function prototypes
25421#
25422########
25423
cristy8b350f62009-11-15 23:12:43 +000025424ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000025425#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025426"
cristyda16f162011-02-19 23:52:17 +000025427if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025428 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025429else
cristy8b350f62009-11-15 23:12:43 +000025430 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025431fi
25432
cristy3ed852e2009-09-05 21:47:34 +000025433cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025434#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025435_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025436ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000025437#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025438"
cristyda16f162011-02-19 23:52:17 +000025439if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025440 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025441else
cristy8b350f62009-11-15 23:12:43 +000025442 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025443fi
25444
cristy3ed852e2009-09-05 21:47:34 +000025445cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025446#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025447_ACEOF
25448
25449
cristy8b350f62009-11-15 23:12:43 +000025450ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000025451#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000025452"
cristyda16f162011-02-19 23:52:17 +000025453if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025454 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025455else
cristy8b350f62009-11-15 23:12:43 +000025456 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025457fi
25458
cristy3ed852e2009-09-05 21:47:34 +000025459cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025460#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025461_ACEOF
25462
25463
cristy8b350f62009-11-15 23:12:43 +000025464ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000025465#include <stdio.h>
25466#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000025467"
cristyda16f162011-02-19 23:52:17 +000025468if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025469 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025470else
cristy8b350f62009-11-15 23:12:43 +000025471 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025472fi
25473
cristy3ed852e2009-09-05 21:47:34 +000025474cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025475#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025476_ACEOF
25477
25478
cristy3ed852e2009-09-05 21:47:34 +000025479########
25480#
25481# C++ Support Tests (For Magick++)
25482#
25483########
25484have_magick_plus_plus='no'
25485if test "$with_magick_plus_plus" = 'yes'; then
25486 OLIBS="$LIBS"
25487 LIBS=''
25488 ac_ext=cpp
25489ac_cpp='$CXXCPP $CPPFLAGS'
25490ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25491ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25492ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25493
25494
25495 # Full set of headers used...
25496 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
25497 # functional iomanip iosfwd iostream iterator list string strstream utility
25498 ac_ext=cpp
25499ac_cpp='$CXXCPP $CPPFLAGS'
25500ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25501ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25502ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25503
25504 ac_ext=cpp
25505ac_cpp='$CXXCPP $CPPFLAGS'
25506ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25507ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25508ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25509if test -z "$CXX"; then
25510 if test -n "$CCC"; then
25511 CXX=$CCC
25512 else
25513 if test -n "$ac_tool_prefix"; then
25514 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25515 do
25516 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25517set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025519$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025520if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025521 $as_echo_n "(cached) " >&6
25522else
25523 if test -n "$CXX"; then
25524 ac_cv_prog_CXX="$CXX" # Let the user override the test.
25525else
25526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25527for as_dir in $PATH
25528do
25529 IFS=$as_save_IFS
25530 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025531 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025533 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025535 break 2
25536 fi
25537done
cristy8b350f62009-11-15 23:12:43 +000025538 done
cristy3ed852e2009-09-05 21:47:34 +000025539IFS=$as_save_IFS
25540
25541fi
25542fi
25543CXX=$ac_cv_prog_CXX
25544if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025546$as_echo "$CXX" >&6; }
25547else
cristy8b350f62009-11-15 23:12:43 +000025548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025549$as_echo "no" >&6; }
25550fi
25551
25552
25553 test -n "$CXX" && break
25554 done
25555fi
25556if test -z "$CXX"; then
25557 ac_ct_CXX=$CXX
25558 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25559do
25560 # Extract the first word of "$ac_prog", so it can be a program name with args.
25561set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025563$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025564if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025565 $as_echo_n "(cached) " >&6
25566else
25567 if test -n "$ac_ct_CXX"; then
25568 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
25569else
25570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25571for as_dir in $PATH
25572do
25573 IFS=$as_save_IFS
25574 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025575 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025577 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025579 break 2
25580 fi
25581done
cristy8b350f62009-11-15 23:12:43 +000025582 done
cristy3ed852e2009-09-05 21:47:34 +000025583IFS=$as_save_IFS
25584
25585fi
25586fi
25587ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25588if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025590$as_echo "$ac_ct_CXX" >&6; }
25591else
cristy8b350f62009-11-15 23:12:43 +000025592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025593$as_echo "no" >&6; }
25594fi
25595
25596
25597 test -n "$ac_ct_CXX" && break
25598done
25599
25600 if test "x$ac_ct_CXX" = x; then
25601 CXX="g++"
25602 else
25603 case $cross_compiling:$ac_tool_warned in
25604yes:)
cristy8b350f62009-11-15 23:12:43 +000025605{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025606$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25607ac_tool_warned=yes ;;
25608esac
25609 CXX=$ac_ct_CXX
25610 fi
25611fi
25612
25613 fi
25614fi
25615# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000025616$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000025617set X $ac_compile
25618ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000025619for ac_option in --version -v -V -qversion; do
25620 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000025621case "(($ac_try" in
25622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25623 *) ac_try_echo=$ac_try;;
25624esac
cristy8b350f62009-11-15 23:12:43 +000025625eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25626$as_echo "$ac_try_echo"; } >&5
25627 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000025628 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025629 if test -s conftest.err; then
25630 sed '10a\
25631... rest of stderr output deleted ...
25632 10q' conftest.err >conftest.er1
25633 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000025634 fi
cristycd4c5312009-11-22 01:19:08 +000025635 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000025636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25637 test $ac_status = 0; }
25638done
cristy3ed852e2009-09-05 21:47:34 +000025639
cristy8b350f62009-11-15 23:12:43 +000025640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000025641$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025642if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025643 $as_echo_n "(cached) " >&6
25644else
cristy8b350f62009-11-15 23:12:43 +000025645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025646/* end confdefs.h. */
25647
25648int
25649main ()
25650{
25651#ifndef __GNUC__
25652 choke me
25653#endif
25654
25655 ;
25656 return 0;
25657}
25658_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025659if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025660 ac_compiler_gnu=yes
25661else
cristy8b350f62009-11-15 23:12:43 +000025662 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000025663fi
cristy3ed852e2009-09-05 21:47:34 +000025664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25665ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
25666
25667fi
cristy8b350f62009-11-15 23:12:43 +000025668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000025669$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
25670if test $ac_compiler_gnu = yes; then
25671 GXX=yes
25672else
25673 GXX=
25674fi
25675ac_test_CXXFLAGS=${CXXFLAGS+set}
25676ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000025677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025678$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025679if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025680 $as_echo_n "(cached) " >&6
25681else
25682 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
25683 ac_cxx_werror_flag=yes
25684 ac_cv_prog_cxx_g=no
25685 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025687/* end confdefs.h. */
25688
25689int
25690main ()
25691{
25692
25693 ;
25694 return 0;
25695}
25696_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025697if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025698 ac_cv_prog_cxx_g=yes
25699else
cristy8b350f62009-11-15 23:12:43 +000025700 CXXFLAGS=""
25701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025702/* end confdefs.h. */
25703
25704int
25705main ()
25706{
25707
25708 ;
25709 return 0;
25710}
25711_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025712if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025713
cristy8b350f62009-11-15 23:12:43 +000025714else
25715 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000025716 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025718/* end confdefs.h. */
25719
25720int
25721main ()
25722{
25723
25724 ;
25725 return 0;
25726}
25727_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025728if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025729 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000025730fi
cristy3ed852e2009-09-05 21:47:34 +000025731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25732fi
cristy3ed852e2009-09-05 21:47:34 +000025733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25734fi
cristy3ed852e2009-09-05 21:47:34 +000025735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25736 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
25737fi
cristy8b350f62009-11-15 23:12:43 +000025738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025739$as_echo "$ac_cv_prog_cxx_g" >&6; }
25740if test "$ac_test_CXXFLAGS" = set; then
25741 CXXFLAGS=$ac_save_CXXFLAGS
25742elif test $ac_cv_prog_cxx_g = yes; then
25743 if test "$GXX" = yes; then
25744 CXXFLAGS="-g -O2"
25745 else
25746 CXXFLAGS="-g"
25747 fi
25748else
25749 if test "$GXX" = yes; then
25750 CXXFLAGS="-O2"
25751 else
25752 CXXFLAGS=
25753 fi
25754fi
25755ac_ext=cpp
25756ac_cpp='$CXXCPP $CPPFLAGS'
25757ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25758ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25759ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25760
cristy73bd4a52010-10-05 11:24:23 +000025761depcc="$CXX" am_compiler_list=
25762
25763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
25764$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025765if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025766 $as_echo_n "(cached) " >&6
25767else
25768 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25769 # We make a subdir and do the tests there. Otherwise we can end up
25770 # making bogus files that we don't know about and never remove. For
25771 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +000025772 # making a dummy file named 'D' -- because '-MD' means "put the output
25773 # in D".
cristy7247bba2012-02-05 16:37:27 +000025774 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +000025775 mkdir conftest.dir
25776 # Copy depcomp to subdir because otherwise we won't find it if we're
25777 # using a relative directory.
25778 cp "$am_depcomp" conftest.dir
25779 cd conftest.dir
25780 # We will build objects and dependencies in a subdirectory because
25781 # it helps to detect inapplicable dependency modes. For instance
25782 # both Tru64's cc and ICC support -MD to output dependencies as a
25783 # side effect of compilation, but ICC will put the dependencies in
25784 # the current directory while Tru64 will put them in the object
25785 # directory.
25786 mkdir sub
25787
25788 am_cv_CXX_dependencies_compiler_type=none
25789 if test "$am_compiler_list" = ""; then
25790 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25791 fi
25792 am__universal=false
25793 case " $depcc " in #(
25794 *\ -arch\ *\ -arch\ *) am__universal=true ;;
25795 esac
25796
25797 for depmode in $am_compiler_list; do
25798 # Setup a source with many dependencies, because some compilers
25799 # like to wrap large dependency lists on column 80 (with \), and
25800 # we should not choose a depcomp mode which is confused by this.
25801 #
25802 # We need to recreate these files for each test, as the compiler may
25803 # overwrite some of them when testing with obscure command lines.
25804 # This happens at least with the AIX C compiler.
25805 : > sub/conftest.c
25806 for i in 1 2 3 4 5 6; do
25807 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +000025808 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
25809 # Solaris 10 /bin/sh.
25810 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +000025811 done
25812 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25813
cristyc0890a62012-07-19 00:18:20 +000025814 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +000025815 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +000025816 # handle '-M -o', and we need to detect this. Also, some Intel
25817 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +000025818 am__obj=sub/conftest.${OBJEXT-o}
25819 am__minus_obj="-o $am__obj"
25820 case $depmode in
25821 gcc)
25822 # This depmode causes a compiler race in universal mode.
25823 test "$am__universal" = false || continue
25824 ;;
25825 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +000025826 # After this tag, mechanisms are not by side-effect, so they'll
25827 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +000025828 if test "x$enable_dependency_tracking" = xyes; then
25829 continue
25830 else
25831 break
25832 fi
25833 ;;
cristy7247bba2012-02-05 16:37:27 +000025834 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +000025835 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +000025836 # not run yet. These depmodes are late enough in the game, and
25837 # so weak that their functioning should not be impacted.
25838 am__obj=conftest.${OBJEXT-o}
25839 am__minus_obj=
25840 ;;
25841 none) break ;;
25842 esac
25843 if depmode=$depmode \
25844 source=sub/conftest.c object=$am__obj \
25845 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
25846 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
25847 >/dev/null 2>conftest.err &&
25848 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
25849 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
25850 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
25851 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
25852 # icc doesn't choke on unknown options, it will just issue warnings
25853 # or remarks (even with -Werror). So we grep stderr for any message
25854 # that says an option was ignored or not supported.
25855 # When given -MP, icc 7.0 and 7.1 complain thusly:
25856 # icc: Command line warning: ignoring option '-M'; no argument required
25857 # The diagnosis changed in icc 8.0:
25858 # icc: Command line remark: option '-MP' not supported
25859 if (grep 'ignoring option' conftest.err ||
25860 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
25861 am_cv_CXX_dependencies_compiler_type=$depmode
25862 break
25863 fi
25864 fi
25865 done
25866
25867 cd ..
25868 rm -rf conftest.dir
25869else
25870 am_cv_CXX_dependencies_compiler_type=none
25871fi
25872
25873fi
25874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
25875$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
25876CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
25877
25878 if
25879 test "x$enable_dependency_tracking" != xno \
25880 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
25881 am__fastdepCXX_TRUE=
25882 am__fastdepCXX_FALSE='#'
25883else
25884 am__fastdepCXX_TRUE='#'
25885 am__fastdepCXX_FALSE=
25886fi
25887
25888
25889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
25890$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025891if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025892 $as_echo_n "(cached) " >&6
25893else
25894
25895 ac_ext=cpp
25896ac_cpp='$CXXCPP $CPPFLAGS'
25897ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25898ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25899ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25900
25901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25902/* end confdefs.h. */
25903
25904int f(int x){return 1;}
25905int f(char x){return 1;}
25906int f(bool x){return 1;}
25907
25908int
25909main ()
25910{
25911bool b = true; return f(b);
25912 ;
25913 return 0;
25914}
25915_ACEOF
25916if ac_fn_cxx_try_compile "$LINENO"; then :
25917 ax_cv_cxx_bool=yes
25918else
25919 ax_cv_cxx_bool=no
25920fi
25921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25922 ac_ext=cpp
25923ac_cpp='$CXXCPP $CPPFLAGS'
25924ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25925ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25926ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25927
25928
25929fi
25930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
25931$as_echo "$ax_cv_cxx_bool" >&6; }
25932if test "$ax_cv_cxx_bool" = yes; then
25933
25934$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
25935
25936fi
25937
25938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
25939$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025940if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025941 $as_echo_n "(cached) " >&6
25942else
25943
25944 ac_ext=cpp
25945ac_cpp='$CXXCPP $CPPFLAGS'
25946ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25947ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25948ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25949
25950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25951/* end confdefs.h. */
25952namespace Outer { namespace Inner { int i = 0; }}
25953int
25954main ()
25955{
25956using namespace Outer::Inner; return i;
25957 ;
25958 return 0;
25959}
25960_ACEOF
25961if ac_fn_cxx_try_compile "$LINENO"; then :
25962 ax_cv_cxx_namespaces=yes
25963else
25964 ax_cv_cxx_namespaces=no
25965fi
25966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25967 ac_ext=cpp
25968ac_cpp='$CXXCPP $CPPFLAGS'
25969ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25970ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25971ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25972
25973
25974fi
25975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
25976$as_echo "$ax_cv_cxx_namespaces" >&6; }
25977if test "$ax_cv_cxx_namespaces" = yes; then
25978
25979$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
25980
25981fi
25982
25983
25984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
25985$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025986if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025987 $as_echo_n "(cached) " >&6
25988else
25989
25990 ac_ext=cpp
25991ac_cpp='$CXXCPP $CPPFLAGS'
25992ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25993ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25994ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25995
25996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25997/* end confdefs.h. */
25998#include <iostream>
25999 std::istream& is = std::cin;
26000int
26001main ()
26002{
26003
26004 ;
26005 return 0;
26006}
26007_ACEOF
26008if ac_fn_cxx_try_compile "$LINENO"; then :
26009 ax_cv_cxx_have_std_namespace=yes
26010else
26011 ax_cv_cxx_have_std_namespace=no
26012fi
26013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26014 ac_ext=cpp
26015ac_cpp='$CXXCPP $CPPFLAGS'
26016ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26017ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26018ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26019
26020
26021fi
26022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
26023$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
26024 if test "$ax_cv_cxx_have_std_namespace" = yes; then
26025
26026$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
26027
26028 fi
26029
26030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
26031$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026032if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026033 $as_echo_n "(cached) " >&6
26034else
26035
26036
26037 ac_ext=cpp
26038ac_cpp='$CXXCPP $CPPFLAGS'
26039ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26040ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26041ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26042
26043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26044/* end confdefs.h. */
26045#include <iostream>
26046#include <map>
26047#include <iomanip>
26048#include <cmath>
26049#ifdef HAVE_NAMESPACES
26050using namespace std;
26051#endif
26052int
26053main ()
26054{
26055return 0;
26056 ;
26057 return 0;
26058}
26059_ACEOF
26060if ac_fn_cxx_try_compile "$LINENO"; then :
26061 ac_cv_cxx_have_std_libs=yes
26062else
26063 ac_cv_cxx_have_std_libs=no
26064fi
26065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26066 ac_ext=cpp
26067ac_cpp='$CXXCPP $CPPFLAGS'
26068ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26069ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26070ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26071
26072
26073fi
26074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
26075$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
26076if test "$ac_cv_cxx_have_std_libs" = yes; then
26077
26078$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
26079
26080fi
26081
cristy3ed852e2009-09-05 21:47:34 +000026082
26083 OPENMP_CXXFLAGS=
26084 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000026085if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026086 enableval=$enable_openmp;
26087fi
26088
26089 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000026090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
26091$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026092if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026093 $as_echo_n "(cached) " >&6
26094else
cristy8b350f62009-11-15 23:12:43 +000026095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26096/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026097
26098#ifndef _OPENMP
26099 choke me
26100#endif
26101#include <omp.h>
26102int main () { return omp_get_num_threads (); }
26103
26104_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026105if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026106 ac_cv_prog_cxx_openmp='none needed'
26107else
cristy8b350f62009-11-15 23:12:43 +000026108 ac_cv_prog_cxx_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +000026109 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
26110 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +000026111 ac_save_CXXFLAGS=$CXXFLAGS
26112 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000026113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26114/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026115
26116#ifndef _OPENMP
26117 choke me
26118#endif
26119#include <omp.h>
26120int main () { return omp_get_num_threads (); }
26121
26122_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026123if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026124 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000026125fi
cristy8b350f62009-11-15 23:12:43 +000026126rm -f core conftest.err conftest.$ac_objext \
26127 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026128 CXXFLAGS=$ac_save_CXXFLAGS
26129 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
26130 break
26131 fi
26132 done
26133fi
cristy8b350f62009-11-15 23:12:43 +000026134rm -f core conftest.err conftest.$ac_objext \
26135 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026136fi
cristy8b350f62009-11-15 23:12:43 +000026137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026138$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
26139 case $ac_cv_prog_cxx_openmp in #(
26140 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000026141 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000026142 *)
cristy8b350f62009-11-15 23:12:43 +000026143 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000026144 esac
26145 fi
26146
26147
26148 ac_ext=c
26149ac_cpp='$CPP $CPPFLAGS'
26150ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26151ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26152ac_compiler_gnu=$ac_cv_c_compiler_gnu
26153
26154
cristy8b350f62009-11-15 23:12:43 +000026155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000026156$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
26157 if \
cristy964cb7f2010-04-25 23:18:00 +000026158 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026159 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000026160 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026161 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000026162 have_magick_plus_plus='yes'
26163 else
26164 have_magick_plus_plus='no (failed tests)'
26165 fi
cristyad38abe2012-12-23 23:03:21 +000026166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
26167$as_echo "$have_magick_plus_plus" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026168 LIBS="$OLIBS"
26169fi
cristy73bd4a52010-10-05 11:24:23 +000026170 if test "$have_magick_plus_plus" = 'yes'; then
26171 WITH_MAGICK_PLUS_PLUS_TRUE=
26172 WITH_MAGICK_PLUS_PLUS_FALSE='#'
26173else
26174 WITH_MAGICK_PLUS_PLUS_TRUE='#'
26175 WITH_MAGICK_PLUS_PLUS_FALSE=
26176fi
26177
cristy3ed852e2009-09-05 21:47:34 +000026178
26179# Only check for delegate libraries in subdirectories if requested.
26180if test "$enable_delegate_build" != 'no'; then
26181 # Check for delegate sub-directories and add -I & -L options as required.
26182 # This presumes that delegates are installed as detailed in the ImageMagick
26183 # README. If delegates are installed in a standard location where the
26184 # compiler will automatically find them then these options should not be
26185 # required.
26186
26187 #
26188 # Most delegates have includes in the same directory as the library, but not all...
26189 #
26190 # Includes
cristya8940fd2014-01-12 22:52:25 +000026191 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper/include jbig/libjbig jpeg lcms/include lzma magick mupdf openjp2/include png tiff/libtiff ttf/include wand webp/src wmf/include xml/include zlib; do
cristy3ed852e2009-09-05 21:47:34 +000026192 if test -d "$builddir/$dir"; then
26193 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
26194 else
26195 if test -d "$srcdirfull/$dir"; then
26196 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
26197 fi
26198 fi
26199 done
26200
26201 # Libraries
cristya8940fd2014-01-12 22:52:25 +000026202 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper jbig/libjbig jpeg lcms/src lzma magick mupdf openjp2 png tiff/libtiff ttf/objs wand webp wmf/src xml zlib; do
cristy3ed852e2009-09-05 21:47:34 +000026203 if test -d "$builddir/$dir/.libs"; then
26204 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
26205 else
26206 if test -d "$srcdirfull/$dir/.libs"; then
26207 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
26208 fi
26209 fi
26210 if test -d "$builddir/$dir"; then
26211 LDFLAGS="$LDFLAGS -L$builddir/$dir"
26212 else
26213 if test -d "$srcdirfull/$dir"; then
26214 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
26215 fi
26216 fi
26217 done
26218fi
26219
26220# Assume that delegate headers reside under same directory as ImageMagick
26221# installation prefix.
cristybdabdd62013-03-04 17:43:36 +000026222MAGICK_CPPFLAGS="-I$INCLUDE_DIR/${PACKAGE_NAME}-$MAGICK_MAJOR_VERSION $MAGICK_CPPFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000026223
26224#
26225# Find the X11 RGB database
26226#
cristy8b350f62009-11-15 23:12:43 +000026227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000026228$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026229if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026230 $as_echo_n "(cached) " >&6
26231else
26232 # Look for the header file in a standard set of common directories.
26233# Check X11 before X11Rn because it is often a symlink to the current release.
26234 for ac_dir in \
26235 /lib/usr/lib/X11 \
26236 /usr/X11/lib \
26237 /usr/X11R4/lib \
26238 /usr/X11R5/lib \
26239 /usr/X11R6/lib \
26240 /usr/X11R7/lib \
26241 /usr/X386/lib \
26242 /usr/XFree86/lib/X11 \
26243 /usr/athena/lib \
26244 /usr/lib \
26245 /usr/lib/X11 \
26246 /usr/lib/X11R4 \
26247 /usr/lib/X11R5 \
26248 /usr/lib/X11R6 \
26249 /usr/lib/X11R7 \
26250 /usr/local/X11/lib \
26251 /usr/local/X11R4/lib \
26252 /usr/local/X11R5/lib \
26253 /usr/local/X11R6/lib \
26254 /usr/local/lib \
26255 /usr/local/lib/X11 \
26256 /usr/local/lib/X11R4 \
26257 /usr/local/lib/X11R5 \
26258 /usr/local/lib/X11R6 \
26259 /usr/local/lib/X11R7 \
26260 /usr/local/x11r5/lib \
26261 /usr/lpp/Xamples/lib \
26262 /usr/openwin/lib \
26263 /usr/openwin/share/lib \
26264 /usr/unsupported/lib \
26265 /usr/x386/lib \
26266 ; do
26267 if test -f "$ac_dir/X11/rgb.txt"; then
26268 im_cv_x_configure="$ac_dir/X11/"
26269 break
26270 elif test -f "$ac_dir/rgb.txt"; then
26271 im_cv_x_configure="$ac_dir/"
26272 break
26273 fi
26274
26275 done
26276fi
cristy8b350f62009-11-15 23:12:43 +000026277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000026278$as_echo "$im_cv_x_configure" >&6; }
26279X11_CONFIGURE_PATH="$im_cv_x_configure"
26280case "${build_os}" in
26281 mingw* )
26282 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
26283 ;;
26284esac
26285
26286cat >>confdefs.h <<_ACEOF
26287#define X11_CONFIGURE_PATH "$X11ConfigurePath"
26288_ACEOF
26289
26290
26291#
26292# Find OpenMP library
26293#
26294GOMP_LIBS=''
26295if test "$enable_openmp" != 'no'; then
26296 if test "${GCC}" = "yes"; then
cristy18307f12011-12-30 01:20:16 +000026297 # Open64 (passes for GCC but uses different OpenMP implementation)
26298 if test "x$GOMP_LIBS" = x ; then
26299 if $CC --version 2>&1 | grep Open64 > /dev/null ; then
26300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5
26301$as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; }
26302if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then :
26303 $as_echo_n "(cached) " >&6
26304else
26305 ac_check_lib_save_LIBS=$LIBS
26306LIBS="-lopenmp $LIBS"
26307cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26308/* end confdefs.h. */
26309
26310/* Override any GCC internal prototype to avoid an error.
26311 Use char because int might match the return type of a GCC
26312 builtin and then its argument prototype would still apply. */
26313#ifdef __cplusplus
26314extern "C"
26315#endif
26316char omp_get_num_procs ();
26317int
26318main ()
26319{
26320return omp_get_num_procs ();
26321 ;
26322 return 0;
26323}
26324_ACEOF
26325if ac_fn_c_try_link "$LINENO"; then :
26326 ac_cv_lib_openmp_omp_get_num_procs=yes
26327else
26328 ac_cv_lib_openmp_omp_get_num_procs=no
26329fi
26330rm -f core conftest.err conftest.$ac_objext \
26331 conftest$ac_exeext conftest.$ac_ext
26332LIBS=$ac_check_lib_save_LIBS
26333fi
26334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5
26335$as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; }
26336if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then :
26337 GOMP_LIBS="-lopenmp"
26338fi
26339
26340 fi
26341 fi
26342 # GCC
26343 if test "x$GOMP_LIBS" = x ; then
26344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026345$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026346if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026347 $as_echo_n "(cached) " >&6
26348else
26349 ac_check_lib_save_LIBS=$LIBS
26350LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026351cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026352/* end confdefs.h. */
26353
26354/* Override any GCC internal prototype to avoid an error.
26355 Use char because int might match the return type of a GCC
26356 builtin and then its argument prototype would still apply. */
26357#ifdef __cplusplus
26358extern "C"
26359#endif
26360char GOMP_parallel_start ();
26361int
26362main ()
26363{
26364return GOMP_parallel_start ();
26365 ;
26366 return 0;
26367}
26368_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026369if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026370 ac_cv_lib_gomp_GOMP_parallel_start=yes
26371else
cristy8b350f62009-11-15 23:12:43 +000026372 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000026373fi
cristy8b350f62009-11-15 23:12:43 +000026374rm -f core conftest.err conftest.$ac_objext \
26375 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026376LIBS=$ac_check_lib_save_LIBS
26377fi
cristy8b350f62009-11-15 23:12:43 +000026378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000026379$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000026380if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026381 GOMP_LIBS="-lgomp"
26382fi
cristy18307f12011-12-30 01:20:16 +000026383
26384 fi
cristy3ed852e2009-09-05 21:47:34 +000026385 else
cristy18307f12011-12-30 01:20:16 +000026386 # Sun CC
26387 if test "x$GOMP_LIBS" = x ; then
26388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026389$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026390if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026391 $as_echo_n "(cached) " >&6
26392else
26393 ac_check_lib_save_LIBS=$LIBS
26394LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026395cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026396/* end confdefs.h. */
26397
26398/* Override any GCC internal prototype to avoid an error.
26399 Use char because int might match the return type of a GCC
26400 builtin and then its argument prototype would still apply. */
26401#ifdef __cplusplus
26402extern "C"
26403#endif
26404char sunw_mp_register_warn ();
26405int
26406main ()
26407{
26408return sunw_mp_register_warn ();
26409 ;
26410 return 0;
26411}
26412_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026413if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026414 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
26415else
cristy8b350f62009-11-15 23:12:43 +000026416 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000026417fi
cristy8b350f62009-11-15 23:12:43 +000026418rm -f core conftest.err conftest.$ac_objext \
26419 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026420LIBS=$ac_check_lib_save_LIBS
26421fi
cristy8b350f62009-11-15 23:12:43 +000026422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000026423$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000026424if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026425 GOMP_LIBS="-lmtsk"
26426fi
cristy18307f12011-12-30 01:20:16 +000026427
26428 fi
26429 # AIX xlc
26430 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026432$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026433if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026434 $as_echo_n "(cached) " >&6
26435else
26436 ac_check_lib_save_LIBS=$LIBS
26437LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026438cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026439/* end confdefs.h. */
26440
26441/* Override any GCC internal prototype to avoid an error.
26442 Use char because int might match the return type of a GCC
26443 builtin and then its argument prototype would still apply. */
26444#ifdef __cplusplus
26445extern "C"
26446#endif
26447char _xlsmpFlush ();
26448int
26449main ()
26450{
26451return _xlsmpFlush ();
26452 ;
26453 return 0;
26454}
26455_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026456if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026457 ac_cv_lib_xlsmp__xlsmpFlush=yes
26458else
cristy8b350f62009-11-15 23:12:43 +000026459 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000026460fi
cristy8b350f62009-11-15 23:12:43 +000026461rm -f core conftest.err conftest.$ac_objext \
26462 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026463LIBS=$ac_check_lib_save_LIBS
26464fi
cristy8b350f62009-11-15 23:12:43 +000026465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000026466$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000026467if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026468 GOMP_LIBS="-lxlsmp"
26469fi
cristy18307f12011-12-30 01:20:16 +000026470
26471 fi
26472 # SGI IRIX 6.5 MIPSpro C/C++
26473 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026475$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026476if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026477 $as_echo_n "(cached) " >&6
26478else
26479 ac_check_lib_save_LIBS=$LIBS
26480LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026481cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026482/* end confdefs.h. */
26483
26484/* Override any GCC internal prototype to avoid an error.
26485 Use char because int might match the return type of a GCC
26486 builtin and then its argument prototype would still apply. */
26487#ifdef __cplusplus
26488extern "C"
26489#endif
26490char mp_destroy ();
26491int
26492main ()
26493{
26494return mp_destroy ();
26495 ;
26496 return 0;
26497}
26498_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026499if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026500 ac_cv_lib_mp_mp_destroy=yes
26501else
cristy8b350f62009-11-15 23:12:43 +000026502 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000026503fi
cristy8b350f62009-11-15 23:12:43 +000026504rm -f core conftest.err conftest.$ac_objext \
26505 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026506LIBS=$ac_check_lib_save_LIBS
26507fi
cristy8b350f62009-11-15 23:12:43 +000026508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000026509$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000026510if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026511 GOMP_LIBS="-lmp"
26512fi
cristy18307f12011-12-30 01:20:16 +000026513
26514 fi
cristy3ed852e2009-09-05 21:47:34 +000026515 fi
26516 LIBS="$GOMP_LIBS $LIBS"
26517fi
26518
26519
cristy3ed852e2009-09-05 21:47:34 +000026520
26521
26522#
26523# Check for umem.
26524#
26525have_umem='no'
26526UMEM_LIBS=''
26527if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000026529$as_echo_n "checking for UMEM support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000026530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26531$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026532 failed=0
26533 passed=0
cristy8b350f62009-11-15 23:12:43 +000026534 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026535if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026536 passed=`expr $passed + 1`
26537else
26538 failed=`expr $failed + 1`
26539fi
26540
26541
cristy8b350f62009-11-15 23:12:43 +000026542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026543$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026544if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026545 $as_echo_n "(cached) " >&6
26546else
26547 ac_check_lib_save_LIBS=$LIBS
26548LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026549cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026550/* end confdefs.h. */
26551
26552/* Override any GCC internal prototype to avoid an error.
26553 Use char because int might match the return type of a GCC
26554 builtin and then its argument prototype would still apply. */
26555#ifdef __cplusplus
26556extern "C"
26557#endif
26558char umem_alloc ();
26559int
26560main ()
26561{
26562return umem_alloc ();
26563 ;
26564 return 0;
26565}
26566_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026567if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026568 ac_cv_lib_umem_umem_alloc=yes
26569else
cristy8b350f62009-11-15 23:12:43 +000026570 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000026571fi
cristy8b350f62009-11-15 23:12:43 +000026572rm -f core conftest.err conftest.$ac_objext \
26573 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026574LIBS=$ac_check_lib_save_LIBS
26575fi
cristy8b350f62009-11-15 23:12:43 +000026576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026577$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026578if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026579 passed=`expr $passed + 1`
26580else
26581 failed=`expr $failed + 1`
26582fi
26583
cristy8b350f62009-11-15 23:12:43 +000026584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026585$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026586if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026587 $as_echo_n "(cached) " >&6
26588else
26589 ac_check_lib_save_LIBS=$LIBS
26590LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026591cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026592/* end confdefs.h. */
26593
26594/* Override any GCC internal prototype to avoid an error.
26595 Use char because int might match the return type of a GCC
26596 builtin and then its argument prototype would still apply. */
26597#ifdef __cplusplus
26598extern "C"
26599#endif
26600char umem_free ();
26601int
26602main ()
26603{
26604return umem_free ();
26605 ;
26606 return 0;
26607}
26608_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026609if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026610 ac_cv_lib_umem_umem_free=yes
26611else
cristy8b350f62009-11-15 23:12:43 +000026612 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000026613fi
cristy8b350f62009-11-15 23:12:43 +000026614rm -f core conftest.err conftest.$ac_objext \
26615 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026616LIBS=$ac_check_lib_save_LIBS
26617fi
cristy8b350f62009-11-15 23:12:43 +000026618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000026619$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000026620if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026621 passed=`expr $passed + 1`
26622else
26623 failed=`expr $failed + 1`
26624fi
26625
cristy8b350f62009-11-15 23:12:43 +000026626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026627$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
26628 if test $passed -gt 0; then
26629 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000026630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26631$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026632 have_umem='no (failed tests)'
26633 else
26634 UMEM_LIBS='-lumem'
26635 LIBS="$UMEM_LIBS $LIBS"
26636
cristy8b350f62009-11-15 23:12:43 +000026637$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026638
cristyad38abe2012-12-23 23:03:21 +000026639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26640$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026641 have_umem='yes'
26642 fi
26643 else
cristyad38abe2012-12-23 23:03:21 +000026644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26645$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026646 fi
26647fi
cristy73bd4a52010-10-05 11:24:23 +000026648 if test "$have_umem" = 'yes'; then
26649 HasUMEM_TRUE=
26650 HasUMEM_FALSE='#'
26651else
26652 HasUMEM_TRUE='#'
26653 HasUMEM_FALSE=
26654fi
26655
cristy3ed852e2009-09-05 21:47:34 +000026656
26657
26658#
26659# Add support for ccmalloc memory debugging library if requested
26660#
26661have_ccmalloc='no'
26662CCMALLOC_LIBS=''
26663if test "$enable_ccmalloc" = 'yes'; then
26664 # Extract the first word of "ccmalloc", so it can be a program name with args.
26665set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000026666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000026667$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026668if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026669 $as_echo_n "(cached) " >&6
26670else
26671 case $CCMALLOCDelegate in
26672 [\\/]* | ?:[\\/]*)
26673 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
26674 ;;
26675 *)
26676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26677for as_dir in $PATH
26678do
26679 IFS=$as_save_IFS
26680 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026681 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000026682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000026683 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000026684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026685 break 2
26686 fi
26687done
cristy8b350f62009-11-15 23:12:43 +000026688 done
cristy3ed852e2009-09-05 21:47:34 +000026689IFS=$as_save_IFS
26690
26691 ;;
26692esac
26693fi
26694CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
26695if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000026696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026697$as_echo "$CCMALLOCDelegate" >&6; }
26698else
cristy8b350f62009-11-15 23:12:43 +000026699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026700$as_echo "no" >&6; }
26701fi
26702
26703
26704 if test -n "$CCMALLOCDelegate"; then
26705 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
26706 OLIBS="$LIBS"
26707 # Assume that gcc is used with ccmalloc.
26708 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000026709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026710$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026711if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026712 $as_echo_n "(cached) " >&6
26713else
26714 ac_check_lib_save_LIBS=$LIBS
26715LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026716cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026717/* end confdefs.h. */
26718
26719/* Override any GCC internal prototype to avoid an error.
26720 Use char because int might match the return type of a GCC
26721 builtin and then its argument prototype would still apply. */
26722#ifdef __cplusplus
26723extern "C"
26724#endif
26725char ccmalloc_malloc ();
26726int
26727main ()
26728{
26729return ccmalloc_malloc ();
26730 ;
26731 return 0;
26732}
26733_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026734if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026735 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
26736else
cristy8b350f62009-11-15 23:12:43 +000026737 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000026738fi
cristy8b350f62009-11-15 23:12:43 +000026739rm -f core conftest.err conftest.$ac_objext \
26740 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026741LIBS=$ac_check_lib_save_LIBS
26742fi
cristy8b350f62009-11-15 23:12:43 +000026743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026744$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026745if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026746 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
26747fi
26748
26749 if test -n "$CCMALLOC_LIBS"; then
26750 LIBS="$OLIBS"
26751 LIBS="$LIBS $CCMALLOC_LIBS"
26752 have_ccmalloc='yes'
26753 else
26754 LIBS="$OLIBS"
26755 fi
26756 fi
26757fi
26758
26759#
cristy944e51f2013-04-16 18:45:02 +000026760# Add support for 'huge pages' if requested
26761#
26762if test "x$enable_hugepages" != "xno"; then :
26763
26764
26765$as_echo "#define HAVE_HUGEPAGES 1" >>confdefs.h
26766
26767
26768fi
26769
26770#
cristy3ed852e2009-09-05 21:47:34 +000026771# Add support for efence memory debugging library if requested
26772#
26773if test "$enable_efence" = 'yes'; then
26774 EFENCE_LIBS='-lefence'
26775 LIBS="$EFENCE_LIBS $LIBS"
26776fi
26777
cristy3ed852e2009-09-05 21:47:34 +000026778
26779#
26780# Check for BZLIB
26781#
26782
26783
26784# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000026785if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026786 withval=$with_bzlib; with_bzlib=$withval
26787else
26788 with_bzlib='yes'
26789fi
26790
26791
26792if test "$with_bzlib" != 'yes'; then
26793 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
26794fi
26795
26796have_bzlib='no'
26797if test "$with_bzlib" != 'no'; then
26798 BZLIB_LIBS=''
cristyad38abe2012-12-23 23:03:21 +000026799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26800$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000026802$as_echo_n "checking for BZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000026803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26804$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026805 failed=0
26806 passed=0
26807 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000026808 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026809if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026810 passed=`expr $passed + 1`
26811else
26812 failed=`expr $failed + 1`
26813fi
26814
26815
cristy8b350f62009-11-15 23:12:43 +000026816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026817$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026818if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026819 $as_echo_n "(cached) " >&6
26820else
26821 ac_check_lib_save_LIBS=$LIBS
26822LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026823cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026824/* end confdefs.h. */
26825
26826/* Override any GCC internal prototype to avoid an error.
26827 Use char because int might match the return type of a GCC
26828 builtin and then its argument prototype would still apply. */
26829#ifdef __cplusplus
26830extern "C"
26831#endif
26832char BZ2_bzDecompress ();
26833int
26834main ()
26835{
26836return BZ2_bzDecompress ();
26837 ;
26838 return 0;
26839}
26840_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026841if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026842 ac_cv_lib_bz2_BZ2_bzDecompress=yes
26843else
cristy8b350f62009-11-15 23:12:43 +000026844 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000026845fi
cristy8b350f62009-11-15 23:12:43 +000026846rm -f core conftest.err conftest.$ac_objext \
26847 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026848LIBS=$ac_check_lib_save_LIBS
26849fi
cristy8b350f62009-11-15 23:12:43 +000026850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026851$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026852if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026853 found_libbz=`expr $found_libbz + 1`
26854fi
26855
26856 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026858$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026859if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026860 $as_echo_n "(cached) " >&6
26861else
26862 ac_check_lib_save_LIBS=$LIBS
26863LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026864cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026865/* end confdefs.h. */
26866
26867/* Override any GCC internal prototype to avoid an error.
26868 Use char because int might match the return type of a GCC
26869 builtin and then its argument prototype would still apply. */
26870#ifdef __cplusplus
26871extern "C"
26872#endif
26873char _imp__BZ2_decompress ();
26874int
26875main ()
26876{
26877return _imp__BZ2_decompress ();
26878 ;
26879 return 0;
26880}
26881_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026882if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026883 ac_cv_lib_bz2__imp__BZ2_decompress=yes
26884else
cristy8b350f62009-11-15 23:12:43 +000026885 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000026886fi
cristy8b350f62009-11-15 23:12:43 +000026887rm -f core conftest.err conftest.$ac_objext \
26888 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026889LIBS=$ac_check_lib_save_LIBS
26890fi
cristy8b350f62009-11-15 23:12:43 +000026891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026892$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026893if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026894 found_libbz=`expr $found_libbz + 1`
26895fi
26896
26897 fi
26898 if test $found_libbz -gt 0; then
26899 passed=`expr $passed + 1`
26900 else
26901 failed=`expr $failed + 1`
26902 fi
cristy8b350f62009-11-15 23:12:43 +000026903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026904$as_echo_n "checking if BZLIB package is complete... " >&6; }
26905 if test $passed -gt 0; then
26906 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000026907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26908$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026909 have_bzlib='no (failed tests)'
26910 else
26911 BZLIB_LIBS='-lbz2'
26912 LIBS="$BZLIB_LIBS $LIBS"
26913
cristy8b350f62009-11-15 23:12:43 +000026914$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026915
cristyad38abe2012-12-23 23:03:21 +000026916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26917$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026918 have_bzlib='yes'
26919 fi
26920 else
cristyad38abe2012-12-23 23:03:21 +000026921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26922$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026923 fi
26924fi
cristy73bd4a52010-10-05 11:24:23 +000026925 if test "$have_bzlib" = 'yes'; then
26926 BZLIB_DELEGATE_TRUE=
26927 BZLIB_DELEGATE_FALSE='#'
26928else
26929 BZLIB_DELEGATE_TRUE='#'
26930 BZLIB_DELEGATE_FALSE=
26931fi
26932
cristy3ed852e2009-09-05 21:47:34 +000026933
26934
26935#
26936# Find the X11 include and library directories.
26937#
26938IPC_LIBS=''
26939X11_LIBS=''
26940XEXT_LIBS=''
26941XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000026942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000026943$as_echo_n "checking for X... " >&6; }
26944
26945
26946# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000026947if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000026948 withval=$with_x;
26949fi
26950
26951# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
26952if test "x$with_x" = xno; then
26953 # The user explicitly disabled X.
26954 have_x=disabled
26955else
26956 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000026957 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000026958 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000026959 $as_echo_n "(cached) " >&6
26960else
26961 # One or both of the vars are not set, and there is no cached value.
26962ac_x_includes=no ac_x_libraries=no
26963rm -f -r conftest.dir
26964if mkdir conftest.dir; then
26965 cd conftest.dir
26966 cat >Imakefile <<'_ACEOF'
26967incroot:
26968 @echo incroot='${INCROOT}'
26969usrlibdir:
26970 @echo usrlibdir='${USRLIBDIR}'
26971libdir:
26972 @echo libdir='${LIBDIR}'
26973_ACEOF
26974 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000026975 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000026976 for ac_var in incroot usrlibdir libdir; do
26977 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
26978 done
26979 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
26980 for ac_extension in a so sl dylib la dll; do
26981 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
26982 test -f "$ac_im_libdir/libX11.$ac_extension"; then
26983 ac_im_usrlibdir=$ac_im_libdir; break
26984 fi
26985 done
26986 # Screen out bogus values from the imake configuration. They are
26987 # bogus both because they are the default anyway, and because
26988 # using them would break gcc on systems where it needs fixed includes.
26989 case $ac_im_incroot in
26990 /usr/include) ac_x_includes= ;;
26991 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
26992 esac
26993 case $ac_im_usrlibdir in
26994 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
26995 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
26996 esac
26997 fi
26998 cd ..
26999 rm -f -r conftest.dir
27000fi
27001
27002# Standard set of common directories for X headers.
27003# Check X11 before X11Rn because it is often a symlink to the current release.
27004ac_x_header_dirs='
27005/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000027006/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027007/usr/X11R6/include
27008/usr/X11R5/include
27009/usr/X11R4/include
27010
27011/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000027012/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027013/usr/include/X11R6
27014/usr/include/X11R5
27015/usr/include/X11R4
27016
27017/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000027018/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027019/usr/local/X11R6/include
27020/usr/local/X11R5/include
27021/usr/local/X11R4/include
27022
27023/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000027024/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027025/usr/local/include/X11R6
27026/usr/local/include/X11R5
27027/usr/local/include/X11R4
27028
27029/usr/X386/include
27030/usr/x386/include
27031/usr/XFree86/include/X11
27032
27033/usr/include
27034/usr/local/include
27035/usr/unsupported/include
27036/usr/athena/include
27037/usr/local/x11r5/include
27038/usr/lpp/Xamples/include
27039
27040/usr/openwin/include
27041/usr/openwin/share/include'
27042
27043if test "$ac_x_includes" = no; then
27044 # Guess where to find include files, by looking for Xlib.h.
27045 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000027046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027047/* end confdefs.h. */
27048#include <X11/Xlib.h>
27049_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027050if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027051 # We can compile using X headers with no special include directory.
27052ac_x_includes=
27053else
cristyc7083c12009-10-14 03:16:55 +000027054 for ac_dir in $ac_x_header_dirs; do
27055 if test -r "$ac_dir/X11/Xlib.h"; then
27056 ac_x_includes=$ac_dir
27057 break
27058 fi
27059done
27060fi
cristyda16f162011-02-19 23:52:17 +000027061rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027062fi # $ac_x_includes = no
27063
27064if test "$ac_x_libraries" = no; then
27065 # Check for the libraries.
27066 # See if we find them without any special options.
27067 # Don't add to $LIBS permanently.
27068 ac_save_LIBS=$LIBS
27069 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027071/* end confdefs.h. */
27072#include <X11/Xlib.h>
27073int
27074main ()
27075{
27076XrmInitialize ()
27077 ;
27078 return 0;
27079}
27080_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027081if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027082 LIBS=$ac_save_LIBS
27083# We can link X programs with no special library path.
27084ac_x_libraries=
27085else
cristy8b350f62009-11-15 23:12:43 +000027086 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000027087for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
27088do
27089 # Don't even attempt the hair of trying to link an X program!
27090 for ac_extension in a so sl dylib la dll; do
27091 if test -r "$ac_dir/libX11.$ac_extension"; then
27092 ac_x_libraries=$ac_dir
27093 break 2
27094 fi
27095 done
27096done
27097fi
cristy8b350f62009-11-15 23:12:43 +000027098rm -f core conftest.err conftest.$ac_objext \
27099 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027100fi # $ac_x_libraries = no
27101
27102case $ac_x_includes,$ac_x_libraries in #(
27103 no,* | *,no | *\'*)
27104 # Didn't find X, or a directory has "'" in its name.
27105 ac_cv_have_x="have_x=no";; #(
27106 *)
27107 # Record where we found X for the cache.
27108 ac_cv_have_x="have_x=yes\
27109 ac_x_includes='$ac_x_includes'\
27110 ac_x_libraries='$ac_x_libraries'"
27111esac
27112fi
27113;; #(
27114 *) have_x=yes;;
27115 esac
27116 eval "$ac_cv_have_x"
27117fi # $with_x != no
27118
27119if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000027120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000027121$as_echo "$have_x" >&6; }
27122 no_x=yes
27123else
27124 # If each of the values was on the command line, it overrides each guess.
27125 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
27126 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
27127 # Update the cache value to reflect the command line values.
27128 ac_cv_have_x="have_x=yes\
27129 ac_x_includes='$x_includes'\
27130 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000027131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000027132$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
27133fi
27134
cristy3ed852e2009-09-05 21:47:34 +000027135if test "$no_x" = yes; then
27136 # Not all programs may use this symbol, but it does not hurt to define it.
27137
cristy8b350f62009-11-15 23:12:43 +000027138$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027139
27140 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
27141else
27142 if test -n "$x_includes"; then
27143 X_CFLAGS="$X_CFLAGS -I$x_includes"
27144 fi
27145
27146 # It would also be nice to do this for all -L options, not just this one.
27147 if test -n "$x_libraries"; then
27148 X_LIBS="$X_LIBS -L$x_libraries"
27149 # For Solaris; some versions of Sun CC require a space after -R and
27150 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000027151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000027152$as_echo_n "checking whether -R must be followed by a space... " >&6; }
27153 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
27154 ac_xsave_c_werror_flag=$ac_c_werror_flag
27155 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000027156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027157/* end confdefs.h. */
27158
27159int
27160main ()
27161{
27162
27163 ;
27164 return 0;
27165}
27166_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027167if ac_fn_c_try_link "$LINENO"; then :
27168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027169$as_echo "no" >&6; }
27170 X_LIBS="$X_LIBS -R$x_libraries"
27171else
cristy8b350f62009-11-15 23:12:43 +000027172 LIBS="$ac_xsave_LIBS -R $x_libraries"
27173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027174/* end confdefs.h. */
27175
27176int
27177main ()
27178{
27179
27180 ;
27181 return 0;
27182}
27183_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027184if ac_fn_c_try_link "$LINENO"; then :
27185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027186$as_echo "yes" >&6; }
27187 X_LIBS="$X_LIBS -R $x_libraries"
27188else
cristy8b350f62009-11-15 23:12:43 +000027189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000027190$as_echo "neither works" >&6; }
27191fi
cristy8b350f62009-11-15 23:12:43 +000027192rm -f core conftest.err conftest.$ac_objext \
27193 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027194fi
cristy8b350f62009-11-15 23:12:43 +000027195rm -f core conftest.err conftest.$ac_objext \
27196 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027197 ac_c_werror_flag=$ac_xsave_c_werror_flag
27198 LIBS=$ac_xsave_LIBS
27199 fi
27200
27201 # Check for system-dependent libraries X programs must link with.
27202 # Do this before checking for the system-independent R6 libraries
27203 # (-lICE), since we may need -lsocket or whatever for X linking.
27204
27205 if test "$ISC" = yes; then
27206 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
27207 else
27208 # Martyn Johnson says this is needed for Ultrix, if the X
27209 # libraries were built with DECnet support. And Karl Berry says
27210 # the Alpha needs dnet_stub (dnet does not exist).
27211 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000027212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027213/* end confdefs.h. */
27214
27215/* Override any GCC internal prototype to avoid an error.
27216 Use char because int might match the return type of a GCC
27217 builtin and then its argument prototype would still apply. */
27218#ifdef __cplusplus
27219extern "C"
27220#endif
27221char XOpenDisplay ();
27222int
27223main ()
27224{
27225return XOpenDisplay ();
27226 ;
27227 return 0;
27228}
27229_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027230if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027231
cristy8b350f62009-11-15 23:12:43 +000027232else
27233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000027234$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027235if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027236 $as_echo_n "(cached) " >&6
27237else
27238 ac_check_lib_save_LIBS=$LIBS
27239LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027240cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027241/* end confdefs.h. */
27242
27243/* Override any GCC internal prototype to avoid an error.
27244 Use char because int might match the return type of a GCC
27245 builtin and then its argument prototype would still apply. */
27246#ifdef __cplusplus
27247extern "C"
27248#endif
27249char dnet_ntoa ();
27250int
27251main ()
27252{
27253return dnet_ntoa ();
27254 ;
27255 return 0;
27256}
27257_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027258if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027259 ac_cv_lib_dnet_dnet_ntoa=yes
27260else
cristy8b350f62009-11-15 23:12:43 +000027261 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027262fi
cristy8b350f62009-11-15 23:12:43 +000027263rm -f core conftest.err conftest.$ac_objext \
27264 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027265LIBS=$ac_check_lib_save_LIBS
27266fi
cristy8b350f62009-11-15 23:12:43 +000027267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027268$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027269if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027270 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27271fi
27272
27273 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000027274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000027275$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027276if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027277 $as_echo_n "(cached) " >&6
27278else
27279 ac_check_lib_save_LIBS=$LIBS
27280LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027281cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027282/* end confdefs.h. */
27283
27284/* Override any GCC internal prototype to avoid an error.
27285 Use char because int might match the return type of a GCC
27286 builtin and then its argument prototype would still apply. */
27287#ifdef __cplusplus
27288extern "C"
27289#endif
27290char dnet_ntoa ();
27291int
27292main ()
27293{
27294return dnet_ntoa ();
27295 ;
27296 return 0;
27297}
27298_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027299if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027300 ac_cv_lib_dnet_stub_dnet_ntoa=yes
27301else
cristy8b350f62009-11-15 23:12:43 +000027302 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027303fi
cristy8b350f62009-11-15 23:12:43 +000027304rm -f core conftest.err conftest.$ac_objext \
27305 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027306LIBS=$ac_check_lib_save_LIBS
27307fi
cristy8b350f62009-11-15 23:12:43 +000027308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027309$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027310if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027311 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27312fi
27313
27314 fi
27315fi
cristy8b350f62009-11-15 23:12:43 +000027316rm -f core conftest.err conftest.$ac_objext \
27317 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027318 LIBS="$ac_xsave_LIBS"
27319
27320 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27321 # to get the SysV transport functions.
27322 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27323 # needs -lnsl.
27324 # The nsl library prevents programs from opening the X display
27325 # on Irix 5.2, according to T.E. Dickey.
27326 # The functions gethostbyname, getservbyname, and inet_addr are
27327 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000027328 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000027329if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027330
cristy3ed852e2009-09-05 21:47:34 +000027331fi
27332
cristy3ed852e2009-09-05 21:47:34 +000027333 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027335$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027336if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027337 $as_echo_n "(cached) " >&6
27338else
27339 ac_check_lib_save_LIBS=$LIBS
27340LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027341cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027342/* end confdefs.h. */
27343
27344/* Override any GCC internal prototype to avoid an error.
27345 Use char because int might match the return type of a GCC
27346 builtin and then its argument prototype would still apply. */
27347#ifdef __cplusplus
27348extern "C"
27349#endif
27350char gethostbyname ();
27351int
27352main ()
27353{
27354return gethostbyname ();
27355 ;
27356 return 0;
27357}
27358_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027359if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027360 ac_cv_lib_nsl_gethostbyname=yes
27361else
cristy8b350f62009-11-15 23:12:43 +000027362 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027363fi
cristy8b350f62009-11-15 23:12:43 +000027364rm -f core conftest.err conftest.$ac_objext \
27365 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027366LIBS=$ac_check_lib_save_LIBS
27367fi
cristy8b350f62009-11-15 23:12:43 +000027368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027369$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027370if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027371 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27372fi
27373
27374 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000027376$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027377if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027378 $as_echo_n "(cached) " >&6
27379else
27380 ac_check_lib_save_LIBS=$LIBS
27381LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027382cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027383/* end confdefs.h. */
27384
27385/* Override any GCC internal prototype to avoid an error.
27386 Use char because int might match the return type of a GCC
27387 builtin and then its argument prototype would still apply. */
27388#ifdef __cplusplus
27389extern "C"
27390#endif
27391char gethostbyname ();
27392int
27393main ()
27394{
27395return gethostbyname ();
27396 ;
27397 return 0;
27398}
27399_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027400if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027401 ac_cv_lib_bsd_gethostbyname=yes
27402else
cristy8b350f62009-11-15 23:12:43 +000027403 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027404fi
cristy8b350f62009-11-15 23:12:43 +000027405rm -f core conftest.err conftest.$ac_objext \
27406 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027407LIBS=$ac_check_lib_save_LIBS
27408fi
cristy8b350f62009-11-15 23:12:43 +000027409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027410$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027411if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027412 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27413fi
27414
27415 fi
27416 fi
27417
27418 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27419 # socket/setsockopt and other routines are undefined under SCO ODT
27420 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27421 # on later versions), says Simon Leinen: it contains gethostby*
27422 # variants that don't use the name server (or something). -lsocket
27423 # must be given before -lnsl if both are needed. We assume that
27424 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000027425 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000027426if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027427
cristy3ed852e2009-09-05 21:47:34 +000027428fi
27429
cristy3ed852e2009-09-05 21:47:34 +000027430 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000027431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000027432$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027433if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027434 $as_echo_n "(cached) " >&6
27435else
27436 ac_check_lib_save_LIBS=$LIBS
27437LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027438cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027439/* end confdefs.h. */
27440
27441/* Override any GCC internal prototype to avoid an error.
27442 Use char because int might match the return type of a GCC
27443 builtin and then its argument prototype would still apply. */
27444#ifdef __cplusplus
27445extern "C"
27446#endif
27447char connect ();
27448int
27449main ()
27450{
27451return connect ();
27452 ;
27453 return 0;
27454}
27455_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027456if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027457 ac_cv_lib_socket_connect=yes
27458else
cristy8b350f62009-11-15 23:12:43 +000027459 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000027460fi
cristy8b350f62009-11-15 23:12:43 +000027461rm -f core conftest.err conftest.$ac_objext \
27462 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027463LIBS=$ac_check_lib_save_LIBS
27464fi
cristy8b350f62009-11-15 23:12:43 +000027465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000027466$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000027467if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027468 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27469fi
27470
27471 fi
27472
27473 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000027474 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000027475if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027476
cristy3ed852e2009-09-05 21:47:34 +000027477fi
27478
cristy3ed852e2009-09-05 21:47:34 +000027479 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000027480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000027481$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027482if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027483 $as_echo_n "(cached) " >&6
27484else
27485 ac_check_lib_save_LIBS=$LIBS
27486LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027487cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027488/* end confdefs.h. */
27489
27490/* Override any GCC internal prototype to avoid an error.
27491 Use char because int might match the return type of a GCC
27492 builtin and then its argument prototype would still apply. */
27493#ifdef __cplusplus
27494extern "C"
27495#endif
27496char remove ();
27497int
27498main ()
27499{
27500return remove ();
27501 ;
27502 return 0;
27503}
27504_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027505if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027506 ac_cv_lib_posix_remove=yes
27507else
cristy8b350f62009-11-15 23:12:43 +000027508 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000027509fi
cristy8b350f62009-11-15 23:12:43 +000027510rm -f core conftest.err conftest.$ac_objext \
27511 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027512LIBS=$ac_check_lib_save_LIBS
27513fi
cristy8b350f62009-11-15 23:12:43 +000027514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000027515$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000027516if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027517 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27518fi
27519
27520 fi
27521
27522 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000027523 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000027524if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027525
cristy3ed852e2009-09-05 21:47:34 +000027526fi
27527
cristy3ed852e2009-09-05 21:47:34 +000027528 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000027529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027530$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027531if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027532 $as_echo_n "(cached) " >&6
27533else
27534 ac_check_lib_save_LIBS=$LIBS
27535LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027536cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027537/* end confdefs.h. */
27538
27539/* Override any GCC internal prototype to avoid an error.
27540 Use char because int might match the return type of a GCC
27541 builtin and then its argument prototype would still apply. */
27542#ifdef __cplusplus
27543extern "C"
27544#endif
27545char shmat ();
27546int
27547main ()
27548{
27549return shmat ();
27550 ;
27551 return 0;
27552}
27553_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027554if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027555 ac_cv_lib_ipc_shmat=yes
27556else
cristy8b350f62009-11-15 23:12:43 +000027557 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000027558fi
cristy8b350f62009-11-15 23:12:43 +000027559rm -f core conftest.err conftest.$ac_objext \
27560 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027561LIBS=$ac_check_lib_save_LIBS
27562fi
cristy8b350f62009-11-15 23:12:43 +000027563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000027564$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000027565if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027566 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27567fi
27568
27569 fi
27570 fi
27571
27572 # Check for libraries that X11R6 Xt/Xaw programs need.
27573 ac_save_LDFLAGS=$LDFLAGS
27574 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27575 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27576 # check for ICE first), but we must link in the order -lSM -lICE or
27577 # we get undefined symbols. So assume we have SM if we have ICE.
27578 # These have to be linked with before -lX11, unlike the other
27579 # libraries we check for below, so use a different variable.
27580 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000027581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000027582$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027583if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027584 $as_echo_n "(cached) " >&6
27585else
27586 ac_check_lib_save_LIBS=$LIBS
27587LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027588cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027589/* end confdefs.h. */
27590
27591/* Override any GCC internal prototype to avoid an error.
27592 Use char because int might match the return type of a GCC
27593 builtin and then its argument prototype would still apply. */
27594#ifdef __cplusplus
27595extern "C"
27596#endif
27597char IceConnectionNumber ();
27598int
27599main ()
27600{
27601return IceConnectionNumber ();
27602 ;
27603 return 0;
27604}
27605_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027606if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027607 ac_cv_lib_ICE_IceConnectionNumber=yes
27608else
cristy8b350f62009-11-15 23:12:43 +000027609 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000027610fi
cristy8b350f62009-11-15 23:12:43 +000027611rm -f core conftest.err conftest.$ac_objext \
27612 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027613LIBS=$ac_check_lib_save_LIBS
27614fi
cristy8b350f62009-11-15 23:12:43 +000027615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000027616$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000027617if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027618 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27619fi
27620
27621 LDFLAGS=$ac_save_LDFLAGS
27622
27623fi
27624
27625if test "$no_x" != 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000027626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27627$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000027629$as_echo_n "checking for X11... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27631$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027632 LDFLAGS="$LDFLAGS $X_LIBS"
27633 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
27634 LIBS="$X11_LIBS $LIBS"
27635 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
27636
27637
cristy8b350f62009-11-15 23:12:43 +000027638$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027639
27640 #
27641 # Check for X11 shared memory extension
27642 #
27643 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000027644 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000027645if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027646 have_shmctl='yes'
27647fi
27648
27649 if test "$have_shmctl" != 'yes'; then
27650 PERSIST_LIBS=$LIBS
27651 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000027652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027653/* end confdefs.h. */
27654
27655/* Override any GCC internal prototype to avoid an error.
27656 Use char because int might match the return type of a GCC
27657 builtin and then its argument prototype would still apply. */
27658#ifdef __cplusplus
27659extern "C"
27660#endif
27661char shmctl ();
27662int
27663main ()
27664{
27665return shmctl ();
27666 ;
27667 return 0;
27668}
27669_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027670if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027671 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000027672fi
cristy8b350f62009-11-15 23:12:43 +000027673rm -f core conftest.err conftest.$ac_objext \
27674 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027675 LIBS=$PERSIST_LIBS
27676 fi
27677
27678 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027680$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027681if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027682 $as_echo_n "(cached) " >&6
27683else
27684 ac_check_lib_save_LIBS=$LIBS
27685LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027686cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027687/* end confdefs.h. */
27688
27689/* Override any GCC internal prototype to avoid an error.
27690 Use char because int might match the return type of a GCC
27691 builtin and then its argument prototype would still apply. */
27692#ifdef __cplusplus
27693extern "C"
27694#endif
27695char XShmAttach ();
27696int
27697main ()
27698{
27699return XShmAttach ();
27700 ;
27701 return 0;
27702}
27703_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027704if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027705 ac_cv_lib_Xext_XShmAttach=yes
27706else
cristy8b350f62009-11-15 23:12:43 +000027707 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000027708fi
cristy8b350f62009-11-15 23:12:43 +000027709rm -f core conftest.err conftest.$ac_objext \
27710 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027711LIBS=$ac_check_lib_save_LIBS
27712fi
cristy8b350f62009-11-15 23:12:43 +000027713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000027714$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000027715if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027716 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027717$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027718
27719fi
27720
27721 fi
27722
27723 #
27724 # Check for X11 shape extension
27725 #
cristy8b350f62009-11-15 23:12:43 +000027726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027727$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027728if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027729 $as_echo_n "(cached) " >&6
27730else
27731 ac_check_lib_save_LIBS=$LIBS
27732LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027733cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027734/* end confdefs.h. */
27735
27736/* Override any GCC internal prototype to avoid an error.
27737 Use char because int might match the return type of a GCC
27738 builtin and then its argument prototype would still apply. */
27739#ifdef __cplusplus
27740extern "C"
27741#endif
27742char XShapeCombineMask ();
27743int
27744main ()
27745{
27746return XShapeCombineMask ();
27747 ;
27748 return 0;
27749}
27750_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027751if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027752 ac_cv_lib_Xext_XShapeCombineMask=yes
27753else
cristy8b350f62009-11-15 23:12:43 +000027754 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000027755fi
cristy8b350f62009-11-15 23:12:43 +000027756rm -f core conftest.err conftest.$ac_objext \
27757 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027758LIBS=$ac_check_lib_save_LIBS
27759fi
cristy8b350f62009-11-15 23:12:43 +000027760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000027761$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000027762if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027763 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027764$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027765
27766fi
27767
cristy8b350f62009-11-15 23:12:43 +000027768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000027769$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027770if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027771 $as_echo_n "(cached) " >&6
27772else
27773 ac_check_lib_save_LIBS=$LIBS
27774LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027775cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027776/* end confdefs.h. */
27777
27778/* Override any GCC internal prototype to avoid an error.
27779 Use char because int might match the return type of a GCC
27780 builtin and then its argument prototype would still apply. */
27781#ifdef __cplusplus
27782extern "C"
27783#endif
27784char XtSetEventDispatcher ();
27785int
27786main ()
27787{
27788return XtSetEventDispatcher ();
27789 ;
27790 return 0;
27791}
27792_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027793if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027794 ac_cv_lib_Xt_XtSetEventDispatcher=yes
27795else
cristy8b350f62009-11-15 23:12:43 +000027796 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000027797fi
cristy8b350f62009-11-15 23:12:43 +000027798rm -f core conftest.err conftest.$ac_objext \
27799 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027800LIBS=$ac_check_lib_save_LIBS
27801fi
cristy8b350f62009-11-15 23:12:43 +000027802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000027803$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000027804if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027805 XT_LIBS='-lXt'
27806fi
27807
27808 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
27809fi
27810if test "$no_x" != 'yes'; then
27811 have_x='yes'
27812else
27813 have_x='no'
27814fi
cristy73bd4a52010-10-05 11:24:23 +000027815 if test "$have_x" = 'yes'; then
27816 X11_DELEGATE_TRUE=
27817 X11_DELEGATE_FALSE='#'
27818else
27819 X11_DELEGATE_TRUE='#'
27820 X11_DELEGATE_FALSE=
27821fi
27822
cristy3ed852e2009-09-05 21:47:34 +000027823
27824
27825
27826
27827#
27828# Check for ZLIB
27829#
27830
27831# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000027832if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027833 withval=$with_zlib; with_zlib=$withval
27834else
27835 with_zlib='yes'
27836fi
27837
27838
27839if test "$with_zlib" != 'yes'; then
27840 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
27841fi
27842
27843have_zlib='no'
27844ZLIB_LIBS=''
27845if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000027846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27847$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000027849$as_echo_n "checking for ZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27851$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027852 ZLIB_LIBS=''
27853 failed=0
27854 passed=0
cristy8b350f62009-11-15 23:12:43 +000027855 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027856if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027857 passed=`expr $passed + 1`
27858else
27859 failed=`expr $failed + 1`
27860fi
27861
27862
cristy8b350f62009-11-15 23:12:43 +000027863 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027864if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027865 passed=`expr $passed + 1`
27866else
27867 failed=`expr $failed + 1`
27868fi
27869
27870
cristy8b350f62009-11-15 23:12:43 +000027871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027872$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027873if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027874 $as_echo_n "(cached) " >&6
27875else
27876 ac_check_lib_save_LIBS=$LIBS
27877LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027878cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027879/* end confdefs.h. */
27880
27881/* Override any GCC internal prototype to avoid an error.
27882 Use char because int might match the return type of a GCC
27883 builtin and then its argument prototype would still apply. */
27884#ifdef __cplusplus
27885extern "C"
27886#endif
27887char compress ();
27888int
27889main ()
27890{
27891return compress ();
27892 ;
27893 return 0;
27894}
27895_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027896if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027897 ac_cv_lib_z_compress=yes
27898else
cristy8b350f62009-11-15 23:12:43 +000027899 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000027900fi
cristy8b350f62009-11-15 23:12:43 +000027901rm -f core conftest.err conftest.$ac_objext \
27902 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027903LIBS=$ac_check_lib_save_LIBS
27904fi
cristy8b350f62009-11-15 23:12:43 +000027905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027906$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027907if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027908 passed=`expr $passed + 1`
27909else
27910 failed=`expr $failed + 1`
27911fi
27912
cristy8b350f62009-11-15 23:12:43 +000027913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027914$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027915if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027916 $as_echo_n "(cached) " >&6
27917else
27918 ac_check_lib_save_LIBS=$LIBS
27919LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027920cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027921/* end confdefs.h. */
27922
27923/* Override any GCC internal prototype to avoid an error.
27924 Use char because int might match the return type of a GCC
27925 builtin and then its argument prototype would still apply. */
27926#ifdef __cplusplus
27927extern "C"
27928#endif
27929char uncompress ();
27930int
27931main ()
27932{
27933return uncompress ();
27934 ;
27935 return 0;
27936}
27937_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027938if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027939 ac_cv_lib_z_uncompress=yes
27940else
cristy8b350f62009-11-15 23:12:43 +000027941 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000027942fi
cristy8b350f62009-11-15 23:12:43 +000027943rm -f core conftest.err conftest.$ac_objext \
27944 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027945LIBS=$ac_check_lib_save_LIBS
27946fi
cristy8b350f62009-11-15 23:12:43 +000027947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027948$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027949if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027950 passed=`expr $passed + 1`
27951else
27952 failed=`expr $failed + 1`
27953fi
27954
cristy8b350f62009-11-15 23:12:43 +000027955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027956$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027957if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027958 $as_echo_n "(cached) " >&6
27959else
27960 ac_check_lib_save_LIBS=$LIBS
27961LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027962cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027963/* end confdefs.h. */
27964
27965/* Override any GCC internal prototype to avoid an error.
27966 Use char because int might match the return type of a GCC
27967 builtin and then its argument prototype would still apply. */
27968#ifdef __cplusplus
27969extern "C"
27970#endif
27971char deflate ();
27972int
27973main ()
27974{
27975return deflate ();
27976 ;
27977 return 0;
27978}
27979_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027980if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027981 ac_cv_lib_z_deflate=yes
27982else
cristy8b350f62009-11-15 23:12:43 +000027983 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000027984fi
cristy8b350f62009-11-15 23:12:43 +000027985rm -f core conftest.err conftest.$ac_objext \
27986 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027987LIBS=$ac_check_lib_save_LIBS
27988fi
cristy8b350f62009-11-15 23:12:43 +000027989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027990$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000027991if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027992 passed=`expr $passed + 1`
27993else
27994 failed=`expr $failed + 1`
27995fi
27996
cristy8b350f62009-11-15 23:12:43 +000027997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027998$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027999if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028000 $as_echo_n "(cached) " >&6
28001else
28002 ac_check_lib_save_LIBS=$LIBS
28003LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028004cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028005/* end confdefs.h. */
28006
28007/* Override any GCC internal prototype to avoid an error.
28008 Use char because int might match the return type of a GCC
28009 builtin and then its argument prototype would still apply. */
28010#ifdef __cplusplus
28011extern "C"
28012#endif
28013char inflate ();
28014int
28015main ()
28016{
28017return inflate ();
28018 ;
28019 return 0;
28020}
28021_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028022if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028023 ac_cv_lib_z_inflate=yes
28024else
cristy8b350f62009-11-15 23:12:43 +000028025 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000028026fi
cristy8b350f62009-11-15 23:12:43 +000028027rm -f core conftest.err conftest.$ac_objext \
28028 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028029LIBS=$ac_check_lib_save_LIBS
28030fi
cristy8b350f62009-11-15 23:12:43 +000028031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028032$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000028033if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028034 passed=`expr $passed + 1`
28035else
28036 failed=`expr $failed + 1`
28037fi
28038
cristy8b350f62009-11-15 23:12:43 +000028039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028040$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028041if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028042 $as_echo_n "(cached) " >&6
28043else
28044 ac_check_lib_save_LIBS=$LIBS
28045LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028046cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028047/* end confdefs.h. */
28048
28049/* Override any GCC internal prototype to avoid an error.
28050 Use char because int might match the return type of a GCC
28051 builtin and then its argument prototype would still apply. */
28052#ifdef __cplusplus
28053extern "C"
28054#endif
28055char gzseek ();
28056int
28057main ()
28058{
28059return gzseek ();
28060 ;
28061 return 0;
28062}
28063_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028064if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028065 ac_cv_lib_z_gzseek=yes
28066else
cristy8b350f62009-11-15 23:12:43 +000028067 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000028068fi
cristy8b350f62009-11-15 23:12:43 +000028069rm -f core conftest.err conftest.$ac_objext \
28070 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028071LIBS=$ac_check_lib_save_LIBS
28072fi
cristy8b350f62009-11-15 23:12:43 +000028073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000028074$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000028075if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028076 passed=`expr $passed + 1`
28077else
28078 failed=`expr $failed + 1`
28079fi
28080
cristy8b350f62009-11-15 23:12:43 +000028081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028082$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028083if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028084 $as_echo_n "(cached) " >&6
28085else
28086 ac_check_lib_save_LIBS=$LIBS
28087LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028088cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028089/* end confdefs.h. */
28090
28091/* Override any GCC internal prototype to avoid an error.
28092 Use char because int might match the return type of a GCC
28093 builtin and then its argument prototype would still apply. */
28094#ifdef __cplusplus
28095extern "C"
28096#endif
28097char gztell ();
28098int
28099main ()
28100{
28101return gztell ();
28102 ;
28103 return 0;
28104}
28105_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028106if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028107 ac_cv_lib_z_gztell=yes
28108else
cristy8b350f62009-11-15 23:12:43 +000028109 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000028110fi
cristy8b350f62009-11-15 23:12:43 +000028111rm -f core conftest.err conftest.$ac_objext \
28112 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028113LIBS=$ac_check_lib_save_LIBS
28114fi
cristy8b350f62009-11-15 23:12:43 +000028115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000028116$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000028117if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028118 passed=`expr $passed + 1`
28119else
28120 failed=`expr $failed + 1`
28121fi
28122
cristy8b350f62009-11-15 23:12:43 +000028123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028124$as_echo_n "checking if ZLIB package is complete... " >&6; }
28125 if test $passed -gt 0; then
28126 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28128$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028129 have_zlib='no (failed tests)'
28130 else
28131 ZLIB_LIBS='-lz'
28132 LIBS="$ZLIB_LIBS $LIBS"
28133
cristy8b350f62009-11-15 23:12:43 +000028134$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028135
cristyad38abe2012-12-23 23:03:21 +000028136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28137$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028138 have_zlib='yes'
28139 fi
28140 else
cristyad38abe2012-12-23 23:03:21 +000028141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28142$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028143 fi
28144fi
cristy73bd4a52010-10-05 11:24:23 +000028145 if test "$have_zlib" = 'yes'; then
28146 ZLIB_DELEGATE_TRUE=
28147 ZLIB_DELEGATE_FALSE='#'
28148else
28149 ZLIB_DELEGATE_TRUE='#'
28150 ZLIB_DELEGATE_FALSE=
28151fi
28152
cristy3ed852e2009-09-05 21:47:34 +000028153
28154
cristy5eef09f2012-10-16 12:08:28 +000028155# whether modules are built or not.
28156with_ltdl='yes'
28157have_ltdl='no'
28158LTDL_LIBS=''
28159if test "$build_modules" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000028160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28161$as_echo "-------------------------------------------------------------" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000028162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libltdl" >&5
28163$as_echo_n "checking for libltdl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28165$as_echo "" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000028166 failed=0
28167 passed=0
28168 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
28169if test "x$ac_cv_header_ltdl_h" = xyes; then :
28170 passed=`expr $passed + 1`
28171else
28172 failed=`expr $failed + 1`
28173fi
28174
28175
28176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
28177$as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
28178if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then :
28179 $as_echo_n "(cached) " >&6
28180else
28181 ac_check_lib_save_LIBS=$LIBS
28182LIBS="-lltdl $LIBS"
28183cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28184/* end confdefs.h. */
28185
28186/* Override any GCC internal prototype to avoid an error.
28187 Use char because int might match the return type of a GCC
28188 builtin and then its argument prototype would still apply. */
28189#ifdef __cplusplus
28190extern "C"
28191#endif
28192char lt_dlinit ();
28193int
28194main ()
28195{
28196return lt_dlinit ();
28197 ;
28198 return 0;
28199}
28200_ACEOF
28201if ac_fn_c_try_link "$LINENO"; then :
28202 ac_cv_lib_ltdl_lt_dlinit=yes
28203else
28204 ac_cv_lib_ltdl_lt_dlinit=no
28205fi
28206rm -f core conftest.err conftest.$ac_objext \
28207 conftest$ac_exeext conftest.$ac_ext
28208LIBS=$ac_check_lib_save_LIBS
28209fi
28210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
28211$as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
28212if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then :
28213 passed=`expr $passed + 1`
28214else
28215 failed=`expr $failed + 1`
28216fi
28217
28218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libltdl package is complete" >&5
28219$as_echo_n "checking if libltdl package is complete... " >&6; }
28220 if test $passed -gt 0 ; then
28221 if test $failed -gt 0 ; then
28222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28223$as_echo "no -- some components failed test" >&6; }
28224 have_ltdl='no (failed tests)'
28225 else
28226 LTDL_LIBS='-lltdl'
28227 LIBS="$LTDL_LIBS $LIBS"
28228
28229$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
28230
28231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28232$as_echo "yes" >&6; }
28233 have_ltdl='yes'
28234 fi
28235 else
28236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28237$as_echo "no" >&6; }
28238 fi
cristyaf4cbf32012-10-16 23:47:41 +000028239 if test "$have_ltdl" != 'yes' ; then
28240 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28241$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28242as_fn_error 1 "libltdl is required for modules build
28243See \`config.log' for more details" "$LINENO" 5; }
28244 fi
cristy5eef09f2012-10-16 12:08:28 +000028245fi
28246 if test "$have_ltdl" != 'no'; then
28247 WITH_LTDL_TRUE=
28248 WITH_LTDL_FALSE='#'
28249else
28250 WITH_LTDL_TRUE='#'
28251 WITH_LTDL_FALSE=
28252fi
28253
28254
cristy3ed852e2009-09-05 21:47:34 +000028255#
28256# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
28257#
28258LIB_DL=''
28259if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000028261$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028262if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028263 $as_echo_n "(cached) " >&6
28264else
28265 ac_check_lib_save_LIBS=$LIBS
28266LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028267cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028268/* end confdefs.h. */
28269
28270/* Override any GCC internal prototype to avoid an error.
28271 Use char because int might match the return type of a GCC
28272 builtin and then its argument prototype would still apply. */
28273#ifdef __cplusplus
28274extern "C"
28275#endif
28276char dlopen ();
28277int
28278main ()
28279{
28280return dlopen ();
28281 ;
28282 return 0;
28283}
28284_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028285if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028286 ac_cv_lib_dl_dlopen=yes
28287else
cristy8b350f62009-11-15 23:12:43 +000028288 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000028289fi
cristy8b350f62009-11-15 23:12:43 +000028290rm -f core conftest.err conftest.$ac_objext \
28291 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028292LIBS=$ac_check_lib_save_LIBS
28293fi
cristy8b350f62009-11-15 23:12:43 +000028294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028295$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000028296if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028297 LIB_DL='-ldl'
28298fi
28299
28300 LIBS="$LIB_DL $LIBS"
28301fi
28302
28303
28304
28305#
28306# Check for Autotrace delegate library.
28307#
28308
28309# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000028310if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028311 withval=$with_autotrace; with_autotrace=$withval
28312else
28313 with_autotrace='no'
28314fi
28315
28316
28317if test "$with_autotrace" != 'yes'; then
28318 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
28319fi
28320
28321have_autotrace='no'
28322AUTOTRACE_CFLAGS=""
28323AUTOTRACE_LIBS=""
28324AUTOTRACE_PKG=""
28325if test "x$with_autotrace" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000028326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28327$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028328
28329pkg_failed=no
28330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
28331$as_echo_n "checking for AUTOTRACE... " >&6; }
28332
28333if test -n "$AUTOTRACE_CFLAGS"; then
28334 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
28335 elif test -n "$PKG_CONFIG"; then
28336 if test -n "$PKG_CONFIG" && \
28337 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28338 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28339 ac_status=$?
28340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28341 test $ac_status = 0; }; then
28342 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
28343else
28344 pkg_failed=yes
28345fi
28346 else
28347 pkg_failed=untried
28348fi
28349if test -n "$AUTOTRACE_LIBS"; then
28350 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
28351 elif test -n "$PKG_CONFIG"; then
28352 if test -n "$PKG_CONFIG" && \
28353 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28354 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28355 ac_status=$?
28356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28357 test $ac_status = 0; }; then
28358 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
28359else
28360 pkg_failed=yes
28361fi
28362 else
28363 pkg_failed=untried
28364fi
28365
28366
28367
28368if test $pkg_failed = yes; then
28369
28370if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28371 _pkg_short_errors_supported=yes
28372else
28373 _pkg_short_errors_supported=no
28374fi
28375 if test $_pkg_short_errors_supported = yes; then
28376 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
28377 else
28378 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
28379 fi
28380 # Put the nasty error message in config.log where it belongs
28381 echo "$AUTOTRACE_PKG_ERRORS" >&5
28382
28383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28384$as_echo "no" >&6; }
28385 have_autotrace=no
28386elif test $pkg_failed = untried; then
28387 have_autotrace=no
28388else
28389 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
28390 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
28391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28392$as_echo "yes" >&6; }
28393 have_autotrace=yes
28394fi
cristyad38abe2012-12-23 23:03:21 +000028395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28396$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028397fi
28398
28399if test "$have_autotrace" = 'yes'; then
28400 failed=0
28401
cristy8b350f62009-11-15 23:12:43 +000028402$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028403
cristyc6722092012-10-14 00:19:31 +000028404 if test "$build_modules" = 'no'; then
cristyfa161182012-12-19 15:45:28 +000028405 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000028406 fi
28407fi
28408
cristy73bd4a52010-10-05 11:24:23 +000028409 if test "$have_autotrace" = 'yes'; then
28410 AUTOTRACE_DELEGATE_TRUE=
28411 AUTOTRACE_DELEGATE_FALSE='#'
28412else
28413 AUTOTRACE_DELEGATE_TRUE='#'
28414 AUTOTRACE_DELEGATE_FALSE=
28415fi
28416
cristy3ed852e2009-09-05 21:47:34 +000028417
28418
28419
28420
28421#
28422# Check for Display Postscript delegate library.
28423#
28424
28425# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000028426if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028427 withval=$with_dps; with_dps=$withval
28428else
28429 with_dps='yes'
28430fi
28431
28432
28433if test "$with_dps" != 'yes'; then
28434 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
28435fi
28436
28437have_dps='no'
28438DPS_LIBS=''
28439if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28441$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000028443$as_echo_n "checking for DPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28445$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028446 failed=0
28447 passed=0
28448 PERSIST_CPPFLAGS="$CPPFLAGS"
28449 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000028450 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 +000028451if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028452 passed=`expr $passed + 1`
28453else
28454 failed=`expr $failed + 1`
28455fi
28456
28457
28458 # DPS issues:
28459 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
28460 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
28461 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
28462 # ImageMagick itself doesn't use -lXt.
28463 have_libdps='no'
28464 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000028465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028466$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028467if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028468 $as_echo_n "(cached) " >&6
28469else
28470 ac_check_lib_save_LIBS=$LIBS
28471LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028472cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028473/* end confdefs.h. */
28474
28475/* Override any GCC internal prototype to avoid an error.
28476 Use char because int might match the return type of a GCC
28477 builtin and then its argument prototype would still apply. */
28478#ifdef __cplusplus
28479extern "C"
28480#endif
28481char DPSInitialize ();
28482int
28483main ()
28484{
28485return DPSInitialize ();
28486 ;
28487 return 0;
28488}
28489_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028490if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028491 ac_cv_lib_dps_DPSInitialize=yes
28492else
cristy8b350f62009-11-15 23:12:43 +000028493 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028494fi
cristy8b350f62009-11-15 23:12:43 +000028495rm -f core conftest.err conftest.$ac_objext \
28496 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028497LIBS=$ac_check_lib_save_LIBS
28498fi
cristy8b350f62009-11-15 23:12:43 +000028499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028500$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028501if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028502 have_libdps='yes'
28503else
28504 have_libdps='no'
28505fi
28506
28507 if test "$have_libdps" != 'yes'; then
28508 # Unset cache variable so we can try again.
28509 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000028510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028511$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028512if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028513 $as_echo_n "(cached) " >&6
28514else
28515 ac_check_lib_save_LIBS=$LIBS
28516LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028517cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028518/* end confdefs.h. */
28519
28520/* Override any GCC internal prototype to avoid an error.
28521 Use char because int might match the return type of a GCC
28522 builtin and then its argument prototype would still apply. */
28523#ifdef __cplusplus
28524extern "C"
28525#endif
28526char DPSInitialize ();
28527int
28528main ()
28529{
28530return DPSInitialize ();
28531 ;
28532 return 0;
28533}
28534_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028535if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028536 ac_cv_lib_dps_DPSInitialize=yes
28537else
cristy8b350f62009-11-15 23:12:43 +000028538 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028539fi
cristy8b350f62009-11-15 23:12:43 +000028540rm -f core conftest.err conftest.$ac_objext \
28541 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028542LIBS=$ac_check_lib_save_LIBS
28543fi
cristy8b350f62009-11-15 23:12:43 +000028544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028545$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028546if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028547 have_libdps='yes'
28548else
28549 have_libdps='no'
28550fi
28551
28552 if test "$have_libdps" = 'yes'; then
28553 LIBDPS_XT='-lXt'
28554 fi
28555 fi
28556 if test "$have_libdps" = 'yes'; then
28557 passed=`expr $passed + 1`
28558 else
28559 failed=`expr $failed + 1`
28560 fi
cristy8b350f62009-11-15 23:12:43 +000028561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000028562$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028563if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028564 $as_echo_n "(cached) " >&6
28565else
28566 ac_check_lib_save_LIBS=$LIBS
28567LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028568cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028569/* end confdefs.h. */
28570
28571/* Override any GCC internal prototype to avoid an error.
28572 Use char because int might match the return type of a GCC
28573 builtin and then its argument prototype would still apply. */
28574#ifdef __cplusplus
28575extern "C"
28576#endif
28577char XDPSPixelsPerPoint ();
28578int
28579main ()
28580{
28581return XDPSPixelsPerPoint ();
28582 ;
28583 return 0;
28584}
28585_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028586if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028587 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
28588else
cristy8b350f62009-11-15 23:12:43 +000028589 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000028590fi
cristy8b350f62009-11-15 23:12:43 +000028591rm -f core conftest.err conftest.$ac_objext \
28592 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028593LIBS=$ac_check_lib_save_LIBS
28594fi
cristy8b350f62009-11-15 23:12:43 +000028595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000028596$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000028597if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028598 passed=`expr $passed + 1`
28599else
28600 failed=`expr $failed + 1`
28601fi
28602
cristy8b350f62009-11-15 23:12:43 +000028603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028604$as_echo_n "checking if DPS package is complete... " >&6; }
28605 if test $passed -gt 0; then
28606 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28608$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028609 have_dps='no (failed tests)'
28610 CPPFLAGS="$PERSIST_CPPFLAGS"
28611 else
28612 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
28613 LIBS="$DPS_LIBS $LIBS"
28614
cristy8b350f62009-11-15 23:12:43 +000028615$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028616
cristyad38abe2012-12-23 23:03:21 +000028617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28618$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028619 have_dps='yes'
28620 fi
28621 else
cristyad38abe2012-12-23 23:03:21 +000028622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28623$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028624 CPPFLAGS=$PERSIST_CPPFLAGS
28625 fi
28626fi
cristy73bd4a52010-10-05 11:24:23 +000028627 if test "$have_dps" = 'yes'; then
28628 DPS_DELEGATE_TRUE=
28629 DPS_DELEGATE_FALSE='#'
28630else
28631 DPS_DELEGATE_TRUE='#'
28632 DPS_DELEGATE_FALSE=
28633fi
28634
cristy3ed852e2009-09-05 21:47:34 +000028635
28636
28637
28638#
28639# Check for DJVU delegate library.
28640#
28641
28642# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000028643if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028644 withval=$with_djvu; with_djvu=$withval
28645else
28646 with_djvu='yes'
28647fi
28648
28649
28650if test "$with_djvu" != 'yes'; then
28651 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
28652fi
28653
28654have_djvu='no'
28655DJVU_LIBS=''
28656if test "$with_djvu" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28658$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000028660$as_echo_n "checking for DJVU... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28662$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028663 failed=0
28664 passed=0
cristy8b350f62009-11-15 23:12:43 +000028665 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 +000028666if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028667 passed=`expr $passed + 1`
28668else
28669 failed=`expr $failed + 1`
28670fi
28671
28672
cristy8b350f62009-11-15 23:12:43 +000028673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000028674$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028675if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028676 $as_echo_n "(cached) " >&6
28677else
28678 ac_check_lib_save_LIBS=$LIBS
28679LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028680cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028681/* end confdefs.h. */
28682
28683/* Override any GCC internal prototype to avoid an error.
28684 Use char because int might match the return type of a GCC
28685 builtin and then its argument prototype would still apply. */
28686#ifdef __cplusplus
28687extern "C"
28688#endif
28689char ddjvu_context_create ();
28690int
28691main ()
28692{
28693return ddjvu_context_create ();
28694 ;
28695 return 0;
28696}
28697_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028698if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028699 ac_cv_lib_djvulibre_ddjvu_context_create=yes
28700else
cristy8b350f62009-11-15 23:12:43 +000028701 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000028702fi
cristy8b350f62009-11-15 23:12:43 +000028703rm -f core conftest.err conftest.$ac_objext \
28704 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028705LIBS=$ac_check_lib_save_LIBS
28706fi
cristy8b350f62009-11-15 23:12:43 +000028707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000028708$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristyda16f162011-02-19 23:52:17 +000028709if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028710 passed=`expr $passed + 1`
28711else
28712 failed=`expr $failed + 1`
28713fi
28714
cristy8b350f62009-11-15 23:12:43 +000028715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028716$as_echo_n "checking if DJVU package is complete... " >&6; }
28717 if test $passed -gt 0; then
28718 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28720$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028721 have_djvu='no (failed tests)'
28722 else
28723 DJVU_LIBS='-ldjvulibre'
28724 LIBS="$DJVU_LIBS $LIBS"
28725
cristy8b350f62009-11-15 23:12:43 +000028726$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028727
cristyad38abe2012-12-23 23:03:21 +000028728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28729$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028730 have_djvu='yes'
28731 fi
28732 else
cristyad38abe2012-12-23 23:03:21 +000028733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28734$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028735 fi
28736fi
cristy73bd4a52010-10-05 11:24:23 +000028737 if test "$have_djvu" = 'yes'; then
28738 DJVU_DELEGATE_TRUE=
28739 DJVU_DELEGATE_FALSE='#'
28740else
28741 DJVU_DELEGATE_TRUE='#'
28742 DJVU_DELEGATE_FALSE=
28743fi
28744
cristy3ed852e2009-09-05 21:47:34 +000028745
28746
28747
28748#
cristy430a7312010-01-21 20:44:04 +000028749# Set DejaVu font directory.
28750#
28751
28752# Check whether --with-dejavu-font-dir was given.
28753if test "${with_dejavu_font_dir+set}" = set; then :
28754 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
28755else
28756 with_dejavu_font_dir='default'
28757fi
28758
28759
28760if test "$with_dejavu_font_dir" != 'default'; then
28761 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
28762fi
28763
28764
28765#
cristy3ed852e2009-09-05 21:47:34 +000028766# Check for FFTW delegate library.
28767#
28768
28769# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000028770if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028771 withval=$with_fftw; with_fftw=$withval
28772else
28773 with_fftw='yes'
28774fi
28775
28776
28777if test "$with_fftw" != 'yes'; then
28778 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
28779fi
28780
cristy81beccd2011-10-03 18:17:24 +000028781have_fftw='no'
28782FFTW_LIBS=''
28783if test "$with_fftw" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28785$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
28787$as_echo_n "checking for FFTW... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28789$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028790 failed=0
28791 passed=0
28792 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
28793if test "x$ac_cv_header_fftw3_h" = xyes; then :
28794 passed=`expr $passed + 1`
28795else
28796 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028797fi
28798
cristy81beccd2011-10-03 18:17:24 +000028799
28800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
28801$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
28802if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
28803 $as_echo_n "(cached) " >&6
28804else
28805 ac_check_lib_save_LIBS=$LIBS
28806LIBS="-lfftw3 $LIBS"
28807cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28808/* end confdefs.h. */
28809
28810/* Override any GCC internal prototype to avoid an error.
28811 Use char because int might match the return type of a GCC
28812 builtin and then its argument prototype would still apply. */
28813#ifdef __cplusplus
28814extern "C"
28815#endif
28816char fftw_execute ();
28817int
28818main ()
28819{
28820return fftw_execute ();
28821 ;
28822 return 0;
28823}
28824_ACEOF
28825if ac_fn_c_try_link "$LINENO"; then :
28826 ac_cv_lib_fftw3_fftw_execute=yes
28827else
28828 ac_cv_lib_fftw3_fftw_execute=no
28829fi
28830rm -f core conftest.err conftest.$ac_objext \
28831 conftest$ac_exeext conftest.$ac_ext
28832LIBS=$ac_check_lib_save_LIBS
28833fi
28834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
28835$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
28836if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
28837 passed=`expr $passed + 1`
28838else
28839 failed=`expr $failed + 1`
28840fi
28841
28842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
28843$as_echo_n "checking if FFTW package is complete... " >&6; }
28844 if test $passed -gt 0; then
28845 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28847$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028848 have_fftw='no (failed tests)'
28849 else
28850 FFTW_LIBS='-lfftw3'
28851 LIBS="$FFTW_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000028852
cristy8b350f62009-11-15 23:12:43 +000028853$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028854
cristyad38abe2012-12-23 23:03:21 +000028855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28856$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028857 have_fftw='yes'
28858 fi
28859 else
cristyad38abe2012-12-23 23:03:21 +000028860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28861$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028862 fi
28863fi
cristy73bd4a52010-10-05 11:24:23 +000028864 if test "$have_fftw" = 'yes'; then
28865 FFTW_DELEGATE_TRUE=
28866 FFTW_DELEGATE_FALSE='#'
28867else
28868 FFTW_DELEGATE_TRUE='#'
28869 FFTW_DELEGATE_FALSE=
28870fi
28871
cristy3ed852e2009-09-05 21:47:34 +000028872
28873
28874
28875#
28876# Check for FlashPIX delegate library.
28877#
28878
28879# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000028880if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028881 withval=$with_fpx; with_fpx=$withval
28882else
28883 with_fpx='yes'
28884fi
28885
28886
28887if test "$with_fpx" != 'yes'; then
28888 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
28889fi
28890
28891have_fpx='no'
28892FPX_LIBS=''
28893if test "$with_fpx" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28895$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000028897$as_echo_n "checking for FlashPIX... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28899$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028900 failed=0
28901 passed=0
28902 ac_ext=cpp
28903ac_cpp='$CXXCPP $CPPFLAGS'
28904ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28905ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28906ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28907
28908
cristy8b350f62009-11-15 23:12:43 +000028909ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028910if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028911 passed=`expr $passed + 1`
28912else
28913 failed=`expr $failed + 1`
28914fi
28915
28916
cristy8b350f62009-11-15 23:12:43 +000028917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000028918$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028919if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028920 $as_echo_n "(cached) " >&6
28921else
28922 ac_check_lib_save_LIBS=$LIBS
28923LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028924cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028925/* end confdefs.h. */
28926
28927/* Override any GCC internal prototype to avoid an error.
28928 Use char because int might match the return type of a GCC
28929 builtin and then its argument prototype would still apply. */
28930#ifdef __cplusplus
28931extern "C"
28932#endif
28933char FPX_OpenImageByFilename ();
28934int
28935main ()
28936{
28937return FPX_OpenImageByFilename ();
28938 ;
28939 return 0;
28940}
28941_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028942if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028943 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
28944else
cristy8b350f62009-11-15 23:12:43 +000028945 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000028946fi
cristy8b350f62009-11-15 23:12:43 +000028947rm -f core conftest.err conftest.$ac_objext \
28948 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028949LIBS=$ac_check_lib_save_LIBS
28950fi
cristy8b350f62009-11-15 23:12:43 +000028951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000028952$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000028953if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028954 passed=`expr $passed + 1`
28955else
28956 failed=`expr $failed + 1`
28957fi
28958
28959 ac_ext=c
28960ac_cpp='$CPP $CPPFLAGS'
28961ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28962ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28963ac_compiler_gnu=$ac_cv_c_compiler_gnu
28964
cristy8b350f62009-11-15 23:12:43 +000028965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028966$as_echo_n "checking if FlashPIX package is complete... " >&6; }
28967 if test $passed -gt 0; then
28968 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28970$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028971 have_fpx='no (failed tests)'
28972 else
28973 FPX_LIBS='-lfpx'
28974
cristy8b350f62009-11-15 23:12:43 +000028975$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028976
cristyad38abe2012-12-23 23:03:21 +000028977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28978$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028979 have_fpx='yes'
28980 PERLMAINCC="$CXX"
28981 fi
28982 else
cristyad38abe2012-12-23 23:03:21 +000028983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28984$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028985 fi
28986fi
cristy73bd4a52010-10-05 11:24:23 +000028987 if test "$have_fpx" = 'yes'; then
28988 FPX_DELEGATE_TRUE=
28989 FPX_DELEGATE_FALSE='#'
28990else
28991 FPX_DELEGATE_TRUE='#'
28992 FPX_DELEGATE_FALSE=
28993fi
28994
cristy3ed852e2009-09-05 21:47:34 +000028995
28996
28997
28998#
28999# Check for fontconfig delegate library.
29000#
29001
29002# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000029003if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029004 withval=$with_fontconfig; with_fontconfig=$withval
29005else
cristyfc3d0222012-02-07 15:05:57 +000029006 with_fontconfig='yes'
cristy3ed852e2009-09-05 21:47:34 +000029007fi
29008
29009
29010if test "$with_fontconfig" != 'yes'; then
29011 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
29012fi
29013
29014have_fontconfig='no'
29015FONTCONFIG_CFLAGS=""
29016FONTCONFIG_LIBS=""
29017FONTCONFIG_PKG=""
29018if test "x$with_fontconfig" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29020$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029021
29022pkg_failed=no
29023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
29024$as_echo_n "checking for FONTCONFIG... " >&6; }
29025
29026if test -n "$FONTCONFIG_CFLAGS"; then
29027 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
29028 elif test -n "$PKG_CONFIG"; then
29029 if test -n "$PKG_CONFIG" && \
29030 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29031 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29032 ac_status=$?
29033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29034 test $ac_status = 0; }; then
29035 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
29036else
29037 pkg_failed=yes
29038fi
29039 else
29040 pkg_failed=untried
29041fi
29042if test -n "$FONTCONFIG_LIBS"; then
29043 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
29044 elif test -n "$PKG_CONFIG"; then
29045 if test -n "$PKG_CONFIG" && \
29046 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29047 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29048 ac_status=$?
29049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29050 test $ac_status = 0; }; then
29051 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
29052else
29053 pkg_failed=yes
29054fi
29055 else
29056 pkg_failed=untried
29057fi
29058
29059
29060
29061if test $pkg_failed = yes; then
29062
29063if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29064 _pkg_short_errors_supported=yes
29065else
29066 _pkg_short_errors_supported=no
29067fi
29068 if test $_pkg_short_errors_supported = yes; then
29069 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
29070 else
29071 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
29072 fi
29073 # Put the nasty error message in config.log where it belongs
29074 echo "$FONTCONFIG_PKG_ERRORS" >&5
29075
29076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29077$as_echo "no" >&6; }
29078 have_fontconfig=no
29079elif test $pkg_failed = untried; then
29080 have_fontconfig=no
29081else
29082 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
29083 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
29084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29085$as_echo "yes" >&6; }
29086 have_fontconfig=yes
29087fi
cristyad38abe2012-12-23 23:03:21 +000029088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29089$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029090fi
29091
29092if test "$have_fontconfig" = 'yes'; then
29093
cristy8b350f62009-11-15 23:12:43 +000029094$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029095
cristyc6722092012-10-14 00:19:31 +000029096 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000029097 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000029098 fi
cristy3ed852e2009-09-05 21:47:34 +000029099fi
29100
cristy73bd4a52010-10-05 11:24:23 +000029101 if test "$have_fontconfig" = 'yes'; then
29102 FONTCONFIG_DELEGATE_TRUE=
29103 FONTCONFIG_DELEGATE_FALSE='#'
29104else
29105 FONTCONFIG_DELEGATE_TRUE='#'
29106 FONTCONFIG_DELEGATE_FALSE=
29107fi
29108
cristy3ed852e2009-09-05 21:47:34 +000029109
29110
29111
29112
29113#
cristy03f187e2013-01-24 00:22:19 +000029114# Check for the Freetype delegate library.
cristy3ed852e2009-09-05 21:47:34 +000029115#
29116
29117# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000029118if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029119 withval=$with_freetype; with_freetype=$withval
29120else
29121 with_freetype='yes'
29122fi
29123
29124
cristy3ed852e2009-09-05 21:47:34 +000029125if test "$with_freetype" != 'yes'; then
29126 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
29127fi
29128
cristy81beccd2011-10-03 18:17:24 +000029129have_freetype='no'
cristy03f187e2013-01-24 00:22:19 +000029130FREETYPE_CFLAGS=""
29131FREETYPE_LIBS=""
29132FREETYPE_PKG=""
29133if test "x$with_freetype" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29135$as_echo "-------------------------------------------------------------" >&6; }
cristy03f187e2013-01-24 00:22:19 +000029136
29137pkg_failed=no
29138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
29139$as_echo_n "checking for FREETYPE... " >&6; }
29140
29141if test -n "$FREETYPE_CFLAGS"; then
29142 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
29143 elif test -n "$PKG_CONFIG"; then
29144 if test -n "$PKG_CONFIG" && \
29145 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
29146 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
29147 ac_status=$?
29148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29149 test $ac_status = 0; }; then
29150 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
29151else
29152 pkg_failed=yes
29153fi
29154 else
29155 pkg_failed=untried
29156fi
29157if test -n "$FREETYPE_LIBS"; then
29158 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
29159 elif test -n "$PKG_CONFIG"; then
29160 if test -n "$PKG_CONFIG" && \
29161 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
29162 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
29163 ac_status=$?
29164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29165 test $ac_status = 0; }; then
29166 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
29167else
29168 pkg_failed=yes
29169fi
29170 else
29171 pkg_failed=untried
29172fi
29173
29174
29175
29176if test $pkg_failed = yes; then
29177
29178if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29179 _pkg_short_errors_supported=yes
29180else
29181 _pkg_short_errors_supported=no
29182fi
29183 if test $_pkg_short_errors_supported = yes; then
29184 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1`
29185 else
29186 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1`
29187 fi
29188 # Put the nasty error message in config.log where it belongs
29189 echo "$FREETYPE_PKG_ERRORS" >&5
29190
29191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29192$as_echo "no" >&6; }
29193 have_freetype=no
29194elif test $pkg_failed = untried; then
29195 have_freetype=no
29196else
29197 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
29198 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
29199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29200$as_echo "yes" >&6; }
29201 have_freetype=yes
29202fi
cristyad38abe2012-12-23 23:03:21 +000029203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29204$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029205fi
29206
cristy03f187e2013-01-24 00:22:19 +000029207if test "$have_freetype" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029208
cristy8b350f62009-11-15 23:12:43 +000029209$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029210
cristy03f187e2013-01-24 00:22:19 +000029211 CFLAGS="$FREETYPE_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000029212fi
cristy03f187e2013-01-24 00:22:19 +000029213
cristy73bd4a52010-10-05 11:24:23 +000029214 if test "$have_freetype" = 'yes'; then
29215 FREETYPE_DELEGATE_TRUE=
29216 FREETYPE_DELEGATE_FALSE='#'
29217else
29218 FREETYPE_DELEGATE_TRUE='#'
29219 FREETYPE_DELEGATE_FALSE=
29220fi
29221
cristy3ed852e2009-09-05 21:47:34 +000029222
29223
29224
cristy03f187e2013-01-24 00:22:19 +000029225
cristy3ed852e2009-09-05 21:47:34 +000029226#
29227# Check for Ghostscript library or framework.
29228#
29229# Test for iapi.h & test for gsapi_new_instance in -lgs
29230# or -framework Ghostscript
29231
29232
29233# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000029234if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029235 withval=$with_gslib; with_gslib=$withval
29236else
29237 with_gslib='no'
29238fi
29239
29240
cristyb7931f12009-09-25 10:22:21 +000029241gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000029242if test "$with_gslib" != 'yes'; then
29243 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
29244fi
29245
29246have_gslib='no'
29247GS_LIBS=''
29248if test "$with_gslib" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29250$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000029252$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29254$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000029255 framework=0
cristy3ed852e2009-09-05 21:47:34 +000029256 failed=0
29257 passed=0
cristy8b350f62009-11-15 23:12:43 +000029258 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 +000029259if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029260 passed=`expr $passed + 1`
29261else
29262 failed=`expr $failed + 1`
29263fi
29264
29265
cristy8b350f62009-11-15 23:12:43 +000029266 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 +000029267if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029268 passed=`expr $passed + 1`
29269else
29270 failed=`expr $failed + 1`
29271fi
29272
29273
cristy73bd4a52010-10-05 11:24:23 +000029274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
29275$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029276if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000029277 $as_echo_n "(cached) " >&6
29278else
29279 ac_check_framework_save_LIBS=$LIBS
29280LIBS="-framework Ghostscript $LIBS"
29281cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29282/* end confdefs.h. */
29283
29284/* Override any GCC internal prototype to avoid an error.
29285 Use char because int might match the return type of a GCC
29286 builtin and then its argument prototype would still apply. */
29287#ifdef __cplusplus
29288extern "C"
29289#endif
29290char gsapi_new_instance ();
29291int
29292main ()
29293{
29294return gsapi_new_instance ();
29295 ;
29296 return 0;
29297}
29298_ACEOF
29299if ac_fn_c_try_link "$LINENO"; then :
29300 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
29301else
29302 ac_cv_framework_Ghostscript_gsapi_new_instance=no
29303fi
29304rm -f core conftest.err conftest.$ac_objext \
29305 conftest$ac_exeext conftest.$ac_ext
29306LIBS=$ac_check_framework_save_LIBS
29307fi
29308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
29309$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
29310if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
29311 framework=`expr $framework + 1`
29312else
29313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029314$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029315if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029316 $as_echo_n "(cached) " >&6
29317else
29318 ac_check_lib_save_LIBS=$LIBS
29319LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029320cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029321/* end confdefs.h. */
29322
29323/* Override any GCC internal prototype to avoid an error.
29324 Use char because int might match the return type of a GCC
29325 builtin and then its argument prototype would still apply. */
29326#ifdef __cplusplus
29327extern "C"
29328#endif
29329char gsapi_new_instance ();
29330int
29331main ()
29332{
29333return gsapi_new_instance ();
29334 ;
29335 return 0;
29336}
29337_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029338if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029339 ac_cv_lib_gs_gsapi_new_instance=yes
29340else
cristy8b350f62009-11-15 23:12:43 +000029341 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000029342fi
cristy8b350f62009-11-15 23:12:43 +000029343rm -f core conftest.err conftest.$ac_objext \
29344 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029345LIBS=$ac_check_lib_save_LIBS
29346fi
cristy8b350f62009-11-15 23:12:43 +000029347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000029348$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000029349if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029350 passed=`expr $passed + 1`
29351else
29352 failed=`expr $failed + 1`
29353fi
cristy73bd4a52010-10-05 11:24:23 +000029354
29355fi
cristy8b350f62009-11-15 23:12:43 +000029356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029357$as_echo_n "checking if Ghostscript package is complete... " >&6; }
29358 if test $passed -gt 0; then
29359 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29361$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029362 have_gslib='no (failed tests)'
29363 else
29364 if test $framework -gt 0; then
29365 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000029366 gslib_framework='yes'
cristyad38abe2012-12-23 23:03:21 +000029367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
29368$as_echo "yes, using framework." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029369 else
cristyad38abe2012-12-23 23:03:21 +000029370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
29371$as_echo "yes, using library." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029372 GS_LIBS='-lgs'
29373 fi
29374 LIBS="$GS_LIBS $LIBS"
29375
cristy8b350f62009-11-15 23:12:43 +000029376$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029377
29378 have_gslib='yes'
29379 fi
29380 else
cristyad38abe2012-12-23 23:03:21 +000029381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29382$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029383 fi
29384fi
cristy73bd4a52010-10-05 11:24:23 +000029385 if test "$have_gslib" = 'yes'; then
29386 GS_DELEGATE_TRUE=
29387 GS_DELEGATE_FALSE='#'
29388else
29389 GS_DELEGATE_TRUE='#'
29390 GS_DELEGATE_FALSE=
29391fi
29392
cristy3ed852e2009-09-05 21:47:34 +000029393
29394
29395# Set default font search path
29396
29397# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000029398if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029399 withval=$with_fontpath; with_fontpath=$withval
29400else
29401 with_fontpath=''
29402fi
29403
29404
29405if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
29406 with_fontpath=''
29407else
29408
29409cat >>confdefs.h <<_ACEOF
29410#define MAGICK_FONT_PATH "$with_fontpath"
29411_ACEOF
29412
29413fi
29414if test "$with_fontpath=" != ''; then
29415 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
29416fi
29417
29418# Set Ghostscript font directory
29419
29420# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029421if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029422 withval=$with_gs_font_dir; with_gs_font_dir=$withval
29423else
29424 with_gs_font_dir='default'
29425fi
29426
29427
29428if test "$with_gs_font_dir" != 'default'; then
29429 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
29430fi
29431
29432
29433#
29434# Check for GVC delegate library.
29435#
29436
29437# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000029438if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029439 withval=$with_gvc; with_gvc=$withval
29440else
cristy1b70dc82012-07-01 23:15:05 +000029441 with_gvc='no'
cristy3ed852e2009-09-05 21:47:34 +000029442fi
29443
29444
29445if test "$with_gvc" != 'yes'; then
29446 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
29447fi
29448
29449GVC_PKG=""
29450if test "x$with_gvc" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29452$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029453
29454pkg_failed=no
29455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
29456$as_echo_n "checking for GVC... " >&6; }
29457
29458if test -n "$GVC_CFLAGS"; then
29459 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
29460 elif test -n "$PKG_CONFIG"; then
29461 if test -n "$PKG_CONFIG" && \
29462 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29463 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29464 ac_status=$?
29465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29466 test $ac_status = 0; }; then
29467 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
29468else
29469 pkg_failed=yes
29470fi
29471 else
29472 pkg_failed=untried
29473fi
29474if test -n "$GVC_LIBS"; then
29475 pkg_cv_GVC_LIBS="$GVC_LIBS"
29476 elif test -n "$PKG_CONFIG"; then
29477 if test -n "$PKG_CONFIG" && \
29478 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29479 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29480 ac_status=$?
29481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29482 test $ac_status = 0; }; then
29483 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
29484else
29485 pkg_failed=yes
29486fi
29487 else
29488 pkg_failed=untried
29489fi
29490
29491
29492
29493if test $pkg_failed = yes; then
29494
29495if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29496 _pkg_short_errors_supported=yes
29497else
29498 _pkg_short_errors_supported=no
29499fi
29500 if test $_pkg_short_errors_supported = yes; then
29501 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
29502 else
29503 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
29504 fi
29505 # Put the nasty error message in config.log where it belongs
29506 echo "$GVC_PKG_ERRORS" >&5
29507
29508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29509$as_echo "no" >&6; }
29510 have_gvc=no
29511elif test $pkg_failed = untried; then
29512 have_gvc=no
29513else
29514 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
29515 GVC_LIBS=$pkg_cv_GVC_LIBS
29516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29517$as_echo "yes" >&6; }
29518 have_gvc=yes
29519fi
cristyad38abe2012-12-23 23:03:21 +000029520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29521$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029522fi
29523
29524if test "$have_gvc" = 'yes'; then
29525
cristy8b350f62009-11-15 23:12:43 +000029526$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029527
cristyc6722092012-10-14 00:19:31 +000029528 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000029529 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
29530 fi
29531fi
29532
cristy73bd4a52010-10-05 11:24:23 +000029533 if test "$have_gvc" = 'yes'; then
29534 GVC_DELEGATE_TRUE=
29535 GVC_DELEGATE_FALSE='#'
29536else
29537 GVC_DELEGATE_TRUE='#'
29538 GVC_DELEGATE_FALSE=
29539fi
29540
cristy3ed852e2009-09-05 21:47:34 +000029541
29542
29543
29544
29545#
29546# Check for JBIG delegate library.
29547#
29548
29549
29550# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000029551if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029552 withval=$with_jbig; with_jbig=$withval
29553else
29554 with_jbig='yes'
29555fi
29556
29557
29558have_jbig='no'
29559JBIG_LIBS=''
29560if test "$with_jbig" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29562$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029564$as_echo_n "checking for JBIG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29566$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029567 failed=0
29568 passed=0
cristy8b350f62009-11-15 23:12:43 +000029569 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029570if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029571 passed=`expr $passed + 1`
29572else
29573 failed=`expr $failed + 1`
29574fi
29575
29576
cristy8b350f62009-11-15 23:12:43 +000029577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000029578$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029579if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029580 $as_echo_n "(cached) " >&6
29581else
29582 ac_check_lib_save_LIBS=$LIBS
29583LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029584cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029585/* end confdefs.h. */
29586
29587/* Override any GCC internal prototype to avoid an error.
29588 Use char because int might match the return type of a GCC
29589 builtin and then its argument prototype would still apply. */
29590#ifdef __cplusplus
29591extern "C"
29592#endif
29593char jbg_dec_init ();
29594int
29595main ()
29596{
29597return jbg_dec_init ();
29598 ;
29599 return 0;
29600}
29601_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029602if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029603 ac_cv_lib_jbig_jbg_dec_init=yes
29604else
cristy8b350f62009-11-15 23:12:43 +000029605 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000029606fi
cristy8b350f62009-11-15 23:12:43 +000029607rm -f core conftest.err conftest.$ac_objext \
29608 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029609LIBS=$ac_check_lib_save_LIBS
29610fi
cristy8b350f62009-11-15 23:12:43 +000029611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000029612$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000029613if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029614 passed=`expr $passed + 1`
29615else
29616 failed=`expr $failed + 1`
29617fi
29618
cristy8b350f62009-11-15 23:12:43 +000029619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029620$as_echo_n "checking if JBIG package is complete... " >&6; }
29621 if test $passed -gt 0; then
29622 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29624$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029625 have_jbig='no (failed tests)'
29626 else
29627 JBIG_LIBS='-ljbig'
29628 LIBS="$JBIG_LIBS $LIBS"
29629
cristy8b350f62009-11-15 23:12:43 +000029630$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029631
cristyad38abe2012-12-23 23:03:21 +000029632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29633$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029634 have_jbig='yes'
29635 fi
29636 else
cristyad38abe2012-12-23 23:03:21 +000029637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29638$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029639 fi
29640fi
cristy73bd4a52010-10-05 11:24:23 +000029641 if test "$have_jbig" = 'yes'; then
29642 JBIG_DELEGATE_TRUE=
29643 JBIG_DELEGATE_FALSE='#'
29644else
29645 JBIG_DELEGATE_TRUE='#'
29646 JBIG_DELEGATE_FALSE=
29647fi
29648
cristy3ed852e2009-09-05 21:47:34 +000029649
29650
29651
29652#
29653# Check for JPEG delegate library.
29654#
29655
29656# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000029657if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029658 withval=$with_jpeg; with_jpeg=$withval
29659else
29660 with_jpeg='yes'
29661fi
29662
29663
29664if test "$with_jpeg" != 'yes'; then
29665 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
29666fi
29667
29668have_jpeg='no'
29669JPEG_LIBS=''
29670if test "$with_jpeg" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29672$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029674$as_echo_n "checking for JPEG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29676$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029677 failed=0
29678 passed=0
cristy8b350f62009-11-15 23:12:43 +000029679 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029680if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029681 passed=`expr $passed + 1`
29682else
29683 failed=`expr $failed + 1`
29684fi
29685
29686
cristy8b350f62009-11-15 23:12:43 +000029687 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029688if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029689 passed=`expr $passed + 1`
29690else
29691 failed=`expr $failed + 1`
29692fi
29693
29694
cristy8b350f62009-11-15 23:12:43 +000029695 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029696if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029697 passed=`expr $passed + 1`
29698else
29699 failed=`expr $failed + 1`
29700fi
29701
29702
cristy8b350f62009-11-15 23:12:43 +000029703 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029704if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029705 passed=`expr $passed + 1`
29706else
29707 failed=`expr $failed + 1`
29708fi
29709
29710
cristy8b350f62009-11-15 23:12:43 +000029711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000029712$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029713if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029714 $as_echo_n "(cached) " >&6
29715else
29716 ac_check_lib_save_LIBS=$LIBS
29717LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029718cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029719/* end confdefs.h. */
29720
29721/* Override any GCC internal prototype to avoid an error.
29722 Use char because int might match the return type of a GCC
29723 builtin and then its argument prototype would still apply. */
29724#ifdef __cplusplus
29725extern "C"
29726#endif
29727char jpeg_read_header ();
29728int
29729main ()
29730{
29731return jpeg_read_header ();
29732 ;
29733 return 0;
29734}
29735_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029736if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029737 ac_cv_lib_jpeg_jpeg_read_header=yes
29738else
cristy8b350f62009-11-15 23:12:43 +000029739 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000029740fi
cristy8b350f62009-11-15 23:12:43 +000029741rm -f core conftest.err conftest.$ac_objext \
29742 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029743LIBS=$ac_check_lib_save_LIBS
29744fi
cristy8b350f62009-11-15 23:12:43 +000029745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000029746$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000029747if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029748 passed=`expr $passed + 1`
29749else
29750 failed=`expr $failed + 1`
29751fi
29752
29753
29754# Test for compatible JPEG library
29755if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000029756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000029757$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029758if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029759 $as_echo_n "(cached) " >&6
29760else
cristy8b350f62009-11-15 23:12:43 +000029761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029762/* end confdefs.h. */
29763#include <stdio.h>
29764#include <stdlib.h>
29765#include <jpeglib.h>
29766
29767int
29768main ()
29769{
29770
29771#if JPEG_LIB_VERSION < 62
29772#error IJG JPEG library must be version 6b or newer!
29773#endif
29774return 0;
29775
29776 ;
29777 return 0;
29778}
29779_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029780if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029781 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
29782else
cristy8b350f62009-11-15 23:12:43 +000029783 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029784fi
cristy3ed852e2009-09-05 21:47:34 +000029785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29786fi
cristy8b350f62009-11-15 23:12:43 +000029787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000029788$as_echo "$ac_cv_jpeg_version_ok" >&6; }
29789fi
cristy8b350f62009-11-15 23:12:43 +000029790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029791$as_echo_n "checking if JPEG package is complete... " >&6; }
29792 if test $passed -gt 0; then
29793 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29795$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029796 have_jpeg='no (failed tests)'
29797 else
29798 JPEG_LIBS='-ljpeg'
29799 LIBS="$JPEG_LIBS $LIBS"
29800
cristy8b350f62009-11-15 23:12:43 +000029801$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029802
cristyad38abe2012-12-23 23:03:21 +000029803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29804$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029805 have_jpeg='yes'
29806 fi
29807 else
cristyad38abe2012-12-23 23:03:21 +000029808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29809$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029810 fi
29811fi
cristy73bd4a52010-10-05 11:24:23 +000029812 if test "$have_jpeg" = 'yes'; then
29813 JPEG_DELEGATE_TRUE=
29814 JPEG_DELEGATE_FALSE='#'
29815else
29816 JPEG_DELEGATE_TRUE='#'
29817 JPEG_DELEGATE_FALSE=
29818fi
29819
cristy3ed852e2009-09-05 21:47:34 +000029820
29821
29822
29823#
cristy3ed852e2009-09-05 21:47:34 +000029824# Check for LCMS delegate library.
29825#
cristy71203402010-06-18 13:12:03 +000029826# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000029827
29828# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000029829if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029830 withval=$with_lcms; with_lcms=$withval
29831else
29832 with_lcms='yes'
29833fi
29834
cristy71203402010-06-18 13:12:03 +000029835if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000029836 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
29837fi
29838
cristy71203402010-06-18 13:12:03 +000029839# Disable LCMS2.
29840
29841# Check whether --with-lcms2 was given.
29842if test "${with_lcms2+set}" = set; then :
29843 withval=$with_lcms2; with_lcms2=$withval
29844else
29845 with_lcms2='yes'
29846fi
29847
29848if test "$with_lcms2" != 'yes' ; then
29849 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
29850fi
29851
29852have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000029853LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000029854if test "$with_lcms2" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29856$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000029857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
29858$as_echo_n "checking for LCMS v2... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29860$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029861 failed=0
29862 passed=0
29863 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029864
29865 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000029866 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029867if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029868 have_lcms_header='yes'
29869fi
29870
29871
29872 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000029873
29874$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
29875
cristy71203402010-06-18 13:12:03 +000029876 passed=`expr $passed + 1`
29877 fi
29878
29879 # Check for <lcms2/lcms2.h)
29880 if test "$have_lcms_header" != 'yes'; then
29881 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 +000029882if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029883 have_lcms_header='yes'
29884fi
29885
29886
cristy71203402010-06-18 13:12:03 +000029887 if test "$have_lcms_header" = 'yes'; then
29888 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000029889
cristy71203402010-06-18 13:12:03 +000029890$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000029891
cristy71203402010-06-18 13:12:03 +000029892 fi
cristyd09bcf92010-03-25 03:04:45 +000029893 fi
cristy71203402010-06-18 13:12:03 +000029894
29895 # Failed to find lcms header?
29896 if test "$have_lcms_header" != 'yes'; then
29897 failed=`expr $failed + 1`
29898 fi
29899
29900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
29901$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029902if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000029903 $as_echo_n "(cached) " >&6
29904else
29905 ac_check_lib_save_LIBS=$LIBS
29906LIBS="-llcms2 $LIBS"
29907cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29908/* end confdefs.h. */
29909
29910/* Override any GCC internal prototype to avoid an error.
29911 Use char because int might match the return type of a GCC
29912 builtin and then its argument prototype would still apply. */
29913#ifdef __cplusplus
29914extern "C"
29915#endif
cristy71203402010-06-18 13:12:03 +000029916char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029917int
29918main ()
29919{
cristy71203402010-06-18 13:12:03 +000029920return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029921 ;
29922 return 0;
29923}
29924_ACEOF
29925if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000029926 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000029927else
cristy71203402010-06-18 13:12:03 +000029928 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000029929fi
29930rm -f core conftest.err conftest.$ac_objext \
29931 conftest$ac_exeext conftest.$ac_ext
29932LIBS=$ac_check_lib_save_LIBS
29933fi
cristy71203402010-06-18 13:12:03 +000029934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
29935$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000029936if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029937 passed=`expr $passed + 1`
29938else
29939 failed=`expr $failed + 1`
29940fi
29941
cristy71203402010-06-18 13:12:03 +000029942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
29943$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000029944 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000029945 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29947$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000029948 have_lcms2='no (failed tests)'
29949 else
29950 LCMS_LIBS='-llcms2'
29951 LIBS="$LCMS_LIBS $LIBS"
cristyad38abe2012-12-23 23:03:21 +000029952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29953$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000029954 have_lcms2='yes'
29955 fi
cristyd09bcf92010-03-25 03:04:45 +000029956 else
cristyad38abe2012-12-23 23:03:21 +000029957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29958$as_echo "no" >&6; }
cristyd09bcf92010-03-25 03:04:45 +000029959 fi
29960fi
29961
cristy71203402010-06-18 13:12:03 +000029962#
29963# Check for LCMS v1 (1.11 or later)
29964#
29965if test $have_lcms2 = 'yes'; then
29966 with_lcms='no'
29967fi
29968
29969have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000029970if test "$with_lcms" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29972$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000029973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
29974$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29976$as_echo "" >&6; }
cristyd09bcf92010-03-25 03:04:45 +000029977 failed=0
29978 passed=0
29979 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029980
29981 # Check for <lcms.h>
29982 if test "$have_lcms_header" != 'yes'; then
29983 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029984if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029985 have_lcms_header='yes'
29986fi
29987
29988
cristy71203402010-06-18 13:12:03 +000029989 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029990 passed=`expr $passed + 1`
29991
cristy8b350f62009-11-15 23:12:43 +000029992$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029993
cristy71203402010-06-18 13:12:03 +000029994 fi
29995 fi
29996
29997 # Check for <lcms/lcms.h>
29998 if test "$have_lcms_header" != 'yes'; then
29999 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 +000030000if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030001 have_lcms_header='yes'
30002fi
30003
30004
cristy71203402010-06-18 13:12:03 +000030005 if test "$have_lcms_header" = 'yes'; then
30006 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030007
cristy8b350f62009-11-15 23:12:43 +000030008$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030009
cristy71203402010-06-18 13:12:03 +000030010 fi
cristy3ed852e2009-09-05 21:47:34 +000030011 fi
cristy71203402010-06-18 13:12:03 +000030012
30013 # Failed to find lcms header?
30014 if test "$have_lcms_header" != 'yes'; then
30015 failed=`expr $failed + 1`
30016 fi
30017
30018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
30019$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030020if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030021 $as_echo_n "(cached) " >&6
30022else
30023 ac_check_lib_save_LIBS=$LIBS
30024LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030025cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030026/* end confdefs.h. */
30027
30028/* Override any GCC internal prototype to avoid an error.
30029 Use char because int might match the return type of a GCC
30030 builtin and then its argument prototype would still apply. */
30031#ifdef __cplusplus
30032extern "C"
30033#endif
cristy71203402010-06-18 13:12:03 +000030034char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030035int
30036main ()
30037{
cristy71203402010-06-18 13:12:03 +000030038return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030039 ;
30040 return 0;
30041}
30042_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030043if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030044 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000030045else
cristy71203402010-06-18 13:12:03 +000030046 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000030047fi
cristy8b350f62009-11-15 23:12:43 +000030048rm -f core conftest.err conftest.$ac_objext \
30049 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030050LIBS=$ac_check_lib_save_LIBS
30051fi
cristy71203402010-06-18 13:12:03 +000030052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
30053$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030054if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030055 passed=`expr $passed + 1`
30056else
30057 failed=`expr $failed + 1`
30058fi
30059
cristy8b350f62009-11-15 23:12:43 +000030060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030061$as_echo_n "checking if LCMS package is complete... " >&6; }
30062 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030063 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30065$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000030066 have_lcms='no (failed tests)'
30067 else
30068 LCMS_LIBS='-llcms'
30069 LIBS="$LCMS_LIBS $LIBS"
cristyad38abe2012-12-23 23:03:21 +000030070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30071$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000030072 have_lcms='yes'
30073 fi
cristy3ed852e2009-09-05 21:47:34 +000030074 else
cristyad38abe2012-12-23 23:03:21 +000030075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30076$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030077 fi
30078fi
cristy71203402010-06-18 13:12:03 +000030079
cristy73bd4a52010-10-05 11:24:23 +000030080 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30081 LCMS_DELEGATE_TRUE=
30082 LCMS_DELEGATE_FALSE='#'
30083else
30084 LCMS_DELEGATE_TRUE='#'
30085 LCMS_DELEGATE_FALSE=
30086fi
30087
cristy71203402010-06-18 13:12:03 +000030088if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30089
30090$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
30091
30092fi
30093
cristy3ed852e2009-09-05 21:47:34 +000030094
30095
30096
30097#
cristy99db3872014-01-01 15:11:34 +000030098# Check for the OpenJP2 delegate library.
30099#
30100
30101# Check whether --with-openjp2 was given.
30102if test "${with_openjp2+set}" = set; then :
30103 withval=$with_openjp2; with_openjp2=$withval
30104else
30105 with_openjp2='yes'
30106fi
30107
30108
30109if test "$with_openjp2" != 'yes'; then
30110 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openjp2=$with_openjp2 "
30111fi
30112
30113have_openjp2='no'
30114LIBOPENJP2_CFLAGS=""
30115LIBOPENJP2_LIBS=""
30116LIBOPENJP2_PKG=""
30117if test "x$with_openjp2" = "xyes"; then
30118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30119$as_echo "-------------------------------------------------------------" >&6; }
30120
30121pkg_failed=no
30122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBOPENJP2" >&5
30123$as_echo_n "checking for LIBOPENJP2... " >&6; }
30124
30125if test -n "$LIBOPENJP2_CFLAGS"; then
30126 pkg_cv_LIBOPENJP2_CFLAGS="$LIBOPENJP2_CFLAGS"
30127 elif test -n "$PKG_CONFIG"; then
30128 if test -n "$PKG_CONFIG" && \
30129 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenjp2 >= 2.0.0\""; } >&5
30130 ($PKG_CONFIG --exists --print-errors "libopenjp2 >= 2.0.0") 2>&5
30131 ac_status=$?
30132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30133 test $ac_status = 0; }; then
30134 pkg_cv_LIBOPENJP2_CFLAGS=`$PKG_CONFIG --cflags "libopenjp2 >= 2.0.0" 2>/dev/null`
30135else
30136 pkg_failed=yes
30137fi
30138 else
30139 pkg_failed=untried
30140fi
30141if test -n "$LIBOPENJP2_LIBS"; then
30142 pkg_cv_LIBOPENJP2_LIBS="$LIBOPENJP2_LIBS"
30143 elif test -n "$PKG_CONFIG"; then
30144 if test -n "$PKG_CONFIG" && \
30145 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenjp2 >= 2.0.0\""; } >&5
30146 ($PKG_CONFIG --exists --print-errors "libopenjp2 >= 2.0.0") 2>&5
30147 ac_status=$?
30148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30149 test $ac_status = 0; }; then
30150 pkg_cv_LIBOPENJP2_LIBS=`$PKG_CONFIG --libs "libopenjp2 >= 2.0.0" 2>/dev/null`
30151else
30152 pkg_failed=yes
30153fi
30154 else
30155 pkg_failed=untried
30156fi
30157
30158
30159
30160if test $pkg_failed = yes; then
30161
30162if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30163 _pkg_short_errors_supported=yes
30164else
30165 _pkg_short_errors_supported=no
30166fi
30167 if test $_pkg_short_errors_supported = yes; then
30168 LIBOPENJP2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libopenjp2 >= 2.0.0" 2>&1`
30169 else
30170 LIBOPENJP2_PKG_ERRORS=`$PKG_CONFIG --print-errors "libopenjp2 >= 2.0.0" 2>&1`
30171 fi
30172 # Put the nasty error message in config.log where it belongs
30173 echo "$LIBOPENJP2_PKG_ERRORS" >&5
30174
30175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30176$as_echo "no" >&6; }
30177 have_openjp2=no
30178elif test $pkg_failed = untried; then
30179 have_openjp2=no
30180else
30181 LIBOPENJP2_CFLAGS=$pkg_cv_LIBOPENJP2_CFLAGS
30182 LIBOPENJP2_LIBS=$pkg_cv_LIBOPENJP2_LIBS
30183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30184$as_echo "yes" >&6; }
30185 have_openjp2=yes
30186fi
30187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30188$as_echo "" >&6; }
30189fi
30190
30191if test "$have_openjp2" = 'yes'; then
30192
30193$as_echo "#define LIBOPENJP2_DELEGATE 1" >>confdefs.h
30194
30195 if test "$build_modules" = 'no'; then
30196 CFLAGS="$LIBOPENJP2_CFLAGS $CFLAGS"
30197 fi
30198fi
30199
30200 if test "$have_openjp2" = 'yes'; then
30201 LIBOPENJP2_DELEGATE_TRUE=
30202 LIBOPENJP2_DELEGATE_FALSE='#'
30203else
30204 LIBOPENJP2_DELEGATE_TRUE='#'
30205 LIBOPENJP2_DELEGATE_FALSE=
30206fi
30207
30208
30209
30210
30211
30212
30213#
cristy3ed852e2009-09-05 21:47:34 +000030214# Check for the LQR (Liquid Rescale) delegate library.
30215#
30216
30217# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000030218if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030219 withval=$with_lqr; with_lqr=$withval
30220else
30221 with_lqr='yes'
30222fi
30223
30224
30225if test "$with_lqr" != 'yes'; then
30226 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
30227fi
30228
30229have_lqr='no'
30230LQR_CFLAGS=""
30231LQR_LIBS=""
30232LQR_PKG=""
30233if test "x$with_lqr" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30235$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030236
30237pkg_failed=no
30238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
30239$as_echo_n "checking for LQR... " >&6; }
30240
30241if test -n "$LQR_CFLAGS"; then
30242 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
30243 elif test -n "$PKG_CONFIG"; then
30244 if test -n "$PKG_CONFIG" && \
30245 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30246 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30247 ac_status=$?
30248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30249 test $ac_status = 0; }; then
30250 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
30251else
30252 pkg_failed=yes
30253fi
30254 else
30255 pkg_failed=untried
30256fi
30257if test -n "$LQR_LIBS"; then
30258 pkg_cv_LQR_LIBS="$LQR_LIBS"
30259 elif test -n "$PKG_CONFIG"; then
30260 if test -n "$PKG_CONFIG" && \
30261 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30262 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30263 ac_status=$?
30264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30265 test $ac_status = 0; }; then
30266 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
30267else
30268 pkg_failed=yes
30269fi
30270 else
30271 pkg_failed=untried
30272fi
30273
30274
30275
30276if test $pkg_failed = yes; then
30277
30278if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30279 _pkg_short_errors_supported=yes
30280else
30281 _pkg_short_errors_supported=no
30282fi
30283 if test $_pkg_short_errors_supported = yes; then
30284 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
30285 else
30286 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
30287 fi
30288 # Put the nasty error message in config.log where it belongs
30289 echo "$LQR_PKG_ERRORS" >&5
30290
30291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30292$as_echo "no" >&6; }
30293 have_lqr=no
30294elif test $pkg_failed = untried; then
30295 have_lqr=no
30296else
30297 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
30298 LQR_LIBS=$pkg_cv_LQR_LIBS
30299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30300$as_echo "yes" >&6; }
30301 have_lqr=yes
30302fi
cristyad38abe2012-12-23 23:03:21 +000030303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30304$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030305fi
30306
30307if test "$have_lqr" = 'yes'; then
30308
cristy8b350f62009-11-15 23:12:43 +000030309$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030310
30311 CFLAGS="$LQR_CFLAGS $CFLAGS"
30312fi
30313
cristy73bd4a52010-10-05 11:24:23 +000030314 if test "$have_lqr" = 'yes'; then
30315 LQR_DELEGATE_TRUE=
30316 LQR_DELEGATE_FALSE='#'
30317else
30318 LQR_DELEGATE_TRUE='#'
30319 LQR_DELEGATE_FALSE=
30320fi
30321
cristy3ed852e2009-09-05 21:47:34 +000030322
30323
30324
30325
cristy81beccd2011-10-03 18:17:24 +000030326# Disable LZMA (lzma library)
cristyfbb0ef02010-12-19 02:32:11 +000030327
30328# Check whether --with-lzma was given.
30329if test "${with_lzma+set}" = set; then :
30330 withval=$with_lzma; with_lzma=$withval
30331else
30332 with_lzma='yes'
30333fi
30334
cristy81beccd2011-10-03 18:17:24 +000030335if test "$with_lzma" != 'yes' ; then
cristyfbb0ef02010-12-19 02:32:11 +000030336 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
30337fi
30338
cristyb94e5002011-11-14 13:20:10 +000030339LZMA_PKG=""
30340if test "x$with_lzma" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30342$as_echo "-------------------------------------------------------------" >&6; }
cristyb94e5002011-11-14 13:20:10 +000030343
30344pkg_failed=no
30345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
cristyfbb0ef02010-12-19 02:32:11 +000030346$as_echo_n "checking for LZMA... " >&6; }
cristyb94e5002011-11-14 13:20:10 +000030347
30348if test -n "$LZMA_CFLAGS"; then
30349 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
30350 elif test -n "$PKG_CONFIG"; then
30351 if test -n "$PKG_CONFIG" && \
30352 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30353 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30354 ac_status=$?
30355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30356 test $ac_status = 0; }; then
30357 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null`
30358else
30359 pkg_failed=yes
30360fi
30361 else
30362 pkg_failed=untried
30363fi
30364if test -n "$LZMA_LIBS"; then
30365 pkg_cv_LZMA_LIBS="$LZMA_LIBS"
30366 elif test -n "$PKG_CONFIG"; then
30367 if test -n "$PKG_CONFIG" && \
30368 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30369 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30370 ac_status=$?
30371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30372 test $ac_status = 0; }; then
30373 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null`
30374else
30375 pkg_failed=yes
30376fi
30377 else
30378 pkg_failed=untried
30379fi
30380
30381
30382
30383if test $pkg_failed = yes; then
30384
30385if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30386 _pkg_short_errors_supported=yes
30387else
30388 _pkg_short_errors_supported=no
30389fi
30390 if test $_pkg_short_errors_supported = yes; then
30391 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "liblzma >= 2.9.0" 2>&1`
30392 else
30393 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "liblzma >= 2.9.0" 2>&1`
30394 fi
30395 # Put the nasty error message in config.log where it belongs
30396 echo "$LZMA_PKG_ERRORS" >&5
30397
30398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30399$as_echo "no" >&6; }
30400 have_lzma=no
30401elif test $pkg_failed = untried; then
30402 have_lzma=no
30403else
30404 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
30405 LZMA_LIBS=$pkg_cv_LZMA_LIBS
30406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30407$as_echo "yes" >&6; }
30408 have_lzma=yes
30409fi
cristyad38abe2012-12-23 23:03:21 +000030410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30411$as_echo "" >&6; }
cristyfbb0ef02010-12-19 02:32:11 +000030412fi
30413
cristyb94e5002011-11-14 13:20:10 +000030414if test "$have_lzma" = 'yes'; then
cristyfbb0ef02010-12-19 02:32:11 +000030415
30416$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
30417
cristyc6722092012-10-14 00:19:31 +000030418 if test "$build_modules" = 'no'; then
cristyb94e5002011-11-14 13:20:10 +000030419 CPPFLAGS="$LZMA_CFLAGS $CPPFLAGS"
cristyfbb0ef02010-12-19 02:32:11 +000030420 fi
cristyfbb0ef02010-12-19 02:32:11 +000030421fi
cristyb94e5002011-11-14 13:20:10 +000030422
cristyfbb0ef02010-12-19 02:32:11 +000030423 if test "$have_lzma" = 'yes'; then
30424 LZMA_DELEGATE_TRUE=
30425 LZMA_DELEGATE_FALSE='#'
30426else
30427 LZMA_DELEGATE_TRUE='#'
30428 LZMA_DELEGATE_FALSE=
30429fi
30430
30431
30432
30433
cristyb94e5002011-11-14 13:20:10 +000030434
cristy3ed852e2009-09-05 21:47:34 +000030435#
cristy854c9cf2013-08-10 21:03:06 +000030436# Check for MUPDF delegate library.
30437#
30438
30439# Check whether --with-mupdf was given.
30440if test "${with_mupdf+set}" = set; then :
30441 withval=$with_mupdf; with_mupdf=$withval
30442else
30443 with_mupdf='no'
30444fi
30445
30446
30447if test "$with_mupdf" != 'yes'; then
30448 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-mupdf=$with_mupdf "
30449fi
30450
30451have_mupdf='no'
30452MUPDF_LIBS=''
30453if test "$with_mupdf" != 'no'; then
30454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30455$as_echo "-------------------------------------------------------------" >&6; }
30456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MUPDF" >&5
30457$as_echo_n "checking for MUPDF... " >&6; }
30458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30459$as_echo "" >&6; }
30460 failed=0
30461 passed=0
30462 ac_fn_c_check_header_mongrel "$LINENO" "mupdf/fitz.h" "ac_cv_header_mupdf_fitz_h" "$ac_includes_default"
30463if test "x$ac_cv_header_mupdf_fitz_h" = xyes; then :
30464 passed=`expr $passed + 1`
30465else
30466 failed=`expr $failed + 1`
30467fi
30468
30469
30470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fz_new_context in -lmupdf" >&5
30471$as_echo_n "checking for fz_new_context in -lmupdf... " >&6; }
30472if ${ac_cv_lib_mupdf_fz_new_context+:} false; then :
30473 $as_echo_n "(cached) " >&6
30474else
30475 ac_check_lib_save_LIBS=$LIBS
30476LIBS="-lmupdf -lmupdf $FREETYPE_LIBS $LIBS"
30477cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30478/* end confdefs.h. */
30479
30480/* Override any GCC internal prototype to avoid an error.
30481 Use char because int might match the return type of a GCC
30482 builtin and then its argument prototype would still apply. */
30483#ifdef __cplusplus
30484extern "C"
30485#endif
30486char fz_new_context ();
30487int
30488main ()
30489{
30490return fz_new_context ();
30491 ;
30492 return 0;
30493}
30494_ACEOF
30495if ac_fn_c_try_link "$LINENO"; then :
30496 ac_cv_lib_mupdf_fz_new_context=yes
30497else
30498 ac_cv_lib_mupdf_fz_new_context=no
30499fi
30500rm -f core conftest.err conftest.$ac_objext \
30501 conftest$ac_exeext conftest.$ac_ext
30502LIBS=$ac_check_lib_save_LIBS
30503fi
30504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mupdf_fz_new_context" >&5
30505$as_echo "$ac_cv_lib_mupdf_fz_new_context" >&6; }
30506if test "x$ac_cv_lib_mupdf_fz_new_context" = xyes; then :
30507 passed=`expr $passed + 1`
30508else
30509 failed=`expr $failed + 1`
30510fi
30511
30512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MUPDF package is complete" >&5
30513$as_echo_n "checking if MUPDF package is complete... " >&6; }
30514 if test $passed -gt 0; then
30515 if test $failed -gt 0; then
30516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30517$as_echo "no -- some components failed test" >&6; }
30518 have_mupdf='no (failed tests)'
30519 else
30520 MUPDF_LIBS='-lmupdf'
30521 LIBS="$MUPDF_LIBS $LIBS"
30522
30523$as_echo "#define MUPDF_DELEGATE 1" >>confdefs.h
30524
30525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30526$as_echo "yes" >&6; }
30527 have_mupdf='yes'
30528 fi
30529 else
30530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30531$as_echo "no" >&6; }
30532 fi
30533fi
30534 if test "$have_mupdf" = 'yes'; then
30535 MUPDF_DELEGATE_TRUE=
30536 MUPDF_DELEGATE_FALSE='#'
30537else
30538 MUPDF_DELEGATE_TRUE='#'
30539 MUPDF_DELEGATE_FALSE=
30540fi
30541
30542
30543
30544
30545#
cristy3ed852e2009-09-05 21:47:34 +000030546# Check for the OpenEXR delegate library.
30547#
30548
30549# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000030550if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030551 withval=$with_openexr; with_openexr=$withval
30552else
30553 with_openexr='yes'
30554fi
30555
30556
30557if test "$with_openexr" != 'yes'; then
30558 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
30559fi
30560
30561have_openexr='no'
30562OPENEXR_CFLAGS=""
30563OPENEXR_LIBS=""
30564OPENEXR_PKG=""
30565if test "x$with_openexr" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30567$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030568
30569pkg_failed=no
30570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
30571$as_echo_n "checking for OPENEXR... " >&6; }
30572
30573if test -n "$OPENEXR_CFLAGS"; then
30574 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
30575 elif test -n "$PKG_CONFIG"; then
30576 if test -n "$PKG_CONFIG" && \
30577 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30578 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30579 ac_status=$?
30580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30581 test $ac_status = 0; }; then
30582 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
30583else
30584 pkg_failed=yes
30585fi
30586 else
30587 pkg_failed=untried
30588fi
30589if test -n "$OPENEXR_LIBS"; then
30590 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
30591 elif test -n "$PKG_CONFIG"; then
30592 if test -n "$PKG_CONFIG" && \
30593 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30594 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30595 ac_status=$?
30596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30597 test $ac_status = 0; }; then
30598 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
30599else
30600 pkg_failed=yes
30601fi
30602 else
30603 pkg_failed=untried
30604fi
30605
30606
30607
30608if test $pkg_failed = yes; then
30609
30610if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30611 _pkg_short_errors_supported=yes
30612else
30613 _pkg_short_errors_supported=no
30614fi
30615 if test $_pkg_short_errors_supported = yes; then
30616 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
30617 else
30618 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
30619 fi
30620 # Put the nasty error message in config.log where it belongs
30621 echo "$OPENEXR_PKG_ERRORS" >&5
30622
30623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30624$as_echo "no" >&6; }
30625 have_openexr=no
30626elif test $pkg_failed = untried; then
30627 have_openexr=no
30628else
30629 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
30630 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
30631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30632$as_echo "yes" >&6; }
30633 have_openexr=yes
30634fi
cristyad38abe2012-12-23 23:03:21 +000030635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30636$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030637fi
30638
30639if test "$have_openexr" = 'yes'; then
30640
cristy8b350f62009-11-15 23:12:43 +000030641$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030642
cristyc6722092012-10-14 00:19:31 +000030643 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000030644 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
30645 fi
30646fi
30647
cristy73bd4a52010-10-05 11:24:23 +000030648 if test "$have_openexr" = 'yes'; then
30649 OPENEXR_DELEGATE_TRUE=
30650 OPENEXR_DELEGATE_FALSE='#'
30651else
30652 OPENEXR_DELEGATE_TRUE='#'
30653 OPENEXR_DELEGATE_FALSE=
30654fi
30655
cristy3ed852e2009-09-05 21:47:34 +000030656
30657
30658
30659
30660#
cristy41cbe8a2011-10-27 01:35:18 +000030661# Check for PANGO delegate library.
30662#
30663
30664# Check whether --with-pango was given.
30665if test "${with_pango+set}" = set; then :
30666 withval=$with_pango; with_pango=$withval
30667else
cristyfc3d0222012-02-07 15:05:57 +000030668 with_pango='yes'
cristy41cbe8a2011-10-27 01:35:18 +000030669fi
30670
30671
30672if test "$with_pango" != 'yes'; then
30673 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
30674fi
30675
30676have_pango='no'
cristya054b762012-03-26 23:16:00 +000030677have_pangocairo='no'
cristy41cbe8a2011-10-27 01:35:18 +000030678PANGO_CFLAGS=""
30679PANGO_LIBS=""
30680PANGO_PKG=""
30681if test "x$with_pango" = "xyes"; then
30682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30683$as_echo "-------------------------------------------------------------" >&6; }
30684
30685pkg_failed=no
30686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30687$as_echo_n "checking for PANGO... " >&6; }
30688
30689if test -n "$PANGO_CFLAGS"; then
30690 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30691 elif test -n "$PKG_CONFIG"; then
30692 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030693 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30694 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030695 ac_status=$?
30696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30697 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030698 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030699else
30700 pkg_failed=yes
30701fi
30702 else
30703 pkg_failed=untried
30704fi
30705if test -n "$PANGO_LIBS"; then
30706 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30707 elif test -n "$PKG_CONFIG"; then
30708 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030709 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30710 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030711 ac_status=$?
30712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30713 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030714 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030715else
30716 pkg_failed=yes
30717fi
30718 else
30719 pkg_failed=untried
30720fi
30721
30722
30723
30724if test $pkg_failed = yes; then
30725
30726if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30727 _pkg_short_errors_supported=yes
30728else
30729 _pkg_short_errors_supported=no
30730fi
30731 if test $_pkg_short_errors_supported = yes; then
cristya054b762012-03-26 23:16:00 +000030732 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030733 else
cristya054b762012-03-26 23:16:00 +000030734 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030735 fi
30736 # Put the nasty error message in config.log where it belongs
30737 echo "$PANGO_PKG_ERRORS" >&5
30738
30739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30740$as_echo "no" >&6; }
cristya054b762012-03-26 23:16:00 +000030741 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030742elif test $pkg_failed = untried; then
cristya054b762012-03-26 23:16:00 +000030743 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030744else
30745 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30746 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30748$as_echo "yes" >&6; }
cristya054b762012-03-26 23:16:00 +000030749 have_pangocairo=yes
cristy41cbe8a2011-10-27 01:35:18 +000030750fi
30751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30752$as_echo "" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000030753
30754pkg_failed=no
30755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30756$as_echo_n "checking for PANGO... " >&6; }
30757
30758if test -n "$PANGO_CFLAGS"; then
30759 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30760 elif test -n "$PKG_CONFIG"; then
30761 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030762 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30763 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030764 ac_status=$?
30765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30766 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030767 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030768else
30769 pkg_failed=yes
30770fi
30771 else
30772 pkg_failed=untried
30773fi
30774if test -n "$PANGO_LIBS"; then
30775 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30776 elif test -n "$PKG_CONFIG"; then
30777 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030778 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30779 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030780 ac_status=$?
30781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30782 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030783 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030784else
30785 pkg_failed=yes
30786fi
30787 else
30788 pkg_failed=untried
30789fi
30790
30791
30792
30793if test $pkg_failed = yes; then
30794
30795if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30796 _pkg_short_errors_supported=yes
30797else
30798 _pkg_short_errors_supported=no
30799fi
30800 if test $_pkg_short_errors_supported = yes; then
cristy2542fc62011-12-06 17:50:25 +000030801 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030802 else
cristy2542fc62011-12-06 17:50:25 +000030803 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030804 fi
30805 # Put the nasty error message in config.log where it belongs
30806 echo "$PANGO_PKG_ERRORS" >&5
30807
30808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30809$as_echo "no" >&6; }
30810 have_pango=no
30811elif test $pkg_failed = untried; then
30812 have_pango=no
30813else
30814 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30815 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30817$as_echo "yes" >&6; }
30818 have_pango=yes
30819fi
30820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30821$as_echo "" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000030822fi
30823
30824if test "$have_pango" = 'yes'; then
30825
30826$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
30827
cristyc6722092012-10-14 00:19:31 +000030828 if test "$build_modules" = 'no'; then
cristy41cbe8a2011-10-27 01:35:18 +000030829 CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS"
30830 fi
30831fi
30832
cristya054b762012-03-26 23:16:00 +000030833if test "$have_pangocairo" = 'yes'; then
cristy41cbe8a2011-10-27 01:35:18 +000030834
cristya054b762012-03-26 23:16:00 +000030835$as_echo "#define PANGOCAIRO_DELEGATE 1" >>confdefs.h
cristy41cbe8a2011-10-27 01:35:18 +000030836
cristyc6722092012-10-14 00:19:31 +000030837 if test "$build_modules" = 'no'; then
cristya054b762012-03-26 23:16:00 +000030838 CPPFLAGS="$PANGOCAIRO_CFLAGS $CPPFLAGS"
cristy41cbe8a2011-10-27 01:35:18 +000030839 fi
30840fi
30841
30842 if test "$have_pango" = 'yes'; then
30843 PANGO_DELEGATE_TRUE=
30844 PANGO_DELEGATE_FALSE='#'
30845else
30846 PANGO_DELEGATE_TRUE='#'
30847 PANGO_DELEGATE_FALSE=
30848fi
30849
cristya054b762012-03-26 23:16:00 +000030850 if test "$have_pangocairo" = 'yes'; then
30851 PANGOCAIRO_DELEGATE_TRUE=
30852 PANGOCAIRO_DELEGATE_FALSE='#'
cristy41cbe8a2011-10-27 01:35:18 +000030853else
cristya054b762012-03-26 23:16:00 +000030854 PANGOCAIRO_DELEGATE_TRUE='#'
30855 PANGOCAIRO_DELEGATE_FALSE=
cristy41cbe8a2011-10-27 01:35:18 +000030856fi
30857
30858
30859
30860
30861
30862#
cristy3ed852e2009-09-05 21:47:34 +000030863# Check for PNG delegate library.
30864#
30865
30866# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000030867if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030868 withval=$with_png; with_png=$withval
30869else
30870 with_png='yes'
30871fi
30872
30873
30874if test "$with_png" != 'yes'; then
30875 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
30876fi
30877
cristy81beccd2011-10-03 18:17:24 +000030878have_png='no'
30879PNG_LIBS=''
30880
30881if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000030882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30883$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
30885$as_echo_n "checking for PNG support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30887$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030888 failed=0
30889 passed=0
30890 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
30891if test "x$ac_cv_header_png_h" = xyes; then :
30892 passed=`expr $passed + 1`
30893else
30894 failed=`expr $failed + 1`
cristy64877302011-08-23 19:10:31 +000030895fi
30896
cristy81beccd2011-10-03 18:17:24 +000030897
30898
30899 if test $passed -gt 0; then
glennrp3fc1c212013-01-10 01:52:32 +000030900 for var in 7 6 5 4 2 '' ; do
cristy0615f0e2011-10-12 11:36:46 +000030901 if test "$have_png" = 'no' ; then
30902 if test "x${var}" = 'x' ; then
cristy81beccd2011-10-03 18:17:24 +000030903 pnglib='png'
30904 else
30905 pnglib="png1${var}"
30906 fi
30907
30908# Test for compatible LIBPNG library
30909 failed=0
30910 passed=0
cristy0615f0e2011-10-12 11:36:46 +000030911 if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then
cristy81beccd2011-10-03 18:17:24 +000030912 if test "${pnglib}" != 'png' ; then
30913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
30914$as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
30915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30916/* end confdefs.h. */
30917#include <stdio.h>
30918#include <stdlib.h>
30919#include <png.h>
30920
30921int
30922main ()
30923{
30924
30925#if PNG_LIBPNG_VER_MINOR != ${var}
30926#error LIBPNG library must be version 1${var}!
30927Kaboom, Kaboom
30928#endif
30929return 0;
30930
30931 ;
30932 return 0;
30933}
30934_ACEOF
30935if ac_fn_c_try_compile "$LINENO"; then :
30936 ac_cv_libpng_ok='yes'
30937else
30938 ac_cv_libpng_ok='no'
30939fi
30940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30941 if test "$ac_cv_libpng_ok" = 'yes' ; then
30942 passed=`expr $passed + 1`
cristyad38abe2012-12-23 23:03:21 +000030943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30944$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030945 else
30946 failed=`expr $failed + 1`
cristyad38abe2012-12-23 23:03:21 +000030947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30948$as_echo "no" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030949 fi
30950 else
30951 passed=`expr $passed + 1`
cristyad38abe2012-12-23 23:03:21 +000030952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30953$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030954 fi
30955 fi
30956
30957 if test $passed -gt 0 -a $failed -le 0; then
cristy03f187e2013-01-24 00:22:19 +000030958 if test "1${var}" = '17' ; then
30959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng17" >&5
30960$as_echo_n "checking for png_get_io_ptr in -lpng17... " >&6; }
30961if ${ac_cv_lib_png17_png_get_io_ptr+:} false; then :
30962 $as_echo_n "(cached) " >&6
30963else
30964 ac_check_lib_save_LIBS=$LIBS
30965LIBS="-lpng17 $LIBS"
30966cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30967/* end confdefs.h. */
30968
30969/* Override any GCC internal prototype to avoid an error.
30970 Use char because int might match the return type of a GCC
30971 builtin and then its argument prototype would still apply. */
30972#ifdef __cplusplus
30973extern "C"
30974#endif
30975char png_get_io_ptr ();
30976int
30977main ()
30978{
30979return png_get_io_ptr ();
30980 ;
30981 return 0;
30982}
30983_ACEOF
30984if ac_fn_c_try_link "$LINENO"; then :
30985 ac_cv_lib_png17_png_get_io_ptr=yes
30986else
30987 ac_cv_lib_png17_png_get_io_ptr=no
30988fi
30989rm -f core conftest.err conftest.$ac_objext \
30990 conftest$ac_exeext conftest.$ac_ext
30991LIBS=$ac_check_lib_save_LIBS
30992fi
30993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png17_png_get_io_ptr" >&5
30994$as_echo "$ac_cv_lib_png17_png_get_io_ptr" >&6; }
30995if test "x$ac_cv_lib_png17_png_get_io_ptr" = xyes; then :
30996 passed=`expr $passed + 1`
30997else
30998 failed=`expr $failed + 1`
30999fi
31000
31001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng17" >&5
31002$as_echo_n "checking for png_longjmp in -lpng17... " >&6; }
31003if ${ac_cv_lib_png17_png_longjmp+:} false; then :
31004 $as_echo_n "(cached) " >&6
31005else
31006 ac_check_lib_save_LIBS=$LIBS
31007LIBS="-lpng17 $LIBS"
31008cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31009/* end confdefs.h. */
31010
31011/* Override any GCC internal prototype to avoid an error.
31012 Use char because int might match the return type of a GCC
31013 builtin and then its argument prototype would still apply. */
31014#ifdef __cplusplus
31015extern "C"
31016#endif
31017char png_longjmp ();
31018int
31019main ()
31020{
31021return png_longjmp ();
31022 ;
31023 return 0;
31024}
31025_ACEOF
31026if ac_fn_c_try_link "$LINENO"; then :
31027 ac_cv_lib_png17_png_longjmp=yes
31028else
31029 ac_cv_lib_png17_png_longjmp=no
31030fi
31031rm -f core conftest.err conftest.$ac_objext \
31032 conftest$ac_exeext conftest.$ac_ext
31033LIBS=$ac_check_lib_save_LIBS
31034fi
31035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png17_png_longjmp" >&5
31036$as_echo "$ac_cv_lib_png17_png_longjmp" >&6; }
31037if test "x$ac_cv_lib_png17_png_longjmp" = xyes; then :
31038 passed=`expr $passed + 1`
31039else
31040 failed=`expr $failed + 1`
31041fi
31042
31043 fi
31044 if test "1${var}" = '16' ; then
31045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng16" >&5
31046$as_echo_n "checking for png_get_io_ptr in -lpng16... " >&6; }
31047if ${ac_cv_lib_png16_png_get_io_ptr+:} false; then :
31048 $as_echo_n "(cached) " >&6
31049else
31050 ac_check_lib_save_LIBS=$LIBS
31051LIBS="-lpng16 $LIBS"
31052cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31053/* end confdefs.h. */
31054
31055/* Override any GCC internal prototype to avoid an error.
31056 Use char because int might match the return type of a GCC
31057 builtin and then its argument prototype would still apply. */
31058#ifdef __cplusplus
31059extern "C"
31060#endif
31061char png_get_io_ptr ();
31062int
31063main ()
31064{
31065return png_get_io_ptr ();
31066 ;
31067 return 0;
31068}
31069_ACEOF
31070if ac_fn_c_try_link "$LINENO"; then :
31071 ac_cv_lib_png16_png_get_io_ptr=yes
31072else
31073 ac_cv_lib_png16_png_get_io_ptr=no
31074fi
31075rm -f core conftest.err conftest.$ac_objext \
31076 conftest$ac_exeext conftest.$ac_ext
31077LIBS=$ac_check_lib_save_LIBS
31078fi
31079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png16_png_get_io_ptr" >&5
31080$as_echo "$ac_cv_lib_png16_png_get_io_ptr" >&6; }
31081if test "x$ac_cv_lib_png16_png_get_io_ptr" = xyes; then :
31082 passed=`expr $passed + 1`
31083else
31084 failed=`expr $failed + 1`
31085fi
31086
31087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng16" >&5
31088$as_echo_n "checking for png_longjmp in -lpng16... " >&6; }
31089if ${ac_cv_lib_png16_png_longjmp+:} false; then :
31090 $as_echo_n "(cached) " >&6
31091else
31092 ac_check_lib_save_LIBS=$LIBS
31093LIBS="-lpng16 $LIBS"
31094cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31095/* end confdefs.h. */
31096
31097/* Override any GCC internal prototype to avoid an error.
31098 Use char because int might match the return type of a GCC
31099 builtin and then its argument prototype would still apply. */
31100#ifdef __cplusplus
31101extern "C"
31102#endif
31103char png_longjmp ();
31104int
31105main ()
31106{
31107return png_longjmp ();
31108 ;
31109 return 0;
31110}
31111_ACEOF
31112if ac_fn_c_try_link "$LINENO"; then :
31113 ac_cv_lib_png16_png_longjmp=yes
31114else
31115 ac_cv_lib_png16_png_longjmp=no
31116fi
31117rm -f core conftest.err conftest.$ac_objext \
31118 conftest$ac_exeext conftest.$ac_ext
31119LIBS=$ac_check_lib_save_LIBS
31120fi
31121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png16_png_longjmp" >&5
31122$as_echo "$ac_cv_lib_png16_png_longjmp" >&6; }
31123if test "x$ac_cv_lib_png16_png_longjmp" = xyes; then :
31124 passed=`expr $passed + 1`
31125else
31126 failed=`expr $failed + 1`
31127fi
31128
31129 fi
cristy81beccd2011-10-03 18:17:24 +000031130 if test "1${var}" = '15' ; then
31131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
31132$as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
31133if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
31134 $as_echo_n "(cached) " >&6
31135else
31136 ac_check_lib_save_LIBS=$LIBS
31137LIBS="-lpng15 $LIBS"
31138cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31139/* end confdefs.h. */
31140
31141/* Override any GCC internal prototype to avoid an error.
31142 Use char because int might match the return type of a GCC
31143 builtin and then its argument prototype would still apply. */
31144#ifdef __cplusplus
31145extern "C"
31146#endif
31147char png_get_io_ptr ();
31148int
31149main ()
31150{
31151return png_get_io_ptr ();
31152 ;
31153 return 0;
31154}
31155_ACEOF
31156if ac_fn_c_try_link "$LINENO"; then :
31157 ac_cv_lib_png15_png_get_io_ptr=yes
31158else
31159 ac_cv_lib_png15_png_get_io_ptr=no
31160fi
31161rm -f core conftest.err conftest.$ac_objext \
31162 conftest$ac_exeext conftest.$ac_ext
31163LIBS=$ac_check_lib_save_LIBS
31164fi
31165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
31166$as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
31167if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
31168 passed=`expr $passed + 1`
31169else
31170 failed=`expr $failed + 1`
31171fi
31172
31173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
31174$as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
31175if ${ac_cv_lib_png15_png_longjmp+:} false; then :
31176 $as_echo_n "(cached) " >&6
31177else
31178 ac_check_lib_save_LIBS=$LIBS
31179LIBS="-lpng15 $LIBS"
31180cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31181/* end confdefs.h. */
31182
31183/* Override any GCC internal prototype to avoid an error.
31184 Use char because int might match the return type of a GCC
31185 builtin and then its argument prototype would still apply. */
31186#ifdef __cplusplus
31187extern "C"
31188#endif
31189char png_longjmp ();
31190int
31191main ()
31192{
31193return png_longjmp ();
31194 ;
31195 return 0;
31196}
31197_ACEOF
31198if ac_fn_c_try_link "$LINENO"; then :
31199 ac_cv_lib_png15_png_longjmp=yes
31200else
31201 ac_cv_lib_png15_png_longjmp=no
31202fi
31203rm -f core conftest.err conftest.$ac_objext \
31204 conftest$ac_exeext conftest.$ac_ext
31205LIBS=$ac_check_lib_save_LIBS
31206fi
31207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
31208$as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
31209if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
31210 passed=`expr $passed + 1`
31211else
31212 failed=`expr $failed + 1`
31213fi
31214
31215 fi
31216 if test "1${var}" = '14' ; then
31217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
31218$as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
31219if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
31220 $as_echo_n "(cached) " >&6
31221else
31222 ac_check_lib_save_LIBS=$LIBS
31223LIBS="-lpng14 $LIBS"
31224cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31225/* end confdefs.h. */
31226
31227/* Override any GCC internal prototype to avoid an error.
31228 Use char because int might match the return type of a GCC
31229 builtin and then its argument prototype would still apply. */
31230#ifdef __cplusplus
31231extern "C"
31232#endif
31233char png_get_io_ptr ();
31234int
31235main ()
31236{
31237return png_get_io_ptr ();
31238 ;
31239 return 0;
31240}
31241_ACEOF
31242if ac_fn_c_try_link "$LINENO"; then :
31243 ac_cv_lib_png14_png_get_io_ptr=yes
31244else
31245 ac_cv_lib_png14_png_get_io_ptr=no
31246fi
31247rm -f core conftest.err conftest.$ac_objext \
31248 conftest$ac_exeext conftest.$ac_ext
31249LIBS=$ac_check_lib_save_LIBS
31250fi
31251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
31252$as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
31253if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
31254 passed=`expr $passed + 1`
31255else
31256 failed=`expr $failed + 1`
31257fi
31258
31259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
31260$as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
31261if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
31262 $as_echo_n "(cached) " >&6
31263else
31264 ac_check_lib_save_LIBS=$LIBS
31265LIBS="-lpng14 $LIBS"
31266cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31267/* end confdefs.h. */
31268
31269/* Override any GCC internal prototype to avoid an error.
31270 Use char because int might match the return type of a GCC
31271 builtin and then its argument prototype would still apply. */
31272#ifdef __cplusplus
31273extern "C"
31274#endif
31275char png_get_io_state ();
31276int
31277main ()
31278{
31279return png_get_io_state ();
31280 ;
31281 return 0;
31282}
31283_ACEOF
31284if ac_fn_c_try_link "$LINENO"; then :
31285 ac_cv_lib_png14_png_get_io_state=yes
31286else
31287 ac_cv_lib_png14_png_get_io_state=no
31288fi
31289rm -f core conftest.err conftest.$ac_objext \
31290 conftest$ac_exeext conftest.$ac_ext
31291LIBS=$ac_check_lib_save_LIBS
31292fi
31293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
31294$as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
31295if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
31296 passed=`expr $passed + 1`
31297else
31298 failed=`expr $failed + 1`
31299fi
31300
31301 fi
31302 if test "1${var}" = '12' ; then
31303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
31304$as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
31305if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
31306 $as_echo_n "(cached) " >&6
31307else
31308 ac_check_lib_save_LIBS=$LIBS
31309LIBS="-lpng12 $LIBS"
31310cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31311/* end confdefs.h. */
31312
31313/* Override any GCC internal prototype to avoid an error.
31314 Use char because int might match the return type of a GCC
31315 builtin and then its argument prototype would still apply. */
31316#ifdef __cplusplus
31317extern "C"
31318#endif
31319char png_get_io_ptr ();
31320int
31321main ()
31322{
31323return png_get_io_ptr ();
31324 ;
31325 return 0;
31326}
31327_ACEOF
31328if ac_fn_c_try_link "$LINENO"; then :
31329 ac_cv_lib_png12_png_get_io_ptr=yes
31330else
31331 ac_cv_lib_png12_png_get_io_ptr=no
31332fi
31333rm -f core conftest.err conftest.$ac_objext \
31334 conftest$ac_exeext conftest.$ac_ext
31335LIBS=$ac_check_lib_save_LIBS
31336fi
31337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
31338$as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
31339if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
31340 passed=`expr $passed + 1`
31341else
31342 failed=`expr $failed + 1`
31343fi
31344
31345 fi
31346 if test "1${var}" = '1' ; then
31347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
31348$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
31349if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
31350 $as_echo_n "(cached) " >&6
31351else
31352 ac_check_lib_save_LIBS=$LIBS
31353LIBS="-lpng $LIBS"
31354cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31355/* end confdefs.h. */
31356
31357/* Override any GCC internal prototype to avoid an error.
31358 Use char because int might match the return type of a GCC
31359 builtin and then its argument prototype would still apply. */
31360#ifdef __cplusplus
31361extern "C"
31362#endif
31363char png_get_io_ptr ();
31364int
31365main ()
31366{
31367return png_get_io_ptr ();
31368 ;
31369 return 0;
31370}
31371_ACEOF
31372if ac_fn_c_try_link "$LINENO"; then :
31373 ac_cv_lib_png_png_get_io_ptr=yes
31374else
31375 ac_cv_lib_png_png_get_io_ptr=no
31376fi
31377rm -f core conftest.err conftest.$ac_objext \
31378 conftest$ac_exeext conftest.$ac_ext
31379LIBS=$ac_check_lib_save_LIBS
31380fi
31381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
31382$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
31383if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
31384 passed=`expr $passed + 1`
31385else
31386 failed=`expr $failed + 1`
31387fi
31388
31389 fi
31390 if test $passed -gt 0 -a $failed -le 0 ; then
31391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
31392$as_echo_n "checking if ${pnglib} package is complete... " >&6; }
31393 if test $passed -gt 0 ; then
31394 if test $failed -gt 0 ; then
cristyad38abe2012-12-23 23:03:21 +000031395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31396$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031397 have_png='no (failed tests)'
31398 else
31399 PNG_LIBS="-l${pnglib}"
31400 LIBS="$PNG_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031401
cristy8b350f62009-11-15 23:12:43 +000031402$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031403
cristyad38abe2012-12-23 23:03:21 +000031404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31405$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031406 have_png='yes'
31407 fi
31408 fi
31409 fi
31410 fi
31411 fi
31412 done
31413 fi
cristy3ed852e2009-09-05 21:47:34 +000031414fi
cristy64877302011-08-23 19:10:31 +000031415
cristy73bd4a52010-10-05 11:24:23 +000031416 if test "$have_png" = 'yes'; then
31417 PNG_DELEGATE_TRUE=
31418 PNG_DELEGATE_FALSE='#'
31419else
31420 PNG_DELEGATE_TRUE='#'
31421 PNG_DELEGATE_FALSE=
31422fi
31423
cristy3ed852e2009-09-05 21:47:34 +000031424
cristy50d3f5c2011-09-10 20:09:06 +000031425
cristy3ed852e2009-09-05 21:47:34 +000031426
31427
31428#
31429# Check for RSVG delegate library.
31430#
31431
31432# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000031433if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031434 withval=$with_rsvg; with_rsvg=$withval
31435else
cristy1164d5f2012-08-15 00:58:25 +000031436 with_rsvg='no'
cristy3ed852e2009-09-05 21:47:34 +000031437fi
31438
31439
31440if test "$with_rsvg" != 'yes'; then
31441 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
31442fi
31443
31444have_rsvg='no'
31445have_cairo='no'
31446RSVG_CFLAGS=""
31447RSVG_LIBS=""
31448RSVG_PKG=""
31449if test "x$with_rsvg" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000031450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31451$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031452
31453pkg_failed=no
31454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
31455$as_echo_n "checking for RSVG... " >&6; }
31456
31457if test -n "$RSVG_CFLAGS"; then
31458 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
31459 elif test -n "$PKG_CONFIG"; then
31460 if test -n "$PKG_CONFIG" && \
31461 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31462 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31463 ac_status=$?
31464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31465 test $ac_status = 0; }; then
31466 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31467else
31468 pkg_failed=yes
31469fi
31470 else
31471 pkg_failed=untried
31472fi
31473if test -n "$RSVG_LIBS"; then
31474 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
31475 elif test -n "$PKG_CONFIG"; then
31476 if test -n "$PKG_CONFIG" && \
31477 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31478 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31479 ac_status=$?
31480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31481 test $ac_status = 0; }; then
31482 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31483else
31484 pkg_failed=yes
31485fi
31486 else
31487 pkg_failed=untried
31488fi
31489
31490
31491
31492if test $pkg_failed = yes; then
31493
31494if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31495 _pkg_short_errors_supported=yes
31496else
31497 _pkg_short_errors_supported=no
31498fi
31499 if test $_pkg_short_errors_supported = yes; then
31500 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31501 else
31502 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31503 fi
31504 # Put the nasty error message in config.log where it belongs
31505 echo "$RSVG_PKG_ERRORS" >&5
31506
31507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31508$as_echo "no" >&6; }
31509 have_rsvg=no
31510elif test $pkg_failed = untried; then
31511 have_rsvg=no
31512else
31513 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
31514 RSVG_LIBS=$pkg_cv_RSVG_LIBS
31515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31516$as_echo "yes" >&6; }
31517 have_rsvg=yes
31518fi
cristyad38abe2012-12-23 23:03:21 +000031519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31520$as_echo "" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031521
31522pkg_failed=no
31523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
31524$as_echo_n "checking for CAIRO_SVG... " >&6; }
31525
31526if test -n "$CAIRO_SVG_CFLAGS"; then
31527 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
31528 elif test -n "$PKG_CONFIG"; then
31529 if test -n "$PKG_CONFIG" && \
31530 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31531 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31532 ac_status=$?
31533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31534 test $ac_status = 0; }; then
31535 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
31536else
31537 pkg_failed=yes
31538fi
31539 else
31540 pkg_failed=untried
31541fi
31542if test -n "$CAIRO_SVG_LIBS"; then
31543 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
31544 elif test -n "$PKG_CONFIG"; then
31545 if test -n "$PKG_CONFIG" && \
31546 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31547 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31548 ac_status=$?
31549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31550 test $ac_status = 0; }; then
31551 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
31552else
31553 pkg_failed=yes
31554fi
31555 else
31556 pkg_failed=untried
31557fi
31558
31559
31560
31561if test $pkg_failed = yes; then
31562
31563if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31564 _pkg_short_errors_supported=yes
31565else
31566 _pkg_short_errors_supported=no
31567fi
31568 if test $_pkg_short_errors_supported = yes; then
31569 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
31570 else
31571 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
31572 fi
31573 # Put the nasty error message in config.log where it belongs
31574 echo "$CAIRO_SVG_PKG_ERRORS" >&5
31575
31576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31577$as_echo "no" >&6; }
31578 have_cairo=no
31579elif test $pkg_failed = untried; then
31580 have_cairo=no
31581else
31582 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
31583 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
31584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31585$as_echo "yes" >&6; }
31586 have_cairo=yes
31587fi
cristyad38abe2012-12-23 23:03:21 +000031588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31589$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031590fi
31591
31592if test "$have_rsvg" = 'yes'; then
31593
cristy8b350f62009-11-15 23:12:43 +000031594$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031595
cristyc6722092012-10-14 00:19:31 +000031596 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031597 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
31598 fi
31599fi
31600
31601if test "$have_cairo" = 'yes'; then
31602
cristy8b350f62009-11-15 23:12:43 +000031603$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031604
cristyc6722092012-10-14 00:19:31 +000031605 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031606 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
31607 fi
31608fi
31609
cristy73bd4a52010-10-05 11:24:23 +000031610 if test "$have_rsvg" = 'yes'; then
31611 RSVG_DELEGATE_TRUE=
31612 RSVG_DELEGATE_FALSE='#'
31613else
31614 RSVG_DELEGATE_TRUE='#'
31615 RSVG_DELEGATE_FALSE=
31616fi
31617
31618 if test "$have_cairo" = 'yes'; then
31619 CAIRO_DELEGATE_TRUE=
31620 CAIRO_DELEGATE_FALSE='#'
31621else
31622 CAIRO_DELEGATE_TRUE='#'
31623 CAIRO_DELEGATE_FALSE=
31624fi
31625
cristy3ed852e2009-09-05 21:47:34 +000031626
31627
31628
31629
31630#
31631# Check for TIFF delegate library.
31632#
31633
31634# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000031635if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031636 withval=$with_tiff; with_tiff=$withval
31637else
31638 with_tiff='yes'
31639fi
31640
31641
31642if test "$with_tiff" != 'yes'; then
31643 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
31644fi
31645
31646have_tiff='no'
31647TIFF_LIBS=''
31648if test "$with_tiff" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000031649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31650$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031652$as_echo_n "checking for TIFF... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31654$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031655 failed=0
31656 passed=0
cristy8b350f62009-11-15 23:12:43 +000031657 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031658if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031659 passed=`expr $passed + 1`
31660else
31661 failed=`expr $failed + 1`
31662fi
31663
31664
cristy8b350f62009-11-15 23:12:43 +000031665 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031666if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031667 passed=`expr $passed + 1`
31668else
31669 failed=`expr $failed + 1`
31670fi
31671
31672
cristy8b350f62009-11-15 23:12:43 +000031673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031674$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031675if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031676 $as_echo_n "(cached) " >&6
31677else
31678 ac_check_lib_save_LIBS=$LIBS
31679LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031680cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031681/* end confdefs.h. */
31682
31683/* Override any GCC internal prototype to avoid an error.
31684 Use char because int might match the return type of a GCC
31685 builtin and then its argument prototype would still apply. */
31686#ifdef __cplusplus
31687extern "C"
31688#endif
31689char TIFFOpen ();
31690int
31691main ()
31692{
31693return TIFFOpen ();
31694 ;
31695 return 0;
31696}
31697_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031698if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031699 ac_cv_lib_tiff_TIFFOpen=yes
31700else
cristy8b350f62009-11-15 23:12:43 +000031701 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031702fi
cristy8b350f62009-11-15 23:12:43 +000031703rm -f core conftest.err conftest.$ac_objext \
31704 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031705LIBS=$ac_check_lib_save_LIBS
31706fi
cristy8b350f62009-11-15 23:12:43 +000031707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031708$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031709if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031710 passed=`expr $passed + 1`
31711else
31712 failed=`expr $failed + 1`
31713fi
31714
cristy8b350f62009-11-15 23:12:43 +000031715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031716$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031717if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031718 $as_echo_n "(cached) " >&6
31719else
31720 ac_check_lib_save_LIBS=$LIBS
31721LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031722cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031723/* end confdefs.h. */
31724
31725/* Override any GCC internal prototype to avoid an error.
31726 Use char because int might match the return type of a GCC
31727 builtin and then its argument prototype would still apply. */
31728#ifdef __cplusplus
31729extern "C"
31730#endif
31731char TIFFClientOpen ();
31732int
31733main ()
31734{
31735return TIFFClientOpen ();
31736 ;
31737 return 0;
31738}
31739_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031740if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031741 ac_cv_lib_tiff_TIFFClientOpen=yes
31742else
cristy8b350f62009-11-15 23:12:43 +000031743 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031744fi
cristy8b350f62009-11-15 23:12:43 +000031745rm -f core conftest.err conftest.$ac_objext \
31746 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031747LIBS=$ac_check_lib_save_LIBS
31748fi
cristy8b350f62009-11-15 23:12:43 +000031749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031750$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031751if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031752 passed=`expr $passed + 1`
31753else
31754 failed=`expr $failed + 1`
31755fi
31756
cristy8b350f62009-11-15 23:12:43 +000031757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031758$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031759if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031760 $as_echo_n "(cached) " >&6
31761else
31762 ac_check_lib_save_LIBS=$LIBS
31763LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031764cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031765/* end confdefs.h. */
31766
31767/* Override any GCC internal prototype to avoid an error.
31768 Use char because int might match the return type of a GCC
31769 builtin and then its argument prototype would still apply. */
31770#ifdef __cplusplus
31771extern "C"
31772#endif
31773char TIFFIsByteSwapped ();
31774int
31775main ()
31776{
31777return TIFFIsByteSwapped ();
31778 ;
31779 return 0;
31780}
31781_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031782if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031783 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
31784else
cristy8b350f62009-11-15 23:12:43 +000031785 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000031786fi
cristy8b350f62009-11-15 23:12:43 +000031787rm -f core conftest.err conftest.$ac_objext \
31788 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031789LIBS=$ac_check_lib_save_LIBS
31790fi
cristy8b350f62009-11-15 23:12:43 +000031791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000031792$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000031793if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031794 passed=`expr $passed + 1`
31795else
31796 failed=`expr $failed + 1`
31797fi
31798
cristy8b350f62009-11-15 23:12:43 +000031799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031800$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031801if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031802 $as_echo_n "(cached) " >&6
31803else
31804 ac_check_lib_save_LIBS=$LIBS
31805LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031806cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031807/* end confdefs.h. */
31808
31809/* Override any GCC internal prototype to avoid an error.
31810 Use char because int might match the return type of a GCC
31811 builtin and then its argument prototype would still apply. */
31812#ifdef __cplusplus
31813extern "C"
31814#endif
31815char TIFFReadRGBATile ();
31816int
31817main ()
31818{
31819return TIFFReadRGBATile ();
31820 ;
31821 return 0;
31822}
31823_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031824if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031825 ac_cv_lib_tiff_TIFFReadRGBATile=yes
31826else
cristy8b350f62009-11-15 23:12:43 +000031827 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000031828fi
cristy8b350f62009-11-15 23:12:43 +000031829rm -f core conftest.err conftest.$ac_objext \
31830 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031831LIBS=$ac_check_lib_save_LIBS
31832fi
cristy8b350f62009-11-15 23:12:43 +000031833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000031834$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000031835if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031836 passed=`expr $passed + 1`
31837else
31838 failed=`expr $failed + 1`
31839fi
31840
cristy8b350f62009-11-15 23:12:43 +000031841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031842$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031843if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031844 $as_echo_n "(cached) " >&6
31845else
31846 ac_check_lib_save_LIBS=$LIBS
31847LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031848cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031849/* end confdefs.h. */
31850
31851/* Override any GCC internal prototype to avoid an error.
31852 Use char because int might match the return type of a GCC
31853 builtin and then its argument prototype would still apply. */
31854#ifdef __cplusplus
31855extern "C"
31856#endif
31857char TIFFReadRGBAStrip ();
31858int
31859main ()
31860{
31861return TIFFReadRGBAStrip ();
31862 ;
31863 return 0;
31864}
31865_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031866if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031867 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
31868else
cristy8b350f62009-11-15 23:12:43 +000031869 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000031870fi
cristy8b350f62009-11-15 23:12:43 +000031871rm -f core conftest.err conftest.$ac_objext \
31872 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031873LIBS=$ac_check_lib_save_LIBS
31874fi
cristy8b350f62009-11-15 23:12:43 +000031875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000031876$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000031877if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031878 passed=`expr $passed + 1`
31879else
31880 failed=`expr $failed + 1`
31881fi
31882
cristy8b350f62009-11-15 23:12:43 +000031883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000031884$as_echo_n "checking if TIFF package is complete... " >&6; }
31885 if test $passed -gt 0; then
31886 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000031887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31888$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031889 have_tiff='no (failed tests)'
31890 else
31891 TIFF_LIBS='-ltiff'
31892 LIBS="$TIFF_LIBS $LIBS"
31893
cristy8b350f62009-11-15 23:12:43 +000031894$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031895
cristyad38abe2012-12-23 23:03:21 +000031896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31897$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031898 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000031899 for ac_header in tiffconf.h
31900do :
31901 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031902if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031903 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031904#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000031905_ACEOF
31906
31907fi
31908
31909done
31910
cristy8b350f62009-11-15 23:12:43 +000031911 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3f590e52011-11-14 14:29:44 +000031912 TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \
31913 TIFFSetTagExtender TIFFSetWarningHandlerExt \
31914 TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000031915do :
31916 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31917ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000031918if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000031919 cat >>confdefs.h <<_ACEOF
31920#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31921_ACEOF
31922
31923fi
31924done
31925
31926 fi
31927 else
cristyad38abe2012-12-23 23:03:21 +000031928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31929$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031930 fi
31931fi
cristy73bd4a52010-10-05 11:24:23 +000031932 if test "$have_tiff" = 'yes'; then
31933 TIFF_DELEGATE_TRUE=
31934 TIFF_DELEGATE_FALSE='#'
31935else
31936 TIFF_DELEGATE_TRUE='#'
31937 TIFF_DELEGATE_FALSE=
31938fi
31939
cristy3ed852e2009-09-05 21:47:34 +000031940
31941
31942
31943#
cristyb1860752011-03-14 00:27:46 +000031944# Check for WEBP delegate library.
31945#
31946
31947# Check whether --with-webp was given.
31948if test "${with_webp+set}" = set; then :
31949 withval=$with_webp; with_webp=$withval
31950else
31951 with_webp='yes'
31952fi
31953
31954
31955if test "$with_webp" != 'yes'; then
31956 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
31957fi
31958
31959have_webp='no'
31960WEBP_LIBS=''
31961if test "$with_webp" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000031962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31963$as_echo "-------------------------------------------------------------" >&6; }
cristyb1860752011-03-14 00:27:46 +000031964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
31965$as_echo_n "checking for WEBP... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31967$as_echo "" >&6; }
cristyb1860752011-03-14 00:27:46 +000031968 failed=0
31969 passed=0
31970 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
31971if test "x$ac_cv_header_webp_decode_h" = xyes; then :
31972 passed=`expr $passed + 1`
31973else
31974 failed=`expr $failed + 1`
31975fi
31976
31977
cristy6d670312013-03-22 23:23:01 +000031978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPPictureInitInternal in -lwebp" >&5
31979$as_echo_n "checking for WebPPictureInitInternal in -lwebp... " >&6; }
31980if ${ac_cv_lib_webp_WebPPictureInitInternal+:} false; then :
cristyb1860752011-03-14 00:27:46 +000031981 $as_echo_n "(cached) " >&6
31982else
31983 ac_check_lib_save_LIBS=$LIBS
31984LIBS="-lwebp $LIBS"
31985cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31986/* end confdefs.h. */
31987
31988/* Override any GCC internal prototype to avoid an error.
31989 Use char because int might match the return type of a GCC
31990 builtin and then its argument prototype would still apply. */
31991#ifdef __cplusplus
31992extern "C"
31993#endif
cristy6d670312013-03-22 23:23:01 +000031994char WebPPictureInitInternal ();
cristyb1860752011-03-14 00:27:46 +000031995int
31996main ()
31997{
cristy6d670312013-03-22 23:23:01 +000031998return WebPPictureInitInternal ();
cristyb1860752011-03-14 00:27:46 +000031999 ;
32000 return 0;
32001}
32002_ACEOF
32003if ac_fn_c_try_link "$LINENO"; then :
cristy6d670312013-03-22 23:23:01 +000032004 ac_cv_lib_webp_WebPPictureInitInternal=yes
cristyb1860752011-03-14 00:27:46 +000032005else
cristy6d670312013-03-22 23:23:01 +000032006 ac_cv_lib_webp_WebPPictureInitInternal=no
cristyb1860752011-03-14 00:27:46 +000032007fi
32008rm -f core conftest.err conftest.$ac_objext \
32009 conftest$ac_exeext conftest.$ac_ext
32010LIBS=$ac_check_lib_save_LIBS
32011fi
cristy6d670312013-03-22 23:23:01 +000032012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPPictureInitInternal" >&5
32013$as_echo "$ac_cv_lib_webp_WebPPictureInitInternal" >&6; }
32014if test "x$ac_cv_lib_webp_WebPPictureInitInternal" = xyes; then :
cristyb1860752011-03-14 00:27:46 +000032015 passed=`expr $passed + 1`
32016else
32017 failed=`expr $failed + 1`
32018fi
32019
32020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
32021$as_echo_n "checking if WEBP package is complete... " >&6; }
32022 if test $passed -gt 0; then
32023 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000032024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32025$as_echo "no -- some components failed test" >&6; }
cristyb1860752011-03-14 00:27:46 +000032026 have_webp='no (failed tests)'
32027 else
32028 WEBP_LIBS='-lwebp'
32029 LIBS="$WEBP_LIBS $LIBS"
32030
32031$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
32032
cristyad38abe2012-12-23 23:03:21 +000032033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32034$as_echo "yes" >&6; }
cristyb1860752011-03-14 00:27:46 +000032035 have_webp='yes'
32036 fi
32037 else
cristyad38abe2012-12-23 23:03:21 +000032038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32039$as_echo "no" >&6; }
cristyb1860752011-03-14 00:27:46 +000032040 fi
32041fi
32042 if test "$have_webp" = 'yes'; then
32043 WEBP_DELEGATE_TRUE=
32044 WEBP_DELEGATE_FALSE='#'
32045else
32046 WEBP_DELEGATE_TRUE='#'
32047 WEBP_DELEGATE_FALSE=
32048fi
32049
32050
32051
32052
32053#
cristy3ed852e2009-09-05 21:47:34 +000032054# Set Windows font directory.
32055#
32056
32057# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000032058if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032059 withval=$with_windows_font_dir; with_windows_font_dir=$withval
32060else
32061 with_windows_font_dir=''
32062fi
32063
32064if test "$with_windows_font_dir" != '' ; then
32065 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
32066fi
32067
32068
32069#
32070# Check for WMF delegate library.
32071#
32072
32073# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000032074if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032075 withval=$with_wmf; with_wmf=$withval
32076else
cristyfc3d0222012-02-07 15:05:57 +000032077 with_wmf='no'
cristy3ed852e2009-09-05 21:47:34 +000032078fi
32079
32080
32081if test "$with_wmf" != 'yes'; then
32082 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
32083fi
32084
32085have_wmf='no'
32086WMF_LIBS=''
cristy03f7cf92011-12-15 01:40:41 +000032087WMF_LIBS_DEPS=''
32088OLIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032089if test "$with_wmf" != 'no'; then
cristy03f7cf92011-12-15 01:40:41 +000032090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32091$as_echo "-------------------------------------------------------------" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000032093$as_echo_n "checking for WMF... " >&6; }
cristy03f7cf92011-12-15 01:40:41 +000032094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32095$as_echo "" >&6; }
32096 have_libwmf='no'
32097 have_libwmflite='no'
32098 have_libwmf_ipa_h='no'
32099
32100 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
32101"
32102if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then :
32103 have_libwmf_ipa_h='yes'
cristy3ed852e2009-09-05 21:47:34 +000032104fi
32105
32106
cristy03f7cf92011-12-15 01:40:41 +000032107 if test "$have_libwmf_ipa_h" = 'yes'; then
32108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
32109$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
32110if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032111 $as_echo_n "(cached) " >&6
32112else
32113 ac_check_lib_save_LIBS=$LIBS
cristy03f7cf92011-12-15 01:40:41 +000032114LIBS="-lwmflite $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032115cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032116/* end confdefs.h. */
32117
32118/* Override any GCC internal prototype to avoid an error.
32119 Use char because int might match the return type of a GCC
32120 builtin and then its argument prototype would still apply. */
32121#ifdef __cplusplus
32122extern "C"
32123#endif
cristy03f7cf92011-12-15 01:40:41 +000032124char wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000032125int
32126main ()
32127{
cristy03f7cf92011-12-15 01:40:41 +000032128return wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000032129 ;
32130 return 0;
32131}
32132_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032133if ac_fn_c_try_link "$LINENO"; then :
cristy03f7cf92011-12-15 01:40:41 +000032134 ac_cv_lib_wmflite_wmf_lite_create=yes
cristy3ed852e2009-09-05 21:47:34 +000032135else
cristy03f7cf92011-12-15 01:40:41 +000032136 ac_cv_lib_wmflite_wmf_lite_create=no
cristy3ed852e2009-09-05 21:47:34 +000032137fi
cristy8b350f62009-11-15 23:12:43 +000032138rm -f core conftest.err conftest.$ac_objext \
32139 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032140LIBS=$ac_check_lib_save_LIBS
32141fi
cristy03f7cf92011-12-15 01:40:41 +000032142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
32143$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
32144if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then :
32145 have_libwmflite='yes'
cristy9243a2d2011-08-22 17:32:32 +000032146fi
32147
cristy03f7cf92011-12-15 01:40:41 +000032148 if test "$have_libwmflite" = 'yes'; then
32149
32150$as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
32151
32152 WMF_LIBS='-lwmflite'
glennrp33e524b2011-08-24 17:41:57 +000032153 LIBS="$WMF_LIBS $LIBS"
cristy03f7cf92011-12-15 01:40:41 +000032154 have_wmf='yes'
32155 else
32156 WMF_LIBS_DEPS=''
32157 WMF_CONFIG_LIBS=`libwmf-config --libs`
32158 for lib in xml2 expat freetype jpeg png z; do
32159 testlib="-l${lib}"
32160 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
32161 done
32162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
32163$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
32164if ${ac_cv_lib_wmf_wmf_api_create+:} false; then :
32165 $as_echo_n "(cached) " >&6
32166else
32167 ac_check_lib_save_LIBS=$LIBS
32168LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
32169cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32170/* end confdefs.h. */
32171
32172/* Override any GCC internal prototype to avoid an error.
32173 Use char because int might match the return type of a GCC
32174 builtin and then its argument prototype would still apply. */
32175#ifdef __cplusplus
32176extern "C"
32177#endif
32178char wmf_api_create ();
32179int
32180main ()
32181{
32182return wmf_api_create ();
32183 ;
32184 return 0;
32185}
32186_ACEOF
32187if ac_fn_c_try_link "$LINENO"; then :
32188 ac_cv_lib_wmf_wmf_api_create=yes
32189else
32190 ac_cv_lib_wmf_wmf_api_create=no
32191fi
32192rm -f core conftest.err conftest.$ac_objext \
32193 conftest$ac_exeext conftest.$ac_ext
32194LIBS=$ac_check_lib_save_LIBS
32195fi
32196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
32197$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
32198if test "x$ac_cv_lib_wmf_wmf_api_create" = xyes; then :
32199 have_libwmf='yes'
32200fi
32201
32202 if test "$have_libwmf" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032203
cristy8b350f62009-11-15 23:12:43 +000032204$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032205
cristy03f7cf92011-12-15 01:40:41 +000032206 WMF_LIBS='-lwmf'
32207 LIBS="$WMF_LIBS $LIBS"
32208 have_wmf='yes'
32209 else
32210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32211$as_echo "no -- some components failed test" >&6; }
32212 have_wmf='no (failed tests)'
32213 have_wmflite='no (failed tests)'
32214 LIBS="$OLIBS"
32215 WMF_LIBS=''
32216 fi
glennrp33e524b2011-08-24 17:41:57 +000032217 fi
cristy03f7cf92011-12-15 01:40:41 +000032218 fi
32219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
32220$as_echo_n "checking if WMF package is complete... " >&6; }
32221 if test "$have_wmf" = 'yes'; then
32222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32223$as_echo "yes" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032224 else
cristy03f7cf92011-12-15 01:40:41 +000032225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32226$as_echo "no" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032227 fi
cristy3ed852e2009-09-05 21:47:34 +000032228fi
cristy73bd4a52010-10-05 11:24:23 +000032229 if test "$have_wmf" = 'yes'; then
32230 WMF_DELEGATE_TRUE=
32231 WMF_DELEGATE_FALSE='#'
32232else
32233 WMF_DELEGATE_TRUE='#'
32234 WMF_DELEGATE_FALSE=
32235fi
32236
cristy3ed852e2009-09-05 21:47:34 +000032237
32238
32239
cristy81beccd2011-10-03 18:17:24 +000032240
32241
cristy3ed852e2009-09-05 21:47:34 +000032242#
32243# Check for XML delegate library.
32244#
32245
32246# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000032247if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032248 withval=$with_xml; with_xml=$withval
32249else
cristyfc3d0222012-02-07 15:05:57 +000032250 with_xml='yes'
cristy3ed852e2009-09-05 21:47:34 +000032251fi
32252
32253
cristy81beccd2011-10-03 18:17:24 +000032254if test "$with_xml" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000032255 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
32256fi
32257
cristy81beccd2011-10-03 18:17:24 +000032258have_xml='no'
32259XML_LIBS=''
32260if test "$with_xml" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000032261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32262$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
32264$as_echo_n "checking for XML... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32266$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032267 PERSIST_LDFLAGS=$LDFLAGS
32268 PERSIST_CPPFLAGS=$CPPFLAGS
32269 xml2_config=''
32270 # Extract the first word of "xml2-config", so it can be a program name with args.
32271set dummy xml2-config; ac_word=$2
32272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32273$as_echo_n "checking for $ac_word... " >&6; }
32274if ${ac_cv_path_xml2_config+:} false; then :
32275 $as_echo_n "(cached) " >&6
32276else
32277 case $xml2_config in
32278 [\\/]* | ?:[\\/]*)
32279 ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path.
32280 ;;
32281 *)
32282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32283for as_dir in $PATH
32284do
32285 IFS=$as_save_IFS
32286 test -z "$as_dir" && as_dir=.
32287 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy81beccd2011-10-03 18:17:24 +000032289 ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext"
32290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32291 break 2
32292 fi
32293done
32294 done
32295IFS=$as_save_IFS
32296
32297 ;;
32298esac
32299fi
32300xml2_config=$ac_cv_path_xml2_config
32301if test -n "$xml2_config"; then
32302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
32303$as_echo "$xml2_config" >&6; }
32304else
32305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32306$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032307fi
32308
cristy81beccd2011-10-03 18:17:24 +000032309 if test -n "$xml2_config"; then
32310 # Debian installs libxml headers under /usr/include/libxml2/libxml with
32311 # the shared library installed under /usr/lib, whereas the package
32312 # installs itself under $prefix/libxml and $prefix/lib.
32313 xml2_prefix=`xml2-config --prefix`
32314 if test -d "${xml2_prefix}/include/libxml2"; then
32315 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
32316 fi
32317 if test "${xml2_prefix}" != '/usr'; then
32318 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
32319 fi
32320 fi
32321 failed=0
32322 passed=0
32323 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
32324if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
32325 passed=`expr $passed + 1`
32326else
32327 failed=`expr $failed + 1`
32328fi
32329
32330
32331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5
32332$as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; }
32333if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then :
32334 $as_echo_n "(cached) " >&6
32335else
32336 ac_check_lib_save_LIBS=$LIBS
32337LIBS="-lxml2 $LIBS"
32338cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32339/* end confdefs.h. */
32340
32341/* Override any GCC internal prototype to avoid an error.
32342 Use char because int might match the return type of a GCC
32343 builtin and then its argument prototype would still apply. */
32344#ifdef __cplusplus
32345extern "C"
32346#endif
32347char xmlSAXVersion ();
32348int
32349main ()
32350{
32351return xmlSAXVersion ();
32352 ;
32353 return 0;
32354}
32355_ACEOF
32356if ac_fn_c_try_link "$LINENO"; then :
32357 ac_cv_lib_xml2_xmlSAXVersion=yes
32358else
32359 ac_cv_lib_xml2_xmlSAXVersion=no
32360fi
32361rm -f core conftest.err conftest.$ac_objext \
32362 conftest$ac_exeext conftest.$ac_ext
32363LIBS=$ac_check_lib_save_LIBS
32364fi
32365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5
32366$as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; }
32367if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then :
32368 passed=`expr $passed + 1`
32369else
32370 failed=`expr $failed + 1`
32371fi
32372
32373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5
32374$as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; }
32375if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then :
32376 $as_echo_n "(cached) " >&6
32377else
32378 ac_check_lib_save_LIBS=$LIBS
32379LIBS="-lxml2 $LIBS"
32380cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32381/* end confdefs.h. */
32382
32383/* Override any GCC internal prototype to avoid an error.
32384 Use char because int might match the return type of a GCC
32385 builtin and then its argument prototype would still apply. */
32386#ifdef __cplusplus
32387extern "C"
32388#endif
32389char xmlParseChunk ();
32390int
32391main ()
32392{
32393return xmlParseChunk ();
32394 ;
32395 return 0;
32396}
32397_ACEOF
32398if ac_fn_c_try_link "$LINENO"; then :
32399 ac_cv_lib_xml2_xmlParseChunk=yes
32400else
32401 ac_cv_lib_xml2_xmlParseChunk=no
32402fi
32403rm -f core conftest.err conftest.$ac_objext \
32404 conftest$ac_exeext conftest.$ac_ext
32405LIBS=$ac_check_lib_save_LIBS
32406fi
32407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5
32408$as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; }
32409if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then :
32410 passed=`expr $passed + 1`
32411else
32412 failed=`expr $failed + 1`
32413fi
32414
32415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5
32416$as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; }
32417if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then :
32418 $as_echo_n "(cached) " >&6
32419else
32420 ac_check_lib_save_LIBS=$LIBS
32421LIBS="-lxml2 $LIBS"
32422cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32423/* end confdefs.h. */
32424
32425/* Override any GCC internal prototype to avoid an error.
32426 Use char because int might match the return type of a GCC
32427 builtin and then its argument prototype would still apply. */
32428#ifdef __cplusplus
32429extern "C"
32430#endif
32431char xmlCreatePushParserCtxt ();
32432int
32433main ()
32434{
32435return xmlCreatePushParserCtxt ();
32436 ;
32437 return 0;
32438}
32439_ACEOF
32440if ac_fn_c_try_link "$LINENO"; then :
32441 ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes
32442else
32443 ac_cv_lib_xml2_xmlCreatePushParserCtxt=no
32444fi
32445rm -f core conftest.err conftest.$ac_objext \
32446 conftest$ac_exeext conftest.$ac_ext
32447LIBS=$ac_check_lib_save_LIBS
32448fi
32449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5
32450$as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; }
32451if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then :
32452 passed=`expr $passed + 1`
32453else
32454 failed=`expr $failed + 1`
32455fi
32456
32457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
32458$as_echo_n "checking if XML package is complete... " >&6; }
32459 if test $passed -gt 0; then
32460 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000032461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32462$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032463 have_xml='no (failed tests)'
32464 LDFLAGS="$PERSIST_LDFLAGS"
32465 CPPFLAGS="$PERSIST_CPPFLAGS"
32466 else
32467 XML_LIBS='-lxml2'
32468 LIBS="$XML_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032469
cristy8b350f62009-11-15 23:12:43 +000032470$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032471
cristyad38abe2012-12-23 23:03:21 +000032472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32473$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032474 have_xml='yes'
32475 fi
32476 else
cristyad38abe2012-12-23 23:03:21 +000032477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32478$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032479 fi
32480fi
cristy73bd4a52010-10-05 11:24:23 +000032481 if test "$have_xml" = 'yes'; then
32482 XML_DELEGATE_TRUE=
32483 XML_DELEGATE_FALSE='#'
32484else
32485 XML_DELEGATE_TRUE='#'
32486 XML_DELEGATE_FALSE=
32487fi
32488
cristy3ed852e2009-09-05 21:47:34 +000032489
32490
32491
32492# Substitute compiler name to build/link PerlMagick
32493#
32494
32495
32496#
32497# Configure install Paths
32498#
cristy7def36a2011-10-28 19:04:41 +000032499
cristy2a11bef2011-10-28 18:33:11 +000032500# Path to ImageMagick header files
cristybdabdd62013-03-04 17:43:36 +000032501INCLUDE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristye52f12f2012-12-31 15:32:36 +000032502INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}"
32503DEFINE_INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}/"
cristy2a11bef2011-10-28 18:33:11 +000032504case "${build_os}" in
32505 mingw* )
32506 DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
32507 ;;
32508esac
32509
32510cat >>confdefs.h <<_ACEOF
32511#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH"
32512_ACEOF
32513
32514
cristy3ed852e2009-09-05 21:47:34 +000032515
cristye52f12f2012-12-31 15:32:36 +000032516# Path to ImageMagick header files (arch part)
32517INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
32518DEFINE_INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
32519case "${build_os}" in
32520 mingw* )
32521 DEFINE_INCLUDEARCH_PATH=`$WinPathScript "$DEFINE_INCLUDEARCH_PATH" 1`
32522 ;;
32523esac
32524
32525cat >>confdefs.h <<_ACEOF
32526#define INCLUDEARCH_PATH "$DEFINE_INCLUDE_PATH"
32527_ACEOF
32528
32529
32530
cristy3ed852e2009-09-05 21:47:34 +000032531# Subdirectory under lib to place ImageMagick lib files
32532LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
32533
32534cat >>confdefs.h <<_ACEOF
32535#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
32536_ACEOF
32537
32538
32539# Path to ImageMagick bin directory
32540EXECUTABLE_PATH="${BIN_DIR}"
32541DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
32542case "${build_os}" in
32543 mingw* )
32544 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
32545 ;;
32546esac
32547
32548cat >>confdefs.h <<_ACEOF
32549#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
32550_ACEOF
32551
32552
32553
32554# Path to ImageMagick lib
32555LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
32556DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
32557case "${build_os}" in
32558 mingw* )
32559 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
32560 ;;
32561esac
32562
32563cat >>confdefs.h <<_ACEOF
32564#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
32565_ACEOF
32566
32567
32568
cristy3ed852e2009-09-05 21:47:34 +000032569#
cristy8d0ff762013-03-10 20:33:28 +000032570# path to local binaries
32571if test "x$LIB_BIN_BASEDIRNAME" = "x"; then
32572 LIB_BIN_BASEDIRNAME="bin"
32573fi
32574
32575cat >>confdefs.h <<_ACEOF
32576#define LIB_BIN_BASEDIRNAME "$LIB_BIN_BASEDIRNAME"
32577_ACEOF
32578
32579
32580
32581if test "x$LIB_BIN_DIR" = "x"; then
32582 LIB_BIN_DIR=${LIB_BIN_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32583fi
32584
32585
32586LIB_BIN_DIR_RELATIVE_PATH=$LIB_BIN_DIR
32587
32588LIB_BIN_DIR_PATH="${LIBRARY_PATH}/${LIB_BIN_DIR_RELATIVE_PATH}"
32589
32590
32591#
cristy01ff9f32012-12-01 18:15:29 +000032592# path to modules lib
32593if test "x$MODULES_BASEDIRNAME" = "x"; then
32594 MODULES_BASEDIRNAME="modules"
32595fi
cristy3ed852e2009-09-05 21:47:34 +000032596
32597cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032598#define MODULES_BASEDIRNAME "$MODULES_BASEDIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032599_ACEOF
32600
cristy01ff9f32012-12-01 18:15:29 +000032601
32602
32603if test "x$MODULES_DIRNAME" = "x"; then
cristy4bdbd342012-12-03 18:41:18 +000032604 MODULES_DIRNAME=${MODULES_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32605else
cristy3ed852e2009-09-05 21:47:34 +000032606
32607cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032608#define MODULES_DIRNAME "$MODULES_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032609_ACEOF
32610
cristycf4a3c22012-12-02 21:47:25 +000032611fi
cristy01ff9f32012-12-01 18:15:29 +000032612
32613
cristy371d4812012-12-01 19:48:10 +000032614MODULES_RELATIVE_PATH="${MODULES_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032615
32616MODULES_PATH="${LIBRARY_PATH}/${MODULES_RELATIVE_PATH}"
32617
32618
32619#
32620# path to coders lib
32621if test "x$CODER_DIRNAME" = "x"; then
32622 CODER_DIRNAME="coders"
32623fi
32624
32625cat >>confdefs.h <<_ACEOF
32626#define CODER_DIRNAME "$CODER_DIRNAME"
32627_ACEOF
32628
32629
32630
cristy371d4812012-12-01 19:48:10 +000032631CODER_RELATIVE_PATH="${CODER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032632CODER_PATH="${MODULES_PATH}/${CODER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000032633
32634
32635#
32636# Subdirectory under lib to place ImageMagick filter module files
cristy01ff9f32012-12-01 18:15:29 +000032637#
32638# path to coders lib
32639if test "x$FILTER_DIRNAME" = "x"; then
32640 FILTER_DIRNAME="filters"
32641fi
cristy3ed852e2009-09-05 21:47:34 +000032642
32643cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032644#define FILTER_DIRNAME "$FILTER_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032645_ACEOF
32646
cristy3ed852e2009-09-05 21:47:34 +000032647
cristy3ed852e2009-09-05 21:47:34 +000032648
cristy371d4812012-12-01 19:48:10 +000032649FILTER_RELATIVE_PATH="${FILTER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032650FILTER_PATH="${MODULES_PATH}/${FILTER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000032651
32652
32653#
32654# Path to ImageMagick documentation files
cristybdabdd62013-03-04 17:43:36 +000032655DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristyd55889c2011-03-27 00:50:24 +000032656DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
32657DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032658case "${build_os}" in
32659 mingw* )
32660 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
32661 ;;
32662esac
32663
32664cat >>confdefs.h <<_ACEOF
32665#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
32666_ACEOF
32667
32668
32669
cristy2a11bef2011-10-28 18:33:11 +000032670# Subdirectory to place architecture-dependent configuration files
cristybdabdd62013-03-04 17:43:36 +000032671CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristy45dbd322011-03-27 16:40:38 +000032672
32673cat >>confdefs.h <<_ACEOF
32674#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
32675_ACEOF
32676
cristy7def36a2011-10-28 19:04:41 +000032677CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
cristy45dbd322011-03-27 16:40:38 +000032678DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
32679case "${build_os}" in
32680 mingw* )
32681 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
32682 ;;
32683esac
32684
32685cat >>confdefs.h <<_ACEOF
32686#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
32687_ACEOF
32688
32689
32690
cristy2a11bef2011-10-28 18:33:11 +000032691# Subdirectory to place architecture-independent configuration files
cristybdabdd62013-03-04 17:43:36 +000032692SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristy3ed852e2009-09-05 21:47:34 +000032693
32694cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032695#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032696_ACEOF
32697
cristy670aa3c2011-11-03 00:54:00 +000032698SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
cristy4f820712011-04-01 12:35:43 +000032699DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032700case "${build_os}" in
32701 mingw* )
cristy4f820712011-04-01 12:35:43 +000032702 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000032703 ;;
32704esac
32705
32706cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032707#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032708_ACEOF
32709
32710
32711
cristy54378032012-12-04 15:52:20 +000032712#
32713# Subdirectory to place architecture-dependent configuration files.
32714if test "x$SHAREARCH_BASEDIRNAME" = "x"; then
32715 SHAREARCH_BASEDIRNAME="config"
32716fi
cristy670aa3c2011-11-03 00:54:00 +000032717
32718cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000032719#define SHAREARCH_BASEDIRNAME "$SHAREARCH_BASEDIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000032720_ACEOF
32721
cristy54378032012-12-04 15:52:20 +000032722
32723
32724if test "x$SHAREARCH_DIRNAME" = "x"; then
32725 SHAREARCH_DIRNAME=${SHAREARCH_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32726else
cristy670aa3c2011-11-03 00:54:00 +000032727
32728cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000032729#define SHAREARCH_DIRNAME "$SHAREARCH_DIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000032730_ACEOF
32731
cristy54378032012-12-04 15:52:20 +000032732fi
32733
32734
32735SHAREARCH_RELATIVE_PATH="${SHAREARCH_DIRNAME}"
32736
32737SHAREARCH_PATH="${LIBRARY_PATH}/${SHAREARCH_RELATIVE_PATH}"
cristy670aa3c2011-11-03 00:54:00 +000032738
32739
cristy3ed852e2009-09-05 21:47:34 +000032740#
32741# program_transform_name is formed for use in a Makefile, so create a
32742# modified version for use in a shell script.
32743configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
32744
32745# Default delegate definitions
cristyad38abe2012-12-23 23:03:21 +000032746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32747$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000032749$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32751$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032752AutotraceDecodeDelegateDefault='autotrace'
cristy3d7f8062009-09-24 20:45:35 +000032753BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000032754BZIPDelegateDefault='bzip2'
32755BrowseDelegateDefault='xdg-open'
cristy3ed852e2009-09-05 21:47:34 +000032756CatDelegateDefault='cat'
32757DNGDecodeDelegateDefault='ufraw-batch'
32758GVCDecodeDelegateDefault='dot'
32759DVIDecodeDelegateDefault='dvips'
32760EchoDelegateDefault='echo'
32761EditorDelegateDefault='xterm'
cristy3ed852e2009-09-05 21:47:34 +000032762ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
32763DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
32764MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
32765GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000032766HPGLDecodeDelegateDefault='hp2xx'
32767HTMLDecodeDelegateDefault='html2ps'
32768ILBMDecodeDelegateDefault='ilbmtoppm'
32769ILBMEncodeDelegateDefault='ppmtoilbm'
cristy71f53d52013-04-27 13:33:59 +000032770JXRDecodeDelegateDefault='JxrDecApp'
32771JXREncodeDelegateDefault='JxrEncApp'
cristy3ed852e2009-09-05 21:47:34 +000032772LPDelegateDefault='lp'
32773LPRDelegateDefault='lpr'
cristy3ed852e2009-09-05 21:47:34 +000032774LaunchDelegateDefault='gimp'
32775MANDelegateDefault='groff'
cristy81ab5af2013-10-06 18:28:39 +000032776MPEGDecodeDelegateDefault='avconv'
32777MPEGEncodeDelegateDefault='avconv'
cristy935c86e2010-06-05 23:50:07 +000032778MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000032779MVDelegateDefault='mv'
32780PCLDelegateDefault='pcl6'
32781PGPDecodeDelegateDefault='pgpv'
32782POVDelegateDefault='povray'
32783if test "$native_win32_build" = 'yes'; then
32784 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000032785elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032786 PSDelegateDefault='gsc'
32787else
32788 PSDelegateDefault='gs'
32789fi
32790RLEEncodeDelegateDefault='rawtorle'
32791RMDelegateDefault='rm'
cristy5281e322012-02-09 21:12:45 +000032792RSVGDecodeDelegateDefault='rsvg-convert'
cristy3ed852e2009-09-05 21:47:34 +000032793SCANDecodeDelegateDefault='scanimage'
cristyec6934f2012-08-14 18:38:40 +000032794SVGDecodeDelegateDefault='inkscape'
cristy3ed852e2009-09-05 21:47:34 +000032795TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000032796UniconvertorDelegateDefault='uniconvertor'
cristy86e86092013-08-04 17:43:57 +000032797WebPDecodeDelegateDefault='dwebp'
32798WebPEncodeDelegateDefault='cwebp'
cristy3ed852e2009-09-05 21:47:34 +000032799WMFDecodeDelegateDefault='wmf2eps'
32800WWWDecodeDelegateDefault='curl'
32801XPSDelegateDefault='gxps'
32802ZipDelegateDefault='gzip'
32803
32804# Search for delegates
32805# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
32806set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032808$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032809if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032810 $as_echo_n "(cached) " >&6
32811else
32812 case $AutotraceDecodeDelegate in
32813 [\\/]* | ?:[\\/]*)
32814 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
32815 ;;
32816 *)
32817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32818for as_dir in $PATH
32819do
32820 IFS=$as_save_IFS
32821 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032822 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032824 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032826 break 2
32827 fi
32828done
cristy8b350f62009-11-15 23:12:43 +000032829 done
cristy3ed852e2009-09-05 21:47:34 +000032830IFS=$as_save_IFS
32831
32832 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
32833 ;;
32834esac
32835fi
32836AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
32837if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032839$as_echo "$AutotraceDecodeDelegate" >&6; }
32840else
cristy8b350f62009-11-15 23:12:43 +000032841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032842$as_echo "no" >&6; }
32843fi
32844
32845
cristy3ed852e2009-09-05 21:47:34 +000032846# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
32847set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032849$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032850if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032851 $as_echo_n "(cached) " >&6
32852else
32853 case $BlenderDecodeDelegate in
32854 [\\/]* | ?:[\\/]*)
32855 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
32856 ;;
32857 *)
32858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32859for as_dir in $PATH
32860do
32861 IFS=$as_save_IFS
32862 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032863 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032865 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032867 break 2
32868 fi
32869done
cristy8b350f62009-11-15 23:12:43 +000032870 done
cristy3ed852e2009-09-05 21:47:34 +000032871IFS=$as_save_IFS
32872
32873 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
32874 ;;
32875esac
32876fi
32877BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
32878if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032880$as_echo "$BlenderDecodeDelegate" >&6; }
32881else
cristy8b350f62009-11-15 23:12:43 +000032882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032883$as_echo "no" >&6; }
32884fi
32885
32886
32887# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
32888set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032890$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032891if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032892 $as_echo_n "(cached) " >&6
32893else
32894 case $BZIPDelegate in
32895 [\\/]* | ?:[\\/]*)
32896 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
32897 ;;
32898 *)
32899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32900for as_dir in $PATH
32901do
32902 IFS=$as_save_IFS
32903 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032904 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032906 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032908 break 2
32909 fi
32910done
cristy8b350f62009-11-15 23:12:43 +000032911 done
cristy3ed852e2009-09-05 21:47:34 +000032912IFS=$as_save_IFS
32913
32914 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
32915 ;;
32916esac
32917fi
32918BZIPDelegate=$ac_cv_path_BZIPDelegate
32919if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032921$as_echo "$BZIPDelegate" >&6; }
32922else
cristy8b350f62009-11-15 23:12:43 +000032923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032924$as_echo "no" >&6; }
32925fi
32926
32927
cristyc59f0e72012-08-27 12:59:33 +000032928for ac_prog in "$BrowseDelegateDefault" google-chrome firefox konqueror mozilla lynx
32929do
32930 # Extract the first word of "$ac_prog", so it can be a program name with args.
32931set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032933$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032934if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032935 $as_echo_n "(cached) " >&6
32936else
32937 case $BrowseDelegate in
32938 [\\/]* | ?:[\\/]*)
32939 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
32940 ;;
32941 *)
32942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32943for as_dir in $PATH
32944do
32945 IFS=$as_save_IFS
32946 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032947 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032949 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032951 break 2
32952 fi
32953done
cristy8b350f62009-11-15 23:12:43 +000032954 done
cristy3ed852e2009-09-05 21:47:34 +000032955IFS=$as_save_IFS
32956
cristy3ed852e2009-09-05 21:47:34 +000032957 ;;
32958esac
32959fi
32960BrowseDelegate=$ac_cv_path_BrowseDelegate
32961if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032963$as_echo "$BrowseDelegate" >&6; }
32964else
cristy8b350f62009-11-15 23:12:43 +000032965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032966$as_echo "no" >&6; }
32967fi
32968
32969
cristyc59f0e72012-08-27 12:59:33 +000032970 test -n "$BrowseDelegate" && break
32971done
32972test -n "$BrowseDelegate" || BrowseDelegate=""$BrowseDelegateDefault""
32973
cristy3ed852e2009-09-05 21:47:34 +000032974# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
32975set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032977$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032978if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032979 $as_echo_n "(cached) " >&6
32980else
32981 case $CatDelegate in
32982 [\\/]* | ?:[\\/]*)
32983 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
32984 ;;
32985 *)
32986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32987for as_dir in $PATH
32988do
32989 IFS=$as_save_IFS
32990 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032991 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032993 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032995 break 2
32996 fi
32997done
cristy8b350f62009-11-15 23:12:43 +000032998 done
cristy3ed852e2009-09-05 21:47:34 +000032999IFS=$as_save_IFS
33000
33001 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
33002 ;;
33003esac
33004fi
33005CatDelegate=$ac_cv_path_CatDelegate
33006if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033008$as_echo "$CatDelegate" >&6; }
33009else
cristy8b350f62009-11-15 23:12:43 +000033010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033011$as_echo "no" >&6; }
33012fi
33013
33014
33015# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
33016set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033018$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033019if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033020 $as_echo_n "(cached) " >&6
33021else
33022 case $DNGDecodeDelegate in
33023 [\\/]* | ?:[\\/]*)
33024 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
33025 ;;
33026 *)
33027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33028for as_dir in $PATH
33029do
33030 IFS=$as_save_IFS
33031 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033032 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033034 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033036 break 2
33037 fi
33038done
cristy8b350f62009-11-15 23:12:43 +000033039 done
cristy3ed852e2009-09-05 21:47:34 +000033040IFS=$as_save_IFS
33041
33042 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
33043 ;;
33044esac
33045fi
33046DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
33047if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033049$as_echo "$DNGDecodeDelegate" >&6; }
33050else
cristy8b350f62009-11-15 23:12:43 +000033051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033052$as_echo "no" >&6; }
33053fi
33054
33055
33056# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
33057set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033059$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033060if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033061 $as_echo_n "(cached) " >&6
33062else
33063 case $GVCDecodeDelegate in
33064 [\\/]* | ?:[\\/]*)
33065 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
33066 ;;
33067 *)
33068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33069for as_dir in $PATH
33070do
33071 IFS=$as_save_IFS
33072 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033073 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033075 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033077 break 2
33078 fi
33079done
cristy8b350f62009-11-15 23:12:43 +000033080 done
cristy3ed852e2009-09-05 21:47:34 +000033081IFS=$as_save_IFS
33082
33083 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
33084 ;;
33085esac
33086fi
33087GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
33088if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033090$as_echo "$GVCDecodeDelegate" >&6; }
33091else
cristy8b350f62009-11-15 23:12:43 +000033092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033093$as_echo "no" >&6; }
33094fi
33095
33096
33097# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
33098set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033100$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033101if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033102 $as_echo_n "(cached) " >&6
33103else
33104 case $DVIDecodeDelegate in
33105 [\\/]* | ?:[\\/]*)
33106 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
33107 ;;
33108 *)
33109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33110for as_dir in $PATH
33111do
33112 IFS=$as_save_IFS
33113 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033114 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033116 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033118 break 2
33119 fi
33120done
cristy8b350f62009-11-15 23:12:43 +000033121 done
cristy3ed852e2009-09-05 21:47:34 +000033122IFS=$as_save_IFS
33123
33124 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
33125 ;;
33126esac
33127fi
33128DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
33129if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033131$as_echo "$DVIDecodeDelegate" >&6; }
33132else
cristy8b350f62009-11-15 23:12:43 +000033133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033134$as_echo "no" >&6; }
33135fi
33136
33137
33138# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
33139set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033141$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033142if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033143 $as_echo_n "(cached) " >&6
33144else
33145 case $EchoDelegate in
33146 [\\/]* | ?:[\\/]*)
33147 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
33148 ;;
33149 *)
33150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33151for as_dir in $PATH
33152do
33153 IFS=$as_save_IFS
33154 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033155 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033157 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033159 break 2
33160 fi
33161done
cristy8b350f62009-11-15 23:12:43 +000033162 done
cristy3ed852e2009-09-05 21:47:34 +000033163IFS=$as_save_IFS
33164
33165 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
33166 ;;
33167esac
33168fi
33169EchoDelegate=$ac_cv_path_EchoDelegate
33170if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033172$as_echo "$EchoDelegate" >&6; }
33173else
cristy8b350f62009-11-15 23:12:43 +000033174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033175$as_echo "no" >&6; }
33176fi
33177
33178
33179# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
33180set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033182$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033183if ${ac_cv_path_EditorDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033184 $as_echo_n "(cached) " >&6
33185else
33186 case $EditorDelegate in
33187 [\\/]* | ?:[\\/]*)
33188 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
33189 ;;
33190 *)
33191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33192for as_dir in $PATH
33193do
33194 IFS=$as_save_IFS
33195 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033196 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033198 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033200 break 2
33201 fi
33202done
cristy8b350f62009-11-15 23:12:43 +000033203 done
cristy3ed852e2009-09-05 21:47:34 +000033204IFS=$as_save_IFS
33205
33206 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
33207 ;;
33208esac
33209fi
33210EditorDelegate=$ac_cv_path_EditorDelegate
33211if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033213$as_echo "$EditorDelegate" >&6; }
33214else
cristy8b350f62009-11-15 23:12:43 +000033215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033216$as_echo "no" >&6; }
33217fi
33218
33219
cristy3ed852e2009-09-05 21:47:34 +000033220# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
33221set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033223$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033224if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033225 $as_echo_n "(cached) " >&6
33226else
33227 case $ConvertDelegate in
33228 [\\/]* | ?:[\\/]*)
33229 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
33230 ;;
33231 *)
33232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33233for as_dir in $PATH
33234do
33235 IFS=$as_save_IFS
33236 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033237 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033239 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033241 break 2
33242 fi
33243done
cristy8b350f62009-11-15 23:12:43 +000033244 done
cristy3ed852e2009-09-05 21:47:34 +000033245IFS=$as_save_IFS
33246
33247 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
33248 ;;
33249esac
33250fi
33251ConvertDelegate=$ac_cv_path_ConvertDelegate
33252if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033254$as_echo "$ConvertDelegate" >&6; }
33255else
cristy8b350f62009-11-15 23:12:43 +000033256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033257$as_echo "no" >&6; }
33258fi
33259
33260
33261# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
33262set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033264$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033265if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033266 $as_echo_n "(cached) " >&6
33267else
33268 case $DisplayDelegate in
33269 [\\/]* | ?:[\\/]*)
33270 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
33271 ;;
33272 *)
33273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33274for as_dir in $PATH
33275do
33276 IFS=$as_save_IFS
33277 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033278 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033280 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033282 break 2
33283 fi
33284done
cristy8b350f62009-11-15 23:12:43 +000033285 done
cristy3ed852e2009-09-05 21:47:34 +000033286IFS=$as_save_IFS
33287
33288 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
33289 ;;
33290esac
33291fi
33292DisplayDelegate=$ac_cv_path_DisplayDelegate
33293if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033295$as_echo "$DisplayDelegate" >&6; }
33296else
cristy8b350f62009-11-15 23:12:43 +000033297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033298$as_echo "no" >&6; }
33299fi
33300
33301
33302# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
33303set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033305$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033306if ${ac_cv_path_MogrifyDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033307 $as_echo_n "(cached) " >&6
33308else
33309 case $MogrifyDelegate in
33310 [\\/]* | ?:[\\/]*)
33311 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
33312 ;;
33313 *)
33314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33315for as_dir in $PATH
33316do
33317 IFS=$as_save_IFS
33318 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033319 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033321 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033323 break 2
33324 fi
33325done
cristy8b350f62009-11-15 23:12:43 +000033326 done
cristy3ed852e2009-09-05 21:47:34 +000033327IFS=$as_save_IFS
33328
33329 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
33330 ;;
33331esac
33332fi
33333MogrifyDelegate=$ac_cv_path_MogrifyDelegate
33334if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033336$as_echo "$MogrifyDelegate" >&6; }
33337else
cristy8b350f62009-11-15 23:12:43 +000033338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033339$as_echo "no" >&6; }
33340fi
33341
33342
33343# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
33344set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033346$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033347if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033348 $as_echo_n "(cached) " >&6
33349else
33350 case $GnuplotDecodeDelegate in
33351 [\\/]* | ?:[\\/]*)
33352 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
33353 ;;
33354 *)
33355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33356for as_dir in $PATH
33357do
33358 IFS=$as_save_IFS
33359 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033360 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033362 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033364 break 2
33365 fi
33366done
cristy8b350f62009-11-15 23:12:43 +000033367 done
cristy3ed852e2009-09-05 21:47:34 +000033368IFS=$as_save_IFS
33369
33370 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
33371 ;;
33372esac
33373fi
33374GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
33375if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033377$as_echo "$GnuplotDecodeDelegate" >&6; }
33378else
cristy8b350f62009-11-15 23:12:43 +000033379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033380$as_echo "no" >&6; }
33381fi
33382
33383
cristy3ed852e2009-09-05 21:47:34 +000033384# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
33385set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033387$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033388if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033389 $as_echo_n "(cached) " >&6
33390else
33391 case $HPGLDecodeDelegate in
33392 [\\/]* | ?:[\\/]*)
33393 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
33394 ;;
33395 *)
33396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33397for as_dir in $PATH
33398do
33399 IFS=$as_save_IFS
33400 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033401 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033403 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033405 break 2
33406 fi
33407done
cristy8b350f62009-11-15 23:12:43 +000033408 done
cristy3ed852e2009-09-05 21:47:34 +000033409IFS=$as_save_IFS
33410
33411 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
33412 ;;
33413esac
33414fi
33415HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
33416if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033418$as_echo "$HPGLDecodeDelegate" >&6; }
33419else
cristy8b350f62009-11-15 23:12:43 +000033420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033421$as_echo "no" >&6; }
33422fi
33423
33424
33425# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
33426set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033428$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033429if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033430 $as_echo_n "(cached) " >&6
33431else
33432 case $HTMLDecodeDelegate in
33433 [\\/]* | ?:[\\/]*)
33434 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
33435 ;;
33436 *)
33437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33438for as_dir in $PATH
33439do
33440 IFS=$as_save_IFS
33441 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033442 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033444 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033446 break 2
33447 fi
33448done
cristy8b350f62009-11-15 23:12:43 +000033449 done
cristy3ed852e2009-09-05 21:47:34 +000033450IFS=$as_save_IFS
33451
33452 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
33453 ;;
33454esac
33455fi
33456HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
33457if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033459$as_echo "$HTMLDecodeDelegate" >&6; }
33460else
cristy8b350f62009-11-15 23:12:43 +000033461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033462$as_echo "no" >&6; }
33463fi
33464
33465
33466# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
33467set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033469$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033470if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033471 $as_echo_n "(cached) " >&6
33472else
33473 case $ILBMDecodeDelegate in
33474 [\\/]* | ?:[\\/]*)
33475 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
33476 ;;
33477 *)
33478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33479for as_dir in $PATH
33480do
33481 IFS=$as_save_IFS
33482 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033483 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033485 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033487 break 2
33488 fi
33489done
cristy8b350f62009-11-15 23:12:43 +000033490 done
cristy3ed852e2009-09-05 21:47:34 +000033491IFS=$as_save_IFS
33492
33493 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
33494 ;;
33495esac
33496fi
33497ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
33498if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033500$as_echo "$ILBMDecodeDelegate" >&6; }
33501else
cristy8b350f62009-11-15 23:12:43 +000033502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033503$as_echo "no" >&6; }
33504fi
33505
33506
33507# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
33508set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033510$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033511if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033512 $as_echo_n "(cached) " >&6
33513else
33514 case $ILBMEncodeDelegate in
33515 [\\/]* | ?:[\\/]*)
33516 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
33517 ;;
33518 *)
33519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33520for as_dir in $PATH
33521do
33522 IFS=$as_save_IFS
33523 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033524 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033526 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033528 break 2
33529 fi
33530done
cristy8b350f62009-11-15 23:12:43 +000033531 done
cristy3ed852e2009-09-05 21:47:34 +000033532IFS=$as_save_IFS
33533
33534 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
33535 ;;
33536esac
33537fi
33538ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
33539if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033541$as_echo "$ILBMEncodeDelegate" >&6; }
33542else
cristy8b350f62009-11-15 23:12:43 +000033543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033544$as_echo "no" >&6; }
33545fi
33546
33547
cristy71f53d52013-04-27 13:33:59 +000033548# Extract the first word of ""$JXRDecodeDelegateDefault"", so it can be a program name with args.
33549set dummy "$JXRDecodeDelegateDefault"; ac_word=$2
33550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33551$as_echo_n "checking for $ac_word... " >&6; }
33552if ${ac_cv_path_JXRDecodeDelegate+:} false; then :
33553 $as_echo_n "(cached) " >&6
33554else
33555 case $JXRDecodeDelegate in
33556 [\\/]* | ?:[\\/]*)
33557 ac_cv_path_JXRDecodeDelegate="$JXRDecodeDelegate" # Let the user override the test with a path.
33558 ;;
33559 *)
33560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33561for as_dir in $PATH
33562do
33563 IFS=$as_save_IFS
33564 test -z "$as_dir" && as_dir=.
33565 for ac_exec_ext in '' $ac_executable_extensions; do
33566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33567 ac_cv_path_JXRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33569 break 2
33570 fi
33571done
33572 done
33573IFS=$as_save_IFS
33574
33575 test -z "$ac_cv_path_JXRDecodeDelegate" && ac_cv_path_JXRDecodeDelegate=""$JXRDecodeDelegateDefault""
33576 ;;
33577esac
33578fi
33579JXRDecodeDelegate=$ac_cv_path_JXRDecodeDelegate
33580if test -n "$JXRDecodeDelegate"; then
33581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXRDecodeDelegate" >&5
33582$as_echo "$JXRDecodeDelegate" >&6; }
33583else
33584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33585$as_echo "no" >&6; }
33586fi
33587
33588
33589# Extract the first word of ""$JXREncodeDelegateDefault"", so it can be a program name with args.
33590set dummy "$JXREncodeDelegateDefault"; ac_word=$2
33591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33592$as_echo_n "checking for $ac_word... " >&6; }
33593if ${ac_cv_path_JXREncodeDelegate+:} false; then :
33594 $as_echo_n "(cached) " >&6
33595else
33596 case $JXREncodeDelegate in
33597 [\\/]* | ?:[\\/]*)
33598 ac_cv_path_JXREncodeDelegate="$JXREncodeDelegate" # Let the user override the test with a path.
33599 ;;
33600 *)
33601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33602for as_dir in $PATH
33603do
33604 IFS=$as_save_IFS
33605 test -z "$as_dir" && as_dir=.
33606 for ac_exec_ext in '' $ac_executable_extensions; do
33607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33608 ac_cv_path_JXREncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33610 break 2
33611 fi
33612done
33613 done
33614IFS=$as_save_IFS
33615
33616 test -z "$ac_cv_path_JXREncodeDelegate" && ac_cv_path_JXREncodeDelegate=""$JXREncodeDelegateDefault""
33617 ;;
33618esac
33619fi
33620JXREncodeDelegate=$ac_cv_path_JXREncodeDelegate
33621if test -n "$JXREncodeDelegate"; then
33622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXREncodeDelegate" >&5
33623$as_echo "$JXREncodeDelegate" >&6; }
33624else
33625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33626$as_echo "no" >&6; }
33627fi
33628
33629
cristy3ed852e2009-09-05 21:47:34 +000033630# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
33631set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033633$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033634if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033635 $as_echo_n "(cached) " >&6
33636else
33637 case $LPDelegate in
33638 [\\/]* | ?:[\\/]*)
33639 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
33640 ;;
33641 *)
33642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33643for as_dir in $PATH
33644do
33645 IFS=$as_save_IFS
33646 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033647 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033649 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033651 break 2
33652 fi
33653done
cristy8b350f62009-11-15 23:12:43 +000033654 done
cristy3ed852e2009-09-05 21:47:34 +000033655IFS=$as_save_IFS
33656
33657 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
33658 ;;
33659esac
33660fi
33661LPDelegate=$ac_cv_path_LPDelegate
33662if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033664$as_echo "$LPDelegate" >&6; }
33665else
cristy8b350f62009-11-15 23:12:43 +000033666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033667$as_echo "no" >&6; }
33668fi
33669
33670
33671# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
33672set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033674$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033675if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033676 $as_echo_n "(cached) " >&6
33677else
33678 case $LPRDelegate in
33679 [\\/]* | ?:[\\/]*)
33680 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
33681 ;;
33682 *)
33683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33684for as_dir in $PATH
33685do
33686 IFS=$as_save_IFS
33687 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033688 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033690 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033692 break 2
33693 fi
33694done
cristy8b350f62009-11-15 23:12:43 +000033695 done
cristy3ed852e2009-09-05 21:47:34 +000033696IFS=$as_save_IFS
33697
33698 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
33699 ;;
33700esac
33701fi
33702LPRDelegate=$ac_cv_path_LPRDelegate
33703if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033705$as_echo "$LPRDelegate" >&6; }
33706else
cristy8b350f62009-11-15 23:12:43 +000033707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033708$as_echo "no" >&6; }
33709fi
33710
33711
cristy3ed852e2009-09-05 21:47:34 +000033712# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
33713set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033715$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033716if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033717 $as_echo_n "(cached) " >&6
33718else
33719 case $LaunchDelegate in
33720 [\\/]* | ?:[\\/]*)
33721 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
33722 ;;
33723 *)
33724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33725for as_dir in $PATH
33726do
33727 IFS=$as_save_IFS
33728 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033729 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033731 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033733 break 2
33734 fi
33735done
cristy8b350f62009-11-15 23:12:43 +000033736 done
cristy3ed852e2009-09-05 21:47:34 +000033737IFS=$as_save_IFS
33738
33739 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
33740 ;;
33741esac
33742fi
33743LaunchDelegate=$ac_cv_path_LaunchDelegate
33744if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033746$as_echo "$LaunchDelegate" >&6; }
33747else
cristy8b350f62009-11-15 23:12:43 +000033748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033749$as_echo "no" >&6; }
33750fi
33751
33752
33753# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
33754set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033756$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033757if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033758 $as_echo_n "(cached) " >&6
33759else
33760 case $MANDelegate in
33761 [\\/]* | ?:[\\/]*)
33762 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
33763 ;;
33764 *)
33765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33766for as_dir in $PATH
33767do
33768 IFS=$as_save_IFS
33769 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033770 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033772 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033774 break 2
33775 fi
33776done
cristy8b350f62009-11-15 23:12:43 +000033777 done
cristy3ed852e2009-09-05 21:47:34 +000033778IFS=$as_save_IFS
33779
33780 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
33781 ;;
33782esac
33783fi
33784MANDelegate=$ac_cv_path_MANDelegate
33785if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033787$as_echo "$MANDelegate" >&6; }
33788else
cristy8b350f62009-11-15 23:12:43 +000033789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033790$as_echo "no" >&6; }
33791fi
33792
33793
33794# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33795set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033797$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033798if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033799 $as_echo_n "(cached) " >&6
33800else
33801 case $MPEGDecodeDelegate in
33802 [\\/]* | ?:[\\/]*)
33803 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33804 ;;
33805 *)
33806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33807for as_dir in $PATH
33808do
33809 IFS=$as_save_IFS
33810 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033811 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033813 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033815 break 2
33816 fi
33817done
cristy8b350f62009-11-15 23:12:43 +000033818 done
cristy3ed852e2009-09-05 21:47:34 +000033819IFS=$as_save_IFS
33820
33821 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33822 ;;
33823esac
33824fi
33825MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33826if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033828$as_echo "$MPEGDecodeDelegate" >&6; }
33829else
cristy8b350f62009-11-15 23:12:43 +000033830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033831$as_echo "no" >&6; }
33832fi
33833
33834
cristy81ab5af2013-10-06 18:28:39 +000033835if test "$MPEGDecodeDelegate" == "$MPEGDecodeDelegateDefault" ; then
33836 MPEGDecodeDelegateDefault='ffmpeg'
33837 # Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33838set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
33839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33840$as_echo_n "checking for $ac_word... " >&6; }
33841if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
33842 $as_echo_n "(cached) " >&6
33843else
33844 case $MPEGDecodeDelegate in
33845 [\\/]* | ?:[\\/]*)
33846 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33847 ;;
33848 *)
33849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33850for as_dir in $PATH
33851do
33852 IFS=$as_save_IFS
33853 test -z "$as_dir" && as_dir=.
33854 for ac_exec_ext in '' $ac_executable_extensions; do
33855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33856 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33858 break 2
33859 fi
33860done
33861 done
33862IFS=$as_save_IFS
33863
33864 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33865 ;;
33866esac
33867fi
33868MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33869if test -n "$MPEGDecodeDelegate"; then
33870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
33871$as_echo "$MPEGDecodeDelegate" >&6; }
33872else
33873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33874$as_echo "no" >&6; }
33875fi
33876
33877
33878fi;
cristy3ed852e2009-09-05 21:47:34 +000033879# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
33880set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033882$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033883if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033884 $as_echo_n "(cached) " >&6
33885else
33886 case $MPEGEncodeDelegate in
33887 [\\/]* | ?:[\\/]*)
33888 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
33889 ;;
33890 *)
33891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33892for as_dir in $PATH
33893do
33894 IFS=$as_save_IFS
33895 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033896 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033898 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033900 break 2
33901 fi
33902done
cristy8b350f62009-11-15 23:12:43 +000033903 done
cristy3ed852e2009-09-05 21:47:34 +000033904IFS=$as_save_IFS
33905
33906 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
33907 ;;
33908esac
33909fi
33910MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
33911if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033913$as_echo "$MPEGEncodeDelegate" >&6; }
33914else
cristy8b350f62009-11-15 23:12:43 +000033915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033916$as_echo "no" >&6; }
33917fi
33918
33919
cristy81ab5af2013-10-06 18:28:39 +000033920if test "$MPEGEncodeDelegate" == "$MPEGEncodeDelegateDefault" ; then
33921 MPEGEncodeDelegateDefault='ffmpeg'
33922 # Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
33923set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
33924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33925$as_echo_n "checking for $ac_word... " >&6; }
33926if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
33927 $as_echo_n "(cached) " >&6
33928else
33929 case $MPEGEncodeDelegate in
33930 [\\/]* | ?:[\\/]*)
33931 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # 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=.
33939 for ac_exec_ext in '' $ac_executable_extensions; do
33940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33941 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33943 break 2
33944 fi
33945done
33946 done
33947IFS=$as_save_IFS
33948
33949 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
33950 ;;
33951esac
33952fi
33953MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
33954if test -n "$MPEGEncodeDelegate"; then
33955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
33956$as_echo "$MPEGEncodeDelegate" >&6; }
33957else
33958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33959$as_echo "no" >&6; }
33960fi
33961
33962
33963fi;
cristy935c86e2010-06-05 23:50:07 +000033964# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
33965set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
33966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33967$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033968if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000033969 $as_echo_n "(cached) " >&6
33970else
33971 case $MrSIDDecodeDelegate in
33972 [\\/]* | ?:[\\/]*)
33973 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
33974 ;;
33975 *)
33976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33977for as_dir in $PATH
33978do
33979 IFS=$as_save_IFS
33980 test -z "$as_dir" && as_dir=.
33981 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy935c86e2010-06-05 23:50:07 +000033983 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33985 break 2
33986 fi
33987done
33988 done
33989IFS=$as_save_IFS
33990
33991 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
33992 ;;
33993esac
33994fi
33995MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
33996if test -n "$MrSIDDecodeDelegate"; then
33997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
33998$as_echo "$MrSIDDecodeDelegate" >&6; }
33999else
34000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34001$as_echo "no" >&6; }
34002fi
34003
34004
cristy3ed852e2009-09-05 21:47:34 +000034005# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
34006set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034008$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034009if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034010 $as_echo_n "(cached) " >&6
34011else
34012 case $MVDelegate in
34013 [\\/]* | ?:[\\/]*)
34014 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
34015 ;;
34016 *)
34017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34018for as_dir in $PATH
34019do
34020 IFS=$as_save_IFS
34021 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034022 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034024 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034026 break 2
34027 fi
34028done
cristy8b350f62009-11-15 23:12:43 +000034029 done
cristy3ed852e2009-09-05 21:47:34 +000034030IFS=$as_save_IFS
34031
34032 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
34033 ;;
34034esac
34035fi
34036MVDelegate=$ac_cv_path_MVDelegate
34037if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034039$as_echo "$MVDelegate" >&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# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
34047set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034049$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034050if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034051 $as_echo_n "(cached) " >&6
34052else
34053 case $PCLDelegate in
34054 [\\/]* | ?:[\\/]*)
34055 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
34056 ;;
34057 *)
34058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34059for as_dir in $PATH
34060do
34061 IFS=$as_save_IFS
34062 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034063 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034065 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034067 break 2
34068 fi
34069done
cristy8b350f62009-11-15 23:12:43 +000034070 done
cristy3ed852e2009-09-05 21:47:34 +000034071IFS=$as_save_IFS
34072
34073 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
34074 ;;
34075esac
34076fi
34077PCLDelegate=$ac_cv_path_PCLDelegate
34078if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034080$as_echo "$PCLDelegate" >&6; }
34081else
cristy8b350f62009-11-15 23:12:43 +000034082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034083$as_echo "no" >&6; }
34084fi
34085
34086
34087# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
34088set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034090$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034091if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034092 $as_echo_n "(cached) " >&6
34093else
34094 case $PGPDecodeDelegate in
34095 [\\/]* | ?:[\\/]*)
34096 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
34097 ;;
34098 *)
34099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34100for as_dir in $PATH
34101do
34102 IFS=$as_save_IFS
34103 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034104 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034106 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034108 break 2
34109 fi
34110done
cristy8b350f62009-11-15 23:12:43 +000034111 done
cristy3ed852e2009-09-05 21:47:34 +000034112IFS=$as_save_IFS
34113
34114 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
34115 ;;
34116esac
34117fi
34118PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
34119if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034121$as_echo "$PGPDecodeDelegate" >&6; }
34122else
cristy8b350f62009-11-15 23:12:43 +000034123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034124$as_echo "no" >&6; }
34125fi
34126
34127
34128# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
34129set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034131$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034132if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034133 $as_echo_n "(cached) " >&6
34134else
34135 case $POVDelegate in
34136 [\\/]* | ?:[\\/]*)
34137 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
34138 ;;
34139 *)
34140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34141for as_dir in $PATH
34142do
34143 IFS=$as_save_IFS
34144 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034145 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034147 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034149 break 2
34150 fi
34151done
cristy8b350f62009-11-15 23:12:43 +000034152 done
cristy3ed852e2009-09-05 21:47:34 +000034153IFS=$as_save_IFS
34154
34155 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
34156 ;;
34157esac
34158fi
34159POVDelegate=$ac_cv_path_POVDelegate
34160if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034162$as_echo "$POVDelegate" >&6; }
34163else
cristy8b350f62009-11-15 23:12:43 +000034164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034165$as_echo "no" >&6; }
34166fi
34167
34168
34169for ac_prog in gsx gsc "$PSDelegateDefault"
34170do
34171 # Extract the first word of "$ac_prog", so it can be a program name with args.
34172set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034174$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034175if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034176 $as_echo_n "(cached) " >&6
34177else
34178 case $PSDelegate in
34179 [\\/]* | ?:[\\/]*)
34180 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
34181 ;;
34182 *)
34183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34184for as_dir in $PATH
34185do
34186 IFS=$as_save_IFS
34187 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034188 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034190 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034192 break 2
34193 fi
34194done
cristy8b350f62009-11-15 23:12:43 +000034195 done
cristy3ed852e2009-09-05 21:47:34 +000034196IFS=$as_save_IFS
34197
34198 ;;
34199esac
34200fi
34201PSDelegate=$ac_cv_path_PSDelegate
34202if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034204$as_echo "$PSDelegate" >&6; }
34205else
cristy8b350f62009-11-15 23:12:43 +000034206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034207$as_echo "no" >&6; }
34208fi
34209
34210
34211 test -n "$PSDelegate" && break
34212done
34213test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
34214
34215# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
34216set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034218$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034219if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034220 $as_echo_n "(cached) " >&6
34221else
34222 case $RLEEncodeDelegate in
34223 [\\/]* | ?:[\\/]*)
34224 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
34225 ;;
34226 *)
34227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34228for as_dir in $PATH
34229do
34230 IFS=$as_save_IFS
34231 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034232 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034234 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034236 break 2
34237 fi
34238done
cristy8b350f62009-11-15 23:12:43 +000034239 done
cristy3ed852e2009-09-05 21:47:34 +000034240IFS=$as_save_IFS
34241
34242 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
34243 ;;
34244esac
34245fi
34246RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
34247if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034249$as_echo "$RLEEncodeDelegate" >&6; }
34250else
cristy8b350f62009-11-15 23:12:43 +000034251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034252$as_echo "no" >&6; }
34253fi
34254
34255
34256# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
34257set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034259$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034260if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034261 $as_echo_n "(cached) " >&6
34262else
34263 case $RMDelegate in
34264 [\\/]* | ?:[\\/]*)
34265 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
34266 ;;
34267 *)
34268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34269for as_dir in $PATH
34270do
34271 IFS=$as_save_IFS
34272 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034273 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034275 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034277 break 2
34278 fi
34279done
cristy8b350f62009-11-15 23:12:43 +000034280 done
cristy3ed852e2009-09-05 21:47:34 +000034281IFS=$as_save_IFS
34282
34283 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
34284 ;;
34285esac
34286fi
34287RMDelegate=$ac_cv_path_RMDelegate
34288if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034290$as_echo "$RMDelegate" >&6; }
34291else
cristy8b350f62009-11-15 23:12:43 +000034292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034293$as_echo "no" >&6; }
34294fi
34295
34296
cristy4689cf02010-02-17 21:15:45 +000034297# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
34298set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
34299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34300$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034301if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000034302 $as_echo_n "(cached) " >&6
34303else
34304 case $RSVGDecodeDelegate in
34305 [\\/]* | ?:[\\/]*)
34306 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
34307 ;;
34308 *)
34309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34310for as_dir in $PATH
34311do
34312 IFS=$as_save_IFS
34313 test -z "$as_dir" && as_dir=.
34314 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy4689cf02010-02-17 21:15:45 +000034316 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34318 break 2
34319 fi
34320done
34321 done
34322IFS=$as_save_IFS
34323
34324 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
34325 ;;
34326esac
34327fi
34328RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
34329if test -n "$RSVGDecodeDelegate"; then
34330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
34331$as_echo "$RSVGDecodeDelegate" >&6; }
34332else
34333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34334$as_echo "no" >&6; }
34335fi
34336
34337
cristy3ed852e2009-09-05 21:47:34 +000034338# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
34339set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034341$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034342if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034343 $as_echo_n "(cached) " >&6
34344else
34345 case $SCANDecodeDelegate in
34346 [\\/]* | ?:[\\/]*)
34347 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
34348 ;;
34349 *)
34350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34351for as_dir in $PATH
34352do
34353 IFS=$as_save_IFS
34354 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034355 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034357 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034359 break 2
34360 fi
34361done
cristy8b350f62009-11-15 23:12:43 +000034362 done
cristy3ed852e2009-09-05 21:47:34 +000034363IFS=$as_save_IFS
34364
34365 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
34366 ;;
34367esac
34368fi
34369SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
34370if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034372$as_echo "$SCANDecodeDelegate" >&6; }
34373else
cristy8b350f62009-11-15 23:12:43 +000034374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034375$as_echo "no" >&6; }
34376fi
34377
34378
cristyec6934f2012-08-14 18:38:40 +000034379# Extract the first word of ""$SVGDecodeDelegateDefault"", so it can be a program name with args.
34380set dummy "$SVGDecodeDelegateDefault"; ac_word=$2
34381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34382$as_echo_n "checking for $ac_word... " >&6; }
34383if ${ac_cv_path_SVGDecodeDelegate+:} false; then :
34384 $as_echo_n "(cached) " >&6
34385else
34386 case $SVGDecodeDelegate in
34387 [\\/]* | ?:[\\/]*)
34388 ac_cv_path_SVGDecodeDelegate="$SVGDecodeDelegate" # Let the user override the test with a path.
34389 ;;
34390 *)
34391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34392for as_dir in $PATH
34393do
34394 IFS=$as_save_IFS
34395 test -z "$as_dir" && as_dir=.
34396 for ac_exec_ext in '' $ac_executable_extensions; do
34397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34398 ac_cv_path_SVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34400 break 2
34401 fi
34402done
34403 done
34404IFS=$as_save_IFS
34405
34406 test -z "$ac_cv_path_SVGDecodeDelegate" && ac_cv_path_SVGDecodeDelegate=""$SVGDecodeDelegateDefault""
34407 ;;
34408esac
34409fi
34410SVGDecodeDelegate=$ac_cv_path_SVGDecodeDelegate
34411if test -n "$SVGDecodeDelegate"; then
34412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVGDecodeDelegate" >&5
34413$as_echo "$SVGDecodeDelegate" >&6; }
34414else
34415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34416$as_echo "no" >&6; }
34417fi
34418
34419
cristy3ed852e2009-09-05 21:47:34 +000034420# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
34421set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034423$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034424if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034425 $as_echo_n "(cached) " >&6
34426else
34427 case $TXTDelegate in
34428 [\\/]* | ?:[\\/]*)
34429 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
34430 ;;
34431 *)
34432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34433for as_dir in $PATH
34434do
34435 IFS=$as_save_IFS
34436 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034437 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034439 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034441 break 2
34442 fi
34443done
cristy8b350f62009-11-15 23:12:43 +000034444 done
cristy3ed852e2009-09-05 21:47:34 +000034445IFS=$as_save_IFS
34446
34447 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
34448 ;;
34449esac
34450fi
34451TXTDelegate=$ac_cv_path_TXTDelegate
34452if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034454$as_echo "$TXTDelegate" >&6; }
34455else
cristy8b350f62009-11-15 23:12:43 +000034456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034457$as_echo "no" >&6; }
34458fi
34459
34460
cristy5ac9ac82010-07-29 13:24:24 +000034461# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
34462set dummy "$UniconvertorDelegateDefault"; ac_word=$2
34463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34464$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034465if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000034466 $as_echo_n "(cached) " >&6
34467else
34468 case $UniconvertorDelegate in
34469 [\\/]* | ?:[\\/]*)
34470 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
34471 ;;
34472 *)
34473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34474for as_dir in $PATH
34475do
34476 IFS=$as_save_IFS
34477 test -z "$as_dir" && as_dir=.
34478 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy5ac9ac82010-07-29 13:24:24 +000034480 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
34481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34482 break 2
34483 fi
34484done
34485 done
34486IFS=$as_save_IFS
34487
34488 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
34489 ;;
34490esac
34491fi
34492UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
34493if test -n "$UniconvertorDelegate"; then
34494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
34495$as_echo "$UniconvertorDelegate" >&6; }
34496else
34497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34498$as_echo "no" >&6; }
34499fi
34500
34501
cristy86e86092013-08-04 17:43:57 +000034502# Extract the first word of ""$WebPDecodeDelegateDefault"", so it can be a program name with args.
34503set dummy "$WebPDecodeDelegateDefault"; ac_word=$2
34504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34505$as_echo_n "checking for $ac_word... " >&6; }
34506if ${ac_cv_path_WebPDecodeDelegate+:} false; then :
34507 $as_echo_n "(cached) " >&6
34508else
34509 case $WebPDecodeDelegate in
34510 [\\/]* | ?:[\\/]*)
34511 ac_cv_path_WebPDecodeDelegate="$WebPDecodeDelegate" # Let the user override the test with a path.
34512 ;;
34513 *)
34514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34515for as_dir in $PATH
34516do
34517 IFS=$as_save_IFS
34518 test -z "$as_dir" && as_dir=.
34519 for ac_exec_ext in '' $ac_executable_extensions; do
34520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34521 ac_cv_path_WebPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34523 break 2
34524 fi
34525done
34526 done
34527IFS=$as_save_IFS
34528
34529 test -z "$ac_cv_path_WebPDecodeDelegate" && ac_cv_path_WebPDecodeDelegate=""$WebPDecodeDelegateDefault""
34530 ;;
34531esac
34532fi
34533WebPDecodeDelegate=$ac_cv_path_WebPDecodeDelegate
34534if test -n "$WebPDecodeDelegate"; then
34535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WebPDecodeDelegate" >&5
34536$as_echo "$WebPDecodeDelegate" >&6; }
34537else
34538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34539$as_echo "no" >&6; }
34540fi
34541
34542
34543# Extract the first word of ""$WebPEncodeDelegateDefault"", so it can be a program name with args.
34544set dummy "$WebPEncodeDelegateDefault"; ac_word=$2
34545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34546$as_echo_n "checking for $ac_word... " >&6; }
34547if ${ac_cv_path_WebPEncodeDelegate+:} false; then :
34548 $as_echo_n "(cached) " >&6
34549else
34550 case $WebPEncodeDelegate in
34551 [\\/]* | ?:[\\/]*)
34552 ac_cv_path_WebPEncodeDelegate="$WebPEncodeDelegate" # Let the user override the test with a path.
34553 ;;
34554 *)
34555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34556for as_dir in $PATH
34557do
34558 IFS=$as_save_IFS
34559 test -z "$as_dir" && as_dir=.
34560 for ac_exec_ext in '' $ac_executable_extensions; do
34561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34562 ac_cv_path_WebPEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34564 break 2
34565 fi
34566done
34567 done
34568IFS=$as_save_IFS
34569
34570 test -z "$ac_cv_path_WebPEncodeDelegate" && ac_cv_path_WebPEncodeDelegate=""$WebPEncodeDelegateDefault""
34571 ;;
34572esac
34573fi
34574WebPEncodeDelegate=$ac_cv_path_WebPEncodeDelegate
34575if test -n "$WebPEncodeDelegate"; then
34576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WebPEncodeDelegate" >&5
34577$as_echo "$WebPEncodeDelegate" >&6; }
34578else
34579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34580$as_echo "no" >&6; }
34581fi
34582
34583
cristy3ed852e2009-09-05 21:47:34 +000034584# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
34585set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034587$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034588if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034589 $as_echo_n "(cached) " >&6
34590else
34591 case $WMFDecodeDelegate in
34592 [\\/]* | ?:[\\/]*)
34593 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
34594 ;;
34595 *)
34596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34597for as_dir in $PATH
34598do
34599 IFS=$as_save_IFS
34600 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034601 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034603 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034605 break 2
34606 fi
34607done
cristy8b350f62009-11-15 23:12:43 +000034608 done
cristy3ed852e2009-09-05 21:47:34 +000034609IFS=$as_save_IFS
34610
34611 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
34612 ;;
34613esac
34614fi
34615WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
34616if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034618$as_echo "$WMFDecodeDelegate" >&6; }
34619else
cristy8b350f62009-11-15 23:12:43 +000034620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034621$as_echo "no" >&6; }
34622fi
34623
34624
34625# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
34626set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034628$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034629if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034630 $as_echo_n "(cached) " >&6
34631else
34632 case $WWWDecodeDelegate in
34633 [\\/]* | ?:[\\/]*)
34634 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
34635 ;;
34636 *)
34637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34638for as_dir in $PATH
34639do
34640 IFS=$as_save_IFS
34641 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034642 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034644 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034646 break 2
34647 fi
34648done
cristy8b350f62009-11-15 23:12:43 +000034649 done
cristy3ed852e2009-09-05 21:47:34 +000034650IFS=$as_save_IFS
34651
34652 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
34653 ;;
34654esac
34655fi
34656WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
34657if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034659$as_echo "$WWWDecodeDelegate" >&6; }
34660else
cristy8b350f62009-11-15 23:12:43 +000034661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034662$as_echo "no" >&6; }
34663fi
34664
34665
34666# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
34667set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034669$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034670if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034671 $as_echo_n "(cached) " >&6
34672else
34673 case $XPSDelegate in
34674 [\\/]* | ?:[\\/]*)
34675 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
34676 ;;
34677 *)
34678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34679for as_dir in $PATH
34680do
34681 IFS=$as_save_IFS
34682 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034683 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034685 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034687 break 2
34688 fi
34689done
cristy8b350f62009-11-15 23:12:43 +000034690 done
cristy3ed852e2009-09-05 21:47:34 +000034691IFS=$as_save_IFS
34692
34693 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
34694 ;;
34695esac
34696fi
34697XPSDelegate=$ac_cv_path_XPSDelegate
34698if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034700$as_echo "$XPSDelegate" >&6; }
34701else
cristy8b350f62009-11-15 23:12:43 +000034702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034703$as_echo "no" >&6; }
34704fi
34705
34706
34707# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
34708set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034710$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034711if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034712 $as_echo_n "(cached) " >&6
34713else
34714 case $ZipDelegate in
34715 [\\/]* | ?:[\\/]*)
34716 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
34717 ;;
34718 *)
34719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34720for as_dir in $PATH
34721do
34722 IFS=$as_save_IFS
34723 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034724 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034726 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034728 break 2
34729 fi
34730done
cristy8b350f62009-11-15 23:12:43 +000034731 done
cristy3ed852e2009-09-05 21:47:34 +000034732IFS=$as_save_IFS
34733
34734 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
34735 ;;
34736esac
34737fi
34738ZipDelegate=$ac_cv_path_ZipDelegate
34739if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034741$as_echo "$ZipDelegate" >&6; }
34742else
cristy8b350f62009-11-15 23:12:43 +000034743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034744$as_echo "no" >&6; }
34745fi
34746
34747
34748
34749# Prefer lpr to lp; lp needs options tacked on.
34750if test "$LPRDelegate" != no; then
34751 PrintDelegate="$LPRDelegate"
34752else
34753 PrintDelegate="$LPDelegate -c -s"
34754fi
34755
34756
34757# Installed ImageMagick utiltity paths
34758ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
34759DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
34760MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
34761
34762# Set delegate booleans
cristy81ab5af2013-10-06 18:28:39 +000034763have_avconv='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_avconv='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034764have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
34765have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
34766have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000034767have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034768have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
34769have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034770have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
34771
34772#
34773# Test for font directories
34774#
34775type_include_files=''
34776
cristy430a7312010-01-21 20:44:04 +000034777# Dejavu fonts.
34778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
34779$as_echo_n "checking for Dejavu fonts directory... " >&6; }
34780dejavu_font_dir=''
34781if test "${with_dejavu_font_dir}" != 'default'; then
34782 dejavu_font_dir="${with_dejavu_font_dir}/"
34783else
34784 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
34785 if test -f "${font_dir}DejaVuSerif.ttf"; then
34786 dejavu_font_dir="${font_dir}"
34787 break 1
34788 fi
34789 done
34790fi
34791if test "${dejavu_font_dir}x" != 'x'; then
34792 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
cristyad38abe2012-12-23 23:03:21 +000034793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
34794$as_echo "$dejavu_font_dir" >&6; }
cristy430a7312010-01-21 20:44:04 +000034795else
cristyad38abe2012-12-23 23:03:21 +000034796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
34797$as_echo "not found!" >&6; };
cristy430a7312010-01-21 20:44:04 +000034798fi
34799
34800
cristy3ed852e2009-09-05 21:47:34 +000034801# Windows
34802windows_font_dir=''
34803if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
34804 windows_font_dir="${with_windows_font_dir}/"
34805fi
cristy430a7312010-01-21 20:44:04 +000034806if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034807 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
34808 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
34809 fi
34810 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
34811 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
34812 fi
34813 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
34814 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
34815 fi
34816fi
cristy430a7312010-01-21 20:44:04 +000034817if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034818 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
34819fi
34820
34821
34822# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000034823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000034824$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
34825ghostscript_font_dir=''
34826if test "${with_gs_font_dir}" != 'default'; then
34827 ghostscript_font_dir="${with_gs_font_dir}/"
34828else
34829 if test "${native_win32_build}" = 'yes'; then
34830 # Native Windows Build
34831 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
34832 if test -f "${font_dir}a010013l.pfb"; then
34833 ghostscript_font_dir="$font_dir"
34834 break 1
34835 fi
34836 done
34837 if test "${PSDelegate}" != 'gswin32c'; then
34838 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
34839 fi
34840 else
34841 # Linux / Mac OS X / Unix Build
34842 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
34843 if test -f "${font_dir}a010013l.pfb"; then
34844 ghostscript_font_dir="${font_dir}"
34845 break 1
34846 fi
34847 done
34848 if test "${ghostscript_font_dir}x" = 'x'; then
34849 if test "$PSDelegate" != 'gs'; then
34850 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
34851 fi
34852 fi
34853 fi
34854fi
34855if test "${ghostscript_font_dir}x" != 'x'; then
34856 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristyad38abe2012-12-23 23:03:21 +000034857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
34858$as_echo "$ghostscript_font_dir" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034859else
cristyad38abe2012-12-23 23:03:21 +000034860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
34861$as_echo "not found!" >&6; };
cristy3ed852e2009-09-05 21:47:34 +000034862fi
34863
34864case "${build_os}" in
34865 mingw* )
34866 PSDelegate=`$WinPathScript "$PSDelegate" 1`
34867 ;;
34868esac
34869
34870
34871
34872#
34873# Handle case where user doesn't want frozen paths
34874#
34875if test "$with_frozenpaths" != 'yes'; then
34876 # Re-set delegate definitions to default (no paths)
34877 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034878 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
34879 BZIPDelegate="$BZIPDelegateDefault"
34880 BrowseDelegate="$BrowseDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034881 CatDelegate="$CatDelegateDefault"
34882 ConvertDelegate="$ConvertDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000034883 DisplayDelegate="$DisplayDelegateDefault"
34884 DNGDecodeDelegate="$DNGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034885 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
34886 EchoDelegate="$EchoDelegateDefault"
34887 EditorDelegate="$EditorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034888 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000034889 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034890 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
34891 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
34892 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
34893 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000034894 JXRDecodeDelegate="$JXRDecodeDelegateDefault"
34895 JXREncodeDelegate="$JXREncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034896 LPDelegate="$LPDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034897 LaunchDelegate="$LaunchDelegateDefault"
34898 MANDelegate="$MANDelegateDefault"
34899 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
34900 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034901 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000034902 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
34903 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034904 PCLDelegate="$PCLDelegateDefault"
34905 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
34906 POVDelegate="$POVDelegateDefault"
34907 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034908 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
34909 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000034910 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034911 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
cristyec6934f2012-08-14 18:38:40 +000034912 SVGDecodeDelegate="$SVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034913 ShowImageDelegate="$ShowImageDelegateDefault"
34914 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000034915 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy86e86092013-08-04 17:43:57 +000034916 WebPDecodeDelegate="$WebPDecodeDelegateDefault"
34917 WebPEncodeDelegate="$WebPEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034918 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
34919 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
34920 XPSDelegate="$XPSDelegateDefault"
34921 ZipDelegate="$ZipDelegateDefault"
34922fi
34923
34924# Delegate substitutions
34925
34926
34927
34928
34929
34930
34931
34932
34933
34934
34935
34936
34937
34938
34939
34940
34941
34942
34943
34944
34945
34946
34947
34948
34949
34950
34951
34952
34953
34954
34955
34956
34957
34958
34959
34960
34961
34962
34963
34964
cristy71f53d52013-04-27 13:33:59 +000034965
34966
cristy3ed852e2009-09-05 21:47:34 +000034967#
34968# RPM support.
34969#
34970RPM=''
34971for ac_prog in gnutar gtar tar
34972do
34973 # Extract the first word of "$ac_prog", so it can be a program name with args.
34974set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034976$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034977if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034978 $as_echo_n "(cached) " >&6
34979else
34980 if test -n "$TAR"; then
34981 ac_cv_prog_TAR="$TAR" # Let the user override the test.
34982else
34983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34984for as_dir in $PATH
34985do
34986 IFS=$as_save_IFS
34987 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034988 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034990 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034992 break 2
34993 fi
34994done
cristy8b350f62009-11-15 23:12:43 +000034995 done
cristy3ed852e2009-09-05 21:47:34 +000034996IFS=$as_save_IFS
34997
34998fi
34999fi
35000TAR=$ac_cv_prog_TAR
35001if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000035002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000035003$as_echo "$TAR" >&6; }
35004else
cristy8b350f62009-11-15 23:12:43 +000035005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035006$as_echo "no" >&6; }
35007fi
35008
35009
35010 test -n "$TAR" && break
35011done
35012
35013for ac_prog in perl
35014do
35015 # Extract the first word of "$ac_prog", so it can be a program name with args.
35016set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035018$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035019if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035020 $as_echo_n "(cached) " >&6
35021else
35022 if test -n "$PERL"; then
35023 ac_cv_prog_PERL="$PERL" # Let the user override the test.
35024else
35025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35026for as_dir in $PATH
35027do
35028 IFS=$as_save_IFS
35029 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035030 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035032 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035034 break 2
35035 fi
35036done
cristy8b350f62009-11-15 23:12:43 +000035037 done
cristy3ed852e2009-09-05 21:47:34 +000035038IFS=$as_save_IFS
35039
35040fi
35041fi
35042PERL=$ac_cv_prog_PERL
35043if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000035044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035045$as_echo "$PERL" >&6; }
35046else
cristy8b350f62009-11-15 23:12:43 +000035047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035048$as_echo "no" >&6; }
35049fi
35050
35051
35052 test -n "$PERL" && break
35053done
35054
35055for ac_prog in rpmbuild rpm
35056do
35057 # Extract the first word of "$ac_prog", so it can be a program name with args.
35058set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035060$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035061if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035062 $as_echo_n "(cached) " >&6
35063else
35064 if test -n "$RPM"; then
35065 ac_cv_prog_RPM="$RPM" # Let the user override the test.
35066else
35067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35068for as_dir in $PATH
35069do
35070 IFS=$as_save_IFS
35071 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035072 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035074 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035076 break 2
35077 fi
35078done
cristy8b350f62009-11-15 23:12:43 +000035079 done
cristy3ed852e2009-09-05 21:47:34 +000035080IFS=$as_save_IFS
35081
35082fi
35083fi
35084RPM=$ac_cv_prog_RPM
35085if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000035086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000035087$as_echo "$RPM" >&6; }
35088else
cristy8b350f62009-11-15 23:12:43 +000035089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035090$as_echo "no" >&6; }
35091fi
35092
35093
35094 test -n "$RPM" && break
35095done
35096
35097
cristy73bd4a52010-10-05 11:24:23 +000035098ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
35099
35100
35101AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
35102
35103
35104AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
35105
35106
35107AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
35108
35109
35110 if test "x$RPM" != "x" ; then
35111 RPM_DELEGATE_TRUE=
35112 RPM_DELEGATE_FALSE='#'
35113else
35114 RPM_DELEGATE_TRUE='#'
35115 RPM_DELEGATE_FALSE=
35116fi
35117
cristy3ed852e2009-09-05 21:47:34 +000035118
35119#
35120# 7ZIP support (http://p7zip.sourceforge.net/)
35121#
35122P7ZIP=''
35123for ac_prog in 7za
35124do
35125 # Extract the first word of "$ac_prog", so it can be a program name with args.
35126set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035128$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035129if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035130 $as_echo_n "(cached) " >&6
35131else
35132 if test -n "$P7ZIP"; then
35133 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
35134else
35135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35136for as_dir in $PATH
35137do
35138 IFS=$as_save_IFS
35139 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035140 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035142 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035144 break 2
35145 fi
35146done
cristy8b350f62009-11-15 23:12:43 +000035147 done
cristy3ed852e2009-09-05 21:47:34 +000035148IFS=$as_save_IFS
35149
35150fi
35151fi
35152P7ZIP=$ac_cv_prog_P7ZIP
35153if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000035154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000035155$as_echo "$P7ZIP" >&6; }
35156else
cristy8b350f62009-11-15 23:12:43 +000035157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035158$as_echo "no" >&6; }
35159fi
35160
35161
35162 test -n "$P7ZIP" && break
35163done
35164
35165
cristy73bd4a52010-10-05 11:24:23 +000035166 if test "x$P7ZIP" != "x" ; then
35167 P7ZIP_DELEGATE_TRUE=
35168 P7ZIP_DELEGATE_FALSE='#'
35169else
35170 P7ZIP_DELEGATE_TRUE='#'
35171 P7ZIP_DELEGATE_FALSE=
35172fi
35173
cristy3ed852e2009-09-05 21:47:34 +000035174
35175#
35176# ZIP support (http://www.info-zip.org/Zip.html)
35177#
35178ZIP=''
35179for ac_prog in zip
35180do
35181 # Extract the first word of "$ac_prog", so it can be a program name with args.
35182set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035184$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035185if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035186 $as_echo_n "(cached) " >&6
35187else
35188 if test -n "$ZIP"; then
35189 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
35190else
35191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35192for as_dir in $PATH
35193do
35194 IFS=$as_save_IFS
35195 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035196 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035198 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035200 break 2
35201 fi
35202done
cristy8b350f62009-11-15 23:12:43 +000035203 done
cristy3ed852e2009-09-05 21:47:34 +000035204IFS=$as_save_IFS
35205
35206fi
35207fi
35208ZIP=$ac_cv_prog_ZIP
35209if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000035210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000035211$as_echo "$ZIP" >&6; }
35212else
cristy8b350f62009-11-15 23:12:43 +000035213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035214$as_echo "no" >&6; }
35215fi
35216
35217
35218 test -n "$ZIP" && break
35219done
35220
35221
cristy73bd4a52010-10-05 11:24:23 +000035222 if test "x$ZIP" != "x" ; then
35223 ZIP_DELEGATE_TRUE=
35224 ZIP_DELEGATE_FALSE='#'
35225else
35226 ZIP_DELEGATE_TRUE='#'
35227 ZIP_DELEGATE_FALSE=
35228fi
35229
cristy3ed852e2009-09-05 21:47:34 +000035230
35231#
35232# GhostPCL related configuration.
35233#
35234PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000035235PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000035236PCLMonoDevice=pbmraw
35237if test -z "$PCLVersion"; then
35238 PCLVersion='unknown'
35239fi
35240if test $have_pcl = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35242$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035244$as_echo_n "checking for PCL... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35246$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035247 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000035248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035249$as_echo_n "checking for pcl color device... " >&6; }
35250 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35251 :
35252 else
35253 PCLColorDevice=ppmraw
35254 fi
cristyad38abe2012-12-23 23:03:21 +000035255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
35256$as_echo "$PCLColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035257
35258 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035260$as_echo_n "checking for pcl CMYK device... " >&6; }
35261 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35262 :
35263 else
35264 PCLCMYKDevice=$PCLColorDevice
35265 fi
cristyad38abe2012-12-23 23:03:21 +000035266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
35267$as_echo "$PCLCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035268
35269 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035271$as_echo_n "checking for pcl mono device... " >&6; }
35272 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35273 :
35274 else
35275 PCLMonoDevice=$PCLColorDevice
35276 fi
cristyad38abe2012-12-23 23:03:21 +000035277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
35278$as_echo "$PCLMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035279fi
35280
35281
35282
35283
35284
35285
35286#
35287# GhostXPS related configuration.
35288#
35289XPSColorDevice=ppmraw
35290XPSCMYKDevice=bmpsep8
35291XPSMonoDevice=pbmraw
35292if test -z "$XPSVersion"; then
35293 XPSVersion='unknown'
35294fi
35295if test $have_xps = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35297$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000035299$as_echo_n "checking for XPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35301$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035302 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035304$as_echo_n "checking for xps color device... " >&6; }
35305 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35306 :
35307 else
35308 XPSColorDevice=ppmraw
35309 fi
cristyad38abe2012-12-23 23:03:21 +000035310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
35311$as_echo "$XPSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035312
35313 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035315$as_echo_n "checking for xps CMYK device... " >&6; }
35316 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35317 :
35318 else
35319 XPSCMYKDevice=$XPSColorDevice
35320 fi
cristyad38abe2012-12-23 23:03:21 +000035321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
35322$as_echo "$XPSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035323
35324 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035326$as_echo_n "checking for xps mono device... " >&6; }
35327 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35328 :
35329 else
35330 XPSMonoDevice=$XPSColorDevice
35331 fi
cristyad38abe2012-12-23 23:03:21 +000035332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
35333$as_echo "$XPSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035334fi
35335
35336
35337
35338
35339
35340
35341#
35342# Ghostscript related configuration.
35343#
cristya97426c2011-02-04 01:41:27 +000035344GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000035345GSColorDevice=pnmraw
35346GSCMYKDevice=pam
35347GSMonoDevice=pbmraw
35348GSPDFDevice=pdfwrite
cristyb096ea52013-10-26 20:56:38 +000035349GSPSDevice=ps2write
cristy3ed852e2009-09-05 21:47:34 +000035350GSEPSDevice=epswrite
35351GSVersion='unknown'
35352if test $have_gs = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35354$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000035356$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35358$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000035360$as_echo_n "checking for Ghostscript version... " >&6; }
35361 if GSVersion=`$PSDelegate --version`; then
35362 :
35363 else
35364 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
35365 fi
cristyad38abe2012-12-23 23:03:21 +000035366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
35367$as_echo "$GSVersion" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035368
35369 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000035370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035371$as_echo_n "checking for gs alpha device... " >&6; }
35372 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35373 :
35374 else
35375 GSAlphaDevice=pnmraw
35376 fi
cristyad38abe2012-12-23 23:03:21 +000035377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
35378$as_echo "$GSAlphaDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035379
35380 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035382$as_echo_n "checking for gs color device... " >&6; }
35383 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35384 :
35385 else
35386 GSColorDevice=pnmraw
35387 fi
cristyad38abe2012-12-23 23:03:21 +000035388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
35389$as_echo "$GSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035390
35391 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035393$as_echo_n "checking for gs CMYK device... " >&6; }
35394 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35395 :
35396 else
35397 GSCMYKDevice=bmpsep8
35398 fi
cristyad38abe2012-12-23 23:03:21 +000035399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
35400$as_echo "$GSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035401
35402 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035404$as_echo_n "checking for gs mono device... " >&6; }
35405 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35406 :
35407 else
35408 GSMonoDevice=$GSColorDevice
35409 fi
cristyad38abe2012-12-23 23:03:21 +000035410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
35411$as_echo "$GSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035412
35413 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000035414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035415$as_echo_n "checking for gs PDF writing device... " >&6; }
35416 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35417 :
35418 else
35419 GSPDFDevice=nodevice
35420 fi
cristyad38abe2012-12-23 23:03:21 +000035421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
35422$as_echo "$GSPDFDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035423
35424 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000035425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035426$as_echo_n "checking for gs PS writing device... " >&6; }
35427 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35428 :
35429 else
35430 GSPSDevice=nodevice
35431 fi
cristyad38abe2012-12-23 23:03:21 +000035432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
35433$as_echo "$GSPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035434
35435 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000035436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035437$as_echo_n "checking for gs EPS writing device... " >&6; }
35438 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35439 :
35440 else
35441 GSEPSDevice=nodevice
35442 fi
cristyad38abe2012-12-23 23:03:21 +000035443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
35444$as_echo "$GSEPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035445fi
35446
35447
35448
35449
35450
35451
35452
35453
35454
35455
35456#
35457# PerlMagick-related configuration
35458#
35459
35460# Look for PERL if PerlMagick requested
35461# If name/path of desired PERL interpreter is specified, look for that one first
35462have_perl='no'
35463if test "$with_perl" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000035464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35465$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035467$as_echo_n "checking for Perl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35469$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035470 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035472$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035473if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035474 $as_echo_n "(cached) " >&6
35475else
35476 ac_cv_path_PERL="$with_perl"
35477fi
cristy8b350f62009-11-15 23:12:43 +000035478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035479$as_echo "$ac_cv_path_PERL" >&6; };
35480 PERL=$ac_cv_path_PERL
35481 have_perl="$ac_cv_path_PERL"
35482 else
35483 for ac_prog in perl perl5
35484do
35485 # Extract the first word of "$ac_prog", so it can be a program name with args.
35486set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035488$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035489if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035490 $as_echo_n "(cached) " >&6
35491else
35492 case $PERL in
35493 [\\/]* | ?:[\\/]*)
35494 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
35495 ;;
35496 *)
35497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35498for as_dir in $PATH
35499do
35500 IFS=$as_save_IFS
35501 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035502 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035504 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035506 break 2
35507 fi
35508done
cristy8b350f62009-11-15 23:12:43 +000035509 done
cristy3ed852e2009-09-05 21:47:34 +000035510IFS=$as_save_IFS
35511
35512 ;;
35513esac
35514fi
35515PERL=$ac_cv_path_PERL
35516if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000035517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035518$as_echo "$PERL" >&6; }
35519else
cristy8b350f62009-11-15 23:12:43 +000035520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035521$as_echo "no" >&6; }
35522fi
35523
35524
35525 test -n "$PERL" && break
35526done
35527 if test "$ac_cv_path_PERL"; then
35528 have_perl="$ac_cv_path_PERL"
35529 fi
35530 fi
35531fi
35532
cristy949301e2010-01-06 01:38:40 +000035533if test "$with_perl" != 'yes' ; then
35534 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
35535fi
35536
35537PERL_SUPPORTS_DESTDIR='no'
35538
cristy3ed852e2009-09-05 21:47:34 +000035539with_perl_static='no'
35540with_perl_dynamic='no'
35541if test "$have_perl" != 'no'; then
35542 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
35543 with_perl_static='yes'
35544 fi
35545 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
35546 with_perl_dynamic='yes'
35547 fi
35548 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000035549
35550
35551
35552
35553 if test -n "$PERL"; then :
35554
35555 ax_perl_version="5.8.1"
35556
35557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
35558$as_echo_n "checking for perl version... " >&6; }
35559
35560 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
35561
35562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
35563$as_echo "$perl_version" >&6; }
35564
35565 PERL_VERSION=$perl_version
35566
35567
35568
35569
35570
35571 # Used to indicate true or false condition
35572 ax_compare_version=false
35573
35574 # Convert the two version strings to be compared into a format that
35575 # allows a simple string comparison. The end result is that a version
35576 # string of the form 1.12.5-r617 will be converted to the form
35577 # 0001001200050617. In other words, each number is zero padded to four
35578 # digits, and non digits are removed.
35579
35580 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35581 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35582 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35583 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35584 -e 's/[^0-9]//g'`
35585
35586
35587 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35588 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35589 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35590 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35591 -e 's/[^0-9]//g'`
35592
35593
35594 ax_compare_version=`echo "x$ax_compare_version_A
35595x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
35596
35597
35598
35599 if test "$ax_compare_version" = "true" ; then
35600
35601 :
35602 PERL_SUPPORTS_DESTDIR='yes'
35603
35604 else
35605 :
35606 PERL_SUPPORTS_DESTDIR='no'
35607
35608 fi
35609
35610
35611else
35612
35613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
35614$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
35615 PERL_SUPPORTS_DESTDIR='no'
35616
cristy3ed852e2009-09-05 21:47:34 +000035617fi
cristy73bd4a52010-10-05 11:24:23 +000035618
35619fi
35620 if test "$have_perl" != 'no'; then
35621 WITH_PERL_TRUE=
35622 WITH_PERL_FALSE='#'
35623else
35624 WITH_PERL_TRUE='#'
35625 WITH_PERL_FALSE=
35626fi
35627
35628 if test $with_perl_static = 'yes'; then
35629 WITH_PERL_STATIC_TRUE=
35630 WITH_PERL_STATIC_FALSE='#'
35631else
35632 WITH_PERL_STATIC_TRUE='#'
35633 WITH_PERL_STATIC_FALSE=
35634fi
35635
35636 if test $with_perl_dynamic = 'yes'; then
35637 WITH_PERL_DYNAMIC_TRUE=
35638 WITH_PERL_DYNAMIC_FALSE='#'
35639else
35640 WITH_PERL_DYNAMIC_TRUE='#'
35641 WITH_PERL_DYNAMIC_FALSE=
35642fi
35643
cristy3ed852e2009-09-05 21:47:34 +000035644
35645
35646# Determine path to pick up MagickCore library from for use with building PerlMagick
35647MAGICKCORE_PATH="${LIB_DIR}"
35648if test $with_perl_static = 'yes'; then
35649 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
35650 libtool_objdir=$objdir
35651
35652 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000035653 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000035654fi
35655
35656
cristy2a3eb392012-12-17 13:39:20 +000035657# Create a simple string containing format names for all delegate libraries.
cristy422d5502012-12-22 22:20:57 +000035658MAGICK_DELEGATES=''
cristy2a3eb392012-12-17 13:39:20 +000035659if test "$have_autotrace" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035660 MAGICK_DELEGATES="$MAGICK_DELEGATES autotrace"
cristy3ed852e2009-09-05 21:47:34 +000035661fi
cristy2a3eb392012-12-17 13:39:20 +000035662if test "$have_bzlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035663 MAGICK_DELEGATES="$MAGICK_DELEGATES bzlib"
cristy2a3eb392012-12-17 13:39:20 +000035664fi
35665if test "$have_dps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035666 MAGICK_DELEGATES="$MAGICK_DELEGATES dps"
cristy2a3eb392012-12-17 13:39:20 +000035667fi
35668if test "$have_djvu" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035669 MAGICK_DELEGATES="$MAGICK_DELEGATES djvu"
cristy2a3eb392012-12-17 13:39:20 +000035670fi
cristy81ab5af2013-10-06 18:28:39 +000035671if test "$have_avconv" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035672 MAGICK_DELEGATES="$MAGICK_DELEGATES mpeg"
cristy2a3eb392012-12-17 13:39:20 +000035673fi
cristy854c9cf2013-08-10 21:03:06 +000035674if test "$have_mupdf" = 'yes' ; then
35675 MAGICK_DELEGATES="$MAGICK_DELEGATES mupdf"
cristyc0884e92013-08-10 17:14:59 +000035676fi
cristy2a3eb392012-12-17 13:39:20 +000035677if test "$have_fftw" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035678 MAGICK_DELEGATES="$MAGICK_DELEGATES fftw"
cristy2a3eb392012-12-17 13:39:20 +000035679fi
cristy2a3eb392012-12-17 13:39:20 +000035680if test "$have_fpx" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035681 MAGICK_DELEGATES="$MAGICK_DELEGATES fpx"
cristy2a3eb392012-12-17 13:39:20 +000035682fi
35683if test "$have_fontconfig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035684 MAGICK_DELEGATES="$MAGICK_DELEGATES fontconfig"
cristy2a3eb392012-12-17 13:39:20 +000035685fi
35686if test "$have_freetype" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035687 MAGICK_DELEGATES="$MAGICK_DELEGATES freetype"
cristy2a3eb392012-12-17 13:39:20 +000035688fi
35689if test "$have_gslib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035690 MAGICK_DELEGATES="$MAGICK_DELEGATES gslib"
cristy2a3eb392012-12-17 13:39:20 +000035691fi
35692if test "$have_jbig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035693 MAGICK_DELEGATES="$MAGICK_DELEGATES jbig"
cristy2a3eb392012-12-17 13:39:20 +000035694fi
35695if test "$have_png$have_jpeg" = 'yesyes' ; then
cristy422d5502012-12-22 22:20:57 +000035696 MAGICK_DELEGATES="$MAGICK_DELEGATES jng"
cristy2a3eb392012-12-17 13:39:20 +000035697fi
35698if test "$have_jp2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035699 MAGICK_DELEGATES="$MAGICK_DELEGATES jp2"
cristy2a3eb392012-12-17 13:39:20 +000035700fi
35701if test "$have_jpeg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035702 MAGICK_DELEGATES="$MAGICK_DELEGATES jpeg"
cristy2a3eb392012-12-17 13:39:20 +000035703fi
35704if test "$have_lcms" = 'yes' || test "$have_lcms2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035705 MAGICK_DELEGATES="$MAGICK_DELEGATES lcms"
cristy2a3eb392012-12-17 13:39:20 +000035706fi
35707if test "$have_lqr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035708 MAGICK_DELEGATES="$MAGICK_DELEGATES lqr"
cristy2a3eb392012-12-17 13:39:20 +000035709fi
35710if test "$have_lzma" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035711 MAGICK_DELEGATES="$MAGICK_DELEGATES lzma"
cristy2a3eb392012-12-17 13:39:20 +000035712fi
35713if test "$have_openexr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035714 MAGICK_DELEGATES="$MAGICK_DELEGATES openexr"
cristy2a3eb392012-12-17 13:39:20 +000035715fi
cristy99db3872014-01-01 15:11:34 +000035716if test "$have_openjp2" = 'yes' ; then
35717 MAGICK_DELEGATES="$MAGICK_DELEGATES openjp2"
cristy3fe09452014-01-01 12:29:14 +000035718fi
cristy2a3eb392012-12-17 13:39:20 +000035719if test "$have_pango" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035720 MAGICK_DELEGATES="$MAGICK_DELEGATES pango"
cristy2a3eb392012-12-17 13:39:20 +000035721fi
35722if test "$have_png" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035723 MAGICK_DELEGATES="$MAGICK_DELEGATES png"
cristy2a3eb392012-12-17 13:39:20 +000035724fi
35725have_ps='no'
35726if test "$have_dps" = 'yes' || \
35727 test "$have_gs" = 'yes' || \
35728 test "${native_win32_build}" = 'yes' ; then
35729 have_ps='yes'
35730fi
35731if test "$have_ps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035732 MAGICK_DELEGATES="$MAGICK_DELEGATES ps"
cristy2a3eb392012-12-17 13:39:20 +000035733fi
cristy2a3eb392012-12-17 13:39:20 +000035734if test "$have_ra_ppm" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035735 MAGICK_DELEGATES="$MAGICK_DELEGATES rad"
cristy2a3eb392012-12-17 13:39:20 +000035736fi
35737if test "$have_rsvg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035738 MAGICK_DELEGATES="$MAGICK_DELEGATES rsvg"
cristy2a3eb392012-12-17 13:39:20 +000035739fi
35740if test "$have_tiff" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035741 MAGICK_DELEGATES="$MAGICK_DELEGATES tiff"
cristy2a3eb392012-12-17 13:39:20 +000035742fi
35743if test "$have_ttf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035744 MAGICK_DELEGATES="$MAGICK_DELEGATES ttf"
cristy2a3eb392012-12-17 13:39:20 +000035745fi
cristy3b640ed2013-07-29 00:27:59 +000035746if test "$have_webp" = 'yes' ; then
35747 MAGICK_DELEGATES="$MAGICK_DELEGATES webp"
35748fi
cristy2a3eb392012-12-17 13:39:20 +000035749if test "$have_wmf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035750 MAGICK_DELEGATES="$MAGICK_DELEGATES wmf"
cristy2a3eb392012-12-17 13:39:20 +000035751fi
35752if test "$have_x" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035753 MAGICK_DELEGATES="$MAGICK_DELEGATES x"
cristy2a3eb392012-12-17 13:39:20 +000035754fi
35755if test "$have_xml" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035756 MAGICK_DELEGATES="$MAGICK_DELEGATES xml"
cristy2a3eb392012-12-17 13:39:20 +000035757fi
35758if test "$have_zlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035759 MAGICK_DELEGATES="$MAGICK_DELEGATES zlib"
cristy2a3eb392012-12-17 13:39:20 +000035760fi
cristy2a3eb392012-12-17 13:39:20 +000035761# Remove extraneous spaces from output variables (asthetic)
cristy422d5502012-12-22 22:20:57 +000035762MAGICK_DELEGATES=`echo $MAGICK_DELEGATES | sed -e 's/ */ /g'`
cristy2a3eb392012-12-17 13:39:20 +000035763MAGICK_FEATURES=`echo $MAGICK_FEATURES | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000035764
35765
cristyfa161182012-12-19 15:45:28 +000035766
cristy3ed852e2009-09-05 21:47:34 +000035767#
35768# Handle special compiler flags
35769#
35770
35771# Add '-p' if prof source profiling support enabled
35772if test "$enable_prof" = 'yes'; then
35773 CFLAGS="-p $CFLAGS"
35774 CXXFLAGS="-p $CXXFLAGS"
35775 LDFLAGS="-p $LDFLAGS"
35776fi
35777
35778# Add '-pg' if gprof source profiling support enabled
35779if test "$enable_gprof" = 'yes'; then
35780 CFLAGS="-pg $CFLAGS"
35781 CXXFLAGS="-pg $CXXFLAGS"
35782 LDFLAGS="-pg $LDFLAGS"
35783fi
35784
35785# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
35786# This is a gcc-specific feature
35787if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035789$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035790if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035791 $as_echo_n "(cached) " >&6
35792else
35793 ac_check_lib_save_LIBS=$LIBS
35794LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035795cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035796/* end confdefs.h. */
35797
35798/* Override any GCC internal prototype to avoid an error.
35799 Use char because int might match the return type of a GCC
35800 builtin and then its argument prototype would still apply. */
35801#ifdef __cplusplus
35802extern "C"
35803#endif
35804char _gcov_init ();
35805int
35806main ()
35807{
35808return _gcov_init ();
35809 ;
35810 return 0;
35811}
35812_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035813if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035814 ac_cv_lib_gcov__gcov_init=yes
35815else
cristy8b350f62009-11-15 23:12:43 +000035816 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035817fi
cristy8b350f62009-11-15 23:12:43 +000035818rm -f core conftest.err conftest.$ac_objext \
35819 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035820LIBS=$ac_check_lib_save_LIBS
35821fi
cristy8b350f62009-11-15 23:12:43 +000035822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035823$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035824if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035825 cat >>confdefs.h <<_ACEOF
35826#define HAVE_LIBGCOV 1
35827_ACEOF
35828
35829 LIBS="-lgcov $LIBS"
35830
35831fi
35832
cristy8b350f62009-11-15 23:12:43 +000035833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035834$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035835if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035836 $as_echo_n "(cached) " >&6
35837else
35838 ac_check_lib_save_LIBS=$LIBS
35839LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035840cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035841/* end confdefs.h. */
35842
35843/* Override any GCC internal prototype to avoid an error.
35844 Use char because int might match the return type of a GCC
35845 builtin and then its argument prototype would still apply. */
35846#ifdef __cplusplus
35847extern "C"
35848#endif
35849char __gcov_init ();
35850int
35851main ()
35852{
35853return __gcov_init ();
35854 ;
35855 return 0;
35856}
35857_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035858if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035859 ac_cv_lib_gcov___gcov_init=yes
35860else
cristy8b350f62009-11-15 23:12:43 +000035861 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035862fi
cristy8b350f62009-11-15 23:12:43 +000035863rm -f core conftest.err conftest.$ac_objext \
35864 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035865LIBS=$ac_check_lib_save_LIBS
35866fi
cristy8b350f62009-11-15 23:12:43 +000035867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035868$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035869if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035870 cat >>confdefs.h <<_ACEOF
35871#define HAVE_LIBGCOV 1
35872_ACEOF
35873
35874 LIBS="-lgcov $LIBS"
35875
35876fi
35877
35878 case "$target_os" in
35879 darwin*)
35880 OSX_GCOV_LDFLAG="-Wl,-single_module"
35881 ;;
35882 *)
35883 OSX_GCOV_LDFLAG=""
35884 ;;
35885 esac
35886
35887 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
35888 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
35889 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
35890fi
35891
35892#
35893# Build library dependency list for libMagickCore
35894#
35895
cristyc6722092012-10-14 00:19:31 +000035896if test "$build_modules" != 'no'; then
cristy5eef09f2012-10-16 12:08:28 +000035897 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 +000035898else
cristy25997252014-01-02 13:28:18 +000035899 MAGICK_DEP_LIBS="$JBIG_LIBS $LCMS_LIBS $TIFF_LIBS $FREETYPE_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 $OPENJPEG_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 +000035900fi
35901
35902
35903#
35904# Remove extraneous spaces from output variables (asthetic)
35905#
35906X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
35907X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
35908X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
35909X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
35910
35911CC=`echo $CC | sed -e 's/ */ /g'`
35912CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
35913CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
35914CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000035915DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
35916LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
35917TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35918MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
35919#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35920
35921# Pass only user-provided LIBS as "global" libraries
35922LIBS=$USER_LIBS
35923
35924#AC_SUBST(CPPFLAGS)
35925
35926#AC_SUBST(LDFLAGS)
35927#AC_SUBST(X_PRE_LIBS)
35928#AC_SUBST(X_LIBS)
35929#AC_SUBST(X_EXTRA_LIBS)
35930
35931MAGICK_CFLAGS=$CFLAGS
35932MAGICK_CXXFLAGS="$CXXFLAGS"
35933MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
35934MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
35935MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
cristy31b9e072013-10-17 15:02:53 +000035936MAGICK_LIBS="$MAGICK_DEP_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000035937
35938
35939
35940
35941
35942
35943
35944
35945# Set configured scripts to executable.
35946ac_config_commands="$ac_config_commands default"
35947
cristy2bd4b6e2012-07-22 15:29:11 +000035948ac_config_commands="$ac_config_commands magick.sh.in"
35949
cristy3ed852e2009-09-05 21:47:34 +000035950ac_config_commands="$ac_config_commands MagickCore-config.in"
35951
cristy3ed852e2009-09-05 21:47:34 +000035952ac_config_commands="$ac_config_commands MagickWand-config.in"
35953
cristy3ed852e2009-09-05 21:47:34 +000035954ac_config_commands="$ac_config_commands Magick++-config.in"
35955
35956ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
35957
35958
cristyad38abe2012-12-23 23:03:21 +000035959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35960$as_echo "-------------------------------------------------------------" >&6; }
35961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
35962$as_echo "Update ImageMagick configuration" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035963cat >confcache <<\_ACEOF
35964# This file is a shell script that caches the results of configure
35965# tests run on this system so they can be shared between configure
35966# scripts and configure runs, see configure's option --config-cache.
35967# It is not useful on other systems. If it contains results you don't
35968# want to keep, you may remove or edit it.
35969#
35970# config.status only pays attention to the cache file if you give it
35971# the --recheck option to rerun configure.
35972#
35973# `ac_cv_env_foo' variables (set or unset) will be overridden when
35974# loading this file, other *unset* `ac_cv_foo' will be assigned the
35975# following values.
35976
35977_ACEOF
35978
35979# The following way of writing the cache mishandles newlines in values,
35980# but we know of no workaround that is simple, portable, and efficient.
35981# So, we kill variables containing newlines.
35982# Ultrix sh set writes to stderr and can't be redirected directly,
35983# and sets the high bit in the cache file unless we assign to the vars.
35984(
35985 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35986 eval ac_val=\$$ac_var
35987 case $ac_val in #(
35988 *${as_nl}*)
35989 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000035990 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000035991$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
35992 esac
35993 case $ac_var in #(
35994 _ | IFS | as_nl) ;; #(
35995 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000035996 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000035997 esac ;;
35998 esac
35999 done
36000
36001 (set) 2>&1 |
36002 case $as_nl`(ac_space=' '; set) 2>&1` in #(
36003 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000036004 # `set' does not quote correctly, so add quotes: double-quote
36005 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000036006 sed -n \
36007 "s/'/'\\\\''/g;
36008 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
36009 ;; #(
36010 *)
36011 # `set' quotes correctly as required by POSIX, so do not add quotes.
36012 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
36013 ;;
36014 esac |
36015 sort
36016) |
36017 sed '
36018 /^ac_cv_env_/b end
36019 t clear
36020 :clear
36021 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
36022 t end
36023 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
36024 :end' >>confcache
36025if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
36026 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000036027 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000036028 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000036029$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000036030 if test ! -f "$cache_file" || test -h "$cache_file"; then
36031 cat confcache >"$cache_file"
36032 else
36033 case $cache_file in #(
36034 */* | ?:*)
36035 mv -f confcache "$cache_file"$$ &&
36036 mv -f "$cache_file"$$ "$cache_file" ;; #(
36037 *)
36038 mv -f confcache "$cache_file" ;;
36039 esac
36040 fi
36041 fi
cristy3ed852e2009-09-05 21:47:34 +000036042 else
cristy8b350f62009-11-15 23:12:43 +000036043 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000036044$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
36045 fi
36046fi
36047rm -f confcache
36048
36049test "x$prefix" = xNONE && prefix=$ac_default_prefix
36050# Let make expand exec_prefix.
36051test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
36052
36053DEFS=-DHAVE_CONFIG_H
36054
36055ac_libobjs=
36056ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000036057U=
cristy3ed852e2009-09-05 21:47:34 +000036058for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
36059 # 1. Remove the extension, and $U if already installed.
36060 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
36061 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
36062 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
36063 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000036064 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
36065 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000036066done
36067LIBOBJS=$ac_libobjs
36068
36069LTLIBOBJS=$ac_ltlibobjs
36070
36071
cristyc0890a62012-07-19 00:18:20 +000036072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
36073$as_echo_n "checking that generated files are newer than configure... " >&6; }
36074 if test -n "$am_sleep_pid"; then
36075 # Hide warnings about reused PIDs.
36076 wait $am_sleep_pid 2>/dev/null
36077 fi
36078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
36079$as_echo "done" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000036080 if test -n "$EXEEXT"; then
36081 am__EXEEXT_TRUE=
36082 am__EXEEXT_FALSE='#'
36083else
36084 am__EXEEXT_TRUE='#'
36085 am__EXEEXT_FALSE=
36086fi
cristy3ed852e2009-09-05 21:47:34 +000036087
cristy73bd4a52010-10-05 11:24:23 +000036088if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036089 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036090Usually this means the macro was only invoked conditionally." "$LINENO" 5
36091fi
36092if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036093 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036094Usually this means the macro was only invoked conditionally." "$LINENO" 5
36095fi
36096if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036097 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036098Usually this means the macro was only invoked conditionally." "$LINENO" 5
36099fi
36100if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036101 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036102Usually this means the macro was only invoked conditionally." "$LINENO" 5
36103fi
cristy9b86f202012-11-28 21:55:35 +000036104if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
36105 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
36106Usually this means the macro was only invoked conditionally." "$LINENO" 5
36107fi
cristy73bd4a52010-10-05 11:24:23 +000036108if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036109 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036110Usually this means the macro was only invoked conditionally." "$LINENO" 5
36111fi
36112if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036113 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036114Usually this means the macro was only invoked conditionally." "$LINENO" 5
36115fi
36116if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036117 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036118Usually this means the macro was only invoked conditionally." "$LINENO" 5
36119fi
36120if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036121 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036122Usually this means the macro was only invoked conditionally." "$LINENO" 5
36123fi
cristy73bd4a52010-10-05 11:24:23 +000036124if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036125 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036126Usually this means the macro was only invoked conditionally." "$LINENO" 5
36127fi
36128if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036129 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036130Usually this means the macro was only invoked conditionally." "$LINENO" 5
36131fi
cristy73bd4a52010-10-05 11:24:23 +000036132if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036133 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036134Usually this means the macro was only invoked conditionally." "$LINENO" 5
36135fi
cristy71d8c202012-03-20 17:05:01 +000036136if test -z "${LEGACY_SUPPORT_TRUE}" && test -z "${LEGACY_SUPPORT_FALSE}"; then
36137 as_fn_error $? "conditional \"LEGACY_SUPPORT\" was never defined.
36138Usually this means the macro was only invoked conditionally." "$LINENO" 5
36139fi
cristy73bd4a52010-10-05 11:24:23 +000036140
36141if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036142 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036143Usually this means the macro was only invoked conditionally." "$LINENO" 5
36144fi
36145if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036146 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036147Usually this means the macro was only invoked conditionally." "$LINENO" 5
36148fi
36149if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036150 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036151Usually this means the macro was only invoked conditionally." "$LINENO" 5
36152fi
36153if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036154 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036155Usually this means the macro was only invoked conditionally." "$LINENO" 5
36156fi
36157if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036158 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036159Usually this means the macro was only invoked conditionally." "$LINENO" 5
36160fi
36161if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036162 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036163Usually this means the macro was only invoked conditionally." "$LINENO" 5
36164fi
cristy5eef09f2012-10-16 12:08:28 +000036165if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
36166 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
36167Usually this means the macro was only invoked conditionally." "$LINENO" 5
36168fi
cristy73bd4a52010-10-05 11:24:23 +000036169if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036170 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036171Usually this means the macro was only invoked conditionally." "$LINENO" 5
36172fi
36173if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036174 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036175Usually this means the macro was only invoked conditionally." "$LINENO" 5
36176fi
36177if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036178 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036179Usually this means the macro was only invoked conditionally." "$LINENO" 5
36180fi
36181if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036182 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036183Usually this means the macro was only invoked conditionally." "$LINENO" 5
36184fi
36185if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036186 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036187Usually this means the macro was only invoked conditionally." "$LINENO" 5
36188fi
36189if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036190 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036191Usually this means the macro was only invoked conditionally." "$LINENO" 5
36192fi
36193if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036194 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036195Usually this means the macro was only invoked conditionally." "$LINENO" 5
36196fi
36197if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036198 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036199Usually this means the macro was only invoked conditionally." "$LINENO" 5
36200fi
36201if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036202 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036203Usually this means the macro was only invoked conditionally." "$LINENO" 5
36204fi
36205if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036206 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036207Usually this means the macro was only invoked conditionally." "$LINENO" 5
36208fi
36209if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036210 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036211Usually this means the macro was only invoked conditionally." "$LINENO" 5
36212fi
cristy73bd4a52010-10-05 11:24:23 +000036213if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036214 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036215Usually this means the macro was only invoked conditionally." "$LINENO" 5
36216fi
cristy99db3872014-01-01 15:11:34 +000036217if test -z "${LIBOPENJP2_DELEGATE_TRUE}" && test -z "${LIBOPENJP2_DELEGATE_FALSE}"; then
36218 as_fn_error $? "conditional \"LIBOPENJP2_DELEGATE\" was never defined.
36219Usually this means the macro was only invoked conditionally." "$LINENO" 5
36220fi
cristy73bd4a52010-10-05 11:24:23 +000036221if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036222 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036223Usually this means the macro was only invoked conditionally." "$LINENO" 5
36224fi
cristyfbb0ef02010-12-19 02:32:11 +000036225if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
36226 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
36227Usually this means the macro was only invoked conditionally." "$LINENO" 5
36228fi
cristy854c9cf2013-08-10 21:03:06 +000036229if test -z "${MUPDF_DELEGATE_TRUE}" && test -z "${MUPDF_DELEGATE_FALSE}"; then
36230 as_fn_error $? "conditional \"MUPDF_DELEGATE\" was never defined.
36231Usually this means the macro was only invoked conditionally." "$LINENO" 5
36232fi
cristy73bd4a52010-10-05 11:24:23 +000036233if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036234 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036235Usually this means the macro was only invoked conditionally." "$LINENO" 5
36236fi
cristy41cbe8a2011-10-27 01:35:18 +000036237if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
36238 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
36239Usually this means the macro was only invoked conditionally." "$LINENO" 5
36240fi
cristya054b762012-03-26 23:16:00 +000036241if test -z "${PANGOCAIRO_DELEGATE_TRUE}" && test -z "${PANGOCAIRO_DELEGATE_FALSE}"; then
36242 as_fn_error $? "conditional \"PANGOCAIRO_DELEGATE\" was never defined.
cristy41cbe8a2011-10-27 01:35:18 +000036243Usually this means the macro was only invoked conditionally." "$LINENO" 5
36244fi
cristy73bd4a52010-10-05 11:24:23 +000036245if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036246 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036247Usually this means the macro was only invoked conditionally." "$LINENO" 5
36248fi
36249if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036250 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036251Usually this means the macro was only invoked conditionally." "$LINENO" 5
36252fi
36253if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036254 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036255Usually this means the macro was only invoked conditionally." "$LINENO" 5
36256fi
36257if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036258 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036259Usually this means the macro was only invoked conditionally." "$LINENO" 5
36260fi
cristyb1860752011-03-14 00:27:46 +000036261if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
36262 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
36263Usually this means the macro was only invoked conditionally." "$LINENO" 5
36264fi
cristy73bd4a52010-10-05 11:24:23 +000036265if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036266 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036267Usually this means the macro was only invoked conditionally." "$LINENO" 5
36268fi
36269if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036270 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036271Usually this means the macro was only invoked conditionally." "$LINENO" 5
36272fi
36273if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036274 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036275Usually this means the macro was only invoked conditionally." "$LINENO" 5
36276fi
36277if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036278 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036279Usually this means the macro was only invoked conditionally." "$LINENO" 5
36280fi
36281if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036282 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036283Usually this means the macro was only invoked conditionally." "$LINENO" 5
36284fi
36285if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036286 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036287Usually this means the macro was only invoked conditionally." "$LINENO" 5
36288fi
36289if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036290 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036291Usually this means the macro was only invoked conditionally." "$LINENO" 5
36292fi
36293if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036294 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036295Usually this means the macro was only invoked conditionally." "$LINENO" 5
36296fi
cristy3ed852e2009-09-05 21:47:34 +000036297
cristyda16f162011-02-19 23:52:17 +000036298: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000036299ac_write_fail=0
36300ac_clean_files_save=$ac_clean_files
36301ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000036302{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000036303$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000036304as_write_fail=0
36305cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036306#! $SHELL
36307# Generated by $as_me.
36308# Run this file to recreate the current configuration.
36309# Compiler output produced by configure, useful for debugging
36310# configure, is in config.log if it exists.
36311
36312debug=false
36313ac_cs_recheck=false
36314ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000036315
cristy8b350f62009-11-15 23:12:43 +000036316SHELL=\${CONFIG_SHELL-$SHELL}
36317export SHELL
36318_ASEOF
36319cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
36320## -------------------- ##
36321## M4sh Initialization. ##
36322## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000036323
36324# Be more Bourne compatible
36325DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000036326if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000036327 emulate sh
36328 NULLCMD=:
36329 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
36330 # is contrary to our usage. Disable this feature.
36331 alias -g '${1+"$@"}'='"$@"'
36332 setopt NO_GLOB_SUBST
36333else
cristy8b350f62009-11-15 23:12:43 +000036334 case `(set -o) 2>/dev/null` in #(
36335 *posix*) :
36336 set -o posix ;; #(
36337 *) :
36338 ;;
cristy3ed852e2009-09-05 21:47:34 +000036339esac
cristy3ed852e2009-09-05 21:47:34 +000036340fi
36341
36342
cristy3ed852e2009-09-05 21:47:34 +000036343as_nl='
36344'
36345export as_nl
36346# Printing a long string crashes Solaris 7 /usr/bin/printf.
36347as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
36348as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
36349as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000036350# Prefer a ksh shell builtin over an external printf program on Solaris,
36351# but without wasting forks for bash or zsh.
36352if test -z "$BASH_VERSION$ZSH_VERSION" \
36353 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
36354 as_echo='print -r --'
36355 as_echo_n='print -rn --'
36356elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000036357 as_echo='printf %s\n'
36358 as_echo_n='printf %s'
36359else
36360 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
36361 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
36362 as_echo_n='/usr/ucb/echo -n'
36363 else
36364 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
36365 as_echo_n_body='eval
36366 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000036367 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000036368 *"$as_nl"*)
36369 expr "X$arg" : "X\\(.*\\)$as_nl";
36370 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
36371 esac;
36372 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
36373 '
36374 export as_echo_n_body
36375 as_echo_n='sh -c $as_echo_n_body as_echo'
36376 fi
36377 export as_echo_body
36378 as_echo='sh -c $as_echo_body as_echo'
36379fi
36380
36381# The user is always right.
36382if test "${PATH_SEPARATOR+set}" != set; then
36383 PATH_SEPARATOR=:
36384 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
36385 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
36386 PATH_SEPARATOR=';'
36387 }
36388fi
36389
cristy3ed852e2009-09-05 21:47:34 +000036390
36391# IFS
36392# We need space, tab and new line, in precisely that order. Quoting is
36393# there to prevent editors from complaining about space-tab.
36394# (If _AS_PATH_WALK were called with IFS unset, it would disable word
36395# splitting by setting IFS to empty value.)
36396IFS=" "" $as_nl"
36397
36398# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000036399as_myself=
cristy8b350f62009-11-15 23:12:43 +000036400case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000036401 *[\\/]* ) as_myself=$0 ;;
36402 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36403for as_dir in $PATH
36404do
36405 IFS=$as_save_IFS
36406 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000036407 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
36408 done
cristy3ed852e2009-09-05 21:47:34 +000036409IFS=$as_save_IFS
36410
36411 ;;
36412esac
36413# We did not find ourselves, most probably we were run as `sh COMMAND'
36414# in which case we are not to be found in the path.
36415if test "x$as_myself" = x; then
36416 as_myself=$0
36417fi
36418if test ! -f "$as_myself"; then
36419 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000036420 exit 1
cristy3ed852e2009-09-05 21:47:34 +000036421fi
36422
cristy8b350f62009-11-15 23:12:43 +000036423# Unset variables that we do not need and which cause bugs (e.g. in
36424# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
36425# suppresses any "Segmentation fault" message there. '((' could
36426# trigger a bug in pdksh 5.2.14.
36427for as_var in BASH_ENV ENV MAIL MAILPATH
36428do eval test x\${$as_var+set} = xset \
36429 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000036430done
36431PS1='$ '
36432PS2='> '
36433PS4='+ '
36434
36435# NLS nuisances.
36436LC_ALL=C
36437export LC_ALL
36438LANGUAGE=C
36439export LANGUAGE
36440
cristy8b350f62009-11-15 23:12:43 +000036441# CDPATH.
36442(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36443
36444
cristy98dddb52010-11-04 00:30:15 +000036445# as_fn_error STATUS ERROR [LINENO LOG_FD]
36446# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000036447# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
36448# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000036449# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000036450as_fn_error ()
36451{
cristy98dddb52010-11-04 00:30:15 +000036452 as_status=$1; test $as_status -eq 0 && as_status=1
36453 if test "$4"; then
36454 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
36455 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000036456 fi
cristy98dddb52010-11-04 00:30:15 +000036457 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000036458 as_fn_exit $as_status
36459} # as_fn_error
36460
36461
36462# as_fn_set_status STATUS
36463# -----------------------
36464# Set $? to STATUS, without forking.
36465as_fn_set_status ()
36466{
36467 return $1
36468} # as_fn_set_status
36469
36470# as_fn_exit STATUS
36471# -----------------
36472# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
36473as_fn_exit ()
36474{
36475 set +e
36476 as_fn_set_status $1
36477 exit $1
36478} # as_fn_exit
36479
36480# as_fn_unset VAR
36481# ---------------
36482# Portably unset VAR.
36483as_fn_unset ()
36484{
36485 { eval $1=; unset $1;}
36486}
36487as_unset=as_fn_unset
36488# as_fn_append VAR VALUE
36489# ----------------------
36490# Append the text in VALUE to the end of the definition contained in VAR. Take
36491# advantage of any shell optimizations that allow amortized linear growth over
36492# repeated appends, instead of the typical quadratic growth present in naive
36493# implementations.
36494if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
36495 eval 'as_fn_append ()
36496 {
36497 eval $1+=\$2
36498 }'
36499else
36500 as_fn_append ()
36501 {
36502 eval $1=\$$1\$2
36503 }
36504fi # as_fn_append
36505
36506# as_fn_arith ARG...
36507# ------------------
36508# Perform arithmetic evaluation on the ARGs, and store the result in the
36509# global $as_val. Take advantage of shells that can avoid forks. The arguments
36510# must be portable across $(()) and expr.
36511if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
36512 eval 'as_fn_arith ()
36513 {
36514 as_val=$(( $* ))
36515 }'
36516else
36517 as_fn_arith ()
36518 {
36519 as_val=`expr "$@" || test $? -eq 1`
36520 }
36521fi # as_fn_arith
36522
36523
cristy3ed852e2009-09-05 21:47:34 +000036524if expr a : '\(a\)' >/dev/null 2>&1 &&
36525 test "X`expr 00001 : '.*\(...\)'`" = X001; then
36526 as_expr=expr
36527else
36528 as_expr=false
36529fi
36530
36531if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
36532 as_basename=basename
36533else
36534 as_basename=false
36535fi
36536
cristy8b350f62009-11-15 23:12:43 +000036537if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
36538 as_dirname=dirname
36539else
36540 as_dirname=false
36541fi
cristy3ed852e2009-09-05 21:47:34 +000036542
cristy3ed852e2009-09-05 21:47:34 +000036543as_me=`$as_basename -- "$0" ||
36544$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
36545 X"$0" : 'X\(//\)$' \| \
36546 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
36547$as_echo X/"$0" |
36548 sed '/^.*\/\([^/][^/]*\)\/*$/{
36549 s//\1/
36550 q
36551 }
36552 /^X\/\(\/\/\)$/{
36553 s//\1/
36554 q
36555 }
36556 /^X\/\(\/\).*/{
36557 s//\1/
36558 q
36559 }
36560 s/.*/./; q'`
36561
cristy8b350f62009-11-15 23:12:43 +000036562# Avoid depending upon Character Ranges.
36563as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36564as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36565as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36566as_cr_digits='0123456789'
36567as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000036568
36569ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000036570case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000036571-n*)
cristy8b350f62009-11-15 23:12:43 +000036572 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000036573 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000036574 xy) ECHO_C='\c';;
36575 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
36576 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000036577 esac;;
36578*)
36579 ECHO_N='-n';;
36580esac
cristy3ed852e2009-09-05 21:47:34 +000036581
36582rm -f conf$$ conf$$.exe conf$$.file
36583if test -d conf$$.dir; then
36584 rm -f conf$$.dir/conf$$.file
36585else
36586 rm -f conf$$.dir
36587 mkdir conf$$.dir 2>/dev/null
36588fi
36589if (echo >conf$$.file) 2>/dev/null; then
36590 if ln -s conf$$.file conf$$ 2>/dev/null; then
36591 as_ln_s='ln -s'
36592 # ... but there are two gotchas:
36593 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
36594 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cristy14fefe52012-05-21 00:59:18 +000036595 # In both cases, we have to default to `cp -pR'.
cristy3ed852e2009-09-05 21:47:34 +000036596 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cristy14fefe52012-05-21 00:59:18 +000036597 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036598 elif ln conf$$.file conf$$ 2>/dev/null; then
36599 as_ln_s=ln
36600 else
cristy14fefe52012-05-21 00:59:18 +000036601 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036602 fi
36603else
cristy14fefe52012-05-21 00:59:18 +000036604 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036605fi
36606rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
36607rmdir conf$$.dir 2>/dev/null
36608
cristy8b350f62009-11-15 23:12:43 +000036609
36610# as_fn_mkdir_p
36611# -------------
36612# Create "$as_dir" as a directory, including parents if necessary.
36613as_fn_mkdir_p ()
36614{
36615
36616 case $as_dir in #(
36617 -*) as_dir=./$as_dir;;
36618 esac
36619 test -d "$as_dir" || eval $as_mkdir_p || {
36620 as_dirs=
36621 while :; do
36622 case $as_dir in #(
36623 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
36624 *) as_qdir=$as_dir;;
36625 esac
36626 as_dirs="'$as_qdir' $as_dirs"
36627 as_dir=`$as_dirname -- "$as_dir" ||
36628$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36629 X"$as_dir" : 'X\(//\)[^/]' \| \
36630 X"$as_dir" : 'X\(//\)$' \| \
36631 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36632$as_echo X"$as_dir" |
36633 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36634 s//\1/
36635 q
36636 }
36637 /^X\(\/\/\)[^/].*/{
36638 s//\1/
36639 q
36640 }
36641 /^X\(\/\/\)$/{
36642 s//\1/
36643 q
36644 }
36645 /^X\(\/\).*/{
36646 s//\1/
36647 q
36648 }
36649 s/.*/./; q'`
36650 test -d "$as_dir" && break
36651 done
36652 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000036653 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000036654
36655
36656} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000036657if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000036658 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000036659else
36660 test -d ./-p && rmdir ./-p
36661 as_mkdir_p=false
36662fi
36663
cristy14fefe52012-05-21 00:59:18 +000036664
36665# as_fn_executable_p FILE
36666# -----------------------
36667# Test if FILE is an executable regular file.
36668as_fn_executable_p ()
36669{
36670 test -f "$1" && test -x "$1"
36671} # as_fn_executable_p
36672as_test_x='test -x'
36673as_executable_p=as_fn_executable_p
cristy3ed852e2009-09-05 21:47:34 +000036674
36675# Sed expression to map a string onto a valid CPP name.
36676as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
36677
36678# Sed expression to map a string onto a valid variable name.
36679as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
36680
36681
36682exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000036683## ----------------------------------- ##
36684## Main body of $CONFIG_STATUS script. ##
36685## ----------------------------------- ##
36686_ASEOF
36687test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036688
cristy8b350f62009-11-15 23:12:43 +000036689cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36690# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000036691# report actual input values of CONFIG_FILES etc. instead of their
36692# values after options handling.
36693ac_log="
cristy29eb34e2011-10-16 00:46:08 +000036694This file was extended by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +000036695generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000036696
36697 CONFIG_FILES = $CONFIG_FILES
36698 CONFIG_HEADERS = $CONFIG_HEADERS
36699 CONFIG_LINKS = $CONFIG_LINKS
36700 CONFIG_COMMANDS = $CONFIG_COMMANDS
36701 $ $0 $@
36702
36703on `(hostname || uname -n) 2>/dev/null | sed 1q`
36704"
36705
36706_ACEOF
36707
36708case $ac_config_files in *"
36709"*) set x $ac_config_files; shift; ac_config_files=$*;;
36710esac
36711
36712case $ac_config_headers in *"
36713"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
36714esac
36715
36716
36717cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36718# Files that config.status was made for.
36719config_files="$ac_config_files"
36720config_headers="$ac_config_headers"
36721config_commands="$ac_config_commands"
36722
36723_ACEOF
36724
36725cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36726ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000036727\`$as_me' instantiates files and other configuration actions
36728from templates according to the current configuration. Unless the files
36729and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000036730
cristy8b350f62009-11-15 23:12:43 +000036731Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000036732
36733 -h, --help print this help, then exit
36734 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000036735 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000036736 -q, --quiet, --silent
36737 do not print progress messages
36738 -d, --debug don't remove temporary files
36739 --recheck update $as_me by reconfiguring in the same conditions
36740 --file=FILE[:TEMPLATE]
36741 instantiate the configuration file FILE
36742 --header=FILE[:TEMPLATE]
36743 instantiate the configuration header FILE
36744
36745Configuration files:
36746$config_files
36747
36748Configuration headers:
36749$config_headers
36750
36751Configuration commands:
36752$config_commands
36753
cristy8b350f62009-11-15 23:12:43 +000036754Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000036755
36756_ACEOF
36757cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000036758ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000036759ac_cs_version="\\
cristy29eb34e2011-10-16 00:46:08 +000036760ImageMagick config.status 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +000036761configured by $0, generated by GNU Autoconf 2.69,
cristycd4c5312009-11-22 01:19:08 +000036762 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000036763
cristy14fefe52012-05-21 00:59:18 +000036764Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000036765This config.status script is free software; the Free Software Foundation
36766gives unlimited permission to copy, distribute and modify it."
36767
36768ac_pwd='$ac_pwd'
36769srcdir='$srcdir'
36770INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000036771MKDIR_P='$MKDIR_P'
36772AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000036773test -n "\$AWK" || AWK=awk
36774_ACEOF
36775
36776cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36777# The default lists apply if the user does not specify any file.
36778ac_need_defaults=:
36779while test $# != 0
36780do
36781 case $1 in
cristyda16f162011-02-19 23:52:17 +000036782 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000036783 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36784 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
36785 ac_shift=:
36786 ;;
cristyda16f162011-02-19 23:52:17 +000036787 --*=)
36788 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36789 ac_optarg=
36790 ac_shift=:
36791 ;;
cristy3ed852e2009-09-05 21:47:34 +000036792 *)
36793 ac_option=$1
36794 ac_optarg=$2
36795 ac_shift=shift
36796 ;;
36797 esac
36798
36799 case $ac_option in
36800 # Handling of the options.
36801 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36802 ac_cs_recheck=: ;;
36803 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
36804 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000036805 --config | --confi | --conf | --con | --co | --c )
36806 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000036807 --debug | --debu | --deb | --de | --d | -d )
36808 debug=: ;;
36809 --file | --fil | --fi | --f )
36810 $ac_shift
36811 case $ac_optarg in
36812 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000036813 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000036814 esac
cristy8b350f62009-11-15 23:12:43 +000036815 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036816 ac_need_defaults=false;;
36817 --header | --heade | --head | --hea )
36818 $ac_shift
36819 case $ac_optarg in
36820 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
36821 esac
cristy8b350f62009-11-15 23:12:43 +000036822 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036823 ac_need_defaults=false;;
36824 --he | --h)
36825 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000036826 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036827Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000036828 --help | --hel | -h )
36829 $as_echo "$ac_cs_usage"; exit ;;
36830 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36831 | -silent | --silent | --silen | --sile | --sil | --si | --s)
36832 ac_cs_silent=: ;;
36833
36834 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000036835 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036836Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000036837
cristy8b350f62009-11-15 23:12:43 +000036838 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000036839 ac_need_defaults=false ;;
36840
36841 esac
36842 shift
36843done
36844
36845ac_configure_extra_args=
36846
36847if $ac_cs_silent; then
36848 exec 6>/dev/null
36849 ac_configure_extra_args="$ac_configure_extra_args --silent"
36850fi
36851
36852_ACEOF
36853cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36854if \$ac_cs_recheck; then
cristy14fefe52012-05-21 00:59:18 +000036855 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
cristy3ed852e2009-09-05 21:47:34 +000036856 shift
36857 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
36858 CONFIG_SHELL='$SHELL'
36859 export CONFIG_SHELL
36860 exec "\$@"
36861fi
36862
36863_ACEOF
36864cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36865exec 5>>config.log
36866{
36867 echo
36868 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36869## Running $as_me. ##
36870_ASBOX
36871 $as_echo "$ac_log"
36872} >&5
36873
36874_ACEOF
36875cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000036876#
36877# INIT-COMMANDS
36878#
36879PACKAGE="$PACKAGE"
36880AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
36881
36882
36883# The HP-UX ksh and POSIX shell print the target directory to stdout
36884# if CDPATH is set.
36885(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36886
36887sed_quote_subst='$sed_quote_subst'
36888double_quote_subst='$double_quote_subst'
36889delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000036890SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
36891Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
36892GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
36893EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
36894FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
36895SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
36896ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
36897LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
36898macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
36899macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
36900AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
36901DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
36902OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
36903enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
36904enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
36905pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
36906enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
cristy99bd5232011-12-07 14:38:20 +000036907PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036908host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
36909host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
36910host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
36911build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
36912build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
36913build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
36914NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
36915LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
36916max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
36917ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
36918exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
36919lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
36920lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
36921lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036922lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
36923lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036924reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
36925reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
36926deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
36927file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036928file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
36929want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
36930sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036931AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
36932AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036933archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036934STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
36935RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
36936old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36937old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36938old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
36939lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
36940CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
36941CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
36942compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
36943GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
36944lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
36945lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
36946lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
36947lt_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 +000036948nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
36949lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036950objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
36951MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
36952lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036953lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036954lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036955lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
36956lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
36957need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036958MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036959DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
36960NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
36961LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
36962OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
36963OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
36964libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
36965shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
36966extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36967archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
36968enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
36969export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
36970whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
36971compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
36972old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
36973old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36974archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
36975archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36976module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
36977module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36978with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
36979allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
36980no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
36981hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036982hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
36983hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
36984hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
36985hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
36986hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
36987hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
36988inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
36989link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036990always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
36991export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
36992exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
36993include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
36994prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036995postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036996file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
36997variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
36998need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
36999need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
37000version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
37001runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
37002shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
37003shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
37004libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
37005library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
37006soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
37007install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
37008postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
37009postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
37010finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
37011finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
37012hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
37013sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
37014sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
37015hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
37016enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
37017enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
37018enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
37019old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
37020striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
37021compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
37022predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
37023postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
37024predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
37025postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
37026compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
37027LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
37028reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
37029reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37030old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37031compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
37032GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
37033lt_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 +000037034lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037035lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037036lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
37037lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
37038archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
37039enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
37040export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
37041whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
37042compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
37043old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37044old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37045archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37046archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37047module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37048module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37049with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
37050allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
37051no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
37052hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037053hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
37054hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
37055hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
37056hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
37057hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
37058hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
37059inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
37060link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037061always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
37062export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37063exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
37064include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
37065prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037066postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037067file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
37068hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
37069compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
37070predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
37071postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
37072predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
37073postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
37074compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000037075
37076LTCC='$LTCC'
37077LTCFLAGS='$LTCFLAGS'
37078compiler='$compiler_DEFAULT'
37079
cristy0c60a692010-11-04 01:09:47 +000037080# A function that is used when there is no print builtin or printf.
37081func_fallback_echo ()
37082{
37083 eval 'cat <<_LTECHO_EOF
37084\$1
37085_LTECHO_EOF'
37086}
37087
cristy73bd4a52010-10-05 11:24:23 +000037088# Quote evaled strings.
37089for var in SED \
37090GREP \
37091EGREP \
37092FGREP \
cristy0c60a692010-11-04 01:09:47 +000037093SHELL \
37094ECHO \
cristy73bd4a52010-10-05 11:24:23 +000037095LD \
cristy0c60a692010-11-04 01:09:47 +000037096AS \
37097DLLTOOL \
37098OBJDUMP \
cristy99bd5232011-12-07 14:38:20 +000037099PATH_SEPARATOR \
cristy73bd4a52010-10-05 11:24:23 +000037100NM \
37101LN_S \
37102lt_SP2NL \
37103lt_NL2SP \
37104reload_flag \
37105deplibs_check_method \
37106file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000037107file_magic_glob \
37108want_nocaseglob \
37109sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000037110AR \
37111AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000037112archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000037113STRIP \
37114RANLIB \
37115CC \
37116CFLAGS \
37117compiler \
37118lt_cv_sys_global_symbol_pipe \
37119lt_cv_sys_global_symbol_to_cdecl \
37120lt_cv_sys_global_symbol_to_c_name_address \
37121lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000037122nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000037123lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000037124lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000037125lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000037126lt_prog_compiler_static \
37127lt_cv_prog_compiler_c_o \
37128need_locks \
cristyda16f162011-02-19 23:52:17 +000037129MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000037130DSYMUTIL \
37131NMEDIT \
37132LIPO \
37133OTOOL \
37134OTOOL64 \
37135shrext_cmds \
37136export_dynamic_flag_spec \
37137whole_archive_flag_spec \
37138compiler_needs_object \
37139with_gnu_ld \
37140allow_undefined_flag \
37141no_undefined_flag \
37142hardcode_libdir_flag_spec \
cristy73bd4a52010-10-05 11:24:23 +000037143hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000037144exclude_expsyms \
37145include_expsyms \
37146file_list_spec \
37147variables_saved_for_relink \
37148libname_spec \
37149library_names_spec \
37150soname_spec \
cristy0c60a692010-11-04 01:09:47 +000037151install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000037152finish_eval \
37153old_striplib \
37154striplib \
37155compiler_lib_search_dirs \
37156predep_objects \
37157postdep_objects \
37158predeps \
37159postdeps \
37160compiler_lib_search_path \
37161LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000037162reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037163compiler_CXX \
37164lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037165lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000037166lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037167lt_prog_compiler_static_CXX \
37168lt_cv_prog_compiler_c_o_CXX \
37169export_dynamic_flag_spec_CXX \
37170whole_archive_flag_spec_CXX \
37171compiler_needs_object_CXX \
37172with_gnu_ld_CXX \
37173allow_undefined_flag_CXX \
37174no_undefined_flag_CXX \
37175hardcode_libdir_flag_spec_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037176hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037177exclude_expsyms_CXX \
37178include_expsyms_CXX \
37179file_list_spec_CXX \
37180compiler_lib_search_dirs_CXX \
37181predep_objects_CXX \
37182postdep_objects_CXX \
37183predeps_CXX \
37184postdeps_CXX \
37185compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000037186 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000037187 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000037188 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000037189 ;;
37190 *)
37191 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37192 ;;
37193 esac
37194done
37195
37196# Double-quote double-evaled strings.
37197for var in reload_cmds \
37198old_postinstall_cmds \
37199old_postuninstall_cmds \
37200old_archive_cmds \
37201extract_expsyms_cmds \
37202old_archive_from_new_cmds \
37203old_archive_from_expsyms_cmds \
37204archive_cmds \
37205archive_expsym_cmds \
37206module_cmds \
37207module_expsym_cmds \
37208export_symbols_cmds \
37209prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000037210postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000037211postinstall_cmds \
37212postuninstall_cmds \
37213finish_cmds \
37214sys_lib_search_path_spec \
37215sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000037216reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037217old_archive_cmds_CXX \
37218old_archive_from_new_cmds_CXX \
37219old_archive_from_expsyms_cmds_CXX \
37220archive_cmds_CXX \
37221archive_expsym_cmds_CXX \
37222module_cmds_CXX \
37223module_expsym_cmds_CXX \
37224export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000037225prelink_cmds_CXX \
37226postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000037227 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000037228 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000037229 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000037230 ;;
37231 *)
37232 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37233 ;;
37234 esac
37235done
37236
cristy73bd4a52010-10-05 11:24:23 +000037237ac_aux_dir='$ac_aux_dir'
37238xsi_shell='$xsi_shell'
37239lt_shell_append='$lt_shell_append'
37240
37241# See if we are running on zsh, and set the options which allow our
37242# commands through without removal of \ escapes INIT.
37243if test -n "\${ZSH_VERSION+set}" ; then
37244 setopt NO_GLOB_SUBST
37245fi
37246
37247
37248 PACKAGE='$PACKAGE'
37249 VERSION='$VERSION'
37250 TIMESTAMP='$TIMESTAMP'
37251 RM='$RM'
37252 ofile='$ofile'
37253
37254
37255
37256
37257
37258
cristy3ed852e2009-09-05 21:47:34 +000037259_ACEOF
37260
37261cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37262
37263# Handling of arguments.
37264for ac_config_target in $ac_config_targets
37265do
37266 case $ac_config_target in
37267 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy01ff9f32012-12-01 18:15:29 +000037268 "MagickCore/magick-baseconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-baseconfig.h" ;;
cristy305c5dd2012-09-13 00:30:13 +000037269 "common.shi") CONFIG_FILES="$CONFIG_FILES common.shi" ;;
cristy3ed852e2009-09-05 21:47:34 +000037270 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
37271 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
37272 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
37273 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
37274 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy2df32802012-09-17 01:15:28 +000037275 "config/Magick++.dox") CONFIG_FILES="$CONFIG_FILES config/Magick++.dox" ;;
cristy430a7312010-01-21 20:44:04 +000037276 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000037277 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
37278 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
37279 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
37280 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
37281 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000037282 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000037283 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000037284 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
37285 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
37286 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000037287 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
37288 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
cristy3ed852e2009-09-05 21:47:34 +000037289 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
cristy8d0ff762013-03-10 20:33:28 +000037290 "PerlMagick/default/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Magick.pm" ;;
cristy3e049f82013-02-13 13:26:53 +000037291 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
cristy8d0ff762013-03-10 20:33:28 +000037292 "PerlMagick/default/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Makefile.PL" ;;
cristycf0cbcc2013-02-13 23:32:58 +000037293 "PerlMagick/quantum/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/Makefile.PL" ;;
37294 "PerlMagick/quantum/quantum.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.pm" ;;
37295 "PerlMagick/quantum/quantum.xs") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.xs" ;;
37296 "PerlMagick/quantum/typemap") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/typemap" ;;
cristy3ed852e2009-09-05 21:47:34 +000037297 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
37298 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
37299 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
37300 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
37301 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
37302 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
37303 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
37304 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
37305 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
37306 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
37307 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
37308 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000037309 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
37310 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000037311 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
37312 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000037313 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
cristy2bd4b6e2012-07-22 15:29:11 +000037314 "magick.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS magick.sh.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037315 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037316 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037317 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
37318 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
37319
cristy98dddb52010-11-04 00:30:15 +000037320 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037321 esac
37322done
37323
37324
37325# If the user did not use the arguments to specify the items to instantiate,
37326# then the envvar interface is used. Set only those that are not.
37327# We use the long form for the default assignment because of an extremely
37328# bizarre bug on SunOS 4.1.3.
37329if $ac_need_defaults; then
37330 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
37331 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
37332 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
37333fi
37334
37335# Have a temporary directory for convenience. Make it in the build tree
37336# simply because there is no reason against having it here, and in addition,
37337# creating and moving files from /tmp can sometimes cause problems.
37338# Hook for its removal unless debugging.
37339# Note that there is a small window in which the directory will not be cleaned:
37340# after its creation but before its name has been assigned to `$tmp'.
37341$debug ||
37342{
cristyda16f162011-02-19 23:52:17 +000037343 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000037344 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000037345 : "${ac_tmp:=$tmp}"
37346 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000037347' 0
cristy8b350f62009-11-15 23:12:43 +000037348 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000037349}
37350# Create a (secure) tmp directory for tmp files.
37351
37352{
37353 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000037354 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000037355} ||
37356{
37357 tmp=./conf$$-$RANDOM
37358 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000037359} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037360ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000037361
37362# Set up the scripts for CONFIG_FILES section.
37363# No need to generate them if there are no CONFIG_FILES.
37364# This happens for instance with `./config.status config.h'.
37365if test -n "$CONFIG_FILES"; then
37366
37367
cristy8b350f62009-11-15 23:12:43 +000037368ac_cr=`echo X | tr X '\015'`
37369# On cygwin, bash can eat \r inside `` if the user requested igncr.
37370# But we know of no other shell where ac_cr would be empty at this
37371# point, so we can use a bashism as a fallback.
37372if test "x$ac_cr" = x; then
37373 eval ac_cr=\$\'\\r\'
37374fi
cristy3ed852e2009-09-05 21:47:34 +000037375ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
37376if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000037377 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000037378else
37379 ac_cs_awk_cr=$ac_cr
37380fi
37381
cristyda16f162011-02-19 23:52:17 +000037382echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000037383_ACEOF
37384
37385
37386{
37387 echo "cat >conf$$subs.awk <<_ACEOF" &&
37388 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
37389 echo "_ACEOF"
37390} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037391 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
37392ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000037393ac_delim='%!_!# '
37394for ac_last_try in false false false false false :; do
37395 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037396 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037397
37398 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
37399 if test $ac_delim_n = $ac_delim_num; then
37400 break
37401 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037402 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037403 else
37404 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37405 fi
37406done
37407rm -f conf$$subs.sh
37408
37409cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000037410cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037411_ACEOF
37412sed -n '
37413h
37414s/^/S["/; s/!.*/"]=/
37415p
37416g
37417s/^[^!]*!//
37418:repl
37419t repl
37420s/'"$ac_delim"'$//
37421t delim
37422:nl
37423h
cristycd4c5312009-11-22 01:19:08 +000037424s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037425t more1
37426s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
37427p
37428n
37429b repl
37430:more1
37431s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37432p
37433g
37434s/.\{148\}//
37435t nl
37436:delim
37437h
cristycd4c5312009-11-22 01:19:08 +000037438s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037439t more2
37440s/["\\]/\\&/g; s/^/"/; s/$/"/
37441p
37442b
37443:more2
37444s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37445p
37446g
37447s/.\{148\}//
37448t delim
37449' <conf$$subs.awk | sed '
37450/^[^""]/{
37451 N
37452 s/\n//
37453}
37454' >>$CONFIG_STATUS || ac_write_fail=1
37455rm -f conf$$subs.awk
37456cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37457_ACAWK
cristyda16f162011-02-19 23:52:17 +000037458cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037459 for (key in S) S_is_set[key] = 1
37460 FS = ""
37461
37462}
37463{
37464 line = $ 0
37465 nfields = split(line, field, "@")
37466 substed = 0
37467 len = length(field[1])
37468 for (i = 2; i < nfields; i++) {
37469 key = field[i]
37470 keylen = length(key)
37471 if (S_is_set[key]) {
37472 value = S[key]
37473 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
37474 len += length(value) + length(field[++i])
37475 substed = 1
37476 } else
37477 len += 1 + keylen
37478 }
37479
37480 print line
37481}
37482
37483_ACAWK
37484_ACEOF
37485cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37486if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
37487 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
37488else
37489 cat
cristyda16f162011-02-19 23:52:17 +000037490fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000037491 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037492_ACEOF
37493
cristy98dddb52010-11-04 00:30:15 +000037494# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
37495# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000037496# trailing colons and then remove the whole line if VPATH becomes empty
37497# (actually we leave an empty line to preserve line numbers).
37498if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000037499 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
37500h
37501s///
37502s/^/:/
37503s/[ ]*$/:/
37504s/:\$(srcdir):/:/g
37505s/:\${srcdir}:/:/g
37506s/:@srcdir@:/:/g
37507s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000037508s/:*$//
cristy98dddb52010-11-04 00:30:15 +000037509x
37510s/\(=[ ]*\).*/\1/
37511G
37512s/\n//
cristy3ed852e2009-09-05 21:47:34 +000037513s/^[^=]*=[ ]*$//
37514}'
37515fi
37516
37517cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37518fi # test -n "$CONFIG_FILES"
37519
37520# Set up the scripts for CONFIG_HEADERS section.
37521# No need to generate them if there are no CONFIG_HEADERS.
37522# This happens for instance with `./config.status Makefile'.
37523if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000037524cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000037525BEGIN {
37526_ACEOF
37527
37528# Transform confdefs.h into an awk script `defines.awk', embedded as
37529# here-document in config.status, that substitutes the proper values into
37530# config.h.in to produce config.h.
37531
37532# Create a delimiter string that does not exist in confdefs.h, to ease
37533# handling of long lines.
37534ac_delim='%!_!# '
37535for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000037536 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
37537 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000037538 break
37539 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037540 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037541 else
37542 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37543 fi
37544done
37545
37546# For the awk script, D is an array of macro values keyed by name,
37547# likewise P contains macro parameters if any. Preserve backslash
37548# newline sequences.
37549
37550ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
37551sed -n '
37552s/.\{148\}/&'"$ac_delim"'/g
37553t rset
37554:rset
37555s/^[ ]*#[ ]*define[ ][ ]*/ /
37556t def
37557d
37558:def
37559s/\\$//
37560t bsnl
37561s/["\\]/\\&/g
37562s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37563D["\1"]=" \3"/p
37564s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
37565d
37566:bsnl
37567s/["\\]/\\&/g
37568s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37569D["\1"]=" \3\\\\\\n"\\/p
37570t cont
37571s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
37572t cont
37573d
37574:cont
37575n
37576s/.\{148\}/&'"$ac_delim"'/g
37577t clear
37578:clear
37579s/\\$//
37580t bsnlc
37581s/["\\]/\\&/g; s/^/"/; s/$/"/p
37582d
37583:bsnlc
37584s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
37585b cont
37586' <confdefs.h | sed '
37587s/'"$ac_delim"'/"\\\
37588"/g' >>$CONFIG_STATUS || ac_write_fail=1
37589
37590cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37591 for (key in D) D_is_set[key] = 1
37592 FS = ""
37593}
37594/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
37595 line = \$ 0
37596 split(line, arg, " ")
37597 if (arg[1] == "#") {
37598 defundef = arg[2]
37599 mac1 = arg[3]
37600 } else {
37601 defundef = substr(arg[1], 2)
37602 mac1 = arg[2]
37603 }
37604 split(mac1, mac2, "(") #)
37605 macro = mac2[1]
37606 prefix = substr(line, 1, index(line, defundef) - 1)
37607 if (D_is_set[macro]) {
37608 # Preserve the white space surrounding the "#".
37609 print prefix "define", macro P[macro] D[macro]
37610 next
37611 } else {
37612 # Replace #undef with comments. This is necessary, for example,
37613 # in the case of _POSIX_SOURCE, which is predefined and required
37614 # on some systems where configure will not decide to define it.
37615 if (defundef == "undef") {
37616 print "/*", prefix defundef, macro, "*/"
37617 next
37618 }
37619 }
37620}
37621{ print }
37622_ACAWK
37623_ACEOF
37624cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000037625 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037626fi # test -n "$CONFIG_HEADERS"
37627
37628
37629eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
37630shift
37631for ac_tag
37632do
37633 case $ac_tag in
37634 :[FHLC]) ac_mode=$ac_tag; continue;;
37635 esac
37636 case $ac_mode$ac_tag in
37637 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000037638 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037639 :[FH]-) ac_tag=-:-;;
37640 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
37641 esac
37642 ac_save_IFS=$IFS
37643 IFS=:
37644 set x $ac_tag
37645 IFS=$ac_save_IFS
37646 shift
37647 ac_file=$1
37648 shift
37649
37650 case $ac_mode in
37651 :L) ac_source=$1;;
37652 :[FH])
37653 ac_file_inputs=
37654 for ac_f
37655 do
37656 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000037657 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000037658 *) # Look for the file first in the build tree, then in the source tree
37659 # (if the path is not absolute). The absolute path cannot be DOS-style,
37660 # because $ac_f cannot contain `:'.
37661 test -f "$ac_f" ||
37662 case $ac_f in
37663 [\\/$]*) false;;
37664 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
37665 esac ||
cristy98dddb52010-11-04 00:30:15 +000037666 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037667 esac
37668 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000037669 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000037670 done
37671
37672 # Let's still pretend it is `configure' which instantiates (i.e., don't
37673 # use $as_me), people would be surprised to read:
37674 # /* config.h. Generated by config.status. */
37675 configure_input='Generated from '`
37676 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
37677 `' by configure.'
37678 if test x"$ac_file" != x-; then
37679 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000037680 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000037681$as_echo "$as_me: creating $ac_file" >&6;}
37682 fi
37683 # Neutralize special characters interpreted by sed in replacement strings.
37684 case $configure_input in #(
37685 *\&* | *\|* | *\\* )
37686 ac_sed_conf_input=`$as_echo "$configure_input" |
37687 sed 's/[\\\\&|]/\\\\&/g'`;; #(
37688 *) ac_sed_conf_input=$configure_input;;
37689 esac
37690
37691 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000037692 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000037693 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000037694 esac
37695 ;;
37696 esac
37697
37698 ac_dir=`$as_dirname -- "$ac_file" ||
37699$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37700 X"$ac_file" : 'X\(//\)[^/]' \| \
37701 X"$ac_file" : 'X\(//\)$' \| \
37702 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
37703$as_echo X"$ac_file" |
37704 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37705 s//\1/
37706 q
37707 }
37708 /^X\(\/\/\)[^/].*/{
37709 s//\1/
37710 q
37711 }
37712 /^X\(\/\/\)$/{
37713 s//\1/
37714 q
37715 }
37716 /^X\(\/\).*/{
37717 s//\1/
37718 q
37719 }
37720 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000037721 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000037722 ac_builddir=.
37723
37724case "$ac_dir" in
37725.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
37726*)
37727 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
37728 # A ".." for each directory in $ac_dir_suffix.
37729 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
37730 case $ac_top_builddir_sub in
37731 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
37732 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
37733 esac ;;
37734esac
37735ac_abs_top_builddir=$ac_pwd
37736ac_abs_builddir=$ac_pwd$ac_dir_suffix
37737# for backward compatibility:
37738ac_top_builddir=$ac_top_build_prefix
37739
37740case $srcdir in
37741 .) # We are building in place.
37742 ac_srcdir=.
37743 ac_top_srcdir=$ac_top_builddir_sub
37744 ac_abs_top_srcdir=$ac_pwd ;;
37745 [\\/]* | ?:[\\/]* ) # Absolute name.
37746 ac_srcdir=$srcdir$ac_dir_suffix;
37747 ac_top_srcdir=$srcdir
37748 ac_abs_top_srcdir=$srcdir ;;
37749 *) # Relative name.
37750 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
37751 ac_top_srcdir=$ac_top_build_prefix$srcdir
37752 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
37753esac
37754ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
37755
37756
37757 case $ac_mode in
37758 :F)
37759 #
37760 # CONFIG_FILE
37761 #
37762
37763 case $INSTALL in
37764 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
37765 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
37766 esac
cristy73bd4a52010-10-05 11:24:23 +000037767 ac_MKDIR_P=$MKDIR_P
37768 case $MKDIR_P in
37769 [\\/$]* | ?:[\\/]* ) ;;
37770 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
37771 esac
cristy3ed852e2009-09-05 21:47:34 +000037772_ACEOF
37773
37774cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37775# If the template does not know about datarootdir, expand it.
37776# FIXME: This hack should be removed a few years after 2.60.
37777ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000037778ac_sed_dataroot='
37779/datarootdir/ {
37780 p
37781 q
37782}
37783/@datadir@/p
37784/@docdir@/p
37785/@infodir@/p
37786/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000037787/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000037788case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
37789*datarootdir*) ac_datarootdir_seen=yes;;
37790*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000037791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000037792$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
37793_ACEOF
37794cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37795 ac_datarootdir_hack='
37796 s&@datadir@&$datadir&g
37797 s&@docdir@&$docdir&g
37798 s&@infodir@&$infodir&g
37799 s&@localedir@&$localedir&g
37800 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000037801 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000037802esac
37803_ACEOF
37804
37805# Neutralize VPATH when `$srcdir' = `.'.
37806# Shell code in configure.ac might set extrasub.
37807# FIXME: do we really want to maintain this feature?
37808cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37809ac_sed_extra="$ac_vpsub
37810$extrasub
37811_ACEOF
37812cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37813:t
37814/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
37815s|@configure_input@|$ac_sed_conf_input|;t t
37816s&@top_builddir@&$ac_top_builddir_sub&;t t
37817s&@top_build_prefix@&$ac_top_build_prefix&;t t
37818s&@srcdir@&$ac_srcdir&;t t
37819s&@abs_srcdir@&$ac_abs_srcdir&;t t
37820s&@top_srcdir@&$ac_top_srcdir&;t t
37821s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
37822s&@builddir@&$ac_builddir&;t t
37823s&@abs_builddir@&$ac_abs_builddir&;t t
37824s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
37825s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000037826s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000037827$ac_datarootdir_hack
37828"
cristyda16f162011-02-19 23:52:17 +000037829eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
37830 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037831
37832test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000037833 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
37834 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
37835 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000037836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037837which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000037838$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037839which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000037840
cristyda16f162011-02-19 23:52:17 +000037841 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000037842 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000037843 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
37844 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000037845 esac \
cristy98dddb52010-11-04 00:30:15 +000037846 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037847 ;;
37848 :H)
37849 #
37850 # CONFIG_HEADER
37851 #
37852 if test x"$ac_file" != x-; then
37853 {
37854 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037855 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
37856 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000037857 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037858 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000037859 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000037860$as_echo "$as_me: $ac_file is unchanged" >&6;}
37861 else
37862 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000037863 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000037864 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037865 fi
37866 else
37867 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037868 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000037869 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037870 fi
cristy73bd4a52010-10-05 11:24:23 +000037871# Compute "$ac_file"'s index in $config_headers.
37872_am_arg="$ac_file"
37873_am_stamp_count=1
37874for _am_header in $config_headers :; do
37875 case $_am_header in
37876 $_am_arg | $_am_arg:* )
37877 break ;;
37878 * )
37879 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
37880 esac
37881done
37882echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
37883$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37884 X"$_am_arg" : 'X\(//\)[^/]' \| \
37885 X"$_am_arg" : 'X\(//\)$' \| \
37886 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
37887$as_echo X"$_am_arg" |
37888 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37889 s//\1/
37890 q
37891 }
37892 /^X\(\/\/\)[^/].*/{
37893 s//\1/
37894 q
37895 }
37896 /^X\(\/\/\)$/{
37897 s//\1/
37898 q
37899 }
37900 /^X\(\/\).*/{
37901 s//\1/
37902 q
37903 }
37904 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000037905 ;;
37906
cristy8b350f62009-11-15 23:12:43 +000037907 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000037908$as_echo "$as_me: executing $ac_file commands" >&6;}
37909 ;;
37910 esac
37911
37912
37913 case $ac_file$ac_mode in
cristy01ff9f32012-12-01 18:15:29 +000037914 "MagickCore/magick-baseconfig.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-baseconfig.h`
cristy73bd4a52010-10-05 11:24:23 +000037915ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
37916ac_prefix_conf_PKG=`echo MagickCore`
37917ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
37918ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
37919ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
37920if test ".$ac_prefix_conf_INP" = "."; then
37921 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
37922 case "$ac_file" in
37923 *.h) ac_prefix_conf_INP=$ac_file ;;
37924 *)
37925 esac
37926 test ".$ac_prefix_conf_INP" != "." && break
37927 done
37928fi
37929if test ".$ac_prefix_conf_INP" = "."; then
37930 case "$ac_prefix_conf_OUT" in
37931 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
37932 ;;
37933 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
37934 ;;
37935 *) ac_prefix_conf_INP=config.h
37936 ;;
37937 esac
37938fi
37939if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000037940 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000037941else
37942 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
37943 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
37944 fi fi
37945 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
37946$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
37947 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000037948 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
37949 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
37950 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
37951 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
37952 $as_echo "#endif/" >> conftest.prefix
37953 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
37954 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
37955 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000037956 # now executing _script on _DEF input to create _OUT output file
37957 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
37958 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
37959 echo ' ' >>$tmp/pconfig.h
37960 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
37961
37962 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
37963 echo ' ' >>$tmp/pconfig.h
37964 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
37965 echo "#endif" >>$tmp/pconfig.h
37966 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
37967 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
37968$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
37969 else
37970 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
37971$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37972 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
37973 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
37974 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
37975$as_echo X"$ac_prefix_conf_OUT" |
37976 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37977 s//\1/
37978 q
37979 }
37980 /^X\(\/\/\)[^/].*/{
37981 s//\1/
37982 q
37983 }
37984 /^X\(\/\/\)$/{
37985 s//\1/
37986 q
37987 }
37988 /^X\(\/\).*/{
37989 s//\1/
37990 q
37991 }
37992 s/.*/./; q'`
37993 as_dir="$ac_dir"; as_fn_mkdir_p
37994 rm -f "$ac_prefix_conf_OUT"
37995 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
37996 fi
37997 cp conftest.prefix _configs.sed
37998 else
cristy98dddb52010-11-04 00:30:15 +000037999 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 +000038000 fi
38001 rm -f conftest.*
38002fi
38003 ;;
38004 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
cristy58d34aa2013-01-24 15:11:54 +000038005 # Older Autoconf quotes --file arguments for eval, but not when files
cristy73bd4a52010-10-05 11:24:23 +000038006 # are listed without --file. Let's play safe and only enable the eval
38007 # if we detect the quoting.
38008 case $CONFIG_FILES in
38009 *\'*) eval set x "$CONFIG_FILES" ;;
38010 *) set x $CONFIG_FILES ;;
38011 esac
38012 shift
38013 for mf
38014 do
38015 # Strip MF so we end up with the name of the file.
38016 mf=`echo "$mf" | sed -e 's/:.*$//'`
38017 # Check whether this is an Automake generated Makefile or not.
cristyc0890a62012-07-19 00:18:20 +000038018 # We used to match only the files named 'Makefile.in', but
cristy73bd4a52010-10-05 11:24:23 +000038019 # some people rename them; so instead we look at the file content.
38020 # Grep'ing the first line is not enough: some people post-process
38021 # each Makefile.in and add a new line on top of each file to say so.
38022 # Grep'ing the whole file is not good either: AIX grep has a line
38023 # limit of 2048, but all sed's we know have understand at least 4000.
38024 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
38025 dirpart=`$as_dirname -- "$mf" ||
38026$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38027 X"$mf" : 'X\(//\)[^/]' \| \
38028 X"$mf" : 'X\(//\)$' \| \
38029 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
38030$as_echo X"$mf" |
38031 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38032 s//\1/
38033 q
38034 }
38035 /^X\(\/\/\)[^/].*/{
38036 s//\1/
38037 q
38038 }
38039 /^X\(\/\/\)$/{
38040 s//\1/
38041 q
38042 }
38043 /^X\(\/\).*/{
38044 s//\1/
38045 q
38046 }
38047 s/.*/./; q'`
38048 else
38049 continue
38050 fi
38051 # Extract the definition of DEPDIR, am__include, and am__quote
cristyc0890a62012-07-19 00:18:20 +000038052 # from the Makefile without running 'make'.
cristy73bd4a52010-10-05 11:24:23 +000038053 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
38054 test -z "$DEPDIR" && continue
38055 am__include=`sed -n 's/^am__include = //p' < "$mf"`
cristybced8142013-05-31 01:23:57 +000038056 test -z "$am__include" && continue
cristy73bd4a52010-10-05 11:24:23 +000038057 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
cristy73bd4a52010-10-05 11:24:23 +000038058 # Find all dependency output files, they are included files with
38059 # $(DEPDIR) in their names. We invoke sed twice because it is the
38060 # simplest approach to changing $(DEPDIR) to its actual value in the
38061 # expansion.
38062 for file in `sed -n "
38063 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
cristyc0890a62012-07-19 00:18:20 +000038064 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
cristy73bd4a52010-10-05 11:24:23 +000038065 # Make sure the directory exists.
38066 test -f "$dirpart/$file" && continue
38067 fdir=`$as_dirname -- "$file" ||
38068$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38069 X"$file" : 'X\(//\)[^/]' \| \
38070 X"$file" : 'X\(//\)$' \| \
38071 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
38072$as_echo X"$file" |
38073 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38074 s//\1/
38075 q
38076 }
38077 /^X\(\/\/\)[^/].*/{
38078 s//\1/
38079 q
38080 }
38081 /^X\(\/\/\)$/{
38082 s//\1/
38083 q
38084 }
38085 /^X\(\/\).*/{
38086 s//\1/
38087 q
38088 }
38089 s/.*/./; q'`
38090 as_dir=$dirpart/$fdir; as_fn_mkdir_p
38091 # echo "creating $dirpart/$file"
38092 echo '# dummy' > "$dirpart/$file"
38093 done
38094 done
38095}
38096 ;;
38097 "libtool":C)
38098
38099 # See if we are running on zsh, and set the options which allow our
38100 # commands through without removal of \ escapes.
38101 if test -n "${ZSH_VERSION+set}" ; then
38102 setopt NO_GLOB_SUBST
38103 fi
38104
38105 cfgfile="${ofile}T"
38106 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
38107 $RM "$cfgfile"
38108
38109 cat <<_LT_EOF >> "$cfgfile"
38110#! $SHELL
38111
38112# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
38113# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
38114# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
38115# NOTE: Changes made to this file will be lost: look at ltmain.sh.
38116#
38117# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy99bd5232011-12-07 14:38:20 +000038118# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
38119# Foundation, Inc.
cristy73bd4a52010-10-05 11:24:23 +000038120# Written by Gordon Matzigkeit, 1996
38121#
38122# This file is part of GNU Libtool.
38123#
38124# GNU Libtool is free software; you can redistribute it and/or
38125# modify it under the terms of the GNU General Public License as
38126# published by the Free Software Foundation; either version 2 of
38127# the License, or (at your option) any later version.
38128#
38129# As a special exception to the GNU General Public License,
38130# if you distribute this file as part of a program or library that
38131# is built using GNU Libtool, you may include this file under the
38132# same distribution terms that you use for the rest of that program.
38133#
38134# GNU Libtool is distributed in the hope that it will be useful,
38135# but WITHOUT ANY WARRANTY; without even the implied warranty of
38136# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
38137# GNU General Public License for more details.
38138#
38139# You should have received a copy of the GNU General Public License
38140# along with GNU Libtool; see the file COPYING. If not, a copy
38141# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
38142# obtained by writing to the Free Software Foundation, Inc.,
38143# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
38144
38145
38146# The names of the tagged configurations supported by this script.
38147available_tags="CXX "
38148
38149# ### BEGIN LIBTOOL CONFIG
38150
38151# A sed program that does not truncate output.
38152SED=$lt_SED
38153
38154# Sed that helps us avoid accidentally triggering echo(1) options like -n.
38155Xsed="\$SED -e 1s/^X//"
38156
38157# A grep program that handles long lines.
38158GREP=$lt_GREP
38159
38160# An ERE matcher.
38161EGREP=$lt_EGREP
38162
38163# A literal string matcher.
38164FGREP=$lt_FGREP
38165
cristy0c60a692010-11-04 01:09:47 +000038166# Shell to use when invoking shell scripts.
38167SHELL=$lt_SHELL
38168
38169# An echo program that protects backslashes.
38170ECHO=$lt_ECHO
38171
cristy73bd4a52010-10-05 11:24:23 +000038172# Which release of libtool.m4 was used?
38173macro_version=$macro_version
38174macro_revision=$macro_revision
38175
38176# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000038177AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000038178
38179# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000038180DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000038181
38182# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000038183OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000038184
38185# Whether or not to build shared libraries.
38186build_libtool_libs=$enable_shared
38187
38188# Whether or not to build static libraries.
38189build_old_libs=$enable_static
38190
38191# What type of objects to build.
38192pic_mode=$pic_mode
38193
38194# Whether or not to optimize for fast installation.
38195fast_install=$enable_fast_install
38196
cristy99bd5232011-12-07 14:38:20 +000038197# The PATH separator for the build system.
38198PATH_SEPARATOR=$lt_PATH_SEPARATOR
38199
cristy73bd4a52010-10-05 11:24:23 +000038200# The host system.
38201host_alias=$host_alias
38202host=$host
38203host_os=$host_os
38204
38205# The build system.
38206build_alias=$build_alias
38207build=$build
38208build_os=$build_os
38209
38210# A BSD- or MS-compatible name lister.
38211NM=$lt_NM
38212
38213# Whether we need soft or hard links.
38214LN_S=$lt_LN_S
38215
38216# What is the maximum length of a command?
38217max_cmd_len=$max_cmd_len
38218
38219# Object file suffix (normally "o").
38220objext=$ac_objext
38221
38222# Executable file suffix (normally "").
38223exeext=$exeext
38224
38225# whether the shell understands "unset".
38226lt_unset=$lt_unset
38227
38228# turn spaces into newlines.
38229SP2NL=$lt_lt_SP2NL
38230
38231# turn newlines into spaces.
38232NL2SP=$lt_lt_NL2SP
38233
cristyda16f162011-02-19 23:52:17 +000038234# convert \$build file names to \$host format.
38235to_host_file_cmd=$lt_cv_to_host_file_cmd
38236
38237# convert \$build files to toolchain format.
38238to_tool_file_cmd=$lt_cv_to_tool_file_cmd
38239
cristy73bd4a52010-10-05 11:24:23 +000038240# Method to check whether dependent libraries are shared objects.
38241deplibs_check_method=$lt_deplibs_check_method
38242
cristyda16f162011-02-19 23:52:17 +000038243# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000038244file_magic_cmd=$lt_file_magic_cmd
38245
cristyda16f162011-02-19 23:52:17 +000038246# How to find potential files when deplibs_check_method = "file_magic".
38247file_magic_glob=$lt_file_magic_glob
38248
38249# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
38250want_nocaseglob=$lt_want_nocaseglob
38251
38252# Command to associate shared and link libraries.
38253sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
38254
cristy73bd4a52010-10-05 11:24:23 +000038255# The archiver.
38256AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000038257
38258# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000038259AR_FLAGS=$lt_AR_FLAGS
38260
cristyda16f162011-02-19 23:52:17 +000038261# How to feed a file listing to the archiver.
38262archiver_list_spec=$lt_archiver_list_spec
38263
cristy73bd4a52010-10-05 11:24:23 +000038264# A symbol stripping program.
38265STRIP=$lt_STRIP
38266
38267# Commands used to install an old-style archive.
38268RANLIB=$lt_RANLIB
38269old_postinstall_cmds=$lt_old_postinstall_cmds
38270old_postuninstall_cmds=$lt_old_postuninstall_cmds
38271
cristy0c60a692010-11-04 01:09:47 +000038272# Whether to use a lock for old archive extraction.
38273lock_old_archive_extraction=$lock_old_archive_extraction
38274
cristy73bd4a52010-10-05 11:24:23 +000038275# A C compiler.
38276LTCC=$lt_CC
38277
38278# LTCC compiler flags.
38279LTCFLAGS=$lt_CFLAGS
38280
38281# Take the output of nm and produce a listing of raw symbols and C names.
38282global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
38283
38284# Transform the output of nm in a proper C declaration.
38285global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
38286
38287# Transform the output of nm in a C name address pair.
38288global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
38289
38290# Transform the output of nm in a C name address pair when lib prefix is needed.
38291global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
38292
cristyda16f162011-02-19 23:52:17 +000038293# Specify filename containing input files for \$NM.
38294nm_file_list_spec=$lt_nm_file_list_spec
38295
38296# The root where to search for dependent libraries,and in which our libraries should be installed.
38297lt_sysroot=$lt_sysroot
38298
cristy73bd4a52010-10-05 11:24:23 +000038299# The name of the directory that contains temporary libtool files.
38300objdir=$objdir
38301
cristy73bd4a52010-10-05 11:24:23 +000038302# Used to examine libraries when file_magic_cmd begins with "file".
38303MAGIC_CMD=$MAGIC_CMD
38304
38305# Must we lock files when doing compilation?
38306need_locks=$lt_need_locks
38307
cristyda16f162011-02-19 23:52:17 +000038308# Manifest tool.
38309MANIFEST_TOOL=$lt_MANIFEST_TOOL
38310
cristy73bd4a52010-10-05 11:24:23 +000038311# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
38312DSYMUTIL=$lt_DSYMUTIL
38313
38314# Tool to change global to local symbols on Mac OS X.
38315NMEDIT=$lt_NMEDIT
38316
38317# Tool to manipulate fat objects and archives on Mac OS X.
38318LIPO=$lt_LIPO
38319
38320# ldd/readelf like tool for Mach-O binaries on Mac OS X.
38321OTOOL=$lt_OTOOL
38322
38323# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
38324OTOOL64=$lt_OTOOL64
38325
38326# Old archive suffix (normally "a").
38327libext=$libext
38328
38329# Shared library suffix (normally ".so").
38330shrext_cmds=$lt_shrext_cmds
38331
38332# The commands to extract the exported symbol list from a shared archive.
38333extract_expsyms_cmds=$lt_extract_expsyms_cmds
38334
38335# Variables whose values should be saved in libtool wrapper scripts and
38336# restored at link time.
38337variables_saved_for_relink=$lt_variables_saved_for_relink
38338
38339# Do we need the "lib" prefix for modules?
38340need_lib_prefix=$need_lib_prefix
38341
38342# Do we need a version for libraries?
38343need_version=$need_version
38344
38345# Library versioning type.
38346version_type=$version_type
38347
38348# Shared library runtime path variable.
38349runpath_var=$runpath_var
38350
38351# Shared library path variable.
38352shlibpath_var=$shlibpath_var
38353
38354# Is shlibpath searched before the hard-coded library search path?
38355shlibpath_overrides_runpath=$shlibpath_overrides_runpath
38356
38357# Format of library name prefix.
38358libname_spec=$lt_libname_spec
38359
38360# List of archive names. First name is the real one, the rest are links.
38361# The last name is the one that the linker finds with -lNAME
38362library_names_spec=$lt_library_names_spec
38363
38364# The coded name of the library, if different from the real name.
38365soname_spec=$lt_soname_spec
38366
cristy0c60a692010-11-04 01:09:47 +000038367# Permission mode override for installation of shared libraries.
38368install_override_mode=$lt_install_override_mode
38369
cristy73bd4a52010-10-05 11:24:23 +000038370# Command to use after installation of a shared archive.
38371postinstall_cmds=$lt_postinstall_cmds
38372
38373# Command to use after uninstallation of a shared archive.
38374postuninstall_cmds=$lt_postuninstall_cmds
38375
38376# Commands used to finish a libtool library installation in a directory.
38377finish_cmds=$lt_finish_cmds
38378
38379# As "finish_cmds", except a single script fragment to be evaled but
38380# not shown.
38381finish_eval=$lt_finish_eval
38382
38383# Whether we should hardcode library paths into libraries.
38384hardcode_into_libs=$hardcode_into_libs
38385
38386# Compile-time system search path for libraries.
38387sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
38388
38389# Run-time system search path for libraries.
38390sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
38391
38392# Whether dlopen is supported.
38393dlopen_support=$enable_dlopen
38394
38395# Whether dlopen of programs is supported.
38396dlopen_self=$enable_dlopen_self
38397
38398# Whether dlopen of statically linked programs is supported.
38399dlopen_self_static=$enable_dlopen_self_static
38400
38401# Commands to strip libraries.
38402old_striplib=$lt_old_striplib
38403striplib=$lt_striplib
38404
38405
38406# The linker used to build libraries.
38407LD=$lt_LD
38408
cristy0c60a692010-11-04 01:09:47 +000038409# How to create reloadable object files.
38410reload_flag=$lt_reload_flag
38411reload_cmds=$lt_reload_cmds
38412
cristy73bd4a52010-10-05 11:24:23 +000038413# Commands used to build an old-style archive.
38414old_archive_cmds=$lt_old_archive_cmds
38415
38416# A language specific compiler.
38417CC=$lt_compiler
38418
38419# Is the compiler the GNU compiler?
38420with_gcc=$GCC
38421
38422# Compiler flag to turn off builtin functions.
38423no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
38424
cristy73bd4a52010-10-05 11:24:23 +000038425# Additional compiler flags for building library objects.
38426pic_flag=$lt_lt_prog_compiler_pic
38427
cristyda16f162011-02-19 23:52:17 +000038428# How to pass a linker flag through the compiler.
38429wl=$lt_lt_prog_compiler_wl
38430
cristy73bd4a52010-10-05 11:24:23 +000038431# Compiler flag to prevent dynamic linking.
38432link_static_flag=$lt_lt_prog_compiler_static
38433
38434# Does compiler simultaneously support -c and -o options?
38435compiler_c_o=$lt_lt_cv_prog_compiler_c_o
38436
38437# Whether or not to add -lc for building shared libraries.
38438build_libtool_need_lc=$archive_cmds_need_lc
38439
38440# Whether or not to disallow shared libs when runtime libs are static.
38441allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
38442
38443# Compiler flag to allow reflexive dlopens.
38444export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
38445
38446# Compiler flag to generate shared objects directly from archives.
38447whole_archive_flag_spec=$lt_whole_archive_flag_spec
38448
38449# Whether the compiler copes with passing no objects directly.
38450compiler_needs_object=$lt_compiler_needs_object
38451
38452# Create an old-style archive from a shared archive.
38453old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
38454
38455# Create a temporary old-style archive to link instead of a shared archive.
38456old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
38457
38458# Commands used to build a shared archive.
38459archive_cmds=$lt_archive_cmds
38460archive_expsym_cmds=$lt_archive_expsym_cmds
38461
38462# Commands used to build a loadable module if different from building
38463# a shared archive.
38464module_cmds=$lt_module_cmds
38465module_expsym_cmds=$lt_module_expsym_cmds
38466
38467# Whether we are building with GNU ld or not.
38468with_gnu_ld=$lt_with_gnu_ld
38469
38470# Flag that allows shared libraries with undefined symbols to be built.
38471allow_undefined_flag=$lt_allow_undefined_flag
38472
38473# Flag that enforces no undefined symbols.
38474no_undefined_flag=$lt_no_undefined_flag
38475
38476# Flag to hardcode \$libdir into a binary during linking.
38477# This must work even if \$libdir does not exist
38478hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
38479
cristy73bd4a52010-10-05 11:24:23 +000038480# Whether we need a single "-rpath" flag with a separated argument.
38481hardcode_libdir_separator=$lt_hardcode_libdir_separator
38482
38483# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38484# DIR into the resulting binary.
38485hardcode_direct=$hardcode_direct
38486
38487# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38488# DIR into the resulting binary and the resulting library dependency is
38489# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38490# library is relocated.
38491hardcode_direct_absolute=$hardcode_direct_absolute
38492
38493# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38494# into the resulting binary.
38495hardcode_minus_L=$hardcode_minus_L
38496
38497# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38498# into the resulting binary.
38499hardcode_shlibpath_var=$hardcode_shlibpath_var
38500
38501# Set to "yes" if building a shared library automatically hardcodes DIR
38502# into the library and all subsequent libraries and executables linked
38503# against it.
38504hardcode_automatic=$hardcode_automatic
38505
38506# Set to yes if linker adds runtime paths of dependent libraries
38507# to runtime path list.
38508inherit_rpath=$inherit_rpath
38509
38510# Whether libtool must link a program against all its dependency libraries.
38511link_all_deplibs=$link_all_deplibs
38512
cristy73bd4a52010-10-05 11:24:23 +000038513# Set to "yes" if exported symbols are required.
38514always_export_symbols=$always_export_symbols
38515
38516# The commands to list exported symbols.
38517export_symbols_cmds=$lt_export_symbols_cmds
38518
38519# Symbols that should not be listed in the preloaded symbols.
38520exclude_expsyms=$lt_exclude_expsyms
38521
38522# Symbols that must always be exported.
38523include_expsyms=$lt_include_expsyms
38524
38525# Commands necessary for linking programs (against libraries) with templates.
38526prelink_cmds=$lt_prelink_cmds
38527
cristyda16f162011-02-19 23:52:17 +000038528# Commands necessary for finishing linking programs.
38529postlink_cmds=$lt_postlink_cmds
38530
cristy73bd4a52010-10-05 11:24:23 +000038531# Specify filename containing input files.
38532file_list_spec=$lt_file_list_spec
38533
38534# How to hardcode a shared library path into an executable.
38535hardcode_action=$hardcode_action
38536
38537# The directories searched by this compiler when creating a shared library.
38538compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
38539
38540# Dependencies to place before and after the objects being linked to
38541# create a shared library.
38542predep_objects=$lt_predep_objects
38543postdep_objects=$lt_postdep_objects
38544predeps=$lt_predeps
38545postdeps=$lt_postdeps
38546
38547# The library search path used internally by the compiler when linking
38548# a shared library.
38549compiler_lib_search_path=$lt_compiler_lib_search_path
38550
38551# ### END LIBTOOL CONFIG
38552
38553_LT_EOF
38554
38555 case $host_os in
38556 aix3*)
38557 cat <<\_LT_EOF >> "$cfgfile"
38558# AIX sometimes has problems with the GCC collect2 program. For some
38559# reason, if we set the COLLECT_NAMES environment variable, the problems
38560# vanish in a puff of smoke.
38561if test "X${COLLECT_NAMES+set}" != Xset; then
38562 COLLECT_NAMES=
38563 export COLLECT_NAMES
38564fi
38565_LT_EOF
38566 ;;
38567 esac
38568
38569
38570ltmain="$ac_aux_dir/ltmain.sh"
38571
38572
38573 # We use sed instead of cat because bash on DJGPP gets confused if
38574 # if finds mixed CR/LF and LF-only lines. Since sed operates in
38575 # text mode, it properly converts lines to CR/LF. This bash problem
38576 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000038577 sed '$q' "$ltmain" >> "$cfgfile" \
38578 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000038579
cristyda16f162011-02-19 23:52:17 +000038580 if test x"$xsi_shell" = xyes; then
38581 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
38582func_dirname ()\
38583{\
38584\ case ${1} in\
38585\ */*) func_dirname_result="${1%/*}${2}" ;;\
38586\ * ) func_dirname_result="${3}" ;;\
38587\ esac\
38588} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
38589 && mv -f "$cfgfile.tmp" "$cfgfile" \
38590 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38591test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038592
38593
cristyda16f162011-02-19 23:52:17 +000038594 sed -e '/^func_basename ()$/,/^} # func_basename /c\
38595func_basename ()\
38596{\
38597\ func_basename_result="${1##*/}"\
38598} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
38599 && mv -f "$cfgfile.tmp" "$cfgfile" \
38600 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38601test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038602
38603
cristyda16f162011-02-19 23:52:17 +000038604 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
38605func_dirname_and_basename ()\
38606{\
38607\ case ${1} in\
38608\ */*) func_dirname_result="${1%/*}${2}" ;;\
38609\ * ) func_dirname_result="${3}" ;;\
38610\ esac\
38611\ func_basename_result="${1##*/}"\
38612} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
38613 && mv -f "$cfgfile.tmp" "$cfgfile" \
38614 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38615test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038616
cristyda16f162011-02-19 23:52:17 +000038617
38618 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
38619func_stripname ()\
38620{\
38621\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
38622\ # positional parameters, so assign one to ordinary parameter first.\
38623\ func_stripname_result=${3}\
38624\ func_stripname_result=${func_stripname_result#"${1}"}\
38625\ func_stripname_result=${func_stripname_result%"${2}"}\
38626} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
38627 && mv -f "$cfgfile.tmp" "$cfgfile" \
38628 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38629test 0 -eq $? || _lt_function_replace_fail=:
38630
38631
38632 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
38633func_split_long_opt ()\
38634{\
38635\ func_split_long_opt_name=${1%%=*}\
38636\ func_split_long_opt_arg=${1#*=}\
38637} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
38638 && mv -f "$cfgfile.tmp" "$cfgfile" \
38639 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38640test 0 -eq $? || _lt_function_replace_fail=:
38641
38642
38643 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
38644func_split_short_opt ()\
38645{\
38646\ func_split_short_opt_arg=${1#??}\
38647\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
38648} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
38649 && mv -f "$cfgfile.tmp" "$cfgfile" \
38650 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38651test 0 -eq $? || _lt_function_replace_fail=:
38652
38653
38654 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
38655func_lo2o ()\
38656{\
38657\ case ${1} in\
38658\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
38659\ *) func_lo2o_result=${1} ;;\
38660\ esac\
38661} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
38662 && mv -f "$cfgfile.tmp" "$cfgfile" \
38663 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38664test 0 -eq $? || _lt_function_replace_fail=:
38665
38666
38667 sed -e '/^func_xform ()$/,/^} # func_xform /c\
38668func_xform ()\
38669{\
38670 func_xform_result=${1%.*}.lo\
38671} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
38672 && mv -f "$cfgfile.tmp" "$cfgfile" \
38673 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38674test 0 -eq $? || _lt_function_replace_fail=:
38675
38676
38677 sed -e '/^func_arith ()$/,/^} # func_arith /c\
38678func_arith ()\
38679{\
38680 func_arith_result=$(( $* ))\
38681} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
38682 && mv -f "$cfgfile.tmp" "$cfgfile" \
38683 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38684test 0 -eq $? || _lt_function_replace_fail=:
38685
38686
38687 sed -e '/^func_len ()$/,/^} # func_len /c\
38688func_len ()\
38689{\
38690 func_len_result=${#1}\
38691} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
38692 && mv -f "$cfgfile.tmp" "$cfgfile" \
38693 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38694test 0 -eq $? || _lt_function_replace_fail=:
38695
38696fi
38697
38698if test x"$lt_shell_append" = xyes; then
38699 sed -e '/^func_append ()$/,/^} # func_append /c\
38700func_append ()\
38701{\
38702 eval "${1}+=\\${2}"\
38703} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
38704 && mv -f "$cfgfile.tmp" "$cfgfile" \
38705 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38706test 0 -eq $? || _lt_function_replace_fail=:
38707
38708
38709 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
38710func_append_quoted ()\
38711{\
38712\ func_quote_for_eval "${2}"\
38713\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
38714} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
38715 && mv -f "$cfgfile.tmp" "$cfgfile" \
38716 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38717test 0 -eq $? || _lt_function_replace_fail=:
38718
38719
38720 # Save a `func_append' function call where possible by direct use of '+='
38721 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
38722 && mv -f "$cfgfile.tmp" "$cfgfile" \
38723 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38724 test 0 -eq $? || _lt_function_replace_fail=:
38725else
38726 # Save a `func_append' function call even when '+=' is not available
38727 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
38728 && mv -f "$cfgfile.tmp" "$cfgfile" \
38729 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38730 test 0 -eq $? || _lt_function_replace_fail=:
38731fi
38732
38733if test x"$_lt_function_replace_fail" = x":"; then
38734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
38735$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
38736fi
38737
38738
38739 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000038740 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
38741 chmod +x "$ofile"
38742
38743
38744 cat <<_LT_EOF >> "$ofile"
38745
38746# ### BEGIN LIBTOOL TAG CONFIG: CXX
38747
38748# The linker used to build libraries.
38749LD=$lt_LD_CXX
38750
cristy0c60a692010-11-04 01:09:47 +000038751# How to create reloadable object files.
38752reload_flag=$lt_reload_flag_CXX
38753reload_cmds=$lt_reload_cmds_CXX
38754
cristy73bd4a52010-10-05 11:24:23 +000038755# Commands used to build an old-style archive.
38756old_archive_cmds=$lt_old_archive_cmds_CXX
38757
38758# A language specific compiler.
38759CC=$lt_compiler_CXX
38760
38761# Is the compiler the GNU compiler?
38762with_gcc=$GCC_CXX
38763
38764# Compiler flag to turn off builtin functions.
38765no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
38766
cristy73bd4a52010-10-05 11:24:23 +000038767# Additional compiler flags for building library objects.
38768pic_flag=$lt_lt_prog_compiler_pic_CXX
38769
cristyda16f162011-02-19 23:52:17 +000038770# How to pass a linker flag through the compiler.
38771wl=$lt_lt_prog_compiler_wl_CXX
38772
cristy73bd4a52010-10-05 11:24:23 +000038773# Compiler flag to prevent dynamic linking.
38774link_static_flag=$lt_lt_prog_compiler_static_CXX
38775
38776# Does compiler simultaneously support -c and -o options?
38777compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
38778
38779# Whether or not to add -lc for building shared libraries.
38780build_libtool_need_lc=$archive_cmds_need_lc_CXX
38781
38782# Whether or not to disallow shared libs when runtime libs are static.
38783allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
38784
38785# Compiler flag to allow reflexive dlopens.
38786export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
38787
38788# Compiler flag to generate shared objects directly from archives.
38789whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
38790
38791# Whether the compiler copes with passing no objects directly.
38792compiler_needs_object=$lt_compiler_needs_object_CXX
38793
38794# Create an old-style archive from a shared archive.
38795old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
38796
38797# Create a temporary old-style archive to link instead of a shared archive.
38798old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
38799
38800# Commands used to build a shared archive.
38801archive_cmds=$lt_archive_cmds_CXX
38802archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
38803
38804# Commands used to build a loadable module if different from building
38805# a shared archive.
38806module_cmds=$lt_module_cmds_CXX
38807module_expsym_cmds=$lt_module_expsym_cmds_CXX
38808
38809# Whether we are building with GNU ld or not.
38810with_gnu_ld=$lt_with_gnu_ld_CXX
38811
38812# Flag that allows shared libraries with undefined symbols to be built.
38813allow_undefined_flag=$lt_allow_undefined_flag_CXX
38814
38815# Flag that enforces no undefined symbols.
38816no_undefined_flag=$lt_no_undefined_flag_CXX
38817
38818# Flag to hardcode \$libdir into a binary during linking.
38819# This must work even if \$libdir does not exist
38820hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
38821
cristy73bd4a52010-10-05 11:24:23 +000038822# Whether we need a single "-rpath" flag with a separated argument.
38823hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
38824
38825# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38826# DIR into the resulting binary.
38827hardcode_direct=$hardcode_direct_CXX
38828
38829# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38830# DIR into the resulting binary and the resulting library dependency is
38831# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38832# library is relocated.
38833hardcode_direct_absolute=$hardcode_direct_absolute_CXX
38834
38835# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38836# into the resulting binary.
38837hardcode_minus_L=$hardcode_minus_L_CXX
38838
38839# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38840# into the resulting binary.
38841hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
38842
38843# Set to "yes" if building a shared library automatically hardcodes DIR
38844# into the library and all subsequent libraries and executables linked
38845# against it.
38846hardcode_automatic=$hardcode_automatic_CXX
38847
38848# Set to yes if linker adds runtime paths of dependent libraries
38849# to runtime path list.
38850inherit_rpath=$inherit_rpath_CXX
38851
38852# Whether libtool must link a program against all its dependency libraries.
38853link_all_deplibs=$link_all_deplibs_CXX
38854
cristy73bd4a52010-10-05 11:24:23 +000038855# Set to "yes" if exported symbols are required.
38856always_export_symbols=$always_export_symbols_CXX
38857
38858# The commands to list exported symbols.
38859export_symbols_cmds=$lt_export_symbols_cmds_CXX
38860
38861# Symbols that should not be listed in the preloaded symbols.
38862exclude_expsyms=$lt_exclude_expsyms_CXX
38863
38864# Symbols that must always be exported.
38865include_expsyms=$lt_include_expsyms_CXX
38866
38867# Commands necessary for linking programs (against libraries) with templates.
38868prelink_cmds=$lt_prelink_cmds_CXX
38869
cristyda16f162011-02-19 23:52:17 +000038870# Commands necessary for finishing linking programs.
38871postlink_cmds=$lt_postlink_cmds_CXX
38872
cristy73bd4a52010-10-05 11:24:23 +000038873# Specify filename containing input files.
38874file_list_spec=$lt_file_list_spec_CXX
38875
38876# How to hardcode a shared library path into an executable.
38877hardcode_action=$hardcode_action_CXX
38878
38879# The directories searched by this compiler when creating a shared library.
38880compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
38881
38882# Dependencies to place before and after the objects being linked to
38883# create a shared library.
38884predep_objects=$lt_predep_objects_CXX
38885postdep_objects=$lt_postdep_objects_CXX
38886predeps=$lt_predeps_CXX
38887postdeps=$lt_postdeps_CXX
38888
38889# The library search path used internally by the compiler when linking
38890# a shared library.
38891compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
38892
38893# ### END LIBTOOL TAG CONFIG: CXX
38894_LT_EOF
38895
38896 ;;
cristy2bd4b6e2012-07-22 15:29:11 +000038897 "magick.sh.in":C) chmod +x magick.sh ;;
cristy4c08aed2011-07-01 19:47:50 +000038898 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000038899 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000038900 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
38901 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
38902
38903 esac
38904done # for ac_tag
38905
38906
cristy8b350f62009-11-15 23:12:43 +000038907as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000038908_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000038909ac_clean_files=$ac_clean_files_save
38910
38911test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000038912 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038913
38914
38915# configure is writing to config.log, and then calls config.status.
38916# config.status does its own redirection, appending to config.log.
38917# Unfortunately, on DOS this fails, as config.log is still kept open
38918# by configure, so config.status won't be able to write to it; its
38919# output is simply discarded. So we exec the FD to /dev/null,
38920# effectively closing config.log, so it can be properly (re)opened and
38921# appended to by config.status. When coming back to configure, we
38922# need to make the FD available again.
38923if test "$no_create" != yes; then
38924 ac_cs_success=:
38925 ac_config_status_args=
38926 test "$silent" = yes &&
38927 ac_config_status_args="$ac_config_status_args --quiet"
38928 exec 5>/dev/null
38929 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
38930 exec 5>>config.log
38931 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
38932 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000038933 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000038934fi
38935if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000038936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000038937$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
38938fi
38939
38940
38941rm -f magick-version
38942
cristy430a7312010-01-21 20:44:04 +000038943result_dejavu_font_dir='none'
38944if test "${dejavu_font_dir}x" != 'x'; then
38945 result_dejavu_font_dir=$dejavu_font_dir
38946fi
38947
cristy3ed852e2009-09-05 21:47:34 +000038948result_ghostscript_font_dir='none'
38949if test "${ghostscript_font_dir}x" != 'x'; then
38950 result_ghostscript_font_dir=$ghostscript_font_dir
38951fi
38952
38953result_windows_font_dir='none'
38954if test "${windows_font_dir}x" != 'x'; then
38955 result_windows_font_dir=${windows_font_dir}
38956fi
38957
cristyad38abe2012-12-23 23:03:21 +000038958{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
cristy3ed852e2009-09-05 21:47:34 +000038959ImageMagick is configured as follows. Please verify that this configuration
38960matches your expectations.
38961
38962Host system type: $host
38963Build system type: $build
38964
38965 Option Value
38966-------------------------------------------------------------------------------
38967Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38968Static libraries --enable-static=$enable_static $libtool_build_static_libs
cristyc6722092012-10-14 00:19:31 +000038969Module support --with-modules=$build_modules $build_modules
cristy3ed852e2009-09-05 21:47:34 +000038970GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38971Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38972High Dynamic Range Imagery
38973 --enable-hdri=$enable_hdri $enable_hdri
38974
38975Delegate Configuration:
38976BZLIB --with-bzlib=$with_bzlib $have_bzlib
38977Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038978Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038979DJVU --with-djvu=$with_djvu $have_djvu
38980DPS --with-dps=$with_dps $have_dps
38981FFTW --with-fftw=$with_fftw $have_fftw
38982FlashPIX --with-fpx=$with_fpx $have_fpx
38983FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38984FreeType --with-freetype=$with_freetype $have_freetype
38985GhostPCL None $PCLDelegate ($PCLVersion)
38986GhostXPS None $XPSDelegate ($XPSVersion)
38987Ghostscript None $PSDelegate ($GSVersion)
38988Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38989Ghostscript lib --with-gslib=$with_gslib $have_gslib
38990Graphviz --with-gvc=$with_gvc $have_gvc
38991JBIG --with-jbig=$with_jbig $have_jbig
38992JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38993JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038994LCMS v1 --with-lcms=$with_lcms $have_lcms
38995LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy99db3872014-01-01 15:11:34 +000038996LIBJPEG2 --with-openjp2=$with_openjp2 $have_openjp2
cristy3ed852e2009-09-05 21:47:34 +000038997LQR --with-lqr=$with_lqr $have_lqr
cristy5eef09f2012-10-16 12:08:28 +000038998LTDL --with-ltdl=$with_ltdl $have_ltdl
cristyfbb0ef02010-12-19 02:32:11 +000038999LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000039000Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
cristy854c9cf2013-08-10 21:03:06 +000039001MUPDF --with-mupdf=$with_mupdf $have_mupdf
cristy3ed852e2009-09-05 21:47:34 +000039002OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000039003PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000039004PERL --with-perl=$with_perl $have_perl
39005PNG --with-png=$with_png $have_png
39006RSVG --with-rsvg=$with_rsvg $have_rsvg
39007TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000039008WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000039009Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy01ff9f32012-12-01 18:15:29 +000039010WMF --with-wmf=$with_wmf $have_wmf
cristy3ed852e2009-09-05 21:47:34 +000039011X11 --with-x=$with_x $have_x
39012XML --with-xml=$with_xml $have_xml
39013ZLIB --with-zlib=$with_zlib $have_zlib
39014
39015X11 Configuration:
39016 X_CFLAGS = $X_CFLAGS
39017 X_PRE_LIBS = $X_PRE_LIBS
39018 X_LIBS = $X_LIBS
39019 X_EXTRA_LIBS = $X_EXTRA_LIBS
39020
39021Options used to compile and link:
39022 PREFIX = $PREFIX_DIR
39023 EXEC-PREFIX = $EXEC_PREFIX_DIR
39024 VERSION = $PACKAGE_VERSION
39025 CC = $CC
39026 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000039027 CPPFLAGS = $MAGICK_CPPFLAGS
39028 PCFLAGS = $MAGICK_PCFLAGS
39029 DEFS = $DEFS
39030 LDFLAGS = $LDFLAGS
39031 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
39032 LIBS = $MAGICK_LIBS
39033 CXX = $CXX
39034 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000039035 FEATURES = $MAGICK_FEATURES
cristy422d5502012-12-22 22:20:57 +000039036 DELEGATES = $MAGICK_DELEGATES
cristy3ed852e2009-09-05 21:47:34 +000039037" >&5
cristyad38abe2012-12-23 23:03:21 +000039038$as_echo "
cristy3ed852e2009-09-05 21:47:34 +000039039ImageMagick is configured as follows. Please verify that this configuration
39040matches your expectations.
39041
39042Host system type: $host
39043Build system type: $build
39044
39045 Option Value
39046-------------------------------------------------------------------------------
39047Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
39048Static libraries --enable-static=$enable_static $libtool_build_static_libs
cristyc6722092012-10-14 00:19:31 +000039049Module support --with-modules=$build_modules $build_modules
cristy3ed852e2009-09-05 21:47:34 +000039050GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
39051Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
39052High Dynamic Range Imagery
39053 --enable-hdri=$enable_hdri $enable_hdri
39054
39055Delegate Configuration:
39056BZLIB --with-bzlib=$with_bzlib $have_bzlib
39057Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000039058Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000039059DJVU --with-djvu=$with_djvu $have_djvu
39060DPS --with-dps=$with_dps $have_dps
39061FFTW --with-fftw=$with_fftw $have_fftw
39062FlashPIX --with-fpx=$with_fpx $have_fpx
39063FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
39064FreeType --with-freetype=$with_freetype $have_freetype
39065GhostPCL None $PCLDelegate ($PCLVersion)
39066GhostXPS None $XPSDelegate ($XPSVersion)
39067Ghostscript None $PSDelegate ($GSVersion)
39068Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
39069Ghostscript lib --with-gslib=$with_gslib $have_gslib
39070Graphviz --with-gvc=$with_gvc $have_gvc
39071JBIG --with-jbig=$with_jbig $have_jbig
39072JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
39073JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000039074LCMS v1 --with-lcms=$with_lcms $have_lcms
39075LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy99db3872014-01-01 15:11:34 +000039076LIBJPEG2 --with-openjp2=$with_openjp2 $have_openjp2
cristy3ed852e2009-09-05 21:47:34 +000039077LQR --with-lqr=$with_lqr $have_lqr
cristy5eef09f2012-10-16 12:08:28 +000039078LTDL --with-ltdl=$with_ltdl $have_ltdl
cristyfbb0ef02010-12-19 02:32:11 +000039079LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000039080Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
cristy854c9cf2013-08-10 21:03:06 +000039081MUPDF --with-mupdf=$with_mupdf $have_mupdf
cristy3ed852e2009-09-05 21:47:34 +000039082OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000039083PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000039084PERL --with-perl=$with_perl $have_perl
39085PNG --with-png=$with_png $have_png
39086RSVG --with-rsvg=$with_rsvg $have_rsvg
39087TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000039088WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000039089Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy01ff9f32012-12-01 18:15:29 +000039090WMF --with-wmf=$with_wmf $have_wmf
cristy3ed852e2009-09-05 21:47:34 +000039091X11 --with-x=$with_x $have_x
39092XML --with-xml=$with_xml $have_xml
39093ZLIB --with-zlib=$with_zlib $have_zlib
39094
39095X11 Configuration:
39096 X_CFLAGS = $X_CFLAGS
39097 X_PRE_LIBS = $X_PRE_LIBS
39098 X_LIBS = $X_LIBS
39099 X_EXTRA_LIBS = $X_EXTRA_LIBS
39100
39101Options used to compile and link:
39102 PREFIX = $PREFIX_DIR
39103 EXEC-PREFIX = $EXEC_PREFIX_DIR
39104 VERSION = $PACKAGE_VERSION
39105 CC = $CC
39106 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000039107 CPPFLAGS = $MAGICK_CPPFLAGS
39108 PCFLAGS = $MAGICK_PCFLAGS
39109 DEFS = $DEFS
39110 LDFLAGS = $LDFLAGS
39111 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
39112 LIBS = $MAGICK_LIBS
39113 CXX = $CXX
39114 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000039115 FEATURES = $MAGICK_FEATURES
cristy422d5502012-12-22 22:20:57 +000039116 DELEGATES = $MAGICK_DELEGATES
cristyad38abe2012-12-23 23:03:21 +000039117" >&6; }