blob: 3692924eb389bba9856c797c887ba54c3f19c88e [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
cristy66f238e2014-05-16 12:21:48 +0000712MogrifyDelegate
cristy3ed852e2009-09-05 21:47:34 +0000713MANDelegate
714LaunchDelegate
cristy3ed852e2009-09-05 21:47:34 +0000715LPRDelegate
716LPDelegate
cristy71f53d52013-04-27 13:33:59 +0000717JXREncodeDelegate
718JXRDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000719ILBMEncodeDelegate
720ILBMDecodeDelegate
721HTMLDecodeDelegate
722HPGLDecodeDelegate
cristy66f238e2014-05-16 12:21:48 +0000723GVCDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000724GnuplotDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000725EditorDelegate
726EchoDelegate
cristy66f238e2014-05-16 12:21:48 +0000727DisplayDelegate
728ConvertDelegate
cristy3ed852e2009-09-05 21:47:34 +0000729DVIDecodeDelegate
cristy66f238e2014-05-16 12:21:48 +0000730DOCDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000731DNGDecodeDelegate
732CatDelegate
cristy3ed852e2009-09-05 21:47:34 +0000733BrowseDelegate
734BZIPDelegate
735BlenderDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000736AutotraceDecodeDelegate
cristy670aa3c2011-11-03 00:54:00 +0000737SHAREARCH_PATH
cristy54378032012-12-04 15:52:20 +0000738SHAREARCH_RELATIVE_PATH
739SHAREARCH_DIRNAME
740SHAREARCH_BASEDIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000741SHARE_PATH
cristy4f820712011-04-01 12:35:43 +0000742CONFIGURE_PATH
cristydd17feb2014-03-05 02:06:32 +0000743INSTALL_DOC_FALSE
744INSTALL_DOC_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000745DOCUMENTATION_PATH
746FILTER_PATH
cristy01ff9f32012-12-01 18:15:29 +0000747FILTER_DIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000748CODER_PATH
cristy01ff9f32012-12-01 18:15:29 +0000749CODER_DIRNAME
750MODULES_PATH
751MODULES_RELATIVE_PATH
752MODULES_DIRNAME
753MODULES_BASEDIRNAME
cristy8d0ff762013-03-10 20:33:28 +0000754LIB_BIN_DIR_PATH
755LIB_BIN_DIR_RELATIVE_PATH
756LIB_BIN_DIR
757LIB_BIN_BASEDIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000758LIBRARY_PATH
759EXECUTABLE_PATH
cristye52f12f2012-12-31 15:32:36 +0000760INCLUDEARCH_PATH
cristy2a11bef2011-10-28 18:33:11 +0000761INCLUDE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000762PERLMAINCC
763XML_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000764XML_DELEGATE_FALSE
765XML_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000766xml2_config
cristy03f7cf92011-12-15 01:40:41 +0000767WMF_LIBS_DEPS
cristy3ed852e2009-09-05 21:47:34 +0000768WMF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000769WMF_DELEGATE_FALSE
770WMF_DELEGATE_TRUE
cristyb1860752011-03-14 00:27:46 +0000771WEBP_LIBS
772WEBP_DELEGATE_FALSE
773WEBP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000774TIFF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000775TIFF_DELEGATE_FALSE
776TIFF_DELEGATE_TRUE
777CAIRO_DELEGATE_FALSE
778CAIRO_DELEGATE_TRUE
779RSVG_DELEGATE_FALSE
780RSVG_DELEGATE_TRUE
781CAIRO_SVG_LIBS
782CAIRO_SVG_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000783RSVG_LIBS
784RSVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +0000785PNG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000786PNG_DELEGATE_FALSE
787PNG_DELEGATE_TRUE
cristya054b762012-03-26 23:16:00 +0000788PANGOCAIRO_DELEGATE_FALSE
789PANGOCAIRO_DELEGATE_TRUE
cristy41cbe8a2011-10-27 01:35:18 +0000790PANGO_DELEGATE_FALSE
791PANGO_DELEGATE_TRUE
792PANGO_LIBS
793PANGO_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000794OPENEXR_DELEGATE_FALSE
795OPENEXR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000796OPENEXR_LIBS
797OPENEXR_CFLAGS
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
cristy853d9902014-08-21 18:50:43 +0000834DJVU_LIBS
835DJVU_DELEGATE_FALSE
836DJVU_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000837FPX_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000838FPX_DELEGATE_FALSE
839FPX_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000840FFTW_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000841FFTW_DELEGATE_FALSE
842FFTW_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
cristy12ac8192014-11-04 13:59:13 +0000872has_jemalloc
cristy3ed852e2009-09-05 21:47:34 +0000873GOMP_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000874WITH_MAGICK_PLUS_PLUS_FALSE
875WITH_MAGICK_PLUS_PLUS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000876OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000877MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000878POW_LIB
879LIBOBJS
cristy6d5e20f2011-04-25 13:48:54 +0000880UINTPTR_F
cristy3ed852e2009-09-05 21:47:34 +0000881UINTPTR_T
cristy6d5e20f2011-04-25 13:48:54 +0000882UINTMAX_F
cristy3ed852e2009-09-05 21:47:34 +0000883UINTMAX_T
cristy6d5e20f2011-04-25 13:48:54 +0000884UINT64_F
cristy3ed852e2009-09-05 21:47:34 +0000885UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000886INT64_F
cristy3ed852e2009-09-05 21:47:34 +0000887INT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000888UINT32_F
cristy3ed852e2009-09-05 21:47:34 +0000889UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +0000890INT32_F
cristy3ed852e2009-09-05 21:47:34 +0000891INT32_T
892UINT16_T
893INT16_T
894UINT8_T
895INT8_T
896LIBRARY_EXTRA_CPPFLAGS
897MODULE_EXTRA_CPPFLAGS
898LIBSTDCLDFLAGS
899PERL_MAKE_OPTIONS
cristy3a75f062012-09-08 23:29:40 +0000900MAGICK_LT_RELEASE_OPTS
cristy7a26abd2012-12-03 00:18:59 +0000901MAGICK_ABI_SUFFIX
cristy3ed852e2009-09-05 21:47:34 +0000902QUANTUM_DEPTH
cristy71d8c202012-03-20 17:05:01 +0000903LEGACY_SUPPORT_FALSE
904LEGACY_SUPPORT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000905MAINT
906MAINTAINER_MODE_FALSE
907MAINTAINER_MODE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000908MAGICK_HDRI
cristy73bd4a52010-10-05 11:24:23 +0000909WITH_MODULES_FALSE
910WITH_MODULES_TRUE
911WITH_SHARED_LIBS_FALSE
912WITH_SHARED_LIBS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000913LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +0000914CXXCPP
915OTOOL64
916OTOOL
917LIPO
918NMEDIT
919DSYMUTIL
cristyda16f162011-02-19 23:52:17 +0000920MANIFEST_TOOL
cristy73bd4a52010-10-05 11:24:23 +0000921RANLIB
cristyda16f162011-02-19 23:52:17 +0000922ac_ct_AR
cristy73bd4a52010-10-05 11:24:23 +0000923AR
924NM
925ac_ct_DUMPBIN
926DUMPBIN
927LIBTOOL
928OBJDUMP
929DLLTOOL
930AS
cristy3ed852e2009-09-05 21:47:34 +0000931LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000932CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000933CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000934OPENMP_CFLAGS
cristy1ae5c992013-07-30 14:55:07 +0000935THREAD_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000936PTHREAD_CFLAGS
937PTHREAD_LIBS
938PTHREAD_CC
939ax_pthread_config
cristy2ec87cc2013-02-18 17:46:50 +0000940pkgconfigdir
cristy670aa3c2011-11-03 00:54:00 +0000941SHAREARCH_DIR
942INCLUDEARCH_DIR
cristy3ed852e2009-09-05 21:47:34 +0000943WinPathScript
cristy73bd4a52010-10-05 11:24:23 +0000944USING_CL_FALSE
945USING_CL_TRUE
946CYGWIN_BUILD_FALSE
947CYGWIN_BUILD_TRUE
948WIN32_NATIVE_BUILD_FALSE
949WIN32_NATIVE_BUILD_TRUE
950WINGDI32_DELEGATE_FALSE
951WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000952GDI32_LIBS
cristy9b86f202012-11-28 21:55:35 +0000953HAVE_LD_VERSION_SCRIPT_FALSE
954HAVE_LD_VERSION_SCRIPT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000955PKG_CONFIG
cristya0459972013-11-03 18:09:35 +0000956PRTDIAG
cristy3ed852e2009-09-05 21:47:34 +0000957LN_S
cristy3ed852e2009-09-05 21:47:34 +0000958LD
cristy73bd4a52010-10-05 11:24:23 +0000959FGREP
960SED
961am__fastdepCXX_FALSE
962am__fastdepCXX_TRUE
963CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000964ac_ct_CXX
965CXXFLAGS
966CXX
cristya0b81c32010-01-22 02:54:33 +0000967EGREP
968GREP
969CPP
cristy73bd4a52010-10-05 11:24:23 +0000970am__fastdepCC_FALSE
971am__fastdepCC_TRUE
972CCDEPMODE
cristy7247bba2012-02-05 16:37:27 +0000973am__nodep
cristy73bd4a52010-10-05 11:24:23 +0000974AMDEPBACKSLASH
975AMDEP_FALSE
976AMDEP_TRUE
977am__quote
978am__include
979DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000980OBJEXT
981EXEEXT
982ac_ct_CC
983CPPFLAGS
984LDFLAGS
985CFLAGS
986CC
987DIRSEP
988MAGICK_FILTER_MODULE_PATH
989MAGICK_CONFIGURE_BUILD_PATH
990MAGICK_CONFIGURE_SRC_PATH
991MAGICK_CODER_MODULE_PATH
992MAN_DIR
993INFO_DIR
994PERSISTINCLUDE_DIR
995INCLUDE_DIR
996LIB_DIR
997LOCALSTATE_DIR
998SHAREDSTATE_DIR
999SYSCONF_DIR
cristyd55889c2011-03-27 00:50:24 +00001000DOC_DIR
cristy3ed852e2009-09-05 21:47:34 +00001001DATA_DIR
1002LIBEXEC_DIR
1003SBIN_DIR
1004BIN_DIR
1005EXEC_PREFIX_DIR
1006PREFIX_DIR
1007CONFIG_STATUS_DEPENDENCIES
cristy5ed9c6e2013-07-14 21:20:31 +00001008MAGICKPP_LIB_VERSION_TEXT
1009MAGICKPP_LIB_VERSION
cristy3ed852e2009-09-05 21:47:34 +00001010MAGICK_LIB_VERSION_NUMBER
1011MAGICK_LIB_VERSION_TEXT
1012MAGICK_LIB_VERSION
cristy73bd4a52010-10-05 11:24:23 +00001013AM_BACKSLASH
1014AM_DEFAULT_VERBOSITY
cristyc3fb77b2012-02-06 01:49:41 +00001015AM_DEFAULT_V
1016AM_V
cristy73bd4a52010-10-05 11:24:23 +00001017am__untar
1018am__tar
1019AMTAR
1020am__leading_dot
1021SET_MAKE
1022AWK
1023mkdir_p
1024MKDIR_P
1025INSTALL_STRIP_PROGRAM
1026STRIP
1027install_sh
1028MAKEINFO
1029AUTOHEADER
1030AUTOMAKE
1031AUTOCONF
1032ACLOCAL
1033VERSION
1034PACKAGE
1035CYGPATH_W
1036am__isrc
1037INSTALL_DATA
1038INSTALL_SCRIPT
1039INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +00001040PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +00001041PACKAGE_RELEASE_DATE
1042PACKAGE_LIB_VERSION_NUMBER
1043PACKAGE_LIB_VERSION
1044PACKAGE_CHANGE_DATE
1045PACKAGE_RELEASE
cristy878c2f12011-08-19 00:25:19 +00001046PACKAGE_PERL_VERSION
cristy5ed9c6e2013-07-14 21:20:31 +00001047MAGICKPP_LIBRARY_VERSION_INFO
1048MAGICKPP_LIBRARY_CURRENT_MIN
1049MAGICKPP_LIBRARY_AGE
1050MAGICKPP_LIBRARY_REVISION
1051MAGICKPP_LIBRARY_CURRENT
cristybab87c32010-02-09 20:54:22 +00001052MAGICK_LIBRARY_VERSION_INFO
1053MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001054MAGICK_LIBRARY_AGE
1055MAGICK_LIBRARY_REVISION
1056MAGICK_LIBRARY_CURRENT
cristy37442762013-02-10 21:07:23 +00001057MAGICK_SVN_REVISION
1058MAGICK_VERSION
1059MAGICK_PATCHLEVEL_VERSION
1060MAGICK_MICRO_VERSION
1061MAGICK_MINOR_VERSION
1062MAGICK_MAJOR_VERSION
cristy3225a072010-04-17 01:47:28 +00001063MAGICK_TARGET_OS
1064MAGICK_TARGET_VENDOR
1065MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001066target_os
1067target_vendor
1068target_cpu
1069target
1070host_os
1071host_vendor
1072host_cpu
1073host
1074build_os
1075build_vendor
1076build_cpu
1077build
1078CONFIGURE_ARGS
1079DISTCHECK_CONFIG_FLAGS
1080target_alias
1081host_alias
1082build_alias
1083LIBS
1084ECHO_T
1085ECHO_N
1086ECHO_C
1087DEFS
1088mandir
1089localedir
1090libdir
1091psdir
1092pdfdir
1093dvidir
1094htmldir
1095infodir
1096docdir
1097oldincludedir
1098includedir
1099localstatedir
1100sharedstatedir
1101sysconfdir
1102datadir
1103datarootdir
1104libexecdir
1105sbindir
1106bindir
1107program_transform_name
1108prefix
1109exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001110PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001111PACKAGE_BUGREPORT
1112PACKAGE_STRING
1113PACKAGE_VERSION
1114PACKAGE_TARNAME
1115PACKAGE_NAME
1116PATH_SEPARATOR
1117SHELL'
1118ac_subst_files=''
1119ac_user_opts='
1120enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001121enable_silent_rules
1122enable_dependency_tracking
1123with_gnu_ld
1124with_dmalloc
cristya0459972013-11-03 18:09:35 +00001125with_gcc_arch
cristy9b86f202012-11-28 21:55:35 +00001126enable_ld_version_script
cristy3ed852e2009-09-05 21:47:34 +00001127enable_bounds_checking
1128enable_osx_universal_binary
cristy670aa3c2011-11-03 00:54:00 +00001129with_includearch_dir
1130with_sharearch_dir
cristy2ec87cc2013-02-18 17:46:50 +00001131with_pkgconfigdir
cristy3ed852e2009-09-05 21:47:34 +00001132with_threads
1133enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001134enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001135enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001136enable_shared
1137enable_static
1138with_pic
1139enable_fast_install
cristyda16f162011-02-19 23:52:17 +00001140with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001141enable_libtool_lock
cristy3ed852e2009-09-05 21:47:34 +00001142with_modules
1143enable_delegate_build
1144enable_deprecated
1145enable_installed
1146enable_cipher
cristy6e3607c2011-09-13 13:59:17 +00001147enable_zero_configuration
cristy3ed852e2009-09-05 21:47:34 +00001148enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001149enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001150enable_maintainer_mode
cristy944e51f2013-04-16 18:45:02 +00001151enable_hugepages
cristy3ed852e2009-09-05 21:47:34 +00001152enable_ccmalloc
1153enable_efence
1154enable_prof
1155enable_gprof
1156enable_gcov
1157with_method_prefix
cristy71d8c202012-03-20 17:05:01 +00001158enable_legacy_support
cristy3ed852e2009-09-05 21:47:34 +00001159with_quantum_depth
1160with_cache
1161with_frozenpaths
1162with_magick_plus_plus
cristy3a75f062012-09-08 23:29:40 +00001163with_package_release_name
cristy3ed852e2009-09-05 21:47:34 +00001164with_perl
1165with_perl_options
1166with_umem
1167with_libstdc
cristy12ac8192014-11-04 13:59:13 +00001168with_jemalloc_prefix
1169with_jemalloc
cristy3ed852e2009-09-05 21:47:34 +00001170with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001171with_x
cristy3ed852e2009-09-05 21:47:34 +00001172with_zlib
1173with_autotrace
1174with_dps
cristy430a7312010-01-21 20:44:04 +00001175with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001176with_fftw
1177with_fpx
cristy853d9902014-08-21 18:50:43 +00001178with_djvu
cristy3ed852e2009-09-05 21:47:34 +00001179with_fontconfig
1180with_freetype
1181with_gslib
1182with_fontpath
1183with_gs_font_dir
1184with_gvc
1185with_jbig
1186with_jpeg
cristy3ed852e2009-09-05 21:47:34 +00001187with_lcms
cristy71203402010-06-18 13:12:03 +00001188with_lcms2
cristy99db3872014-01-01 15:11:34 +00001189with_openjp2
cristy3ed852e2009-09-05 21:47:34 +00001190with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001191with_lzma
cristy3ed852e2009-09-05 21:47:34 +00001192with_openexr
cristy41cbe8a2011-10-27 01:35:18 +00001193with_pango
cristy3ed852e2009-09-05 21:47:34 +00001194with_png
1195with_rsvg
1196with_tiff
cristyb1860752011-03-14 00:27:46 +00001197with_webp
cristy3ed852e2009-09-05 21:47:34 +00001198with_windows_font_dir
1199with_wmf
1200with_xml
cristydd17feb2014-03-05 02:06:32 +00001201enable_docs
cristy3ed852e2009-09-05 21:47:34 +00001202'
1203 ac_precious_vars='build_alias
1204host_alias
1205target_alias
1206CC
1207CFLAGS
1208LDFLAGS
1209LIBS
1210CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001211CPP
cristy3ed852e2009-09-05 21:47:34 +00001212CXX
1213CXXFLAGS
1214CCC
cristy73bd4a52010-10-05 11:24:23 +00001215PKG_CONFIG
1216CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001217XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001218AUTOTRACE_CFLAGS
1219AUTOTRACE_LIBS
1220FONTCONFIG_CFLAGS
1221FONTCONFIG_LIBS
cristy03f187e2013-01-24 00:22:19 +00001222FREETYPE_CFLAGS
1223FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001224GVC_CFLAGS
1225GVC_LIBS
cristy99db3872014-01-01 15:11:34 +00001226LIBOPENJP2_CFLAGS
1227LIBOPENJP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001228LQR_CFLAGS
1229LQR_LIBS
cristyb94e5002011-11-14 13:20:10 +00001230LZMA_CFLAGS
1231LZMA_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001232OPENEXR_CFLAGS
1233OPENEXR_LIBS
cristy41cbe8a2011-10-27 01:35:18 +00001234PANGO_CFLAGS
1235PANGO_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001236RSVG_CFLAGS
1237RSVG_LIBS
1238CAIRO_SVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +00001239CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001240
1241
1242# Initialize some variables set by options.
1243ac_init_help=
1244ac_init_version=false
1245ac_unrecognized_opts=
1246ac_unrecognized_sep=
1247# The variables have the same names as the options, with
1248# dashes changed to underlines.
1249cache_file=/dev/null
1250exec_prefix=NONE
1251no_create=
1252no_recursion=
1253prefix=NONE
1254program_prefix=NONE
1255program_suffix=NONE
1256program_transform_name=s,x,x,
1257silent=
1258site=
1259srcdir=
1260verbose=
1261x_includes=NONE
1262x_libraries=NONE
1263
1264# Installation directory options.
1265# These are left unexpanded so users can "make install exec_prefix=/foo"
1266# and all the variables that are supposed to be based on exec_prefix
1267# by default will actually change.
1268# Use braces instead of parens because sh, perl, etc. also accept them.
1269# (The list follows the same order as the GNU Coding Standards.)
1270bindir='${exec_prefix}/bin'
1271sbindir='${exec_prefix}/sbin'
1272libexecdir='${exec_prefix}/libexec'
1273datarootdir='${prefix}/share'
1274datadir='${datarootdir}'
1275sysconfdir='${prefix}/etc'
1276sharedstatedir='${prefix}/com'
1277localstatedir='${prefix}/var'
1278includedir='${prefix}/include'
1279oldincludedir='/usr/include'
1280docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1281infodir='${datarootdir}/info'
1282htmldir='${docdir}'
1283dvidir='${docdir}'
1284pdfdir='${docdir}'
1285psdir='${docdir}'
1286libdir='${exec_prefix}/lib'
1287localedir='${datarootdir}/locale'
1288mandir='${datarootdir}/man'
1289
1290ac_prev=
1291ac_dashdash=
1292for ac_option
1293do
1294 # If the previous option needs an argument, assign it.
1295 if test -n "$ac_prev"; then
1296 eval $ac_prev=\$ac_option
1297 ac_prev=
1298 continue
1299 fi
1300
1301 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001302 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1303 *=) ac_optarg= ;;
1304 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001305 esac
1306
1307 # Accept the important Cygnus configure options, so we can diagnose typos.
1308
1309 case $ac_dashdash$ac_option in
1310 --)
1311 ac_dashdash=yes ;;
1312
1313 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1314 ac_prev=bindir ;;
1315 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1316 bindir=$ac_optarg ;;
1317
1318 -build | --build | --buil | --bui | --bu)
1319 ac_prev=build_alias ;;
1320 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1321 build_alias=$ac_optarg ;;
1322
1323 -cache-file | --cache-file | --cache-fil | --cache-fi \
1324 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1325 ac_prev=cache_file ;;
1326 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1327 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1328 cache_file=$ac_optarg ;;
1329
1330 --config-cache | -C)
1331 cache_file=config.cache ;;
1332
1333 -datadir | --datadir | --datadi | --datad)
1334 ac_prev=datadir ;;
1335 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1336 datadir=$ac_optarg ;;
1337
1338 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1339 | --dataroo | --dataro | --datar)
1340 ac_prev=datarootdir ;;
1341 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1342 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1343 datarootdir=$ac_optarg ;;
1344
1345 -disable-* | --disable-*)
1346 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1347 # Reject names that are not valid shell variable names.
1348 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001349 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001350 ac_useropt_orig=$ac_useropt
1351 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1352 case $ac_user_opts in
1353 *"
1354"enable_$ac_useropt"
1355"*) ;;
1356 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1357 ac_unrecognized_sep=', ';;
1358 esac
1359 eval enable_$ac_useropt=no ;;
1360
1361 -docdir | --docdir | --docdi | --doc | --do)
1362 ac_prev=docdir ;;
1363 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1364 docdir=$ac_optarg ;;
1365
1366 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1367 ac_prev=dvidir ;;
1368 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1369 dvidir=$ac_optarg ;;
1370
1371 -enable-* | --enable-*)
1372 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1373 # Reject names that are not valid shell variable names.
1374 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001375 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001376 ac_useropt_orig=$ac_useropt
1377 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1378 case $ac_user_opts in
1379 *"
1380"enable_$ac_useropt"
1381"*) ;;
1382 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1383 ac_unrecognized_sep=', ';;
1384 esac
1385 eval enable_$ac_useropt=\$ac_optarg ;;
1386
1387 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1388 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1389 | --exec | --exe | --ex)
1390 ac_prev=exec_prefix ;;
1391 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1392 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1393 | --exec=* | --exe=* | --ex=*)
1394 exec_prefix=$ac_optarg ;;
1395
1396 -gas | --gas | --ga | --g)
1397 # Obsolete; use --with-gas.
1398 with_gas=yes ;;
1399
1400 -help | --help | --hel | --he | -h)
1401 ac_init_help=long ;;
1402 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1403 ac_init_help=recursive ;;
1404 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1405 ac_init_help=short ;;
1406
1407 -host | --host | --hos | --ho)
1408 ac_prev=host_alias ;;
1409 -host=* | --host=* | --hos=* | --ho=*)
1410 host_alias=$ac_optarg ;;
1411
1412 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1413 ac_prev=htmldir ;;
1414 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1415 | --ht=*)
1416 htmldir=$ac_optarg ;;
1417
1418 -includedir | --includedir | --includedi | --included | --include \
1419 | --includ | --inclu | --incl | --inc)
1420 ac_prev=includedir ;;
1421 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1422 | --includ=* | --inclu=* | --incl=* | --inc=*)
1423 includedir=$ac_optarg ;;
1424
1425 -infodir | --infodir | --infodi | --infod | --info | --inf)
1426 ac_prev=infodir ;;
1427 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1428 infodir=$ac_optarg ;;
1429
1430 -libdir | --libdir | --libdi | --libd)
1431 ac_prev=libdir ;;
1432 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1433 libdir=$ac_optarg ;;
1434
1435 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1436 | --libexe | --libex | --libe)
1437 ac_prev=libexecdir ;;
1438 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1439 | --libexe=* | --libex=* | --libe=*)
1440 libexecdir=$ac_optarg ;;
1441
1442 -localedir | --localedir | --localedi | --localed | --locale)
1443 ac_prev=localedir ;;
1444 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1445 localedir=$ac_optarg ;;
1446
1447 -localstatedir | --localstatedir | --localstatedi | --localstated \
1448 | --localstate | --localstat | --localsta | --localst | --locals)
1449 ac_prev=localstatedir ;;
1450 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1451 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1452 localstatedir=$ac_optarg ;;
1453
1454 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1455 ac_prev=mandir ;;
1456 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1457 mandir=$ac_optarg ;;
1458
1459 -nfp | --nfp | --nf)
1460 # Obsolete; use --without-fp.
1461 with_fp=no ;;
1462
1463 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1464 | --no-cr | --no-c | -n)
1465 no_create=yes ;;
1466
1467 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1468 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1469 no_recursion=yes ;;
1470
1471 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1472 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1473 | --oldin | --oldi | --old | --ol | --o)
1474 ac_prev=oldincludedir ;;
1475 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1476 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1477 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1478 oldincludedir=$ac_optarg ;;
1479
1480 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1481 ac_prev=prefix ;;
1482 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1483 prefix=$ac_optarg ;;
1484
1485 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1486 | --program-pre | --program-pr | --program-p)
1487 ac_prev=program_prefix ;;
1488 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1489 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1490 program_prefix=$ac_optarg ;;
1491
1492 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1493 | --program-suf | --program-su | --program-s)
1494 ac_prev=program_suffix ;;
1495 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1496 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1497 program_suffix=$ac_optarg ;;
1498
1499 -program-transform-name | --program-transform-name \
1500 | --program-transform-nam | --program-transform-na \
1501 | --program-transform-n | --program-transform- \
1502 | --program-transform | --program-transfor \
1503 | --program-transfo | --program-transf \
1504 | --program-trans | --program-tran \
1505 | --progr-tra | --program-tr | --program-t)
1506 ac_prev=program_transform_name ;;
1507 -program-transform-name=* | --program-transform-name=* \
1508 | --program-transform-nam=* | --program-transform-na=* \
1509 | --program-transform-n=* | --program-transform-=* \
1510 | --program-transform=* | --program-transfor=* \
1511 | --program-transfo=* | --program-transf=* \
1512 | --program-trans=* | --program-tran=* \
1513 | --progr-tra=* | --program-tr=* | --program-t=*)
1514 program_transform_name=$ac_optarg ;;
1515
1516 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1517 ac_prev=pdfdir ;;
1518 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1519 pdfdir=$ac_optarg ;;
1520
1521 -psdir | --psdir | --psdi | --psd | --ps)
1522 ac_prev=psdir ;;
1523 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1524 psdir=$ac_optarg ;;
1525
1526 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1527 | -silent | --silent | --silen | --sile | --sil)
1528 silent=yes ;;
1529
1530 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1531 ac_prev=sbindir ;;
1532 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1533 | --sbi=* | --sb=*)
1534 sbindir=$ac_optarg ;;
1535
1536 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1537 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1538 | --sharedst | --shareds | --shared | --share | --shar \
1539 | --sha | --sh)
1540 ac_prev=sharedstatedir ;;
1541 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1542 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1543 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1544 | --sha=* | --sh=*)
1545 sharedstatedir=$ac_optarg ;;
1546
1547 -site | --site | --sit)
1548 ac_prev=site ;;
1549 -site=* | --site=* | --sit=*)
1550 site=$ac_optarg ;;
1551
1552 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1553 ac_prev=srcdir ;;
1554 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1555 srcdir=$ac_optarg ;;
1556
1557 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1558 | --syscon | --sysco | --sysc | --sys | --sy)
1559 ac_prev=sysconfdir ;;
1560 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1561 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1562 sysconfdir=$ac_optarg ;;
1563
1564 -target | --target | --targe | --targ | --tar | --ta | --t)
1565 ac_prev=target_alias ;;
1566 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1567 target_alias=$ac_optarg ;;
1568
1569 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1570 verbose=yes ;;
1571
1572 -version | --version | --versio | --versi | --vers | -V)
1573 ac_init_version=: ;;
1574
1575 -with-* | --with-*)
1576 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1577 # Reject names that are not valid shell variable names.
1578 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001579 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001580 ac_useropt_orig=$ac_useropt
1581 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1582 case $ac_user_opts in
1583 *"
1584"with_$ac_useropt"
1585"*) ;;
1586 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1587 ac_unrecognized_sep=', ';;
1588 esac
1589 eval with_$ac_useropt=\$ac_optarg ;;
1590
1591 -without-* | --without-*)
1592 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1593 # Reject names that are not valid shell variable names.
1594 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001595 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001596 ac_useropt_orig=$ac_useropt
1597 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1598 case $ac_user_opts in
1599 *"
1600"with_$ac_useropt"
1601"*) ;;
1602 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1603 ac_unrecognized_sep=', ';;
1604 esac
1605 eval with_$ac_useropt=no ;;
1606
1607 --x)
1608 # Obsolete; use --with-x.
1609 with_x=yes ;;
1610
1611 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1612 | --x-incl | --x-inc | --x-in | --x-i)
1613 ac_prev=x_includes ;;
1614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1616 x_includes=$ac_optarg ;;
1617
1618 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1620 ac_prev=x_libraries ;;
1621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1623 x_libraries=$ac_optarg ;;
1624
cristy98dddb52010-11-04 00:30:15 +00001625 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1626Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001627 ;;
1628
1629 *=*)
1630 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1631 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001632 case $ac_envvar in #(
1633 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001634 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001635 esac
cristy3ed852e2009-09-05 21:47:34 +00001636 eval $ac_envvar=\$ac_optarg
1637 export $ac_envvar ;;
1638
1639 *)
1640 # FIXME: should be removed in autoconf 3.0.
1641 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1642 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1643 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001644 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001645 ;;
1646
1647 esac
1648done
1649
1650if test -n "$ac_prev"; then
1651 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001652 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001653fi
1654
1655if test -n "$ac_unrecognized_opts"; then
1656 case $enable_option_checking in
1657 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001658 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001659 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1660 esac
1661fi
1662
1663# Check all directory arguments for consistency.
1664for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1665 datadir sysconfdir sharedstatedir localstatedir includedir \
1666 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1667 libdir localedir mandir
1668do
1669 eval ac_val=\$$ac_var
1670 # Remove trailing slashes.
1671 case $ac_val in
1672 */ )
1673 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1674 eval $ac_var=\$ac_val;;
1675 esac
1676 # Be sure to have absolute directory names.
1677 case $ac_val in
1678 [\\/$]* | ?:[\\/]* ) continue;;
1679 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1680 esac
cristy98dddb52010-11-04 00:30:15 +00001681 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001682done
1683
1684# There might be people who depend on the old broken behavior: `$host'
1685# used to hold the argument of --host etc.
1686# FIXME: To remove some day.
1687build=$build_alias
1688host=$host_alias
1689target=$target_alias
1690
1691# FIXME: To remove some day.
1692if test "x$host_alias" != x; then
1693 if test "x$build_alias" = x; then
1694 cross_compiling=maybe
cristy3ed852e2009-09-05 21:47:34 +00001695 elif test "x$build_alias" != "x$host_alias"; then
1696 cross_compiling=yes
1697 fi
1698fi
1699
1700ac_tool_prefix=
1701test -n "$host_alias" && ac_tool_prefix=$host_alias-
1702
1703test "$silent" = yes && exec 6>/dev/null
1704
1705
1706ac_pwd=`pwd` && test -n "$ac_pwd" &&
1707ac_ls_di=`ls -di .` &&
1708ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001709 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001710test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001711 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001712
1713
1714# Find the source files, if location was not specified.
1715if test -z "$srcdir"; then
1716 ac_srcdir_defaulted=yes
1717 # Try the directory containing this script, then the parent directory.
1718 ac_confdir=`$as_dirname -- "$as_myself" ||
1719$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1720 X"$as_myself" : 'X\(//\)[^/]' \| \
1721 X"$as_myself" : 'X\(//\)$' \| \
1722 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1723$as_echo X"$as_myself" |
1724 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1725 s//\1/
1726 q
1727 }
1728 /^X\(\/\/\)[^/].*/{
1729 s//\1/
1730 q
1731 }
1732 /^X\(\/\/\)$/{
1733 s//\1/
1734 q
1735 }
1736 /^X\(\/\).*/{
1737 s//\1/
1738 q
1739 }
1740 s/.*/./; q'`
1741 srcdir=$ac_confdir
1742 if test ! -r "$srcdir/$ac_unique_file"; then
1743 srcdir=..
1744 fi
1745else
1746 ac_srcdir_defaulted=no
1747fi
1748if test ! -r "$srcdir/$ac_unique_file"; then
1749 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001750 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001751fi
1752ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1753ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001754 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001755 pwd)`
1756# When building in place, set srcdir=.
1757if test "$ac_abs_confdir" = "$ac_pwd"; then
1758 srcdir=.
1759fi
1760# Remove unnecessary trailing slashes from srcdir.
1761# Double slashes in file names in object file debugging info
1762# mess up M-x gdb in Emacs.
1763case $srcdir in
1764*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1765esac
1766for ac_var in $ac_precious_vars; do
1767 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1768 eval ac_env_${ac_var}_value=\$${ac_var}
1769 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1770 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1771done
1772
1773#
1774# Report the --help message.
1775#
1776if test "$ac_init_help" = "long"; then
1777 # Omit some internal or obsolete options to make the list less imposing.
1778 # This message is too long to be a string in the A/UX 3.1 sh.
1779 cat <<_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00001780\`configure' configures ImageMagick 7.0.0-0 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001781
1782Usage: $0 [OPTION]... [VAR=VALUE]...
1783
1784To assign environment variables (e.g., CC, CFLAGS...), specify them as
1785VAR=VALUE. See below for descriptions of some of the useful variables.
1786
1787Defaults for the options are specified in brackets.
1788
1789Configuration:
1790 -h, --help display this help and exit
1791 --help=short display options specific to this package
1792 --help=recursive display the short help of all the included packages
1793 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001794 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001795 --cache-file=FILE cache test results in FILE [disabled]
1796 -C, --config-cache alias for \`--cache-file=config.cache'
1797 -n, --no-create do not create output files
1798 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1799
1800Installation directories:
1801 --prefix=PREFIX install architecture-independent files in PREFIX
1802 [$ac_default_prefix]
1803 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1804 [PREFIX]
1805
1806By default, \`make install' will install all the files in
1807\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1808an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1809for instance \`--prefix=\$HOME'.
1810
1811For better control, use the options below.
1812
1813Fine tuning of the installation directories:
1814 --bindir=DIR user executables [EPREFIX/bin]
1815 --sbindir=DIR system admin executables [EPREFIX/sbin]
1816 --libexecdir=DIR program executables [EPREFIX/libexec]
1817 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1818 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1819 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1820 --libdir=DIR object code libraries [EPREFIX/lib]
1821 --includedir=DIR C header files [PREFIX/include]
1822 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1823 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1824 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1825 --infodir=DIR info documentation [DATAROOTDIR/info]
1826 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1827 --mandir=DIR man documentation [DATAROOTDIR/man]
cristy09b53e12011-10-14 12:47:22 +00001828 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
cristy3ed852e2009-09-05 21:47:34 +00001829 --htmldir=DIR html documentation [DOCDIR]
1830 --dvidir=DIR dvi documentation [DOCDIR]
1831 --pdfdir=DIR pdf documentation [DOCDIR]
1832 --psdir=DIR ps documentation [DOCDIR]
1833_ACEOF
1834
1835 cat <<\_ACEOF
1836
cristy73bd4a52010-10-05 11:24:23 +00001837Program names:
1838 --program-prefix=PREFIX prepend PREFIX to installed program names
1839 --program-suffix=SUFFIX append SUFFIX to installed program names
1840 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1841
cristy3ed852e2009-09-05 21:47:34 +00001842X features:
1843 --x-includes=DIR X include files are in DIR
1844 --x-libraries=DIR X library files are in DIR
1845
1846System types:
1847 --build=BUILD configure for building on BUILD [guessed]
1848 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1849 --target=TARGET configure for building compilers for TARGET [HOST]
1850_ACEOF
1851fi
1852
1853if test -n "$ac_init_help"; then
1854 case $ac_init_help in
cristy29eb34e2011-10-16 00:46:08 +00001855 short | recursive ) echo "Configuration of ImageMagick 7.0.0-0:";;
cristy3ed852e2009-09-05 21:47:34 +00001856 esac
1857 cat <<\_ACEOF
1858
1859Optional Features:
1860 --disable-option-checking ignore unrecognized --enable/--with options
1861 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1862 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristyc0890a62012-07-19 00:18:20 +00001863 --enable-silent-rules less verbose build output (undo: "make V=1")
1864 --disable-silent-rules verbose build output (undo: "make V=0")
1865 --enable-dependency-tracking
1866 do not reject slow dependency extractors
1867 --disable-dependency-tracking
1868 speeds up one-time build
cristy9b86f202012-11-28 21:55:35 +00001869 --enable-ld-version-script
1870 enable linker version script (default is enabled
1871 when possible)
cristya3824692012-03-30 17:22:07 +00001872 --enable-bounds-checking
1873 enable run-time bounds-checking
cristy3ed852e2009-09-05 21:47:34 +00001874 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001875 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001876 --disable-openmp do not use OpenMP
cristy48794642012-09-02 15:19:08 +00001877 --enable-opencl enable OpenCL support
cristy3ed852e2009-09-05 21:47:34 +00001878 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001879 --enable-shared[=PKGS] build shared libraries [default=yes]
1880 --enable-static[=PKGS] build static libraries [default=yes]
1881 --enable-fast-install[=PKGS]
1882 optimize for fast installation [default=yes]
1883 --disable-libtool-lock avoid locking (might break parallel builds)
cristy3ed852e2009-09-05 21:47:34 +00001884 --enable-delegate-build look for delegate libraries in build directory
1885 --disable-deprecated exclude deprecated methods in MagickCore and
cristy3a75f062012-09-08 23:29:40 +00001886 MagickWand APIs
cristy3ed852e2009-09-05 21:47:34 +00001887 --disable-installed Formally install ImageMagick under PREFIX
1888 --disable-cipher disable enciphering and deciphering image pixels
cristy6e3607c2011-09-13 13:59:17 +00001889 --enable-zero-configuration
1890 enable self-contained, embeddable,
cristy3ed852e2009-09-05 21:47:34 +00001891 zero-configuration ImageMagick
cristyf314dbd2012-11-15 13:35:28 +00001892 --enable-hdri accurately represent the wide range of intensity
cristy3ed852e2009-09-05 21:47:34 +00001893 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001894 --disable-assert disable assert() statements in build
cristyc0890a62012-07-19 00:18:20 +00001895 --enable-maintainer-mode
1896 enable make rules and dependencies not useful (and
1897 sometimes confusing) to the casual installer
cristy944e51f2013-04-16 18:45:02 +00001898 --enable-hugepages enable 'huge pages' support
cristy3ed852e2009-09-05 21:47:34 +00001899 --enable-ccmalloc enable 'ccmalloc' memory debug support
1900 --enable-efence enable 'efence' memory debug support
1901 --enable-prof enable 'prof' profiling support
1902 --enable-gprof enable 'gprof' profiling support
1903 --enable-gcov enable 'gcov' profiling support
cristy71d8c202012-03-20 17:05:01 +00001904 --enable-legacy-support install legacy command-line utilities (default disabled)
cristya0b81c32010-01-22 02:54:33 +00001905 --disable-assert turn off assertions
cristydd17feb2014-03-05 02:06:32 +00001906 --disable-docs disable building of documentation
cristy3ed852e2009-09-05 21:47:34 +00001907
1908Optional Packages:
1909 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1910 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001911 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cristy7247bba2012-02-05 16:37:27 +00001912 --with-dmalloc use dmalloc, as in http://www.dmalloc.com
cristya0459972013-11-03 18:09:35 +00001913 --with-gcc-arch=<arch> use architecture <arch> for gcc -march/-mtune,
1914 instead of guessing
cristy670aa3c2011-11-03 00:54:00 +00001915 --includearch-dir=DIR ARCH specific include directory
1916 --sharearch-dir=DIR ARCH specific config directory
cristy2ec87cc2013-02-18 17:46:50 +00001917 --with-pkgconfigdir=DIR Path to the pkgconfig directory [LIBDIR/pkgconfig]
cristy3ed852e2009-09-05 21:47:34 +00001918 --without-threads disable threads support
cristy99bd5232011-12-07 14:38:20 +00001919 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
cristy73bd4a52010-10-05 11:24:23 +00001920 both]
cristyda16f162011-02-19 23:52:17 +00001921 --with-sysroot=DIR Search for dependent libraries within DIR
1922 (or the compiler's sysroot if not specified).
cristy3ed852e2009-09-05 21:47:34 +00001923 --with-modules enable building dynamically loadable modules
1924 --with-method-prefix=PREFIX
1925 prefix MagickCore API methods
1926 --with-quantum-depth=DEPTH
1927 number of bits in a pixel quantum (default 16)
1928 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1929 memory)
1930 --with-frozenpaths freeze delegate paths
1931 --without-magick-plus-plus
1932 disable build/install of Magick++
cristy3a75f062012-09-08 23:29:40 +00001933 --with-package-release-name=NAME
1934 encode this name into the shared library
cristy3ed852e2009-09-05 21:47:34 +00001935 --with-perl enable build/install of PerlMagick
1936 --with-perl-options=OPTIONS
1937 options to pass on command-line when generating
cristyfc3d0222012-02-07 15:05:57 +00001938 PerlMagick build file
cristy3ed852e2009-09-05 21:47:34 +00001939 --with-umem enable umem memory allocation library support
1940 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
cristy12ac8192014-11-04 13:59:13 +00001941 --with-jemalloc-prefix=PREFIX
1942 Specify the jemalloc prefix [default=""]
1943 --with-jemalloc=DIR use a specific jemalloc library
cristy3ed852e2009-09-05 21:47:34 +00001944 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001945 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001946 --without-zlib disable ZLIB support
1947 --with-autotrace enable autotrace support
1948 --without-dps disable Display Postscript support
cristy430a7312010-01-21 20:44:04 +00001949 --with-dejavu-font-dir=DIR
1950 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001951 --without-fftw disable FFTW support
1952 --without-fpx disable FlashPIX support
cristy853d9902014-08-21 18:50:43 +00001953 --without-djvu disable DjVu support
cristy3ed852e2009-09-05 21:47:34 +00001954 --without-fontconfig disable fontconfig support
cristy81beccd2011-10-03 18:17:24 +00001955 --without-freetype disable Freetype support
cristybdabdd62013-03-04 17:43:36 +00001956 --with-gslib enable Ghostscript library support
cristy3ed852e2009-09-05 21:47:34 +00001957 --with-fontpath=DIR prepend to default font search path
1958 --with-gs-font-dir=DIR Ghostscript font directory
cristybdabdd62013-03-04 17:43:36 +00001959 --with-gvc enable GVC support
cristy3ed852e2009-09-05 21:47:34 +00001960 --without-jbig disable JBIG support
1961 --without-jpeg disable JPEG support
cristy71203402010-06-18 13:12:03 +00001962 --without-lcms disable lcms (v1.1X) support
1963 --without-lcms2 disable lcms (v2.X) support
cristy99db3872014-01-01 15:11:34 +00001964 --without-openjp2 disable OpenJP2 support
cristyf0c78232010-03-15 12:53:40 +00001965 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00001966 --without-lzma disable LZMA support
cristy3ed852e2009-09-05 21:47:34 +00001967 --without-openexr disable OpenEXR support
cristy41cbe8a2011-10-27 01:35:18 +00001968 --without-pango disable PANGO support
cristy3ed852e2009-09-05 21:47:34 +00001969 --without-png disable PNG support
cristy51633f52013-04-23 14:03:19 +00001970 --with-rsvg enable RSVG support
cristy3ed852e2009-09-05 21:47:34 +00001971 --without-tiff disable TIFF support
cristyb1860752011-03-14 00:27:46 +00001972 --without-webp disable WEBP support
cristy3ed852e2009-09-05 21:47:34 +00001973 --with-windows-font-dir=DIR
1974 directory containing MS-Windows fonts
cristyde3fc5d2012-02-12 15:40:47 +00001975 --with-wmf enable WMF support
cristy3ed852e2009-09-05 21:47:34 +00001976 --without-xml disable XML support
1977
1978Some influential environment variables:
1979 CC C compiler command
1980 CFLAGS C compiler flags
1981 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1982 nonstandard directory <lib dir>
1983 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001984 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001985 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001986 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001987 CXX C++ compiler command
1988 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00001989 PKG_CONFIG path to pkg-config utility
nicolas6237c462010-10-05 06:11:49 +00001990 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00001991 XMKMF Path to xmkmf, Makefile generator for X Window System
1992 AUTOTRACE_CFLAGS
1993 C compiler flags for AUTOTRACE, overriding pkg-config
1994 AUTOTRACE_LIBS
1995 linker flags for AUTOTRACE, overriding pkg-config
1996 FONTCONFIG_CFLAGS
1997 C compiler flags for FONTCONFIG, overriding pkg-config
1998 FONTCONFIG_LIBS
1999 linker flags for FONTCONFIG, overriding pkg-config
cristy03f187e2013-01-24 00:22:19 +00002000 FREETYPE_CFLAGS
2001 C compiler flags for FREETYPE, overriding pkg-config
2002 FREETYPE_LIBS
2003 linker flags for FREETYPE, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002004 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
2005 GVC_LIBS linker flags for GVC, overriding pkg-config
cristy99db3872014-01-01 15:11:34 +00002006 LIBOPENJP2_CFLAGS
2007 C compiler flags for LIBOPENJP2, overriding pkg-config
2008 LIBOPENJP2_LIBS
2009 linker flags for LIBOPENJP2, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002010 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
2011 LQR_LIBS linker flags for LQR, overriding pkg-config
cristyb94e5002011-11-14 13:20:10 +00002012 LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config
2013 LZMA_LIBS linker flags for LZMA, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002014 OPENEXR_CFLAGS
2015 C compiler flags for OPENEXR, overriding pkg-config
2016 OPENEXR_LIBS
2017 linker flags for OPENEXR, overriding pkg-config
cristy41cbe8a2011-10-27 01:35:18 +00002018 PANGO_CFLAGS
2019 C compiler flags for PANGO, overriding pkg-config
2020 PANGO_LIBS linker flags for PANGO, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002021 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
2022 RSVG_LIBS linker flags for RSVG, overriding pkg-config
2023 CAIRO_SVG_CFLAGS
2024 C compiler flags for CAIRO_SVG, overriding pkg-config
2025 CAIRO_SVG_LIBS
2026 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00002027
2028Use these variables to override the choices made by `configure' or to help
2029it to find libraries and programs with nonstandard names/locations.
2030
2031Report bugs to <http://www.imagemagick.org>.
2032_ACEOF
2033ac_status=$?
2034fi
2035
2036if test "$ac_init_help" = "recursive"; then
2037 # If there are subdirs, report their specific --help.
2038 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2039 test -d "$ac_dir" ||
2040 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2041 continue
2042 ac_builddir=.
2043
2044case "$ac_dir" in
2045.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2046*)
2047 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2048 # A ".." for each directory in $ac_dir_suffix.
2049 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2050 case $ac_top_builddir_sub in
2051 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2052 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2053 esac ;;
2054esac
2055ac_abs_top_builddir=$ac_pwd
2056ac_abs_builddir=$ac_pwd$ac_dir_suffix
2057# for backward compatibility:
2058ac_top_builddir=$ac_top_build_prefix
2059
2060case $srcdir in
2061 .) # We are building in place.
2062 ac_srcdir=.
2063 ac_top_srcdir=$ac_top_builddir_sub
2064 ac_abs_top_srcdir=$ac_pwd ;;
2065 [\\/]* | ?:[\\/]* ) # Absolute name.
2066 ac_srcdir=$srcdir$ac_dir_suffix;
2067 ac_top_srcdir=$srcdir
2068 ac_abs_top_srcdir=$srcdir ;;
2069 *) # Relative name.
2070 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2071 ac_top_srcdir=$ac_top_build_prefix$srcdir
2072 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2073esac
2074ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2075
2076 cd "$ac_dir" || { ac_status=$?; continue; }
2077 # Check for guested configure.
2078 if test -f "$ac_srcdir/configure.gnu"; then
2079 echo &&
2080 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2081 elif test -f "$ac_srcdir/configure"; then
2082 echo &&
2083 $SHELL "$ac_srcdir/configure" --help=recursive
2084 else
2085 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2086 fi || ac_status=$?
2087 cd "$ac_pwd" || { ac_status=$?; break; }
2088 done
2089fi
2090
2091test -n "$ac_init_help" && exit $ac_status
2092if $ac_init_version; then
2093 cat <<\_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00002094ImageMagick configure 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +00002095generated by GNU Autoconf 2.69
cristy3ed852e2009-09-05 21:47:34 +00002096
cristy14fefe52012-05-21 00:59:18 +00002097Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002098This configure script is free software; the Free Software Foundation
2099gives unlimited permission to copy, distribute and modify it.
2100_ACEOF
2101 exit
2102fi
cristy8b350f62009-11-15 23:12:43 +00002103
2104## ------------------------ ##
2105## Autoconf initialization. ##
2106## ------------------------ ##
2107
2108# ac_fn_c_try_compile LINENO
2109# --------------------------
2110# Try to compile conftest.$ac_ext, and return whether this succeeded.
2111ac_fn_c_try_compile ()
2112{
2113 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2114 rm -f conftest.$ac_objext
2115 if { { ac_try="$ac_compile"
2116case "(($ac_try" in
2117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2118 *) ac_try_echo=$ac_try;;
2119esac
2120eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2121$as_echo "$ac_try_echo"; } >&5
2122 (eval "$ac_compile") 2>conftest.err
2123 ac_status=$?
2124 if test -s conftest.err; then
2125 grep -v '^ *+' conftest.err >conftest.er1
2126 cat conftest.er1 >&5
2127 mv -f conftest.er1 conftest.err
2128 fi
2129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2130 test $ac_status = 0; } && {
2131 test -z "$ac_c_werror_flag" ||
2132 test ! -s conftest.err
2133 } && test -s conftest.$ac_objext; then :
2134 ac_retval=0
2135else
2136 $as_echo "$as_me: failed program was:" >&5
2137sed 's/^/| /' conftest.$ac_ext >&5
2138
2139 ac_retval=1
2140fi
cristyda16f162011-02-19 23:52:17 +00002141 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002142 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002143
2144} # ac_fn_c_try_compile
2145
cristy95646052009-11-28 23:05:30 +00002146# ac_fn_c_try_cpp LINENO
2147# ----------------------
2148# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2149ac_fn_c_try_cpp ()
2150{
2151 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2152 if { { ac_try="$ac_cpp conftest.$ac_ext"
2153case "(($ac_try" in
2154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2155 *) ac_try_echo=$ac_try;;
2156esac
2157eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2158$as_echo "$ac_try_echo"; } >&5
2159 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2160 ac_status=$?
2161 if test -s conftest.err; then
2162 grep -v '^ *+' conftest.err >conftest.er1
2163 cat conftest.er1 >&5
2164 mv -f conftest.er1 conftest.err
2165 fi
2166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002167 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002168 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2169 test ! -s conftest.err
2170 }; then :
2171 ac_retval=0
2172else
2173 $as_echo "$as_me: failed program was:" >&5
2174sed 's/^/| /' conftest.$ac_ext >&5
2175
2176 ac_retval=1
2177fi
cristyda16f162011-02-19 23:52:17 +00002178 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002179 as_fn_set_status $ac_retval
2180
2181} # ac_fn_c_try_cpp
2182
cristy8b350f62009-11-15 23:12:43 +00002183# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2184# -------------------------------------------------------
2185# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2186# the include files in INCLUDES and setting the cache variable VAR
2187# accordingly.
2188ac_fn_c_check_header_mongrel ()
2189{
2190 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002191 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2193$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002194if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002195 $as_echo_n "(cached) " >&6
2196fi
2197eval ac_res=\$$3
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2199$as_echo "$ac_res" >&6; }
2200else
2201 # Is the header compilable?
2202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2203$as_echo_n "checking $2 usability... " >&6; }
2204cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2205/* end confdefs.h. */
2206$4
2207#include <$2>
2208_ACEOF
2209if ac_fn_c_try_compile "$LINENO"; then :
2210 ac_header_compiler=yes
2211else
2212 ac_header_compiler=no
2213fi
2214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2216$as_echo "$ac_header_compiler" >&6; }
2217
2218# Is the header present?
2219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2220$as_echo_n "checking $2 presence... " >&6; }
2221cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2222/* end confdefs.h. */
2223#include <$2>
2224_ACEOF
2225if ac_fn_c_try_cpp "$LINENO"; then :
2226 ac_header_preproc=yes
2227else
2228 ac_header_preproc=no
2229fi
cristyda16f162011-02-19 23:52:17 +00002230rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2232$as_echo "$ac_header_preproc" >&6; }
2233
2234# So? What about this header?
2235case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2236 yes:no: )
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2238$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2240$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2241 ;;
2242 no:yes:* )
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2244$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2246$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2248$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2250$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2252$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002253( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002254## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002255## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002256 ) | sed "s/^/$as_me: WARNING: /" >&2
2257 ;;
2258esac
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2260$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002261if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002262 $as_echo_n "(cached) " >&6
2263else
2264 eval "$3=\$ac_header_compiler"
2265fi
2266eval ac_res=\$$3
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2268$as_echo "$ac_res" >&6; }
2269fi
cristyda16f162011-02-19 23:52:17 +00002270 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002271
2272} # ac_fn_c_check_header_mongrel
2273
2274# ac_fn_c_try_run LINENO
2275# ----------------------
2276# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2277# that executables *can* be run.
2278ac_fn_c_try_run ()
2279{
2280 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2281 if { { ac_try="$ac_link"
2282case "(($ac_try" in
2283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2284 *) ac_try_echo=$ac_try;;
2285esac
2286eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2287$as_echo "$ac_try_echo"; } >&5
2288 (eval "$ac_link") 2>&5
2289 ac_status=$?
2290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2291 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2292 { { case "(($ac_try" in
2293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2294 *) ac_try_echo=$ac_try;;
2295esac
2296eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2297$as_echo "$ac_try_echo"; } >&5
2298 (eval "$ac_try") 2>&5
2299 ac_status=$?
2300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2301 test $ac_status = 0; }; }; then :
2302 ac_retval=0
2303else
2304 $as_echo "$as_me: program exited with status $ac_status" >&5
2305 $as_echo "$as_me: failed program was:" >&5
2306sed 's/^/| /' conftest.$ac_ext >&5
2307
2308 ac_retval=$ac_status
2309fi
2310 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002311 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002312 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002313
2314} # ac_fn_c_try_run
2315
2316# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2317# -------------------------------------------------------
2318# Tests whether HEADER exists and can be compiled using the include files in
2319# INCLUDES, setting the cache variable VAR accordingly.
2320ac_fn_c_check_header_compile ()
2321{
2322 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2324$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002325if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002326 $as_echo_n "(cached) " >&6
2327else
2328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2329/* end confdefs.h. */
2330$4
2331#include <$2>
2332_ACEOF
2333if ac_fn_c_try_compile "$LINENO"; then :
2334 eval "$3=yes"
2335else
2336 eval "$3=no"
2337fi
2338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2339fi
2340eval ac_res=\$$3
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2342$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002343 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002344
2345} # ac_fn_c_check_header_compile
2346
cristya0b81c32010-01-22 02:54:33 +00002347# ac_fn_cxx_try_compile LINENO
2348# ----------------------------
2349# Try to compile conftest.$ac_ext, and return whether this succeeded.
2350ac_fn_cxx_try_compile ()
2351{
2352 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2353 rm -f conftest.$ac_objext
2354 if { { ac_try="$ac_compile"
2355case "(($ac_try" in
2356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2357 *) ac_try_echo=$ac_try;;
2358esac
2359eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2360$as_echo "$ac_try_echo"; } >&5
2361 (eval "$ac_compile") 2>conftest.err
2362 ac_status=$?
2363 if test -s conftest.err; then
2364 grep -v '^ *+' conftest.err >conftest.er1
2365 cat conftest.er1 >&5
2366 mv -f conftest.er1 conftest.err
2367 fi
2368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2369 test $ac_status = 0; } && {
2370 test -z "$ac_cxx_werror_flag" ||
2371 test ! -s conftest.err
2372 } && test -s conftest.$ac_objext; then :
2373 ac_retval=0
2374else
2375 $as_echo "$as_me: failed program was:" >&5
2376sed 's/^/| /' conftest.$ac_ext >&5
2377
2378 ac_retval=1
2379fi
cristyda16f162011-02-19 23:52:17 +00002380 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002381 as_fn_set_status $ac_retval
2382
2383} # ac_fn_cxx_try_compile
2384
cristyd95b7a52013-10-23 13:12:53 +00002385# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2386# --------------------------------------------
2387# Tries to find the compile-time value of EXPR in a program that includes
2388# INCLUDES, setting VAR accordingly. Returns whether the value could be
2389# computed
2390ac_fn_c_compute_int ()
2391{
2392 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2393 if test "$cross_compiling" = yes; then
2394 # Depending upon the size, compute the lo and hi bounds.
2395cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2396/* end confdefs.h. */
2397$4
2398int
2399main ()
2400{
2401static int test_array [1 - 2 * !(($2) >= 0)];
2402test_array [0] = 0;
2403return test_array [0];
2404
2405 ;
2406 return 0;
2407}
2408_ACEOF
2409if ac_fn_c_try_compile "$LINENO"; then :
2410 ac_lo=0 ac_mid=0
2411 while :; do
2412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2413/* end confdefs.h. */
2414$4
2415int
2416main ()
2417{
2418static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2419test_array [0] = 0;
2420return test_array [0];
2421
2422 ;
2423 return 0;
2424}
2425_ACEOF
2426if ac_fn_c_try_compile "$LINENO"; then :
2427 ac_hi=$ac_mid; break
2428else
2429 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2430 if test $ac_lo -le $ac_mid; then
2431 ac_lo= ac_hi=
2432 break
2433 fi
2434 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2435fi
2436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2437 done
2438else
2439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2440/* end confdefs.h. */
2441$4
2442int
2443main ()
2444{
2445static int test_array [1 - 2 * !(($2) < 0)];
2446test_array [0] = 0;
2447return test_array [0];
2448
2449 ;
2450 return 0;
2451}
2452_ACEOF
2453if ac_fn_c_try_compile "$LINENO"; then :
2454 ac_hi=-1 ac_mid=-1
2455 while :; do
2456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2457/* end confdefs.h. */
2458$4
2459int
2460main ()
2461{
2462static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2463test_array [0] = 0;
2464return test_array [0];
2465
2466 ;
2467 return 0;
2468}
2469_ACEOF
2470if ac_fn_c_try_compile "$LINENO"; then :
2471 ac_lo=$ac_mid; break
2472else
2473 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2474 if test $ac_mid -le $ac_hi; then
2475 ac_lo= ac_hi=
2476 break
2477 fi
2478 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2479fi
2480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2481 done
2482else
2483 ac_lo= ac_hi=
2484fi
2485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2486fi
2487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2488# Binary search between lo and hi bounds.
2489while test "x$ac_lo" != "x$ac_hi"; do
2490 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2492/* end confdefs.h. */
2493$4
2494int
2495main ()
2496{
2497static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2498test_array [0] = 0;
2499return test_array [0];
2500
2501 ;
2502 return 0;
2503}
2504_ACEOF
2505if ac_fn_c_try_compile "$LINENO"; then :
2506 ac_hi=$ac_mid
2507else
2508 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2509fi
2510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2511done
2512case $ac_lo in #((
2513?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2514'') ac_retval=1 ;;
2515esac
2516 else
2517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2518/* end confdefs.h. */
2519$4
2520static long int longval () { return $2; }
2521static unsigned long int ulongval () { return $2; }
2522#include <stdio.h>
2523#include <stdlib.h>
2524int
2525main ()
2526{
2527
2528 FILE *f = fopen ("conftest.val", "w");
2529 if (! f)
2530 return 1;
2531 if (($2) < 0)
2532 {
2533 long int i = longval ();
2534 if (i != ($2))
2535 return 1;
2536 fprintf (f, "%ld", i);
2537 }
2538 else
2539 {
2540 unsigned long int i = ulongval ();
2541 if (i != ($2))
2542 return 1;
2543 fprintf (f, "%lu", i);
2544 }
2545 /* Do not output a trailing newline, as this causes \r\n confusion
2546 on some platforms. */
2547 return ferror (f) || fclose (f) != 0;
2548
2549 ;
2550 return 0;
2551}
2552_ACEOF
2553if ac_fn_c_try_run "$LINENO"; then :
2554 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2555else
2556 ac_retval=1
2557fi
2558rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2559 conftest.$ac_objext conftest.beam conftest.$ac_ext
2560rm -f conftest.val
2561
2562 fi
2563 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2564 as_fn_set_status $ac_retval
2565
2566} # ac_fn_c_compute_int
2567
cristy8b350f62009-11-15 23:12:43 +00002568# ac_fn_c_try_link LINENO
2569# -----------------------
2570# Try to link conftest.$ac_ext, and return whether this succeeded.
2571ac_fn_c_try_link ()
2572{
2573 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2574 rm -f conftest.$ac_objext conftest$ac_exeext
2575 if { { ac_try="$ac_link"
2576case "(($ac_try" in
2577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2578 *) ac_try_echo=$ac_try;;
2579esac
2580eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2581$as_echo "$ac_try_echo"; } >&5
2582 (eval "$ac_link") 2>conftest.err
2583 ac_status=$?
2584 if test -s conftest.err; then
2585 grep -v '^ *+' conftest.err >conftest.er1
2586 cat conftest.er1 >&5
2587 mv -f conftest.er1 conftest.err
2588 fi
2589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2590 test $ac_status = 0; } && {
2591 test -z "$ac_c_werror_flag" ||
2592 test ! -s conftest.err
2593 } && test -s conftest$ac_exeext && {
2594 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002595 test -x conftest$ac_exeext
cristy8b350f62009-11-15 23:12:43 +00002596 }; then :
2597 ac_retval=0
2598else
2599 $as_echo "$as_me: failed program was:" >&5
2600sed 's/^/| /' conftest.$ac_ext >&5
2601
2602 ac_retval=1
2603fi
2604 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2605 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2606 # interfere with the next link command; also delete a directory that is
2607 # left behind by Apple's compiler. We do this before executing the actions.
2608 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002609 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002610 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002611
2612} # ac_fn_c_try_link
2613
cristy73bd4a52010-10-05 11:24:23 +00002614# ac_fn_c_check_func LINENO FUNC VAR
2615# ----------------------------------
2616# Tests whether FUNC exists, setting the cache variable VAR accordingly
2617ac_fn_c_check_func ()
2618{
2619 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2621$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002622if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002623 $as_echo_n "(cached) " >&6
2624else
2625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2626/* end confdefs.h. */
2627/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2628 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2629#define $2 innocuous_$2
2630
2631/* System header to define __stub macros and hopefully few prototypes,
2632 which can conflict with char $2 (); below.
2633 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2634 <limits.h> exists even on freestanding compilers. */
2635
2636#ifdef __STDC__
2637# include <limits.h>
2638#else
2639# include <assert.h>
2640#endif
2641
2642#undef $2
2643
2644/* Override any GCC internal prototype to avoid an error.
2645 Use char because int might match the return type of a GCC
2646 builtin and then its argument prototype would still apply. */
2647#ifdef __cplusplus
2648extern "C"
2649#endif
2650char $2 ();
2651/* The GNU C library defines this for functions which it implements
2652 to always fail with ENOSYS. Some functions are actually named
2653 something starting with __ and the normal name is an alias. */
2654#if defined __stub_$2 || defined __stub___$2
2655choke me
2656#endif
2657
2658int
2659main ()
2660{
2661return $2 ();
2662 ;
2663 return 0;
2664}
2665_ACEOF
2666if ac_fn_c_try_link "$LINENO"; then :
2667 eval "$3=yes"
2668else
2669 eval "$3=no"
2670fi
2671rm -f core conftest.err conftest.$ac_objext \
2672 conftest$ac_exeext conftest.$ac_ext
2673fi
2674eval ac_res=\$$3
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2676$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002677 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002678
2679} # ac_fn_c_check_func
2680
2681# ac_fn_cxx_try_cpp LINENO
2682# ------------------------
2683# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2684ac_fn_cxx_try_cpp ()
2685{
2686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2687 if { { ac_try="$ac_cpp conftest.$ac_ext"
2688case "(($ac_try" in
2689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2690 *) ac_try_echo=$ac_try;;
2691esac
2692eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2693$as_echo "$ac_try_echo"; } >&5
2694 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2695 ac_status=$?
2696 if test -s conftest.err; then
2697 grep -v '^ *+' conftest.err >conftest.er1
2698 cat conftest.er1 >&5
2699 mv -f conftest.er1 conftest.err
2700 fi
2701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002702 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002703 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2704 test ! -s conftest.err
2705 }; then :
2706 ac_retval=0
2707else
2708 $as_echo "$as_me: failed program was:" >&5
2709sed 's/^/| /' conftest.$ac_ext >&5
2710
2711 ac_retval=1
2712fi
cristyda16f162011-02-19 23:52:17 +00002713 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002714 as_fn_set_status $ac_retval
2715
2716} # ac_fn_cxx_try_cpp
2717
2718# ac_fn_cxx_try_link LINENO
2719# -------------------------
2720# Try to link conftest.$ac_ext, and return whether this succeeded.
2721ac_fn_cxx_try_link ()
2722{
2723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2724 rm -f conftest.$ac_objext conftest$ac_exeext
2725 if { { ac_try="$ac_link"
2726case "(($ac_try" in
2727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2728 *) ac_try_echo=$ac_try;;
2729esac
2730eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2731$as_echo "$ac_try_echo"; } >&5
2732 (eval "$ac_link") 2>conftest.err
2733 ac_status=$?
2734 if test -s conftest.err; then
2735 grep -v '^ *+' conftest.err >conftest.er1
2736 cat conftest.er1 >&5
2737 mv -f conftest.er1 conftest.err
2738 fi
2739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2740 test $ac_status = 0; } && {
2741 test -z "$ac_cxx_werror_flag" ||
2742 test ! -s conftest.err
2743 } && test -s conftest$ac_exeext && {
2744 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002745 test -x conftest$ac_exeext
cristy73bd4a52010-10-05 11:24:23 +00002746 }; then :
2747 ac_retval=0
2748else
2749 $as_echo "$as_me: failed program was:" >&5
2750sed 's/^/| /' conftest.$ac_ext >&5
2751
2752 ac_retval=1
2753fi
2754 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2755 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2756 # interfere with the next link command; also delete a directory that is
2757 # left behind by Apple's compiler. We do this before executing the actions.
2758 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002759 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002760 as_fn_set_status $ac_retval
2761
2762} # ac_fn_cxx_try_link
2763
cristy8b350f62009-11-15 23:12:43 +00002764# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2765# -------------------------------------------
2766# Tests whether TYPE exists after having included INCLUDES, setting cache
2767# variable VAR accordingly.
2768ac_fn_c_check_type ()
2769{
2770 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2772$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002773if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002774 $as_echo_n "(cached) " >&6
2775else
2776 eval "$3=no"
2777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2778/* end confdefs.h. */
2779$4
2780int
2781main ()
2782{
2783if (sizeof ($2))
2784 return 0;
2785 ;
2786 return 0;
2787}
2788_ACEOF
2789if ac_fn_c_try_compile "$LINENO"; then :
2790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2791/* end confdefs.h. */
2792$4
2793int
2794main ()
2795{
2796if (sizeof (($2)))
2797 return 0;
2798 ;
2799 return 0;
2800}
2801_ACEOF
2802if ac_fn_c_try_compile "$LINENO"; then :
2803
2804else
2805 eval "$3=yes"
2806fi
2807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2808fi
2809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2810fi
2811eval ac_res=\$$3
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2813$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002814 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002815
2816} # ac_fn_c_check_type
2817
cristy92703d82010-04-26 00:18:18 +00002818# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2819# ----------------------------------------------------
2820# Tries to find if the field MEMBER exists in type AGGR, after including
2821# INCLUDES, setting cache variable VAR accordingly.
2822ac_fn_c_check_member ()
2823{
2824 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2826$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002827if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002828 $as_echo_n "(cached) " >&6
2829else
2830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2831/* end confdefs.h. */
2832$5
2833int
2834main ()
2835{
2836static $2 ac_aggr;
2837if (ac_aggr.$3)
2838return 0;
2839 ;
2840 return 0;
2841}
2842_ACEOF
2843if ac_fn_c_try_compile "$LINENO"; then :
2844 eval "$4=yes"
2845else
2846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2847/* end confdefs.h. */
2848$5
2849int
2850main ()
2851{
2852static $2 ac_aggr;
2853if (sizeof ac_aggr.$3)
2854return 0;
2855 ;
2856 return 0;
2857}
2858_ACEOF
2859if ac_fn_c_try_compile "$LINENO"; then :
2860 eval "$4=yes"
2861else
2862 eval "$4=no"
2863fi
2864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2865fi
2866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2867fi
2868eval ac_res=\$$4
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2870$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002871 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002872
2873} # ac_fn_c_check_member
2874
cristy5eef09f2012-10-16 12:08:28 +00002875# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2876# ---------------------------------------------
2877# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2878# accordingly.
2879ac_fn_c_check_decl ()
2880{
2881 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2882 as_decl_name=`echo $2|sed 's/ *(.*//'`
2883 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2885$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2886if eval \${$3+:} false; then :
2887 $as_echo_n "(cached) " >&6
2888else
2889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2890/* end confdefs.h. */
2891$4
2892int
2893main ()
2894{
2895#ifndef $as_decl_name
2896#ifdef __cplusplus
2897 (void) $as_decl_use;
2898#else
2899 (void) $as_decl_name;
2900#endif
2901#endif
2902
2903 ;
2904 return 0;
2905}
2906_ACEOF
2907if ac_fn_c_try_compile "$LINENO"; then :
2908 eval "$3=yes"
2909else
2910 eval "$3=no"
2911fi
2912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2913fi
2914eval ac_res=\$$3
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2916$as_echo "$ac_res" >&6; }
2917 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2918
2919} # ac_fn_c_check_decl
2920
cristy501c8042011-05-26 17:46:28 +00002921# ac_fn_c_find_intX_t LINENO BITS VAR
2922# -----------------------------------
2923# Finds a signed integer type with width BITS, setting cache variable VAR
2924# accordingly.
2925ac_fn_c_find_intX_t ()
2926{
2927 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2929$as_echo_n "checking for int$2_t... " >&6; }
2930if eval \${$3+:} false; then :
2931 $as_echo_n "(cached) " >&6
2932else
2933 eval "$3=no"
2934 # Order is important - never check a type that is potentially smaller
2935 # than half of the expected target width.
2936 for ac_type in int$2_t 'int' 'long int' \
2937 'long long int' 'short int' 'signed char'; do
2938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2939/* end confdefs.h. */
2940$ac_includes_default
2941 enum { N = $2 / 2 - 1 };
2942int
2943main ()
2944{
2945static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
cristy14fefe52012-05-21 00:59:18 +00002946test_array [0] = 0;
2947return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002948
2949 ;
2950 return 0;
2951}
2952_ACEOF
2953if ac_fn_c_try_compile "$LINENO"; then :
2954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2955/* end confdefs.h. */
2956$ac_includes_default
2957 enum { N = $2 / 2 - 1 };
2958int
2959main ()
2960{
2961static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2962 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
cristy14fefe52012-05-21 00:59:18 +00002963test_array [0] = 0;
2964return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002965
2966 ;
2967 return 0;
2968}
2969_ACEOF
2970if ac_fn_c_try_compile "$LINENO"; then :
2971
2972else
2973 case $ac_type in #(
2974 int$2_t) :
2975 eval "$3=yes" ;; #(
2976 *) :
2977 eval "$3=\$ac_type" ;;
2978esac
2979fi
2980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2981fi
2982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2983 if eval test \"x\$"$3"\" = x"no"; then :
2984
2985else
2986 break
2987fi
2988 done
2989fi
2990eval ac_res=\$$3
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2992$as_echo "$ac_res" >&6; }
2993 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2994
2995} # ac_fn_c_find_intX_t
2996
2997# ac_fn_c_find_uintX_t LINENO BITS VAR
2998# ------------------------------------
2999# Finds an unsigned integer type with width BITS, setting cache variable VAR
3000# accordingly.
3001ac_fn_c_find_uintX_t ()
3002{
3003 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
3005$as_echo_n "checking for uint$2_t... " >&6; }
3006if eval \${$3+:} false; then :
3007 $as_echo_n "(cached) " >&6
3008else
3009 eval "$3=no"
3010 # Order is important - never check a type that is potentially smaller
3011 # than half of the expected target width.
3012 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
3013 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
3014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3015/* end confdefs.h. */
3016$ac_includes_default
3017int
3018main ()
3019{
3020static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
cristy14fefe52012-05-21 00:59:18 +00003021test_array [0] = 0;
3022return test_array [0];
cristy501c8042011-05-26 17:46:28 +00003023
3024 ;
3025 return 0;
3026}
3027_ACEOF
3028if ac_fn_c_try_compile "$LINENO"; then :
3029 case $ac_type in #(
3030 uint$2_t) :
3031 eval "$3=yes" ;; #(
3032 *) :
3033 eval "$3=\$ac_type" ;;
3034esac
3035fi
3036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3037 if eval test \"x\$"$3"\" = x"no"; then :
3038
3039else
3040 break
3041fi
3042 done
3043fi
3044eval ac_res=\$$3
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3046$as_echo "$ac_res" >&6; }
3047 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3048
3049} # ac_fn_c_find_uintX_t
3050
cristy8b350f62009-11-15 23:12:43 +00003051# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
3052# ---------------------------------------------------------
3053# Tests whether HEADER exists, giving a warning if it cannot be compiled using
3054# the include files in INCLUDES and setting the cache variable VAR
3055# accordingly.
3056ac_fn_cxx_check_header_mongrel ()
3057{
3058 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00003059 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3061$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003062if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003063 $as_echo_n "(cached) " >&6
3064fi
3065eval ac_res=\$$3
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3067$as_echo "$ac_res" >&6; }
3068else
3069 # Is the header compilable?
3070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3071$as_echo_n "checking $2 usability... " >&6; }
3072cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3073/* end confdefs.h. */
3074$4
3075#include <$2>
3076_ACEOF
3077if ac_fn_cxx_try_compile "$LINENO"; then :
3078 ac_header_compiler=yes
3079else
3080 ac_header_compiler=no
3081fi
3082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3084$as_echo "$ac_header_compiler" >&6; }
3085
3086# Is the header present?
3087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3088$as_echo_n "checking $2 presence... " >&6; }
3089cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3090/* end confdefs.h. */
3091#include <$2>
3092_ACEOF
3093if ac_fn_cxx_try_cpp "$LINENO"; then :
3094 ac_header_preproc=yes
3095else
3096 ac_header_preproc=no
3097fi
cristyda16f162011-02-19 23:52:17 +00003098rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00003099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3100$as_echo "$ac_header_preproc" >&6; }
3101
3102# So? What about this header?
3103case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3104 yes:no: )
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3106$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3108$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3109 ;;
3110 no:yes:* )
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3112$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3114$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3116$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3118$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3120$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003121( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00003122## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00003123## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00003124 ) | sed "s/^/$as_me: WARNING: /" >&2
3125 ;;
3126esac
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3128$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003129if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003130 $as_echo_n "(cached) " >&6
3131else
3132 eval "$3=\$ac_header_compiler"
3133fi
3134eval ac_res=\$$3
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3136$as_echo "$ac_res" >&6; }
3137fi
cristyda16f162011-02-19 23:52:17 +00003138 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00003139
3140} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003141cat >config.log <<_ACEOF
3142This file contains any messages produced by compilers while
3143running configure, to aid debugging if configure makes a mistake.
3144
cristy29eb34e2011-10-16 00:46:08 +00003145It was created by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +00003146generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003147
3148 $ $0 $@
3149
3150_ACEOF
3151exec 5>>config.log
3152{
3153cat <<_ASUNAME
3154## --------- ##
3155## Platform. ##
3156## --------- ##
3157
3158hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3159uname -m = `(uname -m) 2>/dev/null || echo unknown`
3160uname -r = `(uname -r) 2>/dev/null || echo unknown`
3161uname -s = `(uname -s) 2>/dev/null || echo unknown`
3162uname -v = `(uname -v) 2>/dev/null || echo unknown`
3163
3164/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3165/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3166
3167/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3168/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3169/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3170/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3171/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3172/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3173/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3174
3175_ASUNAME
3176
3177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3178for as_dir in $PATH
3179do
3180 IFS=$as_save_IFS
3181 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003182 $as_echo "PATH: $as_dir"
3183 done
cristy3ed852e2009-09-05 21:47:34 +00003184IFS=$as_save_IFS
3185
3186} >&5
3187
3188cat >&5 <<_ACEOF
3189
3190
3191## ----------- ##
3192## Core tests. ##
3193## ----------- ##
3194
3195_ACEOF
3196
3197
3198# Keep a trace of the command line.
3199# Strip out --no-create and --no-recursion so they do not pile up.
3200# Strip out --silent because we don't want to record it for future runs.
3201# Also quote any args containing shell meta-characters.
3202# Make two passes to allow for proper duplicate-argument suppression.
3203ac_configure_args=
3204ac_configure_args0=
3205ac_configure_args1=
3206ac_must_keep_next=false
3207for ac_pass in 1 2
3208do
3209 for ac_arg
3210 do
3211 case $ac_arg in
3212 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3213 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3214 | -silent | --silent | --silen | --sile | --sil)
3215 continue ;;
3216 *\'*)
3217 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3218 esac
3219 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003220 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003221 2)
cristy8b350f62009-11-15 23:12:43 +00003222 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003223 if test $ac_must_keep_next = true; then
3224 ac_must_keep_next=false # Got value, back to normal.
3225 else
3226 case $ac_arg in
3227 *=* | --config-cache | -C | -disable-* | --disable-* \
3228 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3229 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3230 | -with-* | --with-* | -without-* | --without-* | --x)
3231 case "$ac_configure_args0 " in
3232 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3233 esac
3234 ;;
3235 -* ) ac_must_keep_next=true ;;
3236 esac
3237 fi
cristy8b350f62009-11-15 23:12:43 +00003238 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003239 ;;
3240 esac
3241 done
3242done
cristy8b350f62009-11-15 23:12:43 +00003243{ ac_configure_args0=; unset ac_configure_args0;}
3244{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003245
3246# When interrupted or exit'd, cleanup temporary files, and complete
3247# config.log. We remove comments because anyway the quotes in there
3248# would cause problems or look ugly.
3249# WARNING: Use '\'' to represent an apostrophe within the trap.
3250# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3251trap 'exit_status=$?
3252 # Save into config.log some information that might help in debugging.
3253 {
3254 echo
3255
cristy98dddb52010-11-04 00:30:15 +00003256 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003257## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003258## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003259 echo
3260 # The following way of writing the cache mishandles newlines in values,
3261(
3262 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3263 eval ac_val=\$$ac_var
3264 case $ac_val in #(
3265 *${as_nl}*)
3266 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003267 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003268$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3269 esac
3270 case $ac_var in #(
3271 _ | IFS | as_nl) ;; #(
3272 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003273 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003274 esac ;;
3275 esac
3276 done
3277 (set) 2>&1 |
3278 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3279 *${as_nl}ac_space=\ *)
3280 sed -n \
3281 "s/'\''/'\''\\\\'\'''\''/g;
3282 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3283 ;; #(
3284 *)
3285 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3286 ;;
3287 esac |
3288 sort
3289)
3290 echo
3291
cristy98dddb52010-11-04 00:30:15 +00003292 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003293## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003294## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003295 echo
3296 for ac_var in $ac_subst_vars
3297 do
3298 eval ac_val=\$$ac_var
3299 case $ac_val in
3300 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3301 esac
3302 $as_echo "$ac_var='\''$ac_val'\''"
3303 done | sort
3304 echo
3305
3306 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003307 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003308## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003309## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003310 echo
3311 for ac_var in $ac_subst_files
3312 do
3313 eval ac_val=\$$ac_var
3314 case $ac_val in
3315 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3316 esac
3317 $as_echo "$ac_var='\''$ac_val'\''"
3318 done | sort
3319 echo
3320 fi
3321
3322 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003323 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003324## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003325## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003326 echo
3327 cat confdefs.h
3328 echo
3329 fi
3330 test "$ac_signal" != 0 &&
3331 $as_echo "$as_me: caught signal $ac_signal"
3332 $as_echo "$as_me: exit $exit_status"
3333 } >&5
3334 rm -f core *.core core.conftest.* &&
3335 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3336 exit $exit_status
3337' 0
3338for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003339 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003340done
3341ac_signal=0
3342
3343# confdefs.h avoids OS command line length limits that DEFS can exceed.
3344rm -f -r conftest* confdefs.h
3345
cristy8b350f62009-11-15 23:12:43 +00003346$as_echo "/* confdefs.h */" > confdefs.h
3347
cristy3ed852e2009-09-05 21:47:34 +00003348# Predefined preprocessor variables.
3349
3350cat >>confdefs.h <<_ACEOF
3351#define PACKAGE_NAME "$PACKAGE_NAME"
3352_ACEOF
3353
cristy3ed852e2009-09-05 21:47:34 +00003354cat >>confdefs.h <<_ACEOF
3355#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3356_ACEOF
3357
cristy3ed852e2009-09-05 21:47:34 +00003358cat >>confdefs.h <<_ACEOF
3359#define PACKAGE_VERSION "$PACKAGE_VERSION"
3360_ACEOF
3361
cristy3ed852e2009-09-05 21:47:34 +00003362cat >>confdefs.h <<_ACEOF
3363#define PACKAGE_STRING "$PACKAGE_STRING"
3364_ACEOF
3365
cristy3ed852e2009-09-05 21:47:34 +00003366cat >>confdefs.h <<_ACEOF
3367#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3368_ACEOF
3369
cristy8b350f62009-11-15 23:12:43 +00003370cat >>confdefs.h <<_ACEOF
3371#define PACKAGE_URL "$PACKAGE_URL"
3372_ACEOF
3373
cristy3ed852e2009-09-05 21:47:34 +00003374
3375# Let the site file select an alternate cache file if it wants to.
3376# Prefer an explicitly selected file to automatically selected ones.
3377ac_site_file1=NONE
3378ac_site_file2=NONE
3379if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003380 # We do not want a PATH search for config.site.
3381 case $CONFIG_SITE in #((
3382 -*) ac_site_file1=./$CONFIG_SITE;;
3383 */*) ac_site_file1=$CONFIG_SITE;;
3384 *) ac_site_file1=./$CONFIG_SITE;;
3385 esac
cristy3ed852e2009-09-05 21:47:34 +00003386elif test "x$prefix" != xNONE; then
3387 ac_site_file1=$prefix/share/config.site
3388 ac_site_file2=$prefix/etc/config.site
3389else
3390 ac_site_file1=$ac_default_prefix/share/config.site
3391 ac_site_file2=$ac_default_prefix/etc/config.site
3392fi
3393for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3394do
3395 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003396 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003397 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003398$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3399 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003400 . "$ac_site_file" \
3401 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3402$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3403as_fn_error $? "failed to load site script $ac_site_file
3404See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003405 fi
3406done
3407
3408if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003409 # Some versions of bash will fail to source /dev/null (special files
3410 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3411 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003412 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003413$as_echo "$as_me: loading cache $cache_file" >&6;}
3414 case $cache_file in
3415 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3416 *) . "./$cache_file";;
3417 esac
3418 fi
3419else
cristy8b350f62009-11-15 23:12:43 +00003420 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003421$as_echo "$as_me: creating cache $cache_file" >&6;}
3422 >$cache_file
3423fi
3424
cristycd4c5312009-11-22 01:19:08 +00003425as_fn_append ac_header_list " stdlib.h"
3426as_fn_append ac_header_list " unistd.h"
3427as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003428# Check that the precious variables saved in the cache have kept the same
3429# value.
3430ac_cache_corrupted=false
3431for ac_var in $ac_precious_vars; do
3432 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3433 eval ac_new_set=\$ac_env_${ac_var}_set
3434 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3435 eval ac_new_val=\$ac_env_${ac_var}_value
3436 case $ac_old_set,$ac_new_set in
3437 set,)
cristy8b350f62009-11-15 23:12:43 +00003438 { $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 +00003439$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3440 ac_cache_corrupted=: ;;
3441 ,set)
cristy8b350f62009-11-15 23:12:43 +00003442 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003443$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3444 ac_cache_corrupted=: ;;
3445 ,);;
3446 *)
3447 if test "x$ac_old_val" != "x$ac_new_val"; then
3448 # differences in whitespace do not lead to failure.
3449 ac_old_val_w=`echo x $ac_old_val`
3450 ac_new_val_w=`echo x $ac_new_val`
3451 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003452 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003453$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3454 ac_cache_corrupted=:
3455 else
cristy8b350f62009-11-15 23:12:43 +00003456 { $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 +00003457$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3458 eval $ac_var=\$ac_old_val
3459 fi
cristy8b350f62009-11-15 23:12:43 +00003460 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003461$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003462 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003463$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3464 fi;;
3465 esac
3466 # Pass precious variables to config.status.
3467 if test "$ac_new_set" = set; then
3468 case $ac_new_val in
3469 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3470 *) ac_arg=$ac_var=$ac_new_val ;;
3471 esac
3472 case " $ac_configure_args " in
3473 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003474 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003475 esac
3476 fi
3477done
3478if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003479 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003480$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003481 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003482$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003483 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003484fi
cristy8b350f62009-11-15 23:12:43 +00003485## -------------------- ##
3486## Main body of script. ##
3487## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003488
3489ac_ext=c
3490ac_cpp='$CPP $CPPFLAGS'
3491ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3492ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3493ac_compiler_gnu=$ac_cv_c_compiler_gnu
3494
3495
3496
3497ac_aux_dir=
3498for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003499 if test -f "$ac_dir/install-sh"; then
3500 ac_aux_dir=$ac_dir
3501 ac_install_sh="$ac_aux_dir/install-sh -c"
3502 break
3503 elif test -f "$ac_dir/install.sh"; then
3504 ac_aux_dir=$ac_dir
3505 ac_install_sh="$ac_aux_dir/install.sh -c"
3506 break
3507 elif test -f "$ac_dir/shtool"; then
3508 ac_aux_dir=$ac_dir
3509 ac_install_sh="$ac_aux_dir/shtool install -c"
3510 break
3511 fi
cristy3ed852e2009-09-05 21:47:34 +00003512done
3513if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003514 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003515fi
3516
3517# These three variables are undocumented and unsupported,
3518# and are intended to be withdrawn in a future Autoconf release.
3519# They can cause serious problems if a builder's source tree is in a directory
3520# whose full name contains unusual characters.
3521ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3522ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3523ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3524
3525
3526
3527
3528ac_config_headers="$ac_config_headers config/config.h"
3529
cristy24fc1fe2010-10-23 21:13:01 +00003530
cristy01ff9f32012-12-01 18:15:29 +00003531ac_config_commands="$ac_config_commands MagickCore/magick-baseconfig.h"
cristy73bd4a52010-10-05 11:24:23 +00003532
cristy8d0ff762013-03-10 20:33:28 +00003533ac_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 +00003534
3535
3536#
3537# Save initial user-tunable values
3538#
3539USER_LIBS=$LIBS
3540for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3541 eval isset=\${$var+set}
3542 if test "$isset" = 'set'; then
3543 eval val=$`echo $var`
3544 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3545 fi
3546done
3547
3548
3549CONFIGURE_ARGS="$0 ${ac_configure_args}"
3550
3551
3552# Source file containing package/library versioning information.
3553. ${srcdir}/version.sh
3554
cristy15a88782010-01-31 23:24:49 +00003555echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003556# Make sure we can run config.sub.
3557$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003558 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003559
cristy8b350f62009-11-15 23:12:43 +00003560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003561$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003562if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003563 $as_echo_n "(cached) " >&6
3564else
3565 ac_build_alias=$build_alias
3566test "x$ac_build_alias" = x &&
3567 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3568test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003569 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003570ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003571 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003572
3573fi
cristy8b350f62009-11-15 23:12:43 +00003574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003575$as_echo "$ac_cv_build" >&6; }
3576case $ac_cv_build in
3577*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003578*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003579esac
3580build=$ac_cv_build
3581ac_save_IFS=$IFS; IFS='-'
3582set x $ac_cv_build
3583shift
3584build_cpu=$1
3585build_vendor=$2
3586shift; shift
3587# Remember, the first character of IFS is used to create $*,
3588# except with old shells:
3589build_os=$*
3590IFS=$ac_save_IFS
3591case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3592
3593
cristy8b350f62009-11-15 23:12:43 +00003594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003595$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003596if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003597 $as_echo_n "(cached) " >&6
3598else
3599 if test "x$host_alias" = x; then
3600 ac_cv_host=$ac_cv_build
3601else
3602 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003603 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003604fi
3605
3606fi
cristy8b350f62009-11-15 23:12:43 +00003607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003608$as_echo "$ac_cv_host" >&6; }
3609case $ac_cv_host in
3610*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003611*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003612esac
3613host=$ac_cv_host
3614ac_save_IFS=$IFS; IFS='-'
3615set x $ac_cv_host
3616shift
3617host_cpu=$1
3618host_vendor=$2
3619shift; shift
3620# Remember, the first character of IFS is used to create $*,
3621# except with old shells:
3622host_os=$*
3623IFS=$ac_save_IFS
3624case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3625
3626
cristy8b350f62009-11-15 23:12:43 +00003627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003628$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003629if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003630 $as_echo_n "(cached) " >&6
3631else
3632 if test "x$target_alias" = x; then
3633 ac_cv_target=$ac_cv_host
3634else
3635 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003636 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003637fi
3638
3639fi
cristy8b350f62009-11-15 23:12:43 +00003640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003641$as_echo "$ac_cv_target" >&6; }
3642case $ac_cv_target in
3643*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003644*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003645esac
3646target=$ac_cv_target
3647ac_save_IFS=$IFS; IFS='-'
3648set x $ac_cv_target
3649shift
3650target_cpu=$1
3651target_vendor=$2
3652shift; shift
3653# Remember, the first character of IFS is used to create $*,
3654# except with old shells:
3655target_os=$*
3656IFS=$ac_save_IFS
3657case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3658
3659
3660# The aliases save the names the user supplied, while $host etc.
3661# will get canonicalized.
3662test -n "$target_alias" &&
3663 test "$program_prefix$program_suffix$program_transform_name" = \
3664 NONENONEs,x,x, &&
3665 program_prefix=${target_alias}-
3666
cristy837d6dc2010-02-27 01:16:57 +00003667
3668
3669
cristy8be34142012-06-17 14:07:18 +00003670
cristy19615b82011-04-13 20:02:01 +00003671MAGICK_TARGET_CPU=$host_cpu
cristy3225a072010-04-17 01:47:28 +00003672
3673
cristy27d53d62012-07-29 23:30:07 +00003674cat >>confdefs.h <<_ACEOF
3675#define MAGICK_TARGET_CPU $MAGICK_TARGET_CPU
3676_ACEOF
3677
3678
cristy19615b82011-04-13 20:02:01 +00003679MAGICK_TARGET_VENDOR=$host_vendor
cristy3225a072010-04-17 01:47:28 +00003680
3681
cristy27d53d62012-07-29 23:30:07 +00003682cat >>confdefs.h <<_ACEOF
3683#define MAGICK_TARGET_VENDOR $MAGICK_TARGET_VENDOR
3684_ACEOF
3685
3686
cristy19615b82011-04-13 20:02:01 +00003687MAGICK_TARGET_OS=$host_os
cristy3225a072010-04-17 01:47:28 +00003688
3689
cristy27d53d62012-07-29 23:30:07 +00003690cat >>confdefs.h <<_ACEOF
3691#define MAGICK_TARGET_OS $MAGICK_TARGET_OS
3692_ACEOF
3693
3694
cristy37442762013-02-10 21:07:23 +00003695
3696# Substitute versioning
3697MAGICK_MAJOR_VERSION=7
3698
3699MAGICK_MINOR_VERSION=0
3700
3701MAGICK_MICRO_VERSION=0
3702
3703MAGICK_PATCHLEVEL_VERSION=0
3704
3705MAGICK_VERSION=7.0.0-0
3706
cristy12ac8192014-11-04 13:59:13 +00003707MAGICK_SVN_REVISION=16921:16931M
cristy37442762013-02-10 21:07:23 +00003708
3709
cristy3ed852e2009-09-05 21:47:34 +00003710# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003711MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3712
3713MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3714
cristy37442762013-02-10 21:07:23 +00003715
cristy5ed9c6e2013-07-14 21:20:31 +00003716MAGICKPP_LIBRARY_CURRENT_MIN=`expr $MAGICKPP_LIBRARY_CURRENT - $MAGICKPP_LIBRARY_AGE`
3717
3718MAGICKPP_LIBRARY_VERSION_INFO=$MAGICKPP_LIBRARY_CURRENT:$MAGICKPP_LIBRARY_REVISION:$MAGICKPP_LIBRARY_AGE
3719
3720
cristyd694ca32011-03-27 21:42:54 +00003721
cristy3ed852e2009-09-05 21:47:34 +00003722# Ensure that make can run correctly
cristy73bd4a52010-10-05 11:24:23 +00003723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3724$as_echo_n "checking whether build environment is sane... " >&6; }
cristy73bd4a52010-10-05 11:24:23 +00003725# Reject unsafe characters in $srcdir or the absolute working directory
3726# name. Accept space and tab only in the latter.
3727am_lf='
3728'
3729case `pwd` in
3730 *[\\\"\#\$\&\'\`$am_lf]*)
cristy98dddb52010-11-04 00:30:15 +00003731 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003732esac
3733case $srcdir in
3734 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristyc0890a62012-07-19 00:18:20 +00003735 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003736esac
cristy3ed852e2009-09-05 21:47:34 +00003737
cristyc0890a62012-07-19 00:18:20 +00003738# Do 'set' in a subshell so we don't clobber the current shell's
cristy73bd4a52010-10-05 11:24:23 +00003739# arguments. Must try -L first in case configure is actually a
3740# symlink; some systems play weird games with the mod time of symlinks
3741# (eg FreeBSD returns the mod time of the symlink's containing
3742# directory).
3743if (
cristyc0890a62012-07-19 00:18:20 +00003744 am_has_slept=no
3745 for am_try in 1 2; do
3746 echo "timestamp, slept: $am_has_slept" > conftest.file
3747 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3748 if test "$*" = "X"; then
3749 # -L didn't work.
3750 set X `ls -t "$srcdir/configure" conftest.file`
3751 fi
3752 if test "$*" != "X $srcdir/configure conftest.file" \
3753 && test "$*" != "X conftest.file $srcdir/configure"; then
cristy73bd4a52010-10-05 11:24:23 +00003754
cristyc0890a62012-07-19 00:18:20 +00003755 # If neither matched, then we have a broken ls. This can happen
3756 # if, for instance, CONFIG_SHELL is bash and it inherits a
3757 # broken ls alias from the environment. This has actually
3758 # happened. Such a system could not be considered "sane".
3759 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3760 alias in your environment" "$LINENO" 5
3761 fi
3762 if test "$2" = conftest.file || test $am_try -eq 2; then
3763 break
3764 fi
3765 # Just in case.
3766 sleep 1
3767 am_has_slept=yes
3768 done
cristy73bd4a52010-10-05 11:24:23 +00003769 test "$2" = conftest.file
3770 )
3771then
3772 # Ok.
3773 :
3774else
cristy98dddb52010-11-04 00:30:15 +00003775 as_fn_error $? "newly created file is older than distributed files!
cristy73bd4a52010-10-05 11:24:23 +00003776Check your system clock" "$LINENO" 5
3777fi
3778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3779$as_echo "yes" >&6; }
cristyc0890a62012-07-19 00:18:20 +00003780# If we didn't sleep, we still need to ensure time stamps of config.status and
3781# generated files are strictly newer.
3782am_sleep_pid=
3783if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3784 ( sleep 1 ) &
3785 am_sleep_pid=$!
3786fi
cristy73bd4a52010-10-05 11:24:23 +00003787
cristyc0890a62012-07-19 00:18:20 +00003788rm -f conftest.file
3789
3790
cristya5bda012013-11-03 18:05:38 +00003791am__api_version='1.14'
cristy73bd4a52010-10-05 11:24:23 +00003792
3793# Find a good install program. We prefer a C program (faster),
3794# so one script is as good as another. But avoid the broken or
3795# incompatible versions:
3796# SysV /etc/install, /usr/sbin/install
3797# SunOS /usr/etc/install
3798# IRIX /sbin/install
3799# AIX /bin/install
3800# AmigaOS /C/install, which installs bootblocks on floppy discs
3801# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3802# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3803# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3804# OS/2's system install, which has a completely different semantic
3805# ./install, which can be erroneously created by make from ./install.sh.
3806# Reject install programs that cannot install multiple files.
3807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3808$as_echo_n "checking for a BSD-compatible install... " >&6; }
3809if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003810if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003811 $as_echo_n "(cached) " >&6
3812else
3813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3814for as_dir in $PATH
3815do
3816 IFS=$as_save_IFS
3817 test -z "$as_dir" && as_dir=.
3818 # Account for people who put trailing slashes in PATH elements.
3819case $as_dir/ in #((
3820 ./ | .// | /[cC]/* | \
3821 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3822 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3823 /usr/ucb/* ) ;;
3824 *)
3825 # OSF1 and SCO ODT 3.0 have their own names for install.
3826 # Don't use installbsd from OSF since it installs stuff as root
3827 # by default.
3828 for ac_prog in ginstall scoinst install; do
3829 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003830 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003831 if test $ac_prog = install &&
3832 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3833 # AIX install. It has an incompatible calling convention.
3834 :
3835 elif test $ac_prog = install &&
3836 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3837 # program-specific install script used by HP pwplus--don't use.
3838 :
3839 else
3840 rm -rf conftest.one conftest.two conftest.dir
3841 echo one > conftest.one
3842 echo two > conftest.two
3843 mkdir conftest.dir
3844 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3845 test -s conftest.one && test -s conftest.two &&
3846 test -s conftest.dir/conftest.one &&
3847 test -s conftest.dir/conftest.two
3848 then
3849 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3850 break 3
3851 fi
3852 fi
3853 fi
3854 done
3855 done
3856 ;;
3857esac
3858
3859 done
3860IFS=$as_save_IFS
3861
3862rm -rf conftest.one conftest.two conftest.dir
3863
3864fi
3865 if test "${ac_cv_path_install+set}" = set; then
3866 INSTALL=$ac_cv_path_install
3867 else
3868 # As a last resort, use the slow shell script. Don't cache a
3869 # value for INSTALL within a source directory, because that will
3870 # break other packages using the cache if that directory is
3871 # removed, or if the value is a relative name.
3872 INSTALL=$ac_install_sh
3873 fi
3874fi
3875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3876$as_echo "$INSTALL" >&6; }
3877
3878# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3879# It thinks the first close brace ends the variable substitution.
3880test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3881
3882test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3883
3884test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3885
3886test "$program_prefix" != NONE &&
3887 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3888# Use a double $ so make ignores it.
3889test "$program_suffix" != NONE &&
3890 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3891# Double any \ or $.
3892# By default was `s,x,x', remove it if useless.
3893ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3894program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3895
3896# expand $ac_aux_dir to an absolute path
3897am_aux_dir=`cd $ac_aux_dir && pwd`
3898
3899if test x"${MISSING+set}" != xset; then
3900 case $am_aux_dir in
3901 *\ * | *\ *)
3902 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3903 *)
3904 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3905 esac
3906fi
3907# Use eval to expand $SHELL
cristy58d34aa2013-01-24 15:11:54 +00003908if eval "$MISSING --is-lightweight"; then
3909 am_missing_run="$MISSING "
cristy73bd4a52010-10-05 11:24:23 +00003910else
3911 am_missing_run=
cristyc0890a62012-07-19 00:18:20 +00003912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3913$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
cristy73bd4a52010-10-05 11:24:23 +00003914fi
3915
3916if test x"${install_sh}" != xset; then
3917 case $am_aux_dir in
3918 *\ * | *\ *)
3919 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3920 *)
3921 install_sh="\${SHELL} $am_aux_dir/install-sh"
3922 esac
3923fi
3924
cristyc0890a62012-07-19 00:18:20 +00003925# Installed binaries are usually stripped using 'strip' when the user
3926# run "make install-strip". However 'strip' might not be the right
cristy73bd4a52010-10-05 11:24:23 +00003927# tool to use in cross-compilation environments, therefore Automake
cristyc0890a62012-07-19 00:18:20 +00003928# will honor the 'STRIP' environment variable to overrule this program.
cristy73bd4a52010-10-05 11:24:23 +00003929if test "$cross_compiling" != no; then
3930 if test -n "$ac_tool_prefix"; then
3931 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3932set dummy ${ac_tool_prefix}strip; ac_word=$2
3933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3934$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003935if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003936 $as_echo_n "(cached) " >&6
3937else
3938 if test -n "$STRIP"; then
3939 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3940else
3941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3942for as_dir in $PATH
3943do
3944 IFS=$as_save_IFS
3945 test -z "$as_dir" && as_dir=.
3946 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003948 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3950 break 2
3951 fi
3952done
3953 done
3954IFS=$as_save_IFS
3955
3956fi
3957fi
3958STRIP=$ac_cv_prog_STRIP
3959if test -n "$STRIP"; then
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3961$as_echo "$STRIP" >&6; }
3962else
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3964$as_echo "no" >&6; }
3965fi
3966
3967
3968fi
3969if test -z "$ac_cv_prog_STRIP"; then
3970 ac_ct_STRIP=$STRIP
3971 # Extract the first word of "strip", so it can be a program name with args.
3972set dummy strip; ac_word=$2
3973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3974$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003975if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003976 $as_echo_n "(cached) " >&6
3977else
3978 if test -n "$ac_ct_STRIP"; then
3979 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3980else
3981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3982for as_dir in $PATH
3983do
3984 IFS=$as_save_IFS
3985 test -z "$as_dir" && as_dir=.
3986 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003988 ac_cv_prog_ac_ct_STRIP="strip"
3989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3990 break 2
3991 fi
3992done
3993 done
3994IFS=$as_save_IFS
3995
3996fi
3997fi
3998ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3999if test -n "$ac_ct_STRIP"; then
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4001$as_echo "$ac_ct_STRIP" >&6; }
4002else
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4004$as_echo "no" >&6; }
4005fi
4006
4007 if test "x$ac_ct_STRIP" = x; then
4008 STRIP=":"
4009 else
4010 case $cross_compiling:$ac_tool_warned in
4011yes:)
4012{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4013$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4014ac_tool_warned=yes ;;
4015esac
4016 STRIP=$ac_ct_STRIP
4017 fi
4018else
4019 STRIP="$ac_cv_prog_STRIP"
4020fi
4021
4022fi
4023INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4024
4025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4026$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4027if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00004028 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004029 $as_echo_n "(cached) " >&6
4030else
4031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4032for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4033do
4034 IFS=$as_save_IFS
4035 test -z "$as_dir" && as_dir=.
4036 for ac_prog in mkdir gmkdir; do
4037 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004038 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
cristy73bd4a52010-10-05 11:24:23 +00004039 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4040 'mkdir (GNU coreutils) '* | \
4041 'mkdir (coreutils) '* | \
4042 'mkdir (fileutils) '4.1*)
4043 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4044 break 3;;
4045 esac
4046 done
4047 done
4048 done
4049IFS=$as_save_IFS
4050
4051fi
4052
4053 test -d ./--version && rmdir ./--version
4054 if test "${ac_cv_path_mkdir+set}" = set; then
4055 MKDIR_P="$ac_cv_path_mkdir -p"
4056 else
4057 # As a last resort, use the slow shell script. Don't cache a
4058 # value for MKDIR_P within a source directory, because that will
4059 # break other packages using the cache if that directory is
4060 # removed, or if the value is a relative name.
4061 MKDIR_P="$ac_install_sh -d"
4062 fi
4063fi
4064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4065$as_echo "$MKDIR_P" >&6; }
4066
cristy73bd4a52010-10-05 11:24:23 +00004067for ac_prog in gawk mawk nawk awk
4068do
4069 # Extract the first word of "$ac_prog", so it can be a program name with args.
4070set dummy $ac_prog; ac_word=$2
4071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4072$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004073if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004074 $as_echo_n "(cached) " >&6
4075else
4076 if test -n "$AWK"; then
4077 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4078else
4079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4080for as_dir in $PATH
4081do
4082 IFS=$as_save_IFS
4083 test -z "$as_dir" && as_dir=.
4084 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00004086 ac_cv_prog_AWK="$ac_prog"
4087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4088 break 2
4089 fi
4090done
4091 done
4092IFS=$as_save_IFS
4093
4094fi
4095fi
4096AWK=$ac_cv_prog_AWK
4097if test -n "$AWK"; then
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4099$as_echo "$AWK" >&6; }
4100else
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4102$as_echo "no" >&6; }
4103fi
4104
4105
4106 test -n "$AWK" && break
4107done
4108
4109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4110$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4111set x ${MAKE-make}
4112ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00004113if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004114 $as_echo_n "(cached) " >&6
4115else
4116 cat >conftest.make <<\_ACEOF
4117SHELL = /bin/sh
4118all:
4119 @echo '@@@%%%=$(MAKE)=@@@%%%'
4120_ACEOF
cristy98dddb52010-11-04 00:30:15 +00004121# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00004122case `${MAKE-make} -f conftest.make 2>/dev/null` in
4123 *@@@%%%=?*=@@@%%%*)
4124 eval ac_cv_prog_make_${ac_make}_set=yes;;
4125 *)
4126 eval ac_cv_prog_make_${ac_make}_set=no;;
4127esac
4128rm -f conftest.make
4129fi
4130if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4132$as_echo "yes" >&6; }
4133 SET_MAKE=
4134else
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4136$as_echo "no" >&6; }
4137 SET_MAKE="MAKE=${MAKE-make}"
4138fi
4139
4140rm -rf .tst 2>/dev/null
4141mkdir .tst 2>/dev/null
4142if test -d .tst; then
4143 am__leading_dot=.
4144else
4145 am__leading_dot=_
4146fi
4147rmdir .tst 2>/dev/null
4148
cristya448bd22011-10-14 12:38:13 +00004149# Check whether --enable-silent-rules was given.
4150if test "${enable_silent_rules+set}" = set; then :
4151 enableval=$enable_silent_rules;
4152fi
4153
cristyc0890a62012-07-19 00:18:20 +00004154case $enable_silent_rules in # (((
4155 yes) AM_DEFAULT_VERBOSITY=0;;
4156 no) AM_DEFAULT_VERBOSITY=1;;
4157 *) AM_DEFAULT_VERBOSITY=1;;
cristya448bd22011-10-14 12:38:13 +00004158esac
cristyc3fb77b2012-02-06 01:49:41 +00004159am_make=${MAKE-make}
4160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4161$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4162if ${am_cv_make_support_nested_variables+:} false; then :
4163 $as_echo_n "(cached) " >&6
4164else
4165 if $as_echo 'TRUE=$(BAR$(V))
4166BAR0=false
4167BAR1=true
4168V=1
4169am__doit:
4170 @$(TRUE)
4171.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4172 am_cv_make_support_nested_variables=yes
4173else
4174 am_cv_make_support_nested_variables=no
4175fi
4176fi
4177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4178$as_echo "$am_cv_make_support_nested_variables" >&6; }
4179if test $am_cv_make_support_nested_variables = yes; then
4180 AM_V='$(V)'
4181 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4182else
4183 AM_V=$AM_DEFAULT_VERBOSITY
4184 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4185fi
cristya448bd22011-10-14 12:38:13 +00004186AM_BACKSLASH='\'
4187
cristy73bd4a52010-10-05 11:24:23 +00004188if test "`cd $srcdir && pwd`" != "`pwd`"; then
4189 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4190 # is not polluted with repeated "-I."
4191 am__isrc=' -I$(srcdir)'
4192 # test to see if srcdir already configured
4193 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00004194 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00004195 fi
4196fi
4197
4198# test whether we have cygpath
4199if test -z "$CYGPATH_W"; then
4200 if (cygpath --version) >/dev/null 2>/dev/null; then
4201 CYGPATH_W='cygpath -w'
4202 else
4203 CYGPATH_W=echo
4204 fi
4205fi
4206
4207
4208# Define the identity of the package.
cristy09b53e12011-10-14 12:47:22 +00004209 PACKAGE='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +00004210 VERSION='7.0.0-0'
cristy73bd4a52010-10-05 11:24:23 +00004211
4212
cristya448bd22011-10-14 12:38:13 +00004213cat >>confdefs.h <<_ACEOF
4214#define PACKAGE "$PACKAGE"
4215_ACEOF
4216
4217
4218cat >>confdefs.h <<_ACEOF
4219#define VERSION "$VERSION"
4220_ACEOF
4221
cristy73bd4a52010-10-05 11:24:23 +00004222# Some tools Automake needs.
4223
4224ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4225
4226
4227AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4228
4229
4230AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4231
4232
4233AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4234
4235
4236MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4237
cristyc0890a62012-07-19 00:18:20 +00004238# For better backward compatibility. To be removed once Automake 1.9.x
4239# dies out for good. For more background, see:
4240# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4241# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4242mkdir_p='$(MKDIR_P)'
4243
cristy73bd4a52010-10-05 11:24:23 +00004244# We need awk for the "check" target. The system "awk" is bad on
4245# some platforms.
cristyc3fb77b2012-02-06 01:49:41 +00004246# Always define AMTAR for backward compatibility. Yes, it's still used
4247# in the wild :-( We should find a proper way to deprecate it ...
4248AMTAR='$${TAR-tar}'
cristy73bd4a52010-10-05 11:24:23 +00004249
cristye69bdbe2013-05-03 21:40:44 +00004250
4251# We'll loop over all known methods to create a tar archive until one works.
4252_am_tools='gnutar pax cpio none'
4253
cristyc3fb77b2012-02-06 01:49:41 +00004254am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
cristy73bd4a52010-10-05 11:24:23 +00004255
4256
4257
4258
4259
cristy3ed852e2009-09-05 21:47:34 +00004260
cristya5bda012013-11-03 18:05:38 +00004261# POSIX will say in a future version that running "rm -f" with no argument
4262# is OK; and we want to be able to make that assumption in our Makefile
4263# recipes. So use an aggressive probe to check that the usage we want is
4264# actually supported "in the wild" to an acceptable degree.
4265# See automake bug#10828.
4266# To make any issue more visible, cause the running configure to be aborted
4267# by default if the 'rm' program in use doesn't match our expectations; the
4268# user can still override this though.
4269if rm -f && rm -fr && rm -rf; then : OK; else
4270 cat >&2 <<'END'
4271Oops!
4272
4273Your 'rm' program seems unable to run without file operands specified
4274on the command line, even when the '-f' option is present. This is contrary
4275to the behaviour of most rm programs out there, and not conforming with
4276the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4277
4278Please tell bug-automake@gnu.org about your system, including the value
4279of your $PATH and any error possibly output before this message. This
4280can help us improve future automake versions.
4281
4282END
4283 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4284 echo 'Configuration will proceed anyway, since you have set the' >&2
4285 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4286 echo >&2
4287 else
4288 cat >&2 <<'END'
4289Aborting the configuration process, to ensure you take notice of the issue.
4290
4291You can download and install GNU coreutils to get an 'rm' implementation
4292that behaves properly: <http://www.gnu.org/software/coreutils/>.
4293
4294If you want to complete the configuration process using your problematic
4295'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4296to "yes", and re-run configure.
4297
4298END
4299 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4300 fi
4301fi
cristye69bdbe2013-05-03 21:40:44 +00004302
cristy3ed852e2009-09-05 21:47:34 +00004303# Enable support for silent build rules
cristy73bd4a52010-10-05 11:24:23 +00004304# Check whether --enable-silent-rules was given.
4305if test "${enable_silent_rules+set}" = set; then :
4306 enableval=$enable_silent_rules;
4307fi
4308
cristyc0890a62012-07-19 00:18:20 +00004309case $enable_silent_rules in # (((
4310 yes) AM_DEFAULT_VERBOSITY=0;;
4311 no) AM_DEFAULT_VERBOSITY=1;;
4312 *) AM_DEFAULT_VERBOSITY=0;;
cristy73bd4a52010-10-05 11:24:23 +00004313esac
cristyc3fb77b2012-02-06 01:49:41 +00004314am_make=${MAKE-make}
4315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4316$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4317if ${am_cv_make_support_nested_variables+:} false; then :
4318 $as_echo_n "(cached) " >&6
4319else
4320 if $as_echo 'TRUE=$(BAR$(V))
4321BAR0=false
4322BAR1=true
4323V=1
4324am__doit:
4325 @$(TRUE)
4326.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4327 am_cv_make_support_nested_variables=yes
4328else
4329 am_cv_make_support_nested_variables=no
4330fi
4331fi
4332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4333$as_echo "$am_cv_make_support_nested_variables" >&6; }
4334if test $am_cv_make_support_nested_variables = yes; then
4335 AM_V='$(V)'
4336 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4337else
4338 AM_V=$AM_DEFAULT_VERBOSITY
4339 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4340fi
cristy73bd4a52010-10-05 11:24:23 +00004341AM_BACKSLASH='\'
4342
cristy3ed852e2009-09-05 21:47:34 +00004343
cristyf279b692014-08-13 12:01:27 +00004344# versioning of library
cristy3ed852e2009-09-05 21:47:34 +00004345MAGICK_LIB_VERSION="0x"
4346if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4347 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4348fi
4349MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4350if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4351 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4352fi
4353MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4354if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4355 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4356fi
4357MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4358
4359
4360# Definition used to define MagickLibVersionText in version.h
4361MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4362
4363
4364# Definition used to define MagickLibVersionNumber in version.h
4365MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4366
4367
cristy5ed9c6e2013-07-14 21:20:31 +00004368MAGICKPP_LIB_VERSION="0x"
4369if test ${MAGICKPP_LIBRARY_CURRENT} -lt 10 ; then
4370 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4371fi
4372MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_CURRENT}
4373if test ${MAGICKPP_LIBRARY_AGE} -lt 10 ; then
4374 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4375fi
4376MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_AGE}
4377if test ${MAGICKPP_LIBRARY_REVISION} -lt 10 ; then
4378 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4379fi
4380MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_REVISION}
4381
4382
4383# Definition used to define MagickLibVersionText in version.h
4384MAGICKPP_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4385
4386
4387# Definition used to define MagickLibVersionNumber in version.h
4388MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4389
4390
4391
4392
cristy3ed852e2009-09-05 21:47:34 +00004393# Regenerate config.status if ChangeLog or version.sh is updated.
4394CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4395
4396
4397PERLMAINCC=$CC
4398
4399MAGICK_CFLAGS=''
4400MAGICK_CPPFLAGS=$CPPFLAGS_USER
4401MAGICK_PCFLAGS=$CPPFLAGS_USER
4402MAGICK_LDFLAGS=''
4403MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004404MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004405
4406#
4407# Evaluate shell variable equivalents to Makefile directory variables
4408#
4409if test "x$prefix" = xNONE; then
4410 prefix=$ac_default_prefix
4411fi
4412# Let make expand exec_prefix.
4413if test "x$exec_prefix" = xNONE; then
4414 exec_prefix='${prefix}'
4415fi
4416
4417#
4418eval "eval PREFIX_DIR=${prefix}"
4419
4420eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4421
4422eval "eval BIN_DIR=$bindir"
4423
4424eval "eval SBIN_DIR=$sbindir"
4425
4426eval "eval LIBEXEC_DIR=$libexecdir"
4427
4428eval "eval DATA_DIR=$datadir"
4429
cristy4e65ec22012-04-08 01:33:27 +00004430eval "eval DOC_DIR=$datadir/doc"
cristyd55889c2011-03-27 00:50:24 +00004431
cristy3ed852e2009-09-05 21:47:34 +00004432eval "eval SYSCONF_DIR=$sysconfdir"
4433
4434eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4435
4436eval "eval LOCALSTATE_DIR=$localstatedir"
4437
4438eval "eval LIB_DIR=$libdir"
4439
4440eval "eval INCLUDE_DIR=$includedir"
4441
4442eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4443
4444eval "eval INFO_DIR=$infodir"
4445
4446eval "eval MAN_DIR=$mandir"
4447
4448
4449# Get full paths to source and build directories
4450srcdirfull="`cd $srcdir && pwd`"
4451builddir="`pwd`"
4452
4453#
4454# Compute variables useful for running uninstalled software.
4455#
4456MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4457MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4458MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4459MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4460DIRSEP=':'
4461case "${build_os}" in
4462 mingw* )
4463 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4464 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4465 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4466 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4467 DIRSEP=';'
4468 ;;
4469esac
4470case "${host_os}" in
4471 mingw* )
4472 DIRSEP=';'
4473 ;;
4474esac
4475
4476
4477
4478
4479
4480
cristya0b81c32010-01-22 02:54:33 +00004481
4482#
4483# Enable OS features.
4484#
cristy73bd4a52010-10-05 11:24:23 +00004485DEPDIR="${am__leading_dot}deps"
4486
4487ac_config_commands="$ac_config_commands depfiles"
4488
4489
4490am_make=${MAKE-make}
4491cat > confinc << 'END'
4492am__doit:
4493 @echo this is the am__doit target
4494.PHONY: am__doit
4495END
4496# If we don't find an include directive, just comment out the code.
4497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4498$as_echo_n "checking for style of include used by $am_make... " >&6; }
4499am__include="#"
4500am__quote=
4501_am_result=none
4502# First try GNU make style include.
4503echo "include confinc" > confmf
cristyc0890a62012-07-19 00:18:20 +00004504# Ignore all kinds of additional output from 'make'.
cristy73bd4a52010-10-05 11:24:23 +00004505case `$am_make -s -f confmf 2> /dev/null` in #(
4506*the\ am__doit\ target*)
4507 am__include=include
4508 am__quote=
4509 _am_result=GNU
4510 ;;
4511esac
4512# Now try BSD make style include.
4513if test "$am__include" = "#"; then
4514 echo '.include "confinc"' > confmf
4515 case `$am_make -s -f confmf 2> /dev/null` in #(
4516 *the\ am__doit\ target*)
4517 am__include=.include
4518 am__quote="\""
4519 _am_result=BSD
4520 ;;
4521 esac
4522fi
4523
4524
4525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4526$as_echo "$_am_result" >&6; }
4527rm -f confinc confmf
4528
4529# Check whether --enable-dependency-tracking was given.
4530if test "${enable_dependency_tracking+set}" = set; then :
4531 enableval=$enable_dependency_tracking;
4532fi
4533
4534if test "x$enable_dependency_tracking" != xno; then
4535 am_depcomp="$ac_aux_dir/depcomp"
4536 AMDEPBACKSLASH='\'
cristy7247bba2012-02-05 16:37:27 +00004537 am__nodep='_no'
cristy73bd4a52010-10-05 11:24:23 +00004538fi
4539 if test "x$enable_dependency_tracking" != xno; then
4540 AMDEP_TRUE=
4541 AMDEP_FALSE='#'
4542else
4543 AMDEP_TRUE='#'
4544 AMDEP_FALSE=
4545fi
4546
4547
cristy3ed852e2009-09-05 21:47:34 +00004548ac_ext=c
4549ac_cpp='$CPP $CPPFLAGS'
4550ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4551ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4552ac_compiler_gnu=$ac_cv_c_compiler_gnu
4553if test -n "$ac_tool_prefix"; then
4554 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4555set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004557$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004558if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004559 $as_echo_n "(cached) " >&6
4560else
4561 if test -n "$CC"; then
4562 ac_cv_prog_CC="$CC" # Let the user override the test.
4563else
4564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4565for as_dir in $PATH
4566do
4567 IFS=$as_save_IFS
4568 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004569 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004571 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004573 break 2
4574 fi
4575done
cristy8b350f62009-11-15 23:12:43 +00004576 done
cristy3ed852e2009-09-05 21:47:34 +00004577IFS=$as_save_IFS
4578
4579fi
4580fi
4581CC=$ac_cv_prog_CC
4582if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004584$as_echo "$CC" >&6; }
4585else
cristy8b350f62009-11-15 23:12:43 +00004586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004587$as_echo "no" >&6; }
4588fi
4589
4590
4591fi
4592if test -z "$ac_cv_prog_CC"; then
4593 ac_ct_CC=$CC
4594 # Extract the first word of "gcc", so it can be a program name with args.
4595set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004597$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004598if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004599 $as_echo_n "(cached) " >&6
4600else
4601 if test -n "$ac_ct_CC"; then
4602 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4603else
4604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4605for as_dir in $PATH
4606do
4607 IFS=$as_save_IFS
4608 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004609 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004611 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004613 break 2
4614 fi
4615done
cristy8b350f62009-11-15 23:12:43 +00004616 done
cristy3ed852e2009-09-05 21:47:34 +00004617IFS=$as_save_IFS
4618
4619fi
4620fi
4621ac_ct_CC=$ac_cv_prog_ac_ct_CC
4622if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004624$as_echo "$ac_ct_CC" >&6; }
4625else
cristy8b350f62009-11-15 23:12:43 +00004626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004627$as_echo "no" >&6; }
4628fi
4629
4630 if test "x$ac_ct_CC" = x; then
4631 CC=""
4632 else
4633 case $cross_compiling:$ac_tool_warned in
4634yes:)
cristy8b350f62009-11-15 23:12:43 +00004635{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004636$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4637ac_tool_warned=yes ;;
4638esac
4639 CC=$ac_ct_CC
4640 fi
4641else
4642 CC="$ac_cv_prog_CC"
4643fi
4644
4645if test -z "$CC"; then
4646 if test -n "$ac_tool_prefix"; then
4647 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4648set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004650$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004651if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004652 $as_echo_n "(cached) " >&6
4653else
4654 if test -n "$CC"; then
4655 ac_cv_prog_CC="$CC" # Let the user override the test.
4656else
4657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658for as_dir in $PATH
4659do
4660 IFS=$as_save_IFS
4661 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004662 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004664 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004666 break 2
4667 fi
4668done
cristy8b350f62009-11-15 23:12:43 +00004669 done
cristy3ed852e2009-09-05 21:47:34 +00004670IFS=$as_save_IFS
4671
4672fi
4673fi
4674CC=$ac_cv_prog_CC
4675if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004677$as_echo "$CC" >&6; }
4678else
cristy8b350f62009-11-15 23:12:43 +00004679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004680$as_echo "no" >&6; }
4681fi
4682
4683
4684 fi
4685fi
4686if test -z "$CC"; then
4687 # Extract the first word of "cc", so it can be a program name with args.
4688set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004690$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004691if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004692 $as_echo_n "(cached) " >&6
4693else
4694 if test -n "$CC"; then
4695 ac_cv_prog_CC="$CC" # Let the user override the test.
4696else
4697 ac_prog_rejected=no
4698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4699for as_dir in $PATH
4700do
4701 IFS=$as_save_IFS
4702 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004703 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004705 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4706 ac_prog_rejected=yes
4707 continue
4708 fi
4709 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004711 break 2
4712 fi
4713done
cristy8b350f62009-11-15 23:12:43 +00004714 done
cristy3ed852e2009-09-05 21:47:34 +00004715IFS=$as_save_IFS
4716
4717if test $ac_prog_rejected = yes; then
4718 # We found a bogon in the path, so make sure we never use it.
4719 set dummy $ac_cv_prog_CC
4720 shift
4721 if test $# != 0; then
4722 # We chose a different compiler from the bogus one.
4723 # However, it has the same basename, so the bogon will be chosen
4724 # first if we set CC to just the basename; use the full file name.
4725 shift
4726 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4727 fi
4728fi
4729fi
4730fi
4731CC=$ac_cv_prog_CC
4732if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004734$as_echo "$CC" >&6; }
4735else
cristy8b350f62009-11-15 23:12:43 +00004736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004737$as_echo "no" >&6; }
4738fi
4739
4740
4741fi
4742if test -z "$CC"; then
4743 if test -n "$ac_tool_prefix"; then
4744 for ac_prog in cl.exe
4745 do
4746 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4747set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004749$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004750if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004751 $as_echo_n "(cached) " >&6
4752else
4753 if test -n "$CC"; then
4754 ac_cv_prog_CC="$CC" # Let the user override the test.
4755else
4756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4757for as_dir in $PATH
4758do
4759 IFS=$as_save_IFS
4760 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004761 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004763 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004765 break 2
4766 fi
4767done
cristy8b350f62009-11-15 23:12:43 +00004768 done
cristy3ed852e2009-09-05 21:47:34 +00004769IFS=$as_save_IFS
4770
4771fi
4772fi
4773CC=$ac_cv_prog_CC
4774if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004776$as_echo "$CC" >&6; }
4777else
cristy8b350f62009-11-15 23:12:43 +00004778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004779$as_echo "no" >&6; }
4780fi
4781
4782
4783 test -n "$CC" && break
4784 done
4785fi
4786if test -z "$CC"; then
4787 ac_ct_CC=$CC
4788 for ac_prog in cl.exe
4789do
4790 # Extract the first word of "$ac_prog", so it can be a program name with args.
4791set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004793$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004794if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004795 $as_echo_n "(cached) " >&6
4796else
4797 if test -n "$ac_ct_CC"; then
4798 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4799else
4800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4801for as_dir in $PATH
4802do
4803 IFS=$as_save_IFS
4804 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004805 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004807 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004809 break 2
4810 fi
4811done
cristy8b350f62009-11-15 23:12:43 +00004812 done
cristy3ed852e2009-09-05 21:47:34 +00004813IFS=$as_save_IFS
4814
4815fi
4816fi
4817ac_ct_CC=$ac_cv_prog_ac_ct_CC
4818if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004820$as_echo "$ac_ct_CC" >&6; }
4821else
cristy8b350f62009-11-15 23:12:43 +00004822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004823$as_echo "no" >&6; }
4824fi
4825
4826
4827 test -n "$ac_ct_CC" && break
4828done
4829
4830 if test "x$ac_ct_CC" = x; then
4831 CC=""
4832 else
4833 case $cross_compiling:$ac_tool_warned in
4834yes:)
cristy8b350f62009-11-15 23:12:43 +00004835{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004836$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4837ac_tool_warned=yes ;;
4838esac
4839 CC=$ac_ct_CC
4840 fi
4841fi
4842
4843fi
4844
4845
cristy8b350f62009-11-15 23:12:43 +00004846test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004847$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004848as_fn_error $? "no acceptable C compiler found in \$PATH
4849See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004850
4851# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004852$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004853set X $ac_compile
4854ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004855for ac_option in --version -v -V -qversion; do
4856 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004857case "(($ac_try" in
4858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4859 *) ac_try_echo=$ac_try;;
4860esac
cristy8b350f62009-11-15 23:12:43 +00004861eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4862$as_echo "$ac_try_echo"; } >&5
4863 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004864 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004865 if test -s conftest.err; then
4866 sed '10a\
4867... rest of stderr output deleted ...
4868 10q' conftest.err >conftest.er1
4869 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004870 fi
cristycd4c5312009-11-22 01:19:08 +00004871 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4873 test $ac_status = 0; }
4874done
cristy3ed852e2009-09-05 21:47:34 +00004875
cristy8b350f62009-11-15 23:12:43 +00004876cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004877/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004878
cristy3ed852e2009-09-05 21:47:34 +00004879int
4880main ()
4881{
4882
4883 ;
4884 return 0;
4885}
4886_ACEOF
4887ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004888ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004889# Try to create an executable without -o first, disregard a.out.
4890# It will help us diagnose broken compilers, and finding out an intuition
4891# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4893$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004894ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4895
4896# The possible output files:
4897ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4898
4899ac_rmfiles=
4900for ac_file in $ac_files
4901do
4902 case $ac_file in
4903 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4904 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4905 esac
4906done
4907rm -f $ac_rmfiles
4908
cristy8b350f62009-11-15 23:12:43 +00004909if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004910case "(($ac_try" in
4911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4912 *) ac_try_echo=$ac_try;;
4913esac
cristy8b350f62009-11-15 23:12:43 +00004914eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4915$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004916 (eval "$ac_link_default") 2>&5
4917 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4919 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004920 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4921# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4922# in a Makefile. We should not override ac_cv_exeext if it was cached,
4923# so that the user can short-circuit this test for compilers unknown to
4924# Autoconf.
4925for ac_file in $ac_files ''
4926do
4927 test -f "$ac_file" || continue
4928 case $ac_file in
4929 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4930 ;;
4931 [ab].out )
4932 # We found the default executable, but exeext='' is most
4933 # certainly right.
4934 break;;
4935 *.* )
cristy8b350f62009-11-15 23:12:43 +00004936 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004937 then :; else
4938 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4939 fi
4940 # We set ac_cv_exeext here because the later test for it is not
4941 # safe: cross compilers may not add the suffix if given an `-o'
4942 # argument, so we may need to know it at that point already.
4943 # Even if this section looks crufty: it has the advantage of
4944 # actually working.
4945 break;;
4946 * )
4947 break;;
4948 esac
4949done
4950test "$ac_cv_exeext" = no && ac_cv_exeext=
4951
4952else
4953 ac_file=''
4954fi
cristy8b350f62009-11-15 23:12:43 +00004955if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4957$as_echo "no" >&6; }
4958$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004959sed 's/^/| /' conftest.$ac_ext >&5
4960
cristy8b350f62009-11-15 23:12:43 +00004961{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004962$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004963as_fn_error 77 "C compiler cannot create executables
4964See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004965else
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4967$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004968fi
cristycd4c5312009-11-22 01:19:08 +00004969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4970$as_echo_n "checking for C compiler default output file name... " >&6; }
4971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4972$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004973ac_exeext=$ac_cv_exeext
4974
cristycd4c5312009-11-22 01:19:08 +00004975rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004976ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004978$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004979if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004980case "(($ac_try" in
4981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4982 *) ac_try_echo=$ac_try;;
4983esac
cristy8b350f62009-11-15 23:12:43 +00004984eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4985$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004986 (eval "$ac_link") 2>&5
4987 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4989 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004990 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4991# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4992# work properly (i.e., refer to `conftest.exe'), while it won't with
4993# `rm'.
4994for ac_file in conftest.exe conftest conftest.*; do
4995 test -f "$ac_file" || continue
4996 case $ac_file in
4997 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4998 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4999 break;;
5000 * ) break;;
5001 esac
5002done
5003else
cristy8b350f62009-11-15 23:12:43 +00005004 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005005$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005006as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5007See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00005008fi
cristycd4c5312009-11-22 01:19:08 +00005009rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00005010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005011$as_echo "$ac_cv_exeext" >&6; }
5012
5013rm -f conftest.$ac_ext
5014EXEEXT=$ac_cv_exeext
5015ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00005016cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5017/* end confdefs.h. */
5018#include <stdio.h>
5019int
5020main ()
5021{
5022FILE *f = fopen ("conftest.out", "w");
5023 return ferror (f) || fclose (f) != 0;
5024
5025 ;
5026 return 0;
5027}
5028_ACEOF
5029ac_clean_files="$ac_clean_files conftest.out"
5030# Check that the compiler produces executables we can run. If not, either
5031# the compiler is broken, or we cross compile.
5032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5033$as_echo_n "checking whether we are cross compiling... " >&6; }
5034if test "$cross_compiling" != yes; then
5035 { { ac_try="$ac_link"
5036case "(($ac_try" in
5037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5038 *) ac_try_echo=$ac_try;;
5039esac
5040eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5041$as_echo "$ac_try_echo"; } >&5
5042 (eval "$ac_link") 2>&5
5043 ac_status=$?
5044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5045 test $ac_status = 0; }
5046 if { ac_try='./conftest$ac_cv_exeext'
5047 { { case "(($ac_try" in
5048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5049 *) ac_try_echo=$ac_try;;
5050esac
5051eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5052$as_echo "$ac_try_echo"; } >&5
5053 (eval "$ac_try") 2>&5
5054 ac_status=$?
5055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5056 test $ac_status = 0; }; }; then
5057 cross_compiling=no
5058 else
5059 if test "$cross_compiling" = maybe; then
5060 cross_compiling=yes
5061 else
5062 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5063$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005064as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00005065If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00005066See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00005067 fi
5068 fi
5069fi
5070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5071$as_echo "$cross_compiling" >&6; }
5072
5073rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5074ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00005075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00005076$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005077if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005078 $as_echo_n "(cached) " >&6
5079else
cristy8b350f62009-11-15 23:12:43 +00005080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005081/* end confdefs.h. */
5082
5083int
5084main ()
5085{
5086
5087 ;
5088 return 0;
5089}
5090_ACEOF
5091rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00005092if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00005093case "(($ac_try" in
5094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5095 *) ac_try_echo=$ac_try;;
5096esac
cristy8b350f62009-11-15 23:12:43 +00005097eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5098$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00005099 (eval "$ac_compile") 2>&5
5100 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00005101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5102 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00005103 for ac_file in conftest.o conftest.obj conftest.*; do
5104 test -f "$ac_file" || continue;
5105 case $ac_file in
5106 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5107 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5108 break;;
5109 esac
5110done
5111else
5112 $as_echo "$as_me: failed program was:" >&5
5113sed 's/^/| /' conftest.$ac_ext >&5
5114
cristy8b350f62009-11-15 23:12:43 +00005115{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005116$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005117as_fn_error $? "cannot compute suffix of object files: cannot compile
5118See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00005119fi
cristy3ed852e2009-09-05 21:47:34 +00005120rm -f conftest.$ac_cv_objext conftest.$ac_ext
5121fi
cristy8b350f62009-11-15 23:12:43 +00005122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005123$as_echo "$ac_cv_objext" >&6; }
5124OBJEXT=$ac_cv_objext
5125ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00005126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00005127$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005128if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005129 $as_echo_n "(cached) " >&6
5130else
cristy8b350f62009-11-15 23:12:43 +00005131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005132/* end confdefs.h. */
5133
5134int
5135main ()
5136{
5137#ifndef __GNUC__
5138 choke me
5139#endif
5140
5141 ;
5142 return 0;
5143}
5144_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005145if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005146 ac_compiler_gnu=yes
5147else
cristy8b350f62009-11-15 23:12:43 +00005148 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00005149fi
cristy3ed852e2009-09-05 21:47:34 +00005150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5151ac_cv_c_compiler_gnu=$ac_compiler_gnu
5152
5153fi
cristy8b350f62009-11-15 23:12:43 +00005154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00005155$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5156if test $ac_compiler_gnu = yes; then
5157 GCC=yes
5158else
5159 GCC=
5160fi
5161ac_test_CFLAGS=${CFLAGS+set}
5162ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00005163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005164$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005165if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005166 $as_echo_n "(cached) " >&6
5167else
5168 ac_save_c_werror_flag=$ac_c_werror_flag
5169 ac_c_werror_flag=yes
5170 ac_cv_prog_cc_g=no
5171 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005173/* end confdefs.h. */
5174
5175int
5176main ()
5177{
5178
5179 ;
5180 return 0;
5181}
5182_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005183if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005184 ac_cv_prog_cc_g=yes
5185else
cristy8b350f62009-11-15 23:12:43 +00005186 CFLAGS=""
5187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005188/* end confdefs.h. */
5189
5190int
5191main ()
5192{
5193
5194 ;
5195 return 0;
5196}
5197_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005198if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005199
cristy8b350f62009-11-15 23:12:43 +00005200else
5201 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00005202 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005204/* end confdefs.h. */
5205
5206int
5207main ()
5208{
5209
5210 ;
5211 return 0;
5212}
5213_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005214if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005215 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00005216fi
cristy3ed852e2009-09-05 21:47:34 +00005217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5218fi
cristy3ed852e2009-09-05 21:47:34 +00005219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5220fi
cristy3ed852e2009-09-05 21:47:34 +00005221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5222 ac_c_werror_flag=$ac_save_c_werror_flag
5223fi
cristy8b350f62009-11-15 23:12:43 +00005224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005225$as_echo "$ac_cv_prog_cc_g" >&6; }
5226if test "$ac_test_CFLAGS" = set; then
5227 CFLAGS=$ac_save_CFLAGS
5228elif test $ac_cv_prog_cc_g = yes; then
5229 if test "$GCC" = yes; then
5230 CFLAGS="-g -O2"
5231 else
5232 CFLAGS="-g"
5233 fi
5234else
5235 if test "$GCC" = yes; then
5236 CFLAGS="-O2"
5237 else
5238 CFLAGS=
5239 fi
5240fi
cristy8b350f62009-11-15 23:12:43 +00005241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005242$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005243if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005244 $as_echo_n "(cached) " >&6
5245else
5246 ac_cv_prog_cc_c89=no
5247ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005248cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005249/* end confdefs.h. */
5250#include <stdarg.h>
5251#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00005252struct stat;
cristy3ed852e2009-09-05 21:47:34 +00005253/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5254struct buf { int x; };
5255FILE * (*rcsopen) (struct buf *, struct stat *, int);
5256static char *e (p, i)
5257 char **p;
5258 int i;
5259{
5260 return p[i];
5261}
5262static char *f (char * (*g) (char **, int), char **p, ...)
5263{
5264 char *s;
5265 va_list v;
5266 va_start (v,p);
5267 s = g (p, va_arg (v,int));
5268 va_end (v);
5269 return s;
5270}
5271
5272/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5273 function prototypes and stuff, but not '\xHH' hex character constants.
5274 These don't provoke an error unfortunately, instead are silently treated
5275 as 'x'. The following induces an error, until -std is added to get
5276 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5277 array size at least. It's necessary to write '\x00'==0 to get something
5278 that's true only with -std. */
5279int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5280
5281/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5282 inside strings and character constants. */
5283#define FOO(x) 'x'
5284int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5285
5286int test (int i, double x);
5287struct s1 {int (*f) (int a);};
5288struct s2 {int (*f) (double a);};
5289int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5290int argc;
5291char **argv;
5292int
5293main ()
5294{
5295return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5296 ;
5297 return 0;
5298}
5299_ACEOF
5300for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5301 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5302do
5303 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005304 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005305 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005306fi
cristy3ed852e2009-09-05 21:47:34 +00005307rm -f core conftest.err conftest.$ac_objext
5308 test "x$ac_cv_prog_cc_c89" != "xno" && break
5309done
5310rm -f conftest.$ac_ext
5311CC=$ac_save_CC
5312
5313fi
5314# AC_CACHE_VAL
5315case "x$ac_cv_prog_cc_c89" in
5316 x)
cristy8b350f62009-11-15 23:12:43 +00005317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005318$as_echo "none needed" >&6; } ;;
5319 xno)
cristy8b350f62009-11-15 23:12:43 +00005320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005321$as_echo "unsupported" >&6; } ;;
5322 *)
5323 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005325$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5326esac
cristy8b350f62009-11-15 23:12:43 +00005327if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005328
cristy8b350f62009-11-15 23:12:43 +00005329fi
cristy3ed852e2009-09-05 21:47:34 +00005330
5331ac_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
cristy3ed852e2009-09-05 21:47:34 +00005336
cristya5bda012013-11-03 18:05:38 +00005337ac_ext=c
5338ac_cpp='$CPP $CPPFLAGS'
5339ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5340ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5341ac_compiler_gnu=$ac_cv_c_compiler_gnu
5342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5343$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5344if ${am_cv_prog_cc_c_o+:} false; then :
5345 $as_echo_n "(cached) " >&6
5346else
5347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5348/* end confdefs.h. */
5349
5350int
5351main ()
5352{
5353
5354 ;
5355 return 0;
5356}
5357_ACEOF
5358 # Make sure it works both with $CC and with simple cc.
5359 # Following AC_PROG_CC_C_O, we do the test twice because some
5360 # compilers refuse to overwrite an existing .o file with -o,
5361 # though they will create one.
5362 am_cv_prog_cc_c_o=yes
5363 for am_i in 1 2; do
5364 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5365 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5366 ac_status=$?
5367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368 (exit $ac_status); } \
5369 && test -f conftest2.$ac_objext; then
5370 : OK
5371 else
5372 am_cv_prog_cc_c_o=no
5373 break
5374 fi
5375 done
5376 rm -f core conftest*
5377 unset am_i
5378fi
5379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5380$as_echo "$am_cv_prog_cc_c_o" >&6; }
5381if test "$am_cv_prog_cc_c_o" != yes; then
5382 # Losing compiler, so override with the script.
5383 # FIXME: It is wrong to rewrite CC.
5384 # But if we don't then we get into trouble of one sort or another.
5385 # A longer-term fix would be to have automake use am__CC in this case,
5386 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5387 CC="$am_aux_dir/compile $CC"
5388fi
5389ac_ext=c
5390ac_cpp='$CPP $CPPFLAGS'
5391ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5392ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5393ac_compiler_gnu=$ac_cv_c_compiler_gnu
5394
5395
cristy73bd4a52010-10-05 11:24:23 +00005396depcc="$CC" am_compiler_list=
5397
5398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5399$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005400if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00005401 $as_echo_n "(cached) " >&6
5402else
5403 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5404 # We make a subdir and do the tests there. Otherwise we can end up
5405 # making bogus files that we don't know about and never remove. For
5406 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00005407 # making a dummy file named 'D' -- because '-MD' means "put the output
5408 # in D".
cristy7247bba2012-02-05 16:37:27 +00005409 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00005410 mkdir conftest.dir
5411 # Copy depcomp to subdir because otherwise we won't find it if we're
5412 # using a relative directory.
5413 cp "$am_depcomp" conftest.dir
5414 cd conftest.dir
5415 # We will build objects and dependencies in a subdirectory because
5416 # it helps to detect inapplicable dependency modes. For instance
5417 # both Tru64's cc and ICC support -MD to output dependencies as a
5418 # side effect of compilation, but ICC will put the dependencies in
5419 # the current directory while Tru64 will put them in the object
5420 # directory.
5421 mkdir sub
5422
5423 am_cv_CC_dependencies_compiler_type=none
5424 if test "$am_compiler_list" = ""; then
5425 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5426 fi
5427 am__universal=false
5428 case " $depcc " in #(
5429 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5430 esac
5431
5432 for depmode in $am_compiler_list; do
5433 # Setup a source with many dependencies, because some compilers
5434 # like to wrap large dependency lists on column 80 (with \), and
5435 # we should not choose a depcomp mode which is confused by this.
5436 #
5437 # We need to recreate these files for each test, as the compiler may
5438 # overwrite some of them when testing with obscure command lines.
5439 # This happens at least with the AIX C compiler.
5440 : > sub/conftest.c
5441 for i in 1 2 3 4 5 6; do
5442 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00005443 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5444 # Solaris 10 /bin/sh.
5445 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00005446 done
5447 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5448
cristyc0890a62012-07-19 00:18:20 +00005449 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00005450 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00005451 # handle '-M -o', and we need to detect this. Also, some Intel
5452 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00005453 am__obj=sub/conftest.${OBJEXT-o}
5454 am__minus_obj="-o $am__obj"
5455 case $depmode in
5456 gcc)
5457 # This depmode causes a compiler race in universal mode.
5458 test "$am__universal" = false || continue
5459 ;;
5460 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00005461 # After this tag, mechanisms are not by side-effect, so they'll
5462 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00005463 if test "x$enable_dependency_tracking" = xyes; then
5464 continue
5465 else
5466 break
5467 fi
5468 ;;
cristy7247bba2012-02-05 16:37:27 +00005469 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00005470 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00005471 # not run yet. These depmodes are late enough in the game, and
5472 # so weak that their functioning should not be impacted.
5473 am__obj=conftest.${OBJEXT-o}
5474 am__minus_obj=
5475 ;;
5476 none) break ;;
5477 esac
5478 if depmode=$depmode \
5479 source=sub/conftest.c object=$am__obj \
5480 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5481 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5482 >/dev/null 2>conftest.err &&
5483 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5484 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5485 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5486 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5487 # icc doesn't choke on unknown options, it will just issue warnings
5488 # or remarks (even with -Werror). So we grep stderr for any message
5489 # that says an option was ignored or not supported.
5490 # When given -MP, icc 7.0 and 7.1 complain thusly:
5491 # icc: Command line warning: ignoring option '-M'; no argument required
5492 # The diagnosis changed in icc 8.0:
5493 # icc: Command line remark: option '-MP' not supported
5494 if (grep 'ignoring option' conftest.err ||
5495 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5496 am_cv_CC_dependencies_compiler_type=$depmode
5497 break
5498 fi
5499 fi
5500 done
5501
5502 cd ..
5503 rm -rf conftest.dir
5504else
5505 am_cv_CC_dependencies_compiler_type=none
5506fi
5507
5508fi
5509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5510$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5511CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5512
5513 if
5514 test "x$enable_dependency_tracking" != xno \
5515 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5516 am__fastdepCC_TRUE=
5517 am__fastdepCC_FALSE='#'
5518else
5519 am__fastdepCC_TRUE='#'
5520 am__fastdepCC_FALSE=
5521fi
5522
5523
cristy3ed852e2009-09-05 21:47:34 +00005524
cristya0b81c32010-01-22 02:54:33 +00005525ac_ext=c
5526ac_cpp='$CPP $CPPFLAGS'
5527ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5528ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5529ac_compiler_gnu=$ac_cv_c_compiler_gnu
5530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5531$as_echo_n "checking how to run the C preprocessor... " >&6; }
5532# On Suns, sometimes $CPP names a directory.
5533if test -n "$CPP" && test -d "$CPP"; then
5534 CPP=
5535fi
5536if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005537 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005538 $as_echo_n "(cached) " >&6
5539else
5540 # Double quotes because CPP needs to be expanded
5541 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5542 do
5543 ac_preproc_ok=false
5544for ac_c_preproc_warn_flag in '' yes
5545do
5546 # Use a header file that comes with gcc, so configuring glibc
5547 # with a fresh cross-compiler works.
5548 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5549 # <limits.h> exists even on freestanding compilers.
5550 # On the NeXT, cc -E runs the code through the compiler's parser,
5551 # not just through cpp. "Syntax error" is here to catch this case.
5552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5553/* end confdefs.h. */
5554#ifdef __STDC__
5555# include <limits.h>
5556#else
5557# include <assert.h>
5558#endif
5559 Syntax error
5560_ACEOF
5561if ac_fn_c_try_cpp "$LINENO"; then :
5562
5563else
5564 # Broken: fails on valid input.
5565continue
5566fi
cristyda16f162011-02-19 23:52:17 +00005567rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005568
5569 # OK, works on sane cases. Now check whether nonexistent headers
5570 # can be detected and how.
5571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5572/* end confdefs.h. */
5573#include <ac_nonexistent.h>
5574_ACEOF
5575if ac_fn_c_try_cpp "$LINENO"; then :
5576 # Broken: success on invalid input.
5577continue
5578else
5579 # Passes both tests.
5580ac_preproc_ok=:
5581break
5582fi
cristyda16f162011-02-19 23:52:17 +00005583rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005584
5585done
5586# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005587rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005588if $ac_preproc_ok; then :
5589 break
5590fi
5591
5592 done
5593 ac_cv_prog_CPP=$CPP
5594
5595fi
5596 CPP=$ac_cv_prog_CPP
5597else
5598 ac_cv_prog_CPP=$CPP
5599fi
5600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5601$as_echo "$CPP" >&6; }
5602ac_preproc_ok=false
5603for ac_c_preproc_warn_flag in '' yes
5604do
5605 # Use a header file that comes with gcc, so configuring glibc
5606 # with a fresh cross-compiler works.
5607 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5608 # <limits.h> exists even on freestanding compilers.
5609 # On the NeXT, cc -E runs the code through the compiler's parser,
5610 # not just through cpp. "Syntax error" is here to catch this case.
5611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5612/* end confdefs.h. */
5613#ifdef __STDC__
5614# include <limits.h>
5615#else
5616# include <assert.h>
5617#endif
5618 Syntax error
5619_ACEOF
5620if ac_fn_c_try_cpp "$LINENO"; then :
5621
5622else
5623 # Broken: fails on valid input.
5624continue
5625fi
cristyda16f162011-02-19 23:52:17 +00005626rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005627
5628 # OK, works on sane cases. Now check whether nonexistent headers
5629 # can be detected and how.
5630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5631/* end confdefs.h. */
5632#include <ac_nonexistent.h>
5633_ACEOF
5634if ac_fn_c_try_cpp "$LINENO"; then :
5635 # Broken: success on invalid input.
5636continue
5637else
5638 # Passes both tests.
5639ac_preproc_ok=:
5640break
5641fi
cristyda16f162011-02-19 23:52:17 +00005642rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005643
5644done
5645# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005646rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005647if $ac_preproc_ok; then :
5648
5649else
5650 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5651$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005652as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5653See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005654fi
5655
5656ac_ext=c
5657ac_cpp='$CPP $CPPFLAGS'
5658ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5659ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5660ac_compiler_gnu=$ac_cv_c_compiler_gnu
5661
5662
5663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5664$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005665if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005666 $as_echo_n "(cached) " >&6
5667else
5668 if test -z "$GREP"; then
5669 ac_path_GREP_found=false
5670 # Loop through the user's path and test for each of PROGNAME-LIST
5671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5672for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5673do
5674 IFS=$as_save_IFS
5675 test -z "$as_dir" && as_dir=.
5676 for ac_prog in grep ggrep; do
5677 for ac_exec_ext in '' $ac_executable_extensions; do
5678 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005679 as_fn_executable_p "$ac_path_GREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005680# Check for GNU ac_path_GREP and select it if it is found.
5681 # Check for GNU $ac_path_GREP
5682case `"$ac_path_GREP" --version 2>&1` in
5683*GNU*)
5684 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5685*)
5686 ac_count=0
5687 $as_echo_n 0123456789 >"conftest.in"
5688 while :
5689 do
5690 cat "conftest.in" "conftest.in" >"conftest.tmp"
5691 mv "conftest.tmp" "conftest.in"
5692 cp "conftest.in" "conftest.nl"
5693 $as_echo 'GREP' >> "conftest.nl"
5694 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5695 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5696 as_fn_arith $ac_count + 1 && ac_count=$as_val
5697 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5698 # Best one so far, save it but keep looking for a better one
5699 ac_cv_path_GREP="$ac_path_GREP"
5700 ac_path_GREP_max=$ac_count
5701 fi
5702 # 10*(2^10) chars as input seems more than enough
5703 test $ac_count -gt 10 && break
5704 done
5705 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5706esac
5707
5708 $ac_path_GREP_found && break 3
5709 done
5710 done
5711 done
5712IFS=$as_save_IFS
5713 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005714 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005715 fi
5716else
5717 ac_cv_path_GREP=$GREP
5718fi
5719
5720fi
5721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5722$as_echo "$ac_cv_path_GREP" >&6; }
5723 GREP="$ac_cv_path_GREP"
5724
5725
5726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5727$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005728if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005729 $as_echo_n "(cached) " >&6
5730else
5731 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5732 then ac_cv_path_EGREP="$GREP -E"
5733 else
5734 if test -z "$EGREP"; then
5735 ac_path_EGREP_found=false
5736 # Loop through the user's path and test for each of PROGNAME-LIST
5737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5738for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5739do
5740 IFS=$as_save_IFS
5741 test -z "$as_dir" && as_dir=.
5742 for ac_prog in egrep; do
5743 for ac_exec_ext in '' $ac_executable_extensions; do
5744 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005745 as_fn_executable_p "$ac_path_EGREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005746# Check for GNU ac_path_EGREP and select it if it is found.
5747 # Check for GNU $ac_path_EGREP
5748case `"$ac_path_EGREP" --version 2>&1` in
5749*GNU*)
5750 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5751*)
5752 ac_count=0
5753 $as_echo_n 0123456789 >"conftest.in"
5754 while :
5755 do
5756 cat "conftest.in" "conftest.in" >"conftest.tmp"
5757 mv "conftest.tmp" "conftest.in"
5758 cp "conftest.in" "conftest.nl"
5759 $as_echo 'EGREP' >> "conftest.nl"
5760 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5761 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5762 as_fn_arith $ac_count + 1 && ac_count=$as_val
5763 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5764 # Best one so far, save it but keep looking for a better one
5765 ac_cv_path_EGREP="$ac_path_EGREP"
5766 ac_path_EGREP_max=$ac_count
5767 fi
5768 # 10*(2^10) chars as input seems more than enough
5769 test $ac_count -gt 10 && break
5770 done
5771 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5772esac
5773
5774 $ac_path_EGREP_found && break 3
5775 done
5776 done
5777 done
5778IFS=$as_save_IFS
5779 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005780 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005781 fi
5782else
5783 ac_cv_path_EGREP=$EGREP
5784fi
5785
5786 fi
5787fi
5788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5789$as_echo "$ac_cv_path_EGREP" >&6; }
5790 EGREP="$ac_cv_path_EGREP"
5791
5792
5793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5794$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005795if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005796 $as_echo_n "(cached) " >&6
5797else
5798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5799/* end confdefs.h. */
5800#include <stdlib.h>
5801#include <stdarg.h>
5802#include <string.h>
5803#include <float.h>
5804
5805int
5806main ()
5807{
5808
5809 ;
5810 return 0;
5811}
5812_ACEOF
5813if ac_fn_c_try_compile "$LINENO"; then :
5814 ac_cv_header_stdc=yes
5815else
5816 ac_cv_header_stdc=no
5817fi
5818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5819
5820if test $ac_cv_header_stdc = yes; then
5821 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5823/* end confdefs.h. */
5824#include <string.h>
5825
5826_ACEOF
5827if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5828 $EGREP "memchr" >/dev/null 2>&1; then :
5829
5830else
5831 ac_cv_header_stdc=no
5832fi
5833rm -f conftest*
5834
5835fi
5836
5837if test $ac_cv_header_stdc = yes; then
5838 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5840/* end confdefs.h. */
5841#include <stdlib.h>
5842
5843_ACEOF
5844if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5845 $EGREP "free" >/dev/null 2>&1; then :
5846
5847else
5848 ac_cv_header_stdc=no
5849fi
5850rm -f conftest*
5851
5852fi
5853
5854if test $ac_cv_header_stdc = yes; then
5855 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5856 if test "$cross_compiling" = yes; then :
5857 :
5858else
5859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5860/* end confdefs.h. */
5861#include <ctype.h>
5862#include <stdlib.h>
5863#if ((' ' & 0x0FF) == 0x020)
5864# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5865# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5866#else
5867# define ISLOWER(c) \
5868 (('a' <= (c) && (c) <= 'i') \
5869 || ('j' <= (c) && (c) <= 'r') \
5870 || ('s' <= (c) && (c) <= 'z'))
5871# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5872#endif
5873
5874#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5875int
5876main ()
5877{
5878 int i;
5879 for (i = 0; i < 256; i++)
5880 if (XOR (islower (i), ISLOWER (i))
5881 || toupper (i) != TOUPPER (i))
5882 return 2;
5883 return 0;
5884}
5885_ACEOF
5886if ac_fn_c_try_run "$LINENO"; then :
5887
5888else
5889 ac_cv_header_stdc=no
5890fi
5891rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5892 conftest.$ac_objext conftest.beam conftest.$ac_ext
5893fi
5894
5895fi
5896fi
5897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5898$as_echo "$ac_cv_header_stdc" >&6; }
5899if test $ac_cv_header_stdc = yes; then
5900
5901$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5902
5903fi
5904
5905# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5906for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5907 inttypes.h stdint.h unistd.h
5908do :
5909 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5910ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5911"
cristy98dddb52010-11-04 00:30:15 +00005912if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005913 cat >>confdefs.h <<_ACEOF
5914#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5915_ACEOF
5916
5917fi
5918
5919done
5920
5921
5922
5923 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 +00005924if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00005925 MINIX=yes
5926else
5927 MINIX=
5928fi
5929
5930
5931 if test "$MINIX" = yes; then
5932
5933$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5934
5935
5936$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5937
5938
5939$as_echo "#define _MINIX 1" >>confdefs.h
5940
5941 fi
5942
5943
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5945$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005946if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005947 $as_echo_n "(cached) " >&6
5948else
5949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5950/* end confdefs.h. */
5951
cristy14fefe52012-05-21 00:59:18 +00005952# define __EXTENSIONS__ 1
5953 $ac_includes_default
cristya0b81c32010-01-22 02:54:33 +00005954int
5955main ()
5956{
5957
5958 ;
5959 return 0;
5960}
5961_ACEOF
5962if ac_fn_c_try_compile "$LINENO"; then :
5963 ac_cv_safe_to_define___extensions__=yes
5964else
5965 ac_cv_safe_to_define___extensions__=no
5966fi
5967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5968fi
5969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5970$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5971 test $ac_cv_safe_to_define___extensions__ = yes &&
5972 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5973
5974 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5975
5976 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5977
5978 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5979
5980 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5981
5982
5983
5984# Check for programs
5985ac_ext=c
5986ac_cpp='$CPP $CPPFLAGS'
5987ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5988ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5989ac_compiler_gnu=$ac_cv_c_compiler_gnu
5990if test -n "$ac_tool_prefix"; then
5991 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5992set dummy ${ac_tool_prefix}gcc; ac_word=$2
5993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5994$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005995if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005996 $as_echo_n "(cached) " >&6
5997else
5998 if test -n "$CC"; then
5999 ac_cv_prog_CC="$CC" # Let the user override the test.
6000else
6001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6002for as_dir in $PATH
6003do
6004 IFS=$as_save_IFS
6005 test -z "$as_dir" && as_dir=.
6006 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006008 ac_cv_prog_CC="${ac_tool_prefix}gcc"
6009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6010 break 2
6011 fi
6012done
6013 done
6014IFS=$as_save_IFS
6015
6016fi
6017fi
6018CC=$ac_cv_prog_CC
6019if test -n "$CC"; then
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6021$as_echo "$CC" >&6; }
6022else
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6024$as_echo "no" >&6; }
6025fi
6026
6027
6028fi
6029if test -z "$ac_cv_prog_CC"; then
6030 ac_ct_CC=$CC
6031 # Extract the first word of "gcc", so it can be a program name with args.
6032set dummy gcc; ac_word=$2
6033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6034$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006035if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006036 $as_echo_n "(cached) " >&6
6037else
6038 if test -n "$ac_ct_CC"; then
6039 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6040else
6041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6042for as_dir in $PATH
6043do
6044 IFS=$as_save_IFS
6045 test -z "$as_dir" && as_dir=.
6046 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006048 ac_cv_prog_ac_ct_CC="gcc"
6049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6050 break 2
6051 fi
6052done
6053 done
6054IFS=$as_save_IFS
6055
6056fi
6057fi
6058ac_ct_CC=$ac_cv_prog_ac_ct_CC
6059if test -n "$ac_ct_CC"; then
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6061$as_echo "$ac_ct_CC" >&6; }
6062else
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6064$as_echo "no" >&6; }
6065fi
6066
6067 if test "x$ac_ct_CC" = x; then
6068 CC=""
6069 else
6070 case $cross_compiling:$ac_tool_warned in
6071yes:)
6072{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6073$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6074ac_tool_warned=yes ;;
6075esac
6076 CC=$ac_ct_CC
6077 fi
6078else
6079 CC="$ac_cv_prog_CC"
6080fi
6081
6082if test -z "$CC"; then
6083 if test -n "$ac_tool_prefix"; then
6084 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6085set dummy ${ac_tool_prefix}cc; ac_word=$2
6086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6087$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006088if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006089 $as_echo_n "(cached) " >&6
6090else
6091 if test -n "$CC"; then
6092 ac_cv_prog_CC="$CC" # Let the user override the test.
6093else
6094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6095for as_dir in $PATH
6096do
6097 IFS=$as_save_IFS
6098 test -z "$as_dir" && as_dir=.
6099 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006101 ac_cv_prog_CC="${ac_tool_prefix}cc"
6102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6103 break 2
6104 fi
6105done
6106 done
6107IFS=$as_save_IFS
6108
6109fi
6110fi
6111CC=$ac_cv_prog_CC
6112if test -n "$CC"; then
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6114$as_echo "$CC" >&6; }
6115else
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6117$as_echo "no" >&6; }
6118fi
6119
6120
6121 fi
6122fi
6123if test -z "$CC"; then
6124 # Extract the first word of "cc", so it can be a program name with args.
6125set dummy cc; ac_word=$2
6126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6127$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006128if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006129 $as_echo_n "(cached) " >&6
6130else
6131 if test -n "$CC"; then
6132 ac_cv_prog_CC="$CC" # Let the user override the test.
6133else
6134 ac_prog_rejected=no
6135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6136for as_dir in $PATH
6137do
6138 IFS=$as_save_IFS
6139 test -z "$as_dir" && as_dir=.
6140 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006142 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6143 ac_prog_rejected=yes
6144 continue
6145 fi
6146 ac_cv_prog_CC="cc"
6147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6148 break 2
6149 fi
6150done
6151 done
6152IFS=$as_save_IFS
6153
6154if test $ac_prog_rejected = yes; then
6155 # We found a bogon in the path, so make sure we never use it.
6156 set dummy $ac_cv_prog_CC
6157 shift
6158 if test $# != 0; then
6159 # We chose a different compiler from the bogus one.
6160 # However, it has the same basename, so the bogon will be chosen
6161 # first if we set CC to just the basename; use the full file name.
6162 shift
6163 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6164 fi
6165fi
6166fi
6167fi
6168CC=$ac_cv_prog_CC
6169if test -n "$CC"; then
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6171$as_echo "$CC" >&6; }
6172else
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6174$as_echo "no" >&6; }
6175fi
6176
6177
6178fi
6179if test -z "$CC"; then
6180 if test -n "$ac_tool_prefix"; then
6181 for ac_prog in cl.exe
6182 do
6183 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6184set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6186$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006187if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006188 $as_echo_n "(cached) " >&6
6189else
6190 if test -n "$CC"; then
6191 ac_cv_prog_CC="$CC" # Let the user override the test.
6192else
6193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6194for as_dir in $PATH
6195do
6196 IFS=$as_save_IFS
6197 test -z "$as_dir" && as_dir=.
6198 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006200 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6202 break 2
6203 fi
6204done
6205 done
6206IFS=$as_save_IFS
6207
6208fi
6209fi
6210CC=$ac_cv_prog_CC
6211if test -n "$CC"; then
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6213$as_echo "$CC" >&6; }
6214else
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6216$as_echo "no" >&6; }
6217fi
6218
6219
6220 test -n "$CC" && break
6221 done
6222fi
6223if test -z "$CC"; then
6224 ac_ct_CC=$CC
6225 for ac_prog in cl.exe
6226do
6227 # Extract the first word of "$ac_prog", so it can be a program name with args.
6228set dummy $ac_prog; ac_word=$2
6229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6230$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006231if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006232 $as_echo_n "(cached) " >&6
6233else
6234 if test -n "$ac_ct_CC"; then
6235 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6236else
6237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6238for as_dir in $PATH
6239do
6240 IFS=$as_save_IFS
6241 test -z "$as_dir" && as_dir=.
6242 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006244 ac_cv_prog_ac_ct_CC="$ac_prog"
6245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6246 break 2
6247 fi
6248done
6249 done
6250IFS=$as_save_IFS
6251
6252fi
6253fi
6254ac_ct_CC=$ac_cv_prog_ac_ct_CC
6255if test -n "$ac_ct_CC"; then
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6257$as_echo "$ac_ct_CC" >&6; }
6258else
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6260$as_echo "no" >&6; }
6261fi
6262
6263
6264 test -n "$ac_ct_CC" && break
6265done
6266
6267 if test "x$ac_ct_CC" = x; then
6268 CC=""
6269 else
6270 case $cross_compiling:$ac_tool_warned in
6271yes:)
6272{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6273$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6274ac_tool_warned=yes ;;
6275esac
6276 CC=$ac_ct_CC
6277 fi
6278fi
6279
6280fi
6281
6282
6283test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6284$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00006285as_fn_error $? "no acceptable C compiler found in \$PATH
6286See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00006287
6288# Provide some information about the compiler.
6289$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6290set X $ac_compile
6291ac_compiler=$2
6292for ac_option in --version -v -V -qversion; do
6293 { { ac_try="$ac_compiler $ac_option >&5"
6294case "(($ac_try" in
6295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6296 *) ac_try_echo=$ac_try;;
6297esac
6298eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6299$as_echo "$ac_try_echo"; } >&5
6300 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6301 ac_status=$?
6302 if test -s conftest.err; then
6303 sed '10a\
6304... rest of stderr output deleted ...
6305 10q' conftest.err >conftest.er1
6306 cat conftest.er1 >&5
6307 fi
6308 rm -f conftest.er1 conftest.err
6309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6310 test $ac_status = 0; }
6311done
6312
6313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6314$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006315if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006316 $as_echo_n "(cached) " >&6
6317else
6318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6319/* end confdefs.h. */
6320
6321int
6322main ()
6323{
6324#ifndef __GNUC__
6325 choke me
6326#endif
6327
6328 ;
6329 return 0;
6330}
6331_ACEOF
6332if ac_fn_c_try_compile "$LINENO"; then :
6333 ac_compiler_gnu=yes
6334else
6335 ac_compiler_gnu=no
6336fi
6337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6338ac_cv_c_compiler_gnu=$ac_compiler_gnu
6339
6340fi
6341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6342$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6343if test $ac_compiler_gnu = yes; then
6344 GCC=yes
6345else
6346 GCC=
6347fi
6348ac_test_CFLAGS=${CFLAGS+set}
6349ac_save_CFLAGS=$CFLAGS
6350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6351$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006352if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006353 $as_echo_n "(cached) " >&6
6354else
6355 ac_save_c_werror_flag=$ac_c_werror_flag
6356 ac_c_werror_flag=yes
6357 ac_cv_prog_cc_g=no
6358 CFLAGS="-g"
6359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6360/* end confdefs.h. */
6361
6362int
6363main ()
6364{
6365
6366 ;
6367 return 0;
6368}
6369_ACEOF
6370if ac_fn_c_try_compile "$LINENO"; then :
6371 ac_cv_prog_cc_g=yes
6372else
6373 CFLAGS=""
6374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6375/* end confdefs.h. */
6376
6377int
6378main ()
6379{
6380
6381 ;
6382 return 0;
6383}
6384_ACEOF
6385if ac_fn_c_try_compile "$LINENO"; then :
6386
6387else
6388 ac_c_werror_flag=$ac_save_c_werror_flag
6389 CFLAGS="-g"
6390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6391/* end confdefs.h. */
6392
6393int
6394main ()
6395{
6396
6397 ;
6398 return 0;
6399}
6400_ACEOF
6401if ac_fn_c_try_compile "$LINENO"; then :
6402 ac_cv_prog_cc_g=yes
6403fi
6404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6405fi
6406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6407fi
6408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6409 ac_c_werror_flag=$ac_save_c_werror_flag
6410fi
6411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6412$as_echo "$ac_cv_prog_cc_g" >&6; }
6413if test "$ac_test_CFLAGS" = set; then
6414 CFLAGS=$ac_save_CFLAGS
6415elif test $ac_cv_prog_cc_g = yes; then
6416 if test "$GCC" = yes; then
6417 CFLAGS="-g -O2"
6418 else
6419 CFLAGS="-g"
6420 fi
6421else
6422 if test "$GCC" = yes; then
6423 CFLAGS="-O2"
6424 else
6425 CFLAGS=
6426 fi
6427fi
6428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6429$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006430if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006431 $as_echo_n "(cached) " >&6
6432else
6433 ac_cv_prog_cc_c89=no
6434ac_save_CC=$CC
6435cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6436/* end confdefs.h. */
6437#include <stdarg.h>
6438#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00006439struct stat;
cristya0b81c32010-01-22 02:54:33 +00006440/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6441struct buf { int x; };
6442FILE * (*rcsopen) (struct buf *, struct stat *, int);
6443static char *e (p, i)
6444 char **p;
6445 int i;
6446{
6447 return p[i];
6448}
6449static char *f (char * (*g) (char **, int), char **p, ...)
6450{
6451 char *s;
6452 va_list v;
6453 va_start (v,p);
6454 s = g (p, va_arg (v,int));
6455 va_end (v);
6456 return s;
6457}
6458
6459/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6460 function prototypes and stuff, but not '\xHH' hex character constants.
6461 These don't provoke an error unfortunately, instead are silently treated
6462 as 'x'. The following induces an error, until -std is added to get
6463 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6464 array size at least. It's necessary to write '\x00'==0 to get something
6465 that's true only with -std. */
6466int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6467
6468/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6469 inside strings and character constants. */
6470#define FOO(x) 'x'
6471int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6472
6473int test (int i, double x);
6474struct s1 {int (*f) (int a);};
6475struct s2 {int (*f) (double a);};
6476int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6477int argc;
6478char **argv;
6479int
6480main ()
6481{
6482return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6483 ;
6484 return 0;
6485}
6486_ACEOF
6487for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6488 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6489do
6490 CC="$ac_save_CC $ac_arg"
6491 if ac_fn_c_try_compile "$LINENO"; then :
6492 ac_cv_prog_cc_c89=$ac_arg
6493fi
6494rm -f core conftest.err conftest.$ac_objext
6495 test "x$ac_cv_prog_cc_c89" != "xno" && break
6496done
6497rm -f conftest.$ac_ext
6498CC=$ac_save_CC
6499
6500fi
6501# AC_CACHE_VAL
6502case "x$ac_cv_prog_cc_c89" in
6503 x)
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6505$as_echo "none needed" >&6; } ;;
6506 xno)
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6508$as_echo "unsupported" >&6; } ;;
6509 *)
6510 CC="$CC $ac_cv_prog_cc_c89"
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6512$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6513esac
6514if test "x$ac_cv_prog_cc_c89" != xno; then :
6515
6516fi
6517
6518ac_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
cristya5bda012013-11-03 18:05:38 +00006524ac_ext=c
6525ac_cpp='$CPP $CPPFLAGS'
6526ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6527ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6528ac_compiler_gnu=$ac_cv_c_compiler_gnu
6529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6530$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6531if ${am_cv_prog_cc_c_o+:} false; then :
6532 $as_echo_n "(cached) " >&6
6533else
6534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6535/* end confdefs.h. */
6536
6537int
6538main ()
6539{
6540
6541 ;
6542 return 0;
6543}
6544_ACEOF
6545 # Make sure it works both with $CC and with simple cc.
6546 # Following AC_PROG_CC_C_O, we do the test twice because some
6547 # compilers refuse to overwrite an existing .o file with -o,
6548 # though they will create one.
6549 am_cv_prog_cc_c_o=yes
6550 for am_i in 1 2; do
6551 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6552 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6553 ac_status=$?
6554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555 (exit $ac_status); } \
6556 && test -f conftest2.$ac_objext; then
6557 : OK
6558 else
6559 am_cv_prog_cc_c_o=no
6560 break
6561 fi
6562 done
6563 rm -f core conftest*
6564 unset am_i
6565fi
6566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6567$as_echo "$am_cv_prog_cc_c_o" >&6; }
6568if test "$am_cv_prog_cc_c_o" != yes; then
6569 # Losing compiler, so override with the script.
6570 # FIXME: It is wrong to rewrite CC.
6571 # But if we don't then we get into trouble of one sort or another.
6572 # A longer-term fix would be to have automake use am__CC in this case,
6573 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6574 CC="$am_aux_dir/compile $CC"
6575fi
6576ac_ext=c
6577ac_cpp='$CPP $CPPFLAGS'
6578ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6579ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6580ac_compiler_gnu=$ac_cv_c_compiler_gnu
6581
6582
cristy73bd4a52010-10-05 11:24:23 +00006583depcc="$CC" am_compiler_list=
6584
6585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6586$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006587if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006588 $as_echo_n "(cached) " >&6
6589else
6590 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6591 # We make a subdir and do the tests there. Otherwise we can end up
6592 # making bogus files that we don't know about and never remove. For
6593 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006594 # making a dummy file named 'D' -- because '-MD' means "put the output
6595 # in D".
cristy7247bba2012-02-05 16:37:27 +00006596 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006597 mkdir conftest.dir
6598 # Copy depcomp to subdir because otherwise we won't find it if we're
6599 # using a relative directory.
6600 cp "$am_depcomp" conftest.dir
6601 cd conftest.dir
6602 # We will build objects and dependencies in a subdirectory because
6603 # it helps to detect inapplicable dependency modes. For instance
6604 # both Tru64's cc and ICC support -MD to output dependencies as a
6605 # side effect of compilation, but ICC will put the dependencies in
6606 # the current directory while Tru64 will put them in the object
6607 # directory.
6608 mkdir sub
6609
6610 am_cv_CC_dependencies_compiler_type=none
6611 if test "$am_compiler_list" = ""; then
6612 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6613 fi
6614 am__universal=false
6615 case " $depcc " in #(
6616 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6617 esac
6618
6619 for depmode in $am_compiler_list; do
6620 # Setup a source with many dependencies, because some compilers
6621 # like to wrap large dependency lists on column 80 (with \), and
6622 # we should not choose a depcomp mode which is confused by this.
6623 #
6624 # We need to recreate these files for each test, as the compiler may
6625 # overwrite some of them when testing with obscure command lines.
6626 # This happens at least with the AIX C compiler.
6627 : > sub/conftest.c
6628 for i in 1 2 3 4 5 6; do
6629 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006630 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6631 # Solaris 10 /bin/sh.
6632 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006633 done
6634 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6635
cristyc0890a62012-07-19 00:18:20 +00006636 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006637 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006638 # handle '-M -o', and we need to detect this. Also, some Intel
6639 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006640 am__obj=sub/conftest.${OBJEXT-o}
6641 am__minus_obj="-o $am__obj"
6642 case $depmode in
6643 gcc)
6644 # This depmode causes a compiler race in universal mode.
6645 test "$am__universal" = false || continue
6646 ;;
6647 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006648 # After this tag, mechanisms are not by side-effect, so they'll
6649 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006650 if test "x$enable_dependency_tracking" = xyes; then
6651 continue
6652 else
6653 break
6654 fi
6655 ;;
cristy7247bba2012-02-05 16:37:27 +00006656 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006657 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006658 # not run yet. These depmodes are late enough in the game, and
6659 # so weak that their functioning should not be impacted.
6660 am__obj=conftest.${OBJEXT-o}
6661 am__minus_obj=
6662 ;;
6663 none) break ;;
6664 esac
6665 if depmode=$depmode \
6666 source=sub/conftest.c object=$am__obj \
6667 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6668 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6669 >/dev/null 2>conftest.err &&
6670 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6671 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6672 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6673 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6674 # icc doesn't choke on unknown options, it will just issue warnings
6675 # or remarks (even with -Werror). So we grep stderr for any message
6676 # that says an option was ignored or not supported.
6677 # When given -MP, icc 7.0 and 7.1 complain thusly:
6678 # icc: Command line warning: ignoring option '-M'; no argument required
6679 # The diagnosis changed in icc 8.0:
6680 # icc: Command line remark: option '-MP' not supported
6681 if (grep 'ignoring option' conftest.err ||
6682 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6683 am_cv_CC_dependencies_compiler_type=$depmode
6684 break
6685 fi
6686 fi
6687 done
6688
6689 cd ..
6690 rm -rf conftest.dir
6691else
6692 am_cv_CC_dependencies_compiler_type=none
6693fi
6694
6695fi
6696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6697$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6698CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6699
6700 if
6701 test "x$enable_dependency_tracking" != xno \
6702 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6703 am__fastdepCC_TRUE=
6704 am__fastdepCC_FALSE='#'
6705else
6706 am__fastdepCC_TRUE='#'
6707 am__fastdepCC_FALSE=
6708fi
6709
6710
cristy95646052009-11-28 23:05:30 +00006711ac_ext=cpp
6712ac_cpp='$CXXCPP $CPPFLAGS'
6713ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6714ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6715ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6716if test -z "$CXX"; then
6717 if test -n "$CCC"; then
6718 CXX=$CCC
6719 else
6720 if test -n "$ac_tool_prefix"; then
6721 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6722 do
6723 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6724set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6726$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006727if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006728 $as_echo_n "(cached) " >&6
6729else
6730 if test -n "$CXX"; then
6731 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6732else
6733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6734for as_dir in $PATH
6735do
6736 IFS=$as_save_IFS
6737 test -z "$as_dir" && as_dir=.
6738 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006740 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6742 break 2
6743 fi
6744done
6745 done
6746IFS=$as_save_IFS
6747
6748fi
6749fi
6750CXX=$ac_cv_prog_CXX
6751if test -n "$CXX"; then
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6753$as_echo "$CXX" >&6; }
6754else
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6756$as_echo "no" >&6; }
6757fi
6758
6759
6760 test -n "$CXX" && break
6761 done
6762fi
6763if test -z "$CXX"; then
6764 ac_ct_CXX=$CXX
6765 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6766do
6767 # Extract the first word of "$ac_prog", so it can be a program name with args.
6768set dummy $ac_prog; ac_word=$2
6769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6770$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006771if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006772 $as_echo_n "(cached) " >&6
6773else
6774 if test -n "$ac_ct_CXX"; then
6775 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6776else
6777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6778for as_dir in $PATH
6779do
6780 IFS=$as_save_IFS
6781 test -z "$as_dir" && as_dir=.
6782 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006784 ac_cv_prog_ac_ct_CXX="$ac_prog"
6785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6786 break 2
6787 fi
6788done
6789 done
6790IFS=$as_save_IFS
6791
6792fi
6793fi
6794ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6795if test -n "$ac_ct_CXX"; then
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6797$as_echo "$ac_ct_CXX" >&6; }
6798else
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6800$as_echo "no" >&6; }
6801fi
6802
6803
6804 test -n "$ac_ct_CXX" && break
6805done
6806
6807 if test "x$ac_ct_CXX" = x; then
6808 CXX="g++"
6809 else
6810 case $cross_compiling:$ac_tool_warned in
6811yes:)
6812{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6813$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6814ac_tool_warned=yes ;;
6815esac
6816 CXX=$ac_ct_CXX
6817 fi
6818fi
6819
6820 fi
6821fi
6822# Provide some information about the compiler.
6823$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6824set X $ac_compile
6825ac_compiler=$2
6826for ac_option in --version -v -V -qversion; do
6827 { { ac_try="$ac_compiler $ac_option >&5"
6828case "(($ac_try" in
6829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6830 *) ac_try_echo=$ac_try;;
6831esac
6832eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6833$as_echo "$ac_try_echo"; } >&5
6834 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6835 ac_status=$?
6836 if test -s conftest.err; then
6837 sed '10a\
6838... rest of stderr output deleted ...
6839 10q' conftest.err >conftest.er1
6840 cat conftest.er1 >&5
6841 fi
6842 rm -f conftest.er1 conftest.err
6843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6844 test $ac_status = 0; }
6845done
6846
6847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6848$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006849if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00006850 $as_echo_n "(cached) " >&6
6851else
6852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6853/* end confdefs.h. */
6854
6855int
6856main ()
6857{
6858#ifndef __GNUC__
6859 choke me
6860#endif
6861
6862 ;
6863 return 0;
6864}
6865_ACEOF
6866if ac_fn_cxx_try_compile "$LINENO"; then :
6867 ac_compiler_gnu=yes
6868else
6869 ac_compiler_gnu=no
6870fi
6871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6872ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6873
6874fi
6875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6876$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6877if test $ac_compiler_gnu = yes; then
6878 GXX=yes
6879else
6880 GXX=
6881fi
6882ac_test_CXXFLAGS=${CXXFLAGS+set}
6883ac_save_CXXFLAGS=$CXXFLAGS
6884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6885$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006886if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00006887 $as_echo_n "(cached) " >&6
6888else
6889 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6890 ac_cxx_werror_flag=yes
6891 ac_cv_prog_cxx_g=no
6892 CXXFLAGS="-g"
6893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6894/* end confdefs.h. */
6895
6896int
6897main ()
6898{
6899
6900 ;
6901 return 0;
6902}
6903_ACEOF
6904if ac_fn_cxx_try_compile "$LINENO"; then :
6905 ac_cv_prog_cxx_g=yes
6906else
6907 CXXFLAGS=""
6908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6909/* end confdefs.h. */
6910
6911int
6912main ()
6913{
6914
6915 ;
6916 return 0;
6917}
6918_ACEOF
6919if ac_fn_cxx_try_compile "$LINENO"; then :
6920
6921else
6922 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6923 CXXFLAGS="-g"
6924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6925/* end confdefs.h. */
6926
6927int
6928main ()
6929{
6930
6931 ;
6932 return 0;
6933}
6934_ACEOF
6935if ac_fn_cxx_try_compile "$LINENO"; then :
6936 ac_cv_prog_cxx_g=yes
6937fi
6938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6939fi
6940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6941fi
6942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6943 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6944fi
6945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6946$as_echo "$ac_cv_prog_cxx_g" >&6; }
6947if test "$ac_test_CXXFLAGS" = set; then
6948 CXXFLAGS=$ac_save_CXXFLAGS
6949elif test $ac_cv_prog_cxx_g = yes; then
6950 if test "$GXX" = yes; then
6951 CXXFLAGS="-g -O2"
6952 else
6953 CXXFLAGS="-g"
6954 fi
6955else
6956 if test "$GXX" = yes; then
6957 CXXFLAGS="-O2"
6958 else
6959 CXXFLAGS=
6960 fi
6961fi
6962ac_ext=c
6963ac_cpp='$CPP $CPPFLAGS'
6964ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6965ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6966ac_compiler_gnu=$ac_cv_c_compiler_gnu
6967
cristy73bd4a52010-10-05 11:24:23 +00006968depcc="$CXX" am_compiler_list=
6969
6970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6971$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006972if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006973 $as_echo_n "(cached) " >&6
6974else
6975 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6976 # We make a subdir and do the tests there. Otherwise we can end up
6977 # making bogus files that we don't know about and never remove. For
6978 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006979 # making a dummy file named 'D' -- because '-MD' means "put the output
6980 # in D".
cristy7247bba2012-02-05 16:37:27 +00006981 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006982 mkdir conftest.dir
6983 # Copy depcomp to subdir because otherwise we won't find it if we're
6984 # using a relative directory.
6985 cp "$am_depcomp" conftest.dir
6986 cd conftest.dir
6987 # We will build objects and dependencies in a subdirectory because
6988 # it helps to detect inapplicable dependency modes. For instance
6989 # both Tru64's cc and ICC support -MD to output dependencies as a
6990 # side effect of compilation, but ICC will put the dependencies in
6991 # the current directory while Tru64 will put them in the object
6992 # directory.
6993 mkdir sub
6994
6995 am_cv_CXX_dependencies_compiler_type=none
6996 if test "$am_compiler_list" = ""; then
6997 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6998 fi
6999 am__universal=false
7000 case " $depcc " in #(
7001 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7002 esac
7003
7004 for depmode in $am_compiler_list; do
7005 # Setup a source with many dependencies, because some compilers
7006 # like to wrap large dependency lists on column 80 (with \), and
7007 # we should not choose a depcomp mode which is confused by this.
7008 #
7009 # We need to recreate these files for each test, as the compiler may
7010 # overwrite some of them when testing with obscure command lines.
7011 # This happens at least with the AIX C compiler.
7012 : > sub/conftest.c
7013 for i in 1 2 3 4 5 6; do
7014 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00007015 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7016 # Solaris 10 /bin/sh.
7017 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00007018 done
7019 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7020
cristyc0890a62012-07-19 00:18:20 +00007021 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00007022 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00007023 # handle '-M -o', and we need to detect this. Also, some Intel
7024 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00007025 am__obj=sub/conftest.${OBJEXT-o}
7026 am__minus_obj="-o $am__obj"
7027 case $depmode in
7028 gcc)
7029 # This depmode causes a compiler race in universal mode.
7030 test "$am__universal" = false || continue
7031 ;;
7032 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00007033 # After this tag, mechanisms are not by side-effect, so they'll
7034 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00007035 if test "x$enable_dependency_tracking" = xyes; then
7036 continue
7037 else
7038 break
7039 fi
7040 ;;
cristy7247bba2012-02-05 16:37:27 +00007041 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00007042 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00007043 # not run yet. These depmodes are late enough in the game, and
7044 # so weak that their functioning should not be impacted.
7045 am__obj=conftest.${OBJEXT-o}
7046 am__minus_obj=
7047 ;;
7048 none) break ;;
7049 esac
7050 if depmode=$depmode \
7051 source=sub/conftest.c object=$am__obj \
7052 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7053 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7054 >/dev/null 2>conftest.err &&
7055 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7056 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7057 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7058 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7059 # icc doesn't choke on unknown options, it will just issue warnings
7060 # or remarks (even with -Werror). So we grep stderr for any message
7061 # that says an option was ignored or not supported.
7062 # When given -MP, icc 7.0 and 7.1 complain thusly:
7063 # icc: Command line warning: ignoring option '-M'; no argument required
7064 # The diagnosis changed in icc 8.0:
7065 # icc: Command line remark: option '-MP' not supported
7066 if (grep 'ignoring option' conftest.err ||
7067 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7068 am_cv_CXX_dependencies_compiler_type=$depmode
7069 break
7070 fi
7071 fi
7072 done
7073
7074 cd ..
7075 rm -rf conftest.dir
7076else
7077 am_cv_CXX_dependencies_compiler_type=none
7078fi
7079
7080fi
7081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7082$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7083CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7084
7085 if
7086 test "x$enable_dependency_tracking" != xno \
7087 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7088 am__fastdepCXX_TRUE=
7089 am__fastdepCXX_FALSE='#'
7090else
7091 am__fastdepCXX_TRUE='#'
7092 am__fastdepCXX_FALSE=
7093fi
7094
7095
cristy8b350f62009-11-15 23:12:43 +00007096 case $ac_cv_prog_cc_stdc in #(
7097 no) :
7098 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
7099 *) :
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007101$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007102if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007103 $as_echo_n "(cached) " >&6
7104else
7105 ac_cv_prog_cc_c99=no
7106ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007107cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007108/* end confdefs.h. */
7109#include <stdarg.h>
7110#include <stdbool.h>
7111#include <stdlib.h>
7112#include <wchar.h>
7113#include <stdio.h>
7114
7115// Check varargs macros. These examples are taken from C99 6.10.3.5.
7116#define debug(...) fprintf (stderr, __VA_ARGS__)
7117#define showlist(...) puts (#__VA_ARGS__)
7118#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7119static void
7120test_varargs_macros (void)
7121{
7122 int x = 1234;
7123 int y = 5678;
7124 debug ("Flag");
7125 debug ("X = %d\n", x);
7126 showlist (The first, second, and third items.);
7127 report (x>y, "x is %d but y is %d", x, y);
7128}
7129
7130// Check long long types.
7131#define BIG64 18446744073709551615ull
7132#define BIG32 4294967295ul
7133#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7134#if !BIG_OK
7135 your preprocessor is broken;
7136#endif
7137#if BIG_OK
7138#else
7139 your preprocessor is broken;
7140#endif
7141static long long int bignum = -9223372036854775807LL;
7142static unsigned long long int ubignum = BIG64;
7143
7144struct incomplete_array
7145{
7146 int datasize;
7147 double data[];
7148};
7149
7150struct named_init {
7151 int number;
7152 const wchar_t *name;
7153 double average;
7154};
7155
7156typedef const char *ccp;
7157
7158static inline int
7159test_restrict (ccp restrict text)
7160{
7161 // See if C++-style comments work.
7162 // Iterate through items via the restricted pointer.
7163 // Also check for declarations in for loops.
7164 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7165 continue;
7166 return 0;
7167}
7168
7169// Check varargs and va_copy.
7170static void
7171test_varargs (const char *format, ...)
7172{
7173 va_list args;
7174 va_start (args, format);
7175 va_list args_copy;
7176 va_copy (args_copy, args);
7177
7178 const char *str;
7179 int number;
7180 float fnumber;
7181
7182 while (*format)
7183 {
7184 switch (*format++)
7185 {
7186 case 's': // string
7187 str = va_arg (args_copy, const char *);
7188 break;
7189 case 'd': // int
7190 number = va_arg (args_copy, int);
7191 break;
7192 case 'f': // float
7193 fnumber = va_arg (args_copy, double);
7194 break;
7195 default:
7196 break;
7197 }
7198 }
7199 va_end (args_copy);
7200 va_end (args);
7201}
7202
7203int
7204main ()
7205{
7206
7207 // Check bool.
7208 _Bool success = false;
7209
7210 // Check restrict.
7211 if (test_restrict ("String literal") == 0)
7212 success = true;
7213 char *restrict newvar = "Another string";
7214
7215 // Check varargs.
7216 test_varargs ("s, d' f .", "string", 65, 34.234);
7217 test_varargs_macros ();
7218
7219 // Check flexible array members.
7220 struct incomplete_array *ia =
7221 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7222 ia->datasize = 10;
7223 for (int i = 0; i < ia->datasize; ++i)
7224 ia->data[i] = i * 1.234;
7225
7226 // Check named initializers.
7227 struct named_init ni = {
7228 .number = 34,
7229 .name = L"Test wide string",
7230 .average = 543.34343,
7231 };
7232
7233 ni.number = 58;
7234
7235 int dynamic_array[ni.number];
7236 dynamic_array[ni.number - 1] = 543;
7237
7238 // work around unused variable warnings
7239 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7240 || dynamic_array[ni.number - 1] != 543);
7241
7242 ;
7243 return 0;
7244}
7245_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007246for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy3ed852e2009-09-05 21:47:34 +00007247do
7248 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007249 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007250 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007251fi
cristy3ed852e2009-09-05 21:47:34 +00007252rm -f core conftest.err conftest.$ac_objext
7253 test "x$ac_cv_prog_cc_c99" != "xno" && break
7254done
7255rm -f conftest.$ac_ext
7256CC=$ac_save_CC
7257
7258fi
7259# AC_CACHE_VAL
7260case "x$ac_cv_prog_cc_c99" in
7261 x)
cristy8b350f62009-11-15 23:12:43 +00007262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007263$as_echo "none needed" >&6; } ;;
7264 xno)
cristy8b350f62009-11-15 23:12:43 +00007265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007266$as_echo "unsupported" >&6; } ;;
7267 *)
7268 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00007269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007270$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7271esac
cristy8b350f62009-11-15 23:12:43 +00007272if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007273 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7274else
cristy8b350f62009-11-15 23:12:43 +00007275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007276$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007277if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007278 $as_echo_n "(cached) " >&6
7279else
7280 ac_cv_prog_cc_c89=no
7281ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007282cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007283/* end confdefs.h. */
7284#include <stdarg.h>
7285#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00007286struct stat;
cristy3ed852e2009-09-05 21:47:34 +00007287/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7288struct buf { int x; };
7289FILE * (*rcsopen) (struct buf *, struct stat *, int);
7290static char *e (p, i)
7291 char **p;
7292 int i;
7293{
7294 return p[i];
7295}
7296static char *f (char * (*g) (char **, int), char **p, ...)
7297{
7298 char *s;
7299 va_list v;
7300 va_start (v,p);
7301 s = g (p, va_arg (v,int));
7302 va_end (v);
7303 return s;
7304}
7305
7306/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7307 function prototypes and stuff, but not '\xHH' hex character constants.
7308 These don't provoke an error unfortunately, instead are silently treated
7309 as 'x'. The following induces an error, until -std is added to get
7310 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7311 array size at least. It's necessary to write '\x00'==0 to get something
7312 that's true only with -std. */
7313int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7314
7315/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7316 inside strings and character constants. */
7317#define FOO(x) 'x'
7318int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7319
7320int test (int i, double x);
7321struct s1 {int (*f) (int a);};
7322struct s2 {int (*f) (double a);};
7323int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7324int argc;
7325char **argv;
7326int
7327main ()
7328{
7329return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7330 ;
7331 return 0;
7332}
7333_ACEOF
7334for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7335 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7336do
7337 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007338 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007339 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007340fi
cristy3ed852e2009-09-05 21:47:34 +00007341rm -f core conftest.err conftest.$ac_objext
7342 test "x$ac_cv_prog_cc_c89" != "xno" && break
7343done
7344rm -f conftest.$ac_ext
7345CC=$ac_save_CC
7346
7347fi
7348# AC_CACHE_VAL
7349case "x$ac_cv_prog_cc_c89" in
7350 x)
cristy8b350f62009-11-15 23:12:43 +00007351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007352$as_echo "none needed" >&6; } ;;
7353 xno)
cristy8b350f62009-11-15 23:12:43 +00007354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007355$as_echo "unsupported" >&6; } ;;
7356 *)
7357 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00007358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007359$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7360esac
cristy8b350f62009-11-15 23:12:43 +00007361if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007362 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7363else
7364 ac_cv_prog_cc_stdc=no
7365fi
7366
cristy3ed852e2009-09-05 21:47:34 +00007367fi
cristy3ed852e2009-09-05 21:47:34 +00007368 ;;
7369esac
cristy8b350f62009-11-15 23:12:43 +00007370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00007371$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007372 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007373 $as_echo_n "(cached) " >&6
7374fi
7375
cristy8b350f62009-11-15 23:12:43 +00007376 case $ac_cv_prog_cc_stdc in #(
7377 no) :
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7379$as_echo "unsupported" >&6; } ;; #(
7380 '') :
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7382$as_echo "none needed" >&6; } ;; #(
7383 *) :
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00007385$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7386esac
7387
cristy3ed852e2009-09-05 21:47:34 +00007388ac_ext=c
7389ac_cpp='$CPP $CPPFLAGS'
7390ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7391ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7392ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00007393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00007394$as_echo_n "checking how to run the C preprocessor... " >&6; }
7395# On Suns, sometimes $CPP names a directory.
7396if test -n "$CPP" && test -d "$CPP"; then
7397 CPP=
7398fi
7399if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00007400 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007401 $as_echo_n "(cached) " >&6
7402else
7403 # Double quotes because CPP needs to be expanded
7404 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7405 do
7406 ac_preproc_ok=false
7407for ac_c_preproc_warn_flag in '' yes
7408do
7409 # Use a header file that comes with gcc, so configuring glibc
7410 # with a fresh cross-compiler works.
7411 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7412 # <limits.h> exists even on freestanding compilers.
7413 # On the NeXT, cc -E runs the code through the compiler's parser,
7414 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007416/* end confdefs.h. */
7417#ifdef __STDC__
7418# include <limits.h>
7419#else
7420# include <assert.h>
7421#endif
7422 Syntax error
7423_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007424if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007425
cristy8b350f62009-11-15 23:12:43 +00007426else
cristy3ed852e2009-09-05 21:47:34 +00007427 # Broken: fails on valid input.
7428continue
7429fi
cristyda16f162011-02-19 23:52:17 +00007430rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007431
7432 # OK, works on sane cases. Now check whether nonexistent headers
7433 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007435/* end confdefs.h. */
7436#include <ac_nonexistent.h>
7437_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007438if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007439 # Broken: success on invalid input.
7440continue
7441else
cristy3ed852e2009-09-05 21:47:34 +00007442 # Passes both tests.
7443ac_preproc_ok=:
7444break
7445fi
cristyda16f162011-02-19 23:52:17 +00007446rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007447
7448done
7449# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007450rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007451if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007452 break
7453fi
7454
7455 done
7456 ac_cv_prog_CPP=$CPP
7457
7458fi
7459 CPP=$ac_cv_prog_CPP
7460else
7461 ac_cv_prog_CPP=$CPP
7462fi
cristy8b350f62009-11-15 23:12:43 +00007463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007464$as_echo "$CPP" >&6; }
7465ac_preproc_ok=false
7466for ac_c_preproc_warn_flag in '' yes
7467do
7468 # Use a header file that comes with gcc, so configuring glibc
7469 # with a fresh cross-compiler works.
7470 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7471 # <limits.h> exists even on freestanding compilers.
7472 # On the NeXT, cc -E runs the code through the compiler's parser,
7473 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007475/* end confdefs.h. */
7476#ifdef __STDC__
7477# include <limits.h>
7478#else
7479# include <assert.h>
7480#endif
7481 Syntax error
7482_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007483if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007484
cristy8b350f62009-11-15 23:12:43 +00007485else
cristy3ed852e2009-09-05 21:47:34 +00007486 # Broken: fails on valid input.
7487continue
7488fi
cristyda16f162011-02-19 23:52:17 +00007489rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007490
7491 # OK, works on sane cases. Now check whether nonexistent headers
7492 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007494/* end confdefs.h. */
7495#include <ac_nonexistent.h>
7496_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007497if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007498 # Broken: success on invalid input.
7499continue
7500else
cristy3ed852e2009-09-05 21:47:34 +00007501 # Passes both tests.
7502ac_preproc_ok=:
7503break
7504fi
cristyda16f162011-02-19 23:52:17 +00007505rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007506
7507done
7508# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007509rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007510if $ac_preproc_ok; then :
7511
cristy3ed852e2009-09-05 21:47:34 +00007512else
cristy8b350f62009-11-15 23:12:43 +00007513 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007514$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00007515as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7516See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007517fi
7518
7519ac_ext=c
7520ac_cpp='$CPP $CPPFLAGS'
7521ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7522ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7523ac_compiler_gnu=$ac_cv_c_compiler_gnu
7524
cristy73bd4a52010-10-05 11:24:23 +00007525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7526$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007527if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007528 $as_echo_n "(cached) " >&6
7529else
7530 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7531 for ac_i in 1 2 3 4 5 6 7; do
7532 ac_script="$ac_script$as_nl$ac_script"
7533 done
7534 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7535 { ac_script=; unset ac_script;}
7536 if test -z "$SED"; then
7537 ac_path_SED_found=false
7538 # Loop through the user's path and test for each of PROGNAME-LIST
7539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7540for as_dir in $PATH
7541do
7542 IFS=$as_save_IFS
7543 test -z "$as_dir" && as_dir=.
7544 for ac_prog in sed gsed; do
7545 for ac_exec_ext in '' $ac_executable_extensions; do
7546 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007547 as_fn_executable_p "$ac_path_SED" || continue
cristy73bd4a52010-10-05 11:24:23 +00007548# Check for GNU ac_path_SED and select it if it is found.
7549 # Check for GNU $ac_path_SED
7550case `"$ac_path_SED" --version 2>&1` in
7551*GNU*)
7552 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7553*)
7554 ac_count=0
7555 $as_echo_n 0123456789 >"conftest.in"
7556 while :
7557 do
7558 cat "conftest.in" "conftest.in" >"conftest.tmp"
7559 mv "conftest.tmp" "conftest.in"
7560 cp "conftest.in" "conftest.nl"
7561 $as_echo '' >> "conftest.nl"
7562 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7563 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7564 as_fn_arith $ac_count + 1 && ac_count=$as_val
7565 if test $ac_count -gt ${ac_path_SED_max-0}; then
7566 # Best one so far, save it but keep looking for a better one
7567 ac_cv_path_SED="$ac_path_SED"
7568 ac_path_SED_max=$ac_count
7569 fi
7570 # 10*(2^10) chars as input seems more than enough
7571 test $ac_count -gt 10 && break
7572 done
7573 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7574esac
7575
7576 $ac_path_SED_found && break 3
7577 done
7578 done
7579 done
7580IFS=$as_save_IFS
7581 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007582 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007583 fi
7584else
7585 ac_cv_path_SED=$SED
7586fi
7587
7588fi
7589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7590$as_echo "$ac_cv_path_SED" >&6; }
7591 SED="$ac_cv_path_SED"
7592 rm -f conftest.sed
7593
7594test -z "$SED" && SED=sed
7595Xsed="$SED -e 1s/^X//"
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7608$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007609if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007610 $as_echo_n "(cached) " >&6
7611else
7612 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7613 then ac_cv_path_FGREP="$GREP -F"
7614 else
7615 if test -z "$FGREP"; then
7616 ac_path_FGREP_found=false
7617 # Loop through the user's path and test for each of PROGNAME-LIST
7618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7619for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7620do
7621 IFS=$as_save_IFS
7622 test -z "$as_dir" && as_dir=.
7623 for ac_prog in fgrep; do
7624 for ac_exec_ext in '' $ac_executable_extensions; do
7625 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007626 as_fn_executable_p "$ac_path_FGREP" || continue
cristy73bd4a52010-10-05 11:24:23 +00007627# Check for GNU ac_path_FGREP and select it if it is found.
7628 # Check for GNU $ac_path_FGREP
7629case `"$ac_path_FGREP" --version 2>&1` in
7630*GNU*)
7631 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7632*)
7633 ac_count=0
7634 $as_echo_n 0123456789 >"conftest.in"
7635 while :
7636 do
7637 cat "conftest.in" "conftest.in" >"conftest.tmp"
7638 mv "conftest.tmp" "conftest.in"
7639 cp "conftest.in" "conftest.nl"
7640 $as_echo 'FGREP' >> "conftest.nl"
7641 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7642 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7643 as_fn_arith $ac_count + 1 && ac_count=$as_val
7644 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7645 # Best one so far, save it but keep looking for a better one
7646 ac_cv_path_FGREP="$ac_path_FGREP"
7647 ac_path_FGREP_max=$ac_count
7648 fi
7649 # 10*(2^10) chars as input seems more than enough
7650 test $ac_count -gt 10 && break
7651 done
7652 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7653esac
7654
7655 $ac_path_FGREP_found && break 3
7656 done
7657 done
7658 done
7659IFS=$as_save_IFS
7660 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007661 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007662 fi
7663else
7664 ac_cv_path_FGREP=$FGREP
7665fi
7666
7667 fi
7668fi
7669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7670$as_echo "$ac_cv_path_FGREP" >&6; }
7671 FGREP="$ac_cv_path_FGREP"
7672
7673
7674test -z "$GREP" && GREP=grep
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
cristy0c60a692010-11-04 01:09:47 +00007692ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7693ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7694ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7695
7696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7697$as_echo_n "checking how to print strings... " >&6; }
7698# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00007699if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00007700 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7701 ECHO='print -r --'
7702elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7703 ECHO='printf %s\n'
7704else
7705 # Use this function as a fallback that always works.
7706 func_fallback_echo ()
7707 {
7708 eval 'cat <<_LTECHO_EOF
7709$1
7710_LTECHO_EOF'
7711 }
7712 ECHO='func_fallback_echo'
7713fi
7714
7715# func_echo_all arg...
7716# Invoke $ECHO with all args, space-separated.
7717func_echo_all ()
7718{
7719 $ECHO ""
7720}
7721
7722case "$ECHO" in
7723 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7724$as_echo "printf" >&6; } ;;
7725 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7726$as_echo "print -r" >&6; } ;;
7727 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7728$as_echo "cat" >&6; } ;;
7729esac
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
cristy73bd4a52010-10-05 11:24:23 +00007744
7745
7746# Check whether --with-gnu-ld was given.
7747if test "${with_gnu_ld+set}" = set; then :
7748 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7749else
7750 with_gnu_ld=no
7751fi
7752
7753ac_prog=ld
7754if test "$GCC" = yes; then
7755 # Check if gcc -print-prog-name=ld gives a path.
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7757$as_echo_n "checking for ld used by $CC... " >&6; }
7758 case $host in
7759 *-*-mingw*)
7760 # gcc leaves a trailing carriage return which upsets mingw
7761 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7762 *)
7763 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7764 esac
7765 case $ac_prog in
7766 # Accept absolute paths.
7767 [\\/]* | ?:[\\/]*)
7768 re_direlt='/[^/][^/]*/\.\./'
7769 # Canonicalize the pathname of ld
7770 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7771 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7772 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7773 done
7774 test -z "$LD" && LD="$ac_prog"
7775 ;;
7776 "")
7777 # If it fails, then pretend we aren't using GCC.
7778 ac_prog=ld
7779 ;;
7780 *)
7781 # If it is relative, then search for the first ld in PATH.
7782 with_gnu_ld=unknown
7783 ;;
7784 esac
7785elif test "$with_gnu_ld" = yes; then
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7787$as_echo_n "checking for GNU ld... " >&6; }
7788else
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7790$as_echo_n "checking for non-GNU ld... " >&6; }
7791fi
cristyda16f162011-02-19 23:52:17 +00007792if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007793 $as_echo_n "(cached) " >&6
7794else
7795 if test -z "$LD"; then
7796 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7797 for ac_dir in $PATH; do
7798 IFS="$lt_save_ifs"
7799 test -z "$ac_dir" && ac_dir=.
7800 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7801 lt_cv_path_LD="$ac_dir/$ac_prog"
7802 # Check to see if the program is GNU ld. I'd rather use --version,
7803 # but apparently some variants of GNU ld only accept -v.
7804 # Break only if it was the GNU/non-GNU ld that we prefer.
7805 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7806 *GNU* | *'with BFD'*)
7807 test "$with_gnu_ld" != no && break
7808 ;;
7809 *)
7810 test "$with_gnu_ld" != yes && break
7811 ;;
7812 esac
7813 fi
7814 done
7815 IFS="$lt_save_ifs"
7816else
7817 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7818fi
7819fi
7820
7821LD="$lt_cv_path_LD"
7822if test -n "$LD"; then
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7824$as_echo "$LD" >&6; }
7825else
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7827$as_echo "no" >&6; }
7828fi
cristy98dddb52010-11-04 00:30:15 +00007829test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7831$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007832if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007833 $as_echo_n "(cached) " >&6
7834else
7835 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7836case `$LD -v 2>&1 </dev/null` in
7837*GNU* | *'with BFD'*)
7838 lt_cv_prog_gnu_ld=yes
7839 ;;
7840*)
7841 lt_cv_prog_gnu_ld=no
7842 ;;
7843esac
7844fi
7845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7846$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7847with_gnu_ld=$lt_cv_prog_gnu_ld
7848
7849
7850
7851
7852
7853
7854
7855
7856
cristy3ed852e2009-09-05 21:47:34 +00007857
cristy837d6dc2010-02-27 01:16:57 +00007858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7859$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007860if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00007861 $as_echo_n "(cached) " >&6
7862else
7863 ac_cv_prog_cc_c99=no
7864ac_save_CC=$CC
7865cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7866/* end confdefs.h. */
7867#include <stdarg.h>
7868#include <stdbool.h>
7869#include <stdlib.h>
7870#include <wchar.h>
7871#include <stdio.h>
7872
7873// Check varargs macros. These examples are taken from C99 6.10.3.5.
7874#define debug(...) fprintf (stderr, __VA_ARGS__)
7875#define showlist(...) puts (#__VA_ARGS__)
7876#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7877static void
7878test_varargs_macros (void)
7879{
7880 int x = 1234;
7881 int y = 5678;
7882 debug ("Flag");
7883 debug ("X = %d\n", x);
7884 showlist (The first, second, and third items.);
7885 report (x>y, "x is %d but y is %d", x, y);
7886}
7887
7888// Check long long types.
7889#define BIG64 18446744073709551615ull
7890#define BIG32 4294967295ul
7891#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7892#if !BIG_OK
7893 your preprocessor is broken;
7894#endif
7895#if BIG_OK
7896#else
7897 your preprocessor is broken;
7898#endif
7899static long long int bignum = -9223372036854775807LL;
7900static unsigned long long int ubignum = BIG64;
7901
7902struct incomplete_array
7903{
7904 int datasize;
7905 double data[];
7906};
7907
7908struct named_init {
7909 int number;
7910 const wchar_t *name;
7911 double average;
7912};
7913
7914typedef const char *ccp;
7915
7916static inline int
7917test_restrict (ccp restrict text)
7918{
7919 // See if C++-style comments work.
7920 // Iterate through items via the restricted pointer.
7921 // Also check for declarations in for loops.
7922 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7923 continue;
7924 return 0;
7925}
7926
7927// Check varargs and va_copy.
7928static void
7929test_varargs (const char *format, ...)
7930{
7931 va_list args;
7932 va_start (args, format);
7933 va_list args_copy;
7934 va_copy (args_copy, args);
7935
7936 const char *str;
7937 int number;
7938 float fnumber;
7939
7940 while (*format)
7941 {
7942 switch (*format++)
7943 {
7944 case 's': // string
7945 str = va_arg (args_copy, const char *);
7946 break;
7947 case 'd': // int
7948 number = va_arg (args_copy, int);
7949 break;
7950 case 'f': // float
7951 fnumber = va_arg (args_copy, double);
7952 break;
7953 default:
7954 break;
7955 }
7956 }
7957 va_end (args_copy);
7958 va_end (args);
7959}
7960
7961int
7962main ()
7963{
7964
7965 // Check bool.
7966 _Bool success = false;
7967
7968 // Check restrict.
7969 if (test_restrict ("String literal") == 0)
7970 success = true;
7971 char *restrict newvar = "Another string";
7972
7973 // Check varargs.
7974 test_varargs ("s, d' f .", "string", 65, 34.234);
7975 test_varargs_macros ();
7976
7977 // Check flexible array members.
7978 struct incomplete_array *ia =
7979 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7980 ia->datasize = 10;
7981 for (int i = 0; i < ia->datasize; ++i)
7982 ia->data[i] = i * 1.234;
7983
7984 // Check named initializers.
7985 struct named_init ni = {
7986 .number = 34,
7987 .name = L"Test wide string",
7988 .average = 543.34343,
7989 };
7990
7991 ni.number = 58;
7992
7993 int dynamic_array[ni.number];
7994 dynamic_array[ni.number - 1] = 543;
7995
7996 // work around unused variable warnings
7997 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7998 || dynamic_array[ni.number - 1] != 543);
7999
8000 ;
8001 return 0;
8002}
8003_ACEOF
cristy14fefe52012-05-21 00:59:18 +00008004for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy837d6dc2010-02-27 01:16:57 +00008005do
8006 CC="$ac_save_CC $ac_arg"
8007 if ac_fn_c_try_compile "$LINENO"; then :
8008 ac_cv_prog_cc_c99=$ac_arg
8009fi
8010rm -f core conftest.err conftest.$ac_objext
8011 test "x$ac_cv_prog_cc_c99" != "xno" && break
8012done
8013rm -f conftest.$ac_ext
8014CC=$ac_save_CC
8015
8016fi
8017# AC_CACHE_VAL
8018case "x$ac_cv_prog_cc_c99" in
8019 x)
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
8021$as_echo "none needed" >&6; } ;;
8022 xno)
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
8024$as_echo "unsupported" >&6; } ;;
8025 *)
8026 CC="$CC $ac_cv_prog_cc_c99"
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
8028$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
8029esac
8030if test "x$ac_cv_prog_cc_c99" != xno; then :
8031
8032fi
8033
8034
cristy73bd4a52010-10-05 11:24:23 +00008035
cristy17491be2014-06-24 01:10:53 +00008036ac_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
cristy73bd4a52010-10-05 11:24:23 +00008042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
8043$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008044if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008045 $as_echo_n "(cached) " >&6
8046else
8047 ac_cv_cflags_warn_all="no, unknown"
cristy17491be2014-06-24 01:10:53 +00008048ac_save_CFLAGS="$CFLAGS"
8049for ac_arg in "-warn all % -warn all" "-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" #
cristy73bd4a52010-10-05 11:24:23 +00008050do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
8051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8052/* end confdefs.h. */
8053
8054int
8055main ()
8056{
cristy24fc1fe2010-10-23 21:13:01 +00008057
cristy73bd4a52010-10-05 11:24:23 +00008058 ;
8059 return 0;
8060}
8061_ACEOF
8062if ac_fn_c_try_compile "$LINENO"; then :
8063 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
8064fi
8065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8066done
cristy17491be2014-06-24 01:10:53 +00008067CFLAGS="$ac_save_CFLAGS"
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; }
8072
8073
8074case ".$ac_cv_cflags_warn_all" in
8075 .ok|.ok,*) ;;
8076 .|.no|.no,*) ;;
8077 *) if ${CFLAGS+:} false; then :
8078 case " $CFLAGS " in
8079 *" $ac_cv_cflags_warn_all "*)
8080 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
8081 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
8082 ac_status=$?
8083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8084 test $ac_status = 0; }
8085 ;;
8086 *)
8087 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
8088 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
8089 ac_status=$?
8090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8091 test $ac_status = 0; }
8092 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
8093 ;;
8094 esac
8095else
8096 CFLAGS="$ac_cv_cflags_warn_all"
8097fi
8098 ;;
8099esac
8100
8101ac_ext=c
cristy73bd4a52010-10-05 11:24:23 +00008102ac_cpp='$CPP $CPPFLAGS'
8103ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8104ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8105ac_compiler_gnu=$ac_cv_c_compiler_gnu
8106
8107
cristya0b81c32010-01-22 02:54:33 +00008108
8109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8110$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8111set x ${MAKE-make}
8112ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00008113if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00008114 $as_echo_n "(cached) " >&6
8115else
8116 cat >conftest.make <<\_ACEOF
8117SHELL = /bin/sh
8118all:
8119 @echo '@@@%%%=$(MAKE)=@@@%%%'
8120_ACEOF
cristy98dddb52010-11-04 00:30:15 +00008121# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00008122case `${MAKE-make} -f conftest.make 2>/dev/null` in
8123 *@@@%%%=?*=@@@%%%*)
8124 eval ac_cv_prog_make_${ac_make}_set=yes;;
8125 *)
8126 eval ac_cv_prog_make_${ac_make}_set=no;;
8127esac
8128rm -f conftest.make
8129fi
8130if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8132$as_echo "yes" >&6; }
8133 SET_MAKE=
8134else
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8136$as_echo "no" >&6; }
8137 SET_MAKE="MAKE=${MAKE-make}"
8138fi
8139
cristy8b350f62009-11-15 23:12:43 +00008140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00008141$as_echo_n "checking whether ln -s works... " >&6; }
8142LN_S=$as_ln_s
8143if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00008144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00008145$as_echo "yes" >&6; }
8146else
cristy8b350f62009-11-15 23:12:43 +00008147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00008148$as_echo "no, using $LN_S" >&6; }
8149fi
8150
cristy8d0ff762013-03-10 20:33:28 +00008151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8152$as_echo_n "checking for a sed that does not truncate output... " >&6; }
8153if ${ac_cv_path_SED+:} false; then :
8154 $as_echo_n "(cached) " >&6
8155else
8156 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8157 for ac_i in 1 2 3 4 5 6 7; do
8158 ac_script="$ac_script$as_nl$ac_script"
8159 done
8160 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8161 { ac_script=; unset ac_script;}
8162 if test -z "$SED"; then
8163 ac_path_SED_found=false
8164 # Loop through the user's path and test for each of PROGNAME-LIST
8165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8166for as_dir in $PATH
8167do
8168 IFS=$as_save_IFS
8169 test -z "$as_dir" && as_dir=.
8170 for ac_prog in sed gsed; do
8171 for ac_exec_ext in '' $ac_executable_extensions; do
8172 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8173 as_fn_executable_p "$ac_path_SED" || continue
8174# Check for GNU ac_path_SED and select it if it is found.
8175 # Check for GNU $ac_path_SED
8176case `"$ac_path_SED" --version 2>&1` in
8177*GNU*)
8178 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8179*)
8180 ac_count=0
8181 $as_echo_n 0123456789 >"conftest.in"
8182 while :
8183 do
8184 cat "conftest.in" "conftest.in" >"conftest.tmp"
8185 mv "conftest.tmp" "conftest.in"
8186 cp "conftest.in" "conftest.nl"
8187 $as_echo '' >> "conftest.nl"
8188 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8189 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8190 as_fn_arith $ac_count + 1 && ac_count=$as_val
8191 if test $ac_count -gt ${ac_path_SED_max-0}; then
8192 # Best one so far, save it but keep looking for a better one
8193 ac_cv_path_SED="$ac_path_SED"
8194 ac_path_SED_max=$ac_count
8195 fi
8196 # 10*(2^10) chars as input seems more than enough
8197 test $ac_count -gt 10 && break
8198 done
8199 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8200esac
8201
8202 $ac_path_SED_found && break 3
8203 done
8204 done
8205 done
8206IFS=$as_save_IFS
8207 if test -z "$ac_cv_path_SED"; then
8208 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8209 fi
8210else
8211 ac_cv_path_SED=$SED
8212fi
8213
8214fi
8215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8216$as_echo "$ac_cv_path_SED" >&6; }
8217 SED="$ac_cv_path_SED"
8218 rm -f conftest.sed
8219
cristybc556452012-08-17 19:44:03 +00008220for ac_prog in gawk mawk nawk awk
8221do
8222 # Extract the first word of "$ac_prog", so it can be a program name with args.
8223set dummy $ac_prog; ac_word=$2
8224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8225$as_echo_n "checking for $ac_word... " >&6; }
8226if ${ac_cv_prog_AWK+:} false; then :
8227 $as_echo_n "(cached) " >&6
8228else
8229 if test -n "$AWK"; then
8230 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8231else
8232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8233for as_dir in $PATH
8234do
8235 IFS=$as_save_IFS
8236 test -z "$as_dir" && as_dir=.
8237 for ac_exec_ext in '' $ac_executable_extensions; do
8238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8239 ac_cv_prog_AWK="$ac_prog"
8240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8241 break 2
8242 fi
8243done
8244 done
8245IFS=$as_save_IFS
8246
8247fi
8248fi
8249AWK=$ac_cv_prog_AWK
8250if test -n "$AWK"; then
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8252$as_echo "$AWK" >&6; }
8253else
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8255$as_echo "no" >&6; }
8256fi
8257
8258
8259 test -n "$AWK" && break
8260done
8261
cristy73bd4a52010-10-05 11:24:23 +00008262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
8263$as_echo_n "checking if malloc debugging is wanted... " >&6; }
8264
8265# Check whether --with-dmalloc was given.
8266if test "${with_dmalloc+set}" = set; then :
8267 withval=$with_dmalloc; if test "$withval" = yes; then
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8269$as_echo "yes" >&6; }
8270
8271$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
8272
8273 LIBS="$LIBS -ldmalloc"
8274 LDFLAGS="$LDFLAGS -g"
8275else
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8277$as_echo "no" >&6; }
8278fi
8279else
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8281$as_echo "no" >&6; }
8282fi
8283
8284
8285
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
8287$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008288if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008289 $as_echo_n "(cached) " >&6
8290else
8291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8292/* end confdefs.h. */
8293#include <stdlib.h>
cristy73380532012-02-18 20:26:28 +00008294 static void foo(void) __attribute__ ((__unused__));
cristy73bd4a52010-10-05 11:24:23 +00008295 static void
8296 foo(void) {
8297 exit(1);
8298 }
8299
8300int
8301main ()
8302{
8303
8304 ;
8305 return 0;
8306}
8307_ACEOF
8308if ac_fn_c_try_compile "$LINENO"; then :
8309 ax_cv___attribute__=yes
8310else
8311 ax_cv___attribute__=no
8312
8313fi
8314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8315
8316fi
8317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
8318$as_echo "$ax_cv___attribute__" >&6; }
8319 if test "$ax_cv___attribute__" = "yes"; then
8320
8321$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
8322
8323 fi
8324
8325
8326
cristya0459972013-11-03 18:09:35 +00008327
8328
cristy17491be2014-06-24 01:10:53 +00008329
cristya0459972013-11-03 18:09:35 +00008330# Check whether --with-gcc-arch was given.
8331if test "${with_gcc_arch+set}" = set; then :
8332 withval=$with_gcc_arch; ax_gcc_arch=$withval
8333else
cristy17491be2014-06-24 01:10:53 +00008334 ax_gcc_arch=yes
cristya0459972013-11-03 18:09:35 +00008335fi
8336
8337
8338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8339$as_echo_n "checking for gcc architecture flag... " >&6; }
8340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8341$as_echo "" >&6; }
8342if ${ax_cv_gcc_archflag+:} false; then :
8343 $as_echo_n "(cached) " >&6
8344else
8345
8346ax_cv_gcc_archflag="unknown"
8347
8348if test "$GCC" = yes; then
8349
8350if test "x$ax_gcc_arch" = xyes; then
8351ax_gcc_arch=""
8352if test "$cross_compiling" = no; then
8353case $host_cpu in
cristy17491be2014-06-24 01:10:53 +00008354 i[3456]86*|x86_64*|amd64*) # use cpuid codes
cristya0459972013-11-03 18:09:35 +00008355
8356ac_ext=c
8357ac_cpp='$CPP $CPPFLAGS'
8358ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8359ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8360ac_compiler_gnu=$ac_cv_c_compiler_gnu
8361
8362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
8363$as_echo_n "checking for x86 cpuid 0 output... " >&6; }
8364if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
8365 $as_echo_n "(cached) " >&6
8366else
8367 if test "$cross_compiling" = yes; then :
8368 ax_cv_gcc_x86_cpuid_0=unknown
8369else
8370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8371/* end confdefs.h. */
8372#include <stdio.h>
8373int
8374main ()
8375{
8376
8377 int op = 0, eax, ebx, ecx, edx;
8378 FILE *f;
8379 __asm__("cpuid"
8380 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8381 : "a" (op));
8382 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8383 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8384 fclose(f);
8385 return 0;
8386
8387 ;
8388 return 0;
8389}
8390_ACEOF
8391if ac_fn_c_try_run "$LINENO"; then :
8392 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
8393else
8394 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
8395fi
8396rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8397 conftest.$ac_objext conftest.beam conftest.$ac_ext
8398fi
8399
8400fi
8401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
8402$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
8403ac_ext=c
8404ac_cpp='$CPP $CPPFLAGS'
8405ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8406ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8407ac_compiler_gnu=$ac_cv_c_compiler_gnu
8408
8409
8410
8411ac_ext=c
8412ac_cpp='$CPP $CPPFLAGS'
8413ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8414ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8415ac_compiler_gnu=$ac_cv_c_compiler_gnu
8416
8417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
8418$as_echo_n "checking for x86 cpuid 1 output... " >&6; }
8419if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
8420 $as_echo_n "(cached) " >&6
8421else
8422 if test "$cross_compiling" = yes; then :
8423 ax_cv_gcc_x86_cpuid_1=unknown
8424else
8425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8426/* end confdefs.h. */
8427#include <stdio.h>
8428int
8429main ()
8430{
8431
8432 int op = 1, eax, ebx, ecx, edx;
8433 FILE *f;
8434 __asm__("cpuid"
8435 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8436 : "a" (op));
8437 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8438 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8439 fclose(f);
8440 return 0;
8441
8442 ;
8443 return 0;
8444}
8445_ACEOF
8446if ac_fn_c_try_run "$LINENO"; then :
8447 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
8448else
8449 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
8450fi
8451rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8452 conftest.$ac_objext conftest.beam conftest.$ac_ext
8453fi
8454
8455fi
8456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
8457$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
8458ac_ext=c
8459ac_cpp='$CPP $CPPFLAGS'
8460ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8461ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8462ac_compiler_gnu=$ac_cv_c_compiler_gnu
8463
8464
8465 case $ax_cv_gcc_x86_cpuid_0 in
8466 *:756e6547:*:*) # Intel
8467 case $ax_cv_gcc_x86_cpuid_1 in
8468 *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
8469 *5??:*:*:*) ax_gcc_arch=pentium ;;
cristya0459972013-11-03 18:09:35 +00008470 *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
8471 *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) ax_gcc_arch="corei7 core2 pentium-m pentium3 pentiumpro" ;;
8472 *1?6c?:*:*:*|*[23]?66?:*:*:*) ax_gcc_arch="atom core2 pentium-m pentium3 pentiumpro" ;;
8473 *2?6[ad]?:*:*:*) ax_gcc_arch="corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
cristy17491be2014-06-24 01:10:53 +00008474 *[1-9a-f]?6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
8475 *6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8476 *6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8477 *6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8478 *6[9de]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
8479 *6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8480 *6f?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
8481 *6??:*:*:*) ax_gcc_arch=pentiumpro ;;
8482 *f3[347]:*:*:*|*f41347:*:*:*|*f6?:*:*:*)
cristya0459972013-11-03 18:09:35 +00008483 case $host_cpu in
8484 x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
8485 *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
8486 esac ;;
cristy17491be2014-06-24 01:10:53 +00008487 *f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
cristya0459972013-11-03 18:09:35 +00008488 esac ;;
8489 *:68747541:*:*) # AMD
8490 case $ax_cv_gcc_x86_cpuid_1 in
8491 *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
8492 *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
8493 *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
8494 *60?:*:*:*) ax_gcc_arch=k7 ;;
8495 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
8496 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
8497 *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
8498 *6[68a]?:*:*:*)
8499
8500ac_ext=c
8501ac_cpp='$CPP $CPPFLAGS'
8502ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8503ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8504ac_compiler_gnu=$ac_cv_c_compiler_gnu
8505
8506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5
8507$as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; }
8508if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then :
8509 $as_echo_n "(cached) " >&6
8510else
8511 if test "$cross_compiling" = yes; then :
8512 ax_cv_gcc_x86_cpuid_0x80000006=unknown
8513else
8514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8515/* end confdefs.h. */
8516#include <stdio.h>
8517int
8518main ()
8519{
8520
8521 int op = 0x80000006, eax, ebx, ecx, edx;
8522 FILE *f;
8523 __asm__("cpuid"
8524 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8525 : "a" (op));
8526 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8527 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8528 fclose(f);
8529 return 0;
8530
8531 ;
8532 return 0;
8533}
8534_ACEOF
8535if ac_fn_c_try_run "$LINENO"; then :
8536 ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid
8537else
8538 ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid
8539fi
8540rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8541 conftest.$ac_objext conftest.beam conftest.$ac_ext
8542fi
8543
8544fi
8545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5
8546$as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; }
8547ac_ext=c
8548ac_cpp='$CPP $CPPFLAGS'
8549ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8550ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8551ac_compiler_gnu=$ac_cv_c_compiler_gnu
8552
8553 # L2 cache size
8554 case $ax_cv_gcc_x86_cpuid_0x80000006 in
8555 *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256
8556 ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
8557 *) ax_gcc_arch="athlon-4 athlon k7" ;;
8558 esac ;;
cristy17491be2014-06-24 01:10:53 +00008559 *5??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
8560 *6??f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
8561 *[1-9a-f]??f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
8562 *f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
8563 *f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
8564 *f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
8565 *f??:*:*:*) ax_gcc_arch="k8" ;;
cristya0459972013-11-03 18:09:35 +00008566 esac ;;
8567 *:746e6543:*:*) # IDT
8568 case $ax_cv_gcc_x86_cpuid_1 in
8569 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
8570 *58?:*:*:*) ax_gcc_arch=winchip2 ;;
8571 *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
8572 *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
8573 esac ;;
8574 esac
8575 if test x"$ax_gcc_arch" = x; then # fallback
8576 case $host_cpu in
8577 i586*) ax_gcc_arch=pentium ;;
8578 i686*) ax_gcc_arch=pentiumpro ;;
8579 esac
8580 fi
8581 ;;
8582
8583 sparc*)
8584 # Extract the first word of "prtdiag", so it can be a program name with args.
8585set dummy prtdiag; ac_word=$2
8586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8587$as_echo_n "checking for $ac_word... " >&6; }
8588if ${ac_cv_path_PRTDIAG+:} false; then :
8589 $as_echo_n "(cached) " >&6
8590else
8591 case $PRTDIAG in
8592 [\\/]* | ?:[\\/]*)
8593 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
8594 ;;
8595 *)
8596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8597as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
8598for as_dir in $as_dummy
8599do
8600 IFS=$as_save_IFS
8601 test -z "$as_dir" && as_dir=.
8602 for ac_exec_ext in '' $ac_executable_extensions; do
8603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8604 ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
8605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8606 break 2
8607 fi
8608done
8609 done
8610IFS=$as_save_IFS
8611
8612 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
8613 ;;
8614esac
8615fi
8616PRTDIAG=$ac_cv_path_PRTDIAG
8617if test -n "$PRTDIAG"; then
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
8619$as_echo "$PRTDIAG" >&6; }
8620else
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8622$as_echo "no" >&6; }
8623fi
8624
8625
8626 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`
cristy17491be2014-06-24 01:10:53 +00008627 cputype=`echo "$cputype" | tr -d ' -' | $SED 's/SPARCIIi/SPARCII/' |tr $as_cr_LETTERS $as_cr_letters`
cristya0459972013-11-03 18:09:35 +00008628 case $cputype in
8629 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
8630 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
8631 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
8632 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
8633 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
8634 *cypress*) ax_gcc_arch=cypress ;;
8635 esac ;;
8636
8637 alphaev5) ax_gcc_arch=ev5 ;;
8638 alphaev56) ax_gcc_arch=ev56 ;;
8639 alphapca56) ax_gcc_arch="pca56 ev56" ;;
8640 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
8641 alphaev6) ax_gcc_arch=ev6 ;;
8642 alphaev67) ax_gcc_arch=ev67 ;;
8643 alphaev68) ax_gcc_arch="ev68 ev67" ;;
8644 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
8645 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
8646 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
8647
8648 powerpc*)
cristy17491be2014-06-24 01:10:53 +00008649 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`
8650 cputype=`echo $cputype | $SED -e 's/ppc//g;s/ *//g'`
cristya0459972013-11-03 18:09:35 +00008651 case $cputype in
8652 *750*) ax_gcc_arch="750 G3" ;;
8653 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
8654 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
8655 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
8656 *970*) ax_gcc_arch="970 G5 power4";;
8657 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
8658 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
8659 603ev|8240) ax_gcc_arch="$cputype 603e 603";;
8660 *) ax_gcc_arch=$cputype ;;
8661 esac
8662 ax_gcc_arch="$ax_gcc_arch powerpc"
8663 ;;
8664esac
8665fi # not cross-compiling
8666fi # guess arch
8667
8668if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
8669for arch in $ax_gcc_arch; do
8670 if test "xno" = xyes; then # if we require portable code
8671 flags="-mtune=$arch"
8672 # -mcpu=$arch and m$arch generate nonportable code on every arch except
8673 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr.
8674 case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
8675 else
8676 flags="-march=$arch -mcpu=$arch -m$arch"
8677 fi
8678 for flag in $flags; do
8679 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
8680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
8681$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
8682if eval \${$as_CACHEVAR+:} false; then :
8683 $as_echo_n "(cached) " >&6
8684else
8685
8686 ax_check_save_flags=$CFLAGS
8687 CFLAGS="$CFLAGS $flag"
8688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8689/* end confdefs.h. */
8690
8691int
8692main ()
8693{
8694
8695 ;
8696 return 0;
8697}
8698_ACEOF
8699if ac_fn_c_try_compile "$LINENO"; then :
8700 eval "$as_CACHEVAR=yes"
8701else
8702 eval "$as_CACHEVAR=no"
8703fi
8704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8705 CFLAGS=$ax_check_save_flags
8706fi
8707eval ac_res=\$$as_CACHEVAR
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8709$as_echo "$ac_res" >&6; }
8710if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
8711 ax_cv_gcc_archflag=$flag; break
8712else
8713 :
8714fi
8715
8716 done
8717 test "x$ax_cv_gcc_archflag" = xunknown || break
8718done
8719fi
8720
8721fi # $GCC=yes
8722
8723fi
8724
8725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8726$as_echo_n "checking for gcc architecture flag... " >&6; }
8727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
8728$as_echo "$ax_cv_gcc_archflag" >&6; }
8729if test "x$ax_cv_gcc_archflag" = xunknown; then
8730 :
8731else
8732 CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
8733fi
8734
8735
8736
cristy73bd4a52010-10-05 11:24:23 +00008737if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8738 if test -n "$ac_tool_prefix"; then
8739 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8740set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8742$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008743if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008744 $as_echo_n "(cached) " >&6
8745else
8746 case $PKG_CONFIG in
8747 [\\/]* | ?:[\\/]*)
8748 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8749 ;;
8750 *)
8751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8752for as_dir in $PATH
8753do
8754 IFS=$as_save_IFS
8755 test -z "$as_dir" && as_dir=.
8756 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008758 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8760 break 2
8761 fi
8762done
8763 done
8764IFS=$as_save_IFS
8765
8766 ;;
8767esac
8768fi
8769PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8770if test -n "$PKG_CONFIG"; then
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8772$as_echo "$PKG_CONFIG" >&6; }
8773else
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8775$as_echo "no" >&6; }
8776fi
8777
8778
8779fi
8780if test -z "$ac_cv_path_PKG_CONFIG"; then
8781 ac_pt_PKG_CONFIG=$PKG_CONFIG
8782 # Extract the first word of "pkg-config", so it can be a program name with args.
8783set dummy pkg-config; ac_word=$2
8784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8785$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008786if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008787 $as_echo_n "(cached) " >&6
8788else
8789 case $ac_pt_PKG_CONFIG in
8790 [\\/]* | ?:[\\/]*)
8791 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8792 ;;
8793 *)
8794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8795for as_dir in $PATH
8796do
8797 IFS=$as_save_IFS
8798 test -z "$as_dir" && as_dir=.
8799 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008801 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8803 break 2
8804 fi
8805done
8806 done
8807IFS=$as_save_IFS
8808
8809 ;;
8810esac
8811fi
8812ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8813if test -n "$ac_pt_PKG_CONFIG"; then
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8815$as_echo "$ac_pt_PKG_CONFIG" >&6; }
8816else
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8818$as_echo "no" >&6; }
8819fi
8820
8821 if test "x$ac_pt_PKG_CONFIG" = x; then
8822 PKG_CONFIG=""
8823 else
8824 case $cross_compiling:$ac_tool_warned in
8825yes:)
8826{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8827$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8828ac_tool_warned=yes ;;
8829esac
8830 PKG_CONFIG=$ac_pt_PKG_CONFIG
8831 fi
8832else
8833 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8834fi
8835
8836fi
8837if test -n "$PKG_CONFIG"; then
8838 _pkg_min_version=0.9.0
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8840$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8841 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8843$as_echo "yes" >&6; }
8844 else
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8846$as_echo "no" >&6; }
8847 PKG_CONFIG=""
8848 fi
8849
8850fi
cristy3ed852e2009-09-05 21:47:34 +00008851
cristyd95b7a52013-10-23 13:12:53 +00008852# Test for 64-bit build.
8853# The cast to long int works around a bug in the HP C Compiler
8854# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8855# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8856# This bug is HP SR number 8606223364.
8857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
8858$as_echo_n "checking size of size_t... " >&6; }
8859if ${ac_cv_sizeof_size_t+:} false; then :
8860 $as_echo_n "(cached) " >&6
8861else
8862 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
8863
8864else
8865 if test "$ac_cv_type_size_t" = yes; then
8866 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8867$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8868as_fn_error 77 "cannot compute sizeof (size_t)
8869See \`config.log' for more details" "$LINENO" 5; }
8870 else
8871 ac_cv_sizeof_size_t=0
8872 fi
8873fi
8874
8875fi
8876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
8877$as_echo "$ac_cv_sizeof_size_t" >&6; }
8878
8879
8880
8881cat >>confdefs.h <<_ACEOF
8882#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
8883_ACEOF
8884
8885
8886
8887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
8888$as_echo_n "checking for C compiler vendor... " >&6; }
8889if ${ax_cv_c_compiler_vendor+:} false; then :
8890 $as_echo_n "(cached) " >&6
8891else
8892 # note: don't check for gcc first since some other compilers define __GNUC__
8893 vendors="intel: __ICC,__ECC,__INTEL_COMPILER
8894 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__
8895 pathscale: __PATHCC__,__PATHSCALE__
8896 clang: __clang__
cristy17491be2014-06-24 01:10:53 +00008897 fujitsu: __FUJITSU
cristyd95b7a52013-10-23 13:12:53 +00008898 gnu: __GNUC__
8899 sun: __SUNPRO_C,__SUNPRO_CC
8900 hp: __HP_cc,__HP_aCC
8901 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
8902 borland: __BORLANDC__,__TURBOC__
8903 comeau: __COMO__
8904 cray: _CRAYC
8905 kai: __KCC
8906 lcc: __LCC__
8907 sgi: __sgi,sgi
8908 microsoft: _MSC_VER
8909 metrowerks: __MWERKS__
8910 watcom: __WATCOMC__
8911 portland: __PGI
8912 unknown: UNKNOWN"
8913 for ventest in $vendors; do
8914 case $ventest in
8915 *:) vendor=$ventest; continue ;;
8916 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
8917 esac
8918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8919/* end confdefs.h. */
8920
8921int
8922main ()
8923{
8924
8925 #if !($vencpp)
8926 thisisanerror;
8927 #endif
8928
8929 ;
8930 return 0;
8931}
8932_ACEOF
8933if ac_fn_c_try_compile "$LINENO"; then :
8934 break
8935fi
8936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8937 done
8938 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
8939
8940fi
8941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
8942$as_echo "$ax_cv_c_compiler_vendor" >&6; }
8943
cristyd95b7a52013-10-23 13:12:53 +00008944# The AX_CFLAGS_WARN_ALL macro doesn't currently work for sunpro
8945# compiler.
8946if test "$ax_cv_c_compiler_vendor" != "sun"; then
cristy17491be2014-06-24 01:10:53 +00008947 ac_ext=c
cristyd95b7a52013-10-23 13:12:53 +00008948ac_cpp='$CPP $CPPFLAGS'
8949ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8950ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8951ac_compiler_gnu=$ac_cv_c_compiler_gnu
8952
cristy17491be2014-06-24 01:10:53 +00008953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
8954$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
8955if ${ac_cv_cflags_warn_all+:} false; then :
8956 $as_echo_n "(cached) " >&6
8957else
8958 ac_cv_cflags_warn_all="no, unknown"
8959ac_save_CFLAGS="$CFLAGS"
8960for ac_arg in "-warn all % -warn all" "-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" #
cristyd95b7a52013-10-23 13:12:53 +00008961do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
8962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8963/* end confdefs.h. */
8964
8965int
8966main ()
8967{
8968
8969 ;
8970 return 0;
8971}
8972_ACEOF
8973if ac_fn_c_try_compile "$LINENO"; then :
8974 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
8975fi
8976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8977done
cristy17491be2014-06-24 01:10:53 +00008978CFLAGS="$ac_save_CFLAGS"
8979
8980fi
8981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
8982$as_echo "$ac_cv_cflags_warn_all" >&6; }
8983
8984
8985case ".$ac_cv_cflags_warn_all" in
8986 .ok|.ok,*) ;;
8987 .|.no|.no,*) ;;
8988 *) if ${CFLAGS+:} false; then :
8989 case " $CFLAGS " in
8990 *" $ac_cv_cflags_warn_all "*)
8991 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
8992 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
8993 ac_status=$?
8994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8995 test $ac_status = 0; }
8996 ;;
8997 *)
8998 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
8999 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
9000 ac_status=$?
9001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9002 test $ac_status = 0; }
9003 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
9004 ;;
9005 esac
9006else
9007 CFLAGS="$ac_cv_cflags_warn_all"
9008fi
9009 ;;
9010esac
9011
9012ac_ext=c
cristyd95b7a52013-10-23 13:12:53 +00009013ac_cpp='$CPP $CPPFLAGS'
9014ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9015ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9016ac_compiler_gnu=$ac_cv_c_compiler_gnu
9017
9018
9019fi
cristyd95b7a52013-10-23 13:12:53 +00009020
9021if test "x$GCC" = "xyes"; then
9022 CFLAGS="$CFLAGS -fexceptions"
9023 touch local.exp
9024else
9025 cat > local.exp <<EOF
9026set CC_FOR_TARGET "$CC"
9027EOF
9028fi
9029
cristy9b86f202012-11-28 21:55:35 +00009030# Check for linker script support
9031
9032 # Check whether --enable-ld-version-script was given.
9033if test "${enable_ld_version_script+set}" = set; then :
9034 enableval=$enable_ld_version_script; have_ld_version_script=$enableval
9035fi
9036
9037 if test -z "$have_ld_version_script"; then
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
9039$as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
9040 save_LDFLAGS="$LDFLAGS"
9041 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
9042 cat > conftest.map <<EOF
9043foo
9044EOF
9045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9046/* end confdefs.h. */
9047
9048int
9049main ()
9050{
9051
9052 ;
9053 return 0;
9054}
9055_ACEOF
9056if ac_fn_c_try_link "$LINENO"; then :
9057 accepts_syntax_errors=yes
9058else
9059 accepts_syntax_errors=no
9060fi
9061rm -f core conftest.err conftest.$ac_objext \
9062 conftest$ac_exeext conftest.$ac_ext
9063 if test "$accepts_syntax_errors" = no; then
9064 cat > conftest.map <<EOF
9065VERS_1 {
9066 global: sym;
9067};
9068
9069VERS_2 {
9070 global: sym;
9071} VERS_1;
9072EOF
9073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9074/* end confdefs.h. */
9075
9076int
9077main ()
9078{
9079
9080 ;
9081 return 0;
9082}
9083_ACEOF
9084if ac_fn_c_try_link "$LINENO"; then :
9085 have_ld_version_script=yes
9086else
9087 have_ld_version_script=no
9088fi
9089rm -f core conftest.err conftest.$ac_objext \
9090 conftest$ac_exeext conftest.$ac_ext
9091 else
9092 have_ld_version_script=no
9093 fi
9094 rm -f conftest.map
9095 LDFLAGS="$save_LDFLAGS"
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
9097$as_echo "$have_ld_version_script" >&6; }
9098 fi
9099 if test "$have_ld_version_script" = "yes"; then
9100 HAVE_LD_VERSION_SCRIPT_TRUE=
9101 HAVE_LD_VERSION_SCRIPT_FALSE='#'
9102else
9103 HAVE_LD_VERSION_SCRIPT_TRUE='#'
9104 HAVE_LD_VERSION_SCRIPT_FALSE=
9105fi
9106
9107
9108
cristy3ed852e2009-09-05 21:47:34 +00009109#
cristy3ed852e2009-09-05 21:47:34 +00009110# Enable run-time checking.
9111#
9112# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00009113if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009114 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
9115else
9116 enable_bounds_checking='no'
9117fi
9118
9119
9120if test "$enable_bounds_checking" = yes; then
9121
cristy8b350f62009-11-15 23:12:43 +00009122$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009123
9124fi
9125
9126#
9127# Tests for Windows
9128#
9129
9130
9131
9132GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00009133native_win32_build='no'
9134cygwin_build='no'
9135case "${host_os}" in
9136 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00009137 cygwin_build='yes'
9138 GDI32_LIBS='-lgdi32'
9139 ;;
9140 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00009141 native_win32_build='yes'
9142 GDI32_LIBS='-lgdi32'
9143 ;;
9144esac
9145if test "${GDI32_LIBS}x" != 'x'; then
9146
cristy8b350f62009-11-15 23:12:43 +00009147$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009148
9149fi
9150
cristy73bd4a52010-10-05 11:24:23 +00009151 if test "${GDI32_LIBS}x" != 'x' ; then
9152 WINGDI32_DELEGATE_TRUE=
9153 WINGDI32_DELEGATE_FALSE='#'
9154else
9155 WINGDI32_DELEGATE_TRUE='#'
9156 WINGDI32_DELEGATE_FALSE=
9157fi
9158
9159 if test "${native_win32_build}" = 'yes' ; then
9160 WIN32_NATIVE_BUILD_TRUE=
9161 WIN32_NATIVE_BUILD_FALSE='#'
9162else
9163 WIN32_NATIVE_BUILD_TRUE='#'
9164 WIN32_NATIVE_BUILD_FALSE=
9165fi
9166
9167 if test "${cygwin_build}" = 'yes' ; then
9168 CYGWIN_BUILD_TRUE=
9169 CYGWIN_BUILD_FALSE='#'
9170else
9171 CYGWIN_BUILD_TRUE='#'
9172 CYGWIN_BUILD_FALSE=
9173fi
9174
9175 if test "x${CC}" = 'xcl.exe' ; then
9176 USING_CL_TRUE=
9177 USING_CL_FALSE='#'
9178else
9179 USING_CL_TRUE='#'
9180 USING_CL_FALSE=
9181fi
9182
cristy3ed852e2009-09-05 21:47:34 +00009183
9184WinPathScript="${srcdirfull}/winpath.sh"
9185
9186
9187#
9188# Compiler flags tweaks
9189#
9190if test "${GCC}" != "yes"; then
9191 case "${host}" in
9192 *-*-hpux* )
9193 # aCC: HP ANSI C++ B3910B A.03.34
9194 CFLAGS="${CFLAGS} -Wp,-H30000"
9195 if test -n "${CXXFLAGS}"; then
9196 CXXFLAGS='-AA'
9197 else
9198 CXXFLAGS="${CXXFLAGS} -AA"
9199 fi
9200 ;;
9201 *-dec-osf5.* )
9202 # Compaq alphaev68-dec-osf5.1 compiler
9203 if test -n "${CXXFLAGS}"; then
9204 CXXFLAGS='-std strict_ansi -noimplicit_include'
9205 else
9206 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
9207 fi
9208 esac
9209fi
9210
9211# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00009212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00009213$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009214if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009215 $as_echo_n "(cached) " >&6
9216else
9217
9218im_cv_ld_lazyload='none'
9219case "${host}" in
9220 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
9221 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
9222 im_cv_ld_lazyload='-Wl,-zlazyload'
9223 fi
9224 ;;
9225esac
9226
9227fi
cristy8b350f62009-11-15 23:12:43 +00009228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00009229$as_echo "$im_cv_ld_lazyload" >&6; }
9230if test "${im_cv_ld_lazyload}" != 'none' ; then
9231 if test -z "${LDFLAGS}" ; then
9232 LDFLAGS="${im_cv_ld_lazyload}"
9233 else
9234 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
9235 fi
9236fi
9237
9238case "$host" in
cristyc37574e2013-02-16 01:04:55 +00009239 *darwin* | *-macos10*)
cristyb3b90d32013-02-16 15:44:08 +00009240 CFLAGS="${CFLAGS} -D_FORTIFY_SOURCE=0"
cristyc37574e2013-02-16 01:04:55 +00009241 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00009242if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009243 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
9244else
9245 build_osxuniversal=no
9246fi
9247
9248
cristyc37574e2013-02-16 01:04:55 +00009249 if test "${build_osxuniversal}" != no ; then
9250 if test "$enable_dependency_tracking" != no ; then
9251 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00009252Please re-run configure with these options:
9253 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00009254 " "$LINENO" 5
cristyc37574e2013-02-16 01:04:55 +00009255 fi
9256 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9257 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9258 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
cristy3ed852e2009-09-05 21:47:34 +00009259 fi
9260 ;;
9261esac
9262
cristy0151ae12011-10-28 16:32:29 +00009263#
9264# ARCH specific include directory
9265#
9266
cristy670aa3c2011-11-03 00:54:00 +00009267# Check whether --with-includearch-dir was given.
9268if test "${with_includearch_dir+set}" = set; then :
9269 withval=$with_includearch_dir; includearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00009270else
cristy670aa3c2011-11-03 00:54:00 +00009271 includearch_dir=$INCLUDE_DIR
cristy0151ae12011-10-28 16:32:29 +00009272fi
9273
9274
cristyd286fd72013-02-24 19:25:33 +00009275eval "eval INCLUDEARCH_DIR=$includearch_dir"
cristyac9041a2011-10-28 16:52:32 +00009276
cristy0151ae12011-10-28 16:32:29 +00009277
9278#
9279# ARCH specific configuration directory
9280#
9281
cristy670aa3c2011-11-03 00:54:00 +00009282# Check whether --with-sharearch-dir was given.
9283if test "${with_sharearch_dir+set}" = set; then :
9284 withval=$with_sharearch_dir; sharearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00009285else
cristy408ebcd2011-11-14 01:36:57 +00009286 sharearch_dir="${LIB_DIR}"
cristy0151ae12011-10-28 16:32:29 +00009287fi
9288
9289
cristy670aa3c2011-11-03 00:54:00 +00009290eval "eval SHAREARCH_DIR=$sharearch_dir"
cristyac9041a2011-10-28 16:52:32 +00009291
cristy0151ae12011-10-28 16:32:29 +00009292
cristy2ec87cc2013-02-18 17:46:50 +00009293# Path to the pkgconfig folder
9294
9295# Check whether --with-pkgconfigdir was given.
9296if test "${with_pkgconfigdir+set}" = set; then :
9297 withval=$with_pkgconfigdir; pkgconfigdir="$withval"
9298else
9299 pkgconfigdir='${libdir}/pkgconfig'
9300fi
9301
9302
9303
cristy0151ae12011-10-28 16:32:29 +00009304#
cristy3ed852e2009-09-05 21:47:34 +00009305# Enable support for threads
cristy1ae5c992013-07-30 14:55:07 +00009306#
9307# Find Posix threads library
9308#
cristy3ed852e2009-09-05 21:47:34 +00009309
9310# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00009311if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009312 withval=$with_threads; with_threads=$withval
9313else
9314 with_threads='yes'
9315fi
9316
9317
cristy1ae5c992013-07-30 14:55:07 +00009318THREAD_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00009319have_threads=no
9320if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00009321
9322
cristy73bd4a52010-10-05 11:24:23 +00009323ac_ext=c
9324ac_cpp='$CPP $CPPFLAGS'
9325ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9326ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9327ac_compiler_gnu=$ac_cv_c_compiler_gnu
9328
9329ax_pthread_ok=no
9330
9331# We used to check for pthread.h first, but this fails if pthread.h
9332# requires special compiler flags (e.g. on True64 or Sequent).
9333# It gets checked for in the link test anyway.
9334
9335# First of all, check if the user has set any of the PTHREAD_LIBS,
9336# etcetera environment variables, and if threads linking works using
9337# them:
9338if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9339 save_CFLAGS="$CFLAGS"
9340 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9341 save_LIBS="$LIBS"
9342 LIBS="$PTHREAD_LIBS $LIBS"
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9344$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9346/* end confdefs.h. */
9347
9348/* Override any GCC internal prototype to avoid an error.
9349 Use char because int might match the return type of a GCC
9350 builtin and then its argument prototype would still apply. */
9351#ifdef __cplusplus
9352extern "C"
9353#endif
9354char pthread_join ();
9355int
9356main ()
9357{
9358return pthread_join ();
9359 ;
9360 return 0;
9361}
9362_ACEOF
9363if ac_fn_c_try_link "$LINENO"; then :
9364 ax_pthread_ok=yes
9365fi
9366rm -f core conftest.err conftest.$ac_objext \
9367 conftest$ac_exeext conftest.$ac_ext
9368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9369$as_echo "$ax_pthread_ok" >&6; }
9370 if test x"$ax_pthread_ok" = xno; then
9371 PTHREAD_LIBS=""
9372 PTHREAD_CFLAGS=""
9373 fi
9374 LIBS="$save_LIBS"
9375 CFLAGS="$save_CFLAGS"
9376fi
9377
9378# We must check for the threads library under a number of different
9379# names; the ordering is very important because some systems
9380# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9381# libraries is broken (non-POSIX).
9382
9383# Create a list of thread flags to try. Items starting with a "-" are
9384# C compiler flags, and other items are library names, except for "none"
9385# which indicates that we try without any flags at all, and "pthread-config"
9386# which is a program returning the flags for the Pth emulation library.
9387
cristy2ec87cc2013-02-18 17:46:50 +00009388ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009389
9390# The ordering *is* (sometimes) important. Some notes on the
9391# individual items follow:
9392
9393# pthreads: AIX (must check this before -lpthread)
9394# none: in case threads are in libc; should be tried before -Kthread and
9395# other compiler flags to prevent continual compiler warnings
9396# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9397# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9398# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9399# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9400# -pthreads: Solaris/gcc
9401# -mthreads: Mingw32/gcc, Lynx/gcc
9402# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9403# doesn't hurt to check since this sometimes defines pthreads too;
9404# also defines -D_REENTRANT)
9405# ... -mt is also the pthreads flag for HP/aCC
9406# pthread: Linux, etcetera
9407# --thread-safe: KAI C++
9408# pthread-config: use pthread-config program (for GNU Pth library)
9409
cristy2ec87cc2013-02-18 17:46:50 +00009410case ${host_os} in
9411 solaris*)
cristy73bd4a52010-10-05 11:24:23 +00009412
9413 # On Solaris (at least, for some versions), libc contains stubbed
9414 # (non-functional) versions of the pthreads routines, so link-based
9415 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9416 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9417 # a function called by this macro, so we could check for that, but
9418 # who knows whether they'll stub that too in a future libc.) So,
9419 # we'll just look for -pthreads and -lpthread first:
9420
9421 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9422 ;;
9423
cristy2ec87cc2013-02-18 17:46:50 +00009424 darwin*)
cristya316db12011-10-24 00:49:45 +00009425 ax_pthread_flags="-pthread $ax_pthread_flags"
9426 ;;
cristy73bd4a52010-10-05 11:24:23 +00009427esac
9428
cristy17491be2014-06-24 01:10:53 +00009429# Clang doesn't consider unrecognized options an error unless we specify
9430# -Werror. We throw in some extra Clang-specific options to ensure that
9431# this doesn't happen for GCC, which also accepts -Werror.
9432
9433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
9434$as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
9435save_CFLAGS="$CFLAGS"
9436ax_pthread_extra_flags="-Werror"
9437CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
9438cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9439/* end confdefs.h. */
9440int foo(void);
9441int
9442main ()
9443{
9444foo()
9445 ;
9446 return 0;
9447}
9448_ACEOF
9449if ac_fn_c_try_compile "$LINENO"; then :
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9451$as_echo "yes" >&6; }
9452else
9453 ax_pthread_extra_flags=
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9455$as_echo "no" >&6; }
9456fi
9457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9458CFLAGS="$save_CFLAGS"
9459
cristy73bd4a52010-10-05 11:24:23 +00009460if test x"$ax_pthread_ok" = xno; then
9461for flag in $ax_pthread_flags; do
9462
9463 case $flag in
9464 none)
9465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9466$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9467 ;;
9468
9469 -*)
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9471$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9472 PTHREAD_CFLAGS="$flag"
9473 ;;
9474
cristya316db12011-10-24 00:49:45 +00009475 pthread-config)
9476 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009477set dummy pthread-config; ac_word=$2
9478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9479$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009480if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009481 $as_echo_n "(cached) " >&6
9482else
9483 if test -n "$ax_pthread_config"; then
9484 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9485else
9486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9487for as_dir in $PATH
9488do
9489 IFS=$as_save_IFS
9490 test -z "$as_dir" && as_dir=.
9491 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009493 ac_cv_prog_ax_pthread_config="yes"
9494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9495 break 2
9496 fi
9497done
9498 done
9499IFS=$as_save_IFS
9500
9501 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9502fi
9503fi
9504ax_pthread_config=$ac_cv_prog_ax_pthread_config
9505if test -n "$ax_pthread_config"; then
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9507$as_echo "$ax_pthread_config" >&6; }
9508else
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9510$as_echo "no" >&6; }
9511fi
9512
9513
cristya316db12011-10-24 00:49:45 +00009514 if test x"$ax_pthread_config" = xno; then continue; fi
9515 PTHREAD_CFLAGS="`pthread-config --cflags`"
9516 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9517 ;;
cristy73bd4a52010-10-05 11:24:23 +00009518
9519 *)
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9521$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9522 PTHREAD_LIBS="-l$flag"
9523 ;;
9524 esac
9525
9526 save_LIBS="$LIBS"
9527 save_CFLAGS="$CFLAGS"
9528 LIBS="$PTHREAD_LIBS $LIBS"
cristy17491be2014-06-24 01:10:53 +00009529 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
cristy73bd4a52010-10-05 11:24:23 +00009530
9531 # Check for various functions. We must include pthread.h,
9532 # since some functions may be macros. (On the Sequent, we
9533 # need a special flag -Kthread to make this header compile.)
9534 # We check for pthread_join because it is in -lpthread on IRIX
9535 # while pthread_create is in libc. We check for pthread_attr_init
9536 # due to DEC craziness with -lpthreads. We check for
9537 # pthread_cleanup_push because it is one of the few pthread
9538 # functions on Solaris that doesn't have a non-functional libc stub.
9539 # We try pthread_create on general principles.
9540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9541/* end confdefs.h. */
9542#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009543 static void routine(void *a) { a = 0; }
9544 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009545int
9546main ()
9547{
9548pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009549 pthread_create(&th, 0, start_routine, 0);
9550 pthread_join(th, 0);
9551 pthread_attr_init(&attr);
9552 pthread_cleanup_push(routine, 0);
9553 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009554 ;
9555 return 0;
9556}
9557_ACEOF
9558if ac_fn_c_try_link "$LINENO"; then :
9559 ax_pthread_ok=yes
9560fi
9561rm -f core conftest.err conftest.$ac_objext \
9562 conftest$ac_exeext conftest.$ac_ext
9563
9564 LIBS="$save_LIBS"
9565 CFLAGS="$save_CFLAGS"
9566
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9568$as_echo "$ax_pthread_ok" >&6; }
9569 if test "x$ax_pthread_ok" = xyes; then
9570 break;
9571 fi
9572
9573 PTHREAD_LIBS=""
9574 PTHREAD_CFLAGS=""
9575done
9576fi
9577
9578# Various other checks:
9579if test "x$ax_pthread_ok" = xyes; then
9580 save_LIBS="$LIBS"
9581 LIBS="$PTHREAD_LIBS $LIBS"
9582 save_CFLAGS="$CFLAGS"
9583 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9584
9585 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009587$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009588 attr_name=unknown
9589 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009591/* end confdefs.h. */
9592#include <pthread.h>
9593int
9594main ()
9595{
cristya316db12011-10-24 00:49:45 +00009596int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009597 ;
9598 return 0;
9599}
9600_ACEOF
9601if ac_fn_c_try_link "$LINENO"; then :
9602 attr_name=$attr; break
9603fi
9604rm -f core conftest.err conftest.$ac_objext \
9605 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009606 done
cristy73bd4a52010-10-05 11:24:23 +00009607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9608$as_echo "$attr_name" >&6; }
9609 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9610
9611cat >>confdefs.h <<_ACEOF
9612#define PTHREAD_CREATE_JOINABLE $attr_name
9613_ACEOF
9614
9615 fi
9616
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9618$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9619 flag=no
cristy2ec87cc2013-02-18 17:46:50 +00009620 case ${host_os} in
9621 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
9622 osf* | hpux*) flag="-D_REENTRANT";;
9623 solaris*)
9624 if test "$GCC" = "yes"; then
9625 flag="-D_REENTRANT"
9626 else
cristy17491be2014-06-24 01:10:53 +00009627 # TODO: What about Clang on Solaris?
cristy2ec87cc2013-02-18 17:46:50 +00009628 flag="-mt -D_REENTRANT"
9629 fi
9630 ;;
cristy73bd4a52010-10-05 11:24:23 +00009631 esac
cristy17491be2014-06-24 01:10:53 +00009632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
9633$as_echo "$flag" >&6; }
cristy73bd4a52010-10-05 11:24:23 +00009634 if test "x$flag" != xno; then
9635 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9636 fi
9637
cristya316db12011-10-24 00:49:45 +00009638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9639$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9640if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9641 $as_echo_n "(cached) " >&6
9642else
9643
9644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9645/* end confdefs.h. */
cristy17491be2014-06-24 01:10:53 +00009646#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009647int
9648main ()
9649{
9650int i = PTHREAD_PRIO_INHERIT;
9651 ;
9652 return 0;
9653}
9654_ACEOF
9655if ac_fn_c_try_link "$LINENO"; then :
9656 ax_cv_PTHREAD_PRIO_INHERIT=yes
9657else
9658 ax_cv_PTHREAD_PRIO_INHERIT=no
9659fi
9660rm -f core conftest.err conftest.$ac_objext \
9661 conftest$ac_exeext conftest.$ac_ext
9662
9663fi
9664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9665$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9666 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9667
9668$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9669
9670fi
9671
cristy73bd4a52010-10-05 11:24:23 +00009672 LIBS="$save_LIBS"
9673 CFLAGS="$save_CFLAGS"
9674
cristy23493c42013-04-11 16:04:59 +00009675 # More AIX lossage: compile with *_r variant
9676 if test "x$GCC" != xyes; then
9677 case $host_os in
9678 aix*)
9679 case "x/$CC" in #(
9680 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
9681 #handle absolute path differently from PATH based program lookup
9682 case "x$CC" in #(
9683 x/*) :
9684 if as_fn_executable_p ${CC}_r; then :
9685 PTHREAD_CC="${CC}_r"
9686fi ;; #(
9687 *) :
9688 for ac_prog in ${CC}_r
cristy73bd4a52010-10-05 11:24:23 +00009689do
9690 # Extract the first word of "$ac_prog", so it can be a program name with args.
9691set dummy $ac_prog; ac_word=$2
9692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9693$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009694if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009695 $as_echo_n "(cached) " >&6
9696else
9697 if test -n "$PTHREAD_CC"; then
9698 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9699else
9700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9701for as_dir in $PATH
9702do
9703 IFS=$as_save_IFS
9704 test -z "$as_dir" && as_dir=.
9705 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009707 ac_cv_prog_PTHREAD_CC="$ac_prog"
9708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9709 break 2
9710 fi
9711done
9712 done
9713IFS=$as_save_IFS
9714
9715fi
9716fi
9717PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9718if test -n "$PTHREAD_CC"; then
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9720$as_echo "$PTHREAD_CC" >&6; }
9721else
9722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9723$as_echo "no" >&6; }
9724fi
9725
9726
9727 test -n "$PTHREAD_CC" && break
9728done
cristy23493c42013-04-11 16:04:59 +00009729test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9730 ;;
9731esac ;; #(
9732 *) :
9733 ;;
9734esac
9735 ;;
9736 esac
cristya316db12011-10-24 00:49:45 +00009737 fi
cristy73bd4a52010-10-05 11:24:23 +00009738fi
9739
cristy23493c42013-04-11 16:04:59 +00009740test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9741
cristy73bd4a52010-10-05 11:24:23 +00009742
9743
9744
9745
9746# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9747if test x"$ax_pthread_ok" = xyes; then
9748
9749$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9750
9751 :
9752else
9753 ax_pthread_ok=no
9754
9755fi
9756ac_ext=c
9757ac_cpp='$CPP $CPPFLAGS'
9758ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9759ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9760ac_compiler_gnu=$ac_cv_c_compiler_gnu
9761
9762
cristy7acf8fb2010-09-23 19:58:53 +00009763 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00009764 have_threads=yes
9765 DEF_THREAD="$PTHREAD_CFLAGS"
9766 CFLAGS="$CFLAGS $DEF_THREAD"
9767 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
cristy1ae5c992013-07-30 14:55:07 +00009768 THREAD_LIBS="$PTHREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +00009769 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00009770 { $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 +00009771$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
9772 CC="$PTHREAD_CC"
9773 fi
cristy55bf91c2010-09-24 00:29:41 +00009774
9775$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
9776
cristy3ed852e2009-09-05 21:47:34 +00009777 fi
9778fi
cristy1ae5c992013-07-30 14:55:07 +00009779LIBS="$LIBS $THREAD_LIBS"
9780
cristy3ed852e2009-09-05 21:47:34 +00009781
9782# Enable support for OpenMP
9783if test "$have_threads" != 'yes'; then
9784 ac_cv_prog_c_openmp=unsupported
9785fi
9786
9787 OPENMP_CFLAGS=
9788 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00009789if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009790 enableval=$enable_openmp;
9791fi
9792
9793 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00009794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009795$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009796if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009797 $as_echo_n "(cached) " >&6
9798else
cristy8b350f62009-11-15 23:12:43 +00009799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9800/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009801
9802#ifndef _OPENMP
9803 choke me
9804#endif
9805#include <omp.h>
9806int main () { return omp_get_num_threads (); }
9807
9808_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009809if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009810 ac_cv_prog_c_openmp='none needed'
9811else
cristy8b350f62009-11-15 23:12:43 +00009812 ac_cv_prog_c_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +00009813 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
9814 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +00009815 ac_save_CFLAGS=$CFLAGS
9816 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00009817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9818/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009819
9820#ifndef _OPENMP
9821 choke me
9822#endif
9823#include <omp.h>
9824int main () { return omp_get_num_threads (); }
9825
9826_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009827if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009828 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00009829fi
cristy8b350f62009-11-15 23:12:43 +00009830rm -f core conftest.err conftest.$ac_objext \
9831 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009832 CFLAGS=$ac_save_CFLAGS
9833 if test "$ac_cv_prog_c_openmp" != unsupported; then
9834 break
9835 fi
9836 done
9837fi
cristy8b350f62009-11-15 23:12:43 +00009838rm -f core conftest.err conftest.$ac_objext \
9839 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009840fi
cristy8b350f62009-11-15 23:12:43 +00009841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00009842$as_echo "$ac_cv_prog_c_openmp" >&6; }
9843 case $ac_cv_prog_c_openmp in #(
9844 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00009845 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00009846 *)
cristy8b350f62009-11-15 23:12:43 +00009847 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00009848 esac
9849 fi
9850
9851
9852CFLAGS="$OPENMP_CFLAGS $CFLAGS"
9853MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
9854
cristy391f1ce2010-09-09 17:23:28 +00009855if test "$enable_openmp" != no; then
9856 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
9857 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
9858 fi
9859fi
cristy3ed852e2009-09-05 21:47:34 +00009860
cristy736173a2009-09-20 21:18:22 +00009861# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00009862
9863
cristy73bd4a52010-10-05 11:24:23 +00009864ac_ext=c
9865ac_cpp='$CPP $CPPFLAGS'
9866ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9867ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9868ac_compiler_gnu=$ac_cv_c_compiler_gnu
9869
9870ax_pthread_ok=no
9871
9872# We used to check for pthread.h first, but this fails if pthread.h
9873# requires special compiler flags (e.g. on True64 or Sequent).
9874# It gets checked for in the link test anyway.
9875
9876# First of all, check if the user has set any of the PTHREAD_LIBS,
9877# etcetera environment variables, and if threads linking works using
9878# them:
9879if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9880 save_CFLAGS="$CFLAGS"
9881 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9882 save_LIBS="$LIBS"
9883 LIBS="$PTHREAD_LIBS $LIBS"
9884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9885$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9887/* end confdefs.h. */
9888
9889/* Override any GCC internal prototype to avoid an error.
9890 Use char because int might match the return type of a GCC
9891 builtin and then its argument prototype would still apply. */
9892#ifdef __cplusplus
9893extern "C"
9894#endif
9895char pthread_join ();
9896int
9897main ()
9898{
9899return pthread_join ();
9900 ;
9901 return 0;
9902}
9903_ACEOF
9904if ac_fn_c_try_link "$LINENO"; then :
9905 ax_pthread_ok=yes
9906fi
9907rm -f core conftest.err conftest.$ac_objext \
9908 conftest$ac_exeext conftest.$ac_ext
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9910$as_echo "$ax_pthread_ok" >&6; }
9911 if test x"$ax_pthread_ok" = xno; then
9912 PTHREAD_LIBS=""
9913 PTHREAD_CFLAGS=""
9914 fi
9915 LIBS="$save_LIBS"
9916 CFLAGS="$save_CFLAGS"
9917fi
9918
9919# We must check for the threads library under a number of different
9920# names; the ordering is very important because some systems
9921# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9922# libraries is broken (non-POSIX).
9923
9924# Create a list of thread flags to try. Items starting with a "-" are
9925# C compiler flags, and other items are library names, except for "none"
9926# which indicates that we try without any flags at all, and "pthread-config"
9927# which is a program returning the flags for the Pth emulation library.
9928
cristy2ec87cc2013-02-18 17:46:50 +00009929ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009930
9931# The ordering *is* (sometimes) important. Some notes on the
9932# individual items follow:
9933
9934# pthreads: AIX (must check this before -lpthread)
9935# none: in case threads are in libc; should be tried before -Kthread and
9936# other compiler flags to prevent continual compiler warnings
9937# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9938# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9939# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9940# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9941# -pthreads: Solaris/gcc
9942# -mthreads: Mingw32/gcc, Lynx/gcc
9943# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9944# doesn't hurt to check since this sometimes defines pthreads too;
9945# also defines -D_REENTRANT)
9946# ... -mt is also the pthreads flag for HP/aCC
9947# pthread: Linux, etcetera
9948# --thread-safe: KAI C++
9949# pthread-config: use pthread-config program (for GNU Pth library)
9950
cristy2ec87cc2013-02-18 17:46:50 +00009951case ${host_os} in
9952 solaris*)
cristy73bd4a52010-10-05 11:24:23 +00009953
9954 # On Solaris (at least, for some versions), libc contains stubbed
9955 # (non-functional) versions of the pthreads routines, so link-based
9956 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9957 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9958 # a function called by this macro, so we could check for that, but
9959 # who knows whether they'll stub that too in a future libc.) So,
9960 # we'll just look for -pthreads and -lpthread first:
9961
9962 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9963 ;;
9964
cristy2ec87cc2013-02-18 17:46:50 +00009965 darwin*)
cristya316db12011-10-24 00:49:45 +00009966 ax_pthread_flags="-pthread $ax_pthread_flags"
9967 ;;
cristy73bd4a52010-10-05 11:24:23 +00009968esac
9969
cristy17491be2014-06-24 01:10:53 +00009970# Clang doesn't consider unrecognized options an error unless we specify
9971# -Werror. We throw in some extra Clang-specific options to ensure that
9972# this doesn't happen for GCC, which also accepts -Werror.
9973
9974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
9975$as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
9976save_CFLAGS="$CFLAGS"
9977ax_pthread_extra_flags="-Werror"
9978CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
9979cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9980/* end confdefs.h. */
9981int foo(void);
9982int
9983main ()
9984{
9985foo()
9986 ;
9987 return 0;
9988}
9989_ACEOF
9990if ac_fn_c_try_compile "$LINENO"; then :
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9992$as_echo "yes" >&6; }
9993else
9994 ax_pthread_extra_flags=
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9996$as_echo "no" >&6; }
9997fi
9998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9999CFLAGS="$save_CFLAGS"
10000
cristy73bd4a52010-10-05 11:24:23 +000010001if test x"$ax_pthread_ok" = xno; then
10002for flag in $ax_pthread_flags; do
10003
10004 case $flag in
10005 none)
10006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
10007$as_echo_n "checking whether pthreads work without any flags... " >&6; }
10008 ;;
10009
10010 -*)
10011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
10012$as_echo_n "checking whether pthreads work with $flag... " >&6; }
10013 PTHREAD_CFLAGS="$flag"
10014 ;;
10015
cristya316db12011-10-24 00:49:45 +000010016 pthread-config)
10017 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +000010018set dummy pthread-config; ac_word=$2
10019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10020$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010021if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010022 $as_echo_n "(cached) " >&6
10023else
10024 if test -n "$ax_pthread_config"; then
10025 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
10026else
10027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10028for as_dir in $PATH
10029do
10030 IFS=$as_save_IFS
10031 test -z "$as_dir" && as_dir=.
10032 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010034 ac_cv_prog_ax_pthread_config="yes"
10035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10036 break 2
10037 fi
10038done
10039 done
10040IFS=$as_save_IFS
10041
10042 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
10043fi
10044fi
10045ax_pthread_config=$ac_cv_prog_ax_pthread_config
10046if test -n "$ax_pthread_config"; then
10047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
10048$as_echo "$ax_pthread_config" >&6; }
10049else
10050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10051$as_echo "no" >&6; }
10052fi
10053
10054
cristya316db12011-10-24 00:49:45 +000010055 if test x"$ax_pthread_config" = xno; then continue; fi
10056 PTHREAD_CFLAGS="`pthread-config --cflags`"
10057 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
10058 ;;
cristy73bd4a52010-10-05 11:24:23 +000010059
10060 *)
10061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
10062$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
10063 PTHREAD_LIBS="-l$flag"
10064 ;;
10065 esac
10066
10067 save_LIBS="$LIBS"
10068 save_CFLAGS="$CFLAGS"
10069 LIBS="$PTHREAD_LIBS $LIBS"
cristy17491be2014-06-24 01:10:53 +000010070 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
cristy73bd4a52010-10-05 11:24:23 +000010071
10072 # Check for various functions. We must include pthread.h,
10073 # since some functions may be macros. (On the Sequent, we
10074 # need a special flag -Kthread to make this header compile.)
10075 # We check for pthread_join because it is in -lpthread on IRIX
10076 # while pthread_create is in libc. We check for pthread_attr_init
10077 # due to DEC craziness with -lpthreads. We check for
10078 # pthread_cleanup_push because it is one of the few pthread
10079 # functions on Solaris that doesn't have a non-functional libc stub.
10080 # We try pthread_create on general principles.
10081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10082/* end confdefs.h. */
10083#include <pthread.h>
cristya316db12011-10-24 00:49:45 +000010084 static void routine(void *a) { a = 0; }
10085 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +000010086int
10087main ()
10088{
10089pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +000010090 pthread_create(&th, 0, start_routine, 0);
10091 pthread_join(th, 0);
10092 pthread_attr_init(&attr);
10093 pthread_cleanup_push(routine, 0);
10094 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +000010095 ;
10096 return 0;
10097}
10098_ACEOF
10099if ac_fn_c_try_link "$LINENO"; then :
10100 ax_pthread_ok=yes
10101fi
10102rm -f core conftest.err conftest.$ac_objext \
10103 conftest$ac_exeext conftest.$ac_ext
10104
10105 LIBS="$save_LIBS"
10106 CFLAGS="$save_CFLAGS"
10107
10108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
10109$as_echo "$ax_pthread_ok" >&6; }
10110 if test "x$ax_pthread_ok" = xyes; then
10111 break;
10112 fi
10113
10114 PTHREAD_LIBS=""
10115 PTHREAD_CFLAGS=""
10116done
10117fi
10118
10119# Various other checks:
10120if test "x$ax_pthread_ok" = xyes; then
10121 save_LIBS="$LIBS"
10122 LIBS="$PTHREAD_LIBS $LIBS"
10123 save_CFLAGS="$CFLAGS"
10124 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10125
10126 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +000010127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +000010128$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +000010129 attr_name=unknown
10130 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
10131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000010132/* end confdefs.h. */
10133#include <pthread.h>
10134int
10135main ()
10136{
cristya316db12011-10-24 00:49:45 +000010137int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +000010138 ;
10139 return 0;
10140}
10141_ACEOF
10142if ac_fn_c_try_link "$LINENO"; then :
10143 attr_name=$attr; break
10144fi
10145rm -f core conftest.err conftest.$ac_objext \
10146 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +000010147 done
cristy73bd4a52010-10-05 11:24:23 +000010148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
10149$as_echo "$attr_name" >&6; }
10150 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
10151
10152cat >>confdefs.h <<_ACEOF
10153#define PTHREAD_CREATE_JOINABLE $attr_name
10154_ACEOF
10155
10156 fi
10157
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
10159$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
10160 flag=no
cristy2ec87cc2013-02-18 17:46:50 +000010161 case ${host_os} in
10162 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
10163 osf* | hpux*) flag="-D_REENTRANT";;
10164 solaris*)
10165 if test "$GCC" = "yes"; then
10166 flag="-D_REENTRANT"
10167 else
cristy17491be2014-06-24 01:10:53 +000010168 # TODO: What about Clang on Solaris?
cristy2ec87cc2013-02-18 17:46:50 +000010169 flag="-mt -D_REENTRANT"
10170 fi
10171 ;;
cristy73bd4a52010-10-05 11:24:23 +000010172 esac
cristy17491be2014-06-24 01:10:53 +000010173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
10174$as_echo "$flag" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000010175 if test "x$flag" != xno; then
10176 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
10177 fi
10178
cristya316db12011-10-24 00:49:45 +000010179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
10180$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
10181if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
10182 $as_echo_n "(cached) " >&6
10183else
10184
10185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10186/* end confdefs.h. */
cristy17491be2014-06-24 01:10:53 +000010187#include <pthread.h>
cristya316db12011-10-24 00:49:45 +000010188int
10189main ()
10190{
10191int i = PTHREAD_PRIO_INHERIT;
10192 ;
10193 return 0;
10194}
10195_ACEOF
10196if ac_fn_c_try_link "$LINENO"; then :
10197 ax_cv_PTHREAD_PRIO_INHERIT=yes
10198else
10199 ax_cv_PTHREAD_PRIO_INHERIT=no
10200fi
10201rm -f core conftest.err conftest.$ac_objext \
10202 conftest$ac_exeext conftest.$ac_ext
10203
10204fi
10205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
10206$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
10207 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
10208
10209$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
10210
10211fi
10212
cristy73bd4a52010-10-05 11:24:23 +000010213 LIBS="$save_LIBS"
10214 CFLAGS="$save_CFLAGS"
10215
cristy23493c42013-04-11 16:04:59 +000010216 # More AIX lossage: compile with *_r variant
10217 if test "x$GCC" != xyes; then
10218 case $host_os in
10219 aix*)
10220 case "x/$CC" in #(
10221 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
10222 #handle absolute path differently from PATH based program lookup
10223 case "x$CC" in #(
10224 x/*) :
10225 if as_fn_executable_p ${CC}_r; then :
10226 PTHREAD_CC="${CC}_r"
10227fi ;; #(
10228 *) :
10229 for ac_prog in ${CC}_r
cristy73bd4a52010-10-05 11:24:23 +000010230do
10231 # Extract the first word of "$ac_prog", so it can be a program name with args.
10232set dummy $ac_prog; ac_word=$2
10233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10234$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010235if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010236 $as_echo_n "(cached) " >&6
10237else
10238 if test -n "$PTHREAD_CC"; then
10239 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
10240else
10241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10242for as_dir in $PATH
10243do
10244 IFS=$as_save_IFS
10245 test -z "$as_dir" && as_dir=.
10246 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010248 ac_cv_prog_PTHREAD_CC="$ac_prog"
10249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10250 break 2
10251 fi
10252done
10253 done
10254IFS=$as_save_IFS
10255
10256fi
10257fi
10258PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
10259if test -n "$PTHREAD_CC"; then
10260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
10261$as_echo "$PTHREAD_CC" >&6; }
10262else
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10264$as_echo "no" >&6; }
10265fi
10266
10267
10268 test -n "$PTHREAD_CC" && break
10269done
cristy23493c42013-04-11 16:04:59 +000010270test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10271 ;;
10272esac ;; #(
10273 *) :
10274 ;;
10275esac
10276 ;;
10277 esac
cristya316db12011-10-24 00:49:45 +000010278 fi
cristy73bd4a52010-10-05 11:24:23 +000010279fi
10280
cristy23493c42013-04-11 16:04:59 +000010281test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10282
cristy73bd4a52010-10-05 11:24:23 +000010283
10284
10285
10286
10287# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
10288if test x"$ax_pthread_ok" = xyes; then
10289
10290$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10291
10292 :
10293else
10294 ax_pthread_ok=no
10295
10296fi
10297ac_ext=c
10298ac_cpp='$CPP $CPPFLAGS'
10299ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10300ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10301ac_compiler_gnu=$ac_cv_c_compiler_gnu
10302
10303
10304
10305# Check whether --enable-opencl was given.
10306if test "${enable_opencl+set}" = set; then :
cristy48794642012-09-02 15:19:08 +000010307 enableval=$enable_opencl; enable_opencl=$enableval
cristy73bd4a52010-10-05 11:24:23 +000010308else
cristy48794642012-09-02 15:19:08 +000010309 enable_opencl='no'
cristy73bd4a52010-10-05 11:24:23 +000010310fi
10311
10312
cristy48794642012-09-02 15:19:08 +000010313if test "$enable_opencl" = 'yes'; then
cristy73bd4a52010-10-05 11:24:23 +000010314 ac_ext=c
10315ac_cpp='$CPP $CPPFLAGS'
10316ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10317ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10318ac_compiler_gnu=$ac_cv_c_compiler_gnu
10319
cristy75314cc2012-09-15 23:08:29 +000010320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
10321$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
10322if ${ax_cv_c_compiler_ms+:} false; then :
10323 $as_echo_n "(cached) " >&6
10324else
10325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10326/* end confdefs.h. */
10327
10328int
10329main ()
10330{
10331#ifndef _MSC_VER
10332 choke me
10333#endif
10334
10335 ;
10336 return 0;
10337}
10338_ACEOF
10339if ac_fn_c_try_compile "$LINENO"; then :
10340 ax_compiler_ms=yes
10341else
10342 ax_compiler_ms=no
10343fi
10344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10345ax_cv_c_compiler_ms=$ax_compiler_ms
10346
10347fi
10348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
10349$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000010350 if test X$ax_compiler_ms = Xno; then :
10351 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
10352fi
10353
10354 ax_save_CPPFLAGS=$CPPFLAGS
cristyfdc7d122013-08-17 20:46:45 +000010355 ax_save_CL_CFLAGS=$CL_CFLAGS
10356
10357 found_opencl_header='no'
cristy73bd4a52010-10-05 11:24:23 +000010358 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
10359 for ac_header in CL/cl.h OpenCL/cl.h
10360do :
10361 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10362ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000010363if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000010364 cat >>confdefs.h <<_ACEOF
10365#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10366_ACEOF
cristyfdc7d122013-08-17 20:46:45 +000010367 found_opencl_header='yes'
10368 break;
10369else
10370 found_opencl_header='no'
cristy73bd4a52010-10-05 11:24:23 +000010371fi
10372
10373done
10374
cristyfdc7d122013-08-17 20:46:45 +000010375
10376 if test X$found_opencl_header = Xno; then :
10377 { ac_cv_header_CL_cl_h=; unset ac_cv_header_CL_cl_h;}
10378 { ac_cv_header_OpenCL_cl_h=; unset ac_cv_header_OpenCL_cl_h;}
10379 CL_CFLAGS="-I$AMDAPPSDKROOT/include"
10380 CPPFLAGS="$ax_save_CPPFLAGS $CL_CFLAGS"
10381 for ac_header in CL/cl.h OpenCL/cl.h
10382do :
10383 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10384ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10385if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10386 cat >>confdefs.h <<_ACEOF
10387#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10388_ACEOF
10389 found_opencl_header='yes'
10390 break;
10391else
10392 found_opencl_header='no'
10393fi
10394
10395done
10396
10397
10398fi
10399
10400 CPPFLAGS="$ax_save_CPPFLAGS"
cristy73bd4a52010-10-05 11:24:23 +000010401
10402 for ac_header in windows.h
10403do :
10404 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000010405if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000010406 cat >>confdefs.h <<_ACEOF
10407#define HAVE_WINDOWS_H 1
10408_ACEOF
10409
10410fi
10411
10412done
10413
10414
10415
10416
10417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
10418$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010419if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010420 $as_echo_n "(cached) " >&6
10421else
10422 ax_cv_check_cl_libcl=no
10423 case $host_cpu in
cristyfdc7d122013-08-17 20:46:45 +000010424 x86_64) ax_check_cl_libdir=lib64
10425 ax_check_cl_amd_libdir=x86_64
10426 ;;
10427 *) ax_check_cl_libdir=lib
10428 ax_check_cl_amd_libdir=x86
10429 ;;
cristy73bd4a52010-10-05 11:24:23 +000010430 esac
10431 ax_save_CPPFLAGS=$CPPFLAGS
10432 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
10433 ax_save_LIBS=$LIBS
10434 LIBS=""
10435 ax_check_libs="-lOpenCL -lCL -lclparser"
10436 for ax_lib in $ax_check_libs; do
10437 if test X$ax_compiler_ms = Xyes; then :
10438 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
10439else
10440 ax_try_lib=$ax_lib
10441fi
10442 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
10443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10444/* end confdefs.h. */
10445
10446 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10447 # include <windows.h>
10448 # endif
10449 # ifdef HAVE_CL_CL_H
10450 # include <CL/cl.h>
10451 # elif defined(HAVE_OPENCL_CL_H)
10452 # include <OpenCL/cl.h>
10453 # else
10454 # error no CL.h
10455 # endif
10456int
10457main ()
10458{
10459clCreateContextFromType(0,0,0,0,0)
10460 ;
10461 return 0;
10462}
10463_ACEOF
10464if ac_fn_c_try_link "$LINENO"; then :
10465 ax_cv_check_cl_libcl=$ax_try_lib; break
10466else
10467 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"
10468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10469/* end confdefs.h. */
10470
10471 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10472 # include <windows.h>
10473 # endif
10474 # ifdef HAVE_CL_CL_H
10475 # include <CL/cl.h>
10476 # elif defined(HAVE_OPENCL_CL_H)
10477 # include <OpenCL/cl.h>
10478 # else
10479 # error no CL.h
10480 # endif
10481int
10482main ()
10483{
10484clCreateContextFromType(0,0,0,0,0)
10485 ;
10486 return 0;
10487}
10488_ACEOF
10489if ac_fn_c_try_link "$LINENO"; then :
10490 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
10491else
cristy78c5a0c2010-12-04 20:00:59 +000010492 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 +000010493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10494/* end confdefs.h. */
10495
10496 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10497 # include <windows.h>
10498 # endif
10499 # ifdef HAVE_CL_CL_H
10500 # include <CL/cl.h>
10501 # elif defined(HAVE_OPENCL_CL_H)
10502 # include <OpenCL/cl.h>
10503 # else
10504 # error no CL.h
10505 # endif
10506int
10507main ()
10508{
10509clCreateContextFromType(0,0,0,0,0)
10510 ;
10511 return 0;
10512}
10513_ACEOF
10514if ac_fn_c_try_link "$LINENO"; then :
10515 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
cristyfdc7d122013-08-17 20:46:45 +000010516else
10517 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"
10518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10519/* end confdefs.h. */
10520
10521 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10522 # include <windows.h>
10523 # endif
10524 # ifdef HAVE_CL_CL_H
10525 # include <CL/cl.h>
10526 # elif defined(HAVE_OPENCL_CL_H)
10527 # include <OpenCL/cl.h>
10528 # else
10529 # error no CL.h
10530 # endif
10531int
10532main ()
10533{
10534clCreateContextFromType(0,0,0,0,0)
10535 ;
10536 return 0;
10537}
10538_ACEOF
10539if ac_fn_c_try_link "$LINENO"; then :
10540 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_amd_flags"; break
10541
10542fi
10543rm -f core conftest.err conftest.$ac_objext \
10544 conftest$ac_exeext conftest.$ac_ext
10545
10546
cristy73bd4a52010-10-05 11:24:23 +000010547fi
10548rm -f core conftest.err conftest.$ac_objext \
10549 conftest$ac_exeext conftest.$ac_ext
10550fi
10551rm -f core conftest.err conftest.$ac_objext \
10552 conftest$ac_exeext conftest.$ac_ext
10553fi
10554rm -f core conftest.err conftest.$ac_objext \
10555 conftest$ac_exeext conftest.$ac_ext
10556 done
10557
cristyc3f8b8e2011-12-22 14:55:16 +000010558 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy78c5a0c2010-12-04 20:00:59 +000010559 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +000010560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10561/* end confdefs.h. */
10562
10563 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10564 # include <windows.h>
10565 # endif
10566 # ifdef HAVE_CL_CL_H
10567 # include <CL/cl.h>
10568 # elif defined(HAVE_OPENCL_CL_H)
10569 # include <OpenCL/cl.h>
10570 # else
10571 # error no CL.h
10572 # endif
10573int
10574main ()
10575{
10576clCreateContextFromType(0,0,0,0,0)
10577 ;
10578 return 0;
10579}
10580_ACEOF
10581if ac_fn_c_try_link "$LINENO"; then :
10582 ax_cv_check_cl_libcl=$LIBS
10583fi
10584rm -f core conftest.err conftest.$ac_objext \
10585 conftest$ac_exeext conftest.$ac_ext
10586fi
10587
10588 LIBS=$ax_save_LIBS
10589 CPPFLAGS=$ax_save_CPPFLAGS
10590fi
10591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
10592$as_echo "$ax_cv_check_cl_libcl" >&6; }
10593
10594 if test "X$ax_cv_check_cl_libcl" = Xno; then :
10595 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
10596else
10597 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
10598$as_echo "#define _OPENCL 1" >>confdefs.h
10599
10600fi
10601 ac_ext=c
10602ac_cpp='$CPP $CPPFLAGS'
10603ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10604ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10605ac_compiler_gnu=$ac_cv_c_compiler_gnu
10606
10607fi
10608
10609
10610
cristy0c832c62014-03-07 22:21:04 +000010611#remove static link on Linux
10612CL_LIBS=`echo $CL_LIBS | $SED -e 's/-lOpenCL //'`
10613
cristy73bd4a52010-10-05 11:24:23 +000010614
cristyc7083c12009-10-14 03:16:55 +000010615CFLAGS="$CL_CFLAGS $CFLAGS"
cristyfdc7d122013-08-17 20:46:45 +000010616CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
cristyc7083c12009-10-14 03:16:55 +000010617LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +000010618
cristy391f1ce2010-09-09 17:23:28 +000010619if test "$enable_opencl" != no; then
cristy6e3607c2011-09-13 13:59:17 +000010620 if test "X$ax_cv_check_cl_libcl" != Xno; then :
cristy391f1ce2010-09-09 17:23:28 +000010621 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
10622 fi
cristyfd9dcd42010-08-08 18:07:02 +000010623fi
cristy2e8b51d2009-10-17 18:26:15 +000010624
cristy3ed852e2009-09-05 21:47:34 +000010625########
10626#
10627# Check for large file support
10628#
10629########
10630# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +000010631if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010632 enableval=$enable_largefile;
10633fi
10634
10635if test "$enable_largefile" != no; then
10636
cristy8b350f62009-11-15 23:12:43 +000010637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010638$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010639if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010640 $as_echo_n "(cached) " >&6
10641else
10642 ac_cv_sys_largefile_CC=no
10643 if test "$GCC" != yes; then
10644 ac_save_CC=$CC
10645 while :; do
10646 # IRIX 6.2 and later do not support large files by default,
10647 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +000010648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010649/* end confdefs.h. */
10650#include <sys/types.h>
10651 /* Check that off_t can represent 2**63 - 1 correctly.
10652 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10653 since some C++ compilers masquerading as C compilers
10654 incorrectly reject 9223372036854775807. */
10655#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10656 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10657 && LARGE_OFF_T % 2147483647 == 1)
10658 ? 1 : -1];
10659int
10660main ()
10661{
10662
10663 ;
10664 return 0;
10665}
10666_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010667 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010668 break
cristy3ed852e2009-09-05 21:47:34 +000010669fi
cristy3ed852e2009-09-05 21:47:34 +000010670rm -f core conftest.err conftest.$ac_objext
10671 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +000010672 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010673 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +000010674fi
cristy3ed852e2009-09-05 21:47:34 +000010675rm -f core conftest.err conftest.$ac_objext
10676 break
10677 done
10678 CC=$ac_save_CC
10679 rm -f conftest.$ac_ext
10680 fi
10681fi
cristy8b350f62009-11-15 23:12:43 +000010682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000010683$as_echo "$ac_cv_sys_largefile_CC" >&6; }
10684 if test "$ac_cv_sys_largefile_CC" != no; then
10685 CC=$CC$ac_cv_sys_largefile_CC
10686 fi
10687
cristy8b350f62009-11-15 23:12:43 +000010688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010689$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010690if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010691 $as_echo_n "(cached) " >&6
10692else
10693 while :; do
cristy8b350f62009-11-15 23:12:43 +000010694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010695/* end confdefs.h. */
10696#include <sys/types.h>
10697 /* Check that off_t can represent 2**63 - 1 correctly.
10698 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10699 since some C++ compilers masquerading as C compilers
10700 incorrectly reject 9223372036854775807. */
10701#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10702 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10703 && LARGE_OFF_T % 2147483647 == 1)
10704 ? 1 : -1];
10705int
10706main ()
10707{
10708
10709 ;
10710 return 0;
10711}
10712_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010713if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010714 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +000010715fi
cristy3ed852e2009-09-05 21:47:34 +000010716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010718/* end confdefs.h. */
10719#define _FILE_OFFSET_BITS 64
10720#include <sys/types.h>
10721 /* Check that off_t can represent 2**63 - 1 correctly.
10722 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10723 since some C++ compilers masquerading as C compilers
10724 incorrectly reject 9223372036854775807. */
10725#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10726 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10727 && LARGE_OFF_T % 2147483647 == 1)
10728 ? 1 : -1];
10729int
10730main ()
10731{
10732
10733 ;
10734 return 0;
10735}
10736_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010737if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010738 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +000010739fi
cristy3ed852e2009-09-05 21:47:34 +000010740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10741 ac_cv_sys_file_offset_bits=unknown
10742 break
10743done
10744fi
cristy8b350f62009-11-15 23:12:43 +000010745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +000010746$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10747case $ac_cv_sys_file_offset_bits in #(
10748 no | unknown) ;;
10749 *)
10750cat >>confdefs.h <<_ACEOF
10751#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10752_ACEOF
10753;;
10754esac
10755rm -rf conftest*
10756 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +000010757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010758$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010759if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010760 $as_echo_n "(cached) " >&6
10761else
10762 while :; do
cristy8b350f62009-11-15 23:12:43 +000010763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010764/* end confdefs.h. */
10765#include <sys/types.h>
10766 /* Check that off_t can represent 2**63 - 1 correctly.
10767 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10768 since some C++ compilers masquerading as C compilers
10769 incorrectly reject 9223372036854775807. */
10770#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10771 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10772 && LARGE_OFF_T % 2147483647 == 1)
10773 ? 1 : -1];
10774int
10775main ()
10776{
10777
10778 ;
10779 return 0;
10780}
10781_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010782if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010783 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +000010784fi
cristy3ed852e2009-09-05 21:47:34 +000010785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010787/* end confdefs.h. */
10788#define _LARGE_FILES 1
10789#include <sys/types.h>
10790 /* Check that off_t can represent 2**63 - 1 correctly.
10791 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10792 since some C++ compilers masquerading as C compilers
10793 incorrectly reject 9223372036854775807. */
10794#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10795 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10796 && LARGE_OFF_T % 2147483647 == 1)
10797 ? 1 : -1];
10798int
10799main ()
10800{
10801
10802 ;
10803 return 0;
10804}
10805_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010806if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010807 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +000010808fi
cristy3ed852e2009-09-05 21:47:34 +000010809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10810 ac_cv_sys_large_files=unknown
10811 break
10812done
10813fi
cristy8b350f62009-11-15 23:12:43 +000010814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010815$as_echo "$ac_cv_sys_large_files" >&6; }
10816case $ac_cv_sys_large_files in #(
10817 no | unknown) ;;
10818 *)
10819cat >>confdefs.h <<_ACEOF
10820#define _LARGE_FILES $ac_cv_sys_large_files
10821_ACEOF
10822;;
10823esac
10824rm -rf conftest*
10825 fi
cristy14fefe52012-05-21 00:59:18 +000010826
10827
cristy3ed852e2009-09-05 21:47:34 +000010828fi
10829
cristy8b350f62009-11-15 23:12:43 +000010830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010831$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010832if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010833 $as_echo_n "(cached) " >&6
10834else
10835 while :; do
cristy8b350f62009-11-15 23:12:43 +000010836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010837/* end confdefs.h. */
10838#include <sys/types.h> /* for off_t */
10839 #include <stdio.h>
10840int
10841main ()
10842{
10843int (*fp) (FILE *, off_t, int) = fseeko;
10844 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10845 ;
10846 return 0;
10847}
10848_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010849if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010850 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +000010851fi
cristy8b350f62009-11-15 23:12:43 +000010852rm -f core conftest.err conftest.$ac_objext \
10853 conftest$ac_exeext conftest.$ac_ext
10854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010855/* end confdefs.h. */
10856#define _LARGEFILE_SOURCE 1
10857#include <sys/types.h> /* for off_t */
10858 #include <stdio.h>
10859int
10860main ()
10861{
10862int (*fp) (FILE *, off_t, int) = fseeko;
10863 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10864 ;
10865 return 0;
10866}
10867_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010868if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010869 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +000010870fi
cristy8b350f62009-11-15 23:12:43 +000010871rm -f core conftest.err conftest.$ac_objext \
10872 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010873 ac_cv_sys_largefile_source=unknown
10874 break
10875done
10876fi
cristy8b350f62009-11-15 23:12:43 +000010877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +000010878$as_echo "$ac_cv_sys_largefile_source" >&6; }
10879case $ac_cv_sys_largefile_source in #(
10880 no | unknown) ;;
10881 *)
10882cat >>confdefs.h <<_ACEOF
10883#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10884_ACEOF
10885;;
10886esac
10887rm -rf conftest*
10888
10889# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10890# in glibc 2.1.3, but that breaks too many other things.
10891# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10892if test $ac_cv_sys_largefile_source != unknown; then
10893
cristy8b350f62009-11-15 23:12:43 +000010894$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010895
10896fi
10897
10898LFS_CPPFLAGS=''
10899if test "$enable_largefile" != no; then
cristyc1e0cc12011-09-21 16:41:16 +000010900 case $ac_cv_sys_file_offset_bits in
10901 no)
10902 # nothing to do here as the host supports LFS fine
10903 ;;
10904 unknown)
cristy8b350f62009-11-15 23:12:43 +000010905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +000010906$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010907 if test "$cross_compiling" = yes; then :
10908 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000010909$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000010910as_fn_error $? "cannot run test program while cross compiling
10911See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000010912else
cristy8b350f62009-11-15 23:12:43 +000010913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10914/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000010915#include <unistd.h>
10916 main () {
10917 exit(!(sizeof(off_t) == 8));
10918 }
cristyda16f162011-02-19 23:52:17 +000010919int
10920main ()
10921{
10922
10923 ;
10924 return 0;
10925}
cristy3ed852e2009-09-05 21:47:34 +000010926_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010927if ac_fn_c_try_run "$LINENO"; then :
10928 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010929
cristyad38abe2012-12-23 23:03:21 +000010930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10931$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000010932else
cristyad38abe2012-12-23 23:03:21 +000010933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10934$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000010935fi
cristy8b350f62009-11-15 23:12:43 +000010936rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10937 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010938fi
10939
cristyc1e0cc12011-09-21 16:41:16 +000010940 ;;
10941 *)
10942 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
10943 ;;
10944 esac
cristy3ed852e2009-09-05 21:47:34 +000010945 if test "$ac_cv_sys_large_files" != 'no'; then
10946 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
10947 fi
10948 if test "$ac_cv_sys_largefile_source" != 'no'; then
10949 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
10950 fi
10951fi
10952
10953
cristy3ed852e2009-09-05 21:47:34 +000010954# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +000010955enable_dlopen=yes
10956
10957
10958
10959case `pwd` in
10960 *\ * | *\ *)
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10962$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10963esac
10964
10965
10966
cristy99bd5232011-12-07 14:38:20 +000010967macro_version='2.4.2'
10968macro_revision='1.3337'
cristy73bd4a52010-10-05 11:24:23 +000010969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982ltmain="$ac_aux_dir/ltmain.sh"
10983
cristy0c60a692010-11-04 01:09:47 +000010984# Backslashify metacharacters that are still active within
10985# double-quoted strings.
10986sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10987
10988# Same as above, but do not quote variable references.
10989double_quote_subst='s/\(["`\\]\)/\\\1/g'
10990
10991# Sed substitution to delay expansion of an escaped shell variable in a
10992# double_quote_subst'ed string.
10993delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10994
10995# Sed substitution to delay expansion of an escaped single quote.
10996delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10997
10998# Sed substitution to avoid accidental globbing in evaled expressions
10999no_glob_subst='s/\*/\\\*/g'
11000
cristy73bd4a52010-10-05 11:24:23 +000011001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11002$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011003if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011004 $as_echo_n "(cached) " >&6
11005else
11006 if test -n "$NM"; then
11007 # Let the user override the test.
11008 lt_cv_path_NM="$NM"
11009else
11010 lt_nm_to_check="${ac_tool_prefix}nm"
11011 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11012 lt_nm_to_check="$lt_nm_to_check nm"
11013 fi
11014 for lt_tmp_nm in $lt_nm_to_check; do
11015 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11016 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11017 IFS="$lt_save_ifs"
11018 test -z "$ac_dir" && ac_dir=.
11019 tmp_nm="$ac_dir/$lt_tmp_nm"
11020 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11021 # Check to see if the nm accepts a BSD-compat flag.
11022 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11023 # nm: unknown option "B" ignored
11024 # Tru64's nm complains that /dev/null is an invalid object file
11025 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11026 */dev/null* | *'Invalid file or object type'*)
11027 lt_cv_path_NM="$tmp_nm -B"
11028 break
11029 ;;
11030 *)
11031 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11032 */dev/null*)
11033 lt_cv_path_NM="$tmp_nm -p"
11034 break
11035 ;;
11036 *)
11037 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11038 continue # so that we can try to find one that supports BSD flags
11039 ;;
11040 esac
11041 ;;
11042 esac
11043 fi
11044 done
11045 IFS="$lt_save_ifs"
11046 done
11047 : ${lt_cv_path_NM=no}
11048fi
11049fi
11050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11051$as_echo "$lt_cv_path_NM" >&6; }
11052if test "$lt_cv_path_NM" != "no"; then
11053 NM="$lt_cv_path_NM"
11054else
11055 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +000011056 if test -n "$DUMPBIN"; then :
11057 # Let the user override the test.
11058 else
11059 if test -n "$ac_tool_prefix"; then
11060 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000011061 do
11062 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11063set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11065$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011066if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011067 $as_echo_n "(cached) " >&6
11068else
11069 if test -n "$DUMPBIN"; then
11070 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11071else
11072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11073for as_dir in $PATH
11074do
11075 IFS=$as_save_IFS
11076 test -z "$as_dir" && as_dir=.
11077 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011079 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11081 break 2
11082 fi
11083done
11084 done
11085IFS=$as_save_IFS
11086
11087fi
11088fi
11089DUMPBIN=$ac_cv_prog_DUMPBIN
11090if test -n "$DUMPBIN"; then
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11092$as_echo "$DUMPBIN" >&6; }
11093else
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11095$as_echo "no" >&6; }
11096fi
11097
11098
11099 test -n "$DUMPBIN" && break
11100 done
11101fi
11102if test -z "$DUMPBIN"; then
11103 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +000011104 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000011105do
11106 # Extract the first word of "$ac_prog", so it can be a program name with args.
11107set dummy $ac_prog; ac_word=$2
11108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11109$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011110if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011111 $as_echo_n "(cached) " >&6
11112else
11113 if test -n "$ac_ct_DUMPBIN"; then
11114 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11115else
11116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11117for as_dir in $PATH
11118do
11119 IFS=$as_save_IFS
11120 test -z "$as_dir" && as_dir=.
11121 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011123 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11125 break 2
11126 fi
11127done
11128 done
11129IFS=$as_save_IFS
11130
11131fi
11132fi
11133ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11134if test -n "$ac_ct_DUMPBIN"; then
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11136$as_echo "$ac_ct_DUMPBIN" >&6; }
11137else
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11139$as_echo "no" >&6; }
11140fi
11141
11142
11143 test -n "$ac_ct_DUMPBIN" && break
11144done
11145
11146 if test "x$ac_ct_DUMPBIN" = x; then
11147 DUMPBIN=":"
11148 else
11149 case $cross_compiling:$ac_tool_warned in
11150yes:)
11151{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11152$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11153ac_tool_warned=yes ;;
11154esac
11155 DUMPBIN=$ac_ct_DUMPBIN
11156 fi
11157fi
11158
cristy0c60a692010-11-04 01:09:47 +000011159 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11160 *COFF*)
11161 DUMPBIN="$DUMPBIN -symbols"
11162 ;;
11163 *)
11164 DUMPBIN=:
11165 ;;
11166 esac
11167 fi
cristy73bd4a52010-10-05 11:24:23 +000011168
11169 if test "$DUMPBIN" != ":"; then
11170 NM="$DUMPBIN"
11171 fi
11172fi
11173test -z "$NM" && NM=nm
11174
11175
11176
11177
11178
11179
11180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11181$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011182if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011183 $as_echo_n "(cached) " >&6
11184else
11185 lt_cv_nm_interface="BSD nm"
11186 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000011187 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000011188 (eval "$ac_compile" 2>conftest.err)
11189 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000011190 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000011191 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11192 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000011193 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000011194 cat conftest.out >&5
11195 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11196 lt_cv_nm_interface="MS dumpbin"
11197 fi
11198 rm -f conftest*
11199fi
11200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11201$as_echo "$lt_cv_nm_interface" >&6; }
11202
11203# find the maximum length of command line arguments
11204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11205$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011206if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011207 $as_echo_n "(cached) " >&6
11208else
11209 i=0
11210 teststring="ABCD"
11211
11212 case $build_os in
11213 msdosdjgpp*)
11214 # On DJGPP, this test can blow up pretty badly due to problems in libc
11215 # (any single argument exceeding 2000 bytes causes a buffer overrun
11216 # during glob expansion). Even if it were fixed, the result of this
11217 # check would be larger than it should be.
11218 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11219 ;;
11220
11221 gnu*)
11222 # Under GNU Hurd, this test is not required because there is
11223 # no limit to the length of command line arguments.
11224 # Libtool will interpret -1 as no limit whatsoever
11225 lt_cv_sys_max_cmd_len=-1;
11226 ;;
11227
11228 cygwin* | mingw* | cegcc*)
11229 # On Win9x/ME, this test blows up -- it succeeds, but takes
11230 # about 5 minutes as the teststring grows exponentially.
11231 # Worse, since 9x/ME are not pre-emptively multitasking,
11232 # you end up with a "frozen" computer, even though with patience
11233 # the test eventually succeeds (with a max line length of 256k).
11234 # Instead, let's just punt: use the minimum linelength reported by
11235 # all of the supported platforms: 8192 (on NT/2K/XP).
11236 lt_cv_sys_max_cmd_len=8192;
11237 ;;
11238
cristy0c60a692010-11-04 01:09:47 +000011239 mint*)
11240 # On MiNT this can take a long time and run out of memory.
11241 lt_cv_sys_max_cmd_len=8192;
11242 ;;
11243
cristy73bd4a52010-10-05 11:24:23 +000011244 amigaos*)
11245 # On AmigaOS with pdksh, this test takes hours, literally.
11246 # So we just punt and use a minimum line length of 8192.
11247 lt_cv_sys_max_cmd_len=8192;
11248 ;;
11249
11250 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11251 # This has been around since 386BSD, at least. Likely further.
11252 if test -x /sbin/sysctl; then
11253 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11254 elif test -x /usr/sbin/sysctl; then
11255 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11256 else
11257 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11258 fi
11259 # And add a safety zone
11260 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11261 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11262 ;;
11263
11264 interix*)
11265 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11266 lt_cv_sys_max_cmd_len=196608
11267 ;;
11268
cristy99bd5232011-12-07 14:38:20 +000011269 os2*)
11270 # The test takes a long time on OS/2.
11271 lt_cv_sys_max_cmd_len=8192
11272 ;;
11273
cristy73bd4a52010-10-05 11:24:23 +000011274 osf*)
11275 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11276 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11277 # nice to cause kernel panics so lets avoid the loop below.
11278 # First set a reasonable default.
11279 lt_cv_sys_max_cmd_len=16384
11280 #
11281 if test -x /sbin/sysconfig; then
11282 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11283 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11284 esac
11285 fi
11286 ;;
11287 sco3.2v5*)
11288 lt_cv_sys_max_cmd_len=102400
11289 ;;
11290 sysv5* | sco5v6* | sysv4.2uw2*)
11291 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11292 if test -n "$kargmax"; then
11293 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11294 else
11295 lt_cv_sys_max_cmd_len=32768
11296 fi
11297 ;;
11298 *)
11299 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11300 if test -n "$lt_cv_sys_max_cmd_len"; then
11301 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11302 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11303 else
11304 # Make teststring a little bigger before we do anything with it.
11305 # a 1K string should be a reasonable start.
11306 for i in 1 2 3 4 5 6 7 8 ; do
11307 teststring=$teststring$teststring
11308 done
11309 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11310 # If test is not a shell built-in, we'll probably end up computing a
11311 # maximum length that is only half of the actual maximum length, but
11312 # we can't tell.
cristy99bd5232011-12-07 14:38:20 +000011313 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
cristy0c60a692010-11-04 01:09:47 +000011314 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +000011315 test $i != 17 # 1/2 MB should be enough
11316 do
11317 i=`expr $i + 1`
11318 teststring=$teststring$teststring
11319 done
11320 # Only check the string length outside the loop.
11321 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11322 teststring=
11323 # Add a significant safety factor because C++ compilers can tack on
11324 # massive amounts of additional arguments before passing them to the
11325 # linker. It appears as though 1/2 is a usable value.
11326 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11327 fi
11328 ;;
11329 esac
11330
11331fi
11332
11333if test -n $lt_cv_sys_max_cmd_len ; then
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11335$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11336else
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11338$as_echo "none" >&6; }
11339fi
11340max_cmd_len=$lt_cv_sys_max_cmd_len
11341
11342
11343
11344
11345
11346
11347: ${CP="cp -f"}
11348: ${MV="mv -f"}
11349: ${RM="rm -f"}
11350
11351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11352$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11353# Try some XSI features
11354xsi_shell=no
11355( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +000011356 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
11357 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +000011358 && eval 'test $(( 1 + 1 )) -eq 2 \
11359 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11360 && xsi_shell=yes
11361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11362$as_echo "$xsi_shell" >&6; }
11363
11364
11365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11366$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11367lt_shell_append=no
11368( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11369 >/dev/null 2>&1 \
11370 && lt_shell_append=yes
11371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11372$as_echo "$lt_shell_append" >&6; }
11373
11374
11375if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11376 lt_unset=unset
11377else
11378 lt_unset=false
11379fi
11380
11381
11382
11383
11384
11385# test EBCDIC or ASCII
11386case `echo X|tr X '\101'` in
11387 A) # ASCII based system
11388 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11389 lt_SP2NL='tr \040 \012'
11390 lt_NL2SP='tr \015\012 \040\040'
11391 ;;
11392 *) # EBCDIC based system
11393 lt_SP2NL='tr \100 \n'
11394 lt_NL2SP='tr \r\n \100\100'
11395 ;;
11396esac
11397
11398
11399
11400
11401
11402
11403
11404
11405
cristyda16f162011-02-19 23:52:17 +000011406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11407$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11408if ${lt_cv_to_host_file_cmd+:} false; then :
11409 $as_echo_n "(cached) " >&6
11410else
11411 case $host in
11412 *-*-mingw* )
11413 case $build in
11414 *-*-mingw* ) # actually msys
11415 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11416 ;;
11417 *-*-cygwin* )
11418 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11419 ;;
11420 * ) # otherwise, assume *nix
11421 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11422 ;;
11423 esac
11424 ;;
11425 *-*-cygwin* )
11426 case $build in
11427 *-*-mingw* ) # actually msys
11428 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11429 ;;
11430 *-*-cygwin* )
11431 lt_cv_to_host_file_cmd=func_convert_file_noop
11432 ;;
11433 * ) # otherwise, assume *nix
11434 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11435 ;;
11436 esac
11437 ;;
11438 * ) # unhandled hosts (and "normal" native builds)
11439 lt_cv_to_host_file_cmd=func_convert_file_noop
11440 ;;
11441esac
11442
11443fi
11444
11445to_host_file_cmd=$lt_cv_to_host_file_cmd
11446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11447$as_echo "$lt_cv_to_host_file_cmd" >&6; }
11448
11449
11450
11451
11452
11453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11454$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11455if ${lt_cv_to_tool_file_cmd+:} false; then :
11456 $as_echo_n "(cached) " >&6
11457else
11458 #assume ordinary cross tools, or native build.
11459lt_cv_to_tool_file_cmd=func_convert_file_noop
11460case $host in
11461 *-*-mingw* )
11462 case $build in
11463 *-*-mingw* ) # actually msys
11464 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11465 ;;
11466 esac
11467 ;;
11468esac
11469
11470fi
11471
11472to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11474$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11475
11476
11477
11478
11479
cristy73bd4a52010-10-05 11:24:23 +000011480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11481$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011482if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011483 $as_echo_n "(cached) " >&6
11484else
11485 lt_cv_ld_reload_flag='-r'
11486fi
11487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11488$as_echo "$lt_cv_ld_reload_flag" >&6; }
11489reload_flag=$lt_cv_ld_reload_flag
11490case $reload_flag in
11491"" | " "*) ;;
11492*) reload_flag=" $reload_flag" ;;
11493esac
11494reload_cmds='$LD$reload_flag -o $output$reload_objs'
11495case $host_os in
cristyda16f162011-02-19 23:52:17 +000011496 cygwin* | mingw* | pw32* | cegcc*)
11497 if test "$GCC" != yes; then
11498 reload_cmds=false
11499 fi
11500 ;;
cristy73bd4a52010-10-05 11:24:23 +000011501 darwin*)
11502 if test "$GCC" = yes; then
11503 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11504 else
11505 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11506 fi
11507 ;;
11508esac
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518if test -n "$ac_tool_prefix"; then
11519 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11520set dummy ${ac_tool_prefix}objdump; ac_word=$2
11521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11522$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011523if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011524 $as_echo_n "(cached) " >&6
11525else
11526 if test -n "$OBJDUMP"; then
11527 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11528else
11529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11530for as_dir in $PATH
11531do
11532 IFS=$as_save_IFS
11533 test -z "$as_dir" && as_dir=.
11534 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011536 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11538 break 2
11539 fi
11540done
11541 done
11542IFS=$as_save_IFS
11543
11544fi
11545fi
11546OBJDUMP=$ac_cv_prog_OBJDUMP
11547if test -n "$OBJDUMP"; then
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11549$as_echo "$OBJDUMP" >&6; }
11550else
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11552$as_echo "no" >&6; }
11553fi
11554
11555
11556fi
11557if test -z "$ac_cv_prog_OBJDUMP"; then
11558 ac_ct_OBJDUMP=$OBJDUMP
11559 # Extract the first word of "objdump", so it can be a program name with args.
11560set dummy objdump; ac_word=$2
11561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11562$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011563if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011564 $as_echo_n "(cached) " >&6
11565else
11566 if test -n "$ac_ct_OBJDUMP"; then
11567 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11568else
11569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11570for as_dir in $PATH
11571do
11572 IFS=$as_save_IFS
11573 test -z "$as_dir" && as_dir=.
11574 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011576 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11578 break 2
11579 fi
11580done
11581 done
11582IFS=$as_save_IFS
11583
11584fi
11585fi
11586ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11587if test -n "$ac_ct_OBJDUMP"; then
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11589$as_echo "$ac_ct_OBJDUMP" >&6; }
11590else
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11592$as_echo "no" >&6; }
11593fi
11594
11595 if test "x$ac_ct_OBJDUMP" = x; then
11596 OBJDUMP="false"
11597 else
11598 case $cross_compiling:$ac_tool_warned in
11599yes:)
11600{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11601$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11602ac_tool_warned=yes ;;
11603esac
11604 OBJDUMP=$ac_ct_OBJDUMP
11605 fi
11606else
11607 OBJDUMP="$ac_cv_prog_OBJDUMP"
11608fi
11609
11610test -z "$OBJDUMP" && OBJDUMP=objdump
11611
11612
11613
11614
11615
11616
11617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11618$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011619if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011620 $as_echo_n "(cached) " >&6
11621else
11622 lt_cv_file_magic_cmd='$MAGIC_CMD'
11623lt_cv_file_magic_test_file=
11624lt_cv_deplibs_check_method='unknown'
11625# Need to set the preceding variable on all platforms that support
11626# interlibrary dependencies.
11627# 'none' -- dependencies not supported.
11628# `unknown' -- same as none, but documents that we really don't know.
11629# 'pass_all' -- all dependencies passed with no checks.
11630# 'test_compile' -- check by making test program.
11631# 'file_magic [[regex]]' -- check by looking for files in library path
11632# which responds to the $file_magic_cmd with a given extended regex.
11633# If you have `file' or equivalent on your system and you're not sure
11634# whether `pass_all' will *always* work, you probably want this one.
11635
11636case $host_os in
11637aix[4-9]*)
11638 lt_cv_deplibs_check_method=pass_all
11639 ;;
11640
11641beos*)
11642 lt_cv_deplibs_check_method=pass_all
11643 ;;
11644
11645bsdi[45]*)
11646 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11647 lt_cv_file_magic_cmd='/usr/bin/file -L'
11648 lt_cv_file_magic_test_file=/shlib/libc.so
11649 ;;
11650
11651cygwin*)
11652 # func_win32_libid is a shell function defined in ltmain.sh
11653 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11654 lt_cv_file_magic_cmd='func_win32_libid'
11655 ;;
11656
11657mingw* | pw32*)
11658 # Base MSYS/MinGW do not provide the 'file' command needed by
11659 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11660 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000011661 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11662 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000011663 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11664 lt_cv_file_magic_cmd='func_win32_libid'
11665 else
cristy0c60a692010-11-04 01:09:47 +000011666 # Keep this pattern in sync with the one in func_win32_libid.
11667 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 +000011668 lt_cv_file_magic_cmd='$OBJDUMP -f'
11669 fi
11670 ;;
11671
cristy0c60a692010-11-04 01:09:47 +000011672cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000011673 # use the weaker test based on 'objdump'. See mingw*.
11674 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11675 lt_cv_file_magic_cmd='$OBJDUMP -f'
11676 ;;
11677
11678darwin* | rhapsody*)
11679 lt_cv_deplibs_check_method=pass_all
11680 ;;
11681
11682freebsd* | dragonfly*)
11683 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11684 case $host_cpu in
11685 i*86 )
11686 # Not sure whether the presence of OpenBSD here was a mistake.
11687 # Let's accept both of them until this is cleared up.
11688 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11689 lt_cv_file_magic_cmd=/usr/bin/file
11690 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11691 ;;
11692 esac
11693 else
11694 lt_cv_deplibs_check_method=pass_all
11695 fi
11696 ;;
11697
11698gnu*)
11699 lt_cv_deplibs_check_method=pass_all
11700 ;;
11701
cristy0c60a692010-11-04 01:09:47 +000011702haiku*)
11703 lt_cv_deplibs_check_method=pass_all
11704 ;;
11705
cristy73bd4a52010-10-05 11:24:23 +000011706hpux10.20* | hpux11*)
11707 lt_cv_file_magic_cmd=/usr/bin/file
11708 case $host_cpu in
11709 ia64*)
11710 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11711 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11712 ;;
11713 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000011714 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 +000011715 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11716 ;;
11717 *)
cristy0c60a692010-11-04 01:09:47 +000011718 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 +000011719 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11720 ;;
11721 esac
11722 ;;
11723
11724interix[3-9]*)
11725 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11726 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11727 ;;
11728
11729irix5* | irix6* | nonstopux*)
11730 case $LD in
11731 *-32|*"-32 ") libmagic=32-bit;;
11732 *-n32|*"-n32 ") libmagic=N32;;
11733 *-64|*"-64 ") libmagic=64-bit;;
11734 *) libmagic=never-match;;
11735 esac
11736 lt_cv_deplibs_check_method=pass_all
11737 ;;
11738
cristy99bd5232011-12-07 14:38:20 +000011739# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000011740linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000011741 lt_cv_deplibs_check_method=pass_all
11742 ;;
11743
11744netbsd*)
11745 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11746 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11747 else
11748 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11749 fi
11750 ;;
11751
11752newos6*)
11753 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11754 lt_cv_file_magic_cmd=/usr/bin/file
11755 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11756 ;;
11757
11758*nto* | *qnx*)
11759 lt_cv_deplibs_check_method=pass_all
11760 ;;
11761
11762openbsd*)
11763 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11764 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11765 else
11766 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11767 fi
11768 ;;
11769
11770osf3* | osf4* | osf5*)
11771 lt_cv_deplibs_check_method=pass_all
11772 ;;
11773
11774rdos*)
11775 lt_cv_deplibs_check_method=pass_all
11776 ;;
11777
11778solaris*)
11779 lt_cv_deplibs_check_method=pass_all
11780 ;;
11781
11782sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11783 lt_cv_deplibs_check_method=pass_all
11784 ;;
11785
11786sysv4 | sysv4.3*)
11787 case $host_vendor in
11788 motorola)
11789 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]'
11790 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11791 ;;
11792 ncr)
11793 lt_cv_deplibs_check_method=pass_all
11794 ;;
11795 sequent)
11796 lt_cv_file_magic_cmd='/bin/file'
11797 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11798 ;;
11799 sni)
11800 lt_cv_file_magic_cmd='/bin/file'
11801 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11802 lt_cv_file_magic_test_file=/lib/libc.so
11803 ;;
11804 siemens)
11805 lt_cv_deplibs_check_method=pass_all
11806 ;;
11807 pc)
11808 lt_cv_deplibs_check_method=pass_all
11809 ;;
11810 esac
11811 ;;
11812
11813tpf*)
11814 lt_cv_deplibs_check_method=pass_all
11815 ;;
11816esac
11817
11818fi
11819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11820$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000011821
11822file_magic_glob=
11823want_nocaseglob=no
11824if test "$build" = "$host"; then
11825 case $host_os in
11826 mingw* | pw32*)
11827 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11828 want_nocaseglob=yes
11829 else
11830 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11831 fi
11832 ;;
11833 esac
11834fi
11835
cristy73bd4a52010-10-05 11:24:23 +000011836file_magic_cmd=$lt_cv_file_magic_cmd
11837deplibs_check_method=$lt_cv_deplibs_check_method
11838test -z "$deplibs_check_method" && deplibs_check_method=unknown
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
cristyda16f162011-02-19 23:52:17 +000011851
11852
11853
11854
11855
11856
11857
11858
11859
11860
cristy73bd4a52010-10-05 11:24:23 +000011861if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000011862 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11863set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11865$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011866if ${ac_cv_prog_DLLTOOL+:} false; then :
11867 $as_echo_n "(cached) " >&6
11868else
11869 if test -n "$DLLTOOL"; then
11870 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11871else
11872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11873for as_dir in $PATH
11874do
11875 IFS=$as_save_IFS
11876 test -z "$as_dir" && as_dir=.
11877 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011879 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11881 break 2
11882 fi
11883done
11884 done
11885IFS=$as_save_IFS
11886
11887fi
11888fi
11889DLLTOOL=$ac_cv_prog_DLLTOOL
11890if test -n "$DLLTOOL"; then
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11892$as_echo "$DLLTOOL" >&6; }
11893else
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11895$as_echo "no" >&6; }
11896fi
11897
11898
11899fi
11900if test -z "$ac_cv_prog_DLLTOOL"; then
11901 ac_ct_DLLTOOL=$DLLTOOL
11902 # Extract the first word of "dlltool", so it can be a program name with args.
11903set dummy dlltool; ac_word=$2
11904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11905$as_echo_n "checking for $ac_word... " >&6; }
11906if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11907 $as_echo_n "(cached) " >&6
11908else
11909 if test -n "$ac_ct_DLLTOOL"; then
11910 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11911else
11912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11913for as_dir in $PATH
11914do
11915 IFS=$as_save_IFS
11916 test -z "$as_dir" && as_dir=.
11917 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011919 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11921 break 2
11922 fi
11923done
11924 done
11925IFS=$as_save_IFS
11926
11927fi
11928fi
11929ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11930if test -n "$ac_ct_DLLTOOL"; then
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11932$as_echo "$ac_ct_DLLTOOL" >&6; }
11933else
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11935$as_echo "no" >&6; }
11936fi
11937
11938 if test "x$ac_ct_DLLTOOL" = x; then
11939 DLLTOOL="false"
11940 else
11941 case $cross_compiling:$ac_tool_warned in
11942yes:)
11943{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11944$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11945ac_tool_warned=yes ;;
11946esac
11947 DLLTOOL=$ac_ct_DLLTOOL
11948 fi
11949else
11950 DLLTOOL="$ac_cv_prog_DLLTOOL"
11951fi
11952
11953test -z "$DLLTOOL" && DLLTOOL=dlltool
11954
11955
11956
11957
11958
11959
11960
11961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
11962$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
11963if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
11964 $as_echo_n "(cached) " >&6
11965else
11966 lt_cv_sharedlib_from_linklib_cmd='unknown'
11967
11968case $host_os in
11969cygwin* | mingw* | pw32* | cegcc*)
11970 # two different shell functions defined in ltmain.sh
11971 # decide which to use based on capabilities of $DLLTOOL
11972 case `$DLLTOOL --help 2>&1` in
11973 *--identify-strict*)
11974 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
11975 ;;
11976 *)
11977 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
11978 ;;
11979 esac
11980 ;;
11981*)
11982 # fallback: assume linklib IS sharedlib
11983 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
11984 ;;
11985esac
11986
11987fi
11988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
11989$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
11990sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
11991test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
11992
11993
11994
11995
11996
11997
11998
11999if test -n "$ac_tool_prefix"; then
12000 for ac_prog in ar
12001 do
12002 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12003set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12005$as_echo_n "checking for $ac_word... " >&6; }
12006if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012007 $as_echo_n "(cached) " >&6
12008else
12009 if test -n "$AR"; then
12010 ac_cv_prog_AR="$AR" # Let the user override the test.
12011else
12012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12013for as_dir in $PATH
12014do
12015 IFS=$as_save_IFS
12016 test -z "$as_dir" && as_dir=.
12017 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012019 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000012020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12021 break 2
12022 fi
12023done
12024 done
12025IFS=$as_save_IFS
12026
12027fi
12028fi
12029AR=$ac_cv_prog_AR
12030if test -n "$AR"; then
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12032$as_echo "$AR" >&6; }
12033else
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12035$as_echo "no" >&6; }
12036fi
12037
12038
cristyda16f162011-02-19 23:52:17 +000012039 test -n "$AR" && break
12040 done
cristy73bd4a52010-10-05 11:24:23 +000012041fi
cristyda16f162011-02-19 23:52:17 +000012042if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000012043 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000012044 for ac_prog in ar
12045do
12046 # Extract the first word of "$ac_prog", so it can be a program name with args.
12047set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000012048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12049$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012050if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012051 $as_echo_n "(cached) " >&6
12052else
12053 if test -n "$ac_ct_AR"; then
12054 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12055else
12056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12057for as_dir in $PATH
12058do
12059 IFS=$as_save_IFS
12060 test -z "$as_dir" && as_dir=.
12061 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012063 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000012064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12065 break 2
12066 fi
12067done
12068 done
12069IFS=$as_save_IFS
12070
12071fi
12072fi
12073ac_ct_AR=$ac_cv_prog_ac_ct_AR
12074if test -n "$ac_ct_AR"; then
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12076$as_echo "$ac_ct_AR" >&6; }
12077else
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12079$as_echo "no" >&6; }
12080fi
12081
cristyda16f162011-02-19 23:52:17 +000012082
12083 test -n "$ac_ct_AR" && break
12084done
12085
cristy73bd4a52010-10-05 11:24:23 +000012086 if test "x$ac_ct_AR" = x; then
12087 AR="false"
12088 else
12089 case $cross_compiling:$ac_tool_warned in
12090yes:)
12091{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12092$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12093ac_tool_warned=yes ;;
12094esac
12095 AR=$ac_ct_AR
12096 fi
cristy73bd4a52010-10-05 11:24:23 +000012097fi
12098
cristyda16f162011-02-19 23:52:17 +000012099: ${AR=ar}
12100: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000012101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
cristyda16f162011-02-19 23:52:17 +000012112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12113$as_echo_n "checking for archiver @FILE support... " >&6; }
12114if ${lt_cv_ar_at_file+:} false; then :
12115 $as_echo_n "(cached) " >&6
12116else
12117 lt_cv_ar_at_file=no
12118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12119/* end confdefs.h. */
12120
12121int
12122main ()
12123{
12124
12125 ;
12126 return 0;
12127}
12128_ACEOF
12129if ac_fn_c_try_compile "$LINENO"; then :
12130 echo conftest.$ac_objext > conftest.lst
12131 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12132 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12133 (eval $lt_ar_try) 2>&5
12134 ac_status=$?
12135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12136 test $ac_status = 0; }
12137 if test "$ac_status" -eq 0; then
12138 # Ensure the archiver fails upon bogus file names.
12139 rm -f conftest.$ac_objext libconftest.a
12140 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12141 (eval $lt_ar_try) 2>&5
12142 ac_status=$?
12143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12144 test $ac_status = 0; }
12145 if test "$ac_status" -ne 0; then
12146 lt_cv_ar_at_file=@
12147 fi
12148 fi
12149 rm -f conftest.* libconftest.a
12150
12151fi
12152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12153
12154fi
12155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12156$as_echo "$lt_cv_ar_at_file" >&6; }
12157
12158if test "x$lt_cv_ar_at_file" = xno; then
12159 archiver_list_spec=
12160else
12161 archiver_list_spec=$lt_cv_ar_at_file
12162fi
12163
12164
12165
12166
12167
12168
12169
cristy73bd4a52010-10-05 11:24:23 +000012170if test -n "$ac_tool_prefix"; then
12171 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12172set dummy ${ac_tool_prefix}strip; ac_word=$2
12173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12174$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012175if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012176 $as_echo_n "(cached) " >&6
12177else
12178 if test -n "$STRIP"; then
12179 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12180else
12181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12182for as_dir in $PATH
12183do
12184 IFS=$as_save_IFS
12185 test -z "$as_dir" && as_dir=.
12186 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012188 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12190 break 2
12191 fi
12192done
12193 done
12194IFS=$as_save_IFS
12195
12196fi
12197fi
12198STRIP=$ac_cv_prog_STRIP
12199if test -n "$STRIP"; then
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12201$as_echo "$STRIP" >&6; }
12202else
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12204$as_echo "no" >&6; }
12205fi
12206
12207
12208fi
12209if test -z "$ac_cv_prog_STRIP"; then
12210 ac_ct_STRIP=$STRIP
12211 # Extract the first word of "strip", so it can be a program name with args.
12212set dummy strip; ac_word=$2
12213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12214$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012215if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012216 $as_echo_n "(cached) " >&6
12217else
12218 if test -n "$ac_ct_STRIP"; then
12219 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12220else
12221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12222for as_dir in $PATH
12223do
12224 IFS=$as_save_IFS
12225 test -z "$as_dir" && as_dir=.
12226 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012228 ac_cv_prog_ac_ct_STRIP="strip"
12229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12230 break 2
12231 fi
12232done
12233 done
12234IFS=$as_save_IFS
12235
12236fi
12237fi
12238ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12239if test -n "$ac_ct_STRIP"; then
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12241$as_echo "$ac_ct_STRIP" >&6; }
12242else
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12244$as_echo "no" >&6; }
12245fi
12246
12247 if test "x$ac_ct_STRIP" = x; then
12248 STRIP=":"
12249 else
12250 case $cross_compiling:$ac_tool_warned in
12251yes:)
12252{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12253$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12254ac_tool_warned=yes ;;
12255esac
12256 STRIP=$ac_ct_STRIP
12257 fi
12258else
12259 STRIP="$ac_cv_prog_STRIP"
12260fi
12261
12262test -z "$STRIP" && STRIP=:
12263
12264
12265
12266
12267
12268
12269if test -n "$ac_tool_prefix"; then
12270 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12271set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12273$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012274if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012275 $as_echo_n "(cached) " >&6
12276else
12277 if test -n "$RANLIB"; then
12278 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12279else
12280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12281for as_dir in $PATH
12282do
12283 IFS=$as_save_IFS
12284 test -z "$as_dir" && as_dir=.
12285 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012287 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12289 break 2
12290 fi
12291done
12292 done
12293IFS=$as_save_IFS
12294
12295fi
12296fi
12297RANLIB=$ac_cv_prog_RANLIB
12298if test -n "$RANLIB"; then
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12300$as_echo "$RANLIB" >&6; }
12301else
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12303$as_echo "no" >&6; }
12304fi
12305
12306
12307fi
12308if test -z "$ac_cv_prog_RANLIB"; then
12309 ac_ct_RANLIB=$RANLIB
12310 # Extract the first word of "ranlib", so it can be a program name with args.
12311set dummy ranlib; ac_word=$2
12312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12313$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012314if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012315 $as_echo_n "(cached) " >&6
12316else
12317 if test -n "$ac_ct_RANLIB"; then
12318 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12319else
12320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12321for as_dir in $PATH
12322do
12323 IFS=$as_save_IFS
12324 test -z "$as_dir" && as_dir=.
12325 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012327 ac_cv_prog_ac_ct_RANLIB="ranlib"
12328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12329 break 2
12330 fi
12331done
12332 done
12333IFS=$as_save_IFS
12334
12335fi
12336fi
12337ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12338if test -n "$ac_ct_RANLIB"; then
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12340$as_echo "$ac_ct_RANLIB" >&6; }
12341else
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12343$as_echo "no" >&6; }
12344fi
12345
12346 if test "x$ac_ct_RANLIB" = x; then
12347 RANLIB=":"
12348 else
12349 case $cross_compiling:$ac_tool_warned in
12350yes:)
12351{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12352$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12353ac_tool_warned=yes ;;
12354esac
12355 RANLIB=$ac_ct_RANLIB
12356 fi
12357else
12358 RANLIB="$ac_cv_prog_RANLIB"
12359fi
12360
12361test -z "$RANLIB" && RANLIB=:
12362
12363
12364
12365
12366
12367
12368# Determine commands to create old-style static archives.
12369old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12370old_postinstall_cmds='chmod 644 $oldlib'
12371old_postuninstall_cmds=
12372
12373if test -n "$RANLIB"; then
12374 case $host_os in
12375 openbsd*)
cristy99bd5232011-12-07 14:38:20 +000012376 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012377 ;;
12378 *)
cristy99bd5232011-12-07 14:38:20 +000012379 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012380 ;;
12381 esac
cristy99bd5232011-12-07 14:38:20 +000012382 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012383fi
12384
cristy0c60a692010-11-04 01:09:47 +000012385case $host_os in
12386 darwin*)
12387 lock_old_archive_extraction=yes ;;
12388 *)
12389 lock_old_archive_extraction=no ;;
12390esac
12391
12392
12393
12394
12395
12396
cristy73bd4a52010-10-05 11:24:23 +000012397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430# If no C compiler was specified, use CC.
12431LTCC=${LTCC-"$CC"}
12432
12433# If no C compiler flags were specified, use CFLAGS.
12434LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12435
12436# Allow CC to be a program name with arguments.
12437compiler=$CC
12438
12439
12440# Check for command to grab the raw symbol name followed by C symbol from nm.
12441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12442$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012443if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012444 $as_echo_n "(cached) " >&6
12445else
12446
12447# These are sane defaults that work on at least a few old systems.
12448# [They come from Ultrix. What could be older than Ultrix?!! ;)]
12449
12450# Character class describing NM global symbol codes.
12451symcode='[BCDEGRST]'
12452
12453# Regexp to match symbols that can be accessed directly from C.
12454sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12455
12456# Define system-specific variables.
12457case $host_os in
12458aix*)
12459 symcode='[BCDT]'
12460 ;;
12461cygwin* | mingw* | pw32* | cegcc*)
12462 symcode='[ABCDGISTW]'
12463 ;;
12464hpux*)
12465 if test "$host_cpu" = ia64; then
12466 symcode='[ABCDEGRST]'
12467 fi
12468 ;;
12469irix* | nonstopux*)
12470 symcode='[BCDEGRST]'
12471 ;;
12472osf*)
12473 symcode='[BCDEGQRST]'
12474 ;;
12475solaris*)
12476 symcode='[BDRT]'
12477 ;;
12478sco3.2v5*)
12479 symcode='[DT]'
12480 ;;
12481sysv4.2uw2*)
12482 symcode='[DT]'
12483 ;;
12484sysv5* | sco5v6* | unixware* | OpenUNIX*)
12485 symcode='[ABDT]'
12486 ;;
12487sysv4)
12488 symcode='[DFNSTU]'
12489 ;;
12490esac
12491
12492# If we're using GNU nm, then use its standard symbol codes.
12493case `$NM -V 2>&1` in
12494*GNU* | *'with BFD'*)
12495 symcode='[ABCDGIRSTW]' ;;
12496esac
12497
12498# Transform an extracted symbol line into a proper C declaration.
12499# Some systems (esp. on ia64) link data and code symbols differently,
12500# so use this general approach.
12501lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12502
12503# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000012504lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12505lt_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 +000012506
12507# Handle CRLF in mingw tool chain
12508opt_cr=
12509case $build_os in
12510mingw*)
12511 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12512 ;;
12513esac
12514
12515# Try without a prefix underscore, then with it.
12516for ac_symprfx in "" "_"; do
12517
12518 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12519 symxfrm="\\1 $ac_symprfx\\2 \\2"
12520
12521 # Write the raw and C identifiers.
12522 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12523 # Fake it for dumpbin and say T for any non-static function
12524 # and D for any global variable.
12525 # Also find C++ and __fastcall symbols from MSVC++,
12526 # which start with @ or ?.
12527 lt_cv_sys_global_symbol_pipe="$AWK '"\
12528" {last_section=section; section=\$ 3};"\
cristy99bd5232011-12-07 14:38:20 +000012529" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
cristy73bd4a52010-10-05 11:24:23 +000012530" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12531" \$ 0!~/External *\|/{next};"\
12532" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12533" {if(hide[section]) next};"\
12534" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12535" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12536" s[1]~/^[@?]/{print s[1], s[1]; next};"\
12537" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12538" ' prfx=^$ac_symprfx"
12539 else
12540 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12541 fi
cristyda16f162011-02-19 23:52:17 +000012542 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000012543
12544 # Check to see that the pipe works correctly.
12545 pipe_works=no
12546
12547 rm -f conftest*
12548 cat > conftest.$ac_ext <<_LT_EOF
12549#ifdef __cplusplus
12550extern "C" {
12551#endif
12552char nm_test_var;
12553void nm_test_func(void);
12554void nm_test_func(void){}
12555#ifdef __cplusplus
12556}
12557#endif
12558int main(){nm_test_var='a';nm_test_func();return(0);}
12559_LT_EOF
12560
12561 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12562 (eval $ac_compile) 2>&5
12563 ac_status=$?
12564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12565 test $ac_status = 0; }; then
12566 # Now try to grab the symbols.
12567 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000012568 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12569 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000012570 ac_status=$?
12571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12572 test $ac_status = 0; } && test -s "$nlist"; then
12573 # Try sorting and uniquifying the output.
12574 if sort "$nlist" | uniq > "$nlist"T; then
12575 mv -f "$nlist"T "$nlist"
12576 else
12577 rm -f "$nlist"T
12578 fi
12579
12580 # Make sure that we snagged all the symbols we need.
12581 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12582 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12583 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000012584/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12585#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12586/* DATA imports from DLLs on WIN32 con't be const, because runtime
12587 relocations are performed -- see ld's documentation on pseudo-relocs. */
12588# define LT_DLSYM_CONST
12589#elif defined(__osf__)
12590/* This system does not cope well with relocations in const data. */
12591# define LT_DLSYM_CONST
12592#else
12593# define LT_DLSYM_CONST const
12594#endif
12595
cristy73bd4a52010-10-05 11:24:23 +000012596#ifdef __cplusplus
12597extern "C" {
12598#endif
12599
12600_LT_EOF
12601 # Now generate the symbol file.
12602 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12603
12604 cat <<_LT_EOF >> conftest.$ac_ext
12605
12606/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000012607LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000012608 const char *name;
12609 void *address;
12610}
12611lt__PROGRAM__LTX_preloaded_symbols[] =
12612{
12613 { "@PROGRAM@", (void *) 0 },
12614_LT_EOF
12615 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12616 cat <<\_LT_EOF >> conftest.$ac_ext
12617 {0, (void *) 0}
12618};
12619
12620/* This works around a problem in FreeBSD linker */
12621#ifdef FREEBSD_WORKAROUND
12622static const void *lt_preloaded_setup() {
12623 return lt__PROGRAM__LTX_preloaded_symbols;
12624}
12625#endif
12626
12627#ifdef __cplusplus
12628}
12629#endif
12630_LT_EOF
12631 # Now try linking the two files.
12632 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000012633 lt_globsym_save_LIBS=$LIBS
12634 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012635 LIBS="conftstm.$ac_objext"
12636 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12637 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12638 (eval $ac_link) 2>&5
12639 ac_status=$?
12640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12641 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12642 pipe_works=yes
12643 fi
cristyda16f162011-02-19 23:52:17 +000012644 LIBS=$lt_globsym_save_LIBS
12645 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012646 else
12647 echo "cannot find nm_test_func in $nlist" >&5
12648 fi
12649 else
12650 echo "cannot find nm_test_var in $nlist" >&5
12651 fi
12652 else
12653 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12654 fi
12655 else
12656 echo "$progname: failed program was:" >&5
12657 cat conftest.$ac_ext >&5
12658 fi
12659 rm -rf conftest* conftst*
12660
12661 # Do not use the global_symbol_pipe unless it works.
12662 if test "$pipe_works" = yes; then
12663 break
12664 else
12665 lt_cv_sys_global_symbol_pipe=
12666 fi
12667done
12668
12669fi
12670
12671if test -z "$lt_cv_sys_global_symbol_pipe"; then
12672 lt_cv_sys_global_symbol_to_cdecl=
12673fi
12674if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12676$as_echo "failed" >&6; }
12677else
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12679$as_echo "ok" >&6; }
12680fi
12681
cristyda16f162011-02-19 23:52:17 +000012682# Response file support.
12683if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12684 nm_file_list_spec='@'
12685elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12686 nm_file_list_spec='@'
12687fi
cristy73bd4a52010-10-05 11:24:23 +000012688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
cristyda16f162011-02-19 23:52:17 +000012709
12710
12711
12712
12713
12714
12715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12716$as_echo_n "checking for sysroot... " >&6; }
12717
12718# Check whether --with-sysroot was given.
12719if test "${with_sysroot+set}" = set; then :
12720 withval=$with_sysroot;
12721else
12722 with_sysroot=no
12723fi
12724
12725
12726lt_sysroot=
12727case ${with_sysroot} in #(
12728 yes)
12729 if test "$GCC" = yes; then
12730 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12731 fi
12732 ;; #(
12733 /*)
12734 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12735 ;; #(
12736 no|'')
12737 ;; #(
12738 *)
12739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12740$as_echo "${with_sysroot}" >&6; }
12741 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12742 ;;
12743esac
12744
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12746$as_echo "${lt_sysroot:-no}" >&6; }
12747
12748
12749
12750
12751
cristy73bd4a52010-10-05 11:24:23 +000012752# Check whether --enable-libtool-lock was given.
12753if test "${enable_libtool_lock+set}" = set; then :
12754 enableval=$enable_libtool_lock;
12755fi
12756
12757test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12758
12759# Some flags need to be propagated to the compiler or linker for good
12760# libtool support.
12761case $host in
12762ia64-*-hpux*)
12763 # Find out which ABI we are using.
12764 echo 'int i;' > conftest.$ac_ext
12765 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12766 (eval $ac_compile) 2>&5
12767 ac_status=$?
12768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12769 test $ac_status = 0; }; then
12770 case `/usr/bin/file conftest.$ac_objext` in
12771 *ELF-32*)
12772 HPUX_IA64_MODE="32"
12773 ;;
12774 *ELF-64*)
12775 HPUX_IA64_MODE="64"
12776 ;;
12777 esac
12778 fi
12779 rm -rf conftest*
12780 ;;
12781*-*-irix6*)
12782 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000012783 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000012784 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12785 (eval $ac_compile) 2>&5
12786 ac_status=$?
12787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12788 test $ac_status = 0; }; then
12789 if test "$lt_cv_prog_gnu_ld" = yes; then
12790 case `/usr/bin/file conftest.$ac_objext` in
12791 *32-bit*)
12792 LD="${LD-ld} -melf32bsmip"
12793 ;;
12794 *N32*)
12795 LD="${LD-ld} -melf32bmipn32"
12796 ;;
12797 *64-bit*)
12798 LD="${LD-ld} -melf64bmip"
12799 ;;
12800 esac
12801 else
12802 case `/usr/bin/file conftest.$ac_objext` in
12803 *32-bit*)
12804 LD="${LD-ld} -32"
12805 ;;
12806 *N32*)
12807 LD="${LD-ld} -n32"
12808 ;;
12809 *64-bit*)
12810 LD="${LD-ld} -64"
12811 ;;
12812 esac
12813 fi
12814 fi
12815 rm -rf conftest*
12816 ;;
12817
cristyd95b7a52013-10-23 13:12:53 +000012818x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
cristy73bd4a52010-10-05 11:24:23 +000012819s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12820 # Find out which ABI we are using.
12821 echo 'int i;' > conftest.$ac_ext
12822 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12823 (eval $ac_compile) 2>&5
12824 ac_status=$?
12825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12826 test $ac_status = 0; }; then
12827 case `/usr/bin/file conftest.o` in
12828 *32-bit*)
12829 case $host in
12830 x86_64-*kfreebsd*-gnu)
12831 LD="${LD-ld} -m elf_i386_fbsd"
12832 ;;
12833 x86_64-*linux*)
12834 LD="${LD-ld} -m elf_i386"
12835 ;;
cristya5bda012013-11-03 18:05:38 +000012836 powerpc64le-*linux*)
cristyd95b7a52013-10-23 13:12:53 +000012837 LD="${LD-ld} -m elf32lppclinux"
12838 ;;
cristya5bda012013-11-03 18:05:38 +000012839 powerpc64-*linux*)
cristy73bd4a52010-10-05 11:24:23 +000012840 LD="${LD-ld} -m elf32ppclinux"
12841 ;;
12842 s390x-*linux*)
12843 LD="${LD-ld} -m elf_s390"
12844 ;;
12845 sparc64-*linux*)
12846 LD="${LD-ld} -m elf32_sparc"
12847 ;;
12848 esac
12849 ;;
12850 *64-bit*)
12851 case $host in
12852 x86_64-*kfreebsd*-gnu)
12853 LD="${LD-ld} -m elf_x86_64_fbsd"
12854 ;;
12855 x86_64-*linux*)
12856 LD="${LD-ld} -m elf_x86_64"
12857 ;;
cristyd95b7a52013-10-23 13:12:53 +000012858 powerpcle-*linux*)
12859 LD="${LD-ld} -m elf64lppc"
12860 ;;
12861 powerpc-*linux*)
cristy73bd4a52010-10-05 11:24:23 +000012862 LD="${LD-ld} -m elf64ppc"
12863 ;;
12864 s390*-*linux*|s390*-*tpf*)
12865 LD="${LD-ld} -m elf64_s390"
12866 ;;
12867 sparc*-*linux*)
12868 LD="${LD-ld} -m elf64_sparc"
12869 ;;
12870 esac
12871 ;;
12872 esac
12873 fi
12874 rm -rf conftest*
12875 ;;
12876
12877*-*-sco3.2v5*)
12878 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12879 SAVE_CFLAGS="$CFLAGS"
12880 CFLAGS="$CFLAGS -belf"
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12882$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012883if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012884 $as_echo_n "(cached) " >&6
12885else
12886 ac_ext=c
12887ac_cpp='$CPP $CPPFLAGS'
12888ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12889ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12890ac_compiler_gnu=$ac_cv_c_compiler_gnu
12891
12892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12893/* end confdefs.h. */
12894
12895int
12896main ()
12897{
12898
12899 ;
12900 return 0;
12901}
12902_ACEOF
12903if ac_fn_c_try_link "$LINENO"; then :
12904 lt_cv_cc_needs_belf=yes
12905else
12906 lt_cv_cc_needs_belf=no
12907fi
12908rm -f core conftest.err conftest.$ac_objext \
12909 conftest$ac_exeext conftest.$ac_ext
12910 ac_ext=c
12911ac_cpp='$CPP $CPPFLAGS'
12912ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12913ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12914ac_compiler_gnu=$ac_cv_c_compiler_gnu
12915
12916fi
12917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12918$as_echo "$lt_cv_cc_needs_belf" >&6; }
12919 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12920 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12921 CFLAGS="$SAVE_CFLAGS"
12922 fi
12923 ;;
cristy99bd5232011-12-07 14:38:20 +000012924*-*solaris*)
cristy73bd4a52010-10-05 11:24:23 +000012925 # Find out which ABI we are using.
12926 echo 'int i;' > conftest.$ac_ext
12927 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12928 (eval $ac_compile) 2>&5
12929 ac_status=$?
12930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12931 test $ac_status = 0; }; then
12932 case `/usr/bin/file conftest.o` in
12933 *64-bit*)
12934 case $lt_cv_prog_gnu_ld in
cristy99bd5232011-12-07 14:38:20 +000012935 yes*)
12936 case $host in
12937 i?86-*-solaris*)
12938 LD="${LD-ld} -m elf_x86_64"
12939 ;;
12940 sparc*-*-solaris*)
12941 LD="${LD-ld} -m elf64_sparc"
12942 ;;
12943 esac
12944 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
12945 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12946 LD="${LD-ld}_sol2"
12947 fi
12948 ;;
cristy73bd4a52010-10-05 11:24:23 +000012949 *)
12950 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12951 LD="${LD-ld} -64"
12952 fi
12953 ;;
12954 esac
12955 ;;
12956 esac
12957 fi
12958 rm -rf conftest*
12959 ;;
12960esac
12961
12962need_locks="$enable_libtool_lock"
12963
cristyda16f162011-02-19 23:52:17 +000012964if test -n "$ac_tool_prefix"; then
12965 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
12966set dummy ${ac_tool_prefix}mt; ac_word=$2
12967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12968$as_echo_n "checking for $ac_word... " >&6; }
12969if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
12970 $as_echo_n "(cached) " >&6
12971else
12972 if test -n "$MANIFEST_TOOL"; then
12973 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
12974else
12975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12976for as_dir in $PATH
12977do
12978 IFS=$as_save_IFS
12979 test -z "$as_dir" && as_dir=.
12980 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012982 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
12983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12984 break 2
12985 fi
12986done
12987 done
12988IFS=$as_save_IFS
12989
12990fi
12991fi
12992MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
12993if test -n "$MANIFEST_TOOL"; then
12994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
12995$as_echo "$MANIFEST_TOOL" >&6; }
12996else
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12998$as_echo "no" >&6; }
12999fi
13000
13001
13002fi
13003if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13004 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13005 # Extract the first word of "mt", so it can be a program name with args.
13006set dummy mt; ac_word=$2
13007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13008$as_echo_n "checking for $ac_word... " >&6; }
13009if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13010 $as_echo_n "(cached) " >&6
13011else
13012 if test -n "$ac_ct_MANIFEST_TOOL"; then
13013 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13014else
13015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13016for as_dir in $PATH
13017do
13018 IFS=$as_save_IFS
13019 test -z "$as_dir" && as_dir=.
13020 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000013022 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13024 break 2
13025 fi
13026done
13027 done
13028IFS=$as_save_IFS
13029
13030fi
13031fi
13032ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13033if test -n "$ac_ct_MANIFEST_TOOL"; then
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13035$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13036else
13037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13038$as_echo "no" >&6; }
13039fi
13040
13041 if test "x$ac_ct_MANIFEST_TOOL" = x; then
13042 MANIFEST_TOOL=":"
13043 else
13044 case $cross_compiling:$ac_tool_warned in
13045yes:)
13046{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13047$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13048ac_tool_warned=yes ;;
13049esac
13050 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13051 fi
13052else
13053 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13054fi
13055
13056test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13058$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13059if ${lt_cv_path_mainfest_tool+:} false; then :
13060 $as_echo_n "(cached) " >&6
13061else
13062 lt_cv_path_mainfest_tool=no
13063 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13064 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13065 cat conftest.err >&5
13066 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13067 lt_cv_path_mainfest_tool=yes
13068 fi
13069 rm -f conftest*
13070fi
13071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13072$as_echo "$lt_cv_path_mainfest_tool" >&6; }
13073if test "x$lt_cv_path_mainfest_tool" != xyes; then
13074 MANIFEST_TOOL=:
13075fi
13076
13077
13078
13079
13080
cristy73bd4a52010-10-05 11:24:23 +000013081
13082 case $host_os in
13083 rhapsody* | darwin*)
13084 if test -n "$ac_tool_prefix"; then
13085 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13086set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13088$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013089if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013090 $as_echo_n "(cached) " >&6
13091else
13092 if test -n "$DSYMUTIL"; then
13093 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13094else
13095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13096for as_dir in $PATH
13097do
13098 IFS=$as_save_IFS
13099 test -z "$as_dir" && as_dir=.
13100 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013102 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13104 break 2
13105 fi
13106done
13107 done
13108IFS=$as_save_IFS
13109
13110fi
13111fi
13112DSYMUTIL=$ac_cv_prog_DSYMUTIL
13113if test -n "$DSYMUTIL"; then
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13115$as_echo "$DSYMUTIL" >&6; }
13116else
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13118$as_echo "no" >&6; }
13119fi
13120
13121
13122fi
13123if test -z "$ac_cv_prog_DSYMUTIL"; then
13124 ac_ct_DSYMUTIL=$DSYMUTIL
13125 # Extract the first word of "dsymutil", so it can be a program name with args.
13126set dummy dsymutil; ac_word=$2
13127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13128$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013129if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013130 $as_echo_n "(cached) " >&6
13131else
13132 if test -n "$ac_ct_DSYMUTIL"; then
13133 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13134else
13135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13136for as_dir in $PATH
13137do
13138 IFS=$as_save_IFS
13139 test -z "$as_dir" && as_dir=.
13140 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013142 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13144 break 2
13145 fi
13146done
13147 done
13148IFS=$as_save_IFS
13149
13150fi
13151fi
13152ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13153if test -n "$ac_ct_DSYMUTIL"; then
13154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13155$as_echo "$ac_ct_DSYMUTIL" >&6; }
13156else
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13158$as_echo "no" >&6; }
13159fi
13160
13161 if test "x$ac_ct_DSYMUTIL" = x; then
13162 DSYMUTIL=":"
13163 else
13164 case $cross_compiling:$ac_tool_warned in
13165yes:)
13166{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13167$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13168ac_tool_warned=yes ;;
13169esac
13170 DSYMUTIL=$ac_ct_DSYMUTIL
13171 fi
13172else
13173 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13174fi
13175
13176 if test -n "$ac_tool_prefix"; then
13177 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13178set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13180$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013181if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013182 $as_echo_n "(cached) " >&6
13183else
13184 if test -n "$NMEDIT"; then
13185 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13186else
13187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13188for as_dir in $PATH
13189do
13190 IFS=$as_save_IFS
13191 test -z "$as_dir" && as_dir=.
13192 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013194 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13196 break 2
13197 fi
13198done
13199 done
13200IFS=$as_save_IFS
13201
13202fi
13203fi
13204NMEDIT=$ac_cv_prog_NMEDIT
13205if test -n "$NMEDIT"; then
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13207$as_echo "$NMEDIT" >&6; }
13208else
13209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13210$as_echo "no" >&6; }
13211fi
13212
13213
13214fi
13215if test -z "$ac_cv_prog_NMEDIT"; then
13216 ac_ct_NMEDIT=$NMEDIT
13217 # Extract the first word of "nmedit", so it can be a program name with args.
13218set dummy nmedit; ac_word=$2
13219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13220$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013221if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013222 $as_echo_n "(cached) " >&6
13223else
13224 if test -n "$ac_ct_NMEDIT"; then
13225 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13226else
13227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13228for as_dir in $PATH
13229do
13230 IFS=$as_save_IFS
13231 test -z "$as_dir" && as_dir=.
13232 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013234 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13236 break 2
13237 fi
13238done
13239 done
13240IFS=$as_save_IFS
13241
13242fi
13243fi
13244ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13245if test -n "$ac_ct_NMEDIT"; then
13246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13247$as_echo "$ac_ct_NMEDIT" >&6; }
13248else
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13250$as_echo "no" >&6; }
13251fi
13252
13253 if test "x$ac_ct_NMEDIT" = x; then
13254 NMEDIT=":"
13255 else
13256 case $cross_compiling:$ac_tool_warned in
13257yes:)
13258{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13259$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13260ac_tool_warned=yes ;;
13261esac
13262 NMEDIT=$ac_ct_NMEDIT
13263 fi
13264else
13265 NMEDIT="$ac_cv_prog_NMEDIT"
13266fi
13267
13268 if test -n "$ac_tool_prefix"; then
13269 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13270set dummy ${ac_tool_prefix}lipo; ac_word=$2
13271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13272$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013273if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013274 $as_echo_n "(cached) " >&6
13275else
13276 if test -n "$LIPO"; then
13277 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13278else
13279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13280for as_dir in $PATH
13281do
13282 IFS=$as_save_IFS
13283 test -z "$as_dir" && as_dir=.
13284 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013286 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13288 break 2
13289 fi
13290done
13291 done
13292IFS=$as_save_IFS
13293
13294fi
13295fi
13296LIPO=$ac_cv_prog_LIPO
13297if test -n "$LIPO"; then
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13299$as_echo "$LIPO" >&6; }
13300else
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13302$as_echo "no" >&6; }
13303fi
13304
13305
13306fi
13307if test -z "$ac_cv_prog_LIPO"; then
13308 ac_ct_LIPO=$LIPO
13309 # Extract the first word of "lipo", so it can be a program name with args.
13310set dummy lipo; ac_word=$2
13311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13312$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013313if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013314 $as_echo_n "(cached) " >&6
13315else
13316 if test -n "$ac_ct_LIPO"; then
13317 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13318else
13319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13320for as_dir in $PATH
13321do
13322 IFS=$as_save_IFS
13323 test -z "$as_dir" && as_dir=.
13324 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013326 ac_cv_prog_ac_ct_LIPO="lipo"
13327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13328 break 2
13329 fi
13330done
13331 done
13332IFS=$as_save_IFS
13333
13334fi
13335fi
13336ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13337if test -n "$ac_ct_LIPO"; then
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13339$as_echo "$ac_ct_LIPO" >&6; }
13340else
13341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13342$as_echo "no" >&6; }
13343fi
13344
13345 if test "x$ac_ct_LIPO" = x; then
13346 LIPO=":"
13347 else
13348 case $cross_compiling:$ac_tool_warned in
13349yes:)
13350{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13351$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13352ac_tool_warned=yes ;;
13353esac
13354 LIPO=$ac_ct_LIPO
13355 fi
13356else
13357 LIPO="$ac_cv_prog_LIPO"
13358fi
13359
13360 if test -n "$ac_tool_prefix"; then
13361 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13362set dummy ${ac_tool_prefix}otool; ac_word=$2
13363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13364$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013365if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013366 $as_echo_n "(cached) " >&6
13367else
13368 if test -n "$OTOOL"; then
13369 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13370else
13371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13372for as_dir in $PATH
13373do
13374 IFS=$as_save_IFS
13375 test -z "$as_dir" && as_dir=.
13376 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013378 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13380 break 2
13381 fi
13382done
13383 done
13384IFS=$as_save_IFS
13385
13386fi
13387fi
13388OTOOL=$ac_cv_prog_OTOOL
13389if test -n "$OTOOL"; then
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13391$as_echo "$OTOOL" >&6; }
13392else
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13394$as_echo "no" >&6; }
13395fi
13396
13397
13398fi
13399if test -z "$ac_cv_prog_OTOOL"; then
13400 ac_ct_OTOOL=$OTOOL
13401 # Extract the first word of "otool", so it can be a program name with args.
13402set dummy otool; ac_word=$2
13403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13404$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013405if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013406 $as_echo_n "(cached) " >&6
13407else
13408 if test -n "$ac_ct_OTOOL"; then
13409 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13410else
13411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13412for as_dir in $PATH
13413do
13414 IFS=$as_save_IFS
13415 test -z "$as_dir" && as_dir=.
13416 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013418 ac_cv_prog_ac_ct_OTOOL="otool"
13419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13420 break 2
13421 fi
13422done
13423 done
13424IFS=$as_save_IFS
13425
13426fi
13427fi
13428ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13429if test -n "$ac_ct_OTOOL"; then
13430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13431$as_echo "$ac_ct_OTOOL" >&6; }
13432else
13433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13434$as_echo "no" >&6; }
13435fi
13436
13437 if test "x$ac_ct_OTOOL" = x; then
13438 OTOOL=":"
13439 else
13440 case $cross_compiling:$ac_tool_warned in
13441yes:)
13442{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13443$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13444ac_tool_warned=yes ;;
13445esac
13446 OTOOL=$ac_ct_OTOOL
13447 fi
13448else
13449 OTOOL="$ac_cv_prog_OTOOL"
13450fi
13451
13452 if test -n "$ac_tool_prefix"; then
13453 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13454set dummy ${ac_tool_prefix}otool64; ac_word=$2
13455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13456$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013457if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013458 $as_echo_n "(cached) " >&6
13459else
13460 if test -n "$OTOOL64"; then
13461 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13462else
13463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13464for as_dir in $PATH
13465do
13466 IFS=$as_save_IFS
13467 test -z "$as_dir" && as_dir=.
13468 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013470 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13472 break 2
13473 fi
13474done
13475 done
13476IFS=$as_save_IFS
13477
13478fi
13479fi
13480OTOOL64=$ac_cv_prog_OTOOL64
13481if test -n "$OTOOL64"; then
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13483$as_echo "$OTOOL64" >&6; }
13484else
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13486$as_echo "no" >&6; }
13487fi
13488
13489
13490fi
13491if test -z "$ac_cv_prog_OTOOL64"; then
13492 ac_ct_OTOOL64=$OTOOL64
13493 # Extract the first word of "otool64", so it can be a program name with args.
13494set dummy otool64; ac_word=$2
13495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13496$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013497if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013498 $as_echo_n "(cached) " >&6
13499else
13500 if test -n "$ac_ct_OTOOL64"; then
13501 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13502else
13503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13504for as_dir in $PATH
13505do
13506 IFS=$as_save_IFS
13507 test -z "$as_dir" && as_dir=.
13508 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013510 ac_cv_prog_ac_ct_OTOOL64="otool64"
13511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13512 break 2
13513 fi
13514done
13515 done
13516IFS=$as_save_IFS
13517
13518fi
13519fi
13520ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13521if test -n "$ac_ct_OTOOL64"; then
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13523$as_echo "$ac_ct_OTOOL64" >&6; }
13524else
13525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13526$as_echo "no" >&6; }
13527fi
13528
13529 if test "x$ac_ct_OTOOL64" = x; then
13530 OTOOL64=":"
13531 else
13532 case $cross_compiling:$ac_tool_warned in
13533yes:)
13534{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13535$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13536ac_tool_warned=yes ;;
13537esac
13538 OTOOL64=$ac_ct_OTOOL64
13539 fi
13540else
13541 OTOOL64="$ac_cv_prog_OTOOL64"
13542fi
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13571$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013572if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013573 $as_echo_n "(cached) " >&6
13574else
13575 lt_cv_apple_cc_single_mod=no
13576 if test -z "${LT_MULTI_MODULE}"; then
13577 # By default we will add the -single_module flag. You can override
13578 # by either setting the environment variable LT_MULTI_MODULE
13579 # non-empty at configure time, or by adding -multi_module to the
13580 # link flags.
13581 rm -rf libconftest.dylib*
13582 echo "int foo(void){return 1;}" > conftest.c
13583 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13584-dynamiclib -Wl,-single_module conftest.c" >&5
13585 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13586 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13587 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013588 # If there is a non-empty error log, and "single_module"
13589 # appears in it, assume the flag caused a linker warning
13590 if test -s conftest.err && $GREP single_module conftest.err; then
13591 cat conftest.err >&5
13592 # Otherwise, if the output was created with a 0 exit code from
13593 # the compiler, it worked.
13594 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
cristy73bd4a52010-10-05 11:24:23 +000013595 lt_cv_apple_cc_single_mod=yes
13596 else
13597 cat conftest.err >&5
13598 fi
13599 rm -rf libconftest.dylib*
13600 rm -f conftest.*
13601 fi
13602fi
13603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13604$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013605
cristy73bd4a52010-10-05 11:24:23 +000013606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13607$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013608if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013609 $as_echo_n "(cached) " >&6
13610else
13611 lt_cv_ld_exported_symbols_list=no
13612 save_LDFLAGS=$LDFLAGS
13613 echo "_main" > conftest.sym
13614 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13616/* end confdefs.h. */
13617
13618int
13619main ()
13620{
13621
13622 ;
13623 return 0;
13624}
13625_ACEOF
13626if ac_fn_c_try_link "$LINENO"; then :
13627 lt_cv_ld_exported_symbols_list=yes
13628else
13629 lt_cv_ld_exported_symbols_list=no
13630fi
13631rm -f core conftest.err conftest.$ac_objext \
13632 conftest$ac_exeext conftest.$ac_ext
13633 LDFLAGS="$save_LDFLAGS"
13634
13635fi
13636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13637$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013638
cristy0c60a692010-11-04 01:09:47 +000013639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13640$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013641if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000013642 $as_echo_n "(cached) " >&6
13643else
13644 lt_cv_ld_force_load=no
13645 cat > conftest.c << _LT_EOF
13646int forced_loaded() { return 2;}
13647_LT_EOF
13648 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13649 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13650 echo "$AR cru libconftest.a conftest.o" >&5
13651 $AR cru libconftest.a conftest.o 2>&5
13652 echo "$RANLIB libconftest.a" >&5
13653 $RANLIB libconftest.a 2>&5
13654 cat > conftest.c << _LT_EOF
13655int main() { return 0;}
13656_LT_EOF
13657 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13658 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13659 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013660 if test -s conftest.err && $GREP force_load conftest.err; then
13661 cat conftest.err >&5
13662 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
cristy0c60a692010-11-04 01:09:47 +000013663 lt_cv_ld_force_load=yes
13664 else
13665 cat conftest.err >&5
13666 fi
13667 rm -f conftest.err libconftest.a conftest conftest.c
13668 rm -rf conftest.dSYM
13669
13670fi
13671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13672$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000013673 case $host_os in
13674 rhapsody* | darwin1.[012])
13675 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13676 darwin1.*)
13677 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13678 darwin*) # darwin 5.x on
13679 # if running on 10.5 or later, the deployment target defaults
13680 # to the OS version, if on x86, and 10.4, the deployment
13681 # target defaults to 10.4. Don't you love it?
13682 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13683 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13684 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13685 10.[012]*)
13686 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13687 10.*)
13688 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13689 esac
13690 ;;
13691 esac
13692 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13693 _lt_dar_single_mod='$single_module'
13694 fi
13695 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13696 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13697 else
13698 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13699 fi
cristy0c60a692010-11-04 01:09:47 +000013700 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000013701 _lt_dsymutil='~$DSYMUTIL $lib || :'
13702 else
13703 _lt_dsymutil=
13704 fi
13705 ;;
13706 esac
13707
13708for ac_header in dlfcn.h
13709do :
13710 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13711"
cristyda16f162011-02-19 23:52:17 +000013712if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000013713 cat >>confdefs.h <<_ACEOF
13714#define HAVE_DLFCN_H 1
13715_ACEOF
13716
13717fi
13718
13719done
13720
13721
13722
cristy73bd4a52010-10-05 11:24:23 +000013723
cristyda16f162011-02-19 23:52:17 +000013724func_stripname_cnf ()
13725{
13726 case ${2} in
13727 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13728 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13729 esac
13730} # func_stripname_cnf
13731
13732
13733
cristy73bd4a52010-10-05 11:24:23 +000013734
13735
13736# Set options
13737enable_win32_dll=yes
13738
13739case $host in
cristy0c60a692010-11-04 01:09:47 +000013740*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000013741 if test -n "$ac_tool_prefix"; then
13742 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
13743set dummy ${ac_tool_prefix}as; ac_word=$2
13744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13745$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013746if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013747 $as_echo_n "(cached) " >&6
13748else
13749 if test -n "$AS"; then
13750 ac_cv_prog_AS="$AS" # Let the user override the test.
13751else
13752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13753for as_dir in $PATH
13754do
13755 IFS=$as_save_IFS
13756 test -z "$as_dir" && as_dir=.
13757 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013759 ac_cv_prog_AS="${ac_tool_prefix}as"
13760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13761 break 2
13762 fi
13763done
13764 done
13765IFS=$as_save_IFS
13766
13767fi
13768fi
13769AS=$ac_cv_prog_AS
13770if test -n "$AS"; then
13771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
13772$as_echo "$AS" >&6; }
13773else
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13775$as_echo "no" >&6; }
13776fi
13777
13778
13779fi
13780if test -z "$ac_cv_prog_AS"; then
13781 ac_ct_AS=$AS
13782 # Extract the first word of "as", so it can be a program name with args.
13783set dummy as; ac_word=$2
13784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13785$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013786if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013787 $as_echo_n "(cached) " >&6
13788else
13789 if test -n "$ac_ct_AS"; then
13790 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
13791else
13792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13793for as_dir in $PATH
13794do
13795 IFS=$as_save_IFS
13796 test -z "$as_dir" && as_dir=.
13797 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013799 ac_cv_prog_ac_ct_AS="as"
13800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13801 break 2
13802 fi
13803done
13804 done
13805IFS=$as_save_IFS
13806
13807fi
13808fi
13809ac_ct_AS=$ac_cv_prog_ac_ct_AS
13810if test -n "$ac_ct_AS"; then
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
13812$as_echo "$ac_ct_AS" >&6; }
13813else
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13815$as_echo "no" >&6; }
13816fi
13817
13818 if test "x$ac_ct_AS" = x; then
13819 AS="false"
13820 else
13821 case $cross_compiling:$ac_tool_warned in
13822yes:)
13823{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13824$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13825ac_tool_warned=yes ;;
13826esac
13827 AS=$ac_ct_AS
13828 fi
13829else
13830 AS="$ac_cv_prog_AS"
13831fi
13832
13833 if test -n "$ac_tool_prefix"; then
13834 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13835set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13837$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013838if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013839 $as_echo_n "(cached) " >&6
13840else
13841 if test -n "$DLLTOOL"; then
13842 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13843else
13844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13845for as_dir in $PATH
13846do
13847 IFS=$as_save_IFS
13848 test -z "$as_dir" && as_dir=.
13849 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013851 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13853 break 2
13854 fi
13855done
13856 done
13857IFS=$as_save_IFS
13858
13859fi
13860fi
13861DLLTOOL=$ac_cv_prog_DLLTOOL
13862if test -n "$DLLTOOL"; then
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
13864$as_echo "$DLLTOOL" >&6; }
13865else
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13867$as_echo "no" >&6; }
13868fi
13869
13870
13871fi
13872if test -z "$ac_cv_prog_DLLTOOL"; then
13873 ac_ct_DLLTOOL=$DLLTOOL
13874 # Extract the first word of "dlltool", so it can be a program name with args.
13875set dummy dlltool; ac_word=$2
13876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13877$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013878if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013879 $as_echo_n "(cached) " >&6
13880else
13881 if test -n "$ac_ct_DLLTOOL"; then
13882 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13883else
13884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13885for as_dir in $PATH
13886do
13887 IFS=$as_save_IFS
13888 test -z "$as_dir" && as_dir=.
13889 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013891 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13893 break 2
13894 fi
13895done
13896 done
13897IFS=$as_save_IFS
13898
13899fi
13900fi
13901ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13902if test -n "$ac_ct_DLLTOOL"; then
13903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
13904$as_echo "$ac_ct_DLLTOOL" >&6; }
13905else
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13907$as_echo "no" >&6; }
13908fi
13909
13910 if test "x$ac_ct_DLLTOOL" = x; then
13911 DLLTOOL="false"
13912 else
13913 case $cross_compiling:$ac_tool_warned in
13914yes:)
13915{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13916$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13917ac_tool_warned=yes ;;
13918esac
13919 DLLTOOL=$ac_ct_DLLTOOL
13920 fi
13921else
13922 DLLTOOL="$ac_cv_prog_DLLTOOL"
13923fi
13924
13925 if test -n "$ac_tool_prefix"; then
13926 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13927set dummy ${ac_tool_prefix}objdump; ac_word=$2
13928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13929$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013930if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013931 $as_echo_n "(cached) " >&6
13932else
13933 if test -n "$OBJDUMP"; then
13934 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13935else
13936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13937for as_dir in $PATH
13938do
13939 IFS=$as_save_IFS
13940 test -z "$as_dir" && as_dir=.
13941 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013943 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13945 break 2
13946 fi
13947done
13948 done
13949IFS=$as_save_IFS
13950
13951fi
13952fi
13953OBJDUMP=$ac_cv_prog_OBJDUMP
13954if test -n "$OBJDUMP"; then
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13956$as_echo "$OBJDUMP" >&6; }
13957else
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13959$as_echo "no" >&6; }
13960fi
13961
13962
13963fi
13964if test -z "$ac_cv_prog_OBJDUMP"; then
13965 ac_ct_OBJDUMP=$OBJDUMP
13966 # Extract the first word of "objdump", so it can be a program name with args.
13967set dummy objdump; ac_word=$2
13968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13969$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013970if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013971 $as_echo_n "(cached) " >&6
13972else
13973 if test -n "$ac_ct_OBJDUMP"; then
13974 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13975else
13976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13977for as_dir in $PATH
13978do
13979 IFS=$as_save_IFS
13980 test -z "$as_dir" && as_dir=.
13981 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013983 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13985 break 2
13986 fi
13987done
13988 done
13989IFS=$as_save_IFS
13990
13991fi
13992fi
13993ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13994if test -n "$ac_ct_OBJDUMP"; then
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13996$as_echo "$ac_ct_OBJDUMP" >&6; }
13997else
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13999$as_echo "no" >&6; }
14000fi
14001
14002 if test "x$ac_ct_OBJDUMP" = x; then
14003 OBJDUMP="false"
14004 else
14005 case $cross_compiling:$ac_tool_warned in
14006yes:)
14007{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14008$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14009ac_tool_warned=yes ;;
14010esac
14011 OBJDUMP=$ac_ct_OBJDUMP
14012 fi
14013else
14014 OBJDUMP="$ac_cv_prog_OBJDUMP"
14015fi
14016
14017 ;;
14018esac
14019
14020test -z "$AS" && AS=as
14021
14022
14023
14024
14025
14026test -z "$DLLTOOL" && DLLTOOL=dlltool
14027
14028
14029
14030
14031
14032test -z "$OBJDUMP" && OBJDUMP=objdump
14033
14034
14035
14036
14037
14038
14039
14040
14041
14042 # Check whether --enable-shared was given.
14043if test "${enable_shared+set}" = set; then :
14044 enableval=$enable_shared; p=${PACKAGE-default}
14045 case $enableval in
14046 yes) enable_shared=yes ;;
14047 no) enable_shared=no ;;
14048 *)
14049 enable_shared=no
14050 # Look at the argument we got. We use all the common list separators.
14051 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14052 for pkg in $enableval; do
14053 IFS="$lt_save_ifs"
14054 if test "X$pkg" = "X$p"; then
14055 enable_shared=yes
14056 fi
14057 done
14058 IFS="$lt_save_ifs"
14059 ;;
14060 esac
14061else
14062 enable_shared=yes
14063fi
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073 # Check whether --enable-static was given.
14074if test "${enable_static+set}" = set; then :
14075 enableval=$enable_static; p=${PACKAGE-default}
14076 case $enableval in
14077 yes) enable_static=yes ;;
14078 no) enable_static=no ;;
14079 *)
14080 enable_static=no
14081 # Look at the argument we got. We use all the common list separators.
14082 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14083 for pkg in $enableval; do
14084 IFS="$lt_save_ifs"
14085 if test "X$pkg" = "X$p"; then
14086 enable_static=yes
14087 fi
14088 done
14089 IFS="$lt_save_ifs"
14090 ;;
14091 esac
14092else
14093 enable_static=yes
14094fi
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105# Check whether --with-pic was given.
14106if test "${with_pic+set}" = set; then :
cristy99bd5232011-12-07 14:38:20 +000014107 withval=$with_pic; lt_p=${PACKAGE-default}
14108 case $withval in
14109 yes|no) pic_mode=$withval ;;
14110 *)
14111 pic_mode=default
14112 # Look at the argument we got. We use all the common list separators.
14113 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14114 for lt_pkg in $withval; do
14115 IFS="$lt_save_ifs"
14116 if test "X$lt_pkg" = "X$lt_p"; then
14117 pic_mode=yes
14118 fi
14119 done
14120 IFS="$lt_save_ifs"
14121 ;;
14122 esac
cristy73bd4a52010-10-05 11:24:23 +000014123else
14124 pic_mode=default
14125fi
14126
14127
14128test -z "$pic_mode" && pic_mode=default
14129
14130
14131
14132
14133
14134
14135
14136 # Check whether --enable-fast-install was given.
14137if test "${enable_fast_install+set}" = set; then :
14138 enableval=$enable_fast_install; p=${PACKAGE-default}
14139 case $enableval in
14140 yes) enable_fast_install=yes ;;
14141 no) enable_fast_install=no ;;
14142 *)
14143 enable_fast_install=no
14144 # Look at the argument we got. We use all the common list separators.
14145 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14146 for pkg in $enableval; do
14147 IFS="$lt_save_ifs"
14148 if test "X$pkg" = "X$p"; then
14149 enable_fast_install=yes
14150 fi
14151 done
14152 IFS="$lt_save_ifs"
14153 ;;
14154 esac
14155else
14156 enable_fast_install=yes
14157fi
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168
14169# This can be used to rebuild libtool when needed
14170LIBTOOL_DEPS="$ltmain"
14171
14172# Always use our own libtool.
14173LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
cristy0c60a692010-11-04 01:09:47 +000014199
cristy99bd5232011-12-07 14:38:20 +000014200
14201
14202
14203
cristy73bd4a52010-10-05 11:24:23 +000014204test -z "$LN_S" && LN_S="ln -s"
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215
14216
14217
14218
14219if test -n "${ZSH_VERSION+set}" ; then
14220 setopt NO_GLOB_SUBST
14221fi
14222
14223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14224$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014225if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014226 $as_echo_n "(cached) " >&6
14227else
14228 rm -f .libs 2>/dev/null
14229mkdir .libs 2>/dev/null
14230if test -d .libs; then
14231 lt_cv_objdir=.libs
14232else
14233 # MS-DOS does not allow filenames that begin with a dot.
14234 lt_cv_objdir=_libs
14235fi
14236rmdir .libs 2>/dev/null
14237fi
14238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14239$as_echo "$lt_cv_objdir" >&6; }
14240objdir=$lt_cv_objdir
14241
14242
14243
14244
14245
14246cat >>confdefs.h <<_ACEOF
14247#define LT_OBJDIR "$lt_cv_objdir/"
14248_ACEOF
14249
14250
14251
14252
cristy73bd4a52010-10-05 11:24:23 +000014253case $host_os in
14254aix3*)
14255 # AIX sometimes has problems with the GCC collect2 program. For some
14256 # reason, if we set the COLLECT_NAMES environment variable, the problems
14257 # vanish in a puff of smoke.
14258 if test "X${COLLECT_NAMES+set}" != Xset; then
14259 COLLECT_NAMES=
14260 export COLLECT_NAMES
14261 fi
14262 ;;
14263esac
14264
cristy73bd4a52010-10-05 11:24:23 +000014265# Global variables:
14266ofile=libtool
14267can_build_shared=yes
14268
14269# All known linkers require a `.a' archive for static linking (except MSVC,
14270# which needs '.lib').
14271libext=a
14272
14273with_gnu_ld="$lt_cv_prog_gnu_ld"
14274
14275old_CC="$CC"
14276old_CFLAGS="$CFLAGS"
14277
14278# Set sane defaults for various variables
14279test -z "$CC" && CC=cc
14280test -z "$LTCC" && LTCC=$CC
14281test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14282test -z "$LD" && LD=ld
14283test -z "$ac_objext" && ac_objext=o
14284
14285for cc_temp in $compiler""; do
14286 case $cc_temp in
14287 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14288 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14289 \-*) ;;
14290 *) break;;
14291 esac
14292done
cristy0c60a692010-11-04 01:09:47 +000014293cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000014294
14295
14296# Only perform the check for file, if the check method requires it
14297test -z "$MAGIC_CMD" && MAGIC_CMD=file
14298case $deplibs_check_method in
14299file_magic*)
14300 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14302$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014303if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014304 $as_echo_n "(cached) " >&6
14305else
14306 case $MAGIC_CMD in
14307[\\/*] | ?:[\\/]*)
14308 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14309 ;;
14310*)
14311 lt_save_MAGIC_CMD="$MAGIC_CMD"
14312 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14313 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14314 for ac_dir in $ac_dummy; do
14315 IFS="$lt_save_ifs"
14316 test -z "$ac_dir" && ac_dir=.
14317 if test -f $ac_dir/${ac_tool_prefix}file; then
14318 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14319 if test -n "$file_magic_test_file"; then
14320 case $deplibs_check_method in
14321 "file_magic "*)
14322 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14323 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14324 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14325 $EGREP "$file_magic_regex" > /dev/null; then
14326 :
14327 else
14328 cat <<_LT_EOF 1>&2
14329
14330*** Warning: the command libtool uses to detect shared libraries,
14331*** $file_magic_cmd, produces output that libtool cannot recognize.
14332*** The result is that libtool may fail to recognize shared libraries
14333*** as such. This will affect the creation of libtool libraries that
14334*** depend on shared libraries, but programs linked with such libtool
14335*** libraries will work regardless of this problem. Nevertheless, you
14336*** may want to report the problem to your system manager and/or to
14337*** bug-libtool@gnu.org
14338
14339_LT_EOF
14340 fi ;;
14341 esac
14342 fi
14343 break
14344 fi
14345 done
14346 IFS="$lt_save_ifs"
14347 MAGIC_CMD="$lt_save_MAGIC_CMD"
14348 ;;
14349esac
14350fi
14351
14352MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14353if test -n "$MAGIC_CMD"; then
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14355$as_echo "$MAGIC_CMD" >&6; }
14356else
14357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14358$as_echo "no" >&6; }
14359fi
14360
14361
14362
14363
14364
14365if test -z "$lt_cv_path_MAGIC_CMD"; then
14366 if test -n "$ac_tool_prefix"; then
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14368$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014369if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014370 $as_echo_n "(cached) " >&6
14371else
14372 case $MAGIC_CMD in
14373[\\/*] | ?:[\\/]*)
14374 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14375 ;;
14376*)
14377 lt_save_MAGIC_CMD="$MAGIC_CMD"
14378 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14379 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14380 for ac_dir in $ac_dummy; do
14381 IFS="$lt_save_ifs"
14382 test -z "$ac_dir" && ac_dir=.
14383 if test -f $ac_dir/file; then
14384 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14385 if test -n "$file_magic_test_file"; then
14386 case $deplibs_check_method in
14387 "file_magic "*)
14388 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14389 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14390 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14391 $EGREP "$file_magic_regex" > /dev/null; then
14392 :
14393 else
14394 cat <<_LT_EOF 1>&2
14395
14396*** Warning: the command libtool uses to detect shared libraries,
14397*** $file_magic_cmd, produces output that libtool cannot recognize.
14398*** The result is that libtool may fail to recognize shared libraries
14399*** as such. This will affect the creation of libtool libraries that
14400*** depend on shared libraries, but programs linked with such libtool
14401*** libraries will work regardless of this problem. Nevertheless, you
14402*** may want to report the problem to your system manager and/or to
14403*** bug-libtool@gnu.org
14404
14405_LT_EOF
14406 fi ;;
14407 esac
14408 fi
14409 break
14410 fi
14411 done
14412 IFS="$lt_save_ifs"
14413 MAGIC_CMD="$lt_save_MAGIC_CMD"
14414 ;;
14415esac
14416fi
14417
14418MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14419if test -n "$MAGIC_CMD"; then
14420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14421$as_echo "$MAGIC_CMD" >&6; }
14422else
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14424$as_echo "no" >&6; }
14425fi
14426
14427
14428 else
14429 MAGIC_CMD=:
14430 fi
14431fi
14432
14433 fi
14434 ;;
14435esac
14436
14437# Use C for the default configuration in the libtool script
14438
14439lt_save_CC="$CC"
14440ac_ext=c
14441ac_cpp='$CPP $CPPFLAGS'
14442ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14443ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14444ac_compiler_gnu=$ac_cv_c_compiler_gnu
14445
14446
14447# Source file extension for C test sources.
14448ac_ext=c
14449
14450# Object file extension for compiled C test sources.
14451objext=o
14452objext=$objext
14453
14454# Code to be used in simple compile tests
14455lt_simple_compile_test_code="int some_variable = 0;"
14456
14457# Code to be used in simple link tests
14458lt_simple_link_test_code='int main(){return(0);}'
14459
14460
14461
14462
14463
14464
14465
14466# If no C compiler was specified, use CC.
14467LTCC=${LTCC-"$CC"}
14468
14469# If no C compiler flags were specified, use CFLAGS.
14470LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14471
14472# Allow CC to be a program name with arguments.
14473compiler=$CC
14474
14475# Save the default compiler, since it gets overwritten when the other
14476# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14477compiler_DEFAULT=$CC
14478
14479# save warnings/boilerplate of simple test code
14480ac_outfile=conftest.$ac_objext
14481echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14482eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14483_lt_compiler_boilerplate=`cat conftest.err`
14484$RM conftest*
14485
14486ac_outfile=conftest.$ac_objext
14487echo "$lt_simple_link_test_code" >conftest.$ac_ext
14488eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14489_lt_linker_boilerplate=`cat conftest.err`
14490$RM -r conftest*
14491
14492
14493## CAVEAT EMPTOR:
14494## There is no encapsulation within the following macros, do not change
14495## the running order or otherwise move them around unless you know exactly
14496## what you are doing...
14497if test -n "$compiler"; then
14498
14499lt_prog_compiler_no_builtin_flag=
14500
14501if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000014502 case $cc_basename in
14503 nvcc*)
14504 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14505 *)
14506 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14507 esac
cristy73bd4a52010-10-05 11:24:23 +000014508
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14510$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014511if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014512 $as_echo_n "(cached) " >&6
14513else
14514 lt_cv_prog_compiler_rtti_exceptions=no
14515 ac_outfile=conftest.$ac_objext
14516 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14517 lt_compiler_flag="-fno-rtti -fno-exceptions"
14518 # Insert the option either (1) after the last *FLAGS variable, or
14519 # (2) before a word containing "conftest.", or (3) at the end.
14520 # Note that $ac_compile itself does not contain backslashes and begins
14521 # with a dollar sign (not a hyphen), so the echo should work correctly.
14522 # The option is referenced via a variable to avoid confusing sed.
14523 lt_compile=`echo "$ac_compile" | $SED \
14524 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14525 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14526 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014527 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014528 (eval "$lt_compile" 2>conftest.err)
14529 ac_status=$?
14530 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014532 if (exit $ac_status) && test -s "$ac_outfile"; then
14533 # The compiler can only warn and ignore the option if not recognized
14534 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014535 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014536 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14537 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14538 lt_cv_prog_compiler_rtti_exceptions=yes
14539 fi
14540 fi
14541 $RM conftest*
14542
14543fi
14544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14545$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14546
14547if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14548 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14549else
14550 :
14551fi
14552
14553fi
14554
14555
14556
14557
14558
14559
14560 lt_prog_compiler_wl=
14561lt_prog_compiler_pic=
14562lt_prog_compiler_static=
14563
cristy73bd4a52010-10-05 11:24:23 +000014564
14565 if test "$GCC" = yes; then
14566 lt_prog_compiler_wl='-Wl,'
14567 lt_prog_compiler_static='-static'
14568
14569 case $host_os in
14570 aix*)
14571 # All AIX code is PIC.
14572 if test "$host_cpu" = ia64; then
14573 # AIX 5 now supports IA64 processor
14574 lt_prog_compiler_static='-Bstatic'
14575 fi
14576 ;;
14577
14578 amigaos*)
14579 case $host_cpu in
14580 powerpc)
14581 # see comment about AmigaOS4 .so support
14582 lt_prog_compiler_pic='-fPIC'
14583 ;;
14584 m68k)
14585 # FIXME: we need at least 68020 code to build shared libraries, but
14586 # adding the `-m68020' flag to GCC prevents building anything better,
14587 # like `-m68040'.
14588 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14589 ;;
14590 esac
14591 ;;
14592
14593 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14594 # PIC is the default for these OSes.
14595 ;;
14596
14597 mingw* | cygwin* | pw32* | os2* | cegcc*)
14598 # This hack is so that the source file can tell whether it is being
14599 # built for inclusion in a dll (and should export symbols for example).
14600 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14601 # (--disable-auto-import) libraries
14602 lt_prog_compiler_pic='-DDLL_EXPORT'
14603 ;;
14604
14605 darwin* | rhapsody*)
14606 # PIC is the default on this platform
14607 # Common symbols not allowed in MH_DYLIB files
14608 lt_prog_compiler_pic='-fno-common'
14609 ;;
14610
cristy0c60a692010-11-04 01:09:47 +000014611 haiku*)
14612 # PIC is the default for Haiku.
14613 # The "-static" flag exists, but is broken.
14614 lt_prog_compiler_static=
14615 ;;
14616
cristy73bd4a52010-10-05 11:24:23 +000014617 hpux*)
14618 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14619 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14620 # sets the default TLS model and affects inlining.
14621 case $host_cpu in
14622 hppa*64*)
14623 # +Z the default
14624 ;;
14625 *)
14626 lt_prog_compiler_pic='-fPIC'
14627 ;;
14628 esac
14629 ;;
14630
14631 interix[3-9]*)
14632 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14633 # Instead, we relocate shared libraries at runtime.
14634 ;;
14635
14636 msdosdjgpp*)
14637 # Just because we use GCC doesn't mean we suddenly get shared libraries
14638 # on systems that don't support them.
14639 lt_prog_compiler_can_build_shared=no
14640 enable_shared=no
14641 ;;
14642
14643 *nto* | *qnx*)
14644 # QNX uses GNU C++, but need to define -shared option too, otherwise
14645 # it will coredump.
14646 lt_prog_compiler_pic='-fPIC -shared'
14647 ;;
14648
14649 sysv4*MP*)
14650 if test -d /usr/nec; then
14651 lt_prog_compiler_pic=-Kconform_pic
14652 fi
14653 ;;
14654
14655 *)
14656 lt_prog_compiler_pic='-fPIC'
14657 ;;
14658 esac
cristy0c60a692010-11-04 01:09:47 +000014659
14660 case $cc_basename in
14661 nvcc*) # Cuda Compiler Driver 2.2
14662 lt_prog_compiler_wl='-Xlinker '
cristy99bd5232011-12-07 14:38:20 +000014663 if test -n "$lt_prog_compiler_pic"; then
14664 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14665 fi
cristy0c60a692010-11-04 01:09:47 +000014666 ;;
14667 esac
cristy73bd4a52010-10-05 11:24:23 +000014668 else
14669 # PORTME Check for flag to pass linker flags through the system compiler.
14670 case $host_os in
14671 aix*)
14672 lt_prog_compiler_wl='-Wl,'
14673 if test "$host_cpu" = ia64; then
14674 # AIX 5 now supports IA64 processor
14675 lt_prog_compiler_static='-Bstatic'
14676 else
14677 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14678 fi
14679 ;;
14680
14681 mingw* | cygwin* | pw32* | os2* | cegcc*)
14682 # This hack is so that the source file can tell whether it is being
14683 # built for inclusion in a dll (and should export symbols for example).
14684 lt_prog_compiler_pic='-DDLL_EXPORT'
14685 ;;
14686
14687 hpux9* | hpux10* | hpux11*)
14688 lt_prog_compiler_wl='-Wl,'
14689 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14690 # not for PA HP-UX.
14691 case $host_cpu in
14692 hppa*64*|ia64*)
14693 # +Z the default
14694 ;;
14695 *)
14696 lt_prog_compiler_pic='+Z'
14697 ;;
14698 esac
14699 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14700 lt_prog_compiler_static='${wl}-a ${wl}archive'
14701 ;;
14702
14703 irix5* | irix6* | nonstopux*)
14704 lt_prog_compiler_wl='-Wl,'
14705 # PIC (with -KPIC) is the default.
14706 lt_prog_compiler_static='-non_shared'
14707 ;;
14708
cristy0c60a692010-11-04 01:09:47 +000014709 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014710 case $cc_basename in
14711 # old Intel for x86_64 which still supported -KPIC.
14712 ecc*)
14713 lt_prog_compiler_wl='-Wl,'
14714 lt_prog_compiler_pic='-KPIC'
14715 lt_prog_compiler_static='-static'
14716 ;;
14717 # icc used to be incompatible with GCC.
14718 # ICC 10 doesn't accept -KPIC any more.
14719 icc* | ifort*)
14720 lt_prog_compiler_wl='-Wl,'
14721 lt_prog_compiler_pic='-fPIC'
14722 lt_prog_compiler_static='-static'
14723 ;;
14724 # Lahey Fortran 8.1.
14725 lf95*)
14726 lt_prog_compiler_wl='-Wl,'
14727 lt_prog_compiler_pic='--shared'
14728 lt_prog_compiler_static='--static'
14729 ;;
cristyda16f162011-02-19 23:52:17 +000014730 nagfor*)
14731 # NAG Fortran compiler
14732 lt_prog_compiler_wl='-Wl,-Wl,,'
14733 lt_prog_compiler_pic='-PIC'
14734 lt_prog_compiler_static='-Bstatic'
14735 ;;
cristy0c60a692010-11-04 01:09:47 +000014736 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000014737 # Portland Group compilers (*not* the Pentium gcc compiler,
14738 # which looks to be a dead project)
14739 lt_prog_compiler_wl='-Wl,'
14740 lt_prog_compiler_pic='-fpic'
14741 lt_prog_compiler_static='-Bstatic'
14742 ;;
14743 ccc*)
14744 lt_prog_compiler_wl='-Wl,'
14745 # All Alpha code is PIC.
14746 lt_prog_compiler_static='-non_shared'
14747 ;;
cristy0c60a692010-11-04 01:09:47 +000014748 xl* | bgxl* | bgf* | mpixl*)
14749 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000014750 lt_prog_compiler_wl='-Wl,'
14751 lt_prog_compiler_pic='-qpic'
14752 lt_prog_compiler_static='-qstaticlink'
14753 ;;
14754 *)
14755 case `$CC -V 2>&1 | sed 5q` in
cristy99bd5232011-12-07 14:38:20 +000014756 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
cristy0c60a692010-11-04 01:09:47 +000014757 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14758 lt_prog_compiler_pic='-KPIC'
14759 lt_prog_compiler_static='-Bstatic'
14760 lt_prog_compiler_wl=''
14761 ;;
cristy99bd5232011-12-07 14:38:20 +000014762 *Sun\ F* | *Sun*Fortran*)
14763 lt_prog_compiler_pic='-KPIC'
14764 lt_prog_compiler_static='-Bstatic'
14765 lt_prog_compiler_wl='-Qoption ld '
14766 ;;
cristy73bd4a52010-10-05 11:24:23 +000014767 *Sun\ C*)
14768 # Sun C 5.9
14769 lt_prog_compiler_pic='-KPIC'
14770 lt_prog_compiler_static='-Bstatic'
14771 lt_prog_compiler_wl='-Wl,'
14772 ;;
cristy99bd5232011-12-07 14:38:20 +000014773 *Intel*\ [CF]*Compiler*)
14774 lt_prog_compiler_wl='-Wl,'
14775 lt_prog_compiler_pic='-fPIC'
14776 lt_prog_compiler_static='-static'
14777 ;;
14778 *Portland\ Group*)
14779 lt_prog_compiler_wl='-Wl,'
14780 lt_prog_compiler_pic='-fpic'
14781 lt_prog_compiler_static='-Bstatic'
14782 ;;
cristy73bd4a52010-10-05 11:24:23 +000014783 esac
14784 ;;
14785 esac
14786 ;;
14787
14788 newsos6)
14789 lt_prog_compiler_pic='-KPIC'
14790 lt_prog_compiler_static='-Bstatic'
14791 ;;
14792
14793 *nto* | *qnx*)
14794 # QNX uses GNU C++, but need to define -shared option too, otherwise
14795 # it will coredump.
14796 lt_prog_compiler_pic='-fPIC -shared'
14797 ;;
14798
14799 osf3* | osf4* | osf5*)
14800 lt_prog_compiler_wl='-Wl,'
14801 # All OSF/1 code is PIC.
14802 lt_prog_compiler_static='-non_shared'
14803 ;;
14804
14805 rdos*)
14806 lt_prog_compiler_static='-non_shared'
14807 ;;
14808
14809 solaris*)
14810 lt_prog_compiler_pic='-KPIC'
14811 lt_prog_compiler_static='-Bstatic'
14812 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014813 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000014814 lt_prog_compiler_wl='-Qoption ld ';;
14815 *)
14816 lt_prog_compiler_wl='-Wl,';;
14817 esac
14818 ;;
14819
14820 sunos4*)
14821 lt_prog_compiler_wl='-Qoption ld '
14822 lt_prog_compiler_pic='-PIC'
14823 lt_prog_compiler_static='-Bstatic'
14824 ;;
14825
14826 sysv4 | sysv4.2uw2* | sysv4.3*)
14827 lt_prog_compiler_wl='-Wl,'
14828 lt_prog_compiler_pic='-KPIC'
14829 lt_prog_compiler_static='-Bstatic'
14830 ;;
14831
14832 sysv4*MP*)
14833 if test -d /usr/nec ;then
14834 lt_prog_compiler_pic='-Kconform_pic'
14835 lt_prog_compiler_static='-Bstatic'
14836 fi
14837 ;;
14838
14839 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14840 lt_prog_compiler_wl='-Wl,'
14841 lt_prog_compiler_pic='-KPIC'
14842 lt_prog_compiler_static='-Bstatic'
14843 ;;
14844
14845 unicos*)
14846 lt_prog_compiler_wl='-Wl,'
14847 lt_prog_compiler_can_build_shared=no
14848 ;;
14849
14850 uts4*)
14851 lt_prog_compiler_pic='-pic'
14852 lt_prog_compiler_static='-Bstatic'
14853 ;;
14854
14855 *)
14856 lt_prog_compiler_can_build_shared=no
14857 ;;
14858 esac
14859 fi
14860
14861case $host_os in
14862 # For platforms which do not support PIC, -DPIC is meaningless:
14863 *djgpp*)
14864 lt_prog_compiler_pic=
14865 ;;
14866 *)
14867 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14868 ;;
14869esac
cristy73bd4a52010-10-05 11:24:23 +000014870
cristyda16f162011-02-19 23:52:17 +000014871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14872$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14873if ${lt_cv_prog_compiler_pic+:} false; then :
14874 $as_echo_n "(cached) " >&6
14875else
14876 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14877fi
14878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14879$as_echo "$lt_cv_prog_compiler_pic" >&6; }
14880lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000014881
14882#
14883# Check to make sure the PIC flag actually works.
14884#
14885if test -n "$lt_prog_compiler_pic"; then
14886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14887$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014888if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014889 $as_echo_n "(cached) " >&6
14890else
14891 lt_cv_prog_compiler_pic_works=no
14892 ac_outfile=conftest.$ac_objext
14893 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14894 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14895 # Insert the option either (1) after the last *FLAGS variable, or
14896 # (2) before a word containing "conftest.", or (3) at the end.
14897 # Note that $ac_compile itself does not contain backslashes and begins
14898 # with a dollar sign (not a hyphen), so the echo should work correctly.
14899 # The option is referenced via a variable to avoid confusing sed.
14900 lt_compile=`echo "$ac_compile" | $SED \
14901 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14902 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14903 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014904 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014905 (eval "$lt_compile" 2>conftest.err)
14906 ac_status=$?
14907 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014909 if (exit $ac_status) && test -s "$ac_outfile"; then
14910 # The compiler can only warn and ignore the option if not recognized
14911 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014912 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014913 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14914 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14915 lt_cv_prog_compiler_pic_works=yes
14916 fi
14917 fi
14918 $RM conftest*
14919
14920fi
14921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14922$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14923
14924if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14925 case $lt_prog_compiler_pic in
14926 "" | " "*) ;;
14927 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14928 esac
14929else
14930 lt_prog_compiler_pic=
14931 lt_prog_compiler_can_build_shared=no
14932fi
14933
14934fi
14935
14936
14937
14938
14939
14940
cristyda16f162011-02-19 23:52:17 +000014941
14942
14943
14944
14945
cristy73bd4a52010-10-05 11:24:23 +000014946#
14947# Check to make sure the static flag actually works.
14948#
14949wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14951$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014952if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014953 $as_echo_n "(cached) " >&6
14954else
14955 lt_cv_prog_compiler_static_works=no
14956 save_LDFLAGS="$LDFLAGS"
14957 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14958 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14959 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14960 # The linker can only warn and ignore the option if not recognized
14961 # So say no if there are warnings
14962 if test -s conftest.err; then
14963 # Append any errors to the config.log.
14964 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000014965 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014966 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14967 if diff conftest.exp conftest.er2 >/dev/null; then
14968 lt_cv_prog_compiler_static_works=yes
14969 fi
14970 else
14971 lt_cv_prog_compiler_static_works=yes
14972 fi
14973 fi
14974 $RM -r conftest*
14975 LDFLAGS="$save_LDFLAGS"
14976
14977fi
14978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14979$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14980
14981if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14982 :
14983else
14984 lt_prog_compiler_static=
14985fi
14986
14987
14988
14989
14990
14991
14992
14993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14994$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014995if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014996 $as_echo_n "(cached) " >&6
14997else
14998 lt_cv_prog_compiler_c_o=no
14999 $RM -r conftest 2>/dev/null
15000 mkdir conftest
15001 cd conftest
15002 mkdir out
15003 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15004
15005 lt_compiler_flag="-o out/conftest2.$ac_objext"
15006 # Insert the option either (1) after the last *FLAGS variable, or
15007 # (2) before a word containing "conftest.", or (3) at the end.
15008 # Note that $ac_compile itself does not contain backslashes and begins
15009 # with a dollar sign (not a hyphen), so the echo should work correctly.
15010 lt_compile=`echo "$ac_compile" | $SED \
15011 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15012 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15013 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000015014 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000015015 (eval "$lt_compile" 2>out/conftest.err)
15016 ac_status=$?
15017 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000015018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000015019 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15020 then
15021 # The compiler can only warn and ignore the option if not recognized
15022 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000015023 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000015024 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15025 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15026 lt_cv_prog_compiler_c_o=yes
15027 fi
15028 fi
15029 chmod u+w . 2>&5
15030 $RM conftest*
15031 # SGI C++ compiler will create directory out/ii_files/ for
15032 # template instantiation
15033 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15034 $RM out/* && rmdir out
15035 cd ..
15036 $RM -r conftest
15037 $RM conftest*
15038
15039fi
15040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15041$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15042
15043
15044
15045
15046
15047
15048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15049$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015050if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015051 $as_echo_n "(cached) " >&6
15052else
15053 lt_cv_prog_compiler_c_o=no
15054 $RM -r conftest 2>/dev/null
15055 mkdir conftest
15056 cd conftest
15057 mkdir out
15058 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15059
15060 lt_compiler_flag="-o out/conftest2.$ac_objext"
15061 # Insert the option either (1) after the last *FLAGS variable, or
15062 # (2) before a word containing "conftest.", or (3) at the end.
15063 # Note that $ac_compile itself does not contain backslashes and begins
15064 # with a dollar sign (not a hyphen), so the echo should work correctly.
15065 lt_compile=`echo "$ac_compile" | $SED \
15066 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15067 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15068 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000015069 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000015070 (eval "$lt_compile" 2>out/conftest.err)
15071 ac_status=$?
15072 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000015073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000015074 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15075 then
15076 # The compiler can only warn and ignore the option if not recognized
15077 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000015078 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000015079 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15080 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15081 lt_cv_prog_compiler_c_o=yes
15082 fi
15083 fi
15084 chmod u+w . 2>&5
15085 $RM conftest*
15086 # SGI C++ compiler will create directory out/ii_files/ for
15087 # template instantiation
15088 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15089 $RM out/* && rmdir out
15090 cd ..
15091 $RM -r conftest
15092 $RM conftest*
15093
15094fi
15095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15096$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15097
15098
15099
15100
15101hard_links="nottested"
15102if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15103 # do not overwrite the value of need_locks provided by the user
15104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15105$as_echo_n "checking if we can lock with hard links... " >&6; }
15106 hard_links=yes
15107 $RM conftest*
15108 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15109 touch conftest.a
15110 ln conftest.a conftest.b 2>&5 || hard_links=no
15111 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15113$as_echo "$hard_links" >&6; }
15114 if test "$hard_links" = no; then
15115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15116$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15117 need_locks=warn
15118 fi
15119else
15120 need_locks=no
15121fi
15122
15123
15124
15125
15126
15127
15128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15129$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15130
15131 runpath_var=
15132 allow_undefined_flag=
15133 always_export_symbols=no
15134 archive_cmds=
15135 archive_expsym_cmds=
15136 compiler_needs_object=no
15137 enable_shared_with_static_runtimes=no
15138 export_dynamic_flag_spec=
15139 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15140 hardcode_automatic=no
15141 hardcode_direct=no
15142 hardcode_direct_absolute=no
15143 hardcode_libdir_flag_spec=
cristy73bd4a52010-10-05 11:24:23 +000015144 hardcode_libdir_separator=
15145 hardcode_minus_L=no
15146 hardcode_shlibpath_var=unsupported
15147 inherit_rpath=no
15148 link_all_deplibs=unknown
15149 module_cmds=
15150 module_expsym_cmds=
15151 old_archive_from_new_cmds=
15152 old_archive_from_expsyms_cmds=
15153 thread_safe_flag_spec=
15154 whole_archive_flag_spec=
15155 # include_expsyms should be a list of space-separated symbols to be *always*
15156 # included in the symbol list
15157 include_expsyms=
15158 # exclude_expsyms can be an extended regexp of symbols to exclude
15159 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15160 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15161 # as well as any symbol that contains `d'.
15162 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15163 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15164 # platforms (ab)use it in PIC code, but their linkers get confused if
15165 # the symbol is explicitly referenced. Since portable code cannot
15166 # rely on this symbol name, it's probably fine to never include it in
15167 # preloaded symbol tables.
15168 # Exclude shared library initialization/finalization symbols.
15169 extract_expsyms_cmds=
15170
15171 case $host_os in
15172 cygwin* | mingw* | pw32* | cegcc*)
15173 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15174 # When not using gcc, we currently assume that we are using
15175 # Microsoft Visual C++.
15176 if test "$GCC" != yes; then
15177 with_gnu_ld=no
15178 fi
15179 ;;
15180 interix*)
15181 # we just hope/assume this is gcc and not c89 (= MSVC++)
15182 with_gnu_ld=yes
15183 ;;
15184 openbsd*)
15185 with_gnu_ld=no
15186 ;;
15187 esac
15188
15189 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000015190
15191 # On some targets, GNU ld is compatible enough with the native linker
15192 # that we're better off using the native interface for both.
15193 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000015194 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000015195 case $host_os in
15196 aix*)
15197 # The AIX port of GNU ld has always aspired to compatibility
15198 # with the native linker. However, as the warning in the GNU ld
15199 # block says, versions before 2.19.5* couldn't really create working
15200 # shared libraries, regardless of the interface used.
15201 case `$LD -v 2>&1` in
15202 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15203 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15204 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15205 *)
15206 lt_use_gnu_ld_interface=yes
15207 ;;
15208 esac
15209 ;;
15210 *)
15211 lt_use_gnu_ld_interface=yes
15212 ;;
15213 esac
15214 fi
15215
15216 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000015217 # If archive_cmds runs LD, not CC, wlarc should be empty
15218 wlarc='${wl}'
15219
15220 # Set some defaults for GNU ld with shared library support. These
15221 # are reset later if shared libraries are not supported. Putting them
15222 # here allows them to be overridden if necessary.
15223 runpath_var=LD_RUN_PATH
15224 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15225 export_dynamic_flag_spec='${wl}--export-dynamic'
15226 # ancient GNU ld didn't support --whole-archive et. al.
15227 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15228 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15229 else
15230 whole_archive_flag_spec=
15231 fi
15232 supports_anon_versioning=no
15233 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000015234 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000015235 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15236 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15237 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15238 *\ 2.11.*) ;; # other 2.11 versions
15239 *) supports_anon_versioning=yes ;;
15240 esac
15241
15242 # See if GNU ld supports shared libraries.
15243 case $host_os in
15244 aix[3-9]*)
15245 # On AIX/PPC, the GNU linker is very broken
15246 if test "$host_cpu" != ia64; then
15247 ld_shlibs=no
15248 cat <<_LT_EOF 1>&2
15249
cristy0c60a692010-11-04 01:09:47 +000015250*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000015251*** to be unable to reliably create shared libraries on AIX.
15252*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000015253*** really care for shared libraries, you may want to install binutils
15254*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15255*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000015256
15257_LT_EOF
15258 fi
15259 ;;
15260
15261 amigaos*)
15262 case $host_cpu in
15263 powerpc)
15264 # see comment about AmigaOS4 .so support
15265 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15266 archive_expsym_cmds=''
15267 ;;
15268 m68k)
15269 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)'
15270 hardcode_libdir_flag_spec='-L$libdir'
15271 hardcode_minus_L=yes
15272 ;;
15273 esac
15274 ;;
15275
15276 beos*)
15277 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15278 allow_undefined_flag=unsupported
15279 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15280 # support --undefined. This deserves some investigation. FIXME
15281 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15282 else
15283 ld_shlibs=no
15284 fi
15285 ;;
15286
15287 cygwin* | mingw* | pw32* | cegcc*)
15288 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15289 # as there is no search path for DLLs.
15290 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000015291 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000015292 allow_undefined_flag=unsupported
15293 always_export_symbols=no
15294 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000015295 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'
15296 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 +000015297
15298 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15299 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15300 # If the export-symbols file already is a .def file (1st line
15301 # is EXPORTS), use it as is; otherwise, prepend...
15302 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15303 cp $export_symbols $output_objdir/$soname.def;
15304 else
15305 echo EXPORTS > $output_objdir/$soname.def;
15306 cat $export_symbols >> $output_objdir/$soname.def;
15307 fi~
15308 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15309 else
15310 ld_shlibs=no
15311 fi
15312 ;;
15313
cristy0c60a692010-11-04 01:09:47 +000015314 haiku*)
15315 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15316 link_all_deplibs=yes
15317 ;;
15318
cristy73bd4a52010-10-05 11:24:23 +000015319 interix[3-9]*)
15320 hardcode_direct=no
15321 hardcode_shlibpath_var=no
15322 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15323 export_dynamic_flag_spec='${wl}-E'
15324 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15325 # Instead, shared libraries are loaded at an image base (0x10000000 by
15326 # default) and relocated if they conflict, which is a slow very memory
15327 # consuming and fragmenting process. To avoid this, we pick a random,
15328 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15329 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15330 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15331 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'
15332 ;;
15333
cristy0c60a692010-11-04 01:09:47 +000015334 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000015335 tmp_diet=no
15336 if test "$host_os" = linux-dietlibc; then
15337 case $cc_basename in
15338 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15339 esac
15340 fi
15341 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15342 && test "$tmp_diet" = no
15343 then
cristyda16f162011-02-19 23:52:17 +000015344 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000015345 tmp_sharedflag='-shared'
15346 case $cc_basename,$host_cpu in
15347 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000015348 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 +000015349 tmp_addflag=' $pic_flag'
15350 ;;
cristy0c60a692010-11-04 01:09:47 +000015351 pgf77* | pgf90* | pgf95* | pgfortran*)
15352 # Portland Group f77 and f90 compilers
15353 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 +000015354 tmp_addflag=' $pic_flag -Mnomain' ;;
15355 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15356 tmp_addflag=' -i_dynamic' ;;
15357 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15358 tmp_addflag=' -i_dynamic -nofor_main' ;;
15359 ifc* | ifort*) # Intel Fortran compiler
15360 tmp_addflag=' -nofor_main' ;;
15361 lf95*) # Lahey Fortran 8.1
15362 whole_archive_flag_spec=
15363 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000015364 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000015365 tmp_sharedflag='-qmkshrobj'
15366 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000015367 nvcc*) # Cuda Compiler Driver 2.2
15368 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'
15369 compiler_needs_object=yes
15370 ;;
cristy73bd4a52010-10-05 11:24:23 +000015371 esac
15372 case `$CC -V 2>&1 | sed 5q` in
15373 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000015374 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 +000015375 compiler_needs_object=yes
15376 tmp_sharedflag='-G' ;;
15377 *Sun\ F*) # Sun Fortran 8.3
15378 tmp_sharedflag='-G' ;;
15379 esac
15380 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15381
15382 if test "x$supports_anon_versioning" = xyes; then
15383 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15384 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15385 echo "local: *; };" >> $output_objdir/$libname.ver~
15386 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15387 fi
15388
15389 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000015390 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000015391 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15392 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
cristy99bd5232011-12-07 14:38:20 +000015393 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cristy0c60a692010-11-04 01:09:47 +000015394 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015395 if test "x$supports_anon_versioning" = xyes; then
15396 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15397 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15398 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000015399 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015400 fi
15401 ;;
15402 esac
15403 else
15404 ld_shlibs=no
15405 fi
15406 ;;
15407
15408 netbsd*)
15409 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15410 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15411 wlarc=
15412 else
cristyda16f162011-02-19 23:52:17 +000015413 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15414 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 +000015415 fi
15416 ;;
15417
15418 solaris*)
15419 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15420 ld_shlibs=no
15421 cat <<_LT_EOF 1>&2
15422
15423*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15424*** create shared libraries on Solaris systems. Therefore, libtool
15425*** is disabling shared libraries support. We urge you to upgrade GNU
15426*** binutils to release 2.9.1 or newer. Another option is to modify
15427*** your PATH or compiler configuration so that the native linker is
15428*** used, and then restart.
15429
15430_LT_EOF
15431 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000015432 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15433 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 +000015434 else
15435 ld_shlibs=no
15436 fi
15437 ;;
15438
15439 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15440 case `$LD -v 2>&1` in
15441 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15442 ld_shlibs=no
15443 cat <<_LT_EOF 1>&2
15444
15445*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15446*** reliably create shared libraries on SCO systems. Therefore, libtool
15447*** is disabling shared libraries support. We urge you to upgrade GNU
15448*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15449*** your PATH or compiler configuration so that the native linker is
15450*** used, and then restart.
15451
15452_LT_EOF
15453 ;;
15454 *)
15455 # For security reasons, it is highly recommended that you always
15456 # use absolute paths for naming shared libraries, and exclude the
15457 # DT_RUNPATH tag from executables and libraries. But doing so
15458 # requires that you compile everything twice, which is a pain.
15459 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15460 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15461 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15462 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15463 else
15464 ld_shlibs=no
15465 fi
15466 ;;
15467 esac
15468 ;;
15469
15470 sunos4*)
15471 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15472 wlarc=
15473 hardcode_direct=yes
15474 hardcode_shlibpath_var=no
15475 ;;
15476
15477 *)
15478 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000015479 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15480 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 +000015481 else
15482 ld_shlibs=no
15483 fi
15484 ;;
15485 esac
15486
15487 if test "$ld_shlibs" = no; then
15488 runpath_var=
15489 hardcode_libdir_flag_spec=
15490 export_dynamic_flag_spec=
15491 whole_archive_flag_spec=
15492 fi
15493 else
15494 # PORTME fill in a description of your system's linker (not GNU ld)
15495 case $host_os in
15496 aix3*)
15497 allow_undefined_flag=unsupported
15498 always_export_symbols=yes
15499 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'
15500 # Note: this linker hardcodes the directories in LIBPATH if there
15501 # are no directories specified by -L.
15502 hardcode_minus_L=yes
15503 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15504 # Neither direct hardcoding nor static linking is supported with a
15505 # broken collect2.
15506 hardcode_direct=unsupported
15507 fi
15508 ;;
15509
15510 aix[4-9]*)
15511 if test "$host_cpu" = ia64; then
15512 # On IA64, the linker does run time linking by default, so we don't
15513 # have to do anything special.
15514 aix_use_runtimelinking=no
15515 exp_sym_flag='-Bexport'
15516 no_entry_flag=""
15517 else
15518 # If we're using GNU nm, then we don't want the "-C" option.
15519 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000015520 # Also, AIX nm treats weak defined symbols like other global
15521 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000015522 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000015523 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 +000015524 else
15525 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'
15526 fi
15527 aix_use_runtimelinking=no
15528
15529 # Test if we are trying to use run time linking or normal
15530 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15531 # need to do runtime linking.
15532 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15533 for ld_flag in $LDFLAGS; do
15534 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15535 aix_use_runtimelinking=yes
15536 break
15537 fi
15538 done
15539 ;;
15540 esac
15541
15542 exp_sym_flag='-bexport'
15543 no_entry_flag='-bnoentry'
15544 fi
15545
15546 # When large executables or shared objects are built, AIX ld can
15547 # have problems creating the table of contents. If linking a library
15548 # or program results in "error TOC overflow" add -mminimal-toc to
15549 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15550 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15551
15552 archive_cmds=''
15553 hardcode_direct=yes
15554 hardcode_direct_absolute=yes
15555 hardcode_libdir_separator=':'
15556 link_all_deplibs=yes
15557 file_list_spec='${wl}-f,'
15558
15559 if test "$GCC" = yes; then
15560 case $host_os in aix4.[012]|aix4.[012].*)
15561 # We only want to do this on AIX 4.2 and lower, the check
15562 # below for broken collect2 doesn't work under 4.3+
15563 collect2name=`${CC} -print-prog-name=collect2`
15564 if test -f "$collect2name" &&
15565 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15566 then
15567 # We have reworked collect2
15568 :
15569 else
15570 # We have old collect2
15571 hardcode_direct=unsupported
15572 # It fails to find uninstalled libraries when the uninstalled
15573 # path is not listed in the libpath. Setting hardcode_minus_L
15574 # to unsupported forces relinking
15575 hardcode_minus_L=yes
15576 hardcode_libdir_flag_spec='-L$libdir'
15577 hardcode_libdir_separator=
15578 fi
15579 ;;
15580 esac
15581 shared_flag='-shared'
15582 if test "$aix_use_runtimelinking" = yes; then
15583 shared_flag="$shared_flag "'${wl}-G'
15584 fi
15585 else
15586 # not using gcc
15587 if test "$host_cpu" = ia64; then
15588 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15589 # chokes on -Wl,-G. The following line is correct:
15590 shared_flag='-G'
15591 else
15592 if test "$aix_use_runtimelinking" = yes; then
15593 shared_flag='${wl}-G'
15594 else
15595 shared_flag='${wl}-bM:SRE'
15596 fi
15597 fi
15598 fi
15599
15600 export_dynamic_flag_spec='${wl}-bexpall'
15601 # It seems that -bexpall does not export symbols beginning with
15602 # underscore (_), so it is better to generate a list of symbols to export.
15603 always_export_symbols=yes
15604 if test "$aix_use_runtimelinking" = yes; then
15605 # Warning - without using the other runtime loading flags (-brtl),
15606 # -berok will link without error, but may produce a broken library.
15607 allow_undefined_flag='-berok'
15608 # Determine the default libpath from the value encoded in an
15609 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015610 if test "${lt_cv_aix_libpath+set}" = set; then
15611 aix_libpath=$lt_cv_aix_libpath
15612else
15613 if ${lt_cv_aix_libpath_+:} false; then :
15614 $as_echo_n "(cached) " >&6
15615else
15616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015617/* end confdefs.h. */
15618
15619int
15620main ()
15621{
15622
15623 ;
15624 return 0;
15625}
15626_ACEOF
15627if ac_fn_c_try_link "$LINENO"; then :
15628
cristyda16f162011-02-19 23:52:17 +000015629 lt_aix_libpath_sed='
15630 /Import File Strings/,/^$/ {
15631 /^0/ {
15632 s/^0 *\([^ ]*\) *$/\1/
15633 p
15634 }
15635 }'
15636 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15637 # Check for a 64-bit object if we didn't find anything.
15638 if test -z "$lt_cv_aix_libpath_"; then
15639 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15640 fi
cristy73bd4a52010-10-05 11:24:23 +000015641fi
15642rm -f core conftest.err conftest.$ac_objext \
15643 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015644 if test -z "$lt_cv_aix_libpath_"; then
15645 lt_cv_aix_libpath_="/usr/lib:/lib"
15646 fi
15647
15648fi
15649
15650 aix_libpath=$lt_cv_aix_libpath_
15651fi
cristy73bd4a52010-10-05 11:24:23 +000015652
15653 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000015654 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 +000015655 else
15656 if test "$host_cpu" = ia64; then
15657 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15658 allow_undefined_flag="-z nodefs"
15659 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"
15660 else
15661 # Determine the default libpath from the value encoded in an
15662 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015663 if test "${lt_cv_aix_libpath+set}" = set; then
15664 aix_libpath=$lt_cv_aix_libpath
15665else
15666 if ${lt_cv_aix_libpath_+:} false; then :
15667 $as_echo_n "(cached) " >&6
15668else
15669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015670/* end confdefs.h. */
15671
15672int
15673main ()
15674{
15675
15676 ;
15677 return 0;
15678}
15679_ACEOF
15680if ac_fn_c_try_link "$LINENO"; then :
15681
cristyda16f162011-02-19 23:52:17 +000015682 lt_aix_libpath_sed='
15683 /Import File Strings/,/^$/ {
15684 /^0/ {
15685 s/^0 *\([^ ]*\) *$/\1/
15686 p
15687 }
15688 }'
15689 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15690 # Check for a 64-bit object if we didn't find anything.
15691 if test -z "$lt_cv_aix_libpath_"; then
15692 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15693 fi
cristy73bd4a52010-10-05 11:24:23 +000015694fi
15695rm -f core conftest.err conftest.$ac_objext \
15696 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015697 if test -z "$lt_cv_aix_libpath_"; then
15698 lt_cv_aix_libpath_="/usr/lib:/lib"
15699 fi
15700
15701fi
15702
15703 aix_libpath=$lt_cv_aix_libpath_
15704fi
cristy73bd4a52010-10-05 11:24:23 +000015705
15706 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15707 # Warning - without using the other run time loading flags,
15708 # -berok will link without error, but may produce a broken library.
15709 no_undefined_flag=' ${wl}-bernotok'
15710 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000015711 if test "$with_gnu_ld" = yes; then
15712 # We only use this code for GNU lds that support --whole-archive.
15713 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15714 else
15715 # Exported symbols can be pulled into shared objects from archives
15716 whole_archive_flag_spec='$convenience'
15717 fi
cristy73bd4a52010-10-05 11:24:23 +000015718 archive_cmds_need_lc=yes
15719 # This is similar to how AIX traditionally builds its shared libraries.
15720 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'
15721 fi
15722 fi
15723 ;;
15724
15725 amigaos*)
15726 case $host_cpu in
15727 powerpc)
15728 # see comment about AmigaOS4 .so support
15729 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15730 archive_expsym_cmds=''
15731 ;;
15732 m68k)
15733 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)'
15734 hardcode_libdir_flag_spec='-L$libdir'
15735 hardcode_minus_L=yes
15736 ;;
15737 esac
15738 ;;
15739
15740 bsdi[45]*)
15741 export_dynamic_flag_spec=-rdynamic
15742 ;;
15743
15744 cygwin* | mingw* | pw32* | cegcc*)
15745 # When not using gcc, we currently assume that we are using
15746 # Microsoft Visual C++.
15747 # hardcode_libdir_flag_spec is actually meaningless, as there is
15748 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000015749 case $cc_basename in
15750 cl*)
15751 # Native MSVC
15752 hardcode_libdir_flag_spec=' '
15753 allow_undefined_flag=unsupported
15754 always_export_symbols=yes
15755 file_list_spec='@'
15756 # Tell ltmain to make .lib files, not .a files.
15757 libext=lib
15758 # Tell ltmain to make .dll files, not .so files.
15759 shrext_cmds=".dll"
15760 # FIXME: Setting linknames here is a bad hack.
15761 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15762 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15763 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15764 else
15765 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15766 fi~
15767 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15768 linknames='
15769 # The linker will not automatically build a static lib if we build a DLL.
15770 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15771 enable_shared_with_static_runtimes=yes
cristy99bd5232011-12-07 14:38:20 +000015772 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
cristyda16f162011-02-19 23:52:17 +000015773 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15774 # Don't use ranlib
15775 old_postinstall_cmds='chmod 644 $oldlib'
15776 postlink_cmds='lt_outputfile="@OUTPUT@"~
15777 lt_tool_outputfile="@TOOL_OUTPUT@"~
15778 case $lt_outputfile in
15779 *.exe|*.EXE) ;;
15780 *)
15781 lt_outputfile="$lt_outputfile.exe"
15782 lt_tool_outputfile="$lt_tool_outputfile.exe"
15783 ;;
15784 esac~
15785 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15786 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15787 $RM "$lt_outputfile.manifest";
15788 fi'
15789 ;;
15790 *)
15791 # Assume MSVC wrapper
15792 hardcode_libdir_flag_spec=' '
15793 allow_undefined_flag=unsupported
15794 # Tell ltmain to make .lib files, not .a files.
15795 libext=lib
15796 # Tell ltmain to make .dll files, not .so files.
15797 shrext_cmds=".dll"
15798 # FIXME: Setting linknames here is a bad hack.
15799 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15800 # The linker will automatically build a .lib file if we build a DLL.
15801 old_archive_from_new_cmds='true'
15802 # FIXME: Should let the user specify the lib program.
15803 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15804 enable_shared_with_static_runtimes=yes
15805 ;;
15806 esac
cristy73bd4a52010-10-05 11:24:23 +000015807 ;;
15808
15809 darwin* | rhapsody*)
15810
15811
15812 archive_cmds_need_lc=no
15813 hardcode_direct=no
15814 hardcode_automatic=yes
15815 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000015816 if test "$lt_cv_ld_force_load" = "yes"; then
15817 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 +000015818
cristy0c60a692010-11-04 01:09:47 +000015819 else
15820 whole_archive_flag_spec=''
15821 fi
cristy73bd4a52010-10-05 11:24:23 +000015822 link_all_deplibs=yes
15823 allow_undefined_flag="$_lt_dar_allow_undefined"
15824 case $cc_basename in
15825 ifort*) _lt_dar_can_shared=yes ;;
15826 *) _lt_dar_can_shared=$GCC ;;
15827 esac
15828 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000015829 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000015830 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15831 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15832 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}"
15833 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}"
15834
15835 else
15836 ld_shlibs=no
15837 fi
15838
15839 ;;
15840
15841 dgux*)
15842 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15843 hardcode_libdir_flag_spec='-L$libdir'
15844 hardcode_shlibpath_var=no
15845 ;;
15846
cristy73bd4a52010-10-05 11:24:23 +000015847 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15848 # support. Future versions do this automatically, but an explicit c++rt0.o
15849 # does not break anything, and helps significantly (at the cost of a little
15850 # extra space).
15851 freebsd2.2*)
15852 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15853 hardcode_libdir_flag_spec='-R$libdir'
15854 hardcode_direct=yes
15855 hardcode_shlibpath_var=no
15856 ;;
15857
15858 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cristy99bd5232011-12-07 14:38:20 +000015859 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000015860 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15861 hardcode_direct=yes
15862 hardcode_minus_L=yes
15863 hardcode_shlibpath_var=no
15864 ;;
15865
15866 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15867 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000015868 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015869 hardcode_libdir_flag_spec='-R$libdir'
15870 hardcode_direct=yes
15871 hardcode_shlibpath_var=no
15872 ;;
15873
15874 hpux9*)
15875 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015876 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 +000015877 else
15878 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'
15879 fi
15880 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15881 hardcode_libdir_separator=:
15882 hardcode_direct=yes
15883
15884 # hardcode_minus_L: Not really in the search PATH,
15885 # but as the default location of the library.
15886 hardcode_minus_L=yes
15887 export_dynamic_flag_spec='${wl}-E'
15888 ;;
15889
15890 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000015891 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000015892 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 +000015893 else
15894 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15895 fi
15896 if test "$with_gnu_ld" = no; then
15897 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cristy73bd4a52010-10-05 11:24:23 +000015898 hardcode_libdir_separator=:
15899 hardcode_direct=yes
15900 hardcode_direct_absolute=yes
15901 export_dynamic_flag_spec='${wl}-E'
15902 # hardcode_minus_L: Not really in the search PATH,
15903 # but as the default location of the library.
15904 hardcode_minus_L=yes
15905 fi
15906 ;;
15907
15908 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000015909 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000015910 case $host_cpu in
15911 hppa*64*)
15912 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15913 ;;
15914 ia64*)
cristyda16f162011-02-19 23:52:17 +000015915 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015916 ;;
15917 *)
cristyda16f162011-02-19 23:52:17 +000015918 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 +000015919 ;;
15920 esac
15921 else
15922 case $host_cpu in
15923 hppa*64*)
15924 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15925 ;;
15926 ia64*)
15927 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15928 ;;
15929 *)
cristy0c60a692010-11-04 01:09:47 +000015930
15931 # Older versions of the 11.00 compiler do not understand -b yet
15932 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15934$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015935if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015936 $as_echo_n "(cached) " >&6
15937else
15938 lt_cv_prog_compiler__b=no
15939 save_LDFLAGS="$LDFLAGS"
15940 LDFLAGS="$LDFLAGS -b"
15941 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15942 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15943 # The linker can only warn and ignore the option if not recognized
15944 # So say no if there are warnings
15945 if test -s conftest.err; then
15946 # Append any errors to the config.log.
15947 cat conftest.err 1>&5
15948 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15949 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15950 if diff conftest.exp conftest.er2 >/dev/null; then
15951 lt_cv_prog_compiler__b=yes
15952 fi
15953 else
15954 lt_cv_prog_compiler__b=yes
15955 fi
15956 fi
15957 $RM -r conftest*
15958 LDFLAGS="$save_LDFLAGS"
15959
15960fi
15961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15962$as_echo "$lt_cv_prog_compiler__b" >&6; }
15963
15964if test x"$lt_cv_prog_compiler__b" = xyes; then
15965 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15966else
15967 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15968fi
15969
cristy73bd4a52010-10-05 11:24:23 +000015970 ;;
15971 esac
15972 fi
15973 if test "$with_gnu_ld" = no; then
15974 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15975 hardcode_libdir_separator=:
15976
15977 case $host_cpu in
15978 hppa*64*|ia64*)
15979 hardcode_direct=no
15980 hardcode_shlibpath_var=no
15981 ;;
15982 *)
15983 hardcode_direct=yes
15984 hardcode_direct_absolute=yes
15985 export_dynamic_flag_spec='${wl}-E'
15986
15987 # hardcode_minus_L: Not really in the search PATH,
15988 # but as the default location of the library.
15989 hardcode_minus_L=yes
15990 ;;
15991 esac
15992 fi
15993 ;;
15994
15995 irix5* | irix6* | nonstopux*)
15996 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015997 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 +000015998 # Try to use the -exported_symbol ld option, if it does not
15999 # work, assume that -exports_file does not work either and
16000 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000016001 # This should be the same for all languages, so no per-tag cache variable.
16002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
16003$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
16004if ${lt_cv_irix_exported_symbol+:} false; then :
16005 $as_echo_n "(cached) " >&6
16006else
16007 save_LDFLAGS="$LDFLAGS"
16008 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016010/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000016011int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000016012_ACEOF
16013if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000016014 lt_cv_irix_exported_symbol=yes
16015else
16016 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000016017fi
16018rm -f core conftest.err conftest.$ac_objext \
16019 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000016020 LDFLAGS="$save_LDFLAGS"
16021fi
16022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
16023$as_echo "$lt_cv_irix_exported_symbol" >&6; }
16024 if test "$lt_cv_irix_exported_symbol" = yes; then
16025 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'
16026 fi
cristy73bd4a52010-10-05 11:24:23 +000016027 else
cristy0c60a692010-11-04 01:09:47 +000016028 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'
16029 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 +000016030 fi
16031 archive_cmds_need_lc='no'
16032 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16033 hardcode_libdir_separator=:
16034 inherit_rpath=yes
16035 link_all_deplibs=yes
16036 ;;
16037
16038 netbsd*)
16039 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16040 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16041 else
16042 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16043 fi
16044 hardcode_libdir_flag_spec='-R$libdir'
16045 hardcode_direct=yes
16046 hardcode_shlibpath_var=no
16047 ;;
16048
16049 newsos6)
16050 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16051 hardcode_direct=yes
16052 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16053 hardcode_libdir_separator=:
16054 hardcode_shlibpath_var=no
16055 ;;
16056
16057 *nto* | *qnx*)
16058 ;;
16059
16060 openbsd*)
16061 if test -f /usr/libexec/ld.so; then
16062 hardcode_direct=yes
16063 hardcode_shlibpath_var=no
16064 hardcode_direct_absolute=yes
16065 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16066 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16067 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16068 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16069 export_dynamic_flag_spec='${wl}-E'
16070 else
16071 case $host_os in
16072 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16073 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16074 hardcode_libdir_flag_spec='-R$libdir'
16075 ;;
16076 *)
16077 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16078 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16079 ;;
16080 esac
16081 fi
16082 else
16083 ld_shlibs=no
16084 fi
16085 ;;
16086
16087 os2*)
16088 hardcode_libdir_flag_spec='-L$libdir'
16089 hardcode_minus_L=yes
16090 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000016091 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 +000016092 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16093 ;;
16094
16095 osf3*)
16096 if test "$GCC" = yes; then
16097 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000016098 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 +000016099 else
16100 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000016101 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 +000016102 fi
16103 archive_cmds_need_lc='no'
16104 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16105 hardcode_libdir_separator=:
16106 ;;
16107
16108 osf4* | osf5*) # as osf3* with the addition of -msym flag
16109 if test "$GCC" = yes; then
16110 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000016111 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 +000016112 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16113 else
16114 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000016115 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 +000016116 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 +000016117 $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 +000016118
16119 # Both c and cxx compiler support -rpath directly
16120 hardcode_libdir_flag_spec='-rpath $libdir'
16121 fi
16122 archive_cmds_need_lc='no'
16123 hardcode_libdir_separator=:
16124 ;;
16125
16126 solaris*)
16127 no_undefined_flag=' -z defs'
16128 if test "$GCC" = yes; then
16129 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000016130 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 +000016131 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 +000016132 $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 +000016133 else
16134 case `$CC -V 2>&1` in
16135 *"Compilers 5.0"*)
16136 wlarc=''
16137 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16138 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16139 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16140 ;;
16141 *)
16142 wlarc='${wl}'
16143 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16144 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16145 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16146 ;;
16147 esac
16148 fi
16149 hardcode_libdir_flag_spec='-R$libdir'
16150 hardcode_shlibpath_var=no
16151 case $host_os in
16152 solaris2.[0-5] | solaris2.[0-5].*) ;;
16153 *)
16154 # The compiler driver will combine and reorder linker options,
16155 # but understands `-z linker_flag'. GCC discards it without `$wl',
16156 # but is careful enough not to reorder.
16157 # Supported since Solaris 2.6 (maybe 2.5.1?)
16158 if test "$GCC" = yes; then
16159 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16160 else
16161 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16162 fi
16163 ;;
16164 esac
16165 link_all_deplibs=yes
16166 ;;
16167
16168 sunos4*)
16169 if test "x$host_vendor" = xsequent; then
16170 # Use $CC to link under sequent, because it throws in some extra .o
16171 # files that make .init and .fini sections work.
16172 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16173 else
16174 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16175 fi
16176 hardcode_libdir_flag_spec='-L$libdir'
16177 hardcode_direct=yes
16178 hardcode_minus_L=yes
16179 hardcode_shlibpath_var=no
16180 ;;
16181
16182 sysv4)
16183 case $host_vendor in
16184 sni)
16185 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16186 hardcode_direct=yes # is this really true???
16187 ;;
16188 siemens)
16189 ## LD is ld it makes a PLAMLIB
16190 ## CC just makes a GrossModule.
16191 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16192 reload_cmds='$CC -r -o $output$reload_objs'
16193 hardcode_direct=no
16194 ;;
16195 motorola)
16196 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16197 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16198 ;;
16199 esac
16200 runpath_var='LD_RUN_PATH'
16201 hardcode_shlibpath_var=no
16202 ;;
16203
16204 sysv4.3*)
16205 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16206 hardcode_shlibpath_var=no
16207 export_dynamic_flag_spec='-Bexport'
16208 ;;
16209
16210 sysv4*MP*)
16211 if test -d /usr/nec; then
16212 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16213 hardcode_shlibpath_var=no
16214 runpath_var=LD_RUN_PATH
16215 hardcode_runpath_var=yes
16216 ld_shlibs=yes
16217 fi
16218 ;;
16219
16220 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16221 no_undefined_flag='${wl}-z,text'
16222 archive_cmds_need_lc=no
16223 hardcode_shlibpath_var=no
16224 runpath_var='LD_RUN_PATH'
16225
16226 if test "$GCC" = yes; then
16227 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16228 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16229 else
16230 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16231 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16232 fi
16233 ;;
16234
16235 sysv5* | sco3.2v5* | sco5v6*)
16236 # Note: We can NOT use -z defs as we might desire, because we do not
16237 # link with -lc, and that would cause any symbols used from libc to
16238 # always be unresolved, which means just about no library would
16239 # ever link correctly. If we're not using GNU ld we use -z text
16240 # though, which does catch some bad symbols but isn't as heavy-handed
16241 # as -z defs.
16242 no_undefined_flag='${wl}-z,text'
16243 allow_undefined_flag='${wl}-z,nodefs'
16244 archive_cmds_need_lc=no
16245 hardcode_shlibpath_var=no
16246 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16247 hardcode_libdir_separator=':'
16248 link_all_deplibs=yes
16249 export_dynamic_flag_spec='${wl}-Bexport'
16250 runpath_var='LD_RUN_PATH'
16251
16252 if test "$GCC" = yes; then
16253 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16254 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16255 else
16256 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16257 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16258 fi
16259 ;;
16260
16261 uts4*)
16262 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16263 hardcode_libdir_flag_spec='-L$libdir'
16264 hardcode_shlibpath_var=no
16265 ;;
16266
16267 *)
16268 ld_shlibs=no
16269 ;;
16270 esac
16271
16272 if test x$host_vendor = xsni; then
16273 case $host in
16274 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16275 export_dynamic_flag_spec='${wl}-Blargedynsym'
16276 ;;
16277 esac
16278 fi
16279 fi
16280
16281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16282$as_echo "$ld_shlibs" >&6; }
16283test "$ld_shlibs" = no && can_build_shared=no
16284
16285with_gnu_ld=$with_gnu_ld
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298
16299
16300
16301#
16302# Do we need to explicitly link libc?
16303#
16304case "x$archive_cmds_need_lc" in
16305x|xyes)
16306 # Assume -lc should be added
16307 archive_cmds_need_lc=yes
16308
16309 if test "$enable_shared" = yes && test "$GCC" = yes; then
16310 case $archive_cmds in
16311 *'~'*)
16312 # FIXME: we may have to deal with multi-command sequences.
16313 ;;
16314 '$CC '*)
16315 # Test whether the compiler implicitly links with -lc since on some
16316 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16317 # to ld, don't add -lc before -lgcc.
16318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16319$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016320if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016321 $as_echo_n "(cached) " >&6
16322else
16323 $RM conftest*
16324 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016325
cristy0c60a692010-11-04 01:09:47 +000016326 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000016327 (eval $ac_compile) 2>&5
16328 ac_status=$?
16329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16330 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000016331 soname=conftest
16332 lib=conftest
16333 libobjs=conftest.$ac_objext
16334 deplibs=
16335 wl=$lt_prog_compiler_wl
16336 pic_flag=$lt_prog_compiler_pic
16337 compiler_flags=-v
16338 linker_flags=-v
16339 verstring=
16340 output_objdir=.
16341 libname=conftest
16342 lt_save_allow_undefined_flag=$allow_undefined_flag
16343 allow_undefined_flag=
16344 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 +000016345 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16346 ac_status=$?
16347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16348 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000016349 then
16350 lt_cv_archive_cmds_need_lc=no
16351 else
16352 lt_cv_archive_cmds_need_lc=yes
16353 fi
16354 allow_undefined_flag=$lt_save_allow_undefined_flag
16355 else
16356 cat conftest.err 1>&5
16357 fi
16358 $RM conftest*
16359
16360fi
16361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16362$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16363 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000016364 ;;
16365 esac
16366 fi
16367 ;;
16368esac
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
16430
16431
16432
16433
16434
16435
16436
16437
16438
16439
16440
16441
16442
16443
16444
16445
16446
16447
16448
16449
16450
16451
16452
16453
16454
16455
16456
16457
16458
16459
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469
16470
16471
16472
16473
16474
16475
16476
16477
16478
16479
16480
16481
16482
16483
16484
16485
16486
16487
16488
16489
16490
16491
16492
16493
16494
16495
16496
16497
16498
16499
16500
16501
16502
16503
16504
16505
16506
16507
16508
16509
16510
16511
16512
16513
16514
16515
16516
16517
16518
16519
16520
cristy73bd4a52010-10-05 11:24:23 +000016521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16522$as_echo_n "checking dynamic linker characteristics... " >&6; }
16523
16524if test "$GCC" = yes; then
16525 case $host_os in
16526 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16527 *) lt_awk_arg="/^libraries:/" ;;
16528 esac
cristy0c60a692010-11-04 01:09:47 +000016529 case $host_os in
16530 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16531 *) lt_sed_strip_eq="s,=/,/,g" ;;
16532 esac
16533 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16534 case $lt_search_path_spec in
16535 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000016536 # if the path contains ";" then we assume it to be the separator
16537 # otherwise default to the standard path separator (i.e. ":") - it is
16538 # assumed that no part of a normal pathname contains ";" but that should
16539 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000016540 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16541 ;;
16542 *)
16543 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16544 ;;
16545 esac
cristy73bd4a52010-10-05 11:24:23 +000016546 # Ok, now we have the path, separated by spaces, we can step through it
16547 # and add multilib dir if necessary.
16548 lt_tmp_lt_search_path_spec=
16549 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16550 for lt_sys_path in $lt_search_path_spec; do
16551 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16552 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16553 else
16554 test -d "$lt_sys_path" && \
16555 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16556 fi
16557 done
cristy0c60a692010-11-04 01:09:47 +000016558 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000016559BEGIN {RS=" "; FS="/|\n";} {
16560 lt_foo="";
16561 lt_count=0;
16562 for (lt_i = NF; lt_i > 0; lt_i--) {
16563 if ($lt_i != "" && $lt_i != ".") {
16564 if ($lt_i == "..") {
16565 lt_count++;
16566 } else {
16567 if (lt_count == 0) {
16568 lt_foo="/" $lt_i lt_foo;
16569 } else {
16570 lt_count--;
16571 }
16572 }
16573 }
16574 }
16575 if (lt_foo != "") { lt_freq[lt_foo]++; }
16576 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16577}'`
cristy0c60a692010-11-04 01:09:47 +000016578 # AWK program above erroneously prepends '/' to C:/dos/paths
16579 # for these hosts.
16580 case $host_os in
16581 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16582 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16583 esac
16584 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000016585else
16586 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16587fi
16588library_names_spec=
16589libname_spec='lib$name'
16590soname_spec=
16591shrext_cmds=".so"
16592postinstall_cmds=
16593postuninstall_cmds=
16594finish_cmds=
16595finish_eval=
16596shlibpath_var=
16597shlibpath_overrides_runpath=unknown
16598version_type=none
16599dynamic_linker="$host_os ld.so"
16600sys_lib_dlsearch_path_spec="/lib /usr/lib"
16601need_lib_prefix=unknown
16602hardcode_into_libs=no
16603
16604# when you set need_version to no, make sure it does not cause -set_version
16605# flags to be left without arguments
16606need_version=unknown
16607
16608case $host_os in
16609aix3*)
cristy99bd5232011-12-07 14:38:20 +000016610 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016611 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16612 shlibpath_var=LIBPATH
16613
16614 # AIX 3 has no versioning support, so we append a major version to the name.
16615 soname_spec='${libname}${release}${shared_ext}$major'
16616 ;;
16617
16618aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000016619 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016620 need_lib_prefix=no
16621 need_version=no
16622 hardcode_into_libs=yes
16623 if test "$host_cpu" = ia64; then
16624 # AIX 5 supports IA64
16625 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16626 shlibpath_var=LD_LIBRARY_PATH
16627 else
16628 # With GCC up to 2.95.x, collect2 would create an import file
16629 # for dependence libraries. The import file would start with
16630 # the line `#! .'. This would cause the generated library to
16631 # depend on `.', always an invalid library. This was fixed in
16632 # development snapshots of GCC prior to 3.0.
16633 case $host_os in
16634 aix4 | aix4.[01] | aix4.[01].*)
16635 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16636 echo ' yes '
16637 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16638 :
16639 else
16640 can_build_shared=no
16641 fi
16642 ;;
16643 esac
16644 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16645 # soname into executable. Probably we can add versioning support to
16646 # collect2, so additional links can be useful in future.
16647 if test "$aix_use_runtimelinking" = yes; then
16648 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16649 # instead of lib<name>.a to let people know that these are not
16650 # typical AIX shared libraries.
16651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16652 else
16653 # We preserve .a as extension for shared libraries through AIX4.2
16654 # and later when we are not doing run time linking.
16655 library_names_spec='${libname}${release}.a $libname.a'
16656 soname_spec='${libname}${release}${shared_ext}$major'
16657 fi
16658 shlibpath_var=LIBPATH
16659 fi
16660 ;;
16661
16662amigaos*)
16663 case $host_cpu in
16664 powerpc)
16665 # Since July 2007 AmigaOS4 officially supports .so libraries.
16666 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16668 ;;
16669 m68k)
16670 library_names_spec='$libname.ixlibrary $libname.a'
16671 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000016672 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 +000016673 ;;
16674 esac
16675 ;;
16676
16677beos*)
16678 library_names_spec='${libname}${shared_ext}'
16679 dynamic_linker="$host_os ld.so"
16680 shlibpath_var=LIBRARY_PATH
16681 ;;
16682
16683bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000016684 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016685 need_version=no
16686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16687 soname_spec='${libname}${release}${shared_ext}$major'
16688 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16689 shlibpath_var=LD_LIBRARY_PATH
16690 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16691 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16692 # the default ld.so.conf also contains /usr/contrib/lib and
16693 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16694 # libtool to hard-code these into programs
16695 ;;
16696
16697cygwin* | mingw* | pw32* | cegcc*)
16698 version_type=windows
16699 shrext_cmds=".dll"
16700 need_version=no
16701 need_lib_prefix=no
16702
cristyda16f162011-02-19 23:52:17 +000016703 case $GCC,$cc_basename in
16704 yes,*)
16705 # gcc
cristy73bd4a52010-10-05 11:24:23 +000016706 library_names_spec='$libname.dll.a'
16707 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16708 postinstall_cmds='base_file=`basename \${file}`~
16709 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16710 dldir=$destdir/`dirname \$dlpath`~
16711 test -d \$dldir || mkdir -p \$dldir~
16712 $install_prog $dir/$dlname \$dldir/$dlname~
16713 chmod a+x \$dldir/$dlname~
16714 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16715 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16716 fi'
16717 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16718 dlpath=$dir/\$dldll~
16719 $RM \$dlpath'
16720 shlibpath_overrides_runpath=yes
16721
16722 case $host_os in
16723 cygwin*)
16724 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16725 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000016726
16727 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000016728 ;;
16729 mingw* | cegcc*)
16730 # MinGW DLLs use traditional 'lib' prefix
16731 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000016732 ;;
16733 pw32*)
16734 # pw32 DLLs use 'pw' prefix rather than 'lib'
16735 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16736 ;;
16737 esac
cristyda16f162011-02-19 23:52:17 +000016738 dynamic_linker='Win32 ld.exe'
16739 ;;
16740
16741 *,cl*)
16742 # Native MSVC
16743 libname_spec='$name'
16744 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16745 library_names_spec='${libname}.dll.lib'
16746
16747 case $build_os in
16748 mingw*)
16749 sys_lib_search_path_spec=
16750 lt_save_ifs=$IFS
16751 IFS=';'
16752 for lt_path in $LIB
16753 do
16754 IFS=$lt_save_ifs
16755 # Let DOS variable expansion print the short 8.3 style file name.
16756 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16757 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16758 done
16759 IFS=$lt_save_ifs
16760 # Convert to MSYS style.
16761 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16762 ;;
16763 cygwin*)
16764 # Convert to unix form, then to dos form, then back to unix form
16765 # but this time dos style (no spaces!) so that the unix form looks
16766 # like /cygdrive/c/PROGRA~1:/cygdr...
16767 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16768 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16769 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16770 ;;
16771 *)
16772 sys_lib_search_path_spec="$LIB"
16773 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16774 # It is most probably a Windows format PATH.
16775 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16776 else
16777 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16778 fi
16779 # FIXME: find the short name or the path components, as spaces are
16780 # common. (e.g. "Program Files" -> "PROGRA~1")
16781 ;;
16782 esac
16783
16784 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16785 postinstall_cmds='base_file=`basename \${file}`~
16786 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16787 dldir=$destdir/`dirname \$dlpath`~
16788 test -d \$dldir || mkdir -p \$dldir~
16789 $install_prog $dir/$dlname \$dldir/$dlname'
16790 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16791 dlpath=$dir/\$dldll~
16792 $RM \$dlpath'
16793 shlibpath_overrides_runpath=yes
16794 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000016795 ;;
16796
16797 *)
cristyda16f162011-02-19 23:52:17 +000016798 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000016799 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000016800 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000016801 ;;
16802 esac
cristy73bd4a52010-10-05 11:24:23 +000016803 # FIXME: first we should search . and the directory the executable is in
16804 shlibpath_var=PATH
16805 ;;
16806
16807darwin* | rhapsody*)
16808 dynamic_linker="$host_os dyld"
16809 version_type=darwin
16810 need_lib_prefix=no
16811 need_version=no
16812 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16813 soname_spec='${libname}${release}${major}$shared_ext'
16814 shlibpath_overrides_runpath=yes
16815 shlibpath_var=DYLD_LIBRARY_PATH
16816 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16817
16818 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16819 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16820 ;;
16821
16822dgux*)
cristy99bd5232011-12-07 14:38:20 +000016823 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016824 need_lib_prefix=no
16825 need_version=no
16826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16827 soname_spec='${libname}${release}${shared_ext}$major'
16828 shlibpath_var=LD_LIBRARY_PATH
16829 ;;
16830
cristy73bd4a52010-10-05 11:24:23 +000016831freebsd* | dragonfly*)
16832 # DragonFly does not have aout. When/if they implement a new
16833 # versioning mechanism, adjust this.
16834 if test -x /usr/bin/objformat; then
16835 objformat=`/usr/bin/objformat`
16836 else
16837 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016838 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000016839 *) objformat=elf ;;
16840 esac
16841 fi
16842 version_type=freebsd-$objformat
16843 case $version_type in
16844 freebsd-elf*)
16845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16846 need_version=no
16847 need_lib_prefix=no
16848 ;;
16849 freebsd-*)
16850 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16851 need_version=yes
16852 ;;
16853 esac
16854 shlibpath_var=LD_LIBRARY_PATH
16855 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016856 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000016857 shlibpath_overrides_runpath=yes
16858 ;;
16859 freebsd3.[01]* | freebsdelf3.[01]*)
16860 shlibpath_overrides_runpath=yes
16861 hardcode_into_libs=yes
16862 ;;
16863 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16864 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16865 shlibpath_overrides_runpath=no
16866 hardcode_into_libs=yes
16867 ;;
16868 *) # from 4.6 on, and DragonFly
16869 shlibpath_overrides_runpath=yes
16870 hardcode_into_libs=yes
16871 ;;
16872 esac
16873 ;;
16874
16875gnu*)
cristy99bd5232011-12-07 14:38:20 +000016876 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016877 need_lib_prefix=no
16878 need_version=no
16879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16880 soname_spec='${libname}${release}${shared_ext}$major'
16881 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000016882 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000016883 hardcode_into_libs=yes
16884 ;;
16885
cristy0c60a692010-11-04 01:09:47 +000016886haiku*)
cristy99bd5232011-12-07 14:38:20 +000016887 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000016888 need_lib_prefix=no
16889 need_version=no
16890 dynamic_linker="$host_os runtime_loader"
16891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16892 soname_spec='${libname}${release}${shared_ext}$major'
16893 shlibpath_var=LIBRARY_PATH
16894 shlibpath_overrides_runpath=yes
16895 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16896 hardcode_into_libs=yes
16897 ;;
16898
cristy73bd4a52010-10-05 11:24:23 +000016899hpux9* | hpux10* | hpux11*)
16900 # Give a soname corresponding to the major version so that dld.sl refuses to
16901 # link against other versions.
16902 version_type=sunos
16903 need_lib_prefix=no
16904 need_version=no
16905 case $host_cpu in
16906 ia64*)
16907 shrext_cmds='.so'
16908 hardcode_into_libs=yes
16909 dynamic_linker="$host_os dld.so"
16910 shlibpath_var=LD_LIBRARY_PATH
16911 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16913 soname_spec='${libname}${release}${shared_ext}$major'
16914 if test "X$HPUX_IA64_MODE" = X32; then
16915 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16916 else
16917 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16918 fi
16919 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16920 ;;
16921 hppa*64*)
16922 shrext_cmds='.sl'
16923 hardcode_into_libs=yes
16924 dynamic_linker="$host_os dld.sl"
16925 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16926 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16928 soname_spec='${libname}${release}${shared_ext}$major'
16929 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16930 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16931 ;;
16932 *)
16933 shrext_cmds='.sl'
16934 dynamic_linker="$host_os dld.sl"
16935 shlibpath_var=SHLIB_PATH
16936 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16938 soname_spec='${libname}${release}${shared_ext}$major'
16939 ;;
16940 esac
cristy0c60a692010-11-04 01:09:47 +000016941 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000016942 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000016943 # or fails outright, so override atomically:
16944 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000016945 ;;
16946
16947interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000016948 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016949 need_lib_prefix=no
16950 need_version=no
16951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16952 soname_spec='${libname}${release}${shared_ext}$major'
16953 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16954 shlibpath_var=LD_LIBRARY_PATH
16955 shlibpath_overrides_runpath=no
16956 hardcode_into_libs=yes
16957 ;;
16958
16959irix5* | irix6* | nonstopux*)
16960 case $host_os in
16961 nonstopux*) version_type=nonstopux ;;
16962 *)
16963 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000016964 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016965 else
16966 version_type=irix
16967 fi ;;
16968 esac
16969 need_lib_prefix=no
16970 need_version=no
16971 soname_spec='${libname}${release}${shared_ext}$major'
16972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16973 case $host_os in
16974 irix5* | nonstopux*)
16975 libsuff= shlibsuff=
16976 ;;
16977 *)
16978 case $LD in # libtool.m4 will add one of these switches to LD
16979 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16980 libsuff= shlibsuff= libmagic=32-bit;;
16981 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16982 libsuff=32 shlibsuff=N32 libmagic=N32;;
16983 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16984 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16985 *) libsuff= shlibsuff= libmagic=never-match;;
16986 esac
16987 ;;
16988 esac
16989 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16990 shlibpath_overrides_runpath=no
16991 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16992 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16993 hardcode_into_libs=yes
16994 ;;
16995
16996# No shared lib support for Linux oldld, aout, or coff.
16997linux*oldld* | linux*aout* | linux*coff*)
16998 dynamic_linker=no
16999 ;;
17000
cristy99bd5232011-12-07 14:38:20 +000017001# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000017002linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000017003 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017004 need_lib_prefix=no
17005 need_version=no
17006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17007 soname_spec='${libname}${release}${shared_ext}$major'
17008 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17009 shlibpath_var=LD_LIBRARY_PATH
17010 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000017011
cristy73bd4a52010-10-05 11:24:23 +000017012 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000017013 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000017014 $as_echo_n "(cached) " >&6
17015else
17016 lt_cv_shlibpath_overrides_runpath=no
17017 save_LDFLAGS=$LDFLAGS
17018 save_libdir=$libdir
17019 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17020 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017022/* end confdefs.h. */
17023
17024int
17025main ()
17026{
17027
17028 ;
17029 return 0;
17030}
17031_ACEOF
17032if ac_fn_c_try_link "$LINENO"; then :
17033 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000017034 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000017035fi
17036fi
17037rm -f core conftest.err conftest.$ac_objext \
17038 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017039 LDFLAGS=$save_LDFLAGS
17040 libdir=$save_libdir
17041
17042fi
17043
17044 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000017045
17046 # This implies no fast_install, which is unacceptable.
17047 # Some rework will be needed to allow for fast_install
17048 # before this can be enabled.
17049 hardcode_into_libs=yes
17050
17051 # Add ABI-specific directories to the system library path.
17052 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
17053
17054 # Append ld.so.conf contents to the search path
17055 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000017056 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 +000017057 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000017058
cristy73bd4a52010-10-05 11:24:23 +000017059 fi
17060
17061 # We used to test for /lib/ld.so.1 and disable shared libraries on
17062 # powerpc, because MkLinux only supported shared libraries with the
17063 # GNU dynamic linker. Since this was broken with cross compilers,
17064 # most powerpc-linux boxes support dynamic linking these days and
17065 # people can always --disable-shared, the test was removed, and we
17066 # assume the GNU/Linux dynamic linker is in use.
17067 dynamic_linker='GNU/Linux ld.so'
17068 ;;
17069
17070netbsd*)
17071 version_type=sunos
17072 need_lib_prefix=no
17073 need_version=no
17074 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17076 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17077 dynamic_linker='NetBSD (a.out) ld.so'
17078 else
17079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17080 soname_spec='${libname}${release}${shared_ext}$major'
17081 dynamic_linker='NetBSD ld.elf_so'
17082 fi
17083 shlibpath_var=LD_LIBRARY_PATH
17084 shlibpath_overrides_runpath=yes
17085 hardcode_into_libs=yes
17086 ;;
17087
17088newsos6)
cristy99bd5232011-12-07 14:38:20 +000017089 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17091 shlibpath_var=LD_LIBRARY_PATH
17092 shlibpath_overrides_runpath=yes
17093 ;;
17094
17095*nto* | *qnx*)
17096 version_type=qnx
17097 need_lib_prefix=no
17098 need_version=no
17099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17100 soname_spec='${libname}${release}${shared_ext}$major'
17101 shlibpath_var=LD_LIBRARY_PATH
17102 shlibpath_overrides_runpath=no
17103 hardcode_into_libs=yes
17104 dynamic_linker='ldqnx.so'
17105 ;;
17106
17107openbsd*)
17108 version_type=sunos
17109 sys_lib_dlsearch_path_spec="/usr/lib"
17110 need_lib_prefix=no
17111 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17112 case $host_os in
17113 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17114 *) need_version=no ;;
17115 esac
17116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17117 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17118 shlibpath_var=LD_LIBRARY_PATH
17119 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17120 case $host_os in
17121 openbsd2.[89] | openbsd2.[89].*)
17122 shlibpath_overrides_runpath=no
17123 ;;
17124 *)
17125 shlibpath_overrides_runpath=yes
17126 ;;
17127 esac
17128 else
17129 shlibpath_overrides_runpath=yes
17130 fi
17131 ;;
17132
17133os2*)
17134 libname_spec='$name'
17135 shrext_cmds=".dll"
17136 need_lib_prefix=no
17137 library_names_spec='$libname${shared_ext} $libname.a'
17138 dynamic_linker='OS/2 ld.exe'
17139 shlibpath_var=LIBPATH
17140 ;;
17141
17142osf3* | osf4* | osf5*)
17143 version_type=osf
17144 need_lib_prefix=no
17145 need_version=no
17146 soname_spec='${libname}${release}${shared_ext}$major'
17147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17148 shlibpath_var=LD_LIBRARY_PATH
17149 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17150 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17151 ;;
17152
17153rdos*)
17154 dynamic_linker=no
17155 ;;
17156
17157solaris*)
cristy99bd5232011-12-07 14:38:20 +000017158 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017159 need_lib_prefix=no
17160 need_version=no
17161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17162 soname_spec='${libname}${release}${shared_ext}$major'
17163 shlibpath_var=LD_LIBRARY_PATH
17164 shlibpath_overrides_runpath=yes
17165 hardcode_into_libs=yes
17166 # ldd complains unless libraries are executable
17167 postinstall_cmds='chmod +x $lib'
17168 ;;
17169
17170sunos4*)
17171 version_type=sunos
17172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17173 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17174 shlibpath_var=LD_LIBRARY_PATH
17175 shlibpath_overrides_runpath=yes
17176 if test "$with_gnu_ld" = yes; then
17177 need_lib_prefix=no
17178 fi
17179 need_version=yes
17180 ;;
17181
17182sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000017183 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17185 soname_spec='${libname}${release}${shared_ext}$major'
17186 shlibpath_var=LD_LIBRARY_PATH
17187 case $host_vendor in
17188 sni)
17189 shlibpath_overrides_runpath=no
17190 need_lib_prefix=no
17191 runpath_var=LD_RUN_PATH
17192 ;;
17193 siemens)
17194 need_lib_prefix=no
17195 ;;
17196 motorola)
17197 need_lib_prefix=no
17198 need_version=no
17199 shlibpath_overrides_runpath=no
17200 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17201 ;;
17202 esac
17203 ;;
17204
17205sysv4*MP*)
17206 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000017207 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017208 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17209 soname_spec='$libname${shared_ext}.$major'
17210 shlibpath_var=LD_LIBRARY_PATH
17211 fi
17212 ;;
17213
17214sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17215 version_type=freebsd-elf
17216 need_lib_prefix=no
17217 need_version=no
17218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17219 soname_spec='${libname}${release}${shared_ext}$major'
17220 shlibpath_var=LD_LIBRARY_PATH
17221 shlibpath_overrides_runpath=yes
17222 hardcode_into_libs=yes
17223 if test "$with_gnu_ld" = yes; then
17224 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17225 else
17226 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17227 case $host_os in
17228 sco3.2v5*)
17229 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17230 ;;
17231 esac
17232 fi
17233 sys_lib_dlsearch_path_spec='/usr/lib'
17234 ;;
17235
17236tpf*)
17237 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000017238 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017239 need_lib_prefix=no
17240 need_version=no
17241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17242 shlibpath_var=LD_LIBRARY_PATH
17243 shlibpath_overrides_runpath=no
17244 hardcode_into_libs=yes
17245 ;;
17246
17247uts4*)
cristy99bd5232011-12-07 14:38:20 +000017248 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17250 soname_spec='${libname}${release}${shared_ext}$major'
17251 shlibpath_var=LD_LIBRARY_PATH
17252 ;;
17253
17254*)
17255 dynamic_linker=no
17256 ;;
17257esac
17258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17259$as_echo "$dynamic_linker" >&6; }
17260test "$dynamic_linker" = no && can_build_shared=no
17261
17262variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17263if test "$GCC" = yes; then
17264 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17265fi
17266
17267if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17268 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17269fi
17270if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17271 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17272fi
17273
17274
17275
17276
17277
17278
17279
17280
17281
17282
17283
17284
17285
17286
17287
17288
17289
17290
17291
17292
17293
17294
17295
17296
17297
17298
17299
17300
17301
17302
17303
17304
17305
17306
17307
17308
17309
17310
17311
17312
17313
17314
17315
17316
17317
17318
17319
17320
17321
17322
17323
17324
17325
17326
17327
17328
17329
17330
17331
17332
17333
17334
17335
17336
17337
17338
17339
17340
17341
17342
17343
17344
17345
17346
17347
17348
17349
17350
17351
17352
17353
17354
17355
17356
17357
17358
17359
cristy0c60a692010-11-04 01:09:47 +000017360
17361
17362
17363
17364
cristy73bd4a52010-10-05 11:24:23 +000017365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17366$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17367hardcode_action=
17368if test -n "$hardcode_libdir_flag_spec" ||
17369 test -n "$runpath_var" ||
17370 test "X$hardcode_automatic" = "Xyes" ; then
17371
17372 # We can hardcode non-existent directories.
17373 if test "$hardcode_direct" != no &&
17374 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17375 # have to relink, otherwise we might link with an installed library
17376 # when we should be linking with a yet-to-be-installed one
17377 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17378 test "$hardcode_minus_L" != no; then
17379 # Linking always hardcodes the temporary library directory.
17380 hardcode_action=relink
17381 else
17382 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17383 hardcode_action=immediate
17384 fi
17385else
17386 # We cannot hardcode anything, or else we can only hardcode existing
17387 # directories.
17388 hardcode_action=unsupported
17389fi
17390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17391$as_echo "$hardcode_action" >&6; }
17392
17393if test "$hardcode_action" = relink ||
17394 test "$inherit_rpath" = yes; then
17395 # Fast installation is not supported
17396 enable_fast_install=no
17397elif test "$shlibpath_overrides_runpath" = yes ||
17398 test "$enable_shared" = no; then
17399 # Fast installation is not necessary
17400 enable_fast_install=needless
17401fi
17402
17403
17404
17405
17406
17407
17408 if test "x$enable_dlopen" != xyes; then
17409 enable_dlopen=unknown
17410 enable_dlopen_self=unknown
17411 enable_dlopen_self_static=unknown
17412else
17413 lt_cv_dlopen=no
17414 lt_cv_dlopen_libs=
17415
17416 case $host_os in
17417 beos*)
17418 lt_cv_dlopen="load_add_on"
17419 lt_cv_dlopen_libs=
17420 lt_cv_dlopen_self=yes
17421 ;;
17422
17423 mingw* | pw32* | cegcc*)
17424 lt_cv_dlopen="LoadLibrary"
17425 lt_cv_dlopen_libs=
17426 ;;
17427
17428 cygwin*)
17429 lt_cv_dlopen="dlopen"
17430 lt_cv_dlopen_libs=
17431 ;;
17432
17433 darwin*)
17434 # if libdl is installed we need to link against it
17435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17436$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017437if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017438 $as_echo_n "(cached) " >&6
17439else
17440 ac_check_lib_save_LIBS=$LIBS
17441LIBS="-ldl $LIBS"
17442cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17443/* end confdefs.h. */
17444
17445/* Override any GCC internal prototype to avoid an error.
17446 Use char because int might match the return type of a GCC
17447 builtin and then its argument prototype would still apply. */
17448#ifdef __cplusplus
17449extern "C"
17450#endif
17451char dlopen ();
17452int
17453main ()
17454{
17455return dlopen ();
17456 ;
17457 return 0;
17458}
17459_ACEOF
17460if ac_fn_c_try_link "$LINENO"; then :
17461 ac_cv_lib_dl_dlopen=yes
17462else
17463 ac_cv_lib_dl_dlopen=no
17464fi
17465rm -f core conftest.err conftest.$ac_objext \
17466 conftest$ac_exeext conftest.$ac_ext
17467LIBS=$ac_check_lib_save_LIBS
17468fi
17469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17470$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017471if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017472 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17473else
17474
17475 lt_cv_dlopen="dyld"
17476 lt_cv_dlopen_libs=
17477 lt_cv_dlopen_self=yes
17478
17479fi
17480
17481 ;;
17482
17483 *)
17484 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000017485if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017486 lt_cv_dlopen="shl_load"
17487else
17488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17489$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017490if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017491 $as_echo_n "(cached) " >&6
17492else
17493 ac_check_lib_save_LIBS=$LIBS
17494LIBS="-ldld $LIBS"
17495cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17496/* end confdefs.h. */
17497
17498/* Override any GCC internal prototype to avoid an error.
17499 Use char because int might match the return type of a GCC
17500 builtin and then its argument prototype would still apply. */
17501#ifdef __cplusplus
17502extern "C"
17503#endif
17504char shl_load ();
17505int
17506main ()
17507{
17508return shl_load ();
17509 ;
17510 return 0;
17511}
17512_ACEOF
17513if ac_fn_c_try_link "$LINENO"; then :
17514 ac_cv_lib_dld_shl_load=yes
17515else
17516 ac_cv_lib_dld_shl_load=no
17517fi
17518rm -f core conftest.err conftest.$ac_objext \
17519 conftest$ac_exeext conftest.$ac_ext
17520LIBS=$ac_check_lib_save_LIBS
17521fi
17522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17523$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000017524if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017525 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17526else
17527 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000017528if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017529 lt_cv_dlopen="dlopen"
17530else
17531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17532$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017533if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017534 $as_echo_n "(cached) " >&6
17535else
17536 ac_check_lib_save_LIBS=$LIBS
17537LIBS="-ldl $LIBS"
17538cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17539/* end confdefs.h. */
17540
17541/* Override any GCC internal prototype to avoid an error.
17542 Use char because int might match the return type of a GCC
17543 builtin and then its argument prototype would still apply. */
17544#ifdef __cplusplus
17545extern "C"
17546#endif
17547char dlopen ();
17548int
17549main ()
17550{
17551return dlopen ();
17552 ;
17553 return 0;
17554}
17555_ACEOF
17556if ac_fn_c_try_link "$LINENO"; then :
17557 ac_cv_lib_dl_dlopen=yes
17558else
17559 ac_cv_lib_dl_dlopen=no
17560fi
17561rm -f core conftest.err conftest.$ac_objext \
17562 conftest$ac_exeext conftest.$ac_ext
17563LIBS=$ac_check_lib_save_LIBS
17564fi
17565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17566$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017567if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017568 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17569else
17570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17571$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017572if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017573 $as_echo_n "(cached) " >&6
17574else
17575 ac_check_lib_save_LIBS=$LIBS
17576LIBS="-lsvld $LIBS"
17577cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17578/* end confdefs.h. */
17579
17580/* Override any GCC internal prototype to avoid an error.
17581 Use char because int might match the return type of a GCC
17582 builtin and then its argument prototype would still apply. */
17583#ifdef __cplusplus
17584extern "C"
17585#endif
17586char dlopen ();
17587int
17588main ()
17589{
17590return dlopen ();
17591 ;
17592 return 0;
17593}
17594_ACEOF
17595if ac_fn_c_try_link "$LINENO"; then :
17596 ac_cv_lib_svld_dlopen=yes
17597else
17598 ac_cv_lib_svld_dlopen=no
17599fi
17600rm -f core conftest.err conftest.$ac_objext \
17601 conftest$ac_exeext conftest.$ac_ext
17602LIBS=$ac_check_lib_save_LIBS
17603fi
17604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17605$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017606if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017607 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17608else
17609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17610$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017611if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017612 $as_echo_n "(cached) " >&6
17613else
17614 ac_check_lib_save_LIBS=$LIBS
17615LIBS="-ldld $LIBS"
17616cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17617/* end confdefs.h. */
17618
17619/* Override any GCC internal prototype to avoid an error.
17620 Use char because int might match the return type of a GCC
17621 builtin and then its argument prototype would still apply. */
17622#ifdef __cplusplus
17623extern "C"
17624#endif
17625char dld_link ();
17626int
17627main ()
17628{
17629return dld_link ();
17630 ;
17631 return 0;
17632}
17633_ACEOF
17634if ac_fn_c_try_link "$LINENO"; then :
17635 ac_cv_lib_dld_dld_link=yes
17636else
17637 ac_cv_lib_dld_dld_link=no
17638fi
17639rm -f core conftest.err conftest.$ac_objext \
17640 conftest$ac_exeext conftest.$ac_ext
17641LIBS=$ac_check_lib_save_LIBS
17642fi
17643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17644$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000017645if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017646 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17647fi
17648
17649
17650fi
17651
17652
17653fi
17654
17655
17656fi
17657
17658
17659fi
17660
17661
17662fi
17663
17664 ;;
17665 esac
17666
17667 if test "x$lt_cv_dlopen" != xno; then
17668 enable_dlopen=yes
17669 else
17670 enable_dlopen=no
17671 fi
17672
17673 case $lt_cv_dlopen in
17674 dlopen)
17675 save_CPPFLAGS="$CPPFLAGS"
17676 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17677
17678 save_LDFLAGS="$LDFLAGS"
17679 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17680
17681 save_LIBS="$LIBS"
17682 LIBS="$lt_cv_dlopen_libs $LIBS"
17683
17684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17685$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017686if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017687 $as_echo_n "(cached) " >&6
17688else
17689 if test "$cross_compiling" = yes; then :
17690 lt_cv_dlopen_self=cross
17691else
17692 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17693 lt_status=$lt_dlunknown
17694 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017695#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017696#include "confdefs.h"
17697
17698#if HAVE_DLFCN_H
17699#include <dlfcn.h>
17700#endif
17701
17702#include <stdio.h>
17703
17704#ifdef RTLD_GLOBAL
17705# define LT_DLGLOBAL RTLD_GLOBAL
17706#else
17707# ifdef DL_GLOBAL
17708# define LT_DLGLOBAL DL_GLOBAL
17709# else
17710# define LT_DLGLOBAL 0
17711# endif
17712#endif
17713
17714/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17715 find out it does not work in some platform. */
17716#ifndef LT_DLLAZY_OR_NOW
17717# ifdef RTLD_LAZY
17718# define LT_DLLAZY_OR_NOW RTLD_LAZY
17719# else
17720# ifdef DL_LAZY
17721# define LT_DLLAZY_OR_NOW DL_LAZY
17722# else
17723# ifdef RTLD_NOW
17724# define LT_DLLAZY_OR_NOW RTLD_NOW
17725# else
17726# ifdef DL_NOW
17727# define LT_DLLAZY_OR_NOW DL_NOW
17728# else
17729# define LT_DLLAZY_OR_NOW 0
17730# endif
17731# endif
17732# endif
17733# endif
17734#endif
17735
cristy0c60a692010-11-04 01:09:47 +000017736/* When -fvisbility=hidden is used, assume the code has been annotated
17737 correspondingly for the symbols needed. */
17738#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017739int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017740#endif
17741
cristyda16f162011-02-19 23:52:17 +000017742int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017743int main ()
17744{
17745 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17746 int status = $lt_dlunknown;
17747
17748 if (self)
17749 {
17750 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017751 else
17752 {
17753 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17754 else puts (dlerror ());
17755 }
cristy73bd4a52010-10-05 11:24:23 +000017756 /* dlclose (self); */
17757 }
17758 else
17759 puts (dlerror ());
17760
17761 return status;
17762}
17763_LT_EOF
17764 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17765 (eval $ac_link) 2>&5
17766 ac_status=$?
17767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17768 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17769 (./conftest; exit; ) >&5 2>/dev/null
17770 lt_status=$?
17771 case x$lt_status in
17772 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17773 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17774 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17775 esac
17776 else :
17777 # compilation failed
17778 lt_cv_dlopen_self=no
17779 fi
17780fi
17781rm -fr conftest*
17782
17783
17784fi
17785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17786$as_echo "$lt_cv_dlopen_self" >&6; }
17787
17788 if test "x$lt_cv_dlopen_self" = xyes; then
17789 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17791$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017792if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017793 $as_echo_n "(cached) " >&6
17794else
17795 if test "$cross_compiling" = yes; then :
17796 lt_cv_dlopen_self_static=cross
17797else
17798 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17799 lt_status=$lt_dlunknown
17800 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017801#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017802#include "confdefs.h"
17803
17804#if HAVE_DLFCN_H
17805#include <dlfcn.h>
17806#endif
17807
17808#include <stdio.h>
17809
17810#ifdef RTLD_GLOBAL
17811# define LT_DLGLOBAL RTLD_GLOBAL
17812#else
17813# ifdef DL_GLOBAL
17814# define LT_DLGLOBAL DL_GLOBAL
17815# else
17816# define LT_DLGLOBAL 0
17817# endif
17818#endif
17819
17820/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17821 find out it does not work in some platform. */
17822#ifndef LT_DLLAZY_OR_NOW
17823# ifdef RTLD_LAZY
17824# define LT_DLLAZY_OR_NOW RTLD_LAZY
17825# else
17826# ifdef DL_LAZY
17827# define LT_DLLAZY_OR_NOW DL_LAZY
17828# else
17829# ifdef RTLD_NOW
17830# define LT_DLLAZY_OR_NOW RTLD_NOW
17831# else
17832# ifdef DL_NOW
17833# define LT_DLLAZY_OR_NOW DL_NOW
17834# else
17835# define LT_DLLAZY_OR_NOW 0
17836# endif
17837# endif
17838# endif
17839# endif
17840#endif
17841
cristy0c60a692010-11-04 01:09:47 +000017842/* When -fvisbility=hidden is used, assume the code has been annotated
17843 correspondingly for the symbols needed. */
17844#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017845int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017846#endif
17847
cristyda16f162011-02-19 23:52:17 +000017848int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017849int main ()
17850{
17851 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17852 int status = $lt_dlunknown;
17853
17854 if (self)
17855 {
17856 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017857 else
17858 {
17859 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17860 else puts (dlerror ());
17861 }
cristy73bd4a52010-10-05 11:24:23 +000017862 /* dlclose (self); */
17863 }
17864 else
17865 puts (dlerror ());
17866
17867 return status;
17868}
17869_LT_EOF
17870 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17871 (eval $ac_link) 2>&5
17872 ac_status=$?
17873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17874 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17875 (./conftest; exit; ) >&5 2>/dev/null
17876 lt_status=$?
17877 case x$lt_status in
17878 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17879 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17880 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17881 esac
17882 else :
17883 # compilation failed
17884 lt_cv_dlopen_self_static=no
17885 fi
17886fi
17887rm -fr conftest*
17888
17889
17890fi
17891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17892$as_echo "$lt_cv_dlopen_self_static" >&6; }
17893 fi
17894
17895 CPPFLAGS="$save_CPPFLAGS"
17896 LDFLAGS="$save_LDFLAGS"
17897 LIBS="$save_LIBS"
17898 ;;
17899 esac
17900
17901 case $lt_cv_dlopen_self in
17902 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17903 *) enable_dlopen_self=unknown ;;
17904 esac
17905
17906 case $lt_cv_dlopen_self_static in
17907 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17908 *) enable_dlopen_self_static=unknown ;;
17909 esac
17910fi
17911
17912
17913
17914
17915
17916
17917
17918
17919
17920
17921
17922
17923
17924
17925
17926
17927
17928striplib=
17929old_striplib=
17930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17931$as_echo_n "checking whether stripping libraries is possible... " >&6; }
17932if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17933 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17934 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17936$as_echo "yes" >&6; }
17937else
17938# FIXME - insert some real tests, host_os isn't really good enough
17939 case $host_os in
17940 darwin*)
17941 if test -n "$STRIP" ; then
17942 striplib="$STRIP -x"
17943 old_striplib="$STRIP -S"
17944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17945$as_echo "yes" >&6; }
17946 else
17947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17948$as_echo "no" >&6; }
17949 fi
17950 ;;
17951 *)
17952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17953$as_echo "no" >&6; }
17954 ;;
17955 esac
17956fi
17957
17958
17959
17960
17961
17962
17963
17964
17965
17966
17967
17968
17969 # Report which library types will actually be built
17970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17971$as_echo_n "checking if libtool supports shared libraries... " >&6; }
17972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17973$as_echo "$can_build_shared" >&6; }
17974
17975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17976$as_echo_n "checking whether to build shared libraries... " >&6; }
17977 test "$can_build_shared" = "no" && enable_shared=no
17978
17979 # On AIX, shared libraries and static libraries use the same namespace, and
17980 # are all built from PIC.
17981 case $host_os in
17982 aix3*)
17983 test "$enable_shared" = yes && enable_static=no
17984 if test -n "$RANLIB"; then
17985 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17986 postinstall_cmds='$RANLIB $lib'
17987 fi
17988 ;;
17989
17990 aix[4-9]*)
17991 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17992 test "$enable_shared" = yes && enable_static=no
17993 fi
17994 ;;
17995 esac
17996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17997$as_echo "$enable_shared" >&6; }
17998
17999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18000$as_echo_n "checking whether to build static libraries... " >&6; }
18001 # Make sure either enable_shared or enable_static is yes.
18002 test "$enable_shared" = yes || enable_static=yes
18003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18004$as_echo "$enable_static" >&6; }
18005
18006
18007
18008
18009fi
18010ac_ext=c
18011ac_cpp='$CPP $CPPFLAGS'
18012ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18013ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18014ac_compiler_gnu=$ac_cv_c_compiler_gnu
18015
18016CC="$lt_save_CC"
18017
cristy0c60a692010-11-04 01:09:47 +000018018 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18019 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18020 (test "X$CXX" != "Xg++"))) ; then
18021 ac_ext=cpp
18022ac_cpp='$CXXCPP $CPPFLAGS'
18023ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18024ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18025ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18027$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18028if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000018029 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000018030 $as_echo_n "(cached) " >&6
18031else
18032 # Double quotes because CXXCPP needs to be expanded
18033 for CXXCPP in "$CXX -E" "/lib/cpp"
18034 do
18035 ac_preproc_ok=false
18036for ac_cxx_preproc_warn_flag in '' yes
18037do
18038 # Use a header file that comes with gcc, so configuring glibc
18039 # with a fresh cross-compiler works.
18040 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18041 # <limits.h> exists even on freestanding compilers.
18042 # On the NeXT, cc -E runs the code through the compiler's parser,
18043 # not just through cpp. "Syntax error" is here to catch this case.
18044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18045/* end confdefs.h. */
18046#ifdef __STDC__
18047# include <limits.h>
18048#else
18049# include <assert.h>
18050#endif
18051 Syntax error
18052_ACEOF
18053if ac_fn_cxx_try_cpp "$LINENO"; then :
18054
18055else
18056 # Broken: fails on valid input.
18057continue
18058fi
cristyda16f162011-02-19 23:52:17 +000018059rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018060
18061 # OK, works on sane cases. Now check whether nonexistent headers
18062 # can be detected and how.
18063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18064/* end confdefs.h. */
18065#include <ac_nonexistent.h>
18066_ACEOF
18067if ac_fn_cxx_try_cpp "$LINENO"; then :
18068 # Broken: success on invalid input.
18069continue
18070else
18071 # Passes both tests.
18072ac_preproc_ok=:
18073break
18074fi
cristyda16f162011-02-19 23:52:17 +000018075rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018076
18077done
18078# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000018079rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018080if $ac_preproc_ok; then :
18081 break
18082fi
18083
18084 done
18085 ac_cv_prog_CXXCPP=$CXXCPP
18086
18087fi
18088 CXXCPP=$ac_cv_prog_CXXCPP
18089else
18090 ac_cv_prog_CXXCPP=$CXXCPP
18091fi
18092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18093$as_echo "$CXXCPP" >&6; }
18094ac_preproc_ok=false
18095for ac_cxx_preproc_warn_flag in '' yes
18096do
18097 # Use a header file that comes with gcc, so configuring glibc
18098 # with a fresh cross-compiler works.
18099 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18100 # <limits.h> exists even on freestanding compilers.
18101 # On the NeXT, cc -E runs the code through the compiler's parser,
18102 # not just through cpp. "Syntax error" is here to catch this case.
18103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18104/* end confdefs.h. */
18105#ifdef __STDC__
18106# include <limits.h>
18107#else
18108# include <assert.h>
18109#endif
18110 Syntax error
18111_ACEOF
18112if ac_fn_cxx_try_cpp "$LINENO"; then :
18113
18114else
18115 # Broken: fails on valid input.
18116continue
18117fi
cristyda16f162011-02-19 23:52:17 +000018118rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018119
18120 # OK, works on sane cases. Now check whether nonexistent headers
18121 # can be detected and how.
18122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18123/* end confdefs.h. */
18124#include <ac_nonexistent.h>
18125_ACEOF
18126if ac_fn_cxx_try_cpp "$LINENO"; then :
18127 # Broken: success on invalid input.
18128continue
18129else
18130 # Passes both tests.
18131ac_preproc_ok=:
18132break
18133fi
cristyda16f162011-02-19 23:52:17 +000018134rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018135
18136done
18137# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000018138rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018139if $ac_preproc_ok; then :
18140
18141else
18142 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18143$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18144as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
18145See \`config.log' for more details" "$LINENO" 5; }
18146fi
18147
18148ac_ext=c
18149ac_cpp='$CPP $CPPFLAGS'
18150ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18151ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18152ac_compiler_gnu=$ac_cv_c_compiler_gnu
18153
18154else
18155 _lt_caught_CXX_error=yes
18156fi
cristy73bd4a52010-10-05 11:24:23 +000018157
18158ac_ext=cpp
18159ac_cpp='$CXXCPP $CPPFLAGS'
18160ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18161ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18162ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18163
18164archive_cmds_need_lc_CXX=no
18165allow_undefined_flag_CXX=
18166always_export_symbols_CXX=no
18167archive_expsym_cmds_CXX=
18168compiler_needs_object_CXX=no
18169export_dynamic_flag_spec_CXX=
18170hardcode_direct_CXX=no
18171hardcode_direct_absolute_CXX=no
18172hardcode_libdir_flag_spec_CXX=
cristy73bd4a52010-10-05 11:24:23 +000018173hardcode_libdir_separator_CXX=
18174hardcode_minus_L_CXX=no
18175hardcode_shlibpath_var_CXX=unsupported
18176hardcode_automatic_CXX=no
18177inherit_rpath_CXX=no
18178module_cmds_CXX=
18179module_expsym_cmds_CXX=
18180link_all_deplibs_CXX=unknown
18181old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000018182reload_flag_CXX=$reload_flag
18183reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000018184no_undefined_flag_CXX=
18185whole_archive_flag_spec_CXX=
18186enable_shared_with_static_runtimes_CXX=no
18187
18188# Source file extension for C++ test sources.
18189ac_ext=cpp
18190
18191# Object file extension for compiled C++ test sources.
18192objext=o
18193objext_CXX=$objext
18194
18195# No sense in running all these tests if we already determined that
18196# the CXX compiler isn't working. Some variables (like enable_shared)
18197# are currently assumed to apply to all compilers on this platform,
18198# and will be corrupted by setting them based on a non-working compiler.
18199if test "$_lt_caught_CXX_error" != yes; then
18200 # Code to be used in simple compile tests
18201 lt_simple_compile_test_code="int some_variable = 0;"
18202
18203 # Code to be used in simple link tests
18204 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18205
18206 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18207
18208
18209
18210
18211
18212
18213# If no C compiler was specified, use CC.
18214LTCC=${LTCC-"$CC"}
18215
18216# If no C compiler flags were specified, use CFLAGS.
18217LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18218
18219# Allow CC to be a program name with arguments.
18220compiler=$CC
18221
18222
18223 # save warnings/boilerplate of simple test code
18224 ac_outfile=conftest.$ac_objext
18225echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18226eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18227_lt_compiler_boilerplate=`cat conftest.err`
18228$RM conftest*
18229
18230 ac_outfile=conftest.$ac_objext
18231echo "$lt_simple_link_test_code" >conftest.$ac_ext
18232eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18233_lt_linker_boilerplate=`cat conftest.err`
18234$RM -r conftest*
18235
18236
18237 # Allow CC to be a program name with arguments.
18238 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000018239 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018240 lt_save_LD=$LD
18241 lt_save_GCC=$GCC
18242 GCC=$GXX
18243 lt_save_with_gnu_ld=$with_gnu_ld
18244 lt_save_path_LD=$lt_cv_path_LD
18245 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18246 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18247 else
18248 $as_unset lt_cv_prog_gnu_ld
18249 fi
18250 if test -n "${lt_cv_path_LDCXX+set}"; then
18251 lt_cv_path_LD=$lt_cv_path_LDCXX
18252 else
18253 $as_unset lt_cv_path_LD
18254 fi
18255 test -z "${LDCXX+set}" || LD=$LDCXX
18256 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000018257 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018258 compiler=$CC
18259 compiler_CXX=$CC
18260 for cc_temp in $compiler""; do
18261 case $cc_temp in
18262 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18263 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18264 \-*) ;;
18265 *) break;;
18266 esac
18267done
cristy0c60a692010-11-04 01:09:47 +000018268cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000018269
18270
18271 if test -n "$compiler"; then
18272 # We don't want -fno-exception when compiling C++ code, so set the
18273 # no_builtin_flag separately
18274 if test "$GXX" = yes; then
18275 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18276 else
18277 lt_prog_compiler_no_builtin_flag_CXX=
18278 fi
18279
18280 if test "$GXX" = yes; then
18281 # Set up default GNU C++ configuration
18282
18283
18284
18285# Check whether --with-gnu-ld was given.
18286if test "${with_gnu_ld+set}" = set; then :
18287 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18288else
18289 with_gnu_ld=no
18290fi
18291
18292ac_prog=ld
18293if test "$GCC" = yes; then
18294 # Check if gcc -print-prog-name=ld gives a path.
18295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18296$as_echo_n "checking for ld used by $CC... " >&6; }
18297 case $host in
18298 *-*-mingw*)
18299 # gcc leaves a trailing carriage return which upsets mingw
18300 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18301 *)
18302 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18303 esac
18304 case $ac_prog in
18305 # Accept absolute paths.
18306 [\\/]* | ?:[\\/]*)
18307 re_direlt='/[^/][^/]*/\.\./'
18308 # Canonicalize the pathname of ld
18309 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18310 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18311 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18312 done
18313 test -z "$LD" && LD="$ac_prog"
18314 ;;
18315 "")
18316 # If it fails, then pretend we aren't using GCC.
18317 ac_prog=ld
18318 ;;
18319 *)
18320 # If it is relative, then search for the first ld in PATH.
18321 with_gnu_ld=unknown
18322 ;;
18323 esac
18324elif test "$with_gnu_ld" = yes; then
18325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18326$as_echo_n "checking for GNU ld... " >&6; }
18327else
18328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18329$as_echo_n "checking for non-GNU ld... " >&6; }
18330fi
cristyda16f162011-02-19 23:52:17 +000018331if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018332 $as_echo_n "(cached) " >&6
18333else
18334 if test -z "$LD"; then
18335 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18336 for ac_dir in $PATH; do
18337 IFS="$lt_save_ifs"
18338 test -z "$ac_dir" && ac_dir=.
18339 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18340 lt_cv_path_LD="$ac_dir/$ac_prog"
18341 # Check to see if the program is GNU ld. I'd rather use --version,
18342 # but apparently some variants of GNU ld only accept -v.
18343 # Break only if it was the GNU/non-GNU ld that we prefer.
18344 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18345 *GNU* | *'with BFD'*)
18346 test "$with_gnu_ld" != no && break
18347 ;;
18348 *)
18349 test "$with_gnu_ld" != yes && break
18350 ;;
18351 esac
18352 fi
18353 done
18354 IFS="$lt_save_ifs"
18355else
18356 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18357fi
18358fi
18359
18360LD="$lt_cv_path_LD"
18361if test -n "$LD"; then
18362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18363$as_echo "$LD" >&6; }
18364else
18365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18366$as_echo "no" >&6; }
18367fi
cristy98dddb52010-11-04 00:30:15 +000018368test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000018369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18370$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018371if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018372 $as_echo_n "(cached) " >&6
18373else
18374 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18375case `$LD -v 2>&1 </dev/null` in
18376*GNU* | *'with BFD'*)
18377 lt_cv_prog_gnu_ld=yes
18378 ;;
18379*)
18380 lt_cv_prog_gnu_ld=no
18381 ;;
18382esac
18383fi
18384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18385$as_echo "$lt_cv_prog_gnu_ld" >&6; }
18386with_gnu_ld=$lt_cv_prog_gnu_ld
18387
18388
18389
18390
18391
18392
18393
18394 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18395 # archiving commands below assume that GNU ld is being used.
18396 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000018397 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18398 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 +000018399
18400 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18401 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18402
18403 # If archive_cmds runs LD, not CC, wlarc should be empty
18404 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18405 # investigate it a little bit more. (MM)
18406 wlarc='${wl}'
18407
18408 # ancient GNU ld didn't support --whole-archive et. al.
18409 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18410 $GREP 'no-whole-archive' > /dev/null; then
18411 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18412 else
18413 whole_archive_flag_spec_CXX=
18414 fi
18415 else
18416 with_gnu_ld=no
18417 wlarc=
18418
18419 # A generic and very simple default shared library creation
18420 # command for GNU C++ for the case where it uses the native
18421 # linker, instead of GNU ld. If possible, this setting should
18422 # overridden to take advantage of the native linker features on
18423 # the platform it is being used on.
18424 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18425 fi
18426
18427 # Commands to make compiler produce verbose output that lists
18428 # what "hidden" libraries, object files and flags are used when
18429 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018430 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018431
18432 else
18433 GXX=no
18434 with_gnu_ld=no
18435 wlarc=
18436 fi
18437
18438 # PORTME: fill in a description of your system's C++ link characteristics
18439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18440$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18441 ld_shlibs_CXX=yes
18442 case $host_os in
18443 aix3*)
18444 # FIXME: insert proper C++ library support
18445 ld_shlibs_CXX=no
18446 ;;
18447 aix[4-9]*)
18448 if test "$host_cpu" = ia64; then
18449 # On IA64, the linker does run time linking by default, so we don't
18450 # have to do anything special.
18451 aix_use_runtimelinking=no
18452 exp_sym_flag='-Bexport'
18453 no_entry_flag=""
18454 else
18455 aix_use_runtimelinking=no
18456
18457 # Test if we are trying to use run time linking or normal
18458 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18459 # need to do runtime linking.
18460 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18461 for ld_flag in $LDFLAGS; do
18462 case $ld_flag in
18463 *-brtl*)
18464 aix_use_runtimelinking=yes
18465 break
18466 ;;
18467 esac
18468 done
18469 ;;
18470 esac
18471
18472 exp_sym_flag='-bexport'
18473 no_entry_flag='-bnoentry'
18474 fi
18475
18476 # When large executables or shared objects are built, AIX ld can
18477 # have problems creating the table of contents. If linking a library
18478 # or program results in "error TOC overflow" add -mminimal-toc to
18479 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18480 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18481
18482 archive_cmds_CXX=''
18483 hardcode_direct_CXX=yes
18484 hardcode_direct_absolute_CXX=yes
18485 hardcode_libdir_separator_CXX=':'
18486 link_all_deplibs_CXX=yes
18487 file_list_spec_CXX='${wl}-f,'
18488
18489 if test "$GXX" = yes; then
18490 case $host_os in aix4.[012]|aix4.[012].*)
18491 # We only want to do this on AIX 4.2 and lower, the check
18492 # below for broken collect2 doesn't work under 4.3+
18493 collect2name=`${CC} -print-prog-name=collect2`
18494 if test -f "$collect2name" &&
18495 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18496 then
18497 # We have reworked collect2
18498 :
18499 else
18500 # We have old collect2
18501 hardcode_direct_CXX=unsupported
18502 # It fails to find uninstalled libraries when the uninstalled
18503 # path is not listed in the libpath. Setting hardcode_minus_L
18504 # to unsupported forces relinking
18505 hardcode_minus_L_CXX=yes
18506 hardcode_libdir_flag_spec_CXX='-L$libdir'
18507 hardcode_libdir_separator_CXX=
18508 fi
18509 esac
18510 shared_flag='-shared'
18511 if test "$aix_use_runtimelinking" = yes; then
18512 shared_flag="$shared_flag "'${wl}-G'
18513 fi
18514 else
18515 # not using gcc
18516 if test "$host_cpu" = ia64; then
18517 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18518 # chokes on -Wl,-G. The following line is correct:
18519 shared_flag='-G'
18520 else
18521 if test "$aix_use_runtimelinking" = yes; then
18522 shared_flag='${wl}-G'
18523 else
18524 shared_flag='${wl}-bM:SRE'
18525 fi
18526 fi
18527 fi
18528
18529 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18530 # It seems that -bexpall does not export symbols beginning with
18531 # underscore (_), so it is better to generate a list of symbols to
18532 # export.
18533 always_export_symbols_CXX=yes
18534 if test "$aix_use_runtimelinking" = yes; then
18535 # Warning - without using the other runtime loading flags (-brtl),
18536 # -berok will link without error, but may produce a broken library.
18537 allow_undefined_flag_CXX='-berok'
18538 # Determine the default libpath from the value encoded in an empty
18539 # executable.
cristyda16f162011-02-19 23:52:17 +000018540 if test "${lt_cv_aix_libpath+set}" = set; then
18541 aix_libpath=$lt_cv_aix_libpath
18542else
18543 if ${lt_cv_aix_libpath__CXX+:} false; then :
18544 $as_echo_n "(cached) " >&6
18545else
18546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018547/* end confdefs.h. */
18548
18549int
18550main ()
18551{
18552
18553 ;
18554 return 0;
18555}
18556_ACEOF
18557if ac_fn_cxx_try_link "$LINENO"; then :
18558
cristyda16f162011-02-19 23:52:17 +000018559 lt_aix_libpath_sed='
18560 /Import File Strings/,/^$/ {
18561 /^0/ {
18562 s/^0 *\([^ ]*\) *$/\1/
18563 p
18564 }
18565 }'
18566 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18567 # Check for a 64-bit object if we didn't find anything.
18568 if test -z "$lt_cv_aix_libpath__CXX"; then
18569 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18570 fi
cristy73bd4a52010-10-05 11:24:23 +000018571fi
18572rm -f core conftest.err conftest.$ac_objext \
18573 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018574 if test -z "$lt_cv_aix_libpath__CXX"; then
18575 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18576 fi
18577
18578fi
18579
18580 aix_libpath=$lt_cv_aix_libpath__CXX
18581fi
cristy73bd4a52010-10-05 11:24:23 +000018582
18583 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18584
cristy0c60a692010-11-04 01:09:47 +000018585 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 +000018586 else
18587 if test "$host_cpu" = ia64; then
18588 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18589 allow_undefined_flag_CXX="-z nodefs"
18590 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"
18591 else
18592 # Determine the default libpath from the value encoded in an
18593 # empty executable.
cristyda16f162011-02-19 23:52:17 +000018594 if test "${lt_cv_aix_libpath+set}" = set; then
18595 aix_libpath=$lt_cv_aix_libpath
18596else
18597 if ${lt_cv_aix_libpath__CXX+:} false; then :
18598 $as_echo_n "(cached) " >&6
18599else
18600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018601/* end confdefs.h. */
18602
18603int
18604main ()
18605{
18606
18607 ;
18608 return 0;
18609}
18610_ACEOF
18611if ac_fn_cxx_try_link "$LINENO"; then :
18612
cristyda16f162011-02-19 23:52:17 +000018613 lt_aix_libpath_sed='
18614 /Import File Strings/,/^$/ {
18615 /^0/ {
18616 s/^0 *\([^ ]*\) *$/\1/
18617 p
18618 }
18619 }'
18620 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18621 # Check for a 64-bit object if we didn't find anything.
18622 if test -z "$lt_cv_aix_libpath__CXX"; then
18623 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18624 fi
cristy73bd4a52010-10-05 11:24:23 +000018625fi
18626rm -f core conftest.err conftest.$ac_objext \
18627 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018628 if test -z "$lt_cv_aix_libpath__CXX"; then
18629 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18630 fi
18631
18632fi
18633
18634 aix_libpath=$lt_cv_aix_libpath__CXX
18635fi
cristy73bd4a52010-10-05 11:24:23 +000018636
18637 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18638 # Warning - without using the other run time loading flags,
18639 # -berok will link without error, but may produce a broken library.
18640 no_undefined_flag_CXX=' ${wl}-bernotok'
18641 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000018642 if test "$with_gnu_ld" = yes; then
18643 # We only use this code for GNU lds that support --whole-archive.
18644 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18645 else
18646 # Exported symbols can be pulled into shared objects from archives
18647 whole_archive_flag_spec_CXX='$convenience'
18648 fi
cristy73bd4a52010-10-05 11:24:23 +000018649 archive_cmds_need_lc_CXX=yes
18650 # This is similar to how AIX traditionally builds its shared
18651 # libraries.
18652 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'
18653 fi
18654 fi
18655 ;;
18656
18657 beos*)
18658 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18659 allow_undefined_flag_CXX=unsupported
18660 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18661 # support --undefined. This deserves some investigation. FIXME
18662 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18663 else
18664 ld_shlibs_CXX=no
18665 fi
18666 ;;
18667
18668 chorus*)
18669 case $cc_basename in
18670 *)
18671 # FIXME: insert proper C++ library support
18672 ld_shlibs_CXX=no
18673 ;;
18674 esac
18675 ;;
18676
18677 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000018678 case $GXX,$cc_basename in
18679 ,cl* | no,cl*)
18680 # Native MSVC
18681 # hardcode_libdir_flag_spec is actually meaningless, as there is
18682 # no search path for DLLs.
18683 hardcode_libdir_flag_spec_CXX=' '
18684 allow_undefined_flag_CXX=unsupported
18685 always_export_symbols_CXX=yes
18686 file_list_spec_CXX='@'
18687 # Tell ltmain to make .lib files, not .a files.
18688 libext=lib
18689 # Tell ltmain to make .dll files, not .so files.
18690 shrext_cmds=".dll"
18691 # FIXME: Setting linknames here is a bad hack.
18692 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
18693 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18694 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
18695 else
18696 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
18697 fi~
18698 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
18699 linknames='
18700 # The linker will not automatically build a static lib if we build a DLL.
18701 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
18702 enable_shared_with_static_runtimes_CXX=yes
18703 # Don't use ranlib
18704 old_postinstall_cmds_CXX='chmod 644 $oldlib'
18705 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
18706 lt_tool_outputfile="@TOOL_OUTPUT@"~
18707 case $lt_outputfile in
18708 *.exe|*.EXE) ;;
18709 *)
18710 lt_outputfile="$lt_outputfile.exe"
18711 lt_tool_outputfile="$lt_tool_outputfile.exe"
18712 ;;
18713 esac~
18714 func_to_tool_file "$lt_outputfile"~
18715 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
18716 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
18717 $RM "$lt_outputfile.manifest";
18718 fi'
18719 ;;
18720 *)
18721 # g++
18722 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18723 # as there is no search path for DLLs.
18724 hardcode_libdir_flag_spec_CXX='-L$libdir'
18725 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18726 allow_undefined_flag_CXX=unsupported
18727 always_export_symbols_CXX=no
18728 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000018729
cristyda16f162011-02-19 23:52:17 +000018730 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18731 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'
18732 # If the export-symbols file already is a .def file (1st line
18733 # is EXPORTS), use it as is; otherwise, prepend...
18734 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18735 cp $export_symbols $output_objdir/$soname.def;
18736 else
18737 echo EXPORTS > $output_objdir/$soname.def;
18738 cat $export_symbols >> $output_objdir/$soname.def;
18739 fi~
18740 $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'
18741 else
18742 ld_shlibs_CXX=no
18743 fi
18744 ;;
18745 esac
18746 ;;
cristy73bd4a52010-10-05 11:24:23 +000018747 darwin* | rhapsody*)
18748
18749
18750 archive_cmds_need_lc_CXX=no
18751 hardcode_direct_CXX=no
18752 hardcode_automatic_CXX=yes
18753 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000018754 if test "$lt_cv_ld_force_load" = "yes"; then
18755 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 +000018756
cristy0c60a692010-11-04 01:09:47 +000018757 else
18758 whole_archive_flag_spec_CXX=''
18759 fi
cristy73bd4a52010-10-05 11:24:23 +000018760 link_all_deplibs_CXX=yes
18761 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18762 case $cc_basename in
18763 ifort*) _lt_dar_can_shared=yes ;;
18764 *) _lt_dar_can_shared=$GCC ;;
18765 esac
18766 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000018767 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018768 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}"
18769 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18770 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}"
18771 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}"
18772 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18773 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}"
18774 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}"
18775 fi
18776
18777 else
18778 ld_shlibs_CXX=no
18779 fi
18780
18781 ;;
18782
18783 dgux*)
18784 case $cc_basename in
18785 ec++*)
18786 # FIXME: insert proper C++ library support
18787 ld_shlibs_CXX=no
18788 ;;
18789 ghcx*)
18790 # Green Hills C++ Compiler
18791 # FIXME: insert proper C++ library support
18792 ld_shlibs_CXX=no
18793 ;;
18794 *)
18795 # FIXME: insert proper C++ library support
18796 ld_shlibs_CXX=no
18797 ;;
18798 esac
18799 ;;
18800
cristy99bd5232011-12-07 14:38:20 +000018801 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000018802 # C++ shared libraries reported to be fairly broken before
18803 # switch to ELF
18804 ld_shlibs_CXX=no
18805 ;;
18806
18807 freebsd-elf*)
18808 archive_cmds_need_lc_CXX=no
18809 ;;
18810
18811 freebsd* | dragonfly*)
18812 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18813 # conventions
18814 ld_shlibs_CXX=yes
18815 ;;
18816
18817 gnu*)
18818 ;;
18819
cristy0c60a692010-11-04 01:09:47 +000018820 haiku*)
18821 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18822 link_all_deplibs_CXX=yes
18823 ;;
18824
cristy73bd4a52010-10-05 11:24:23 +000018825 hpux9*)
18826 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18827 hardcode_libdir_separator_CXX=:
18828 export_dynamic_flag_spec_CXX='${wl}-E'
18829 hardcode_direct_CXX=yes
18830 hardcode_minus_L_CXX=yes # Not in the search PATH,
18831 # but as the default
18832 # location of the library.
18833
18834 case $cc_basename in
18835 CC*)
18836 # FIXME: insert proper C++ library support
18837 ld_shlibs_CXX=no
18838 ;;
18839 aCC*)
18840 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'
18841 # Commands to make compiler produce verbose output that lists
18842 # what "hidden" libraries, object files and flags are used when
18843 # linking a shared library.
18844 #
18845 # There doesn't appear to be a way to prevent this compiler from
18846 # explicitly linking system object files so we need to strip them
18847 # from the output so that they don't get included in the library
18848 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018849 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 +000018850 ;;
18851 *)
18852 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000018853 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 +000018854 else
18855 # FIXME: insert proper C++ library support
18856 ld_shlibs_CXX=no
18857 fi
18858 ;;
18859 esac
18860 ;;
18861
18862 hpux10*|hpux11*)
18863 if test $with_gnu_ld = no; then
18864 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18865 hardcode_libdir_separator_CXX=:
18866
18867 case $host_cpu in
18868 hppa*64*|ia64*)
18869 ;;
18870 *)
18871 export_dynamic_flag_spec_CXX='${wl}-E'
18872 ;;
18873 esac
18874 fi
18875 case $host_cpu in
18876 hppa*64*|ia64*)
18877 hardcode_direct_CXX=no
18878 hardcode_shlibpath_var_CXX=no
18879 ;;
18880 *)
18881 hardcode_direct_CXX=yes
18882 hardcode_direct_absolute_CXX=yes
18883 hardcode_minus_L_CXX=yes # Not in the search PATH,
18884 # but as the default
18885 # location of the library.
18886 ;;
18887 esac
18888
18889 case $cc_basename in
18890 CC*)
18891 # FIXME: insert proper C++ library support
18892 ld_shlibs_CXX=no
18893 ;;
18894 aCC*)
18895 case $host_cpu in
18896 hppa*64*)
18897 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18898 ;;
18899 ia64*)
18900 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18901 ;;
18902 *)
18903 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18904 ;;
18905 esac
18906 # Commands to make compiler produce verbose output that lists
18907 # what "hidden" libraries, object files and flags are used when
18908 # linking a shared library.
18909 #
18910 # There doesn't appear to be a way to prevent this compiler from
18911 # explicitly linking system object files so we need to strip them
18912 # from the output so that they don't get included in the library
18913 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018914 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 +000018915 ;;
18916 *)
18917 if test "$GXX" = yes; then
18918 if test $with_gnu_ld = no; then
18919 case $host_cpu in
18920 hppa*64*)
18921 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18922 ;;
18923 ia64*)
cristyda16f162011-02-19 23:52:17 +000018924 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 +000018925 ;;
18926 *)
cristyda16f162011-02-19 23:52:17 +000018927 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 +000018928 ;;
18929 esac
18930 fi
18931 else
18932 # FIXME: insert proper C++ library support
18933 ld_shlibs_CXX=no
18934 fi
18935 ;;
18936 esac
18937 ;;
18938
18939 interix[3-9]*)
18940 hardcode_direct_CXX=no
18941 hardcode_shlibpath_var_CXX=no
18942 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18943 export_dynamic_flag_spec_CXX='${wl}-E'
18944 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18945 # Instead, shared libraries are loaded at an image base (0x10000000 by
18946 # default) and relocated if they conflict, which is a slow very memory
18947 # consuming and fragmenting process. To avoid this, we pick a random,
18948 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18949 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18950 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'
18951 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'
18952 ;;
18953 irix5* | irix6*)
18954 case $cc_basename in
18955 CC*)
18956 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000018957 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 +000018958
18959 # Archives containing C++ object files must be created using
18960 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18961 # necessary to make sure instantiated templates are included
18962 # in the archive.
18963 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18964 ;;
18965 *)
18966 if test "$GXX" = yes; then
18967 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000018968 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 +000018969 else
cristyda16f162011-02-19 23:52:17 +000018970 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 +000018971 fi
18972 fi
18973 link_all_deplibs_CXX=yes
18974 ;;
18975 esac
18976 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18977 hardcode_libdir_separator_CXX=:
18978 inherit_rpath_CXX=yes
18979 ;;
18980
cristy0c60a692010-11-04 01:09:47 +000018981 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000018982 case $cc_basename in
18983 KCC*)
18984 # Kuck and Associates, Inc. (KAI) C++ Compiler
18985
18986 # KCC will only create a shared library if the output file
18987 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18988 # to its proper name (with version) after linking.
18989 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'
18990 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'
18991 # Commands to make compiler produce verbose output that lists
18992 # what "hidden" libraries, object files and flags are used when
18993 # linking a shared library.
18994 #
18995 # There doesn't appear to be a way to prevent this compiler from
18996 # explicitly linking system object files so we need to strip them
18997 # from the output so that they don't get included in the library
18998 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018999 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 +000019000
19001 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19002 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19003
19004 # Archives containing C++ object files must be created using
19005 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19006 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19007 ;;
19008 icpc* | ecpc* )
19009 # Intel C++
19010 with_gnu_ld=yes
19011 # version 8.0 and above of icpc choke on multiply defined symbols
19012 # if we add $predep_objects and $postdep_objects, however 7.1 and
19013 # earlier do not add the objects themselves.
19014 case `$CC -V 2>&1` in
19015 *"Version 7."*)
19016 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19017 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'
19018 ;;
19019 *) # Version 8.0 or newer
19020 tmp_idyn=
19021 case $host_cpu in
19022 ia64*) tmp_idyn=' -i_dynamic';;
19023 esac
19024 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19025 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'
19026 ;;
19027 esac
19028 archive_cmds_need_lc_CXX=no
19029 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19030 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19031 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19032 ;;
19033 pgCC* | pgcpp*)
19034 # Portland Group C++ compiler
19035 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000019036 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000019037 prelink_cmds_CXX='tpldir=Template.dir~
19038 rm -rf $tpldir~
19039 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000019040 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000019041 old_archive_cmds_CXX='tpldir=Template.dir~
19042 rm -rf $tpldir~
19043 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000019044 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000019045 $RANLIB $oldlib'
19046 archive_cmds_CXX='tpldir=Template.dir~
19047 rm -rf $tpldir~
19048 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000019049 $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 +000019050 archive_expsym_cmds_CXX='tpldir=Template.dir~
19051 rm -rf $tpldir~
19052 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000019053 $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 +000019054 ;;
cristy0c60a692010-11-04 01:09:47 +000019055 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000019056 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19057 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'
19058 ;;
19059 esac
19060
19061 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19062 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000019063 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 +000019064 ;;
19065 cxx*)
19066 # Compaq C++
19067 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19068 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'
19069
19070 runpath_var=LD_RUN_PATH
19071 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19072 hardcode_libdir_separator_CXX=:
19073
19074 # Commands to make compiler produce verbose output that lists
19075 # what "hidden" libraries, object files and flags are used when
19076 # linking a shared library.
19077 #
19078 # There doesn't appear to be a way to prevent this compiler from
19079 # explicitly linking system object files so we need to strip them
19080 # from the output so that they don't get included in the library
19081 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000019082 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 +000019083 ;;
cristy0c60a692010-11-04 01:09:47 +000019084 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000019085 # IBM XL 8.0 on PPC, with GNU ld
19086 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19087 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19088 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19089 if test "x$supports_anon_versioning" = xyes; then
19090 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19091 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19092 echo "local: *; };" >> $output_objdir/$libname.ver~
19093 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19094 fi
19095 ;;
19096 *)
19097 case `$CC -V 2>&1 | sed 5q` in
19098 *Sun\ C*)
19099 # Sun C++ 5.9
19100 no_undefined_flag_CXX=' -zdefs'
19101 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19102 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'
19103 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000019104 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 +000019105 compiler_needs_object_CXX=yes
19106
19107 # Not sure whether something based on
19108 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19109 # would be better.
cristy0c60a692010-11-04 01:09:47 +000019110 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000019111
19112 # Archives containing C++ object files must be created using
19113 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19114 # necessary to make sure instantiated templates are included
19115 # in the archive.
19116 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19117 ;;
19118 esac
19119 ;;
19120 esac
19121 ;;
19122
19123 lynxos*)
19124 # FIXME: insert proper C++ library support
19125 ld_shlibs_CXX=no
19126 ;;
19127
19128 m88k*)
19129 # FIXME: insert proper C++ library support
19130 ld_shlibs_CXX=no
19131 ;;
19132
19133 mvs*)
19134 case $cc_basename in
19135 cxx*)
19136 # FIXME: insert proper C++ library support
19137 ld_shlibs_CXX=no
19138 ;;
19139 *)
19140 # FIXME: insert proper C++ library support
19141 ld_shlibs_CXX=no
19142 ;;
19143 esac
19144 ;;
19145
19146 netbsd*)
19147 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19148 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19149 wlarc=
19150 hardcode_libdir_flag_spec_CXX='-R$libdir'
19151 hardcode_direct_CXX=yes
19152 hardcode_shlibpath_var_CXX=no
19153 fi
19154 # Workaround some broken pre-1.5 toolchains
19155 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19156 ;;
19157
19158 *nto* | *qnx*)
19159 ld_shlibs_CXX=yes
19160 ;;
19161
19162 openbsd2*)
19163 # C++ shared libraries are fairly broken
19164 ld_shlibs_CXX=no
19165 ;;
19166
19167 openbsd*)
19168 if test -f /usr/libexec/ld.so; then
19169 hardcode_direct_CXX=yes
19170 hardcode_shlibpath_var_CXX=no
19171 hardcode_direct_absolute_CXX=yes
19172 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19173 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19174 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19175 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19176 export_dynamic_flag_spec_CXX='${wl}-E'
19177 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19178 fi
cristy0c60a692010-11-04 01:09:47 +000019179 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000019180 else
19181 ld_shlibs_CXX=no
19182 fi
19183 ;;
19184
19185 osf3* | osf4* | osf5*)
19186 case $cc_basename in
19187 KCC*)
19188 # Kuck and Associates, Inc. (KAI) C++ Compiler
19189
19190 # KCC will only create a shared library if the output file
19191 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19192 # to its proper name (with version) after linking.
19193 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'
19194
19195 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19196 hardcode_libdir_separator_CXX=:
19197
19198 # Archives containing C++ object files must be created using
19199 # the KAI C++ compiler.
19200 case $host in
19201 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19202 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19203 esac
19204 ;;
19205 RCC*)
19206 # Rational C++ 2.4.1
19207 # FIXME: insert proper C++ library support
19208 ld_shlibs_CXX=no
19209 ;;
19210 cxx*)
19211 case $host in
19212 osf3*)
19213 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000019214 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 +000019215 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19216 ;;
19217 *)
19218 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000019219 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 +000019220 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19221 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000019222 $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 +000019223 $RM $lib.exp'
19224 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19225 ;;
19226 esac
19227
19228 hardcode_libdir_separator_CXX=:
19229
19230 # Commands to make compiler produce verbose output that lists
19231 # what "hidden" libraries, object files and flags are used when
19232 # linking a shared library.
19233 #
19234 # There doesn't appear to be a way to prevent this compiler from
19235 # explicitly linking system object files so we need to strip them
19236 # from the output so that they don't get included in the library
19237 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000019238 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 +000019239 ;;
19240 *)
19241 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19242 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19243 case $host in
19244 osf3*)
cristy0c60a692010-11-04 01:09:47 +000019245 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 +000019246 ;;
19247 *)
cristyda16f162011-02-19 23:52:17 +000019248 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 +000019249 ;;
19250 esac
19251
19252 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19253 hardcode_libdir_separator_CXX=:
19254
19255 # Commands to make compiler produce verbose output that lists
19256 # what "hidden" libraries, object files and flags are used when
19257 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019258 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019259
19260 else
19261 # FIXME: insert proper C++ library support
19262 ld_shlibs_CXX=no
19263 fi
19264 ;;
19265 esac
19266 ;;
19267
19268 psos*)
19269 # FIXME: insert proper C++ library support
19270 ld_shlibs_CXX=no
19271 ;;
19272
19273 sunos4*)
19274 case $cc_basename in
19275 CC*)
19276 # Sun C++ 4.x
19277 # FIXME: insert proper C++ library support
19278 ld_shlibs_CXX=no
19279 ;;
19280 lcc*)
19281 # Lucid
19282 # FIXME: insert proper C++ library support
19283 ld_shlibs_CXX=no
19284 ;;
19285 *)
19286 # FIXME: insert proper C++ library support
19287 ld_shlibs_CXX=no
19288 ;;
19289 esac
19290 ;;
19291
19292 solaris*)
19293 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019294 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019295 # Sun C++ 4.2, 5.x and Centerline C++
19296 archive_cmds_need_lc_CXX=yes
19297 no_undefined_flag_CXX=' -zdefs'
19298 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19299 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19300 $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'
19301
19302 hardcode_libdir_flag_spec_CXX='-R$libdir'
19303 hardcode_shlibpath_var_CXX=no
19304 case $host_os in
19305 solaris2.[0-5] | solaris2.[0-5].*) ;;
19306 *)
19307 # The compiler driver will combine and reorder linker options,
19308 # but understands `-z linker_flag'.
19309 # Supported since Solaris 2.6 (maybe 2.5.1?)
19310 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19311 ;;
19312 esac
19313 link_all_deplibs_CXX=yes
19314
cristy0c60a692010-11-04 01:09:47 +000019315 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000019316
19317 # Archives containing C++ object files must be created using
19318 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19319 # necessary to make sure instantiated templates are included
19320 # in the archive.
19321 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19322 ;;
19323 gcx*)
19324 # Green Hills C++ Compiler
19325 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19326
19327 # The C++ compiler must be used to create the archive.
19328 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19329 ;;
19330 *)
19331 # GNU C++ compiler with Solaris linker
19332 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19333 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19334 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000019335 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 +000019336 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 +000019337 $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 +000019338
19339 # Commands to make compiler produce verbose output that lists
19340 # what "hidden" libraries, object files and flags are used when
19341 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019342 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019343 else
19344 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19345 # platform.
19346 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19347 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19348 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19349
19350 # Commands to make compiler produce verbose output that lists
19351 # what "hidden" libraries, object files and flags are used when
19352 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019353 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019354 fi
19355
19356 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19357 case $host_os in
19358 solaris2.[0-5] | solaris2.[0-5].*) ;;
19359 *)
19360 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19361 ;;
19362 esac
19363 fi
19364 ;;
19365 esac
19366 ;;
19367
19368 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19369 no_undefined_flag_CXX='${wl}-z,text'
19370 archive_cmds_need_lc_CXX=no
19371 hardcode_shlibpath_var_CXX=no
19372 runpath_var='LD_RUN_PATH'
19373
19374 case $cc_basename in
19375 CC*)
19376 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19377 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19378 ;;
19379 *)
19380 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19381 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19382 ;;
19383 esac
19384 ;;
19385
19386 sysv5* | sco3.2v5* | sco5v6*)
19387 # Note: We can NOT use -z defs as we might desire, because we do not
19388 # link with -lc, and that would cause any symbols used from libc to
19389 # always be unresolved, which means just about no library would
19390 # ever link correctly. If we're not using GNU ld we use -z text
19391 # though, which does catch some bad symbols but isn't as heavy-handed
19392 # as -z defs.
19393 no_undefined_flag_CXX='${wl}-z,text'
19394 allow_undefined_flag_CXX='${wl}-z,nodefs'
19395 archive_cmds_need_lc_CXX=no
19396 hardcode_shlibpath_var_CXX=no
19397 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19398 hardcode_libdir_separator_CXX=':'
19399 link_all_deplibs_CXX=yes
19400 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19401 runpath_var='LD_RUN_PATH'
19402
19403 case $cc_basename in
19404 CC*)
19405 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19406 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 +000019407 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19408 '"$old_archive_cmds_CXX"
19409 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19410 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000019411 ;;
19412 *)
19413 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19414 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19415 ;;
19416 esac
19417 ;;
19418
19419 tandem*)
19420 case $cc_basename in
19421 NCC*)
19422 # NonStop-UX NCC 3.20
19423 # FIXME: insert proper C++ library support
19424 ld_shlibs_CXX=no
19425 ;;
19426 *)
19427 # FIXME: insert proper C++ library support
19428 ld_shlibs_CXX=no
19429 ;;
19430 esac
19431 ;;
19432
19433 vxworks*)
19434 # FIXME: insert proper C++ library support
19435 ld_shlibs_CXX=no
19436 ;;
19437
19438 *)
19439 # FIXME: insert proper C++ library support
19440 ld_shlibs_CXX=no
19441 ;;
19442 esac
19443
19444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19445$as_echo "$ld_shlibs_CXX" >&6; }
19446 test "$ld_shlibs_CXX" = no && can_build_shared=no
19447
19448 GCC_CXX="$GXX"
19449 LD_CXX="$LD"
19450
19451 ## CAVEAT EMPTOR:
19452 ## There is no encapsulation within the following macros, do not change
19453 ## the running order or otherwise move them around unless you know exactly
19454 ## what you are doing...
19455 # Dependencies to place before and after the object being linked:
19456predep_objects_CXX=
19457postdep_objects_CXX=
19458predeps_CXX=
19459postdeps_CXX=
19460compiler_lib_search_path_CXX=
19461
19462cat > conftest.$ac_ext <<_LT_EOF
19463class Foo
19464{
19465public:
19466 Foo (void) { a = 0; }
19467private:
19468 int a;
19469};
19470_LT_EOF
19471
cristyda16f162011-02-19 23:52:17 +000019472
19473_lt_libdeps_save_CFLAGS=$CFLAGS
19474case "$CC $CFLAGS " in #(
19475*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
19476*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
cristy99bd5232011-12-07 14:38:20 +000019477*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
cristyda16f162011-02-19 23:52:17 +000019478esac
19479
cristy73bd4a52010-10-05 11:24:23 +000019480if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19481 (eval $ac_compile) 2>&5
19482 ac_status=$?
19483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19484 test $ac_status = 0; }; then
19485 # Parse the compiler output and extract the necessary
19486 # objects, libraries and library flags.
19487
19488 # Sentinel used to keep track of whether or not we are before
19489 # the conftest object file.
19490 pre_test_object_deps_done=no
19491
19492 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000019493 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000019494
19495 -L* | -R* | -l*)
19496 # Some compilers place space between "-{L,R}" and the path.
19497 # Remove the space.
19498 if test $p = "-L" ||
19499 test $p = "-R"; then
19500 prev=$p
19501 continue
cristy73bd4a52010-10-05 11:24:23 +000019502 fi
19503
cristyda16f162011-02-19 23:52:17 +000019504 # Expand the sysroot to ease extracting the directories later.
19505 if test -z "$prev"; then
19506 case $p in
19507 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
19508 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
19509 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
19510 esac
19511 fi
19512 case $p in
19513 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
19514 esac
cristy73bd4a52010-10-05 11:24:23 +000019515 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000019516 case ${prev} in
19517 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000019518 # Internal compiler library paths should come after those
19519 # provided the user. The postdeps already come after the
19520 # user supplied libs so there is no need to process them.
19521 if test -z "$compiler_lib_search_path_CXX"; then
19522 compiler_lib_search_path_CXX="${prev}${p}"
19523 else
19524 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19525 fi
19526 ;;
19527 # The "-l" case would never come before the object being
19528 # linked, so don't bother handling this case.
19529 esac
19530 else
19531 if test -z "$postdeps_CXX"; then
19532 postdeps_CXX="${prev}${p}"
19533 else
19534 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19535 fi
19536 fi
cristyda16f162011-02-19 23:52:17 +000019537 prev=
cristy73bd4a52010-10-05 11:24:23 +000019538 ;;
19539
cristyda16f162011-02-19 23:52:17 +000019540 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000019541 *.$objext)
19542 # This assumes that the test object file only shows up
19543 # once in the compiler output.
19544 if test "$p" = "conftest.$objext"; then
19545 pre_test_object_deps_done=yes
19546 continue
19547 fi
19548
19549 if test "$pre_test_object_deps_done" = no; then
19550 if test -z "$predep_objects_CXX"; then
19551 predep_objects_CXX="$p"
19552 else
19553 predep_objects_CXX="$predep_objects_CXX $p"
19554 fi
19555 else
19556 if test -z "$postdep_objects_CXX"; then
19557 postdep_objects_CXX="$p"
19558 else
19559 postdep_objects_CXX="$postdep_objects_CXX $p"
19560 fi
19561 fi
19562 ;;
19563
19564 *) ;; # Ignore the rest.
19565
19566 esac
19567 done
19568
19569 # Clean up.
19570 rm -f a.out a.exe
19571else
19572 echo "libtool.m4: error: problem compiling CXX test program"
19573fi
19574
19575$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000019576CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000019577
19578# PORTME: override above test on systems where it is broken
19579case $host_os in
19580interix[3-9]*)
19581 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19582 # hack all around it, let's just trust "g++" to DTRT.
19583 predep_objects_CXX=
19584 postdep_objects_CXX=
19585 postdeps_CXX=
19586 ;;
19587
19588linux*)
19589 case `$CC -V 2>&1 | sed 5q` in
19590 *Sun\ C*)
19591 # Sun C++ 5.9
19592
19593 # The more standards-conforming stlport4 library is
19594 # incompatible with the Cstd library. Avoid specifying
19595 # it if it's in CXXFLAGS. Ignore libCrun as
19596 # -library=stlport4 depends on it.
19597 case " $CXX $CXXFLAGS " in
19598 *" -library=stlport4 "*)
19599 solaris_use_stlport4=yes
19600 ;;
19601 esac
19602
19603 if test "$solaris_use_stlport4" != yes; then
19604 postdeps_CXX='-library=Cstd -library=Crun'
19605 fi
19606 ;;
19607 esac
19608 ;;
19609
19610solaris*)
19611 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019612 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019613 # The more standards-conforming stlport4 library is
19614 # incompatible with the Cstd library. Avoid specifying
19615 # it if it's in CXXFLAGS. Ignore libCrun as
19616 # -library=stlport4 depends on it.
19617 case " $CXX $CXXFLAGS " in
19618 *" -library=stlport4 "*)
19619 solaris_use_stlport4=yes
19620 ;;
19621 esac
19622
19623 # Adding this requires a known-good setup of shared libraries for
19624 # Sun compiler versions before 5.6, else PIC objects from an old
19625 # archive will be linked into the output, leading to subtle bugs.
19626 if test "$solaris_use_stlport4" != yes; then
19627 postdeps_CXX='-library=Cstd -library=Crun'
19628 fi
19629 ;;
19630 esac
19631 ;;
19632esac
19633
19634
19635case " $postdeps_CXX " in
19636*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19637esac
19638 compiler_lib_search_dirs_CXX=
19639if test -n "${compiler_lib_search_path_CXX}"; then
19640 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19641fi
19642
19643
19644
19645
19646
19647
19648
19649
19650
19651
19652
19653
19654
19655
19656
19657
19658
19659
19660
19661
19662
19663
19664
19665
19666
19667
19668
19669
19670
19671
19672
19673 lt_prog_compiler_wl_CXX=
19674lt_prog_compiler_pic_CXX=
19675lt_prog_compiler_static_CXX=
19676
cristy73bd4a52010-10-05 11:24:23 +000019677
19678 # C++ specific cases for pic, static, wl, etc.
19679 if test "$GXX" = yes; then
19680 lt_prog_compiler_wl_CXX='-Wl,'
19681 lt_prog_compiler_static_CXX='-static'
19682
19683 case $host_os in
19684 aix*)
19685 # All AIX code is PIC.
19686 if test "$host_cpu" = ia64; then
19687 # AIX 5 now supports IA64 processor
19688 lt_prog_compiler_static_CXX='-Bstatic'
19689 fi
19690 ;;
19691
19692 amigaos*)
19693 case $host_cpu in
19694 powerpc)
19695 # see comment about AmigaOS4 .so support
19696 lt_prog_compiler_pic_CXX='-fPIC'
19697 ;;
19698 m68k)
19699 # FIXME: we need at least 68020 code to build shared libraries, but
19700 # adding the `-m68020' flag to GCC prevents building anything better,
19701 # like `-m68040'.
19702 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19703 ;;
19704 esac
19705 ;;
19706
19707 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19708 # PIC is the default for these OSes.
19709 ;;
19710 mingw* | cygwin* | os2* | pw32* | cegcc*)
19711 # This hack is so that the source file can tell whether it is being
19712 # built for inclusion in a dll (and should export symbols for example).
19713 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19714 # (--disable-auto-import) libraries
19715 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19716 ;;
19717 darwin* | rhapsody*)
19718 # PIC is the default on this platform
19719 # Common symbols not allowed in MH_DYLIB files
19720 lt_prog_compiler_pic_CXX='-fno-common'
19721 ;;
19722 *djgpp*)
19723 # DJGPP does not support shared libraries at all
19724 lt_prog_compiler_pic_CXX=
19725 ;;
cristy0c60a692010-11-04 01:09:47 +000019726 haiku*)
19727 # PIC is the default for Haiku.
19728 # The "-static" flag exists, but is broken.
19729 lt_prog_compiler_static_CXX=
19730 ;;
cristy73bd4a52010-10-05 11:24:23 +000019731 interix[3-9]*)
19732 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19733 # Instead, we relocate shared libraries at runtime.
19734 ;;
19735 sysv4*MP*)
19736 if test -d /usr/nec; then
19737 lt_prog_compiler_pic_CXX=-Kconform_pic
19738 fi
19739 ;;
19740 hpux*)
19741 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19742 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19743 # sets the default TLS model and affects inlining.
19744 case $host_cpu in
19745 hppa*64*)
19746 ;;
19747 *)
19748 lt_prog_compiler_pic_CXX='-fPIC'
19749 ;;
19750 esac
19751 ;;
19752 *qnx* | *nto*)
19753 # QNX uses GNU C++, but need to define -shared option too, otherwise
19754 # it will coredump.
19755 lt_prog_compiler_pic_CXX='-fPIC -shared'
19756 ;;
19757 *)
19758 lt_prog_compiler_pic_CXX='-fPIC'
19759 ;;
19760 esac
19761 else
19762 case $host_os in
19763 aix[4-9]*)
19764 # All AIX code is PIC.
19765 if test "$host_cpu" = ia64; then
19766 # AIX 5 now supports IA64 processor
19767 lt_prog_compiler_static_CXX='-Bstatic'
19768 else
19769 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19770 fi
19771 ;;
19772 chorus*)
19773 case $cc_basename in
19774 cxch68*)
19775 # Green Hills C++ Compiler
19776 # _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"
19777 ;;
19778 esac
19779 ;;
cristyda16f162011-02-19 23:52:17 +000019780 mingw* | cygwin* | os2* | pw32* | cegcc*)
19781 # This hack is so that the source file can tell whether it is being
19782 # built for inclusion in a dll (and should export symbols for example).
19783 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19784 ;;
cristy73bd4a52010-10-05 11:24:23 +000019785 dgux*)
19786 case $cc_basename in
19787 ec++*)
19788 lt_prog_compiler_pic_CXX='-KPIC'
19789 ;;
19790 ghcx*)
19791 # Green Hills C++ Compiler
19792 lt_prog_compiler_pic_CXX='-pic'
19793 ;;
19794 *)
19795 ;;
19796 esac
19797 ;;
19798 freebsd* | dragonfly*)
19799 # FreeBSD uses GNU C++
19800 ;;
19801 hpux9* | hpux10* | hpux11*)
19802 case $cc_basename in
19803 CC*)
19804 lt_prog_compiler_wl_CXX='-Wl,'
19805 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19806 if test "$host_cpu" != ia64; then
19807 lt_prog_compiler_pic_CXX='+Z'
19808 fi
19809 ;;
19810 aCC*)
19811 lt_prog_compiler_wl_CXX='-Wl,'
19812 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19813 case $host_cpu in
19814 hppa*64*|ia64*)
19815 # +Z the default
19816 ;;
19817 *)
19818 lt_prog_compiler_pic_CXX='+Z'
19819 ;;
19820 esac
19821 ;;
19822 *)
19823 ;;
19824 esac
19825 ;;
19826 interix*)
19827 # This is c89, which is MS Visual C++ (no shared libs)
19828 # Anyone wants to do a port?
19829 ;;
19830 irix5* | irix6* | nonstopux*)
19831 case $cc_basename in
19832 CC*)
19833 lt_prog_compiler_wl_CXX='-Wl,'
19834 lt_prog_compiler_static_CXX='-non_shared'
19835 # CC pic flag -KPIC is the default.
19836 ;;
19837 *)
19838 ;;
19839 esac
19840 ;;
cristy0c60a692010-11-04 01:09:47 +000019841 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019842 case $cc_basename in
19843 KCC*)
19844 # KAI C++ Compiler
19845 lt_prog_compiler_wl_CXX='--backend -Wl,'
19846 lt_prog_compiler_pic_CXX='-fPIC'
19847 ;;
19848 ecpc* )
19849 # old Intel C++ for x86_64 which still supported -KPIC.
19850 lt_prog_compiler_wl_CXX='-Wl,'
19851 lt_prog_compiler_pic_CXX='-KPIC'
19852 lt_prog_compiler_static_CXX='-static'
19853 ;;
19854 icpc* )
19855 # Intel C++, used to be incompatible with GCC.
19856 # ICC 10 doesn't accept -KPIC any more.
19857 lt_prog_compiler_wl_CXX='-Wl,'
19858 lt_prog_compiler_pic_CXX='-fPIC'
19859 lt_prog_compiler_static_CXX='-static'
19860 ;;
19861 pgCC* | pgcpp*)
19862 # Portland Group C++ compiler
19863 lt_prog_compiler_wl_CXX='-Wl,'
19864 lt_prog_compiler_pic_CXX='-fpic'
19865 lt_prog_compiler_static_CXX='-Bstatic'
19866 ;;
19867 cxx*)
19868 # Compaq C++
19869 # Make sure the PIC flag is empty. It appears that all Alpha
19870 # Linux and Compaq Tru64 Unix objects are PIC.
19871 lt_prog_compiler_pic_CXX=
19872 lt_prog_compiler_static_CXX='-non_shared'
19873 ;;
cristy0c60a692010-11-04 01:09:47 +000019874 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19875 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000019876 lt_prog_compiler_wl_CXX='-Wl,'
19877 lt_prog_compiler_pic_CXX='-qpic'
19878 lt_prog_compiler_static_CXX='-qstaticlink'
19879 ;;
19880 *)
19881 case `$CC -V 2>&1 | sed 5q` in
19882 *Sun\ C*)
19883 # Sun C++ 5.9
19884 lt_prog_compiler_pic_CXX='-KPIC'
19885 lt_prog_compiler_static_CXX='-Bstatic'
19886 lt_prog_compiler_wl_CXX='-Qoption ld '
19887 ;;
19888 esac
19889 ;;
19890 esac
19891 ;;
19892 lynxos*)
19893 ;;
19894 m88k*)
19895 ;;
19896 mvs*)
19897 case $cc_basename in
19898 cxx*)
19899 lt_prog_compiler_pic_CXX='-W c,exportall'
19900 ;;
19901 *)
19902 ;;
19903 esac
19904 ;;
19905 netbsd*)
19906 ;;
19907 *qnx* | *nto*)
19908 # QNX uses GNU C++, but need to define -shared option too, otherwise
19909 # it will coredump.
19910 lt_prog_compiler_pic_CXX='-fPIC -shared'
19911 ;;
19912 osf3* | osf4* | osf5*)
19913 case $cc_basename in
19914 KCC*)
19915 lt_prog_compiler_wl_CXX='--backend -Wl,'
19916 ;;
19917 RCC*)
19918 # Rational C++ 2.4.1
19919 lt_prog_compiler_pic_CXX='-pic'
19920 ;;
19921 cxx*)
19922 # Digital/Compaq C++
19923 lt_prog_compiler_wl_CXX='-Wl,'
19924 # Make sure the PIC flag is empty. It appears that all Alpha
19925 # Linux and Compaq Tru64 Unix objects are PIC.
19926 lt_prog_compiler_pic_CXX=
19927 lt_prog_compiler_static_CXX='-non_shared'
19928 ;;
19929 *)
19930 ;;
19931 esac
19932 ;;
19933 psos*)
19934 ;;
19935 solaris*)
19936 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019937 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019938 # Sun C++ 4.2, 5.x and Centerline C++
19939 lt_prog_compiler_pic_CXX='-KPIC'
19940 lt_prog_compiler_static_CXX='-Bstatic'
19941 lt_prog_compiler_wl_CXX='-Qoption ld '
19942 ;;
19943 gcx*)
19944 # Green Hills C++ Compiler
19945 lt_prog_compiler_pic_CXX='-PIC'
19946 ;;
19947 *)
19948 ;;
19949 esac
19950 ;;
19951 sunos4*)
19952 case $cc_basename in
19953 CC*)
19954 # Sun C++ 4.x
19955 lt_prog_compiler_pic_CXX='-pic'
19956 lt_prog_compiler_static_CXX='-Bstatic'
19957 ;;
19958 lcc*)
19959 # Lucid
19960 lt_prog_compiler_pic_CXX='-pic'
19961 ;;
19962 *)
19963 ;;
19964 esac
19965 ;;
19966 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19967 case $cc_basename in
19968 CC*)
19969 lt_prog_compiler_wl_CXX='-Wl,'
19970 lt_prog_compiler_pic_CXX='-KPIC'
19971 lt_prog_compiler_static_CXX='-Bstatic'
19972 ;;
19973 esac
19974 ;;
19975 tandem*)
19976 case $cc_basename in
19977 NCC*)
19978 # NonStop-UX NCC 3.20
19979 lt_prog_compiler_pic_CXX='-KPIC'
19980 ;;
19981 *)
19982 ;;
19983 esac
19984 ;;
19985 vxworks*)
19986 ;;
19987 *)
19988 lt_prog_compiler_can_build_shared_CXX=no
19989 ;;
19990 esac
19991 fi
19992
19993case $host_os in
19994 # For platforms which do not support PIC, -DPIC is meaningless:
19995 *djgpp*)
19996 lt_prog_compiler_pic_CXX=
19997 ;;
19998 *)
19999 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20000 ;;
20001esac
cristy73bd4a52010-10-05 11:24:23 +000020002
cristyda16f162011-02-19 23:52:17 +000020003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20004$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20005if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
20006 $as_echo_n "(cached) " >&6
20007else
20008 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
20009fi
20010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
20011$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
20012lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000020013
20014#
20015# Check to make sure the PIC flag actually works.
20016#
20017if test -n "$lt_prog_compiler_pic_CXX"; then
20018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20019$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020020if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020021 $as_echo_n "(cached) " >&6
20022else
20023 lt_cv_prog_compiler_pic_works_CXX=no
20024 ac_outfile=conftest.$ac_objext
20025 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20026 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20027 # Insert the option either (1) after the last *FLAGS variable, or
20028 # (2) before a word containing "conftest.", or (3) at the end.
20029 # Note that $ac_compile itself does not contain backslashes and begins
20030 # with a dollar sign (not a hyphen), so the echo should work correctly.
20031 # The option is referenced via a variable to avoid confusing sed.
20032 lt_compile=`echo "$ac_compile" | $SED \
20033 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20034 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20035 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000020036 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000020037 (eval "$lt_compile" 2>conftest.err)
20038 ac_status=$?
20039 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000020040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000020041 if (exit $ac_status) && test -s "$ac_outfile"; then
20042 # The compiler can only warn and ignore the option if not recognized
20043 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000020044 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020045 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20046 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20047 lt_cv_prog_compiler_pic_works_CXX=yes
20048 fi
20049 fi
20050 $RM conftest*
20051
20052fi
20053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20054$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20055
20056if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20057 case $lt_prog_compiler_pic_CXX in
20058 "" | " "*) ;;
20059 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20060 esac
20061else
20062 lt_prog_compiler_pic_CXX=
20063 lt_prog_compiler_can_build_shared_CXX=no
20064fi
20065
20066fi
20067
20068
20069
cristyda16f162011-02-19 23:52:17 +000020070
20071
cristy73bd4a52010-10-05 11:24:23 +000020072#
20073# Check to make sure the static flag actually works.
20074#
20075wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20077$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020078if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020079 $as_echo_n "(cached) " >&6
20080else
20081 lt_cv_prog_compiler_static_works_CXX=no
20082 save_LDFLAGS="$LDFLAGS"
20083 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20084 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20085 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20086 # The linker can only warn and ignore the option if not recognized
20087 # So say no if there are warnings
20088 if test -s conftest.err; then
20089 # Append any errors to the config.log.
20090 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000020091 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020092 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20093 if diff conftest.exp conftest.er2 >/dev/null; then
20094 lt_cv_prog_compiler_static_works_CXX=yes
20095 fi
20096 else
20097 lt_cv_prog_compiler_static_works_CXX=yes
20098 fi
20099 fi
20100 $RM -r conftest*
20101 LDFLAGS="$save_LDFLAGS"
20102
20103fi
20104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20105$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20106
20107if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20108 :
20109else
20110 lt_prog_compiler_static_CXX=
20111fi
20112
20113
20114
20115
20116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20117$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020118if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020119 $as_echo_n "(cached) " >&6
20120else
20121 lt_cv_prog_compiler_c_o_CXX=no
20122 $RM -r conftest 2>/dev/null
20123 mkdir conftest
20124 cd conftest
20125 mkdir out
20126 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20127
20128 lt_compiler_flag="-o out/conftest2.$ac_objext"
20129 # Insert the option either (1) after the last *FLAGS variable, or
20130 # (2) before a word containing "conftest.", or (3) at the end.
20131 # Note that $ac_compile itself does not contain backslashes and begins
20132 # with a dollar sign (not a hyphen), so the echo should work correctly.
20133 lt_compile=`echo "$ac_compile" | $SED \
20134 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20135 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20136 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000020137 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000020138 (eval "$lt_compile" 2>out/conftest.err)
20139 ac_status=$?
20140 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000020141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000020142 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20143 then
20144 # The compiler can only warn and ignore the option if not recognized
20145 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000020146 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020147 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20148 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20149 lt_cv_prog_compiler_c_o_CXX=yes
20150 fi
20151 fi
20152 chmod u+w . 2>&5
20153 $RM conftest*
20154 # SGI C++ compiler will create directory out/ii_files/ for
20155 # template instantiation
20156 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20157 $RM out/* && rmdir out
20158 cd ..
20159 $RM -r conftest
20160 $RM conftest*
20161
20162fi
20163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20164$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20165
20166
20167
20168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20169$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020170if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020171 $as_echo_n "(cached) " >&6
20172else
20173 lt_cv_prog_compiler_c_o_CXX=no
20174 $RM -r conftest 2>/dev/null
20175 mkdir conftest
20176 cd conftest
20177 mkdir out
20178 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20179
20180 lt_compiler_flag="-o out/conftest2.$ac_objext"
20181 # Insert the option either (1) after the last *FLAGS variable, or
20182 # (2) before a word containing "conftest.", or (3) at the end.
20183 # Note that $ac_compile itself does not contain backslashes and begins
20184 # with a dollar sign (not a hyphen), so the echo should work correctly.
20185 lt_compile=`echo "$ac_compile" | $SED \
20186 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20187 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20188 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000020189 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000020190 (eval "$lt_compile" 2>out/conftest.err)
20191 ac_status=$?
20192 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000020193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000020194 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20195 then
20196 # The compiler can only warn and ignore the option if not recognized
20197 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000020198 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020199 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20200 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20201 lt_cv_prog_compiler_c_o_CXX=yes
20202 fi
20203 fi
20204 chmod u+w . 2>&5
20205 $RM conftest*
20206 # SGI C++ compiler will create directory out/ii_files/ for
20207 # template instantiation
20208 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20209 $RM out/* && rmdir out
20210 cd ..
20211 $RM -r conftest
20212 $RM conftest*
20213
20214fi
20215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20216$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20217
20218
20219
20220
20221hard_links="nottested"
20222if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20223 # do not overwrite the value of need_locks provided by the user
20224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20225$as_echo_n "checking if we can lock with hard links... " >&6; }
20226 hard_links=yes
20227 $RM conftest*
20228 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20229 touch conftest.a
20230 ln conftest.a conftest.b 2>&5 || hard_links=no
20231 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20233$as_echo "$hard_links" >&6; }
20234 if test "$hard_links" = no; then
20235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20236$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20237 need_locks=warn
20238 fi
20239else
20240 need_locks=no
20241fi
20242
20243
20244
20245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20246$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20247
20248 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000020249 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000020250 case $host_os in
20251 aix[4-9]*)
20252 # If we're using GNU nm, then we don't want the "-C" option.
20253 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000020254 # Also, AIX nm treats weak defined symbols like other global defined
20255 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000020256 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000020257 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 +000020258 else
20259 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'
20260 fi
20261 ;;
20262 pw32*)
20263 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000020264 ;;
cristy73bd4a52010-10-05 11:24:23 +000020265 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000020266 case $cc_basename in
cristy99bd5232011-12-07 14:38:20 +000020267 cl*)
20268 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
20269 ;;
cristyda16f162011-02-19 23:52:17 +000020270 *)
20271 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'
20272 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
20273 ;;
20274 esac
20275 ;;
cristy73bd4a52010-10-05 11:24:23 +000020276 *)
20277 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000020278 ;;
cristy73bd4a52010-10-05 11:24:23 +000020279 esac
cristy73bd4a52010-10-05 11:24:23 +000020280
20281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20282$as_echo "$ld_shlibs_CXX" >&6; }
20283test "$ld_shlibs_CXX" = no && can_build_shared=no
20284
20285with_gnu_ld_CXX=$with_gnu_ld
20286
20287
20288
20289
20290
20291
20292#
20293# Do we need to explicitly link libc?
20294#
20295case "x$archive_cmds_need_lc_CXX" in
20296x|xyes)
20297 # Assume -lc should be added
20298 archive_cmds_need_lc_CXX=yes
20299
20300 if test "$enable_shared" = yes && test "$GCC" = yes; then
20301 case $archive_cmds_CXX in
20302 *'~'*)
20303 # FIXME: we may have to deal with multi-command sequences.
20304 ;;
20305 '$CC '*)
20306 # Test whether the compiler implicitly links with -lc since on some
20307 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20308 # to ld, don't add -lc before -lgcc.
20309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20310$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020311if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000020312 $as_echo_n "(cached) " >&6
20313else
20314 $RM conftest*
20315 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000020316
cristy0c60a692010-11-04 01:09:47 +000020317 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000020318 (eval $ac_compile) 2>&5
20319 ac_status=$?
20320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20321 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000020322 soname=conftest
20323 lib=conftest
20324 libobjs=conftest.$ac_objext
20325 deplibs=
20326 wl=$lt_prog_compiler_wl_CXX
20327 pic_flag=$lt_prog_compiler_pic_CXX
20328 compiler_flags=-v
20329 linker_flags=-v
20330 verstring=
20331 output_objdir=.
20332 libname=conftest
20333 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20334 allow_undefined_flag_CXX=
20335 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 +000020336 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20337 ac_status=$?
20338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20339 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000020340 then
20341 lt_cv_archive_cmds_need_lc_CXX=no
20342 else
20343 lt_cv_archive_cmds_need_lc_CXX=yes
20344 fi
20345 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20346 else
20347 cat conftest.err 1>&5
20348 fi
20349 $RM conftest*
20350
20351fi
20352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20353$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20354 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000020355 ;;
20356 esac
20357 fi
20358 ;;
20359esac
20360
20361
20362
20363
20364
20365
20366
20367
20368
20369
20370
20371
20372
20373
20374
20375
20376
20377
20378
20379
20380
20381
20382
20383
20384
20385
20386
20387
20388
20389
20390
20391
20392
20393
20394
20395
20396
20397
20398
20399
20400
20401
20402
20403
20404
20405
20406
20407
20408
20409
20410
20411
20412
20413
20414
20415
20416
20417
20418
20419
20420
20421
cristy73bd4a52010-10-05 11:24:23 +000020422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20423$as_echo_n "checking dynamic linker characteristics... " >&6; }
20424
20425library_names_spec=
20426libname_spec='lib$name'
20427soname_spec=
20428shrext_cmds=".so"
20429postinstall_cmds=
20430postuninstall_cmds=
20431finish_cmds=
20432finish_eval=
20433shlibpath_var=
20434shlibpath_overrides_runpath=unknown
20435version_type=none
20436dynamic_linker="$host_os ld.so"
20437sys_lib_dlsearch_path_spec="/lib /usr/lib"
20438need_lib_prefix=unknown
20439hardcode_into_libs=no
20440
20441# when you set need_version to no, make sure it does not cause -set_version
20442# flags to be left without arguments
20443need_version=unknown
20444
20445case $host_os in
20446aix3*)
cristy99bd5232011-12-07 14:38:20 +000020447 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020448 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20449 shlibpath_var=LIBPATH
20450
20451 # AIX 3 has no versioning support, so we append a major version to the name.
20452 soname_spec='${libname}${release}${shared_ext}$major'
20453 ;;
20454
20455aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000020456 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020457 need_lib_prefix=no
20458 need_version=no
20459 hardcode_into_libs=yes
20460 if test "$host_cpu" = ia64; then
20461 # AIX 5 supports IA64
20462 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20463 shlibpath_var=LD_LIBRARY_PATH
20464 else
20465 # With GCC up to 2.95.x, collect2 would create an import file
20466 # for dependence libraries. The import file would start with
20467 # the line `#! .'. This would cause the generated library to
20468 # depend on `.', always an invalid library. This was fixed in
20469 # development snapshots of GCC prior to 3.0.
20470 case $host_os in
20471 aix4 | aix4.[01] | aix4.[01].*)
20472 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20473 echo ' yes '
20474 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20475 :
20476 else
20477 can_build_shared=no
20478 fi
20479 ;;
20480 esac
20481 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20482 # soname into executable. Probably we can add versioning support to
20483 # collect2, so additional links can be useful in future.
20484 if test "$aix_use_runtimelinking" = yes; then
20485 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20486 # instead of lib<name>.a to let people know that these are not
20487 # typical AIX shared libraries.
20488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20489 else
20490 # We preserve .a as extension for shared libraries through AIX4.2
20491 # and later when we are not doing run time linking.
20492 library_names_spec='${libname}${release}.a $libname.a'
20493 soname_spec='${libname}${release}${shared_ext}$major'
20494 fi
20495 shlibpath_var=LIBPATH
20496 fi
20497 ;;
20498
20499amigaos*)
20500 case $host_cpu in
20501 powerpc)
20502 # Since July 2007 AmigaOS4 officially supports .so libraries.
20503 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20505 ;;
20506 m68k)
20507 library_names_spec='$libname.ixlibrary $libname.a'
20508 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000020509 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 +000020510 ;;
20511 esac
20512 ;;
20513
20514beos*)
20515 library_names_spec='${libname}${shared_ext}'
20516 dynamic_linker="$host_os ld.so"
20517 shlibpath_var=LIBRARY_PATH
20518 ;;
20519
20520bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000020521 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020522 need_version=no
20523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20524 soname_spec='${libname}${release}${shared_ext}$major'
20525 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20526 shlibpath_var=LD_LIBRARY_PATH
20527 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20528 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20529 # the default ld.so.conf also contains /usr/contrib/lib and
20530 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20531 # libtool to hard-code these into programs
20532 ;;
20533
20534cygwin* | mingw* | pw32* | cegcc*)
20535 version_type=windows
20536 shrext_cmds=".dll"
20537 need_version=no
20538 need_lib_prefix=no
20539
cristyda16f162011-02-19 23:52:17 +000020540 case $GCC,$cc_basename in
20541 yes,*)
20542 # gcc
cristy73bd4a52010-10-05 11:24:23 +000020543 library_names_spec='$libname.dll.a'
20544 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20545 postinstall_cmds='base_file=`basename \${file}`~
20546 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20547 dldir=$destdir/`dirname \$dlpath`~
20548 test -d \$dldir || mkdir -p \$dldir~
20549 $install_prog $dir/$dlname \$dldir/$dlname~
20550 chmod a+x \$dldir/$dlname~
20551 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20552 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20553 fi'
20554 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20555 dlpath=$dir/\$dldll~
20556 $RM \$dlpath'
20557 shlibpath_overrides_runpath=yes
20558
20559 case $host_os in
20560 cygwin*)
20561 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20562 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000020563
cristy73bd4a52010-10-05 11:24:23 +000020564 ;;
20565 mingw* | cegcc*)
20566 # MinGW DLLs use traditional 'lib' prefix
20567 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000020568 ;;
20569 pw32*)
20570 # pw32 DLLs use 'pw' prefix rather than 'lib'
20571 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20572 ;;
20573 esac
cristyda16f162011-02-19 23:52:17 +000020574 dynamic_linker='Win32 ld.exe'
20575 ;;
20576
20577 *,cl*)
20578 # Native MSVC
20579 libname_spec='$name'
20580 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20581 library_names_spec='${libname}.dll.lib'
20582
20583 case $build_os in
20584 mingw*)
20585 sys_lib_search_path_spec=
20586 lt_save_ifs=$IFS
20587 IFS=';'
20588 for lt_path in $LIB
20589 do
20590 IFS=$lt_save_ifs
20591 # Let DOS variable expansion print the short 8.3 style file name.
20592 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
20593 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
20594 done
20595 IFS=$lt_save_ifs
20596 # Convert to MSYS style.
20597 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
20598 ;;
20599 cygwin*)
20600 # Convert to unix form, then to dos form, then back to unix form
20601 # but this time dos style (no spaces!) so that the unix form looks
20602 # like /cygdrive/c/PROGRA~1:/cygdr...
20603 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
20604 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
20605 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20606 ;;
20607 *)
20608 sys_lib_search_path_spec="$LIB"
20609 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
20610 # It is most probably a Windows format PATH.
20611 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20612 else
20613 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20614 fi
20615 # FIXME: find the short name or the path components, as spaces are
20616 # common. (e.g. "Program Files" -> "PROGRA~1")
20617 ;;
20618 esac
20619
20620 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20621 postinstall_cmds='base_file=`basename \${file}`~
20622 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20623 dldir=$destdir/`dirname \$dlpath`~
20624 test -d \$dldir || mkdir -p \$dldir~
20625 $install_prog $dir/$dlname \$dldir/$dlname'
20626 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20627 dlpath=$dir/\$dldll~
20628 $RM \$dlpath'
20629 shlibpath_overrides_runpath=yes
20630 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000020631 ;;
20632
20633 *)
cristyda16f162011-02-19 23:52:17 +000020634 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000020635 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000020636 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000020637 ;;
20638 esac
cristy73bd4a52010-10-05 11:24:23 +000020639 # FIXME: first we should search . and the directory the executable is in
20640 shlibpath_var=PATH
20641 ;;
20642
20643darwin* | rhapsody*)
20644 dynamic_linker="$host_os dyld"
20645 version_type=darwin
20646 need_lib_prefix=no
20647 need_version=no
20648 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20649 soname_spec='${libname}${release}${major}$shared_ext'
20650 shlibpath_overrides_runpath=yes
20651 shlibpath_var=DYLD_LIBRARY_PATH
20652 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20653
20654 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20655 ;;
20656
20657dgux*)
cristy99bd5232011-12-07 14:38:20 +000020658 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020659 need_lib_prefix=no
20660 need_version=no
20661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20662 soname_spec='${libname}${release}${shared_ext}$major'
20663 shlibpath_var=LD_LIBRARY_PATH
20664 ;;
20665
cristy73bd4a52010-10-05 11:24:23 +000020666freebsd* | dragonfly*)
20667 # DragonFly does not have aout. When/if they implement a new
20668 # versioning mechanism, adjust this.
20669 if test -x /usr/bin/objformat; then
20670 objformat=`/usr/bin/objformat`
20671 else
20672 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020673 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000020674 *) objformat=elf ;;
20675 esac
20676 fi
20677 version_type=freebsd-$objformat
20678 case $version_type in
20679 freebsd-elf*)
20680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20681 need_version=no
20682 need_lib_prefix=no
20683 ;;
20684 freebsd-*)
20685 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20686 need_version=yes
20687 ;;
20688 esac
20689 shlibpath_var=LD_LIBRARY_PATH
20690 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020691 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000020692 shlibpath_overrides_runpath=yes
20693 ;;
20694 freebsd3.[01]* | freebsdelf3.[01]*)
20695 shlibpath_overrides_runpath=yes
20696 hardcode_into_libs=yes
20697 ;;
20698 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20699 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20700 shlibpath_overrides_runpath=no
20701 hardcode_into_libs=yes
20702 ;;
20703 *) # from 4.6 on, and DragonFly
20704 shlibpath_overrides_runpath=yes
20705 hardcode_into_libs=yes
20706 ;;
20707 esac
20708 ;;
20709
20710gnu*)
cristy99bd5232011-12-07 14:38:20 +000020711 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020712 need_lib_prefix=no
20713 need_version=no
20714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20715 soname_spec='${libname}${release}${shared_ext}$major'
20716 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000020717 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000020718 hardcode_into_libs=yes
20719 ;;
20720
cristy0c60a692010-11-04 01:09:47 +000020721haiku*)
cristy99bd5232011-12-07 14:38:20 +000020722 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000020723 need_lib_prefix=no
20724 need_version=no
20725 dynamic_linker="$host_os runtime_loader"
20726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20727 soname_spec='${libname}${release}${shared_ext}$major'
20728 shlibpath_var=LIBRARY_PATH
20729 shlibpath_overrides_runpath=yes
20730 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
20731 hardcode_into_libs=yes
20732 ;;
20733
cristy73bd4a52010-10-05 11:24:23 +000020734hpux9* | hpux10* | hpux11*)
20735 # Give a soname corresponding to the major version so that dld.sl refuses to
20736 # link against other versions.
20737 version_type=sunos
20738 need_lib_prefix=no
20739 need_version=no
20740 case $host_cpu in
20741 ia64*)
20742 shrext_cmds='.so'
20743 hardcode_into_libs=yes
20744 dynamic_linker="$host_os dld.so"
20745 shlibpath_var=LD_LIBRARY_PATH
20746 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20748 soname_spec='${libname}${release}${shared_ext}$major'
20749 if test "X$HPUX_IA64_MODE" = X32; then
20750 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20751 else
20752 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20753 fi
20754 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20755 ;;
20756 hppa*64*)
20757 shrext_cmds='.sl'
20758 hardcode_into_libs=yes
20759 dynamic_linker="$host_os dld.sl"
20760 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20761 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20763 soname_spec='${libname}${release}${shared_ext}$major'
20764 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20765 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20766 ;;
20767 *)
20768 shrext_cmds='.sl'
20769 dynamic_linker="$host_os dld.sl"
20770 shlibpath_var=SHLIB_PATH
20771 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20773 soname_spec='${libname}${release}${shared_ext}$major'
20774 ;;
20775 esac
cristy0c60a692010-11-04 01:09:47 +000020776 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000020777 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000020778 # or fails outright, so override atomically:
20779 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000020780 ;;
20781
20782interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000020783 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020784 need_lib_prefix=no
20785 need_version=no
20786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20787 soname_spec='${libname}${release}${shared_ext}$major'
20788 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20789 shlibpath_var=LD_LIBRARY_PATH
20790 shlibpath_overrides_runpath=no
20791 hardcode_into_libs=yes
20792 ;;
20793
20794irix5* | irix6* | nonstopux*)
20795 case $host_os in
20796 nonstopux*) version_type=nonstopux ;;
20797 *)
20798 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000020799 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020800 else
20801 version_type=irix
20802 fi ;;
20803 esac
20804 need_lib_prefix=no
20805 need_version=no
20806 soname_spec='${libname}${release}${shared_ext}$major'
20807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20808 case $host_os in
20809 irix5* | nonstopux*)
20810 libsuff= shlibsuff=
20811 ;;
20812 *)
20813 case $LD in # libtool.m4 will add one of these switches to LD
20814 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20815 libsuff= shlibsuff= libmagic=32-bit;;
20816 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20817 libsuff=32 shlibsuff=N32 libmagic=N32;;
20818 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20819 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20820 *) libsuff= shlibsuff= libmagic=never-match;;
20821 esac
20822 ;;
20823 esac
20824 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20825 shlibpath_overrides_runpath=no
20826 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20827 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20828 hardcode_into_libs=yes
20829 ;;
20830
20831# No shared lib support for Linux oldld, aout, or coff.
20832linux*oldld* | linux*aout* | linux*coff*)
20833 dynamic_linker=no
20834 ;;
20835
cristy99bd5232011-12-07 14:38:20 +000020836# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000020837linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000020838 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020839 need_lib_prefix=no
20840 need_version=no
20841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20842 soname_spec='${libname}${release}${shared_ext}$major'
20843 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20844 shlibpath_var=LD_LIBRARY_PATH
20845 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000020846
cristy73bd4a52010-10-05 11:24:23 +000020847 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000020848 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000020849 $as_echo_n "(cached) " >&6
20850else
20851 lt_cv_shlibpath_overrides_runpath=no
20852 save_LDFLAGS=$LDFLAGS
20853 save_libdir=$libdir
20854 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20855 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000020857/* end confdefs.h. */
20858
20859int
20860main ()
20861{
20862
20863 ;
20864 return 0;
20865}
20866_ACEOF
20867if ac_fn_cxx_try_link "$LINENO"; then :
20868 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000020869 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000020870fi
20871fi
20872rm -f core conftest.err conftest.$ac_objext \
20873 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000020874 LDFLAGS=$save_LDFLAGS
20875 libdir=$save_libdir
20876
20877fi
20878
20879 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000020880
20881 # This implies no fast_install, which is unacceptable.
20882 # Some rework will be needed to allow for fast_install
20883 # before this can be enabled.
20884 hardcode_into_libs=yes
20885
20886 # Add ABI-specific directories to the system library path.
20887 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
20888
20889 # Append ld.so.conf contents to the search path
20890 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000020891 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 +000020892 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000020893
cristy73bd4a52010-10-05 11:24:23 +000020894 fi
20895
20896 # We used to test for /lib/ld.so.1 and disable shared libraries on
20897 # powerpc, because MkLinux only supported shared libraries with the
20898 # GNU dynamic linker. Since this was broken with cross compilers,
20899 # most powerpc-linux boxes support dynamic linking these days and
20900 # people can always --disable-shared, the test was removed, and we
20901 # assume the GNU/Linux dynamic linker is in use.
20902 dynamic_linker='GNU/Linux ld.so'
20903 ;;
20904
20905netbsd*)
20906 version_type=sunos
20907 need_lib_prefix=no
20908 need_version=no
20909 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20911 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20912 dynamic_linker='NetBSD (a.out) ld.so'
20913 else
20914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20915 soname_spec='${libname}${release}${shared_ext}$major'
20916 dynamic_linker='NetBSD ld.elf_so'
20917 fi
20918 shlibpath_var=LD_LIBRARY_PATH
20919 shlibpath_overrides_runpath=yes
20920 hardcode_into_libs=yes
20921 ;;
20922
20923newsos6)
cristy99bd5232011-12-07 14:38:20 +000020924 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20926 shlibpath_var=LD_LIBRARY_PATH
20927 shlibpath_overrides_runpath=yes
20928 ;;
20929
20930*nto* | *qnx*)
20931 version_type=qnx
20932 need_lib_prefix=no
20933 need_version=no
20934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20935 soname_spec='${libname}${release}${shared_ext}$major'
20936 shlibpath_var=LD_LIBRARY_PATH
20937 shlibpath_overrides_runpath=no
20938 hardcode_into_libs=yes
20939 dynamic_linker='ldqnx.so'
20940 ;;
20941
20942openbsd*)
20943 version_type=sunos
20944 sys_lib_dlsearch_path_spec="/usr/lib"
20945 need_lib_prefix=no
20946 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20947 case $host_os in
20948 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20949 *) need_version=no ;;
20950 esac
20951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20952 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20953 shlibpath_var=LD_LIBRARY_PATH
20954 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20955 case $host_os in
20956 openbsd2.[89] | openbsd2.[89].*)
20957 shlibpath_overrides_runpath=no
20958 ;;
20959 *)
20960 shlibpath_overrides_runpath=yes
20961 ;;
20962 esac
20963 else
20964 shlibpath_overrides_runpath=yes
20965 fi
20966 ;;
20967
20968os2*)
20969 libname_spec='$name'
20970 shrext_cmds=".dll"
20971 need_lib_prefix=no
20972 library_names_spec='$libname${shared_ext} $libname.a'
20973 dynamic_linker='OS/2 ld.exe'
20974 shlibpath_var=LIBPATH
20975 ;;
20976
20977osf3* | osf4* | osf5*)
20978 version_type=osf
20979 need_lib_prefix=no
20980 need_version=no
20981 soname_spec='${libname}${release}${shared_ext}$major'
20982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20983 shlibpath_var=LD_LIBRARY_PATH
20984 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20985 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20986 ;;
20987
20988rdos*)
20989 dynamic_linker=no
20990 ;;
20991
20992solaris*)
cristy99bd5232011-12-07 14:38:20 +000020993 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020994 need_lib_prefix=no
20995 need_version=no
20996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20997 soname_spec='${libname}${release}${shared_ext}$major'
20998 shlibpath_var=LD_LIBRARY_PATH
20999 shlibpath_overrides_runpath=yes
21000 hardcode_into_libs=yes
21001 # ldd complains unless libraries are executable
21002 postinstall_cmds='chmod +x $lib'
21003 ;;
21004
21005sunos4*)
21006 version_type=sunos
21007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21008 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21009 shlibpath_var=LD_LIBRARY_PATH
21010 shlibpath_overrides_runpath=yes
21011 if test "$with_gnu_ld" = yes; then
21012 need_lib_prefix=no
21013 fi
21014 need_version=yes
21015 ;;
21016
21017sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000021018 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21020 soname_spec='${libname}${release}${shared_ext}$major'
21021 shlibpath_var=LD_LIBRARY_PATH
21022 case $host_vendor in
21023 sni)
21024 shlibpath_overrides_runpath=no
21025 need_lib_prefix=no
21026 runpath_var=LD_RUN_PATH
21027 ;;
21028 siemens)
21029 need_lib_prefix=no
21030 ;;
21031 motorola)
21032 need_lib_prefix=no
21033 need_version=no
21034 shlibpath_overrides_runpath=no
21035 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21036 ;;
21037 esac
21038 ;;
21039
21040sysv4*MP*)
21041 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000021042 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021043 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21044 soname_spec='$libname${shared_ext}.$major'
21045 shlibpath_var=LD_LIBRARY_PATH
21046 fi
21047 ;;
21048
21049sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21050 version_type=freebsd-elf
21051 need_lib_prefix=no
21052 need_version=no
21053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21054 soname_spec='${libname}${release}${shared_ext}$major'
21055 shlibpath_var=LD_LIBRARY_PATH
21056 shlibpath_overrides_runpath=yes
21057 hardcode_into_libs=yes
21058 if test "$with_gnu_ld" = yes; then
21059 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21060 else
21061 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21062 case $host_os in
21063 sco3.2v5*)
21064 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21065 ;;
21066 esac
21067 fi
21068 sys_lib_dlsearch_path_spec='/usr/lib'
21069 ;;
21070
21071tpf*)
21072 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000021073 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021074 need_lib_prefix=no
21075 need_version=no
21076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21077 shlibpath_var=LD_LIBRARY_PATH
21078 shlibpath_overrides_runpath=no
21079 hardcode_into_libs=yes
21080 ;;
21081
21082uts4*)
cristy99bd5232011-12-07 14:38:20 +000021083 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21085 soname_spec='${libname}${release}${shared_ext}$major'
21086 shlibpath_var=LD_LIBRARY_PATH
21087 ;;
21088
21089*)
21090 dynamic_linker=no
21091 ;;
21092esac
21093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21094$as_echo "$dynamic_linker" >&6; }
21095test "$dynamic_linker" = no && can_build_shared=no
21096
21097variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21098if test "$GCC" = yes; then
21099 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21100fi
21101
21102if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21103 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21104fi
21105if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21106 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21107fi
21108
21109
21110
21111
21112
21113
21114
21115
21116
21117
21118
21119
21120
21121
21122
21123
21124
21125
21126
21127
21128
21129
21130
21131
21132
21133
21134
21135
21136
21137
21138
21139
21140
21141
21142
21143
cristy0c60a692010-11-04 01:09:47 +000021144
21145
cristy73bd4a52010-10-05 11:24:23 +000021146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21147$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21148hardcode_action_CXX=
21149if test -n "$hardcode_libdir_flag_spec_CXX" ||
21150 test -n "$runpath_var_CXX" ||
21151 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21152
21153 # We can hardcode non-existent directories.
21154 if test "$hardcode_direct_CXX" != no &&
21155 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21156 # have to relink, otherwise we might link with an installed library
21157 # when we should be linking with a yet-to-be-installed one
21158 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21159 test "$hardcode_minus_L_CXX" != no; then
21160 # Linking always hardcodes the temporary library directory.
21161 hardcode_action_CXX=relink
21162 else
21163 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21164 hardcode_action_CXX=immediate
21165 fi
21166else
21167 # We cannot hardcode anything, or else we can only hardcode existing
21168 # directories.
21169 hardcode_action_CXX=unsupported
21170fi
21171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21172$as_echo "$hardcode_action_CXX" >&6; }
21173
21174if test "$hardcode_action_CXX" = relink ||
21175 test "$inherit_rpath_CXX" = yes; then
21176 # Fast installation is not supported
21177 enable_fast_install=no
21178elif test "$shlibpath_overrides_runpath" = yes ||
21179 test "$enable_shared" = no; then
21180 # Fast installation is not necessary
21181 enable_fast_install=needless
21182fi
21183
21184
21185
21186
21187
21188
21189
21190 fi # test -n "$compiler"
21191
21192 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000021193 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000021194 LDCXX=$LD
21195 LD=$lt_save_LD
21196 GCC=$lt_save_GCC
21197 with_gnu_ld=$lt_save_with_gnu_ld
21198 lt_cv_path_LDCXX=$lt_cv_path_LD
21199 lt_cv_path_LD=$lt_save_path_LD
21200 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21201 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21202fi # test "$_lt_caught_CXX_error" != yes
21203
21204ac_ext=c
21205ac_cpp='$CPP $CPPFLAGS'
21206ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21207ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21208ac_compiler_gnu=$ac_cv_c_compiler_gnu
21209
21210
21211
21212
21213
21214
21215
21216
21217
21218
21219
21220
21221
cristy99bd5232011-12-07 14:38:20 +000021222
21223
cristy73bd4a52010-10-05 11:24:23 +000021224 ac_config_commands="$ac_config_commands libtool"
21225
21226
21227
21228
21229# Only expand once:
21230
21231
21232
cristy3ed852e2009-09-05 21:47:34 +000021233
21234
cristy3ed852e2009-09-05 21:47:34 +000021235# Check to see if building shared libraries
21236libtool_build_shared_libs='no'
21237if test "$enable_shared" = 'yes'; then
21238 libtool_build_shared_libs='yes'
21239fi
21240
21241# Check to see if building static libraries
21242libtool_build_static_libs='no'
21243if test "$enable_static" = 'yes'; then
21244 libtool_build_static_libs='yes'
21245fi
21246
cristy73bd4a52010-10-05 11:24:23 +000021247 if test "${libtool_build_shared_libs}" = 'yes'; then
21248 WITH_SHARED_LIBS_TRUE=
21249 WITH_SHARED_LIBS_FALSE='#'
21250else
21251 WITH_SHARED_LIBS_TRUE='#'
21252 WITH_SHARED_LIBS_FALSE=
21253fi
21254
cristy3ed852e2009-09-05 21:47:34 +000021255#
21256# Enable support for building loadable modules
21257#
cristyaf4cbf32012-10-16 23:47:41 +000021258build_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000021259
21260# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000021261if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021262 withval=$with_modules; with_modules=$withval
21263else
cristy5a1cefd2010-01-06 20:42:35 +000021264 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000021265fi
21266
21267
21268# Only allow building loadable modules if we are building shared libraries
21269if test "$with_modules" != 'no' ; then
21270 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000021271 { $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 +000021272$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
cristyc6722092012-10-14 00:19:31 +000021273 build_modules='no'
21274 else
21275 build_modules='yes'
21276 fi
cristy3ed852e2009-09-05 21:47:34 +000021277fi
cristyc6722092012-10-14 00:19:31 +000021278if test "$build_modules" != 'no' ; then
cristy3ed852e2009-09-05 21:47:34 +000021279
cristy8b350f62009-11-15 23:12:43 +000021280$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021281
cristyfa161182012-12-19 15:45:28 +000021282 MAGICK_FEATURES="$MAGICK_FEATURES Modules"
cristy3ed852e2009-09-05 21:47:34 +000021283fi
cristyc6722092012-10-14 00:19:31 +000021284 if test "$build_modules" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +000021285 WITH_MODULES_TRUE=
21286 WITH_MODULES_FALSE='#'
21287else
21288 WITH_MODULES_TRUE='#'
21289 WITH_MODULES_FALSE=
21290fi
21291
cristy3ed852e2009-09-05 21:47:34 +000021292
cristy3ed852e2009-09-05 21:47:34 +000021293# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000021294# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000021295# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000021296if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021297 enableval=$enable_delegate_build; enable_delegate_build=$enableval
21298else
21299 enable_delegate_build='no'
21300fi
21301
21302
21303# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000021304if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021305 enableval=$enable_deprecated; enable_deprecated=$enableval
21306else
21307 enable_deprecated='no'
21308fi
21309
21310
21311if test "$enable_deprecated" = 'yes'; then
21312
cristy8b350f62009-11-15 23:12:43 +000021313$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021314
21315else
21316 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
21317fi
21318
21319# Build a version of ImageMagick which operates uninstalled.
21320# Used to build distributions located via MAGICK_HOME / executable path
21321# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000021322if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021323 enableval=$enable_installed; enable_installed=$enableval
21324else
21325 enable_installed='yes'
21326fi
21327
21328
21329if test "$enable_installed" = 'yes'; then
21330
cristy8b350f62009-11-15 23:12:43 +000021331$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021332
21333else
21334 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
21335fi
21336
21337# Permit enciphering and deciphering image pixels.
21338# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000021339if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021340 enableval=$enable_cipher; enable_cipher=$enableval
21341else
21342 enable_cipher='yes'
21343fi
21344
21345
21346if test "$enable_cipher" = 'yes'; then
21347
cristy8b350f62009-11-15 23:12:43 +000021348$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021349
21350fi
21351
cristy6e3607c2011-09-13 13:59:17 +000021352# Build a zero-configuration version of ImageMagick.
21353# Check whether --enable-zero-configuration was given.
21354if test "${enable_zero_configuration+set}" = set; then :
21355 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
cristy3ed852e2009-09-05 21:47:34 +000021356else
cristy6e3607c2011-09-13 13:59:17 +000021357 enable_zero_configuration='no'
cristy3ed852e2009-09-05 21:47:34 +000021358fi
21359
21360
cristy6e3607c2011-09-13 13:59:17 +000021361if test "$enable_zero_configuration" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021362
cristy6e3607c2011-09-13 13:59:17 +000021363$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021364
cristy81af5702011-09-13 14:20:58 +000021365 MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021366fi
21367
21368# Build a high dynamic range version of ImageMagick.
21369# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000021370if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021371 enableval=$enable_hdri; enable_hdri=$enableval
21372else
cristy191c0b72012-08-12 16:29:52 +000021373 enable_hdri='yes'
cristy3ed852e2009-09-05 21:47:34 +000021374fi
21375
21376
21377MAGICK_HDRI=""
21378if test "$enable_hdri" = 'yes'; then
21379 MAGICK_HDRI="HDRI"
cristye52f12f2012-12-31 15:32:36 +000021380 magick_hdri_enable='1';
cristyfd9dcd42010-08-08 18:07:02 +000021381 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristye52f12f2012-12-31 15:32:36 +000021382else
21383 magick_hdri_enable='0'
cristy3ed852e2009-09-05 21:47:34 +000021384fi
21385
cristye52f12f2012-12-31 15:32:36 +000021386cat >>confdefs.h <<_ACEOF
21387#define HDRI_ENABLE_OBSOLETE_IN_H $magick_hdri_enable
21388_ACEOF
21389
21390MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
21391CFLAGS="$CFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristy72062382012-12-31 16:49:52 +000021392CPPFLAGS="$CPPFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristye52f12f2012-12-31 15:32:36 +000021393
cristy3ed852e2009-09-05 21:47:34 +000021394# Build a version of ImageMagick with assert statements.
21395# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000021396if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021397 enableval=$enable_assert; enable_assert=$enableval
21398else
21399 enable_assert='yes'
21400fi
21401
21402
21403if test "$enable_assert" = 'no'; then
21404
cristy8b350f62009-11-15 23:12:43 +000021405$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021406
21407fi
21408
cristya448bd22011-10-14 12:38:13 +000021409# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
cristy73bd4a52010-10-05 11:24:23 +000021410
21411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
21412$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21413 # Check whether --enable-maintainer-mode was given.
21414if test "${enable_maintainer_mode+set}" = set; then :
21415 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21416else
21417 USE_MAINTAINER_MODE=no
21418fi
21419
21420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
21421$as_echo "$USE_MAINTAINER_MODE" >&6; }
21422 if test $USE_MAINTAINER_MODE = yes; then
21423 MAINTAINER_MODE_TRUE=
21424 MAINTAINER_MODE_FALSE='#'
21425else
21426 MAINTAINER_MODE_TRUE='#'
21427 MAINTAINER_MODE_FALSE=
21428fi
21429
21430 MAINT=$MAINTAINER_MODE_TRUE
21431
21432
cristy3ed852e2009-09-05 21:47:34 +000021433
cristy944e51f2013-04-16 18:45:02 +000021434# Enable hugepages support
21435# Check whether --enable-hugepages was given.
21436if test "${enable_hugepages+set}" = set; then :
21437 enableval=$enable_hugepages; enable_hugepages=$enableval
21438else
21439 enable_hugepages='no'
21440fi
21441
21442
cristy3ed852e2009-09-05 21:47:34 +000021443# Enable ccmalloc memory debugging support
21444# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000021445if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021446 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
21447else
21448 enable_ccmalloc='no'
21449fi
21450
21451
21452# Enable Electric Fence memory debugging support
21453# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000021454if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021455 enableval=$enable_efence; enable_efence=$enableval
21456else
21457 enable_efence='no'
21458fi
21459
21460
21461# Enable prof-based profiling support
21462# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000021463if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021464 enableval=$enable_prof; enable_prof=$enableval
21465else
21466 enable_prof='no'
21467fi
21468
21469
21470# Enable gprof-based profiling support
21471# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000021472if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021473 enableval=$enable_gprof; enable_gprof=$enableval
21474else
21475 enable_gprof='no'
21476fi
21477
21478
21479# Enable gcov-based profiling support
21480# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000021481if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021482 enableval=$enable_gcov; enable_gcov=$enableval
21483else
21484 enable_gcov='no'
21485fi
21486
21487
21488enable_profiling='no'
21489if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21490 enable_profiling='yes'
21491 if test "$libtool_build_shared_libs" = 'yes'; then
21492 echo "Warning: Can not profile code using shared libraries"
21493 fi
21494fi
21495
21496# Magick API method prefix
21497
21498# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000021499if test "${with_method_prefix+set}" = set; then :
cristyfc3d0222012-02-07 15:05:57 +000021500 withval=$with_method_prefix; with_method_prefix=$withval
cristy3ed852e2009-09-05 21:47:34 +000021501else
cristyfc3d0222012-02-07 15:05:57 +000021502 with_method_prefix='no'
cristy3ed852e2009-09-05 21:47:34 +000021503fi
21504
21505
cristyfc3d0222012-02-07 15:05:57 +000021506if test "$with_method_prefix" != 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000021507
21508cat >>confdefs.h <<_ACEOF
21509#define NAMESPACE_PREFIX $with_method_prefix
21510_ACEOF
21511
cristyfc3d0222012-02-07 15:05:57 +000021512 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix "
cristy3ed852e2009-09-05 21:47:34 +000021513fi
21514
cristy71d8c202012-03-20 17:05:01 +000021515# Enable legacy support (default no)
21516# Check whether --enable-legacy-support was given.
21517if test "${enable_legacy_support+set}" = set; then :
21518 enableval=$enable_legacy_support; with_legacy_support=$enableval
21519else
21520 with_legacy_support='no'
21521fi
21522
21523 if test "$with_legacy_support" != 'no'; then
21524 LEGACY_SUPPORT_TRUE=
21525 LEGACY_SUPPORT_FALSE='#'
21526else
21527 LEGACY_SUPPORT_TRUE='#'
21528 LEGACY_SUPPORT_FALSE=
21529fi
21530
21531
cristy3ed852e2009-09-05 21:47:34 +000021532# Number of bits in a Quantum
21533
21534# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000021535if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021536 withval=$with_quantum_depth; with_quantum_depth=$withval
21537else
21538 with_quantum_depth=16
21539fi
21540
21541
21542if test "$with_quantum_depth" != '8'; then
21543 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21544fi
21545
21546case "${with_quantum_depth}" in
21547 8 ) ;;
21548 16 ) ;;
21549 32 ) ;;
21550 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000021551 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021552esac
21553QUANTUM_DEPTH="$with_quantum_depth"
21554
21555cat >>confdefs.h <<_ACEOF
cristye52f12f2012-12-31 15:32:36 +000021556#define QUANTUM_DEPTH_OBSOLETE_IN_H $QUANTUM_DEPTH
cristy3ed852e2009-09-05 21:47:34 +000021557_ACEOF
21558
cristya371edf2013-02-06 13:42:17 +000021559MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristye52f12f2012-12-31 15:32:36 +000021560CFLAGS="$CFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy72062382012-12-31 16:49:52 +000021561CPPFLAGS="$CPPFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy3ed852e2009-09-05 21:47:34 +000021562
cristy01ff9f32012-12-01 18:15:29 +000021563# define a lib suffix for abi purpose
cristy7a26abd2012-12-03 00:18:59 +000021564MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}"
cristye386d192012-12-01 21:05:20 +000021565if test "$enable_hdri" = 'yes'; then
cristy7a26abd2012-12-03 00:18:59 +000021566 MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}${MAGICK_HDRI}"
cristye386d192012-12-01 21:05:20 +000021567fi
cristy01ff9f32012-12-01 18:15:29 +000021568
21569
cristy3ed852e2009-09-05 21:47:34 +000021570# Set pixel cache threshold
21571
21572# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000021573if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021574 withval=$with_cache; with_cache=$withval
21575else
21576 with_cache=''
21577fi
21578
21579
21580if test "$with_cache" != ''; then
21581
21582cat >>confdefs.h <<_ACEOF
21583#define PixelCacheThreshold $with_cache
21584_ACEOF
21585
21586 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21587fi
21588
21589# Disable/Enable support for full delegate paths
21590
21591# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000021592if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021593 withval=$with_frozenpaths; with_frozenpaths=$withval
21594else
21595 with_frozenpaths='no'
21596fi
21597
21598
21599# Enable build/install of Magick++
21600
21601# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000021602if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021603 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21604else
21605 with_magick_plus_plus='yes'
21606fi
21607
21608
cristy3a75f062012-09-08 23:29:40 +000021609# Encode the this name into the shared library.
21610
21611# Check whether --with-package-release-name was given.
21612if test "${with_package_release_name+set}" = set; then :
21613 withval=$with_package_release_name; MAGICK_LT_RELEASE_OPTS="-release $withval"
21614fi
21615
21616
21617
cristy3ed852e2009-09-05 21:47:34 +000021618# Disable build/install of PerlMagick.
21619
21620# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000021621if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021622 withval=$with_perl; with_perl=$withval
21623else
cristyb5f4e2f2010-04-25 00:49:11 +000021624 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000021625fi
21626
21627
21628# Options to pass when configuring PerlMagick
21629
21630# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000021631if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000021632 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000021633fi
21634
21635
cristy3ed852e2009-09-05 21:47:34 +000021636
21637# Enable umem, object-caching memory allocation library.
21638
21639# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000021640if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021641 withval=$with_umem; with_umem=$withval
21642else
21643 with_umem='no'
21644fi
21645
21646if test "$with_umem" != 'yes' ; then
21647 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21648fi
21649
21650#
21651# Specify path to shared libstdc++ if not in normal location
21652#
21653
21654# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000021655if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021656 withval=$with_libstdc; with_libstdc=$withval
21657else
21658 with_libstdc=''
21659fi
21660
21661
21662if test "$with_libstdc" != ''; then
21663 if test -d "$with_libstdc"; then
21664 LIBSTDCLDFLAGS="-L$with_libstdc"
21665 fi
21666fi
21667
21668
21669# Does gcc required -traditional?
21670if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000021671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021672$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021673if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021674 $as_echo_n "(cached) " >&6
21675else
21676 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000021677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021678/* end confdefs.h. */
21679#include <sgtty.h>
21680Autoconf TIOCGETP
21681_ACEOF
21682if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021683 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021684 ac_cv_prog_gcc_traditional=yes
21685else
21686 ac_cv_prog_gcc_traditional=no
21687fi
21688rm -f conftest*
21689
21690
21691 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000021692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021693/* end confdefs.h. */
21694#include <termio.h>
21695Autoconf TCGETA
21696_ACEOF
21697if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021698 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021699 ac_cv_prog_gcc_traditional=yes
21700fi
21701rm -f conftest*
21702
21703 fi
21704fi
cristy8b350f62009-11-15 23:12:43 +000021705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021706$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21707 if test $ac_cv_prog_gcc_traditional = yes; then
21708 CC="$CC -traditional"
21709 fi
21710fi
21711
21712
21713########
21714#
21715# Set defines required to build DLLs and modules using MinGW
21716#
21717########
21718# These options are set for multi-thread DLL module build
21719# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
21720# module: _DLL
21721# executable/Magick++: _DLL _MAGICKMOD_
21722MODULE_EXTRA_CPPFLAGS=''
21723LIBRARY_EXTRA_CPPFLAGS=''
21724if test "${native_win32_build}" = 'yes'; then
21725 if test "${libtool_build_shared_libs}" = 'yes'; then
21726 CPPFLAGS="$CPPFLAGS -D_DLL"
21727 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
21728 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
21729 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
cristyc6722092012-10-14 00:19:31 +000021730 if test "$build_modules" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021731 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
21732 else
21733 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21734 fi
21735 else
21736 CPPFLAGS="$CPPFLAGS -D_LIB"
21737 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
21738 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
21739 fi
21740 if test "$with_threads" = 'yes'; then
21741 CPPFLAGS="$CPPFLAGS -D_MT"
21742 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
21743 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
21744 fi
21745fi
21746
21747
21748
21749# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000021750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000021751$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021752if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021753 $as_echo_n "(cached) " >&6
21754else
cristy8b350f62009-11-15 23:12:43 +000021755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021756/* end confdefs.h. */
21757#include <stdlib.h>
21758#include <stdarg.h>
21759#include <string.h>
21760#include <float.h>
21761
21762int
21763main ()
21764{
21765
21766 ;
21767 return 0;
21768}
21769_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021770if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021771 ac_cv_header_stdc=yes
21772else
cristy8b350f62009-11-15 23:12:43 +000021773 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021774fi
cristy3ed852e2009-09-05 21:47:34 +000021775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21776
21777if test $ac_cv_header_stdc = yes; then
21778 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021780/* end confdefs.h. */
21781#include <string.h>
21782
21783_ACEOF
21784if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021785 $EGREP "memchr" >/dev/null 2>&1; then :
21786
cristy3ed852e2009-09-05 21:47:34 +000021787else
21788 ac_cv_header_stdc=no
21789fi
21790rm -f conftest*
21791
21792fi
21793
21794if test $ac_cv_header_stdc = yes; then
21795 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021797/* end confdefs.h. */
21798#include <stdlib.h>
21799
21800_ACEOF
21801if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021802 $EGREP "free" >/dev/null 2>&1; then :
21803
cristy3ed852e2009-09-05 21:47:34 +000021804else
21805 ac_cv_header_stdc=no
21806fi
21807rm -f conftest*
21808
21809fi
21810
21811if test $ac_cv_header_stdc = yes; then
21812 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000021813 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021814 :
21815else
cristy8b350f62009-11-15 23:12:43 +000021816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021817/* end confdefs.h. */
21818#include <ctype.h>
21819#include <stdlib.h>
21820#if ((' ' & 0x0FF) == 0x020)
21821# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21822# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21823#else
21824# define ISLOWER(c) \
21825 (('a' <= (c) && (c) <= 'i') \
21826 || ('j' <= (c) && (c) <= 'r') \
21827 || ('s' <= (c) && (c) <= 'z'))
21828# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21829#endif
21830
21831#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21832int
21833main ()
21834{
21835 int i;
21836 for (i = 0; i < 256; i++)
21837 if (XOR (islower (i), ISLOWER (i))
21838 || toupper (i) != TOUPPER (i))
21839 return 2;
21840 return 0;
21841}
21842_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021843if ac_fn_c_try_run "$LINENO"; then :
21844
cristy3ed852e2009-09-05 21:47:34 +000021845else
cristy8b350f62009-11-15 23:12:43 +000021846 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021847fi
cristy8b350f62009-11-15 23:12:43 +000021848rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21849 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021850fi
21851
cristy3ed852e2009-09-05 21:47:34 +000021852fi
21853fi
cristy8b350f62009-11-15 23:12:43 +000021854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000021855$as_echo "$ac_cv_header_stdc" >&6; }
21856if test $ac_cv_header_stdc = yes; then
21857
cristy8b350f62009-11-15 23:12:43 +000021858$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021859
21860fi
21861
21862if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000021863 { $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 +000021864 header files. Compilation cannot proceed. Please install the ANSI C
21865 headers and rerun this script." >&5
21866$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
21867 header files. Compilation cannot proceed. Please install the ANSI C
21868 headers and rerun this script." >&2;};
21869fi
cristya0b81c32010-01-22 02:54:33 +000021870
21871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
21872$as_echo_n "checking whether to enable assertions... " >&6; }
21873 # Check whether --enable-assert was given.
21874if test "${enable_assert+set}" = set; then :
21875 enableval=$enable_assert; ac_enable_assert=$enableval
21876 if test "x$enableval" = xno; then :
21877
21878$as_echo "#define NDEBUG 1" >>confdefs.h
21879
21880elif test "x$enableval" != xyes; then :
21881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
21882$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
21883 ac_enable_assert=yes
21884fi
21885else
21886 ac_enable_assert=yes
21887fi
21888
21889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
21890$as_echo "$ac_enable_assert" >&6; }
21891
cristy3ed852e2009-09-05 21:47:34 +000021892ac_header_dirent=no
21893for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21894 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000021895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000021896$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021897if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021898 $as_echo_n "(cached) " >&6
21899else
cristy8b350f62009-11-15 23:12:43 +000021900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021901/* end confdefs.h. */
21902#include <sys/types.h>
21903#include <$ac_hdr>
21904
21905int
21906main ()
21907{
21908if ((DIR *) 0)
21909return 0;
21910 ;
21911 return 0;
21912}
21913_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021914if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021915 eval "$as_ac_Header=yes"
21916else
cristy8b350f62009-11-15 23:12:43 +000021917 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000021918fi
cristy3ed852e2009-09-05 21:47:34 +000021919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21920fi
cristy8b350f62009-11-15 23:12:43 +000021921eval ac_res=\$$as_ac_Header
21922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000021923$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000021924if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021925 cat >>confdefs.h <<_ACEOF
21926#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21927_ACEOF
21928
21929ac_header_dirent=$ac_hdr; break
21930fi
21931
21932done
21933# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21934if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000021935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021936$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021937if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021938 $as_echo_n "(cached) " >&6
21939else
21940 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021941cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021942/* end confdefs.h. */
21943
21944/* Override any GCC internal prototype to avoid an error.
21945 Use char because int might match the return type of a GCC
21946 builtin and then its argument prototype would still apply. */
21947#ifdef __cplusplus
21948extern "C"
21949#endif
21950char opendir ();
21951int
21952main ()
21953{
21954return opendir ();
21955 ;
21956 return 0;
21957}
21958_ACEOF
21959for ac_lib in '' dir; do
21960 if test -z "$ac_lib"; then
21961 ac_res="none required"
21962 else
21963 ac_res=-l$ac_lib
21964 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21965 fi
cristy8b350f62009-11-15 23:12:43 +000021966 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021967 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021968fi
cristy8b350f62009-11-15 23:12:43 +000021969rm -f core conftest.err conftest.$ac_objext \
21970 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021971 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021972 break
21973fi
21974done
cristyda16f162011-02-19 23:52:17 +000021975if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021976
cristy3ed852e2009-09-05 21:47:34 +000021977else
21978 ac_cv_search_opendir=no
21979fi
21980rm conftest.$ac_ext
21981LIBS=$ac_func_search_save_LIBS
21982fi
cristy8b350f62009-11-15 23:12:43 +000021983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021984$as_echo "$ac_cv_search_opendir" >&6; }
21985ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021986if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021987 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21988
21989fi
21990
21991else
cristy8b350f62009-11-15 23:12:43 +000021992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021993$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021994if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021995 $as_echo_n "(cached) " >&6
21996else
21997 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021998cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021999/* end confdefs.h. */
22000
22001/* Override any GCC internal prototype to avoid an error.
22002 Use char because int might match the return type of a GCC
22003 builtin and then its argument prototype would still apply. */
22004#ifdef __cplusplus
22005extern "C"
22006#endif
22007char opendir ();
22008int
22009main ()
22010{
22011return opendir ();
22012 ;
22013 return 0;
22014}
22015_ACEOF
22016for ac_lib in '' x; do
22017 if test -z "$ac_lib"; then
22018 ac_res="none required"
22019 else
22020 ac_res=-l$ac_lib
22021 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22022 fi
cristy8b350f62009-11-15 23:12:43 +000022023 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022024 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000022025fi
cristy8b350f62009-11-15 23:12:43 +000022026rm -f core conftest.err conftest.$ac_objext \
22027 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000022028 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022029 break
22030fi
22031done
cristyda16f162011-02-19 23:52:17 +000022032if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000022033
cristy3ed852e2009-09-05 21:47:34 +000022034else
22035 ac_cv_search_opendir=no
22036fi
22037rm conftest.$ac_ext
22038LIBS=$ac_func_search_save_LIBS
22039fi
cristy8b350f62009-11-15 23:12:43 +000022040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022041$as_echo "$ac_cv_search_opendir" >&6; }
22042ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000022043if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000022044 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22045
22046fi
22047
22048fi
22049
22050
22051# Check additional headers
cristy03f187e2013-01-24 00:22:19 +000022052for 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 +000022053do :
22054 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22055ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000022056if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022057 cat >>confdefs.h <<_ACEOF
22058#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22059_ACEOF
22060
22061fi
22062
22063done
22064
22065
22066########
22067#
22068# Checks for typedefs, structures, and compiler characteristics.
22069#
22070########
22071
cristy8b350f62009-11-15 23:12:43 +000022072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000022073$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022074if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022075 $as_echo_n "(cached) " >&6
22076else
cristy8b350f62009-11-15 23:12:43 +000022077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022078/* end confdefs.h. */
22079
cristy14fefe52012-05-21 00:59:18 +000022080 #include <stdbool.h>
22081 #ifndef bool
22082 "error: bool is not defined"
22083 #endif
22084 #ifndef false
22085 "error: false is not defined"
22086 #endif
22087 #if false
22088 "error: false is not 0"
22089 #endif
22090 #ifndef true
22091 "error: true is not defined"
22092 #endif
22093 #if true != 1
22094 "error: true is not 1"
22095 #endif
22096 #ifndef __bool_true_false_are_defined
22097 "error: __bool_true_false_are_defined is not defined"
22098 #endif
cristy3ed852e2009-09-05 21:47:34 +000022099
cristy14fefe52012-05-21 00:59:18 +000022100 struct s { _Bool s: 1; _Bool t; } s;
cristy3ed852e2009-09-05 21:47:34 +000022101
cristy14fefe52012-05-21 00:59:18 +000022102 char a[true == 1 ? 1 : -1];
22103 char b[false == 0 ? 1 : -1];
22104 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
22105 char d[(bool) 0.5 == true ? 1 : -1];
22106 /* See body of main program for 'e'. */
22107 char f[(_Bool) 0.0 == false ? 1 : -1];
22108 char g[true];
22109 char h[sizeof (_Bool)];
22110 char i[sizeof s.t];
22111 enum { j = false, k = true, l = false * true, m = true * 256 };
22112 /* The following fails for
22113 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
22114 _Bool n[m];
22115 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
22116 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
22117 /* Catch a bug in an HP-UX C compiler. See
22118 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
22119 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
22120 */
22121 _Bool q = true;
22122 _Bool *pq = &q;
cristy3ed852e2009-09-05 21:47:34 +000022123
22124int
22125main ()
22126{
22127
cristy14fefe52012-05-21 00:59:18 +000022128 bool e = &s;
22129 *pq |= q;
22130 *pq |= ! q;
22131 /* Refer to every declared value, to avoid compiler optimizations. */
22132 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
22133 + !m + !n + !o + !p + !q + !pq);
cristy3ed852e2009-09-05 21:47:34 +000022134
22135 ;
22136 return 0;
22137}
22138_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022139if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022140 ac_cv_header_stdbool_h=yes
22141else
cristy8b350f62009-11-15 23:12:43 +000022142 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000022143fi
cristy3ed852e2009-09-05 21:47:34 +000022144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22145fi
cristy8b350f62009-11-15 23:12:43 +000022146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000022147$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy14fefe52012-05-21 00:59:18 +000022148 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000022149if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000022150
22151cat >>confdefs.h <<_ACEOF
22152#define HAVE__BOOL 1
22153_ACEOF
22154
22155
22156fi
22157
cristy14fefe52012-05-21 00:59:18 +000022158
cristy3ed852e2009-09-05 21:47:34 +000022159if test $ac_cv_header_stdbool_h = yes; then
22160
cristy8b350f62009-11-15 23:12:43 +000022161$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022162
22163fi
22164
cristy8b350f62009-11-15 23:12:43 +000022165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022166$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022167if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022168 $as_echo_n "(cached) " >&6
22169else
cristy8b350f62009-11-15 23:12:43 +000022170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022171/* end confdefs.h. */
22172
22173int
22174main ()
22175{
22176
22177volatile int x;
22178int * volatile y = (int *) 0;
22179return !x && !y;
22180 ;
22181 return 0;
22182}
22183_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022184if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022185 ac_cv_c_volatile=yes
22186else
cristy8b350f62009-11-15 23:12:43 +000022187 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000022188fi
cristy3ed852e2009-09-05 21:47:34 +000022189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22190fi
cristy8b350f62009-11-15 23:12:43 +000022191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022192$as_echo "$ac_cv_c_volatile" >&6; }
22193if test $ac_cv_c_volatile = no; then
22194
cristy8b350f62009-11-15 23:12:43 +000022195$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022196
22197fi
22198
cristy8b350f62009-11-15 23:12:43 +000022199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000022200$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022201if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022202 $as_echo_n "(cached) " >&6
22203else
cristy8b350f62009-11-15 23:12:43 +000022204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022205/* end confdefs.h. */
22206#define x(y) #y
22207
22208char *s = x(teststring);
22209_ACEOF
22210if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022211 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022212 ac_cv_c_stringize=no
22213else
22214 ac_cv_c_stringize=yes
22215fi
22216rm -f conftest*
22217
22218fi
cristy8b350f62009-11-15 23:12:43 +000022219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000022220$as_echo "$ac_cv_c_stringize" >&6; }
22221if test $ac_cv_c_stringize = yes; then
22222
cristy8b350f62009-11-15 23:12:43 +000022223$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022224
22225fi
22226
cristy8b350f62009-11-15 23:12:43 +000022227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022228$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022229if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022230 $as_echo_n "(cached) " >&6
22231else
cristy8b350f62009-11-15 23:12:43 +000022232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022233/* end confdefs.h. */
22234#include <sys/types.h>
22235#include <sys/stat.h>
22236
22237#if defined S_ISBLK && defined S_IFDIR
22238extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22239#endif
22240
22241#if defined S_ISBLK && defined S_IFCHR
22242extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22243#endif
22244
22245#if defined S_ISLNK && defined S_IFREG
22246extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22247#endif
22248
22249#if defined S_ISSOCK && defined S_IFREG
22250extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22251#endif
22252
22253_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022254if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022255 ac_cv_header_stat_broken=no
22256else
cristy8b350f62009-11-15 23:12:43 +000022257 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000022258fi
cristy3ed852e2009-09-05 21:47:34 +000022259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22260fi
cristy8b350f62009-11-15 23:12:43 +000022261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022262$as_echo "$ac_cv_header_stat_broken" >&6; }
22263if test $ac_cv_header_stat_broken = yes; then
22264
cristy8b350f62009-11-15 23:12:43 +000022265$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022266
22267fi
22268
cristy8b350f62009-11-15 23:12:43 +000022269{ $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 +000022270$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022271if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022272 $as_echo_n "(cached) " >&6
22273else
cristy8b350f62009-11-15 23:12:43 +000022274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022275/* end confdefs.h. */
22276#include <sys/types.h>
22277#include <sys/time.h>
22278#include <time.h>
22279
22280int
22281main ()
22282{
22283if ((struct tm *) 0)
22284return 0;
22285 ;
22286 return 0;
22287}
22288_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022289if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022290 ac_cv_header_time=yes
22291else
cristy8b350f62009-11-15 23:12:43 +000022292 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000022293fi
cristy3ed852e2009-09-05 21:47:34 +000022294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22295fi
cristy8b350f62009-11-15 23:12:43 +000022296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000022297$as_echo "$ac_cv_header_time" >&6; }
22298if test $ac_cv_header_time = yes; then
22299
cristy8b350f62009-11-15 23:12:43 +000022300$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022301
22302fi
22303
cristy8b350f62009-11-15 23:12:43 +000022304{ $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 +000022305$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022306if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022307 $as_echo_n "(cached) " >&6
22308else
cristy8b350f62009-11-15 23:12:43 +000022309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022310/* end confdefs.h. */
22311#include <sys/types.h>
22312#include <time.h>
22313
22314int
22315main ()
22316{
22317struct tm tm;
22318 int *p = &tm.tm_sec;
22319 return !p;
22320 ;
22321 return 0;
22322}
22323_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022324if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022325 ac_cv_struct_tm=time.h
22326else
cristy8b350f62009-11-15 23:12:43 +000022327 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000022328fi
cristy3ed852e2009-09-05 21:47:34 +000022329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22330fi
cristy8b350f62009-11-15 23:12:43 +000022331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000022332$as_echo "$ac_cv_struct_tm" >&6; }
22333if test $ac_cv_struct_tm = sys/time.h; then
22334
cristy8b350f62009-11-15 23:12:43 +000022335$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022336
22337fi
22338
cristy92703d82010-04-26 00:18:18 +000022339ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
22340#include <$ac_cv_struct_tm>
22341
22342"
cristyda16f162011-02-19 23:52:17 +000022343if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022344
22345cat >>confdefs.h <<_ACEOF
22346#define HAVE_STRUCT_TM_TM_ZONE 1
22347_ACEOF
22348
22349
22350fi
22351
22352if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22353
22354$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
22355
22356else
22357 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
22358"
cristyda16f162011-02-19 23:52:17 +000022359if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022360 ac_have_decl=1
22361else
22362 ac_have_decl=0
22363fi
22364
22365cat >>confdefs.h <<_ACEOF
22366#define HAVE_DECL_TZNAME $ac_have_decl
22367_ACEOF
22368
22369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
22370$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022371if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000022372 $as_echo_n "(cached) " >&6
22373else
22374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22375/* end confdefs.h. */
22376#include <time.h>
22377#if !HAVE_DECL_TZNAME
22378extern char *tzname[];
22379#endif
22380
22381int
22382main ()
22383{
22384return tzname[0][0];
22385 ;
22386 return 0;
22387}
22388_ACEOF
22389if ac_fn_c_try_link "$LINENO"; then :
22390 ac_cv_var_tzname=yes
22391else
22392 ac_cv_var_tzname=no
22393fi
22394rm -f core conftest.err conftest.$ac_objext \
22395 conftest$ac_exeext conftest.$ac_ext
22396fi
22397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22398$as_echo "$ac_cv_var_tzname" >&6; }
22399 if test $ac_cv_var_tzname = yes; then
22400
22401$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
22402
22403 fi
22404fi
22405
cristy8b350f62009-11-15 23:12:43 +000022406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000022407$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022408if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022409 $as_echo_n "(cached) " >&6
22410else
22411 echo '#! /bin/cat
22412exit 69
22413' >conftest
22414chmod u+x conftest
22415(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
22416if test $? -ne 69; then
22417 ac_cv_sys_interpreter=yes
22418else
22419 ac_cv_sys_interpreter=no
22420fi
22421rm -f conftest
22422fi
cristy8b350f62009-11-15 23:12:43 +000022423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000022424$as_echo "$ac_cv_sys_interpreter" >&6; }
22425interpval=$ac_cv_sys_interpreter
22426
22427
cristye80f9cb2013-01-09 01:09:31 +000022428#
22429# Checks for language qualifiers and semantics.
22430#
22431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
22432$as_echo_n "checking whether char is unsigned... " >&6; }
22433if ${ac_cv_c_char_unsigned+:} false; then :
22434 $as_echo_n "(cached) " >&6
22435else
22436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22437/* end confdefs.h. */
22438$ac_includes_default
22439int
22440main ()
22441{
22442static int test_array [1 - 2 * !(((char) -1) < 0)];
22443test_array [0] = 0;
22444return test_array [0];
22445
22446 ;
22447 return 0;
22448}
22449_ACEOF
22450if ac_fn_c_try_compile "$LINENO"; then :
22451 ac_cv_c_char_unsigned=no
22452else
22453 ac_cv_c_char_unsigned=yes
22454fi
22455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22456fi
22457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
22458$as_echo "$ac_cv_c_char_unsigned" >&6; }
22459if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
22460 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
22461
22462fi
22463
22464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
22465$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
22466if ${ac_cv_c_const+:} false; then :
22467 $as_echo_n "(cached) " >&6
22468else
22469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22470/* end confdefs.h. */
22471
22472int
22473main ()
22474{
22475
22476#ifndef __cplusplus
22477 /* Ultrix mips cc rejects this sort of thing. */
22478 typedef int charset[2];
22479 const charset cs = { 0, 0 };
22480 /* SunOS 4.1.1 cc rejects this. */
22481 char const *const *pcpcc;
22482 char **ppc;
22483 /* NEC SVR4.0.2 mips cc rejects this. */
22484 struct point {int x, y;};
22485 static struct point const zero = {0,0};
22486 /* AIX XL C 1.02.0.0 rejects this.
22487 It does not let you subtract one const X* pointer from another in
22488 an arm of an if-expression whose if-part is not a constant
22489 expression */
22490 const char *g = "string";
22491 pcpcc = &g + (g ? g-g : 0);
22492 /* HPUX 7.0 cc rejects these. */
22493 ++pcpcc;
22494 ppc = (char**) pcpcc;
22495 pcpcc = (char const *const *) ppc;
22496 { /* SCO 3.2v4 cc rejects this sort of thing. */
22497 char tx;
22498 char *t = &tx;
22499 char const *s = 0 ? (char *) 0 : (char const *) 0;
22500
22501 *t++ = 0;
22502 if (s) return 0;
22503 }
22504 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22505 int x[] = {25, 17};
22506 const int *foo = &x[0];
22507 ++foo;
22508 }
22509 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22510 typedef const int *iptr;
22511 iptr p = 0;
22512 ++p;
22513 }
22514 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
22515 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22516 struct s { int j; const int *ap[3]; } bx;
22517 struct s *b = &bx; b->j = 5;
22518 }
22519 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22520 const int foo = 10;
22521 if (!foo) return 0;
22522 }
22523 return !cs[0] && !zero.x;
22524#endif
22525
22526 ;
22527 return 0;
22528}
22529_ACEOF
22530if ac_fn_c_try_compile "$LINENO"; then :
22531 ac_cv_c_const=yes
22532else
22533 ac_cv_c_const=no
22534fi
22535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22536fi
22537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
22538$as_echo "$ac_cv_c_const" >&6; }
22539if test $ac_cv_c_const = no; then
22540
22541$as_echo "#define const /**/" >>confdefs.h
22542
22543fi
22544
cristy8b350f62009-11-15 23:12:43 +000022545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022546$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022547if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022548 $as_echo_n "(cached) " >&6
22549else
22550 ac_cv_c_inline=no
22551for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000022552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022553/* end confdefs.h. */
22554#ifndef __cplusplus
22555typedef int foo_t;
22556static $ac_kw foo_t static_foo () {return 0; }
22557$ac_kw foo_t foo () {return 0; }
22558#endif
22559
22560_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022561if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022562 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022563fi
cristy3ed852e2009-09-05 21:47:34 +000022564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22565 test "$ac_cv_c_inline" != no && break
22566done
22567
22568fi
cristy8b350f62009-11-15 23:12:43 +000022569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022570$as_echo "$ac_cv_c_inline" >&6; }
22571
cristy3ed852e2009-09-05 21:47:34 +000022572case $ac_cv_c_inline in
22573 inline | yes) ;;
22574 *)
22575 case $ac_cv_c_inline in
22576 no) ac_val=;;
22577 *) ac_val=$ac_cv_c_inline;;
22578 esac
22579 cat >>confdefs.h <<_ACEOF
22580#ifndef __cplusplus
22581#define inline $ac_val
22582#endif
22583_ACEOF
22584 ;;
22585esac
22586
cristy8b350f62009-11-15 23:12:43 +000022587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000022588$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022589if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022590 $as_echo_n "(cached) " >&6
22591else
22592 ac_cv_c_restrict=no
22593 # The order here caters to the fact that C++ does not require restrict.
22594 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000022595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022596/* end confdefs.h. */
22597typedef int * int_ptr;
22598 int foo (int_ptr $ac_kw ip) {
22599 return ip[0];
22600 }
22601int
22602main ()
22603{
22604int s[1];
22605 int * $ac_kw t = s;
22606 t[0] = 0;
22607 return foo(t)
22608 ;
22609 return 0;
22610}
22611_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022612if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022613 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022614fi
cristy3ed852e2009-09-05 21:47:34 +000022615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22616 test "$ac_cv_c_restrict" != no && break
22617 done
22618
22619fi
cristy8b350f62009-11-15 23:12:43 +000022620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000022621$as_echo "$ac_cv_c_restrict" >&6; }
22622
cristy3ed852e2009-09-05 21:47:34 +000022623 case $ac_cv_c_restrict in
22624 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000022625 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022626 ;;
22627 *) cat >>confdefs.h <<_ACEOF
22628#define restrict $ac_cv_c_restrict
22629_ACEOF
22630 ;;
22631 esac
22632
cristye80f9cb2013-01-09 01:09:31 +000022633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
22634$as_echo_n "checking for working volatile... " >&6; }
22635if ${ac_cv_c_volatile+:} false; then :
22636 $as_echo_n "(cached) " >&6
22637else
22638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22639/* end confdefs.h. */
22640
22641int
22642main ()
22643{
22644
22645volatile int x;
22646int * volatile y = (int *) 0;
22647return !x && !y;
22648 ;
22649 return 0;
22650}
22651_ACEOF
22652if ac_fn_c_try_compile "$LINENO"; then :
22653 ac_cv_c_volatile=yes
22654else
22655 ac_cv_c_volatile=no
22656fi
22657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22658fi
22659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
22660$as_echo "$ac_cv_c_volatile" >&6; }
22661if test $ac_cv_c_volatile = no; then
22662
22663$as_echo "#define volatile /**/" >>confdefs.h
22664
22665fi
22666
cristy3ed852e2009-09-05 21:47:34 +000022667
22668# If words are stored with the most significant byte first (like
22669# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000022670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022671$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022672if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022673 $as_echo_n "(cached) " >&6
22674else
22675 ac_cv_c_bigendian=unknown
22676 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000022677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022678/* end confdefs.h. */
22679#ifndef __APPLE_CC__
22680 not a universal capable compiler
22681 #endif
22682 typedef int dummy;
22683
22684_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022685if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022686
22687 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000022688 # there are at least two -arch flags with different values.
22689 ac_arch=
22690 ac_prev=
22691 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22692 if test -n "$ac_prev"; then
22693 case $ac_word in
22694 i?86 | x86_64 | ppc | ppc64)
22695 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22696 ac_arch=$ac_word
22697 else
22698 ac_cv_c_bigendian=universal
22699 break
22700 fi
22701 ;;
22702 esac
22703 ac_prev=
22704 elif test "x$ac_word" = "x-arch"; then
22705 ac_prev=arch
22706 fi
22707 done
cristy3ed852e2009-09-05 21:47:34 +000022708fi
cristy3ed852e2009-09-05 21:47:34 +000022709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22710 if test $ac_cv_c_bigendian = unknown; then
22711 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000022712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022713/* end confdefs.h. */
22714#include <sys/types.h>
22715 #include <sys/param.h>
22716
22717int
22718main ()
22719{
22720#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22721 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22722 && LITTLE_ENDIAN)
22723 bogus endian macros
22724 #endif
22725
22726 ;
22727 return 0;
22728}
22729_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022730if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022731 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022733/* end confdefs.h. */
22734#include <sys/types.h>
22735 #include <sys/param.h>
22736
22737int
22738main ()
22739{
22740#if BYTE_ORDER != BIG_ENDIAN
22741 not big endian
22742 #endif
22743
22744 ;
22745 return 0;
22746}
22747_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022748if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022749 ac_cv_c_bigendian=yes
22750else
cristy8b350f62009-11-15 23:12:43 +000022751 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022752fi
cristy3ed852e2009-09-05 21:47:34 +000022753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022754fi
cristy3ed852e2009-09-05 21:47:34 +000022755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22756 fi
22757 if test $ac_cv_c_bigendian = unknown; then
22758 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000022759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022760/* end confdefs.h. */
22761#include <limits.h>
22762
22763int
22764main ()
22765{
22766#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22767 bogus endian macros
22768 #endif
22769
22770 ;
22771 return 0;
22772}
22773_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022774if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022775 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022777/* end confdefs.h. */
22778#include <limits.h>
22779
22780int
22781main ()
22782{
22783#ifndef _BIG_ENDIAN
22784 not big endian
22785 #endif
22786
22787 ;
22788 return 0;
22789}
22790_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022791if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022792 ac_cv_c_bigendian=yes
22793else
cristy8b350f62009-11-15 23:12:43 +000022794 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022795fi
cristy3ed852e2009-09-05 21:47:34 +000022796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022797fi
cristy3ed852e2009-09-05 21:47:34 +000022798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22799 fi
22800 if test $ac_cv_c_bigendian = unknown; then
22801 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000022802 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022803 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000022804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022805/* end confdefs.h. */
22806short int ascii_mm[] =
22807 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22808 short int ascii_ii[] =
22809 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22810 int use_ascii (int i) {
22811 return ascii_mm[i] + ascii_ii[i];
22812 }
22813 short int ebcdic_ii[] =
22814 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22815 short int ebcdic_mm[] =
22816 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22817 int use_ebcdic (int i) {
22818 return ebcdic_mm[i] + ebcdic_ii[i];
22819 }
22820 extern int foo;
22821
22822int
22823main ()
22824{
22825return use_ascii (foo) == use_ebcdic (foo);
22826 ;
22827 return 0;
22828}
22829_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022830if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022831 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22832 ac_cv_c_bigendian=yes
22833 fi
22834 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22835 if test "$ac_cv_c_bigendian" = unknown; then
22836 ac_cv_c_bigendian=no
22837 else
22838 # finding both strings is unlikely to happen, but who knows?
22839 ac_cv_c_bigendian=unknown
22840 fi
22841 fi
cristy3ed852e2009-09-05 21:47:34 +000022842fi
cristy3ed852e2009-09-05 21:47:34 +000022843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22844else
cristy8b350f62009-11-15 23:12:43 +000022845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022846/* end confdefs.h. */
22847$ac_includes_default
22848int
22849main ()
22850{
22851
22852 /* Are we little or big endian? From Harbison&Steele. */
22853 union
22854 {
22855 long int l;
22856 char c[sizeof (long int)];
22857 } u;
22858 u.l = 1;
22859 return u.c[sizeof (long int) - 1] == 1;
22860
22861 ;
22862 return 0;
22863}
22864_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022865if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022866 ac_cv_c_bigendian=no
22867else
cristy8b350f62009-11-15 23:12:43 +000022868 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000022869fi
cristy8b350f62009-11-15 23:12:43 +000022870rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22871 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022872fi
22873
cristy3ed852e2009-09-05 21:47:34 +000022874 fi
22875fi
cristy8b350f62009-11-15 23:12:43 +000022876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022877$as_echo "$ac_cv_c_bigendian" >&6; }
22878 case $ac_cv_c_bigendian in #(
22879 yes)
cristy8b350f62009-11-15 23:12:43 +000022880 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022881;; #(
22882 no)
22883 ;; #(
22884 universal)
22885
cristy8b350f62009-11-15 23:12:43 +000022886$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022887
22888 ;; #(
22889 *)
cristy98dddb52010-11-04 00:30:15 +000022890 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000022891 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000022892 esac
22893
22894
cristy501c8042011-05-26 17:46:28 +000022895# Define to a suitable type, if standard headers do not define it.
22896ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
22897case $ac_cv_c_int8_t in #(
22898 no|yes) ;; #(
22899 *)
cristy3ed852e2009-09-05 21:47:34 +000022900
22901cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022902#define int8_t $ac_cv_c_int8_t
22903_ACEOF
22904;;
22905esac
22906
22907ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
22908case $ac_cv_c_int16_t in #(
22909 no|yes) ;; #(
22910 *)
22911
22912cat >>confdefs.h <<_ACEOF
22913#define int16_t $ac_cv_c_int16_t
22914_ACEOF
22915;;
22916esac
22917
22918ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
22919case $ac_cv_c_int32_t in #(
22920 no|yes) ;; #(
22921 *)
22922
22923cat >>confdefs.h <<_ACEOF
22924#define int32_t $ac_cv_c_int32_t
22925_ACEOF
22926;;
22927esac
22928
22929ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
22930case $ac_cv_c_int64_t in #(
22931 no|yes) ;; #(
22932 *)
22933
22934cat >>confdefs.h <<_ACEOF
22935#define int64_t $ac_cv_c_int64_t
22936_ACEOF
22937;;
22938esac
22939
22940
cristy045228a2013-06-23 11:00:16 +000022941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
22942$as_echo_n "checking for unsigned long long int... " >&6; }
22943if ${ac_cv_type_unsigned_long_long_int+:} false; then :
cristy501c8042011-05-26 17:46:28 +000022944 $as_echo_n "(cached) " >&6
22945else
cristy045228a2013-06-23 11:00:16 +000022946 ac_cv_type_unsigned_long_long_int=yes
22947 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
22948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000022949/* end confdefs.h. */
22950
22951 /* For now, do not test the preprocessor; as of 2007 there are too many
cristy5ed9c6e2013-07-14 21:20:31 +000022952 implementations with broken preprocessors. Perhaps this can
22953 be revisited in 2012. In the meantime, code should not expect
22954 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000022955 /* Test literals. */
22956 long long int ll = 9223372036854775807ll;
22957 long long int nll = -9223372036854775807LL;
22958 unsigned long long int ull = 18446744073709551615ULL;
22959 /* Test constant expressions. */
22960 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristy5ed9c6e2013-07-14 21:20:31 +000022961 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000022962 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristy5ed9c6e2013-07-14 21:20:31 +000022963 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000022964 int i = 63;
22965int
22966main ()
22967{
22968/* Test availability of runtime routines for shift and division. */
22969 long long int llmax = 9223372036854775807ll;
22970 unsigned long long int ullmax = 18446744073709551615ull;
22971 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristy5ed9c6e2013-07-14 21:20:31 +000022972 | (llmax / ll) | (llmax % ll)
22973 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22974 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000022975 ;
22976 return 0;
22977}
22978
22979_ACEOF
22980if ac_fn_c_try_link "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000022981
22982else
22983 ac_cv_type_unsigned_long_long_int=no
22984fi
22985rm -f core conftest.err conftest.$ac_objext \
22986 conftest$ac_exeext conftest.$ac_ext
22987 fi
22988fi
22989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
22990$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
22991 if test $ac_cv_type_unsigned_long_long_int = yes; then
22992
22993$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
22994
22995 fi
22996
22997
22998
22999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
23000$as_echo_n "checking for long long int... " >&6; }
23001if ${ac_cv_type_long_long_int+:} false; then :
23002 $as_echo_n "(cached) " >&6
23003else
cristy501c8042011-05-26 17:46:28 +000023004 ac_cv_type_long_long_int=yes
cristy045228a2013-06-23 11:00:16 +000023005 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
cristy5ed9c6e2013-07-14 21:20:31 +000023006 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
23007 if test $ac_cv_type_long_long_int = yes; then
23008 if test "$cross_compiling" = yes; then :
cristy045228a2013-06-23 11:00:16 +000023009 :
cristy501c8042011-05-26 17:46:28 +000023010else
23011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23012/* end confdefs.h. */
23013#include <limits.h>
cristy5ed9c6e2013-07-14 21:20:31 +000023014 #ifndef LLONG_MAX
23015 # define HALF \
23016 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
23017 # define LLONG_MAX (HALF - 1 + HALF)
23018 #endif
cristy501c8042011-05-26 17:46:28 +000023019int
23020main ()
23021{
23022long long int n = 1;
cristy5ed9c6e2013-07-14 21:20:31 +000023023 int i;
23024 for (i = 0; ; i++)
23025 {
23026 long long int m = n << i;
23027 if (m >> i != n)
23028 return 1;
23029 if (LLONG_MAX / 2 < m)
23030 break;
23031 }
23032 return 0;
cristy501c8042011-05-26 17:46:28 +000023033 ;
23034 return 0;
23035}
23036_ACEOF
23037if ac_fn_c_try_run "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023038
cristy501c8042011-05-26 17:46:28 +000023039else
23040 ac_cv_type_long_long_int=no
23041fi
23042rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23043 conftest.$ac_objext conftest.beam conftest.$ac_ext
23044fi
23045
cristy5ed9c6e2013-07-14 21:20:31 +000023046 fi
cristy045228a2013-06-23 11:00:16 +000023047 fi
cristy501c8042011-05-26 17:46:28 +000023048fi
23049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23050$as_echo "$ac_cv_type_long_long_int" >&6; }
23051 if test $ac_cv_type_long_long_int = yes; then
23052
23053$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23054
23055 fi
23056
23057
23058
23059 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
23060if test "x$ac_cv_type_intmax_t" = xyes; then :
23061
23062$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
23063
23064else
23065 test $ac_cv_type_long_long_int = yes \
23066 && ac_type='long long int' \
23067 || ac_type='long int'
23068
23069cat >>confdefs.h <<_ACEOF
23070#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000023071_ACEOF
23072
23073fi
23074
23075
cristy501c8042011-05-26 17:46:28 +000023076
23077 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
23078if test "x$ac_cv_type_intptr_t" = xyes; then :
23079
23080$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023081
cristy3ed852e2009-09-05 21:47:34 +000023082else
cristy501c8042011-05-26 17:46:28 +000023083 for ac_type in 'int' 'long int' 'long long int'; do
23084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23085/* end confdefs.h. */
23086$ac_includes_default
23087int
23088main ()
23089{
23090static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000023091test_array [0] = 0;
23092return test_array [0];
cristy501c8042011-05-26 17:46:28 +000023093
23094 ;
23095 return 0;
23096}
23097_ACEOF
23098if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023099
23100cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000023101#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000023102_ACEOF
23103
cristy501c8042011-05-26 17:46:28 +000023104 ac_type=
23105fi
23106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23107 test -z "$ac_type" && break
23108 done
cristy3ed852e2009-09-05 21:47:34 +000023109fi
23110
23111
cristy3ed852e2009-09-05 21:47:34 +000023112
cristy501c8042011-05-26 17:46:28 +000023113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
23114$as_echo_n "checking for long double... " >&6; }
23115if ${ac_cv_type_long_double+:} false; then :
23116 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000023117else
cristy501c8042011-05-26 17:46:28 +000023118 if test "$GCC" = yes; then
23119 ac_cv_type_long_double=yes
23120 else
23121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23122/* end confdefs.h. */
23123/* The Stardent Vistra knows sizeof (long double), but does
23124 not support it. */
23125 long double foo = 0.0L;
23126int
23127main ()
23128{
23129static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
23130 sizeof (double) <= sizeof (long double))];
cristy14fefe52012-05-21 00:59:18 +000023131test_array [0] = 0;
23132return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023133
cristy501c8042011-05-26 17:46:28 +000023134 ;
23135 return 0;
23136}
cristy3ed852e2009-09-05 21:47:34 +000023137_ACEOF
cristy501c8042011-05-26 17:46:28 +000023138if ac_fn_c_try_compile "$LINENO"; then :
23139 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000023140else
cristy501c8042011-05-26 17:46:28 +000023141 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000023142fi
cristy501c8042011-05-26 17:46:28 +000023143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23144 fi
cristy3ed852e2009-09-05 21:47:34 +000023145fi
cristy501c8042011-05-26 17:46:28 +000023146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
23147$as_echo "$ac_cv_type_long_double" >&6; }
23148 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023149
cristy501c8042011-05-26 17:46:28 +000023150$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023151
cristy501c8042011-05-26 17:46:28 +000023152 fi
23153
cristy3ed852e2009-09-05 21:47:34 +000023154
cristy8b350f62009-11-15 23:12:43 +000023155 { $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 +000023156$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023157if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023158 $as_echo_n "(cached) " >&6
23159else
cristy8b350f62009-11-15 23:12:43 +000023160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023161/* end confdefs.h. */
23162#include <float.h>
23163 long double const a[] =
23164 {
23165 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
23166 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
23167 };
23168 long double
23169 f (long double x)
23170 {
23171 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
23172 + (x ? f (x) : 'c'));
23173 }
23174
23175int
23176main ()
23177{
23178static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
23179 + (DBL_MANT_DIG < LDBL_MANT_DIG)
23180 - (LDBL_MAX_EXP < DBL_MAX_EXP)
23181 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
23182 && (int) LDBL_EPSILON == 0
23183 )];
cristy14fefe52012-05-21 00:59:18 +000023184test_array [0] = 0;
23185return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023186
23187 ;
23188 return 0;
23189}
23190_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023191if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023192 ac_cv_type_long_double_wider=yes
23193else
cristy8b350f62009-11-15 23:12:43 +000023194 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000023195fi
cristy3ed852e2009-09-05 21:47:34 +000023196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23197fi
cristy8b350f62009-11-15 23:12:43 +000023198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000023199$as_echo "$ac_cv_type_long_double_wider" >&6; }
23200 if test $ac_cv_type_long_double_wider = yes; then
23201
cristy8b350f62009-11-15 23:12:43 +000023202$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023203
23204 fi
23205
23206
cristy045228a2013-06-23 11:00:16 +000023207
cristy501c8042011-05-26 17:46:28 +000023208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
23209$as_echo_n "checking for long long int... " >&6; }
23210if ${ac_cv_type_long_long_int+:} false; then :
23211 $as_echo_n "(cached) " >&6
23212else
cristy501c8042011-05-26 17:46:28 +000023213 ac_cv_type_long_long_int=yes
cristy045228a2013-06-23 11:00:16 +000023214 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
cristy5ed9c6e2013-07-14 21:20:31 +000023215 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
23216 if test $ac_cv_type_long_long_int = yes; then
23217 if test "$cross_compiling" = yes; then :
cristy045228a2013-06-23 11:00:16 +000023218 :
cristy501c8042011-05-26 17:46:28 +000023219else
23220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23221/* end confdefs.h. */
23222#include <limits.h>
cristy5ed9c6e2013-07-14 21:20:31 +000023223 #ifndef LLONG_MAX
23224 # define HALF \
23225 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
23226 # define LLONG_MAX (HALF - 1 + HALF)
23227 #endif
cristy501c8042011-05-26 17:46:28 +000023228int
23229main ()
23230{
23231long long int n = 1;
cristy5ed9c6e2013-07-14 21:20:31 +000023232 int i;
23233 for (i = 0; ; i++)
23234 {
23235 long long int m = n << i;
23236 if (m >> i != n)
23237 return 1;
23238 if (LLONG_MAX / 2 < m)
23239 break;
23240 }
23241 return 0;
cristy501c8042011-05-26 17:46:28 +000023242 ;
23243 return 0;
23244}
23245_ACEOF
23246if ac_fn_c_try_run "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023247
cristy501c8042011-05-26 17:46:28 +000023248else
23249 ac_cv_type_long_long_int=no
23250fi
23251rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23252 conftest.$ac_objext conftest.beam conftest.$ac_ext
23253fi
23254
cristy5ed9c6e2013-07-14 21:20:31 +000023255 fi
cristy045228a2013-06-23 11:00:16 +000023256 fi
cristy501c8042011-05-26 17:46:28 +000023257fi
23258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23259$as_echo "$ac_cv_type_long_long_int" >&6; }
23260 if test $ac_cv_type_long_long_int = yes; then
23261
23262$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23263
23264 fi
23265
23266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
23267$as_echo_n "checking for mbstate_t... " >&6; }
23268if ${ac_cv_type_mbstate_t+:} false; then :
23269 $as_echo_n "(cached) " >&6
23270else
23271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23272/* end confdefs.h. */
23273$ac_includes_default
23274# include <wchar.h>
23275int
23276main ()
23277{
23278mbstate_t x; return sizeof x;
23279 ;
23280 return 0;
23281}
23282_ACEOF
23283if ac_fn_c_try_compile "$LINENO"; then :
23284 ac_cv_type_mbstate_t=yes
23285else
23286 ac_cv_type_mbstate_t=no
23287fi
23288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23289fi
23290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
23291$as_echo "$ac_cv_type_mbstate_t" >&6; }
23292 if test $ac_cv_type_mbstate_t = yes; then
23293
23294$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
23295
23296 else
23297
23298$as_echo "#define mbstate_t int" >>confdefs.h
23299
23300 fi
23301ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
23302if test "x$ac_cv_type_mode_t" = xyes; then :
23303
23304else
23305
23306cat >>confdefs.h <<_ACEOF
23307#define mode_t int
23308_ACEOF
23309
23310fi
23311
23312ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
23313if test "x$ac_cv_type_off_t" = xyes; then :
23314
23315else
23316
23317cat >>confdefs.h <<_ACEOF
23318#define off_t long int
23319_ACEOF
23320
23321fi
23322
23323ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
23324if test "x$ac_cv_type_pid_t" = xyes; then :
23325
23326else
23327
23328cat >>confdefs.h <<_ACEOF
23329#define pid_t int
23330_ACEOF
23331
23332fi
23333
23334ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
23335if test "x$ac_cv_type_size_t" = xyes; then :
23336
23337else
23338
23339cat >>confdefs.h <<_ACEOF
23340#define size_t unsigned int
23341_ACEOF
23342
23343fi
23344
23345ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23346if test "x$ac_cv_type_ssize_t" = xyes; then :
23347
23348else
23349
23350cat >>confdefs.h <<_ACEOF
23351#define ssize_t int
23352_ACEOF
23353
23354fi
23355
23356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
23357$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
23358if ${ac_cv_type_uid_t+:} false; then :
23359 $as_echo_n "(cached) " >&6
23360else
23361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23362/* end confdefs.h. */
23363#include <sys/types.h>
23364
23365_ACEOF
23366if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23367 $EGREP "uid_t" >/dev/null 2>&1; then :
23368 ac_cv_type_uid_t=yes
23369else
23370 ac_cv_type_uid_t=no
23371fi
23372rm -f conftest*
23373
23374fi
23375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
23376$as_echo "$ac_cv_type_uid_t" >&6; }
23377if test $ac_cv_type_uid_t = no; then
23378
23379$as_echo "#define uid_t int" >>confdefs.h
23380
23381
23382$as_echo "#define gid_t int" >>confdefs.h
23383
23384fi
23385
23386ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
23387case $ac_cv_c_uint8_t in #(
23388 no|yes) ;; #(
23389 *)
23390
23391$as_echo "#define _UINT8_T 1" >>confdefs.h
23392
23393
23394cat >>confdefs.h <<_ACEOF
23395#define uint8_t $ac_cv_c_uint8_t
23396_ACEOF
23397;;
23398 esac
23399
23400ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
23401case $ac_cv_c_uint16_t in #(
23402 no|yes) ;; #(
23403 *)
23404
23405
23406cat >>confdefs.h <<_ACEOF
23407#define uint16_t $ac_cv_c_uint16_t
23408_ACEOF
23409;;
23410 esac
23411
23412ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
23413case $ac_cv_c_uint32_t in #(
23414 no|yes) ;; #(
23415 *)
23416
23417$as_echo "#define _UINT32_T 1" >>confdefs.h
23418
23419
23420cat >>confdefs.h <<_ACEOF
23421#define uint32_t $ac_cv_c_uint32_t
23422_ACEOF
23423;;
23424 esac
23425
23426ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
23427case $ac_cv_c_uint64_t in #(
23428 no|yes) ;; #(
23429 *)
23430
23431$as_echo "#define _UINT64_T 1" >>confdefs.h
23432
23433
23434cat >>confdefs.h <<_ACEOF
23435#define uint64_t $ac_cv_c_uint64_t
23436_ACEOF
23437;;
23438 esac
23439
23440
cristy501c8042011-05-26 17:46:28 +000023441
23442 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
23443if test "x$ac_cv_type_uintmax_t" = xyes; then :
23444
23445$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
23446
23447else
23448 test $ac_cv_type_unsigned_long_long_int = yes \
23449 && ac_type='unsigned long long int' \
23450 || ac_type='unsigned long int'
23451
23452cat >>confdefs.h <<_ACEOF
23453#define uintmax_t $ac_type
23454_ACEOF
23455
23456fi
23457
23458
23459
23460 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23461if test "x$ac_cv_type_uintptr_t" = xyes; then :
23462
23463$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
23464
23465else
23466 for ac_type in 'unsigned int' 'unsigned long int' \
23467 'unsigned long long int'; do
23468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23469/* end confdefs.h. */
23470$ac_includes_default
23471int
23472main ()
23473{
23474static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000023475test_array [0] = 0;
23476return test_array [0];
cristy501c8042011-05-26 17:46:28 +000023477
23478 ;
23479 return 0;
23480}
23481_ACEOF
23482if ac_fn_c_try_compile "$LINENO"; then :
23483
23484cat >>confdefs.h <<_ACEOF
23485#define uintptr_t $ac_type
23486_ACEOF
23487
23488 ac_type=
23489fi
23490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23491 test -z "$ac_type" && break
23492 done
23493fi
23494
23495
23496
23497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23498$as_echo_n "checking for unsigned long long int... " >&6; }
23499if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23500 $as_echo_n "(cached) " >&6
23501else
cristy045228a2013-06-23 11:00:16 +000023502 ac_cv_type_unsigned_long_long_int=yes
23503 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
23504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000023505/* end confdefs.h. */
23506
23507 /* For now, do not test the preprocessor; as of 2007 there are too many
cristy5ed9c6e2013-07-14 21:20:31 +000023508 implementations with broken preprocessors. Perhaps this can
23509 be revisited in 2012. In the meantime, code should not expect
23510 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000023511 /* Test literals. */
23512 long long int ll = 9223372036854775807ll;
23513 long long int nll = -9223372036854775807LL;
23514 unsigned long long int ull = 18446744073709551615ULL;
23515 /* Test constant expressions. */
23516 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristy5ed9c6e2013-07-14 21:20:31 +000023517 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023518 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristy5ed9c6e2013-07-14 21:20:31 +000023519 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023520 int i = 63;
23521int
23522main ()
23523{
23524/* Test availability of runtime routines for shift and division. */
23525 long long int llmax = 9223372036854775807ll;
23526 unsigned long long int ullmax = 18446744073709551615ull;
23527 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristy5ed9c6e2013-07-14 21:20:31 +000023528 | (llmax / ll) | (llmax % ll)
23529 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23530 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000023531 ;
23532 return 0;
23533}
23534
23535_ACEOF
23536if ac_fn_c_try_link "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023537
cristy501c8042011-05-26 17:46:28 +000023538else
23539 ac_cv_type_unsigned_long_long_int=no
23540fi
23541rm -f core conftest.err conftest.$ac_objext \
23542 conftest$ac_exeext conftest.$ac_ext
cristy045228a2013-06-23 11:00:16 +000023543 fi
cristy501c8042011-05-26 17:46:28 +000023544fi
23545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23546$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23547 if test $ac_cv_type_unsigned_long_long_int = yes; then
23548
23549$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23550
23551 fi
23552
23553
cristyfec31822013-05-23 12:32:12 +000023554# Float_t and double_t are intended to be the the most efficient type.
23555ac_fn_c_check_type "$LINENO" "float_t" "ac_cv_type_float_t" "#include <math.h>
23556"
23557if test "x$ac_cv_type_float_t" = xyes; then :
23558
23559cat >>confdefs.h <<_ACEOF
23560#define HAVE_FLOAT_T 1
23561_ACEOF
23562
23563
23564fi
23565
23566ac_fn_c_check_type "$LINENO" "double_t" "ac_cv_type_double_t" "#include <math.h>
23567"
23568if test "x$ac_cv_type_double_t" = xyes; then :
23569
23570cat >>confdefs.h <<_ACEOF
23571#define HAVE_DOUBLE_T 1
23572_ACEOF
23573
23574
23575fi
23576
23577# The cast to long int works around a bug in the HP C Compiler
23578# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23579# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23580# This bug is HP SR number 8606223364.
23581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float_t" >&5
23582$as_echo_n "checking size of float_t... " >&6; }
23583if ${ac_cv_sizeof_float_t+:} false; then :
23584 $as_echo_n "(cached) " >&6
23585else
23586 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float_t))" "ac_cv_sizeof_float_t" "#include <math.h>
23587"; then :
23588
23589else
23590 if test "$ac_cv_type_float_t" = yes; then
23591 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23592$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23593as_fn_error 77 "cannot compute sizeof (float_t)
23594See \`config.log' for more details" "$LINENO" 5; }
23595 else
23596 ac_cv_sizeof_float_t=0
23597 fi
23598fi
23599
23600fi
23601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float_t" >&5
23602$as_echo "$ac_cv_sizeof_float_t" >&6; }
23603
23604
23605
23606cat >>confdefs.h <<_ACEOF
23607#define SIZEOF_FLOAT_T $ac_cv_sizeof_float_t
23608_ACEOF
23609
23610
23611# The cast to long int works around a bug in the HP C Compiler
23612# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23613# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23614# This bug is HP SR number 8606223364.
23615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double_t" >&5
23616$as_echo_n "checking size of double_t... " >&6; }
23617if ${ac_cv_sizeof_double_t+:} false; then :
23618 $as_echo_n "(cached) " >&6
23619else
23620 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double_t))" "ac_cv_sizeof_double_t" "#include <math.h>
23621"; then :
23622
23623else
23624 if test "$ac_cv_type_double_t" = yes; then
23625 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23626$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23627as_fn_error 77 "cannot compute sizeof (double_t)
23628See \`config.log' for more details" "$LINENO" 5; }
23629 else
23630 ac_cv_sizeof_double_t=0
23631 fi
23632fi
23633
23634fi
23635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double_t" >&5
23636$as_echo "$ac_cv_sizeof_double_t" >&6; }
23637
23638
23639
23640cat >>confdefs.h <<_ACEOF
23641#define SIZEOF_DOUBLE_T $ac_cv_sizeof_double_t
23642_ACEOF
23643
23644
23645
cristy9b86f202012-11-28 21:55:35 +000023646# Get size of float, double and long double for comparaison.
23647# The cast to long int works around a bug in the HP C Compiler
23648# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23649# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23650# This bug is HP SR number 8606223364.
23651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
23652$as_echo_n "checking size of float... " >&6; }
23653if ${ac_cv_sizeof_float+:} false; then :
23654 $as_echo_n "(cached) " >&6
23655else
23656 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
23657
23658else
23659 if test "$ac_cv_type_float" = yes; then
23660 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23661$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23662as_fn_error 77 "cannot compute sizeof (float)
23663See \`config.log' for more details" "$LINENO" 5; }
23664 else
23665 ac_cv_sizeof_float=0
23666 fi
23667fi
23668
23669fi
23670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
23671$as_echo "$ac_cv_sizeof_float" >&6; }
23672
23673
23674
23675cat >>confdefs.h <<_ACEOF
23676#define SIZEOF_FLOAT $ac_cv_sizeof_float
23677_ACEOF
23678
23679
23680# The cast to long int works around a bug in the HP C Compiler
23681# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23682# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23683# This bug is HP SR number 8606223364.
23684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
23685$as_echo_n "checking size of double... " >&6; }
23686if ${ac_cv_sizeof_double+:} false; then :
23687 $as_echo_n "(cached) " >&6
23688else
23689 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
23690
23691else
23692 if test "$ac_cv_type_double" = yes; then
23693 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23694$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23695as_fn_error 77 "cannot compute sizeof (double)
23696See \`config.log' for more details" "$LINENO" 5; }
23697 else
23698 ac_cv_sizeof_double=0
23699 fi
23700fi
23701
23702fi
23703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
23704$as_echo "$ac_cv_sizeof_double" >&6; }
23705
23706
23707
23708cat >>confdefs.h <<_ACEOF
23709#define SIZEOF_DOUBLE $ac_cv_sizeof_double
23710_ACEOF
23711
23712
cristy9e2b6242014-03-25 11:49:41 +000023713# The cast to long int works around a bug in the HP C Compiler
cristyfec31822013-05-23 12:32:12 +000023714# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23715# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23716# This bug is HP SR number 8606223364.
23717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
23718$as_echo_n "checking size of long double... " >&6; }
23719if ${ac_cv_sizeof_long_double+:} false; then :
23720 $as_echo_n "(cached) " >&6
23721else
23722 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
23723
23724else
23725 if test "$ac_cv_type_long_double" = yes; then
23726 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23727$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23728as_fn_error 77 "cannot compute sizeof (long double)
23729See \`config.log' for more details" "$LINENO" 5; }
23730 else
23731 ac_cv_sizeof_long_double=0
23732 fi
23733fi
23734
23735fi
23736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
23737$as_echo "$ac_cv_sizeof_long_double" >&6; }
23738
23739
23740
23741cat >>confdefs.h <<_ACEOF
23742#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
23743_ACEOF
23744
23745
cristyf0cf9a22012-10-24 12:05:01 +000023746
cristy3ed852e2009-09-05 21:47:34 +000023747# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
23748# The cast to long int works around a bug in the HP C Compiler
23749# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23750# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23751# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023753$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023754if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023755 $as_echo_n "(cached) " >&6
23756else
cristy8b350f62009-11-15 23:12:43 +000023757 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 +000023758
cristy3ed852e2009-09-05 21:47:34 +000023759else
cristy8b350f62009-11-15 23:12:43 +000023760 if test "$ac_cv_type_signed_short" = yes; then
23761 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023762$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023763as_fn_error 77 "cannot compute sizeof (signed short)
23764See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023765 else
23766 ac_cv_sizeof_signed_short=0
23767 fi
23768fi
cristy8b350f62009-11-15 23:12:43 +000023769
cristy3ed852e2009-09-05 21:47:34 +000023770fi
cristy8b350f62009-11-15 23:12:43 +000023771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023772$as_echo "$ac_cv_sizeof_signed_short" >&6; }
23773
23774
23775
23776cat >>confdefs.h <<_ACEOF
23777#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
23778_ACEOF
23779
23780
23781
23782# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
23783# The cast to long int works around a bug in the HP C Compiler
23784# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23785# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23786# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023788$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023789if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023790 $as_echo_n "(cached) " >&6
23791else
cristy8b350f62009-11-15 23:12:43 +000023792 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 +000023793
cristy3ed852e2009-09-05 21:47:34 +000023794else
cristy8b350f62009-11-15 23:12:43 +000023795 if test "$ac_cv_type_unsigned_short" = yes; then
23796 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023797$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023798as_fn_error 77 "cannot compute sizeof (unsigned short)
23799See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023800 else
23801 ac_cv_sizeof_unsigned_short=0
23802 fi
23803fi
cristy8b350f62009-11-15 23:12:43 +000023804
cristy3ed852e2009-09-05 21:47:34 +000023805fi
cristy8b350f62009-11-15 23:12:43 +000023806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023807$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
23808
23809
23810
23811cat >>confdefs.h <<_ACEOF
23812#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
23813_ACEOF
23814
23815
23816
23817# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
23818# The cast to long int works around a bug in the HP C Compiler
23819# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23820# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23821# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023823$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023824if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023825 $as_echo_n "(cached) " >&6
23826else
cristy8b350f62009-11-15 23:12:43 +000023827 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 +000023828
cristy3ed852e2009-09-05 21:47:34 +000023829else
cristy8b350f62009-11-15 23:12:43 +000023830 if test "$ac_cv_type_signed_int" = yes; then
23831 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023832$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023833as_fn_error 77 "cannot compute sizeof (signed int)
23834See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023835 else
23836 ac_cv_sizeof_signed_int=0
23837 fi
23838fi
cristy8b350f62009-11-15 23:12:43 +000023839
cristy3ed852e2009-09-05 21:47:34 +000023840fi
cristy8b350f62009-11-15 23:12:43 +000023841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023842$as_echo "$ac_cv_sizeof_signed_int" >&6; }
23843
23844
23845
23846cat >>confdefs.h <<_ACEOF
23847#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
23848_ACEOF
23849
23850
23851
23852# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
23853# The cast to long int works around a bug in the HP C Compiler
23854# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23855# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23856# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023858$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023859if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023860 $as_echo_n "(cached) " >&6
23861else
cristy8b350f62009-11-15 23:12:43 +000023862 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 +000023863
cristy3ed852e2009-09-05 21:47:34 +000023864else
cristy8b350f62009-11-15 23:12:43 +000023865 if test "$ac_cv_type_unsigned_int" = yes; then
23866 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023867$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023868as_fn_error 77 "cannot compute sizeof (unsigned int)
23869See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023870 else
23871 ac_cv_sizeof_unsigned_int=0
23872 fi
23873fi
cristy8b350f62009-11-15 23:12:43 +000023874
cristy3ed852e2009-09-05 21:47:34 +000023875fi
cristy8b350f62009-11-15 23:12:43 +000023876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023877$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
23878
23879
23880
23881cat >>confdefs.h <<_ACEOF
23882#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
23883_ACEOF
23884
23885
23886
23887# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
23888# The cast to long int works around a bug in the HP C Compiler
23889# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23890# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23891# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023893$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023894if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023895 $as_echo_n "(cached) " >&6
23896else
cristy8b350f62009-11-15 23:12:43 +000023897 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 +000023898
cristy3ed852e2009-09-05 21:47:34 +000023899else
cristy8b350f62009-11-15 23:12:43 +000023900 if test "$ac_cv_type_signed_long" = yes; then
23901 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023902$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023903as_fn_error 77 "cannot compute sizeof (signed long)
23904See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023905 else
23906 ac_cv_sizeof_signed_long=0
23907 fi
23908fi
cristy8b350f62009-11-15 23:12:43 +000023909
cristy3ed852e2009-09-05 21:47:34 +000023910fi
cristy8b350f62009-11-15 23:12:43 +000023911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023912$as_echo "$ac_cv_sizeof_signed_long" >&6; }
23913
23914
23915
23916cat >>confdefs.h <<_ACEOF
23917#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
23918_ACEOF
23919
23920
23921
23922# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
23923# The cast to long int works around a bug in the HP C Compiler
23924# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23925# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23926# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023928$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023929if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023930 $as_echo_n "(cached) " >&6
23931else
cristy8b350f62009-11-15 23:12:43 +000023932 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 +000023933
cristy3ed852e2009-09-05 21:47:34 +000023934else
cristy8b350f62009-11-15 23:12:43 +000023935 if test "$ac_cv_type_unsigned_long" = yes; then
23936 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023937$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023938as_fn_error 77 "cannot compute sizeof (unsigned long)
23939See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023940 else
23941 ac_cv_sizeof_unsigned_long=0
23942 fi
23943fi
cristy8b350f62009-11-15 23:12:43 +000023944
cristy3ed852e2009-09-05 21:47:34 +000023945fi
cristy8b350f62009-11-15 23:12:43 +000023946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023947$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
23948
23949
23950
23951cat >>confdefs.h <<_ACEOF
23952#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
23953_ACEOF
23954
23955
23956
23957# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
23958# 'signed long long' is not supported then the value defined is zero.
23959# The cast to long int works around a bug in the HP C Compiler
23960# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23961# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23962# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023964$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023965if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023966 $as_echo_n "(cached) " >&6
23967else
cristy8b350f62009-11-15 23:12:43 +000023968 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 +000023969
cristy3ed852e2009-09-05 21:47:34 +000023970else
cristy8b350f62009-11-15 23:12:43 +000023971 if test "$ac_cv_type_signed_long_long" = yes; then
23972 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023973$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023974as_fn_error 77 "cannot compute sizeof (signed long long)
23975See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023976 else
23977 ac_cv_sizeof_signed_long_long=0
23978 fi
23979fi
cristy8b350f62009-11-15 23:12:43 +000023980
cristy3ed852e2009-09-05 21:47:34 +000023981fi
cristy8b350f62009-11-15 23:12:43 +000023982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023983$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
23984
23985
23986
23987cat >>confdefs.h <<_ACEOF
23988#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
23989_ACEOF
23990
23991
23992
23993# Obtain size of a 'unsigned long long' and define as
23994# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
23995# supported then the value defined is zero.
23996# The cast to long int works around a bug in the HP C Compiler
23997# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23998# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23999# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024001$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024002if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024003 $as_echo_n "(cached) " >&6
24004else
cristy8b350f62009-11-15 23:12:43 +000024005 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 +000024006
cristy3ed852e2009-09-05 21:47:34 +000024007else
cristy8b350f62009-11-15 23:12:43 +000024008 if test "$ac_cv_type_unsigned_long_long" = yes; then
24009 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024010$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024011as_fn_error 77 "cannot compute sizeof (unsigned long long)
24012See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024013 else
24014 ac_cv_sizeof_unsigned_long_long=0
24015 fi
24016fi
cristy8b350f62009-11-15 23:12:43 +000024017
cristy3ed852e2009-09-05 21:47:34 +000024018fi
cristy8b350f62009-11-15 23:12:43 +000024019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024020$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
24021
24022
24023
24024cat >>confdefs.h <<_ACEOF
24025#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
24026_ACEOF
24027
24028
24029
cristyfec31822013-05-23 12:32:12 +000024030# Obtain size of off_t and define as SIZEOF_OFF_T
24031# The cast to long int works around a bug in the HP C Compiler
24032# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24033# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24034# This bug is HP SR number 8606223364.
24035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
24036$as_echo_n "checking size of off_t... " >&6; }
24037if ${ac_cv_sizeof_off_t+:} false; then :
24038 $as_echo_n "(cached) " >&6
24039else
24040 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
24041
24042else
24043 if test "$ac_cv_type_off_t" = yes; then
24044 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24045$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24046as_fn_error 77 "cannot compute sizeof (off_t)
24047See \`config.log' for more details" "$LINENO" 5; }
24048 else
24049 ac_cv_sizeof_off_t=0
24050 fi
24051fi
24052
24053fi
24054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
24055$as_echo "$ac_cv_sizeof_off_t" >&6; }
24056
24057
24058
24059cat >>confdefs.h <<_ACEOF
24060#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
24061_ACEOF
24062
24063
24064
24065# Obtain size of size_t and define as SIZEOF_SIZE_T
24066# The cast to long int works around a bug in the HP C Compiler
24067# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24068# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24069# This bug is HP SR number 8606223364.
24070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
24071$as_echo_n "checking size of size_t... " >&6; }
24072if ${ac_cv_sizeof_size_t+:} false; then :
24073 $as_echo_n "(cached) " >&6
24074else
24075 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
24076
24077else
24078 if test "$ac_cv_type_size_t" = yes; then
24079 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24080$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24081as_fn_error 77 "cannot compute sizeof (size_t)
24082See \`config.log' for more details" "$LINENO" 5; }
24083 else
24084 ac_cv_sizeof_size_t=0
24085 fi
24086fi
24087
24088fi
24089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
24090$as_echo "$ac_cv_sizeof_size_t" >&6; }
24091
24092
24093
24094cat >>confdefs.h <<_ACEOF
24095#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
24096_ACEOF
24097
24098
24099
24100# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
24101# The cast to long int works around a bug in the HP C Compiler
24102# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24103# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24104# This bug is HP SR number 8606223364.
24105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
24106$as_echo_n "checking size of ssize_t... " >&6; }
24107if ${ac_cv_sizeof_ssize_t+:} false; then :
24108 $as_echo_n "(cached) " >&6
24109else
24110 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
24111
24112else
24113 if test "$ac_cv_type_ssize_t" = yes; then
24114 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24115$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24116as_fn_error 77 "cannot compute sizeof (ssize_t)
24117See \`config.log' for more details" "$LINENO" 5; }
24118 else
24119 ac_cv_sizeof_ssize_t=0
24120 fi
24121fi
24122
24123fi
24124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
24125$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
24126
24127
24128
24129cat >>confdefs.h <<_ACEOF
24130#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
24131_ACEOF
24132
24133
24134
cristy3ed852e2009-09-05 21:47:34 +000024135# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
24136# The cast to long int works around a bug in the HP C Compiler
24137# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24138# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24139# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000024141$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024142if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024143 $as_echo_n "(cached) " >&6
24144else
cristy8b350f62009-11-15 23:12:43 +000024145 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 +000024146
cristy3ed852e2009-09-05 21:47:34 +000024147else
cristy8b350f62009-11-15 23:12:43 +000024148 if test "$ac_cv_type_unsigned_intp" = yes; then
24149 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024150$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024151as_fn_error 77 "cannot compute sizeof (unsigned int*)
24152See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024153 else
24154 ac_cv_sizeof_unsigned_intp=0
24155 fi
24156fi
cristy8b350f62009-11-15 23:12:43 +000024157
cristy3ed852e2009-09-05 21:47:34 +000024158fi
cristy8b350f62009-11-15 23:12:43 +000024159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024160$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
24161
24162
24163
24164cat >>confdefs.h <<_ACEOF
24165#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
24166_ACEOF
24167
24168
24169
24170#
24171# Compute sized types for current CPU and compiler options.
24172#
24173
cristy8b350f62009-11-15 23:12:43 +000024174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024175$as_echo_n "checking for signed 8-bit type... " >&6; }
24176INT8_T='signed char'
cristyad38abe2012-12-23 23:03:21 +000024177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
24178$as_echo "$INT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024179
24180
cristy8b350f62009-11-15 23:12:43 +000024181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024182$as_echo_n "checking for unsigned 8-bit type... " >&6; }
24183UINT8_T='unsigned char'
cristyad38abe2012-12-23 23:03:21 +000024184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
24185$as_echo "$UINT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024186
24187
cristy8b350f62009-11-15 23:12:43 +000024188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024189$as_echo_n "checking for signed 16-bit type... " >&6; }
24190INT16_T='signed short'
cristyad38abe2012-12-23 23:03:21 +000024191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
24192$as_echo "$INT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024193
24194
cristy8b350f62009-11-15 23:12:43 +000024195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024196$as_echo_n "checking for unsigned 16-bit type... " >&6; }
24197UINT16_T='unsigned short'
cristyad38abe2012-12-23 23:03:21 +000024198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
24199$as_echo "$UINT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024200
24201
cristy8b350f62009-11-15 23:12:43 +000024202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024203$as_echo_n "checking for signed 32-bit type... " >&6; }
24204INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024205INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024206if test $ac_cv_sizeof_signed_int -eq 4; then
24207 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000024208 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000024209elif test $ac_cv_sizeof_signed_long -eq 4; then
24210 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000024211 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024212fi
cristyad38abe2012-12-23 23:03:21 +000024213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
24214$as_echo "$INT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024215
24216
cristy6d5e20f2011-04-25 13:48:54 +000024217
cristy8b350f62009-11-15 23:12:43 +000024218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024219$as_echo_n "checking for unsigned 32-bit type... " >&6; }
24220UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024221UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024222if test $ac_cv_sizeof_unsigned_int -eq 4; then
24223 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000024224 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000024225elif test $ac_cv_sizeof_unsigned_long -eq 4; then
24226 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024227 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024228fi
cristyad38abe2012-12-23 23:03:21 +000024229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
24230$as_echo "$UINT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024231
24232
cristy6d5e20f2011-04-25 13:48:54 +000024233
cristy8b350f62009-11-15 23:12:43 +000024234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024235$as_echo_n "checking for signed 64-bit type... " >&6; }
24236INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024237INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024238if test $ac_cv_sizeof_signed_long -eq 8; then
24239 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000024240 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024241elif test $ac_cv_sizeof_signed_long_long -eq 8; then
24242 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000024243 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024244fi
cristy3a99dcf2011-12-17 01:29:40 +000024245case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000024246 mingw* )
24247 INT64_F='"I64"'
24248 ;;
24249esac
cristyad38abe2012-12-23 23:03:21 +000024250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
24251$as_echo "$INT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024252
24253
cristy6d5e20f2011-04-25 13:48:54 +000024254
cristy8b350f62009-11-15 23:12:43 +000024255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024256$as_echo_n "checking for unsigned 64-bit type... " >&6; }
24257UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024258UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024259if test $ac_cv_sizeof_unsigned_long -eq 8; then
24260 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024261 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024262elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
24263 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000024264 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024265fi
cristy3a99dcf2011-12-17 01:29:40 +000024266case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000024267 mingw* )
24268 UINT64_F='"I64"'
24269 ;;
24270esac
cristyad38abe2012-12-23 23:03:21 +000024271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
24272$as_echo "$UINT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024273
24274
cristy6d5e20f2011-04-25 13:48:54 +000024275
cristy8b350f62009-11-15 23:12:43 +000024276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024277$as_echo_n "checking for unsigned maximum type... " >&6; }
24278UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024279UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024280if test "$UINT64_T" != 'none'; then
24281 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000024282 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000024283elif test "$UINT32_T" != 'none'; then
24284 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000024285 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000024286fi
cristyad38abe2012-12-23 23:03:21 +000024287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
24288$as_echo "$UINTMAX_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024289
24290
cristy6d5e20f2011-04-25 13:48:54 +000024291
cristy8b350f62009-11-15 23:12:43 +000024292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024293$as_echo_n "checking for pointer difference type... " >&6; }
24294UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024295UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024296if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
24297 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024298 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024299elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
24300 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000024301 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024302fi
cristyad38abe2012-12-23 23:03:21 +000024303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
24304$as_echo "$UINTPTR_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024305
24306
cristy6d5e20f2011-04-25 13:48:54 +000024307
cristy8b350f62009-11-15 23:12:43 +000024308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024309$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024310cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024311/* end confdefs.h. */
24312
24313int
24314main ()
24315{
24316{ const char *func = __func__; return(func != 0 ? 0 : 1); }
24317 ;
24318 return 0;
24319}
24320_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024321if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000024322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24323$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024324else
cristyad38abe2012-12-23 23:03:21 +000024325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24326$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024328$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024330/* end confdefs.h. */
24331
24332int
24333main ()
24334{
24335{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
24336 ;
24337 return 0;
24338}
24339_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024340if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000024341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24342$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024343
cristy8b350f62009-11-15 23:12:43 +000024344$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024345
24346else
cristyad38abe2012-12-23 23:03:21 +000024347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24348$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024349
cristy8b350f62009-11-15 23:12:43 +000024350$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024351
24352fi
cristy3ed852e2009-09-05 21:47:34 +000024353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24354fi
cristy3ed852e2009-09-05 21:47:34 +000024355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24356
24357########
24358#
24359# Check for functions
24360#
24361########
cristy8b350f62009-11-15 23:12:43 +000024362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024363$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024364if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024365 $as_echo_n "(cached) " >&6
24366else
cristy8b350f62009-11-15 23:12:43 +000024367 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024368 ac_cv_func_closedir_void=yes
24369else
cristy8b350f62009-11-15 23:12:43 +000024370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024371/* end confdefs.h. */
24372$ac_includes_default
24373#include <$ac_header_dirent>
24374#ifndef __cplusplus
24375int closedir ();
24376#endif
24377
24378int
24379main ()
24380{
24381return closedir (opendir (".")) != 0;
24382 ;
24383 return 0;
24384}
24385_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024386if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024387 ac_cv_func_closedir_void=no
24388else
cristy8b350f62009-11-15 23:12:43 +000024389 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000024390fi
cristy8b350f62009-11-15 23:12:43 +000024391rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24392 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024393fi
24394
cristy3ed852e2009-09-05 21:47:34 +000024395fi
cristy8b350f62009-11-15 23:12:43 +000024396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024397$as_echo "$ac_cv_func_closedir_void" >&6; }
24398if test $ac_cv_func_closedir_void = yes; then
24399
cristy8b350f62009-11-15 23:12:43 +000024400$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024401
24402fi
24403
cristycd4c5312009-11-22 01:19:08 +000024404
24405
24406
24407 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000024408do :
24409 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000024410ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24411"
cristy98dddb52010-11-04 00:30:15 +000024412if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024413 cat >>confdefs.h <<_ACEOF
24414#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24415_ACEOF
24416
24417fi
24418
24419done
24420
cristycd4c5312009-11-22 01:19:08 +000024421
24422
24423
24424
24425
24426
24427
cristy3ed852e2009-09-05 21:47:34 +000024428for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000024429do :
24430 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024431if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024432 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024433#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000024434_ACEOF
24435
24436fi
24437done
24438
cristy8b350f62009-11-15 23:12:43 +000024439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000024440$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024441if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024442 $as_echo_n "(cached) " >&6
24443else
cristy8b350f62009-11-15 23:12:43 +000024444 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024445 ac_cv_func_mmap_fixed_mapped=no
24446else
cristy8b350f62009-11-15 23:12:43 +000024447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024448/* end confdefs.h. */
24449$ac_includes_default
24450/* malloc might have been renamed as rpl_malloc. */
24451#undef malloc
24452
24453/* Thanks to Mike Haertel and Jim Avera for this test.
24454 Here is a matrix of mmap possibilities:
24455 mmap private not fixed
24456 mmap private fixed at somewhere currently unmapped
24457 mmap private fixed at somewhere already mapped
24458 mmap shared not fixed
24459 mmap shared fixed at somewhere currently unmapped
24460 mmap shared fixed at somewhere already mapped
24461 For private mappings, we should verify that changes cannot be read()
24462 back from the file, nor mmap's back from the file at a different
24463 address. (There have been systems where private was not correctly
24464 implemented like the infamous i386 svr4.0, and systems where the
24465 VM page cache was not coherent with the file system buffer cache
24466 like early versions of FreeBSD and possibly contemporary NetBSD.)
24467 For shared mappings, we should conversely verify that changes get
24468 propagated back to all the places they're supposed to be.
24469
24470 Grep wants private fixed already mapped.
24471 The main things grep needs to know about mmap are:
24472 * does it exist and is it safe to write into the mmap'd area
24473 * how to use it (BSD variants) */
24474
24475#include <fcntl.h>
24476#include <sys/mman.h>
24477
24478#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24479char *malloc ();
24480#endif
24481
24482/* This mess was copied from the GNU getpagesize.h. */
24483#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000024484# ifdef _SC_PAGESIZE
24485# define getpagesize() sysconf(_SC_PAGESIZE)
24486# else /* no _SC_PAGESIZE */
24487# ifdef HAVE_SYS_PARAM_H
24488# include <sys/param.h>
24489# ifdef EXEC_PAGESIZE
24490# define getpagesize() EXEC_PAGESIZE
24491# else /* no EXEC_PAGESIZE */
24492# ifdef NBPG
24493# define getpagesize() NBPG * CLSIZE
24494# ifndef CLSIZE
24495# define CLSIZE 1
24496# endif /* no CLSIZE */
24497# else /* no NBPG */
24498# ifdef NBPC
24499# define getpagesize() NBPC
24500# else /* no NBPC */
24501# ifdef PAGESIZE
24502# define getpagesize() PAGESIZE
24503# endif /* PAGESIZE */
24504# endif /* no NBPC */
24505# endif /* no NBPG */
24506# endif /* no EXEC_PAGESIZE */
24507# else /* no HAVE_SYS_PARAM_H */
24508# define getpagesize() 8192 /* punt totally */
24509# endif /* no HAVE_SYS_PARAM_H */
24510# endif /* no _SC_PAGESIZE */
24511
24512#endif /* no HAVE_GETPAGESIZE */
24513
24514int
24515main ()
24516{
24517 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000024518 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000024519 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000024520 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000024521
24522 pagesize = getpagesize ();
24523
24524 /* First, make a file with some known garbage in it. */
24525 data = (char *) malloc (pagesize);
24526 if (!data)
24527 return 1;
24528 for (i = 0; i < pagesize; ++i)
24529 *(data + i) = rand ();
24530 umask (0);
24531 fd = creat ("conftest.mmap", 0600);
24532 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024533 return 2;
cristy3ed852e2009-09-05 21:47:34 +000024534 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024535 return 3;
cristy3ed852e2009-09-05 21:47:34 +000024536 close (fd);
24537
cristycd4c5312009-11-22 01:19:08 +000024538 /* Next, check that the tail of a page is zero-filled. File must have
24539 non-zero length, otherwise we risk SIGBUS for entire page. */
24540 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24541 if (fd2 < 0)
24542 return 4;
cristyc54f5d42009-11-27 21:36:31 +000024543 cdata2 = "";
24544 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000024545 return 5;
cristyc54f5d42009-11-27 21:36:31 +000024546 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000024547 if (data2 == MAP_FAILED)
24548 return 6;
24549 for (i = 0; i < pagesize; ++i)
24550 if (*(data2 + i))
24551 return 7;
24552 close (fd2);
24553 if (munmap (data2, pagesize))
24554 return 8;
24555
cristy3ed852e2009-09-05 21:47:34 +000024556 /* Next, try to mmap the file at a fixed address which already has
24557 something else allocated at it. If we can, also make sure that
24558 we see the same garbage. */
24559 fd = open ("conftest.mmap", O_RDWR);
24560 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024561 return 9;
cristy3ed852e2009-09-05 21:47:34 +000024562 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24563 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000024564 return 10;
cristy3ed852e2009-09-05 21:47:34 +000024565 for (i = 0; i < pagesize; ++i)
24566 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000024567 return 11;
cristy3ed852e2009-09-05 21:47:34 +000024568
24569 /* Finally, make sure that changes to the mapped area do not
24570 percolate back to the file as seen by read(). (This is a bug on
24571 some variants of i386 svr4.0.) */
24572 for (i = 0; i < pagesize; ++i)
24573 *(data2 + i) = *(data2 + i) + 1;
24574 data3 = (char *) malloc (pagesize);
24575 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000024576 return 12;
cristy3ed852e2009-09-05 21:47:34 +000024577 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024578 return 13;
cristy3ed852e2009-09-05 21:47:34 +000024579 for (i = 0; i < pagesize; ++i)
24580 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000024581 return 14;
cristy3ed852e2009-09-05 21:47:34 +000024582 close (fd);
24583 return 0;
24584}
24585_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024586if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024587 ac_cv_func_mmap_fixed_mapped=yes
24588else
cristy8b350f62009-11-15 23:12:43 +000024589 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000024590fi
cristy8b350f62009-11-15 23:12:43 +000024591rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24592 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024593fi
24594
cristy3ed852e2009-09-05 21:47:34 +000024595fi
cristy8b350f62009-11-15 23:12:43 +000024596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000024597$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24598if test $ac_cv_func_mmap_fixed_mapped = yes; then
24599
cristy8b350f62009-11-15 23:12:43 +000024600$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024601
24602fi
cristycd4c5312009-11-22 01:19:08 +000024603rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000024604
cristy3ed852e2009-09-05 21:47:34 +000024605for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000024606do :
24607 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000024608if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024609 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024610#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000024611_ACEOF
24612
24613fi
24614
24615done
24616
cristy3ed852e2009-09-05 21:47:34 +000024617for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000024618do :
24619 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24620ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024621if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024622 cat >>confdefs.h <<_ACEOF
24623#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24624_ACEOF
24625
24626fi
24627done
24628
24629if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024631$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024632if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024633 $as_echo_n "(cached) " >&6
24634else
cristy8b350f62009-11-15 23:12:43 +000024635 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024636 ac_cv_func_fork_works=cross
24637else
cristy8b350f62009-11-15 23:12:43 +000024638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024639/* end confdefs.h. */
24640$ac_includes_default
24641int
24642main ()
24643{
24644
24645 /* By Ruediger Kuhlmann. */
24646 return fork () < 0;
24647
24648 ;
24649 return 0;
24650}
24651_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024652if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024653 ac_cv_func_fork_works=yes
24654else
cristy8b350f62009-11-15 23:12:43 +000024655 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024656fi
cristy8b350f62009-11-15 23:12:43 +000024657rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24658 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024659fi
24660
cristy3ed852e2009-09-05 21:47:34 +000024661fi
cristy8b350f62009-11-15 23:12:43 +000024662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024663$as_echo "$ac_cv_func_fork_works" >&6; }
24664
24665else
24666 ac_cv_func_fork_works=$ac_cv_func_fork
24667fi
24668if test "x$ac_cv_func_fork_works" = xcross; then
24669 case $host in
24670 *-*-amigaos* | *-*-msdosdjgpp*)
24671 # Override, as these systems have only a dummy fork() stub
24672 ac_cv_func_fork_works=no
24673 ;;
24674 *)
24675 ac_cv_func_fork_works=yes
24676 ;;
24677 esac
cristy8b350f62009-11-15 23:12:43 +000024678 { $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 +000024679$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24680fi
24681ac_cv_func_vfork_works=$ac_cv_func_vfork
24682if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024684$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024685if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024686 $as_echo_n "(cached) " >&6
24687else
cristy8b350f62009-11-15 23:12:43 +000024688 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024689 ac_cv_func_vfork_works=cross
24690else
cristy8b350f62009-11-15 23:12:43 +000024691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024692/* end confdefs.h. */
24693/* Thanks to Paul Eggert for this test. */
24694$ac_includes_default
24695#include <sys/wait.h>
24696#ifdef HAVE_VFORK_H
24697# include <vfork.h>
24698#endif
24699/* On some sparc systems, changes by the child to local and incoming
24700 argument registers are propagated back to the parent. The compiler
24701 is told about this with #include <vfork.h>, but some compilers
24702 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24703 static variable whose address is put into a register that is
24704 clobbered by the vfork. */
24705static void
24706#ifdef __cplusplus
24707sparc_address_test (int arg)
24708# else
24709sparc_address_test (arg) int arg;
24710#endif
24711{
24712 static pid_t child;
24713 if (!child) {
24714 child = vfork ();
24715 if (child < 0) {
24716 perror ("vfork");
24717 _exit(2);
24718 }
24719 if (!child) {
24720 arg = getpid();
24721 write(-1, "", 0);
24722 _exit (arg);
24723 }
24724 }
24725}
24726
24727int
24728main ()
24729{
24730 pid_t parent = getpid ();
24731 pid_t child;
24732
24733 sparc_address_test (0);
24734
24735 child = vfork ();
24736
24737 if (child == 0) {
24738 /* Here is another test for sparc vfork register problems. This
24739 test uses lots of local variables, at least as many local
24740 variables as main has allocated so far including compiler
24741 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24742 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24743 reuse the register of parent for one of the local variables,
24744 since it will think that parent can't possibly be used any more
24745 in this routine. Assigning to the local variable will thus
24746 munge parent in the parent process. */
24747 pid_t
24748 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24749 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24750 /* Convince the compiler that p..p7 are live; otherwise, it might
24751 use the same hardware register for all 8 local variables. */
24752 if (p != p1 || p != p2 || p != p3 || p != p4
24753 || p != p5 || p != p6 || p != p7)
24754 _exit(1);
24755
24756 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24757 from child file descriptors. If the child closes a descriptor
24758 before it execs or exits, this munges the parent's descriptor
24759 as well. Test for this by closing stdout in the child. */
24760 _exit(close(fileno(stdout)) != 0);
24761 } else {
24762 int status;
24763 struct stat st;
24764
24765 while (wait(&status) != child)
24766 ;
24767 return (
24768 /* Was there some problem with vforking? */
24769 child < 0
24770
24771 /* Did the child fail? (This shouldn't happen.) */
24772 || status
24773
24774 /* Did the vfork/compiler bug occur? */
24775 || parent != getpid()
24776
24777 /* Did the file descriptor bug occur? */
24778 || fstat(fileno(stdout), &st) != 0
24779 );
24780 }
24781}
24782_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024783if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024784 ac_cv_func_vfork_works=yes
24785else
cristy8b350f62009-11-15 23:12:43 +000024786 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024787fi
cristy8b350f62009-11-15 23:12:43 +000024788rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24789 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024790fi
24791
cristy3ed852e2009-09-05 21:47:34 +000024792fi
cristy8b350f62009-11-15 23:12:43 +000024793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024794$as_echo "$ac_cv_func_vfork_works" >&6; }
24795
24796fi;
24797if test "x$ac_cv_func_fork_works" = xcross; then
24798 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000024799 { $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 +000024800$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24801fi
24802
24803if test "x$ac_cv_func_vfork_works" = xyes; then
24804
cristy8b350f62009-11-15 23:12:43 +000024805$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024806
24807else
24808
cristy8b350f62009-11-15 23:12:43 +000024809$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024810
24811fi
24812if test "x$ac_cv_func_fork_works" = xyes; then
24813
cristy8b350f62009-11-15 23:12:43 +000024814$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024815
24816fi
24817
cristy8b350f62009-11-15 23:12:43 +000024818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024819$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024820if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024821 $as_echo_n "(cached) " >&6
24822else
cristy8b350f62009-11-15 23:12:43 +000024823 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024824 ac_cv_func_memcmp_working=no
24825else
cristy8b350f62009-11-15 23:12:43 +000024826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024827/* end confdefs.h. */
24828$ac_includes_default
24829int
24830main ()
24831{
24832
24833 /* Some versions of memcmp are not 8-bit clean. */
24834 char c0 = '\100', c1 = '\200', c2 = '\201';
24835 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24836 return 1;
24837
24838 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24839 or more and with at least one buffer not starting on a 4-byte boundary.
24840 William Lewis provided this test program. */
24841 {
24842 char foo[21];
24843 char bar[21];
24844 int i;
24845 for (i = 0; i < 4; i++)
24846 {
24847 char *a = foo + i;
24848 char *b = bar + i;
24849 strcpy (a, "--------01111111");
24850 strcpy (b, "--------10000000");
24851 if (memcmp (a, b, 16) >= 0)
24852 return 1;
24853 }
24854 return 0;
24855 }
24856
24857 ;
24858 return 0;
24859}
24860_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024861if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024862 ac_cv_func_memcmp_working=yes
24863else
cristy8b350f62009-11-15 23:12:43 +000024864 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000024865fi
cristy8b350f62009-11-15 23:12:43 +000024866rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24867 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024868fi
24869
cristy3ed852e2009-09-05 21:47:34 +000024870fi
cristy8b350f62009-11-15 23:12:43 +000024871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000024872$as_echo "$ac_cv_func_memcmp_working" >&6; }
24873test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24874 *" memcmp.$ac_objext "* ) ;;
24875 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24876 ;;
24877esac
24878
24879
cristy3ed852e2009-09-05 21:47:34 +000024880for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000024881do :
24882 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24883ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000024884if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024885 cat >>confdefs.h <<_ACEOF
24886#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24887_ACEOF
24888
24889fi
24890
24891done
24892
cristy8b350f62009-11-15 23:12:43 +000024893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000024894$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024895if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024896 $as_echo_n "(cached) " >&6
24897else
24898 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
24899 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
24900 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000024901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024902/* end confdefs.h. */
24903$ac_includes_default
24904#ifdef HAVE_SYS_SELECT_H
24905# include <sys/select.h>
24906#endif
24907#ifdef HAVE_SYS_SOCKET_H
24908# include <sys/socket.h>
24909#endif
24910
24911int
24912main ()
24913{
24914extern int select ($ac_arg1,
24915 $ac_arg234, $ac_arg234, $ac_arg234,
24916 $ac_arg5);
24917 ;
24918 return 0;
24919}
24920_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024921if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024922 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000024923fi
cristy3ed852e2009-09-05 21:47:34 +000024924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24925 done
24926 done
24927done
24928# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000024929: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000024930
24931fi
cristy8b350f62009-11-15 23:12:43 +000024932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000024933$as_echo "$ac_cv_func_select_args" >&6; }
24934ac_save_IFS=$IFS; IFS=','
24935set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
24936IFS=$ac_save_IFS
24937shift
24938
24939cat >>confdefs.h <<_ACEOF
24940#define SELECT_TYPE_ARG1 $1
24941_ACEOF
24942
24943
24944cat >>confdefs.h <<_ACEOF
24945#define SELECT_TYPE_ARG234 ($2)
24946_ACEOF
24947
24948
24949cat >>confdefs.h <<_ACEOF
24950#define SELECT_TYPE_ARG5 ($3)
24951_ACEOF
24952
24953rm -f conftest*
24954
cristyda16f162011-02-19 23:52:17 +000024955if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024956 $as_echo_n "(cached) " >&6
24957else
24958 ac_cv_func_setvbuf_reversed=no
24959fi
24960
24961
cristy8b350f62009-11-15 23:12:43 +000024962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000024963$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024964if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024965 $as_echo_n "(cached) " >&6
24966else
cristy8b350f62009-11-15 23:12:43 +000024967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024968/* end confdefs.h. */
24969#include <sys/types.h>
24970#include <signal.h>
24971
24972int
24973main ()
24974{
24975return *(signal (0, 0)) (0) == 1;
24976 ;
24977 return 0;
24978}
24979_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024980if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024981 ac_cv_type_signal=int
24982else
cristy8b350f62009-11-15 23:12:43 +000024983 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000024984fi
cristy3ed852e2009-09-05 21:47:34 +000024985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24986fi
cristy8b350f62009-11-15 23:12:43 +000024987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000024988$as_echo "$ac_cv_type_signal" >&6; }
24989
24990cat >>confdefs.h <<_ACEOF
24991#define RETSIGTYPE $ac_cv_type_signal
24992_ACEOF
24993
24994
cristy8b350f62009-11-15 23:12:43 +000024995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024996$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024997if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024998 $as_echo_n "(cached) " >&6
24999else
cristy8b350f62009-11-15 23:12:43 +000025000 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025001 ac_cv_func_strtod=no
25002else
cristy8b350f62009-11-15 23:12:43 +000025003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025004/* end confdefs.h. */
25005
25006$ac_includes_default
25007#ifndef strtod
25008double strtod ();
25009#endif
25010int
25011main()
25012{
25013 {
25014 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
25015 char *string = " +69";
25016 char *term;
25017 double value;
25018 value = strtod (string, &term);
25019 if (value != 69 || term != (string + 4))
25020 return 1;
25021 }
25022
25023 {
25024 /* Under Solaris 2.4, strtod returns the wrong value for the
25025 terminating character under some conditions. */
25026 char *string = "NaN";
25027 char *term;
25028 strtod (string, &term);
25029 if (term != string && *(term - 1) == 0)
25030 return 1;
25031 }
25032 return 0;
25033}
25034
25035_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025036if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025037 ac_cv_func_strtod=yes
25038else
cristy8b350f62009-11-15 23:12:43 +000025039 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000025040fi
cristy8b350f62009-11-15 23:12:43 +000025041rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25042 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025043fi
25044
cristy3ed852e2009-09-05 21:47:34 +000025045fi
cristy8b350f62009-11-15 23:12:43 +000025046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000025047$as_echo "$ac_cv_func_strtod" >&6; }
25048if test $ac_cv_func_strtod = no; then
25049 case " $LIBOBJS " in
25050 *" strtod.$ac_objext "* ) ;;
25051 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
25052 ;;
25053esac
25054
cristy8b350f62009-11-15 23:12:43 +000025055ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000025056if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025057
cristy3ed852e2009-09-05 21:47:34 +000025058fi
25059
cristy3ed852e2009-09-05 21:47:34 +000025060if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000025061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000025062$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025063if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025064 $as_echo_n "(cached) " >&6
25065else
25066 ac_check_lib_save_LIBS=$LIBS
25067LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025068cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025069/* end confdefs.h. */
25070
25071/* Override any GCC internal prototype to avoid an error.
25072 Use char because int might match the return type of a GCC
25073 builtin and then its argument prototype would still apply. */
25074#ifdef __cplusplus
25075extern "C"
25076#endif
25077char pow ();
25078int
25079main ()
25080{
25081return pow ();
25082 ;
25083 return 0;
25084}
25085_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025086if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025087 ac_cv_lib_m_pow=yes
25088else
cristy8b350f62009-11-15 23:12:43 +000025089 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000025090fi
cristy8b350f62009-11-15 23:12:43 +000025091rm -f core conftest.err conftest.$ac_objext \
25092 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025093LIBS=$ac_check_lib_save_LIBS
25094fi
cristy8b350f62009-11-15 23:12:43 +000025095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000025096$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000025097if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025098 POW_LIB=-lm
25099else
cristy8b350f62009-11-15 23:12:43 +000025100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000025101$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
25102fi
25103
25104fi
25105
25106fi
25107
cristy7d4a1d62011-10-13 15:54:12 +000025108ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
25109if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
25110 ac_have_decl=1
25111else
25112 ac_have_decl=0
25113fi
25114
25115cat >>confdefs.h <<_ACEOF
25116#define HAVE_DECL_STRERROR_R $ac_have_decl
25117_ACEOF
25118
25119for ac_func in strerror_r
25120do :
25121 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
25122if test "x$ac_cv_func_strerror_r" = xyes; then :
25123 cat >>confdefs.h <<_ACEOF
25124#define HAVE_STRERROR_R 1
25125_ACEOF
25126
25127fi
25128done
25129
25130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
25131$as_echo_n "checking whether strerror_r returns char *... " >&6; }
25132if ${ac_cv_func_strerror_r_char_p+:} false; then :
25133 $as_echo_n "(cached) " >&6
25134else
25135
25136 ac_cv_func_strerror_r_char_p=no
25137 if test $ac_cv_have_decl_strerror_r = yes; then
25138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25139/* end confdefs.h. */
25140$ac_includes_default
25141int
25142main ()
25143{
25144
25145 char buf[100];
25146 char x = *strerror_r (0, buf, sizeof buf);
25147 char *p = strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000025148 return !p || x;
cristy7d4a1d62011-10-13 15:54:12 +000025149
25150 ;
25151 return 0;
25152}
25153_ACEOF
25154if ac_fn_c_try_compile "$LINENO"; then :
25155 ac_cv_func_strerror_r_char_p=yes
25156fi
25157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25158 else
25159 # strerror_r is not declared. Choose between
25160 # systems that have relatively inaccessible declarations for the
25161 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
25162 # former has a strerror_r that returns char*, while the latter
25163 # has a strerror_r that returns `int'.
25164 # This test should segfault on the DEC system.
25165 if test "$cross_compiling" = yes; then :
25166 :
25167else
25168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25169/* end confdefs.h. */
25170$ac_includes_default
25171 extern char *strerror_r ();
25172int
25173main ()
25174{
25175char buf[100];
25176 char x = *strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000025177 return ! isalpha (x);
cristy7d4a1d62011-10-13 15:54:12 +000025178 ;
25179 return 0;
25180}
25181_ACEOF
25182if ac_fn_c_try_run "$LINENO"; then :
25183 ac_cv_func_strerror_r_char_p=yes
25184fi
25185rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25186 conftest.$ac_objext conftest.beam conftest.$ac_ext
25187fi
25188
25189 fi
25190
25191fi
25192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
25193$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
25194if test $ac_cv_func_strerror_r_char_p = yes; then
25195
25196$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
25197
25198fi
25199
cristy3ed852e2009-09-05 21:47:34 +000025200for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000025201do :
25202 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000025203if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025204 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025205#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000025206_ACEOF
25207
cristy8b350f62009-11-15 23:12:43 +000025208ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000025209if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025210
cristy8b350f62009-11-15 23:12:43 +000025211$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025212
25213fi
25214
25215fi
25216done
25217
25218
25219
cristy161b9262010-03-20 19:34:32 +000025220#
25221# Find math library
25222#
25223MATH_LIBS=''
25224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
25225$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025226if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000025227 $as_echo_n "(cached) " >&6
25228else
25229 ac_check_lib_save_LIBS=$LIBS
25230LIBS="-lm $LIBS"
25231cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25232/* end confdefs.h. */
25233
25234/* Override any GCC internal prototype to avoid an error.
25235 Use char because int might match the return type of a GCC
25236 builtin and then its argument prototype would still apply. */
25237#ifdef __cplusplus
25238extern "C"
25239#endif
25240char sqrt ();
25241int
25242main ()
25243{
25244return sqrt ();
25245 ;
25246 return 0;
25247}
25248_ACEOF
25249if ac_fn_c_try_link "$LINENO"; then :
25250 ac_cv_lib_m_sqrt=yes
25251else
25252 ac_cv_lib_m_sqrt=no
25253fi
25254rm -f core conftest.err conftest.$ac_objext \
25255 conftest$ac_exeext conftest.$ac_ext
25256LIBS=$ac_check_lib_save_LIBS
25257fi
25258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
25259$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000025260if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000025261 MATH_LIBS="-lm"
25262fi
25263
25264LIBS="$MATH_LIBS $LIBS"
25265
25266
cristy85572162013-01-04 19:19:32 +000025267#
25268# Find socket library
25269#
cristy8a5d7f42013-01-06 15:24:33 +000025270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
25271$as_echo_n "checking for library containing gethostbyname... " >&6; }
25272if ${ac_cv_search_gethostbyname+:} false; then :
25273 $as_echo_n "(cached) " >&6
25274else
25275 ac_func_search_save_LIBS=$LIBS
25276cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25277/* end confdefs.h. */
25278
25279/* Override any GCC internal prototype to avoid an error.
25280 Use char because int might match the return type of a GCC
25281 builtin and then its argument prototype would still apply. */
25282#ifdef __cplusplus
25283extern "C"
25284#endif
25285char gethostbyname ();
25286int
25287main ()
25288{
25289return gethostbyname ();
25290 ;
25291 return 0;
25292}
25293_ACEOF
25294for ac_lib in '' resolv nsl; do
25295 if test -z "$ac_lib"; then
25296 ac_res="none required"
25297 else
25298 ac_res=-l$ac_lib
25299 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25300 fi
25301 if ac_fn_c_try_link "$LINENO"; then :
25302 ac_cv_search_gethostbyname=$ac_res
25303fi
25304rm -f core conftest.err conftest.$ac_objext \
25305 conftest$ac_exeext
25306 if ${ac_cv_search_gethostbyname+:} false; then :
25307 break
25308fi
25309done
25310if ${ac_cv_search_gethostbyname+:} false; then :
25311
25312else
25313 ac_cv_search_gethostbyname=no
25314fi
25315rm conftest.$ac_ext
25316LIBS=$ac_func_search_save_LIBS
25317fi
25318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
25319$as_echo "$ac_cv_search_gethostbyname" >&6; }
25320ac_res=$ac_cv_search_gethostbyname
25321if test "$ac_res" != no; then :
25322 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25323
25324fi
25325
cristy85572162013-01-04 19:19:32 +000025326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
25327$as_echo_n "checking for library containing socket... " >&6; }
25328if ${ac_cv_search_socket+:} false; then :
25329 $as_echo_n "(cached) " >&6
25330else
25331 ac_func_search_save_LIBS=$LIBS
25332cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25333/* end confdefs.h. */
25334
25335/* Override any GCC internal prototype to avoid an error.
25336 Use char because int might match the return type of a GCC
25337 builtin and then its argument prototype would still apply. */
25338#ifdef __cplusplus
25339extern "C"
25340#endif
25341char socket ();
25342int
25343main ()
25344{
25345return socket ();
25346 ;
25347 return 0;
25348}
25349_ACEOF
25350for ac_lib in '' socket; do
25351 if test -z "$ac_lib"; then
25352 ac_res="none required"
25353 else
25354 ac_res=-l$ac_lib
25355 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25356 fi
25357 if ac_fn_c_try_link "$LINENO"; then :
25358 ac_cv_search_socket=$ac_res
25359fi
25360rm -f core conftest.err conftest.$ac_objext \
25361 conftest$ac_exeext
25362 if ${ac_cv_search_socket+:} false; then :
25363 break
25364fi
25365done
25366if ${ac_cv_search_socket+:} false; then :
25367
25368else
25369 ac_cv_search_socket=no
25370fi
25371rm conftest.$ac_ext
25372LIBS=$ac_func_search_save_LIBS
25373fi
25374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
25375$as_echo "$ac_cv_search_socket" >&6; }
25376ac_res=$ac_cv_search_socket
25377if test "$ac_res" != no; then :
25378 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25379
cristy85572162013-01-04 19:19:32 +000025380
cristy8a5d7f42013-01-06 15:24:33 +000025381$as_echo "#define HAVE_SOCKET 1" >>confdefs.h
cristy85572162013-01-04 19:19:32 +000025382
cristy03f187e2013-01-24 00:22:19 +000025383 MAGICK_FEATURES="DPC $MAGICK_FEATURES"
cristy85572162013-01-04 19:19:32 +000025384
25385fi
25386
25387
25388for 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 +000025389do :
25390 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25391ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025392if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025393 cat >>confdefs.h <<_ACEOF
25394#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25395_ACEOF
25396
25397fi
25398done
25399
25400
cristye43a45e2009-09-28 14:49:00 +000025401#
25402# Check for clock_gettime().
25403#
cristy8b350f62009-11-15 23:12:43 +000025404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025405$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025406if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025407 $as_echo_n "(cached) " >&6
25408else
25409 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000025410cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025411/* end confdefs.h. */
25412
25413/* Override any GCC internal prototype to avoid an error.
25414 Use char because int might match the return type of a GCC
25415 builtin and then its argument prototype would still apply. */
25416#ifdef __cplusplus
25417extern "C"
25418#endif
25419char clock_gettime ();
25420int
25421main ()
25422{
25423return clock_gettime ();
25424 ;
25425 return 0;
25426}
25427_ACEOF
25428for ac_lib in '' rt; do
25429 if test -z "$ac_lib"; then
25430 ac_res="none required"
25431 else
25432 ac_res=-l$ac_lib
25433 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25434 fi
cristy8b350f62009-11-15 23:12:43 +000025435 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025436 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000025437fi
cristy8b350f62009-11-15 23:12:43 +000025438rm -f core conftest.err conftest.$ac_objext \
25439 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000025440 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025441 break
25442fi
25443done
cristyda16f162011-02-19 23:52:17 +000025444if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000025445
cristye43a45e2009-09-28 14:49:00 +000025446else
25447 ac_cv_search_clock_gettime=no
25448fi
25449rm conftest.$ac_ext
25450LIBS=$ac_func_search_save_LIBS
25451fi
cristy8b350f62009-11-15 23:12:43 +000025452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025453$as_echo "$ac_cv_search_clock_gettime" >&6; }
25454ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000025455if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000025456 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25457
25458
cristy8b350f62009-11-15 23:12:43 +000025459$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025460
cristy8b350f62009-11-15 23:12:43 +000025461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000025462$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025464/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000025465
25466 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000025467int
25468main ()
25469{
25470clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000025471 ;
25472 return 0;
25473}
25474_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025475if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025476
cristyad38abe2012-12-23 23:03:21 +000025477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25478$as_echo "yes" >&6; }
cristye43a45e2009-09-28 14:49:00 +000025479
cristy8b350f62009-11-15 23:12:43 +000025480$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025481
25482
25483else
cristyad38abe2012-12-23 23:03:21 +000025484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25485$as_echo "no" >&6; }
cristye43a45e2009-09-28 14:49:00 +000025486
25487fi
cristye43a45e2009-09-28 14:49:00 +000025488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25489
25490else
25491
cristy8b350f62009-11-15 23:12:43 +000025492 for ac_func in gettimeofday ftime
25493do :
25494 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25495ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025496if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000025497 cat >>confdefs.h <<_ACEOF
25498#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25499_ACEOF
25500 break
25501fi
25502done
25503
25504
25505
25506fi
25507
25508
cristy3ed852e2009-09-05 21:47:34 +000025509########
25510#
25511# Check for function prototypes
25512#
25513########
25514
cristy8b350f62009-11-15 23:12:43 +000025515ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000025516#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025517"
cristyda16f162011-02-19 23:52:17 +000025518if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025519 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025520else
cristy8b350f62009-11-15 23:12:43 +000025521 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025522fi
25523
cristy3ed852e2009-09-05 21:47:34 +000025524cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025525#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025526_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025527ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000025528#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025529"
cristyda16f162011-02-19 23:52:17 +000025530if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025531 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025532else
cristy8b350f62009-11-15 23:12:43 +000025533 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025534fi
25535
cristy3ed852e2009-09-05 21:47:34 +000025536cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025537#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025538_ACEOF
25539
25540
cristy8b350f62009-11-15 23:12:43 +000025541ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000025542#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000025543"
cristyda16f162011-02-19 23:52:17 +000025544if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025545 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025546else
cristy8b350f62009-11-15 23:12:43 +000025547 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025548fi
25549
cristy3ed852e2009-09-05 21:47:34 +000025550cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025551#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025552_ACEOF
25553
25554
cristy8b350f62009-11-15 23:12:43 +000025555ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000025556#include <stdio.h>
25557#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000025558"
cristyda16f162011-02-19 23:52:17 +000025559if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025560 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025561else
cristy8b350f62009-11-15 23:12:43 +000025562 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025563fi
25564
cristy3ed852e2009-09-05 21:47:34 +000025565cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025566#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025567_ACEOF
25568
25569
cristy3ed852e2009-09-05 21:47:34 +000025570########
25571#
25572# C++ Support Tests (For Magick++)
25573#
25574########
25575have_magick_plus_plus='no'
25576if test "$with_magick_plus_plus" = 'yes'; then
25577 OLIBS="$LIBS"
25578 LIBS=''
25579 ac_ext=cpp
25580ac_cpp='$CXXCPP $CPPFLAGS'
25581ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25582ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25583ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25584
25585
25586 # Full set of headers used...
25587 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
25588 # functional iomanip iosfwd iostream iterator list string strstream utility
25589 ac_ext=cpp
25590ac_cpp='$CXXCPP $CPPFLAGS'
25591ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25592ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25593ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25594
25595 ac_ext=cpp
25596ac_cpp='$CXXCPP $CPPFLAGS'
25597ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25598ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25599ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25600if test -z "$CXX"; then
25601 if test -n "$CCC"; then
25602 CXX=$CCC
25603 else
25604 if test -n "$ac_tool_prefix"; then
25605 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25606 do
25607 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25608set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025610$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025611if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025612 $as_echo_n "(cached) " >&6
25613else
25614 if test -n "$CXX"; then
25615 ac_cv_prog_CXX="$CXX" # Let the user override the test.
25616else
25617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25618for as_dir in $PATH
25619do
25620 IFS=$as_save_IFS
25621 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025622 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025624 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025626 break 2
25627 fi
25628done
cristy8b350f62009-11-15 23:12:43 +000025629 done
cristy3ed852e2009-09-05 21:47:34 +000025630IFS=$as_save_IFS
25631
25632fi
25633fi
25634CXX=$ac_cv_prog_CXX
25635if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025637$as_echo "$CXX" >&6; }
25638else
cristy8b350f62009-11-15 23:12:43 +000025639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025640$as_echo "no" >&6; }
25641fi
25642
25643
25644 test -n "$CXX" && break
25645 done
25646fi
25647if test -z "$CXX"; then
25648 ac_ct_CXX=$CXX
25649 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25650do
25651 # Extract the first word of "$ac_prog", so it can be a program name with args.
25652set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025654$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025655if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025656 $as_echo_n "(cached) " >&6
25657else
25658 if test -n "$ac_ct_CXX"; then
25659 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
25660else
25661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25662for as_dir in $PATH
25663do
25664 IFS=$as_save_IFS
25665 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025666 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025668 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025670 break 2
25671 fi
25672done
cristy8b350f62009-11-15 23:12:43 +000025673 done
cristy3ed852e2009-09-05 21:47:34 +000025674IFS=$as_save_IFS
25675
25676fi
25677fi
25678ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25679if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025681$as_echo "$ac_ct_CXX" >&6; }
25682else
cristy8b350f62009-11-15 23:12:43 +000025683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025684$as_echo "no" >&6; }
25685fi
25686
25687
25688 test -n "$ac_ct_CXX" && break
25689done
25690
25691 if test "x$ac_ct_CXX" = x; then
25692 CXX="g++"
25693 else
25694 case $cross_compiling:$ac_tool_warned in
25695yes:)
cristy8b350f62009-11-15 23:12:43 +000025696{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025697$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25698ac_tool_warned=yes ;;
25699esac
25700 CXX=$ac_ct_CXX
25701 fi
25702fi
25703
25704 fi
25705fi
25706# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000025707$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000025708set X $ac_compile
25709ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000025710for ac_option in --version -v -V -qversion; do
25711 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000025712case "(($ac_try" in
25713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25714 *) ac_try_echo=$ac_try;;
25715esac
cristy8b350f62009-11-15 23:12:43 +000025716eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25717$as_echo "$ac_try_echo"; } >&5
25718 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000025719 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025720 if test -s conftest.err; then
25721 sed '10a\
25722... rest of stderr output deleted ...
25723 10q' conftest.err >conftest.er1
25724 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000025725 fi
cristycd4c5312009-11-22 01:19:08 +000025726 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000025727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25728 test $ac_status = 0; }
25729done
cristy3ed852e2009-09-05 21:47:34 +000025730
cristy8b350f62009-11-15 23:12:43 +000025731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000025732$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025733if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025734 $as_echo_n "(cached) " >&6
25735else
cristy8b350f62009-11-15 23:12:43 +000025736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025737/* end confdefs.h. */
25738
25739int
25740main ()
25741{
25742#ifndef __GNUC__
25743 choke me
25744#endif
25745
25746 ;
25747 return 0;
25748}
25749_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025750if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025751 ac_compiler_gnu=yes
25752else
cristy8b350f62009-11-15 23:12:43 +000025753 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000025754fi
cristy3ed852e2009-09-05 21:47:34 +000025755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25756ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
25757
25758fi
cristy8b350f62009-11-15 23:12:43 +000025759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000025760$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
25761if test $ac_compiler_gnu = yes; then
25762 GXX=yes
25763else
25764 GXX=
25765fi
25766ac_test_CXXFLAGS=${CXXFLAGS+set}
25767ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000025768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025769$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025770if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025771 $as_echo_n "(cached) " >&6
25772else
25773 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
25774 ac_cxx_werror_flag=yes
25775 ac_cv_prog_cxx_g=no
25776 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025778/* end confdefs.h. */
25779
25780int
25781main ()
25782{
25783
25784 ;
25785 return 0;
25786}
25787_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025788if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025789 ac_cv_prog_cxx_g=yes
25790else
cristy8b350f62009-11-15 23:12:43 +000025791 CXXFLAGS=""
25792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025793/* end confdefs.h. */
25794
25795int
25796main ()
25797{
25798
25799 ;
25800 return 0;
25801}
25802_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025803if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025804
cristy8b350f62009-11-15 23:12:43 +000025805else
25806 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000025807 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025809/* end confdefs.h. */
25810
25811int
25812main ()
25813{
25814
25815 ;
25816 return 0;
25817}
25818_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025819if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025820 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000025821fi
cristy3ed852e2009-09-05 21:47:34 +000025822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25823fi
cristy3ed852e2009-09-05 21:47:34 +000025824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25825fi
cristy3ed852e2009-09-05 21:47:34 +000025826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25827 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
25828fi
cristy8b350f62009-11-15 23:12:43 +000025829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025830$as_echo "$ac_cv_prog_cxx_g" >&6; }
25831if test "$ac_test_CXXFLAGS" = set; then
25832 CXXFLAGS=$ac_save_CXXFLAGS
25833elif test $ac_cv_prog_cxx_g = yes; then
25834 if test "$GXX" = yes; then
25835 CXXFLAGS="-g -O2"
25836 else
25837 CXXFLAGS="-g"
25838 fi
25839else
25840 if test "$GXX" = yes; then
25841 CXXFLAGS="-O2"
25842 else
25843 CXXFLAGS=
25844 fi
25845fi
25846ac_ext=cpp
25847ac_cpp='$CXXCPP $CPPFLAGS'
25848ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25849ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25850ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25851
cristy73bd4a52010-10-05 11:24:23 +000025852depcc="$CXX" am_compiler_list=
25853
25854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
25855$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025856if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025857 $as_echo_n "(cached) " >&6
25858else
25859 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25860 # We make a subdir and do the tests there. Otherwise we can end up
25861 # making bogus files that we don't know about and never remove. For
25862 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +000025863 # making a dummy file named 'D' -- because '-MD' means "put the output
25864 # in D".
cristy7247bba2012-02-05 16:37:27 +000025865 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +000025866 mkdir conftest.dir
25867 # Copy depcomp to subdir because otherwise we won't find it if we're
25868 # using a relative directory.
25869 cp "$am_depcomp" conftest.dir
25870 cd conftest.dir
25871 # We will build objects and dependencies in a subdirectory because
25872 # it helps to detect inapplicable dependency modes. For instance
25873 # both Tru64's cc and ICC support -MD to output dependencies as a
25874 # side effect of compilation, but ICC will put the dependencies in
25875 # the current directory while Tru64 will put them in the object
25876 # directory.
25877 mkdir sub
25878
25879 am_cv_CXX_dependencies_compiler_type=none
25880 if test "$am_compiler_list" = ""; then
25881 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25882 fi
25883 am__universal=false
25884 case " $depcc " in #(
25885 *\ -arch\ *\ -arch\ *) am__universal=true ;;
25886 esac
25887
25888 for depmode in $am_compiler_list; do
25889 # Setup a source with many dependencies, because some compilers
25890 # like to wrap large dependency lists on column 80 (with \), and
25891 # we should not choose a depcomp mode which is confused by this.
25892 #
25893 # We need to recreate these files for each test, as the compiler may
25894 # overwrite some of them when testing with obscure command lines.
25895 # This happens at least with the AIX C compiler.
25896 : > sub/conftest.c
25897 for i in 1 2 3 4 5 6; do
25898 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +000025899 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
25900 # Solaris 10 /bin/sh.
25901 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +000025902 done
25903 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25904
cristyc0890a62012-07-19 00:18:20 +000025905 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +000025906 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +000025907 # handle '-M -o', and we need to detect this. Also, some Intel
25908 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +000025909 am__obj=sub/conftest.${OBJEXT-o}
25910 am__minus_obj="-o $am__obj"
25911 case $depmode in
25912 gcc)
25913 # This depmode causes a compiler race in universal mode.
25914 test "$am__universal" = false || continue
25915 ;;
25916 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +000025917 # After this tag, mechanisms are not by side-effect, so they'll
25918 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +000025919 if test "x$enable_dependency_tracking" = xyes; then
25920 continue
25921 else
25922 break
25923 fi
25924 ;;
cristy7247bba2012-02-05 16:37:27 +000025925 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +000025926 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +000025927 # not run yet. These depmodes are late enough in the game, and
25928 # so weak that their functioning should not be impacted.
25929 am__obj=conftest.${OBJEXT-o}
25930 am__minus_obj=
25931 ;;
25932 none) break ;;
25933 esac
25934 if depmode=$depmode \
25935 source=sub/conftest.c object=$am__obj \
25936 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
25937 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
25938 >/dev/null 2>conftest.err &&
25939 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
25940 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
25941 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
25942 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
25943 # icc doesn't choke on unknown options, it will just issue warnings
25944 # or remarks (even with -Werror). So we grep stderr for any message
25945 # that says an option was ignored or not supported.
25946 # When given -MP, icc 7.0 and 7.1 complain thusly:
25947 # icc: Command line warning: ignoring option '-M'; no argument required
25948 # The diagnosis changed in icc 8.0:
25949 # icc: Command line remark: option '-MP' not supported
25950 if (grep 'ignoring option' conftest.err ||
25951 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
25952 am_cv_CXX_dependencies_compiler_type=$depmode
25953 break
25954 fi
25955 fi
25956 done
25957
25958 cd ..
25959 rm -rf conftest.dir
25960else
25961 am_cv_CXX_dependencies_compiler_type=none
25962fi
25963
25964fi
25965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
25966$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
25967CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
25968
25969 if
25970 test "x$enable_dependency_tracking" != xno \
25971 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
25972 am__fastdepCXX_TRUE=
25973 am__fastdepCXX_FALSE='#'
25974else
25975 am__fastdepCXX_TRUE='#'
25976 am__fastdepCXX_FALSE=
25977fi
25978
25979
25980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
25981$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025982if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025983 $as_echo_n "(cached) " >&6
25984else
25985
25986 ac_ext=cpp
25987ac_cpp='$CXXCPP $CPPFLAGS'
25988ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25989ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25990ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25991
25992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25993/* end confdefs.h. */
25994
25995int f(int x){return 1;}
25996int f(char x){return 1;}
25997int f(bool x){return 1;}
25998
25999int
26000main ()
26001{
26002bool b = true; return f(b);
26003 ;
26004 return 0;
26005}
26006_ACEOF
26007if ac_fn_cxx_try_compile "$LINENO"; then :
26008 ax_cv_cxx_bool=yes
26009else
26010 ax_cv_cxx_bool=no
26011fi
26012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26013 ac_ext=cpp
26014ac_cpp='$CXXCPP $CPPFLAGS'
26015ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26016ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26017ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26018
26019
26020fi
26021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
26022$as_echo "$ax_cv_cxx_bool" >&6; }
26023if test "$ax_cv_cxx_bool" = yes; then
26024
26025$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
26026
26027fi
26028
26029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
26030$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026031if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026032 $as_echo_n "(cached) " >&6
26033else
cristy17491be2014-06-24 01:10:53 +000026034 ac_ext=cpp
cristy73bd4a52010-10-05 11:24:23 +000026035ac_cpp='$CXXCPP $CPPFLAGS'
26036ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26037ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26038ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26039
26040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26041/* end confdefs.h. */
26042namespace Outer { namespace Inner { int i = 0; }}
cristy17491be2014-06-24 01:10:53 +000026043 using namespace Outer::Inner; int foo(void) { return i;}
cristy73bd4a52010-10-05 11:24:23 +000026044_ACEOF
26045if ac_fn_cxx_try_compile "$LINENO"; then :
26046 ax_cv_cxx_namespaces=yes
26047else
26048 ax_cv_cxx_namespaces=no
26049fi
26050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26051 ac_ext=cpp
26052ac_cpp='$CXXCPP $CPPFLAGS'
26053ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26054ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26055ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26056
26057
26058fi
26059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
26060$as_echo "$ax_cv_cxx_namespaces" >&6; }
26061if test "$ax_cv_cxx_namespaces" = yes; then
26062
26063$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
26064
26065fi
26066
26067
26068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
26069$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026070if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026071 $as_echo_n "(cached) " >&6
26072else
26073
26074 ac_ext=cpp
26075ac_cpp='$CXXCPP $CPPFLAGS'
26076ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26077ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26078ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26079
26080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26081/* end confdefs.h. */
26082#include <iostream>
26083 std::istream& is = std::cin;
26084int
26085main ()
26086{
26087
26088 ;
26089 return 0;
26090}
26091_ACEOF
26092if ac_fn_cxx_try_compile "$LINENO"; then :
26093 ax_cv_cxx_have_std_namespace=yes
26094else
26095 ax_cv_cxx_have_std_namespace=no
26096fi
26097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26098 ac_ext=cpp
26099ac_cpp='$CXXCPP $CPPFLAGS'
26100ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26101ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26102ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26103
26104
26105fi
26106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
26107$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
26108 if test "$ax_cv_cxx_have_std_namespace" = yes; then
26109
26110$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
26111
26112 fi
26113
26114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
26115$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026116if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026117 $as_echo_n "(cached) " >&6
26118else
26119
26120
26121 ac_ext=cpp
26122ac_cpp='$CXXCPP $CPPFLAGS'
26123ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26124ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26125ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26126
26127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26128/* end confdefs.h. */
26129#include <iostream>
26130#include <map>
26131#include <iomanip>
26132#include <cmath>
26133#ifdef HAVE_NAMESPACES
26134using namespace std;
26135#endif
26136int
26137main ()
26138{
26139return 0;
26140 ;
26141 return 0;
26142}
26143_ACEOF
26144if ac_fn_cxx_try_compile "$LINENO"; then :
26145 ac_cv_cxx_have_std_libs=yes
26146else
26147 ac_cv_cxx_have_std_libs=no
26148fi
26149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26150 ac_ext=cpp
26151ac_cpp='$CXXCPP $CPPFLAGS'
26152ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26153ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26154ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26155
26156
26157fi
26158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
26159$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
26160if test "$ac_cv_cxx_have_std_libs" = yes; then
26161
26162$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
26163
26164fi
26165
cristy3ed852e2009-09-05 21:47:34 +000026166
26167 OPENMP_CXXFLAGS=
26168 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000026169if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026170 enableval=$enable_openmp;
26171fi
26172
26173 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000026174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
26175$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026176if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026177 $as_echo_n "(cached) " >&6
26178else
cristy8b350f62009-11-15 23:12:43 +000026179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26180/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026181
26182#ifndef _OPENMP
26183 choke me
26184#endif
26185#include <omp.h>
26186int main () { return omp_get_num_threads (); }
26187
26188_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026189if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026190 ac_cv_prog_cxx_openmp='none needed'
26191else
cristy8b350f62009-11-15 23:12:43 +000026192 ac_cv_prog_cxx_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +000026193 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
26194 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +000026195 ac_save_CXXFLAGS=$CXXFLAGS
26196 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000026197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26198/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026199
26200#ifndef _OPENMP
26201 choke me
26202#endif
26203#include <omp.h>
26204int main () { return omp_get_num_threads (); }
26205
26206_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026207if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026208 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000026209fi
cristy8b350f62009-11-15 23:12:43 +000026210rm -f core conftest.err conftest.$ac_objext \
26211 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026212 CXXFLAGS=$ac_save_CXXFLAGS
26213 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
26214 break
26215 fi
26216 done
26217fi
cristy8b350f62009-11-15 23:12:43 +000026218rm -f core conftest.err conftest.$ac_objext \
26219 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026220fi
cristy8b350f62009-11-15 23:12:43 +000026221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026222$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
26223 case $ac_cv_prog_cxx_openmp in #(
26224 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000026225 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000026226 *)
cristy8b350f62009-11-15 23:12:43 +000026227 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000026228 esac
26229 fi
26230
26231
26232 ac_ext=c
26233ac_cpp='$CPP $CPPFLAGS'
26234ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26235ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26236ac_compiler_gnu=$ac_cv_c_compiler_gnu
26237
26238
cristy8b350f62009-11-15 23:12:43 +000026239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000026240$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
26241 if \
cristy964cb7f2010-04-25 23:18:00 +000026242 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026243 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000026244 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026245 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000026246 have_magick_plus_plus='yes'
26247 else
26248 have_magick_plus_plus='no (failed tests)'
26249 fi
cristyad38abe2012-12-23 23:03:21 +000026250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
26251$as_echo "$have_magick_plus_plus" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026252 LIBS="$OLIBS"
26253fi
cristy73bd4a52010-10-05 11:24:23 +000026254 if test "$have_magick_plus_plus" = 'yes'; then
26255 WITH_MAGICK_PLUS_PLUS_TRUE=
26256 WITH_MAGICK_PLUS_PLUS_FALSE='#'
26257else
26258 WITH_MAGICK_PLUS_PLUS_TRUE='#'
26259 WITH_MAGICK_PLUS_PLUS_FALSE=
26260fi
26261
cristy3ed852e2009-09-05 21:47:34 +000026262
26263# Only check for delegate libraries in subdirectories if requested.
26264if test "$enable_delegate_build" != 'no'; then
26265 # Check for delegate sub-directories and add -I & -L options as required.
26266 # This presumes that delegates are installed as detailed in the ImageMagick
26267 # README. If delegates are installed in a standard location where the
26268 # compiler will automatically find them then these options should not be
26269 # required.
26270
26271 #
26272 # Most delegates have includes in the same directory as the library, but not all...
26273 #
26274 # Includes
cristy31269aa2014-04-06 13:07:35 +000026275 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper/include jbig/libjbig jpeg lcms/include lzma magick openjp2/include png tiff/libtiff ttf/include wand webp/src wmf/include xml/include zlib; do
cristy3ed852e2009-09-05 21:47:34 +000026276 if test -d "$builddir/$dir"; then
26277 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
26278 else
26279 if test -d "$srcdirfull/$dir"; then
26280 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
26281 fi
26282 fi
26283 done
26284
26285 # Libraries
cristy31269aa2014-04-06 13:07:35 +000026286 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper jbig/libjbig jpeg lcms/src lzma magick openjp2 png tiff/libtiff ttf/objs wand webp wmf/src xml zlib; do
cristy3ed852e2009-09-05 21:47:34 +000026287 if test -d "$builddir/$dir/.libs"; then
26288 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
26289 else
26290 if test -d "$srcdirfull/$dir/.libs"; then
26291 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
26292 fi
26293 fi
26294 if test -d "$builddir/$dir"; then
26295 LDFLAGS="$LDFLAGS -L$builddir/$dir"
26296 else
26297 if test -d "$srcdirfull/$dir"; then
26298 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
26299 fi
26300 fi
26301 done
26302fi
26303
26304# Assume that delegate headers reside under same directory as ImageMagick
26305# installation prefix.
cristybdabdd62013-03-04 17:43:36 +000026306MAGICK_CPPFLAGS="-I$INCLUDE_DIR/${PACKAGE_NAME}-$MAGICK_MAJOR_VERSION $MAGICK_CPPFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000026307
26308#
26309# Find the X11 RGB database
26310#
cristy8b350f62009-11-15 23:12:43 +000026311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000026312$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026313if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026314 $as_echo_n "(cached) " >&6
26315else
26316 # Look for the header file in a standard set of common directories.
26317# Check X11 before X11Rn because it is often a symlink to the current release.
26318 for ac_dir in \
26319 /lib/usr/lib/X11 \
26320 /usr/X11/lib \
26321 /usr/X11R4/lib \
26322 /usr/X11R5/lib \
26323 /usr/X11R6/lib \
26324 /usr/X11R7/lib \
26325 /usr/X386/lib \
26326 /usr/XFree86/lib/X11 \
26327 /usr/athena/lib \
26328 /usr/lib \
26329 /usr/lib/X11 \
26330 /usr/lib/X11R4 \
26331 /usr/lib/X11R5 \
26332 /usr/lib/X11R6 \
26333 /usr/lib/X11R7 \
26334 /usr/local/X11/lib \
26335 /usr/local/X11R4/lib \
26336 /usr/local/X11R5/lib \
26337 /usr/local/X11R6/lib \
26338 /usr/local/lib \
26339 /usr/local/lib/X11 \
26340 /usr/local/lib/X11R4 \
26341 /usr/local/lib/X11R5 \
26342 /usr/local/lib/X11R6 \
26343 /usr/local/lib/X11R7 \
26344 /usr/local/x11r5/lib \
26345 /usr/lpp/Xamples/lib \
26346 /usr/openwin/lib \
26347 /usr/openwin/share/lib \
26348 /usr/unsupported/lib \
26349 /usr/x386/lib \
26350 ; do
26351 if test -f "$ac_dir/X11/rgb.txt"; then
26352 im_cv_x_configure="$ac_dir/X11/"
26353 break
26354 elif test -f "$ac_dir/rgb.txt"; then
26355 im_cv_x_configure="$ac_dir/"
26356 break
26357 fi
26358
26359 done
26360fi
cristy8b350f62009-11-15 23:12:43 +000026361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000026362$as_echo "$im_cv_x_configure" >&6; }
26363X11_CONFIGURE_PATH="$im_cv_x_configure"
26364case "${build_os}" in
26365 mingw* )
26366 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
26367 ;;
26368esac
26369
26370cat >>confdefs.h <<_ACEOF
26371#define X11_CONFIGURE_PATH "$X11ConfigurePath"
26372_ACEOF
26373
26374
26375#
26376# Find OpenMP library
26377#
26378GOMP_LIBS=''
26379if test "$enable_openmp" != 'no'; then
26380 if test "${GCC}" = "yes"; then
cristy18307f12011-12-30 01:20:16 +000026381 # Open64 (passes for GCC but uses different OpenMP implementation)
26382 if test "x$GOMP_LIBS" = x ; then
26383 if $CC --version 2>&1 | grep Open64 > /dev/null ; then
26384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5
26385$as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; }
26386if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then :
26387 $as_echo_n "(cached) " >&6
26388else
26389 ac_check_lib_save_LIBS=$LIBS
26390LIBS="-lopenmp $LIBS"
26391cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26392/* end confdefs.h. */
26393
26394/* Override any GCC internal prototype to avoid an error.
26395 Use char because int might match the return type of a GCC
26396 builtin and then its argument prototype would still apply. */
26397#ifdef __cplusplus
26398extern "C"
26399#endif
26400char omp_get_num_procs ();
26401int
26402main ()
26403{
26404return omp_get_num_procs ();
26405 ;
26406 return 0;
26407}
26408_ACEOF
26409if ac_fn_c_try_link "$LINENO"; then :
26410 ac_cv_lib_openmp_omp_get_num_procs=yes
26411else
26412 ac_cv_lib_openmp_omp_get_num_procs=no
26413fi
26414rm -f core conftest.err conftest.$ac_objext \
26415 conftest$ac_exeext conftest.$ac_ext
26416LIBS=$ac_check_lib_save_LIBS
26417fi
26418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5
26419$as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; }
26420if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then :
26421 GOMP_LIBS="-lopenmp"
26422fi
26423
26424 fi
26425 fi
26426 # GCC
26427 if test "x$GOMP_LIBS" = x ; then
26428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026429$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026430if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026431 $as_echo_n "(cached) " >&6
26432else
26433 ac_check_lib_save_LIBS=$LIBS
26434LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026435cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026436/* end confdefs.h. */
26437
26438/* Override any GCC internal prototype to avoid an error.
26439 Use char because int might match the return type of a GCC
26440 builtin and then its argument prototype would still apply. */
26441#ifdef __cplusplus
26442extern "C"
26443#endif
26444char GOMP_parallel_start ();
26445int
26446main ()
26447{
26448return GOMP_parallel_start ();
26449 ;
26450 return 0;
26451}
26452_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026453if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026454 ac_cv_lib_gomp_GOMP_parallel_start=yes
26455else
cristy8b350f62009-11-15 23:12:43 +000026456 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000026457fi
cristy8b350f62009-11-15 23:12:43 +000026458rm -f core conftest.err conftest.$ac_objext \
26459 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026460LIBS=$ac_check_lib_save_LIBS
26461fi
cristy8b350f62009-11-15 23:12:43 +000026462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000026463$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000026464if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026465 GOMP_LIBS="-lgomp"
26466fi
cristy18307f12011-12-30 01:20:16 +000026467
26468 fi
cristy3ed852e2009-09-05 21:47:34 +000026469 else
cristy18307f12011-12-30 01:20:16 +000026470 # Sun CC
26471 if test "x$GOMP_LIBS" = x ; then
26472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026473$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026474if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026475 $as_echo_n "(cached) " >&6
26476else
26477 ac_check_lib_save_LIBS=$LIBS
26478LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026479cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026480/* end confdefs.h. */
26481
26482/* Override any GCC internal prototype to avoid an error.
26483 Use char because int might match the return type of a GCC
26484 builtin and then its argument prototype would still apply. */
26485#ifdef __cplusplus
26486extern "C"
26487#endif
26488char sunw_mp_register_warn ();
26489int
26490main ()
26491{
26492return sunw_mp_register_warn ();
26493 ;
26494 return 0;
26495}
26496_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026497if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026498 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
26499else
cristy8b350f62009-11-15 23:12:43 +000026500 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000026501fi
cristy8b350f62009-11-15 23:12:43 +000026502rm -f core conftest.err conftest.$ac_objext \
26503 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026504LIBS=$ac_check_lib_save_LIBS
26505fi
cristy8b350f62009-11-15 23:12:43 +000026506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000026507$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000026508if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026509 GOMP_LIBS="-lmtsk"
26510fi
cristy18307f12011-12-30 01:20:16 +000026511
26512 fi
26513 # AIX xlc
26514 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026516$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026517if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026518 $as_echo_n "(cached) " >&6
26519else
26520 ac_check_lib_save_LIBS=$LIBS
26521LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026522cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026523/* end confdefs.h. */
26524
26525/* Override any GCC internal prototype to avoid an error.
26526 Use char because int might match the return type of a GCC
26527 builtin and then its argument prototype would still apply. */
26528#ifdef __cplusplus
26529extern "C"
26530#endif
26531char _xlsmpFlush ();
26532int
26533main ()
26534{
26535return _xlsmpFlush ();
26536 ;
26537 return 0;
26538}
26539_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026540if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026541 ac_cv_lib_xlsmp__xlsmpFlush=yes
26542else
cristy8b350f62009-11-15 23:12:43 +000026543 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000026544fi
cristy8b350f62009-11-15 23:12:43 +000026545rm -f core conftest.err conftest.$ac_objext \
26546 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026547LIBS=$ac_check_lib_save_LIBS
26548fi
cristy8b350f62009-11-15 23:12:43 +000026549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000026550$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000026551if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026552 GOMP_LIBS="-lxlsmp"
26553fi
cristy18307f12011-12-30 01:20:16 +000026554
26555 fi
26556 # SGI IRIX 6.5 MIPSpro C/C++
26557 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026559$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026560if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026561 $as_echo_n "(cached) " >&6
26562else
26563 ac_check_lib_save_LIBS=$LIBS
26564LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026565cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026566/* end confdefs.h. */
26567
26568/* Override any GCC internal prototype to avoid an error.
26569 Use char because int might match the return type of a GCC
26570 builtin and then its argument prototype would still apply. */
26571#ifdef __cplusplus
26572extern "C"
26573#endif
26574char mp_destroy ();
26575int
26576main ()
26577{
26578return mp_destroy ();
26579 ;
26580 return 0;
26581}
26582_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026583if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026584 ac_cv_lib_mp_mp_destroy=yes
26585else
cristy8b350f62009-11-15 23:12:43 +000026586 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000026587fi
cristy8b350f62009-11-15 23:12:43 +000026588rm -f core conftest.err conftest.$ac_objext \
26589 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026590LIBS=$ac_check_lib_save_LIBS
26591fi
cristy8b350f62009-11-15 23:12:43 +000026592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000026593$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000026594if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026595 GOMP_LIBS="-lmp"
26596fi
cristy18307f12011-12-30 01:20:16 +000026597
26598 fi
cristy3ed852e2009-09-05 21:47:34 +000026599 fi
26600 LIBS="$GOMP_LIBS $LIBS"
26601fi
26602
26603
cristy12ac8192014-11-04 13:59:13 +000026604#
26605# Check for jemalloc().
26606#
cristy3ed852e2009-09-05 21:47:34 +000026607
26608
cristy12ac8192014-11-04 13:59:13 +000026609# Check whether --with-jemalloc-prefix was given.
26610if test "${with_jemalloc_prefix+set}" = set; then :
26611 withval=$with_jemalloc_prefix;
26612 jemalloc_prefix="$withval"
26613
26614else
26615
26616 if test "`uname -s`" = "Darwin"; then
26617 jemalloc_prefix="je_"
26618 else
26619 jemalloc_prefix=""
26620 fi
26621
26622
26623fi
26624
26625
26626cat >>confdefs.h <<_ACEOF
26627#define prefix_jemalloc ${jemalloc_prefix}
26628_ACEOF
26629
26630
26631enable_jemalloc=no
26632
26633# Check whether --with-jemalloc was given.
26634if test "${with_jemalloc+set}" = set; then :
26635 withval=$with_jemalloc;
26636 if test "$withval" != "no"; then
26637 if test "x${enable_tcmalloc}" = "xyes"; then
26638 as_fn_error $? "Cannot compile with both jemalloc and tcmalloc" "$LINENO" 5
26639 fi
26640 enable_jemalloc=yes
26641 jemalloc_base_dir="$withval"
26642 case "$withval" in
26643 yes)
26644 jemalloc_base_dir="/usr"
26645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking checking for jemalloc includes standard directories" >&5
26646$as_echo_n "checking checking for jemalloc includes standard directories... " >&6; }
26647 ;;
26648 *":"*)
26649 jemalloc_include="`echo $withval |sed -e 's/:.*$//'`"
26650 jemalloc_ldflags="`echo $withval |sed -e 's/^.*://'`"
26651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking checking for jemalloc includes in $jemalloc_include libs in $jemalloc_ldflags" >&5
26652$as_echo_n "checking checking for jemalloc includes in $jemalloc_include libs in $jemalloc_ldflags... " >&6; }
26653 ;;
26654 *)
26655 jemalloc_include="$withval/include"
26656 jemalloc_ldflags="$withval/lib"
26657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking checking for jemalloc includes in $withval" >&5
26658$as_echo_n "checking checking for jemalloc includes in $withval... " >&6; }
26659 ;;
26660 esac
26661 fi
26662
26663fi
26664
26665
26666has_jemalloc=0
26667if test "$enable_jemalloc" != "no"; then
26668 jemalloc_have_headers=0
26669 jemalloc_have_libs=0
26670 if test "$jemalloc_base_dir" != "/usr"; then
26671 CFLAGS="${CFLAGS} -I${jemalloc_include}"
26672 LDFLAGS="${LDFLAGS} -L${jemalloc_ldflags}"
26673 LIBTOOL_LINK_FLAGS="${LIBTOOL_LINK_FLAGS} -R${jemalloc_ldflags}"
26674 fi
26675 func="${jemalloc_prefix}malloc_stats_print"
26676 as_ac_Lib=`$as_echo "ac_cv_lib_jemalloc_${func}" | $as_tr_sh`
26677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${func} in -ljemalloc" >&5
26678$as_echo_n "checking for ${func} in -ljemalloc... " >&6; }
26679if eval \${$as_ac_Lib+:} false; then :
26680 $as_echo_n "(cached) " >&6
26681else
26682 ac_check_lib_save_LIBS=$LIBS
26683LIBS="-ljemalloc $LIBS"
26684cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26685/* end confdefs.h. */
26686
26687/* Override any GCC internal prototype to avoid an error.
26688 Use char because int might match the return type of a GCC
26689 builtin and then its argument prototype would still apply. */
26690#ifdef __cplusplus
26691extern "C"
26692#endif
26693char ${func} ();
26694int
26695main ()
26696{
26697return ${func} ();
26698 ;
26699 return 0;
26700}
26701_ACEOF
26702if ac_fn_c_try_link "$LINENO"; then :
26703 eval "$as_ac_Lib=yes"
26704else
26705 eval "$as_ac_Lib=no"
26706fi
26707rm -f core conftest.err conftest.$ac_objext \
26708 conftest$ac_exeext conftest.$ac_ext
26709LIBS=$ac_check_lib_save_LIBS
26710fi
26711eval ac_res=\$$as_ac_Lib
26712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
26713$as_echo "$ac_res" >&6; }
26714if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
26715 jemalloc_have_libs=1
26716fi
26717
26718 if test "$jemalloc_have_libs" != "0"; then
26719 for ac_header in jemalloc/jemalloc.h
26720do :
26721 ac_fn_c_check_header_mongrel "$LINENO" "jemalloc/jemalloc.h" "ac_cv_header_jemalloc_jemalloc_h" "$ac_includes_default"
26722if test "x$ac_cv_header_jemalloc_jemalloc_h" = xyes; then :
26723 cat >>confdefs.h <<_ACEOF
26724#define HAVE_JEMALLOC_JEMALLOC_H 1
26725_ACEOF
26726 jemalloc_have_headers=1
26727fi
26728
26729done
26730
26731 fi
26732 if test "$jemalloc_have_headers" != "0"; then
26733 has_jemalloc=1
26734 LIBS="${LIBS} -ljemalloc"
26735
26736$as_echo "#define has_jemalloc 1" >>confdefs.h
26737
26738 else
26739 as_fn_error $? "Couldn't find a jemalloc installation" "$LINENO" 5
26740 fi
26741fi
26742
26743
26744if test "x$jemalloc_have_libs" != "x0"; then :
26745 JE_LIBS="-ljemalloc"
26746fi
26747
cristy3ed852e2009-09-05 21:47:34 +000026748#
26749# Check for umem.
26750#
26751have_umem='no'
26752UMEM_LIBS=''
26753if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000026755$as_echo_n "checking for UMEM support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000026756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26757$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026758 failed=0
26759 passed=0
cristy8b350f62009-11-15 23:12:43 +000026760 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026761if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026762 passed=`expr $passed + 1`
26763else
26764 failed=`expr $failed + 1`
26765fi
26766
26767
cristy8b350f62009-11-15 23:12:43 +000026768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026769$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026770if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026771 $as_echo_n "(cached) " >&6
26772else
26773 ac_check_lib_save_LIBS=$LIBS
26774LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026775cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026776/* end confdefs.h. */
26777
26778/* Override any GCC internal prototype to avoid an error.
26779 Use char because int might match the return type of a GCC
26780 builtin and then its argument prototype would still apply. */
26781#ifdef __cplusplus
26782extern "C"
26783#endif
26784char umem_alloc ();
26785int
26786main ()
26787{
26788return umem_alloc ();
26789 ;
26790 return 0;
26791}
26792_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026793if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026794 ac_cv_lib_umem_umem_alloc=yes
26795else
cristy8b350f62009-11-15 23:12:43 +000026796 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000026797fi
cristy8b350f62009-11-15 23:12:43 +000026798rm -f core conftest.err conftest.$ac_objext \
26799 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026800LIBS=$ac_check_lib_save_LIBS
26801fi
cristy8b350f62009-11-15 23:12:43 +000026802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026803$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026804if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026805 passed=`expr $passed + 1`
26806else
26807 failed=`expr $failed + 1`
26808fi
26809
cristy8b350f62009-11-15 23:12:43 +000026810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026811$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026812if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026813 $as_echo_n "(cached) " >&6
26814else
26815 ac_check_lib_save_LIBS=$LIBS
26816LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026817cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026818/* end confdefs.h. */
26819
26820/* Override any GCC internal prototype to avoid an error.
26821 Use char because int might match the return type of a GCC
26822 builtin and then its argument prototype would still apply. */
26823#ifdef __cplusplus
26824extern "C"
26825#endif
26826char umem_free ();
26827int
26828main ()
26829{
26830return umem_free ();
26831 ;
26832 return 0;
26833}
26834_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026835if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026836 ac_cv_lib_umem_umem_free=yes
26837else
cristy8b350f62009-11-15 23:12:43 +000026838 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000026839fi
cristy8b350f62009-11-15 23:12:43 +000026840rm -f core conftest.err conftest.$ac_objext \
26841 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026842LIBS=$ac_check_lib_save_LIBS
26843fi
cristy8b350f62009-11-15 23:12:43 +000026844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000026845$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000026846if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026847 passed=`expr $passed + 1`
26848else
26849 failed=`expr $failed + 1`
26850fi
26851
cristy8b350f62009-11-15 23:12:43 +000026852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026853$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
26854 if test $passed -gt 0; then
26855 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000026856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26857$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026858 have_umem='no (failed tests)'
26859 else
26860 UMEM_LIBS='-lumem'
26861 LIBS="$UMEM_LIBS $LIBS"
26862
cristy8b350f62009-11-15 23:12:43 +000026863$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026864
cristyad38abe2012-12-23 23:03:21 +000026865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26866$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026867 have_umem='yes'
26868 fi
26869 else
cristyad38abe2012-12-23 23:03:21 +000026870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26871$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026872 fi
26873fi
cristy73bd4a52010-10-05 11:24:23 +000026874 if test "$have_umem" = 'yes'; then
26875 HasUMEM_TRUE=
26876 HasUMEM_FALSE='#'
26877else
26878 HasUMEM_TRUE='#'
26879 HasUMEM_FALSE=
26880fi
26881
cristy3ed852e2009-09-05 21:47:34 +000026882
26883
26884#
26885# Add support for ccmalloc memory debugging library if requested
26886#
26887have_ccmalloc='no'
26888CCMALLOC_LIBS=''
26889if test "$enable_ccmalloc" = 'yes'; then
26890 # Extract the first word of "ccmalloc", so it can be a program name with args.
26891set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000026892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000026893$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026894if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026895 $as_echo_n "(cached) " >&6
26896else
26897 case $CCMALLOCDelegate in
26898 [\\/]* | ?:[\\/]*)
26899 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
26900 ;;
26901 *)
26902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26903for as_dir in $PATH
26904do
26905 IFS=$as_save_IFS
26906 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026907 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000026908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000026909 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000026910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026911 break 2
26912 fi
26913done
cristy8b350f62009-11-15 23:12:43 +000026914 done
cristy3ed852e2009-09-05 21:47:34 +000026915IFS=$as_save_IFS
26916
26917 ;;
26918esac
26919fi
26920CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
26921if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000026922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026923$as_echo "$CCMALLOCDelegate" >&6; }
26924else
cristy8b350f62009-11-15 23:12:43 +000026925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026926$as_echo "no" >&6; }
26927fi
26928
26929
26930 if test -n "$CCMALLOCDelegate"; then
26931 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
26932 OLIBS="$LIBS"
26933 # Assume that gcc is used with ccmalloc.
26934 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000026935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026936$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026937if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026938 $as_echo_n "(cached) " >&6
26939else
26940 ac_check_lib_save_LIBS=$LIBS
26941LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026942cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026943/* end confdefs.h. */
26944
26945/* Override any GCC internal prototype to avoid an error.
26946 Use char because int might match the return type of a GCC
26947 builtin and then its argument prototype would still apply. */
26948#ifdef __cplusplus
26949extern "C"
26950#endif
26951char ccmalloc_malloc ();
26952int
26953main ()
26954{
26955return ccmalloc_malloc ();
26956 ;
26957 return 0;
26958}
26959_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026960if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026961 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
26962else
cristy8b350f62009-11-15 23:12:43 +000026963 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000026964fi
cristy8b350f62009-11-15 23:12:43 +000026965rm -f core conftest.err conftest.$ac_objext \
26966 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026967LIBS=$ac_check_lib_save_LIBS
26968fi
cristy8b350f62009-11-15 23:12:43 +000026969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026970$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026971if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026972 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
26973fi
26974
26975 if test -n "$CCMALLOC_LIBS"; then
26976 LIBS="$OLIBS"
26977 LIBS="$LIBS $CCMALLOC_LIBS"
26978 have_ccmalloc='yes'
26979 else
26980 LIBS="$OLIBS"
26981 fi
26982 fi
26983fi
26984
26985#
cristy944e51f2013-04-16 18:45:02 +000026986# Add support for 'huge pages' if requested
26987#
26988if test "x$enable_hugepages" != "xno"; then :
26989
26990
26991$as_echo "#define HAVE_HUGEPAGES 1" >>confdefs.h
26992
26993
26994fi
26995
26996#
cristy3ed852e2009-09-05 21:47:34 +000026997# Add support for efence memory debugging library if requested
26998#
26999if test "$enable_efence" = 'yes'; then
27000 EFENCE_LIBS='-lefence'
27001 LIBS="$EFENCE_LIBS $LIBS"
27002fi
27003
cristy3ed852e2009-09-05 21:47:34 +000027004
27005#
27006# Check for BZLIB
27007#
27008
27009
27010# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000027011if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027012 withval=$with_bzlib; with_bzlib=$withval
27013else
27014 with_bzlib='yes'
27015fi
27016
27017
27018if test "$with_bzlib" != 'yes'; then
27019 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
27020fi
27021
27022have_bzlib='no'
27023if test "$with_bzlib" != 'no'; then
27024 BZLIB_LIBS=''
cristyad38abe2012-12-23 23:03:21 +000027025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27026$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000027028$as_echo_n "checking for BZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27030$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027031 failed=0
27032 passed=0
27033 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000027034 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027035if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027036 passed=`expr $passed + 1`
27037else
27038 failed=`expr $failed + 1`
27039fi
27040
27041
cristy8b350f62009-11-15 23:12:43 +000027042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027043$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027044if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027045 $as_echo_n "(cached) " >&6
27046else
27047 ac_check_lib_save_LIBS=$LIBS
27048LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027049cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027050/* end confdefs.h. */
27051
27052/* Override any GCC internal prototype to avoid an error.
27053 Use char because int might match the return type of a GCC
27054 builtin and then its argument prototype would still apply. */
27055#ifdef __cplusplus
27056extern "C"
27057#endif
27058char BZ2_bzDecompress ();
27059int
27060main ()
27061{
27062return BZ2_bzDecompress ();
27063 ;
27064 return 0;
27065}
27066_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027067if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027068 ac_cv_lib_bz2_BZ2_bzDecompress=yes
27069else
cristy8b350f62009-11-15 23:12:43 +000027070 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000027071fi
cristy8b350f62009-11-15 23:12:43 +000027072rm -f core conftest.err conftest.$ac_objext \
27073 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027074LIBS=$ac_check_lib_save_LIBS
27075fi
cristy8b350f62009-11-15 23:12:43 +000027076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027077$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027078if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027079 found_libbz=`expr $found_libbz + 1`
27080fi
27081
27082 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027084$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027085if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027086 $as_echo_n "(cached) " >&6
27087else
27088 ac_check_lib_save_LIBS=$LIBS
27089LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027090cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027091/* end confdefs.h. */
27092
27093/* Override any GCC internal prototype to avoid an error.
27094 Use char because int might match the return type of a GCC
27095 builtin and then its argument prototype would still apply. */
27096#ifdef __cplusplus
27097extern "C"
27098#endif
27099char _imp__BZ2_decompress ();
27100int
27101main ()
27102{
27103return _imp__BZ2_decompress ();
27104 ;
27105 return 0;
27106}
27107_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027108if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027109 ac_cv_lib_bz2__imp__BZ2_decompress=yes
27110else
cristy8b350f62009-11-15 23:12:43 +000027111 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000027112fi
cristy8b350f62009-11-15 23:12:43 +000027113rm -f core conftest.err conftest.$ac_objext \
27114 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027115LIBS=$ac_check_lib_save_LIBS
27116fi
cristy8b350f62009-11-15 23:12:43 +000027117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027118$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027119if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027120 found_libbz=`expr $found_libbz + 1`
27121fi
27122
27123 fi
27124 if test $found_libbz -gt 0; then
27125 passed=`expr $passed + 1`
27126 else
27127 failed=`expr $failed + 1`
27128 fi
cristy8b350f62009-11-15 23:12:43 +000027129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027130$as_echo_n "checking if BZLIB package is complete... " >&6; }
27131 if test $passed -gt 0; then
27132 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000027133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27134$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027135 have_bzlib='no (failed tests)'
27136 else
27137 BZLIB_LIBS='-lbz2'
27138 LIBS="$BZLIB_LIBS $LIBS"
27139
cristy8b350f62009-11-15 23:12:43 +000027140$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027141
cristyad38abe2012-12-23 23:03:21 +000027142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27143$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027144 have_bzlib='yes'
27145 fi
27146 else
cristyad38abe2012-12-23 23:03:21 +000027147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27148$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027149 fi
27150fi
cristy73bd4a52010-10-05 11:24:23 +000027151 if test "$have_bzlib" = 'yes'; then
27152 BZLIB_DELEGATE_TRUE=
27153 BZLIB_DELEGATE_FALSE='#'
27154else
27155 BZLIB_DELEGATE_TRUE='#'
27156 BZLIB_DELEGATE_FALSE=
27157fi
27158
cristy3ed852e2009-09-05 21:47:34 +000027159
27160
27161#
27162# Find the X11 include and library directories.
27163#
27164IPC_LIBS=''
27165X11_LIBS=''
27166XEXT_LIBS=''
27167XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000027168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000027169$as_echo_n "checking for X... " >&6; }
27170
27171
27172# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000027173if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000027174 withval=$with_x;
27175fi
27176
27177# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
27178if test "x$with_x" = xno; then
27179 # The user explicitly disabled X.
27180 have_x=disabled
27181else
27182 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000027183 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000027184 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000027185 $as_echo_n "(cached) " >&6
27186else
27187 # One or both of the vars are not set, and there is no cached value.
27188ac_x_includes=no ac_x_libraries=no
27189rm -f -r conftest.dir
27190if mkdir conftest.dir; then
27191 cd conftest.dir
27192 cat >Imakefile <<'_ACEOF'
27193incroot:
27194 @echo incroot='${INCROOT}'
27195usrlibdir:
27196 @echo usrlibdir='${USRLIBDIR}'
27197libdir:
27198 @echo libdir='${LIBDIR}'
27199_ACEOF
27200 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000027201 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000027202 for ac_var in incroot usrlibdir libdir; do
27203 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
27204 done
27205 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
27206 for ac_extension in a so sl dylib la dll; do
27207 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
27208 test -f "$ac_im_libdir/libX11.$ac_extension"; then
27209 ac_im_usrlibdir=$ac_im_libdir; break
27210 fi
27211 done
27212 # Screen out bogus values from the imake configuration. They are
27213 # bogus both because they are the default anyway, and because
27214 # using them would break gcc on systems where it needs fixed includes.
27215 case $ac_im_incroot in
27216 /usr/include) ac_x_includes= ;;
27217 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
27218 esac
27219 case $ac_im_usrlibdir in
27220 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
27221 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
27222 esac
27223 fi
27224 cd ..
27225 rm -f -r conftest.dir
27226fi
27227
27228# Standard set of common directories for X headers.
27229# Check X11 before X11Rn because it is often a symlink to the current release.
27230ac_x_header_dirs='
27231/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000027232/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027233/usr/X11R6/include
27234/usr/X11R5/include
27235/usr/X11R4/include
27236
27237/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000027238/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027239/usr/include/X11R6
27240/usr/include/X11R5
27241/usr/include/X11R4
27242
27243/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000027244/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027245/usr/local/X11R6/include
27246/usr/local/X11R5/include
27247/usr/local/X11R4/include
27248
27249/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000027250/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027251/usr/local/include/X11R6
27252/usr/local/include/X11R5
27253/usr/local/include/X11R4
27254
27255/usr/X386/include
27256/usr/x386/include
27257/usr/XFree86/include/X11
27258
27259/usr/include
27260/usr/local/include
27261/usr/unsupported/include
27262/usr/athena/include
27263/usr/local/x11r5/include
27264/usr/lpp/Xamples/include
27265
27266/usr/openwin/include
27267/usr/openwin/share/include'
27268
27269if test "$ac_x_includes" = no; then
27270 # Guess where to find include files, by looking for Xlib.h.
27271 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000027272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027273/* end confdefs.h. */
27274#include <X11/Xlib.h>
27275_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027276if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027277 # We can compile using X headers with no special include directory.
27278ac_x_includes=
27279else
cristyc7083c12009-10-14 03:16:55 +000027280 for ac_dir in $ac_x_header_dirs; do
27281 if test -r "$ac_dir/X11/Xlib.h"; then
27282 ac_x_includes=$ac_dir
27283 break
27284 fi
27285done
27286fi
cristyda16f162011-02-19 23:52:17 +000027287rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027288fi # $ac_x_includes = no
27289
27290if test "$ac_x_libraries" = no; then
27291 # Check for the libraries.
27292 # See if we find them without any special options.
27293 # Don't add to $LIBS permanently.
27294 ac_save_LIBS=$LIBS
27295 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027297/* end confdefs.h. */
27298#include <X11/Xlib.h>
27299int
27300main ()
27301{
27302XrmInitialize ()
27303 ;
27304 return 0;
27305}
27306_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027307if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027308 LIBS=$ac_save_LIBS
27309# We can link X programs with no special library path.
27310ac_x_libraries=
27311else
cristy8b350f62009-11-15 23:12:43 +000027312 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000027313for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
27314do
27315 # Don't even attempt the hair of trying to link an X program!
27316 for ac_extension in a so sl dylib la dll; do
27317 if test -r "$ac_dir/libX11.$ac_extension"; then
27318 ac_x_libraries=$ac_dir
27319 break 2
27320 fi
27321 done
27322done
27323fi
cristy8b350f62009-11-15 23:12:43 +000027324rm -f core conftest.err conftest.$ac_objext \
27325 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027326fi # $ac_x_libraries = no
27327
27328case $ac_x_includes,$ac_x_libraries in #(
27329 no,* | *,no | *\'*)
27330 # Didn't find X, or a directory has "'" in its name.
27331 ac_cv_have_x="have_x=no";; #(
27332 *)
27333 # Record where we found X for the cache.
27334 ac_cv_have_x="have_x=yes\
27335 ac_x_includes='$ac_x_includes'\
27336 ac_x_libraries='$ac_x_libraries'"
27337esac
27338fi
27339;; #(
27340 *) have_x=yes;;
27341 esac
27342 eval "$ac_cv_have_x"
27343fi # $with_x != no
27344
27345if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000027346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000027347$as_echo "$have_x" >&6; }
27348 no_x=yes
27349else
27350 # If each of the values was on the command line, it overrides each guess.
27351 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
27352 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
27353 # Update the cache value to reflect the command line values.
27354 ac_cv_have_x="have_x=yes\
27355 ac_x_includes='$x_includes'\
27356 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000027357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000027358$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
27359fi
27360
cristy3ed852e2009-09-05 21:47:34 +000027361if test "$no_x" = yes; then
27362 # Not all programs may use this symbol, but it does not hurt to define it.
27363
cristy8b350f62009-11-15 23:12:43 +000027364$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027365
27366 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
27367else
27368 if test -n "$x_includes"; then
27369 X_CFLAGS="$X_CFLAGS -I$x_includes"
27370 fi
27371
27372 # It would also be nice to do this for all -L options, not just this one.
27373 if test -n "$x_libraries"; then
27374 X_LIBS="$X_LIBS -L$x_libraries"
27375 # For Solaris; some versions of Sun CC require a space after -R and
27376 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000027377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000027378$as_echo_n "checking whether -R must be followed by a space... " >&6; }
27379 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
27380 ac_xsave_c_werror_flag=$ac_c_werror_flag
27381 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000027382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027383/* end confdefs.h. */
27384
27385int
27386main ()
27387{
27388
27389 ;
27390 return 0;
27391}
27392_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027393if ac_fn_c_try_link "$LINENO"; then :
27394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027395$as_echo "no" >&6; }
27396 X_LIBS="$X_LIBS -R$x_libraries"
27397else
cristy8b350f62009-11-15 23:12:43 +000027398 LIBS="$ac_xsave_LIBS -R $x_libraries"
27399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027400/* end confdefs.h. */
27401
27402int
27403main ()
27404{
27405
27406 ;
27407 return 0;
27408}
27409_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027410if ac_fn_c_try_link "$LINENO"; then :
27411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027412$as_echo "yes" >&6; }
27413 X_LIBS="$X_LIBS -R $x_libraries"
27414else
cristy8b350f62009-11-15 23:12:43 +000027415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000027416$as_echo "neither works" >&6; }
27417fi
cristy8b350f62009-11-15 23:12:43 +000027418rm -f core conftest.err conftest.$ac_objext \
27419 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027420fi
cristy8b350f62009-11-15 23:12:43 +000027421rm -f core conftest.err conftest.$ac_objext \
27422 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027423 ac_c_werror_flag=$ac_xsave_c_werror_flag
27424 LIBS=$ac_xsave_LIBS
27425 fi
27426
27427 # Check for system-dependent libraries X programs must link with.
27428 # Do this before checking for the system-independent R6 libraries
27429 # (-lICE), since we may need -lsocket or whatever for X linking.
27430
27431 if test "$ISC" = yes; then
27432 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
27433 else
27434 # Martyn Johnson says this is needed for Ultrix, if the X
27435 # libraries were built with DECnet support. And Karl Berry says
27436 # the Alpha needs dnet_stub (dnet does not exist).
27437 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000027438 cat 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 XOpenDisplay ();
27448int
27449main ()
27450{
27451return XOpenDisplay ();
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
cristy8b350f62009-11-15 23:12:43 +000027458else
27459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000027460$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027461if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027462 $as_echo_n "(cached) " >&6
27463else
27464 ac_check_lib_save_LIBS=$LIBS
27465LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027466cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027467/* end confdefs.h. */
27468
27469/* Override any GCC internal prototype to avoid an error.
27470 Use char because int might match the return type of a GCC
27471 builtin and then its argument prototype would still apply. */
27472#ifdef __cplusplus
27473extern "C"
27474#endif
27475char dnet_ntoa ();
27476int
27477main ()
27478{
27479return dnet_ntoa ();
27480 ;
27481 return 0;
27482}
27483_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027484if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027485 ac_cv_lib_dnet_dnet_ntoa=yes
27486else
cristy8b350f62009-11-15 23:12:43 +000027487 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027488fi
cristy8b350f62009-11-15 23:12:43 +000027489rm -f core conftest.err conftest.$ac_objext \
27490 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027491LIBS=$ac_check_lib_save_LIBS
27492fi
cristy8b350f62009-11-15 23:12:43 +000027493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027494$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027495if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027496 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27497fi
27498
27499 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000027500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000027501$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027502if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027503 $as_echo_n "(cached) " >&6
27504else
27505 ac_check_lib_save_LIBS=$LIBS
27506LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027507cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027508/* end confdefs.h. */
27509
27510/* Override any GCC internal prototype to avoid an error.
27511 Use char because int might match the return type of a GCC
27512 builtin and then its argument prototype would still apply. */
27513#ifdef __cplusplus
27514extern "C"
27515#endif
27516char dnet_ntoa ();
27517int
27518main ()
27519{
27520return dnet_ntoa ();
27521 ;
27522 return 0;
27523}
27524_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027525if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027526 ac_cv_lib_dnet_stub_dnet_ntoa=yes
27527else
cristy8b350f62009-11-15 23:12:43 +000027528 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027529fi
cristy8b350f62009-11-15 23:12:43 +000027530rm -f core conftest.err conftest.$ac_objext \
27531 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027532LIBS=$ac_check_lib_save_LIBS
27533fi
cristy8b350f62009-11-15 23:12:43 +000027534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027535$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027536if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027537 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27538fi
27539
27540 fi
27541fi
cristy8b350f62009-11-15 23:12:43 +000027542rm -f core conftest.err conftest.$ac_objext \
27543 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027544 LIBS="$ac_xsave_LIBS"
27545
27546 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27547 # to get the SysV transport functions.
27548 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27549 # needs -lnsl.
27550 # The nsl library prevents programs from opening the X display
27551 # on Irix 5.2, according to T.E. Dickey.
27552 # The functions gethostbyname, getservbyname, and inet_addr are
27553 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000027554 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000027555if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027556
cristy3ed852e2009-09-05 21:47:34 +000027557fi
27558
cristy3ed852e2009-09-05 21:47:34 +000027559 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027561$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027562if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027563 $as_echo_n "(cached) " >&6
27564else
27565 ac_check_lib_save_LIBS=$LIBS
27566LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027567cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027568/* end confdefs.h. */
27569
27570/* Override any GCC internal prototype to avoid an error.
27571 Use char because int might match the return type of a GCC
27572 builtin and then its argument prototype would still apply. */
27573#ifdef __cplusplus
27574extern "C"
27575#endif
27576char gethostbyname ();
27577int
27578main ()
27579{
27580return gethostbyname ();
27581 ;
27582 return 0;
27583}
27584_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027585if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027586 ac_cv_lib_nsl_gethostbyname=yes
27587else
cristy8b350f62009-11-15 23:12:43 +000027588 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027589fi
cristy8b350f62009-11-15 23:12:43 +000027590rm -f core conftest.err conftest.$ac_objext \
27591 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027592LIBS=$ac_check_lib_save_LIBS
27593fi
cristy8b350f62009-11-15 23:12:43 +000027594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027595$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027596if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027597 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27598fi
27599
27600 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000027602$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027603if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027604 $as_echo_n "(cached) " >&6
27605else
27606 ac_check_lib_save_LIBS=$LIBS
27607LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027608cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027609/* end confdefs.h. */
27610
27611/* Override any GCC internal prototype to avoid an error.
27612 Use char because int might match the return type of a GCC
27613 builtin and then its argument prototype would still apply. */
27614#ifdef __cplusplus
27615extern "C"
27616#endif
27617char gethostbyname ();
27618int
27619main ()
27620{
27621return gethostbyname ();
27622 ;
27623 return 0;
27624}
27625_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027626if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027627 ac_cv_lib_bsd_gethostbyname=yes
27628else
cristy8b350f62009-11-15 23:12:43 +000027629 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027630fi
cristy8b350f62009-11-15 23:12:43 +000027631rm -f core conftest.err conftest.$ac_objext \
27632 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027633LIBS=$ac_check_lib_save_LIBS
27634fi
cristy8b350f62009-11-15 23:12:43 +000027635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027636$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027637if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027638 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27639fi
27640
27641 fi
27642 fi
27643
27644 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27645 # socket/setsockopt and other routines are undefined under SCO ODT
27646 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27647 # on later versions), says Simon Leinen: it contains gethostby*
27648 # variants that don't use the name server (or something). -lsocket
27649 # must be given before -lnsl if both are needed. We assume that
27650 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000027651 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000027652if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027653
cristy3ed852e2009-09-05 21:47:34 +000027654fi
27655
cristy3ed852e2009-09-05 21:47:34 +000027656 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000027657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000027658$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027659if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027660 $as_echo_n "(cached) " >&6
27661else
27662 ac_check_lib_save_LIBS=$LIBS
27663LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027664cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027665/* end confdefs.h. */
27666
27667/* Override any GCC internal prototype to avoid an error.
27668 Use char because int might match the return type of a GCC
27669 builtin and then its argument prototype would still apply. */
27670#ifdef __cplusplus
27671extern "C"
27672#endif
27673char connect ();
27674int
27675main ()
27676{
27677return connect ();
27678 ;
27679 return 0;
27680}
27681_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027682if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027683 ac_cv_lib_socket_connect=yes
27684else
cristy8b350f62009-11-15 23:12:43 +000027685 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000027686fi
cristy8b350f62009-11-15 23:12:43 +000027687rm -f core conftest.err conftest.$ac_objext \
27688 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027689LIBS=$ac_check_lib_save_LIBS
27690fi
cristy8b350f62009-11-15 23:12:43 +000027691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000027692$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000027693if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027694 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27695fi
27696
27697 fi
27698
27699 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000027700 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000027701if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027702
cristy3ed852e2009-09-05 21:47:34 +000027703fi
27704
cristy3ed852e2009-09-05 21:47:34 +000027705 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000027706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000027707$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027708if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027709 $as_echo_n "(cached) " >&6
27710else
27711 ac_check_lib_save_LIBS=$LIBS
27712LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027713cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027714/* end confdefs.h. */
27715
27716/* Override any GCC internal prototype to avoid an error.
27717 Use char because int might match the return type of a GCC
27718 builtin and then its argument prototype would still apply. */
27719#ifdef __cplusplus
27720extern "C"
27721#endif
27722char remove ();
27723int
27724main ()
27725{
27726return remove ();
27727 ;
27728 return 0;
27729}
27730_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027731if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027732 ac_cv_lib_posix_remove=yes
27733else
cristy8b350f62009-11-15 23:12:43 +000027734 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000027735fi
cristy8b350f62009-11-15 23:12:43 +000027736rm -f core conftest.err conftest.$ac_objext \
27737 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027738LIBS=$ac_check_lib_save_LIBS
27739fi
cristy8b350f62009-11-15 23:12:43 +000027740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000027741$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000027742if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027743 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27744fi
27745
27746 fi
27747
27748 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000027749 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000027750if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027751
cristy3ed852e2009-09-05 21:47:34 +000027752fi
27753
cristy3ed852e2009-09-05 21:47:34 +000027754 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000027755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027756$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027757if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027758 $as_echo_n "(cached) " >&6
27759else
27760 ac_check_lib_save_LIBS=$LIBS
27761LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027762cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027763/* end confdefs.h. */
27764
27765/* Override any GCC internal prototype to avoid an error.
27766 Use char because int might match the return type of a GCC
27767 builtin and then its argument prototype would still apply. */
27768#ifdef __cplusplus
27769extern "C"
27770#endif
27771char shmat ();
27772int
27773main ()
27774{
27775return shmat ();
27776 ;
27777 return 0;
27778}
27779_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027780if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027781 ac_cv_lib_ipc_shmat=yes
27782else
cristy8b350f62009-11-15 23:12:43 +000027783 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000027784fi
cristy8b350f62009-11-15 23:12:43 +000027785rm -f core conftest.err conftest.$ac_objext \
27786 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027787LIBS=$ac_check_lib_save_LIBS
27788fi
cristy8b350f62009-11-15 23:12:43 +000027789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000027790$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000027791if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027792 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27793fi
27794
27795 fi
27796 fi
27797
27798 # Check for libraries that X11R6 Xt/Xaw programs need.
27799 ac_save_LDFLAGS=$LDFLAGS
27800 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27801 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27802 # check for ICE first), but we must link in the order -lSM -lICE or
27803 # we get undefined symbols. So assume we have SM if we have ICE.
27804 # These have to be linked with before -lX11, unlike the other
27805 # libraries we check for below, so use a different variable.
27806 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000027807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000027808$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027809if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027810 $as_echo_n "(cached) " >&6
27811else
27812 ac_check_lib_save_LIBS=$LIBS
27813LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027814cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027815/* end confdefs.h. */
27816
27817/* Override any GCC internal prototype to avoid an error.
27818 Use char because int might match the return type of a GCC
27819 builtin and then its argument prototype would still apply. */
27820#ifdef __cplusplus
27821extern "C"
27822#endif
27823char IceConnectionNumber ();
27824int
27825main ()
27826{
27827return IceConnectionNumber ();
27828 ;
27829 return 0;
27830}
27831_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027832if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027833 ac_cv_lib_ICE_IceConnectionNumber=yes
27834else
cristy8b350f62009-11-15 23:12:43 +000027835 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000027836fi
cristy8b350f62009-11-15 23:12:43 +000027837rm -f core conftest.err conftest.$ac_objext \
27838 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027839LIBS=$ac_check_lib_save_LIBS
27840fi
cristy8b350f62009-11-15 23:12:43 +000027841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000027842$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000027843if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027844 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27845fi
27846
27847 LDFLAGS=$ac_save_LDFLAGS
27848
27849fi
27850
27851if test "$no_x" != 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000027852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27853$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000027855$as_echo_n "checking for X11... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27857$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027858 LDFLAGS="$LDFLAGS $X_LIBS"
27859 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
27860 LIBS="$X11_LIBS $LIBS"
27861 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
27862
27863
cristy8b350f62009-11-15 23:12:43 +000027864$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027865
27866 #
27867 # Check for X11 shared memory extension
27868 #
27869 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000027870 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000027871if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027872 have_shmctl='yes'
27873fi
27874
27875 if test "$have_shmctl" != 'yes'; then
27876 PERSIST_LIBS=$LIBS
27877 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000027878 cat 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 shmctl ();
27888int
27889main ()
27890{
27891return shmctl ();
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 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000027898fi
cristy8b350f62009-11-15 23:12:43 +000027899rm -f core conftest.err conftest.$ac_objext \
27900 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027901 LIBS=$PERSIST_LIBS
27902 fi
27903
27904 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027906$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027907if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027908 $as_echo_n "(cached) " >&6
27909else
27910 ac_check_lib_save_LIBS=$LIBS
27911LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027912cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027913/* end confdefs.h. */
27914
27915/* Override any GCC internal prototype to avoid an error.
27916 Use char because int might match the return type of a GCC
27917 builtin and then its argument prototype would still apply. */
27918#ifdef __cplusplus
27919extern "C"
27920#endif
27921char XShmAttach ();
27922int
27923main ()
27924{
27925return XShmAttach ();
27926 ;
27927 return 0;
27928}
27929_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027930if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027931 ac_cv_lib_Xext_XShmAttach=yes
27932else
cristy8b350f62009-11-15 23:12:43 +000027933 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000027934fi
cristy8b350f62009-11-15 23:12:43 +000027935rm -f core conftest.err conftest.$ac_objext \
27936 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027937LIBS=$ac_check_lib_save_LIBS
27938fi
cristy8b350f62009-11-15 23:12:43 +000027939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000027940$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000027941if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027942 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027943$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027944
27945fi
27946
27947 fi
27948
27949 #
27950 # Check for X11 shape extension
27951 #
cristy8b350f62009-11-15 23:12:43 +000027952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027953$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027954if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027955 $as_echo_n "(cached) " >&6
27956else
27957 ac_check_lib_save_LIBS=$LIBS
27958LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027959cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027960/* end confdefs.h. */
27961
27962/* Override any GCC internal prototype to avoid an error.
27963 Use char because int might match the return type of a GCC
27964 builtin and then its argument prototype would still apply. */
27965#ifdef __cplusplus
27966extern "C"
27967#endif
27968char XShapeCombineMask ();
27969int
27970main ()
27971{
27972return XShapeCombineMask ();
27973 ;
27974 return 0;
27975}
27976_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027977if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027978 ac_cv_lib_Xext_XShapeCombineMask=yes
27979else
cristy8b350f62009-11-15 23:12:43 +000027980 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000027981fi
cristy8b350f62009-11-15 23:12:43 +000027982rm -f core conftest.err conftest.$ac_objext \
27983 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027984LIBS=$ac_check_lib_save_LIBS
27985fi
cristy8b350f62009-11-15 23:12:43 +000027986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000027987$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000027988if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027989 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027990$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027991
27992fi
27993
cristy8b350f62009-11-15 23:12:43 +000027994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000027995$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027996if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027997 $as_echo_n "(cached) " >&6
27998else
27999 ac_check_lib_save_LIBS=$LIBS
28000LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028001cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028002/* end confdefs.h. */
28003
28004/* Override any GCC internal prototype to avoid an error.
28005 Use char because int might match the return type of a GCC
28006 builtin and then its argument prototype would still apply. */
28007#ifdef __cplusplus
28008extern "C"
28009#endif
28010char XtSetEventDispatcher ();
28011int
28012main ()
28013{
28014return XtSetEventDispatcher ();
28015 ;
28016 return 0;
28017}
28018_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028019if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028020 ac_cv_lib_Xt_XtSetEventDispatcher=yes
28021else
cristy8b350f62009-11-15 23:12:43 +000028022 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000028023fi
cristy8b350f62009-11-15 23:12:43 +000028024rm -f core conftest.err conftest.$ac_objext \
28025 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028026LIBS=$ac_check_lib_save_LIBS
28027fi
cristy8b350f62009-11-15 23:12:43 +000028028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000028029$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000028030if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028031 XT_LIBS='-lXt'
28032fi
28033
28034 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
28035fi
28036if test "$no_x" != 'yes'; then
28037 have_x='yes'
28038else
28039 have_x='no'
28040fi
cristy73bd4a52010-10-05 11:24:23 +000028041 if test "$have_x" = 'yes'; then
28042 X11_DELEGATE_TRUE=
28043 X11_DELEGATE_FALSE='#'
28044else
28045 X11_DELEGATE_TRUE='#'
28046 X11_DELEGATE_FALSE=
28047fi
28048
cristy3ed852e2009-09-05 21:47:34 +000028049
28050
28051
28052
28053#
28054# Check for ZLIB
28055#
28056
28057# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000028058if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028059 withval=$with_zlib; with_zlib=$withval
28060else
28061 with_zlib='yes'
28062fi
28063
28064
28065if test "$with_zlib" != 'yes'; then
28066 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
28067fi
28068
28069have_zlib='no'
28070ZLIB_LIBS=''
28071if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28073$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000028075$as_echo_n "checking for ZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28077$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028078 ZLIB_LIBS=''
28079 failed=0
28080 passed=0
cristy8b350f62009-11-15 23:12:43 +000028081 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028082if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028083 passed=`expr $passed + 1`
28084else
28085 failed=`expr $failed + 1`
28086fi
28087
28088
cristy8b350f62009-11-15 23:12:43 +000028089 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028090if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028091 passed=`expr $passed + 1`
28092else
28093 failed=`expr $failed + 1`
28094fi
28095
28096
cristy8b350f62009-11-15 23:12:43 +000028097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028098$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028099if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028100 $as_echo_n "(cached) " >&6
28101else
28102 ac_check_lib_save_LIBS=$LIBS
28103LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028104cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028105/* end confdefs.h. */
28106
28107/* Override any GCC internal prototype to avoid an error.
28108 Use char because int might match the return type of a GCC
28109 builtin and then its argument prototype would still apply. */
28110#ifdef __cplusplus
28111extern "C"
28112#endif
28113char compress ();
28114int
28115main ()
28116{
28117return compress ();
28118 ;
28119 return 0;
28120}
28121_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028122if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028123 ac_cv_lib_z_compress=yes
28124else
cristy8b350f62009-11-15 23:12:43 +000028125 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000028126fi
cristy8b350f62009-11-15 23:12:43 +000028127rm -f core conftest.err conftest.$ac_objext \
28128 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028129LIBS=$ac_check_lib_save_LIBS
28130fi
cristy8b350f62009-11-15 23:12:43 +000028131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000028132$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000028133if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028134 passed=`expr $passed + 1`
28135else
28136 failed=`expr $failed + 1`
28137fi
28138
cristy8b350f62009-11-15 23:12:43 +000028139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028140$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028141if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028142 $as_echo_n "(cached) " >&6
28143else
28144 ac_check_lib_save_LIBS=$LIBS
28145LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028146cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028147/* end confdefs.h. */
28148
28149/* Override any GCC internal prototype to avoid an error.
28150 Use char because int might match the return type of a GCC
28151 builtin and then its argument prototype would still apply. */
28152#ifdef __cplusplus
28153extern "C"
28154#endif
28155char uncompress ();
28156int
28157main ()
28158{
28159return uncompress ();
28160 ;
28161 return 0;
28162}
28163_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028164if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028165 ac_cv_lib_z_uncompress=yes
28166else
cristy8b350f62009-11-15 23:12:43 +000028167 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000028168fi
cristy8b350f62009-11-15 23:12:43 +000028169rm -f core conftest.err conftest.$ac_objext \
28170 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028171LIBS=$ac_check_lib_save_LIBS
28172fi
cristy8b350f62009-11-15 23:12:43 +000028173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000028174$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000028175if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028176 passed=`expr $passed + 1`
28177else
28178 failed=`expr $failed + 1`
28179fi
28180
cristy8b350f62009-11-15 23:12:43 +000028181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028182$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028183if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028184 $as_echo_n "(cached) " >&6
28185else
28186 ac_check_lib_save_LIBS=$LIBS
28187LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028188cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028189/* end confdefs.h. */
28190
28191/* Override any GCC internal prototype to avoid an error.
28192 Use char because int might match the return type of a GCC
28193 builtin and then its argument prototype would still apply. */
28194#ifdef __cplusplus
28195extern "C"
28196#endif
28197char deflate ();
28198int
28199main ()
28200{
28201return deflate ();
28202 ;
28203 return 0;
28204}
28205_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028206if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028207 ac_cv_lib_z_deflate=yes
28208else
cristy8b350f62009-11-15 23:12:43 +000028209 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000028210fi
cristy8b350f62009-11-15 23:12:43 +000028211rm -f core conftest.err conftest.$ac_objext \
28212 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028213LIBS=$ac_check_lib_save_LIBS
28214fi
cristy8b350f62009-11-15 23:12:43 +000028215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028216$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000028217if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028218 passed=`expr $passed + 1`
28219else
28220 failed=`expr $failed + 1`
28221fi
28222
cristy8b350f62009-11-15 23:12:43 +000028223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028224$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028225if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028226 $as_echo_n "(cached) " >&6
28227else
28228 ac_check_lib_save_LIBS=$LIBS
28229LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028230cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028231/* end confdefs.h. */
28232
28233/* Override any GCC internal prototype to avoid an error.
28234 Use char because int might match the return type of a GCC
28235 builtin and then its argument prototype would still apply. */
28236#ifdef __cplusplus
28237extern "C"
28238#endif
28239char inflate ();
28240int
28241main ()
28242{
28243return inflate ();
28244 ;
28245 return 0;
28246}
28247_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028248if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028249 ac_cv_lib_z_inflate=yes
28250else
cristy8b350f62009-11-15 23:12:43 +000028251 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000028252fi
cristy8b350f62009-11-15 23:12:43 +000028253rm -f core conftest.err conftest.$ac_objext \
28254 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028255LIBS=$ac_check_lib_save_LIBS
28256fi
cristy8b350f62009-11-15 23:12:43 +000028257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028258$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000028259if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028260 passed=`expr $passed + 1`
28261else
28262 failed=`expr $failed + 1`
28263fi
28264
cristy8b350f62009-11-15 23:12:43 +000028265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028266$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028267if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028268 $as_echo_n "(cached) " >&6
28269else
28270 ac_check_lib_save_LIBS=$LIBS
28271LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028272cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028273/* end confdefs.h. */
28274
28275/* Override any GCC internal prototype to avoid an error.
28276 Use char because int might match the return type of a GCC
28277 builtin and then its argument prototype would still apply. */
28278#ifdef __cplusplus
28279extern "C"
28280#endif
28281char gzseek ();
28282int
28283main ()
28284{
28285return gzseek ();
28286 ;
28287 return 0;
28288}
28289_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028290if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028291 ac_cv_lib_z_gzseek=yes
28292else
cristy8b350f62009-11-15 23:12:43 +000028293 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000028294fi
cristy8b350f62009-11-15 23:12:43 +000028295rm -f core conftest.err conftest.$ac_objext \
28296 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028297LIBS=$ac_check_lib_save_LIBS
28298fi
cristy8b350f62009-11-15 23:12:43 +000028299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000028300$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000028301if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028302 passed=`expr $passed + 1`
28303else
28304 failed=`expr $failed + 1`
28305fi
28306
cristy8b350f62009-11-15 23:12:43 +000028307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028308$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028309if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028310 $as_echo_n "(cached) " >&6
28311else
28312 ac_check_lib_save_LIBS=$LIBS
28313LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028314cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028315/* end confdefs.h. */
28316
28317/* Override any GCC internal prototype to avoid an error.
28318 Use char because int might match the return type of a GCC
28319 builtin and then its argument prototype would still apply. */
28320#ifdef __cplusplus
28321extern "C"
28322#endif
28323char gztell ();
28324int
28325main ()
28326{
28327return gztell ();
28328 ;
28329 return 0;
28330}
28331_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028332if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028333 ac_cv_lib_z_gztell=yes
28334else
cristy8b350f62009-11-15 23:12:43 +000028335 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000028336fi
cristy8b350f62009-11-15 23:12:43 +000028337rm -f core conftest.err conftest.$ac_objext \
28338 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028339LIBS=$ac_check_lib_save_LIBS
28340fi
cristy8b350f62009-11-15 23:12:43 +000028341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000028342$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000028343if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028344 passed=`expr $passed + 1`
28345else
28346 failed=`expr $failed + 1`
28347fi
28348
cristy8b350f62009-11-15 23:12:43 +000028349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028350$as_echo_n "checking if ZLIB package is complete... " >&6; }
28351 if test $passed -gt 0; then
28352 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28354$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028355 have_zlib='no (failed tests)'
28356 else
28357 ZLIB_LIBS='-lz'
28358 LIBS="$ZLIB_LIBS $LIBS"
28359
cristy8b350f62009-11-15 23:12:43 +000028360$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028361
cristyad38abe2012-12-23 23:03:21 +000028362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28363$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028364 have_zlib='yes'
28365 fi
28366 else
cristyad38abe2012-12-23 23:03:21 +000028367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28368$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028369 fi
28370fi
cristy73bd4a52010-10-05 11:24:23 +000028371 if test "$have_zlib" = 'yes'; then
28372 ZLIB_DELEGATE_TRUE=
28373 ZLIB_DELEGATE_FALSE='#'
28374else
28375 ZLIB_DELEGATE_TRUE='#'
28376 ZLIB_DELEGATE_FALSE=
28377fi
28378
cristy3ed852e2009-09-05 21:47:34 +000028379
28380
cristy5eef09f2012-10-16 12:08:28 +000028381# whether modules are built or not.
28382with_ltdl='yes'
28383have_ltdl='no'
28384LTDL_LIBS=''
28385if test "$build_modules" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000028386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28387$as_echo "-------------------------------------------------------------" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000028388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libltdl" >&5
28389$as_echo_n "checking for libltdl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28391$as_echo "" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000028392 failed=0
28393 passed=0
28394 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
28395if test "x$ac_cv_header_ltdl_h" = xyes; then :
28396 passed=`expr $passed + 1`
28397else
28398 failed=`expr $failed + 1`
28399fi
28400
28401
28402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
28403$as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
28404if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then :
28405 $as_echo_n "(cached) " >&6
28406else
28407 ac_check_lib_save_LIBS=$LIBS
28408LIBS="-lltdl $LIBS"
28409cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28410/* end confdefs.h. */
28411
28412/* Override any GCC internal prototype to avoid an error.
28413 Use char because int might match the return type of a GCC
28414 builtin and then its argument prototype would still apply. */
28415#ifdef __cplusplus
28416extern "C"
28417#endif
28418char lt_dlinit ();
28419int
28420main ()
28421{
28422return lt_dlinit ();
28423 ;
28424 return 0;
28425}
28426_ACEOF
28427if ac_fn_c_try_link "$LINENO"; then :
28428 ac_cv_lib_ltdl_lt_dlinit=yes
28429else
28430 ac_cv_lib_ltdl_lt_dlinit=no
28431fi
28432rm -f core conftest.err conftest.$ac_objext \
28433 conftest$ac_exeext conftest.$ac_ext
28434LIBS=$ac_check_lib_save_LIBS
28435fi
28436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
28437$as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
28438if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then :
28439 passed=`expr $passed + 1`
28440else
28441 failed=`expr $failed + 1`
28442fi
28443
28444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libltdl package is complete" >&5
28445$as_echo_n "checking if libltdl package is complete... " >&6; }
28446 if test $passed -gt 0 ; then
28447 if test $failed -gt 0 ; then
28448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28449$as_echo "no -- some components failed test" >&6; }
28450 have_ltdl='no (failed tests)'
28451 else
28452 LTDL_LIBS='-lltdl'
28453 LIBS="$LTDL_LIBS $LIBS"
28454
28455$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
28456
28457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28458$as_echo "yes" >&6; }
28459 have_ltdl='yes'
28460 fi
28461 else
28462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28463$as_echo "no" >&6; }
28464 fi
cristyaf4cbf32012-10-16 23:47:41 +000028465 if test "$have_ltdl" != 'yes' ; then
28466 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28467$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28468as_fn_error 1 "libltdl is required for modules build
28469See \`config.log' for more details" "$LINENO" 5; }
28470 fi
cristy5eef09f2012-10-16 12:08:28 +000028471fi
28472 if test "$have_ltdl" != 'no'; then
28473 WITH_LTDL_TRUE=
28474 WITH_LTDL_FALSE='#'
28475else
28476 WITH_LTDL_TRUE='#'
28477 WITH_LTDL_FALSE=
28478fi
28479
28480
cristy3ed852e2009-09-05 21:47:34 +000028481#
28482# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
28483#
28484LIB_DL=''
28485if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000028487$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028488if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028489 $as_echo_n "(cached) " >&6
28490else
28491 ac_check_lib_save_LIBS=$LIBS
28492LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028493cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028494/* end confdefs.h. */
28495
28496/* Override any GCC internal prototype to avoid an error.
28497 Use char because int might match the return type of a GCC
28498 builtin and then its argument prototype would still apply. */
28499#ifdef __cplusplus
28500extern "C"
28501#endif
28502char dlopen ();
28503int
28504main ()
28505{
28506return dlopen ();
28507 ;
28508 return 0;
28509}
28510_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028511if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028512 ac_cv_lib_dl_dlopen=yes
28513else
cristy8b350f62009-11-15 23:12:43 +000028514 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000028515fi
cristy8b350f62009-11-15 23:12:43 +000028516rm -f core conftest.err conftest.$ac_objext \
28517 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028518LIBS=$ac_check_lib_save_LIBS
28519fi
cristy8b350f62009-11-15 23:12:43 +000028520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028521$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000028522if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028523 LIB_DL='-ldl'
28524fi
28525
28526 LIBS="$LIB_DL $LIBS"
28527fi
28528
28529
28530
28531#
28532# Check for Autotrace delegate library.
28533#
28534
28535# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000028536if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028537 withval=$with_autotrace; with_autotrace=$withval
28538else
28539 with_autotrace='no'
28540fi
28541
28542
28543if test "$with_autotrace" != 'yes'; then
28544 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
28545fi
28546
28547have_autotrace='no'
28548AUTOTRACE_CFLAGS=""
28549AUTOTRACE_LIBS=""
28550AUTOTRACE_PKG=""
28551if test "x$with_autotrace" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000028552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28553$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028554
28555pkg_failed=no
28556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
28557$as_echo_n "checking for AUTOTRACE... " >&6; }
28558
28559if test -n "$AUTOTRACE_CFLAGS"; then
28560 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
28561 elif test -n "$PKG_CONFIG"; then
28562 if test -n "$PKG_CONFIG" && \
28563 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28564 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28565 ac_status=$?
28566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28567 test $ac_status = 0; }; then
28568 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
28569else
28570 pkg_failed=yes
28571fi
28572 else
28573 pkg_failed=untried
28574fi
28575if test -n "$AUTOTRACE_LIBS"; then
28576 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
28577 elif test -n "$PKG_CONFIG"; then
28578 if test -n "$PKG_CONFIG" && \
28579 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28580 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28581 ac_status=$?
28582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28583 test $ac_status = 0; }; then
28584 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
28585else
28586 pkg_failed=yes
28587fi
28588 else
28589 pkg_failed=untried
28590fi
28591
28592
28593
28594if test $pkg_failed = yes; then
28595
28596if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28597 _pkg_short_errors_supported=yes
28598else
28599 _pkg_short_errors_supported=no
28600fi
28601 if test $_pkg_short_errors_supported = yes; then
28602 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
28603 else
28604 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
28605 fi
28606 # Put the nasty error message in config.log where it belongs
28607 echo "$AUTOTRACE_PKG_ERRORS" >&5
28608
28609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28610$as_echo "no" >&6; }
28611 have_autotrace=no
28612elif test $pkg_failed = untried; then
28613 have_autotrace=no
28614else
28615 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
28616 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
28617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28618$as_echo "yes" >&6; }
28619 have_autotrace=yes
28620fi
cristyad38abe2012-12-23 23:03:21 +000028621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28622$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028623fi
28624
28625if test "$have_autotrace" = 'yes'; then
28626 failed=0
28627
cristy8b350f62009-11-15 23:12:43 +000028628$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028629
cristyc6722092012-10-14 00:19:31 +000028630 if test "$build_modules" = 'no'; then
cristyfa161182012-12-19 15:45:28 +000028631 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000028632 fi
28633fi
28634
cristy73bd4a52010-10-05 11:24:23 +000028635 if test "$have_autotrace" = 'yes'; then
28636 AUTOTRACE_DELEGATE_TRUE=
28637 AUTOTRACE_DELEGATE_FALSE='#'
28638else
28639 AUTOTRACE_DELEGATE_TRUE='#'
28640 AUTOTRACE_DELEGATE_FALSE=
28641fi
28642
cristy3ed852e2009-09-05 21:47:34 +000028643
28644
28645
28646
28647#
28648# Check for Display Postscript delegate library.
28649#
28650
28651# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000028652if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028653 withval=$with_dps; with_dps=$withval
28654else
28655 with_dps='yes'
28656fi
28657
28658
28659if test "$with_dps" != 'yes'; then
28660 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
28661fi
28662
28663have_dps='no'
28664DPS_LIBS=''
28665if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28667$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000028669$as_echo_n "checking for DPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28671$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028672 failed=0
28673 passed=0
28674 PERSIST_CPPFLAGS="$CPPFLAGS"
28675 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000028676 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 +000028677if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028678 passed=`expr $passed + 1`
28679else
28680 failed=`expr $failed + 1`
28681fi
28682
28683
28684 # DPS issues:
28685 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
28686 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
28687 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
28688 # ImageMagick itself doesn't use -lXt.
28689 have_libdps='no'
28690 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000028691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028692$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028693if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028694 $as_echo_n "(cached) " >&6
28695else
28696 ac_check_lib_save_LIBS=$LIBS
28697LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028698cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028699/* end confdefs.h. */
28700
28701/* Override any GCC internal prototype to avoid an error.
28702 Use char because int might match the return type of a GCC
28703 builtin and then its argument prototype would still apply. */
28704#ifdef __cplusplus
28705extern "C"
28706#endif
28707char DPSInitialize ();
28708int
28709main ()
28710{
28711return DPSInitialize ();
28712 ;
28713 return 0;
28714}
28715_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028716if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028717 ac_cv_lib_dps_DPSInitialize=yes
28718else
cristy8b350f62009-11-15 23:12:43 +000028719 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028720fi
cristy8b350f62009-11-15 23:12:43 +000028721rm -f core conftest.err conftest.$ac_objext \
28722 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028723LIBS=$ac_check_lib_save_LIBS
28724fi
cristy8b350f62009-11-15 23:12:43 +000028725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028726$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028727if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028728 have_libdps='yes'
28729else
28730 have_libdps='no'
28731fi
28732
28733 if test "$have_libdps" != 'yes'; then
28734 # Unset cache variable so we can try again.
28735 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000028736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028737$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028738if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028739 $as_echo_n "(cached) " >&6
28740else
28741 ac_check_lib_save_LIBS=$LIBS
28742LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028743cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028744/* end confdefs.h. */
28745
28746/* Override any GCC internal prototype to avoid an error.
28747 Use char because int might match the return type of a GCC
28748 builtin and then its argument prototype would still apply. */
28749#ifdef __cplusplus
28750extern "C"
28751#endif
28752char DPSInitialize ();
28753int
28754main ()
28755{
28756return DPSInitialize ();
28757 ;
28758 return 0;
28759}
28760_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028761if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028762 ac_cv_lib_dps_DPSInitialize=yes
28763else
cristy8b350f62009-11-15 23:12:43 +000028764 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028765fi
cristy8b350f62009-11-15 23:12:43 +000028766rm -f core conftest.err conftest.$ac_objext \
28767 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028768LIBS=$ac_check_lib_save_LIBS
28769fi
cristy8b350f62009-11-15 23:12:43 +000028770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028771$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028772if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028773 have_libdps='yes'
28774else
28775 have_libdps='no'
28776fi
28777
28778 if test "$have_libdps" = 'yes'; then
28779 LIBDPS_XT='-lXt'
28780 fi
28781 fi
28782 if test "$have_libdps" = 'yes'; then
28783 passed=`expr $passed + 1`
28784 else
28785 failed=`expr $failed + 1`
28786 fi
cristy8b350f62009-11-15 23:12:43 +000028787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000028788$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028789if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028790 $as_echo_n "(cached) " >&6
28791else
28792 ac_check_lib_save_LIBS=$LIBS
28793LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028794cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028795/* end confdefs.h. */
28796
28797/* Override any GCC internal prototype to avoid an error.
28798 Use char because int might match the return type of a GCC
28799 builtin and then its argument prototype would still apply. */
28800#ifdef __cplusplus
28801extern "C"
28802#endif
28803char XDPSPixelsPerPoint ();
28804int
28805main ()
28806{
28807return XDPSPixelsPerPoint ();
28808 ;
28809 return 0;
28810}
28811_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028812if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028813 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
28814else
cristy8b350f62009-11-15 23:12:43 +000028815 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000028816fi
cristy8b350f62009-11-15 23:12:43 +000028817rm -f core conftest.err conftest.$ac_objext \
28818 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028819LIBS=$ac_check_lib_save_LIBS
28820fi
cristy8b350f62009-11-15 23:12:43 +000028821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000028822$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000028823if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028824 passed=`expr $passed + 1`
28825else
28826 failed=`expr $failed + 1`
28827fi
28828
cristy8b350f62009-11-15 23:12:43 +000028829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028830$as_echo_n "checking if DPS package is complete... " >&6; }
28831 if test $passed -gt 0; then
28832 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28834$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028835 have_dps='no (failed tests)'
28836 CPPFLAGS="$PERSIST_CPPFLAGS"
28837 else
28838 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
28839 LIBS="$DPS_LIBS $LIBS"
28840
cristy8b350f62009-11-15 23:12:43 +000028841$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028842
cristyad38abe2012-12-23 23:03:21 +000028843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28844$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028845 have_dps='yes'
28846 fi
28847 else
cristyad38abe2012-12-23 23:03:21 +000028848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28849$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028850 CPPFLAGS=$PERSIST_CPPFLAGS
28851 fi
28852fi
cristy73bd4a52010-10-05 11:24:23 +000028853 if test "$have_dps" = 'yes'; then
28854 DPS_DELEGATE_TRUE=
28855 DPS_DELEGATE_FALSE='#'
28856else
28857 DPS_DELEGATE_TRUE='#'
28858 DPS_DELEGATE_FALSE=
28859fi
28860
cristy3ed852e2009-09-05 21:47:34 +000028861
28862
28863
28864#
cristy430a7312010-01-21 20:44:04 +000028865# Set DejaVu font directory.
28866#
28867
28868# Check whether --with-dejavu-font-dir was given.
28869if test "${with_dejavu_font_dir+set}" = set; then :
28870 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
28871else
28872 with_dejavu_font_dir='default'
28873fi
28874
28875
28876if test "$with_dejavu_font_dir" != 'default'; then
28877 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
28878fi
28879
28880
28881#
cristy3ed852e2009-09-05 21:47:34 +000028882# Check for FFTW delegate library.
28883#
28884
28885# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000028886if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028887 withval=$with_fftw; with_fftw=$withval
28888else
28889 with_fftw='yes'
28890fi
28891
28892
28893if test "$with_fftw" != 'yes'; then
28894 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
28895fi
28896
cristy81beccd2011-10-03 18:17:24 +000028897have_fftw='no'
28898FFTW_LIBS=''
28899if test "$with_fftw" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28901$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
28903$as_echo_n "checking for FFTW... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28905$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028906 failed=0
28907 passed=0
28908 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
28909if test "x$ac_cv_header_fftw3_h" = xyes; then :
28910 passed=`expr $passed + 1`
28911else
28912 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028913fi
28914
cristy81beccd2011-10-03 18:17:24 +000028915
28916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
28917$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
28918if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
28919 $as_echo_n "(cached) " >&6
28920else
28921 ac_check_lib_save_LIBS=$LIBS
28922LIBS="-lfftw3 $LIBS"
28923cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28924/* end confdefs.h. */
28925
28926/* Override any GCC internal prototype to avoid an error.
28927 Use char because int might match the return type of a GCC
28928 builtin and then its argument prototype would still apply. */
28929#ifdef __cplusplus
28930extern "C"
28931#endif
28932char fftw_execute ();
28933int
28934main ()
28935{
28936return fftw_execute ();
28937 ;
28938 return 0;
28939}
28940_ACEOF
28941if ac_fn_c_try_link "$LINENO"; then :
28942 ac_cv_lib_fftw3_fftw_execute=yes
28943else
28944 ac_cv_lib_fftw3_fftw_execute=no
28945fi
28946rm -f core conftest.err conftest.$ac_objext \
28947 conftest$ac_exeext conftest.$ac_ext
28948LIBS=$ac_check_lib_save_LIBS
28949fi
28950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
28951$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
28952if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
28953 passed=`expr $passed + 1`
28954else
28955 failed=`expr $failed + 1`
28956fi
28957
28958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
28959$as_echo_n "checking if FFTW package is complete... " >&6; }
28960 if test $passed -gt 0; then
28961 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28963$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028964 have_fftw='no (failed tests)'
28965 else
28966 FFTW_LIBS='-lfftw3'
28967 LIBS="$FFTW_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000028968
cristy8b350f62009-11-15 23:12:43 +000028969$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028970
cristyad38abe2012-12-23 23:03:21 +000028971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28972$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028973 have_fftw='yes'
28974 fi
28975 else
cristyad38abe2012-12-23 23:03:21 +000028976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28977$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028978 fi
28979fi
cristy73bd4a52010-10-05 11:24:23 +000028980 if test "$have_fftw" = 'yes'; then
28981 FFTW_DELEGATE_TRUE=
28982 FFTW_DELEGATE_FALSE='#'
28983else
28984 FFTW_DELEGATE_TRUE='#'
28985 FFTW_DELEGATE_FALSE=
28986fi
28987
cristy3ed852e2009-09-05 21:47:34 +000028988
28989
28990
28991#
28992# Check for FlashPIX delegate library.
28993#
28994
28995# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000028996if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028997 withval=$with_fpx; with_fpx=$withval
28998else
28999 with_fpx='yes'
29000fi
29001
29002
29003if test "$with_fpx" != 'yes'; then
29004 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
29005fi
29006
29007have_fpx='no'
29008FPX_LIBS=''
29009if test "$with_fpx" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29011$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000029013$as_echo_n "checking for FlashPIX... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29015$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029016 failed=0
29017 passed=0
29018 ac_ext=cpp
29019ac_cpp='$CXXCPP $CPPFLAGS'
29020ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29021ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29022ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29023
29024
cristy8b350f62009-11-15 23:12:43 +000029025ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029026if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029027 passed=`expr $passed + 1`
29028else
29029 failed=`expr $failed + 1`
29030fi
29031
29032
cristy8b350f62009-11-15 23:12:43 +000029033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000029034$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029035if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029036 $as_echo_n "(cached) " >&6
29037else
29038 ac_check_lib_save_LIBS=$LIBS
29039LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029040cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029041/* end confdefs.h. */
29042
29043/* Override any GCC internal prototype to avoid an error.
29044 Use char because int might match the return type of a GCC
29045 builtin and then its argument prototype would still apply. */
29046#ifdef __cplusplus
29047extern "C"
29048#endif
29049char FPX_OpenImageByFilename ();
29050int
29051main ()
29052{
29053return FPX_OpenImageByFilename ();
29054 ;
29055 return 0;
29056}
29057_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029058if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029059 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
29060else
cristy8b350f62009-11-15 23:12:43 +000029061 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000029062fi
cristy8b350f62009-11-15 23:12:43 +000029063rm -f core conftest.err conftest.$ac_objext \
29064 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029065LIBS=$ac_check_lib_save_LIBS
29066fi
cristy8b350f62009-11-15 23:12:43 +000029067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000029068$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000029069if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029070 passed=`expr $passed + 1`
29071else
29072 failed=`expr $failed + 1`
29073fi
29074
29075 ac_ext=c
29076ac_cpp='$CPP $CPPFLAGS'
29077ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29078ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29079ac_compiler_gnu=$ac_cv_c_compiler_gnu
29080
cristy8b350f62009-11-15 23:12:43 +000029081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029082$as_echo_n "checking if FlashPIX package is complete... " >&6; }
29083 if test $passed -gt 0; then
29084 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29086$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029087 have_fpx='no (failed tests)'
29088 else
29089 FPX_LIBS='-lfpx'
29090
cristy8b350f62009-11-15 23:12:43 +000029091$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029092
cristyad38abe2012-12-23 23:03:21 +000029093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29094$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029095 have_fpx='yes'
29096 PERLMAINCC="$CXX"
29097 fi
29098 else
cristyad38abe2012-12-23 23:03:21 +000029099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29100$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029101 fi
29102fi
cristy73bd4a52010-10-05 11:24:23 +000029103 if test "$have_fpx" = 'yes'; then
29104 FPX_DELEGATE_TRUE=
29105 FPX_DELEGATE_FALSE='#'
29106else
29107 FPX_DELEGATE_TRUE='#'
29108 FPX_DELEGATE_FALSE=
29109fi
29110
cristy3ed852e2009-09-05 21:47:34 +000029111
cristy853d9902014-08-21 18:50:43 +000029112
29113
29114#
29115# Check for DJVU delegate library.
29116#
29117
29118# Check whether --with-djvu was given.
29119if test "${with_djvu+set}" = set; then :
29120 withval=$with_djvu; with_djvu=$withval
29121else
29122 with_djvu='yes'
29123fi
29124
29125
29126if test "$with_djvu" != 'yes'; then
29127 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
29128fi
29129
29130have_djvu='no'
29131DJVU_LIBS=''
29132if test "$with_djvu" != 'no'; then
29133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29134$as_echo "-------------------------------------------------------------" >&6; }
29135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
29136$as_echo_n "checking for DJVU... " >&6; }
29137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29138$as_echo "" >&6; }
29139 failed=0
29140 passed=0
29141 ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
29142if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
29143 passed=`expr $passed + 1`
29144else
29145 failed=`expr $failed + 1`
29146fi
29147
29148
29149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
29150$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
29151if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
29152 $as_echo_n "(cached) " >&6
29153else
29154 ac_check_lib_save_LIBS=$LIBS
29155LIBS="-ldjvulibre $LIBS"
29156cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29157/* end confdefs.h. */
29158
29159/* Override any GCC internal prototype to avoid an error.
29160 Use char because int might match the return type of a GCC
29161 builtin and then its argument prototype would still apply. */
29162#ifdef __cplusplus
29163extern "C"
29164#endif
29165char ddjvu_context_create ();
29166int
29167main ()
29168{
29169return ddjvu_context_create ();
29170 ;
29171 return 0;
29172}
29173_ACEOF
29174if ac_fn_c_try_link "$LINENO"; then :
29175 ac_cv_lib_djvulibre_ddjvu_context_create=yes
29176else
29177 ac_cv_lib_djvulibre_ddjvu_context_create=no
29178fi
29179rm -f core conftest.err conftest.$ac_objext \
29180 conftest$ac_exeext conftest.$ac_ext
29181LIBS=$ac_check_lib_save_LIBS
29182fi
29183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
29184$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
29185if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
29186 passed=`expr $passed + 1`
29187else
29188 failed=`expr $failed + 1`
29189fi
29190
29191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
29192$as_echo_n "checking if DJVU package is complete... " >&6; }
29193 if test $passed -gt 0; then
29194 if test $failed -gt 0; then
29195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29196$as_echo "no -- some components failed test" >&6; }
29197 have_djvu='no (failed tests)'
29198 else
29199 DJVU_LIBS='-ldjvulibre'
29200 LIBS="$DJVU_LIBS $LIBS"
29201
29202$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
29203
29204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29205$as_echo "yes" >&6; }
29206 have_djvu='yes'
29207 fi
29208 else
29209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29210$as_echo "no" >&6; }
29211 fi
29212fi
29213 if test "$have_djvu" = 'yes'; then
29214 DJVU_DELEGATE_TRUE=
29215 DJVU_DELEGATE_FALSE='#'
29216else
29217 DJVU_DELEGATE_TRUE='#'
29218 DJVU_DELEGATE_FALSE=
29219fi
29220
29221
cristy3ed852e2009-09-05 21:47:34 +000029222
29223
29224#
29225# Check for fontconfig delegate library.
29226#
29227
29228# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000029229if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029230 withval=$with_fontconfig; with_fontconfig=$withval
29231else
cristyfc3d0222012-02-07 15:05:57 +000029232 with_fontconfig='yes'
cristy3ed852e2009-09-05 21:47:34 +000029233fi
29234
29235
29236if test "$with_fontconfig" != 'yes'; then
29237 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
29238fi
29239
29240have_fontconfig='no'
29241FONTCONFIG_CFLAGS=""
29242FONTCONFIG_LIBS=""
29243FONTCONFIG_PKG=""
29244if test "x$with_fontconfig" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29246$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029247
29248pkg_failed=no
29249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
29250$as_echo_n "checking for FONTCONFIG... " >&6; }
29251
29252if test -n "$FONTCONFIG_CFLAGS"; then
29253 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
29254 elif test -n "$PKG_CONFIG"; then
29255 if test -n "$PKG_CONFIG" && \
29256 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29257 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29258 ac_status=$?
29259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29260 test $ac_status = 0; }; then
29261 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
29262else
29263 pkg_failed=yes
29264fi
29265 else
29266 pkg_failed=untried
29267fi
29268if test -n "$FONTCONFIG_LIBS"; then
29269 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
29270 elif test -n "$PKG_CONFIG"; then
29271 if test -n "$PKG_CONFIG" && \
29272 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29273 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29274 ac_status=$?
29275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29276 test $ac_status = 0; }; then
29277 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
29278else
29279 pkg_failed=yes
29280fi
29281 else
29282 pkg_failed=untried
29283fi
29284
29285
29286
29287if test $pkg_failed = yes; then
29288
29289if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29290 _pkg_short_errors_supported=yes
29291else
29292 _pkg_short_errors_supported=no
29293fi
29294 if test $_pkg_short_errors_supported = yes; then
29295 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
29296 else
29297 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
29298 fi
29299 # Put the nasty error message in config.log where it belongs
29300 echo "$FONTCONFIG_PKG_ERRORS" >&5
29301
29302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29303$as_echo "no" >&6; }
29304 have_fontconfig=no
29305elif test $pkg_failed = untried; then
29306 have_fontconfig=no
29307else
29308 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
29309 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
29310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29311$as_echo "yes" >&6; }
29312 have_fontconfig=yes
29313fi
cristyad38abe2012-12-23 23:03:21 +000029314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29315$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029316fi
29317
29318if test "$have_fontconfig" = 'yes'; then
29319
cristy8b350f62009-11-15 23:12:43 +000029320$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029321
cristyc6722092012-10-14 00:19:31 +000029322 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000029323 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000029324 fi
cristy3ed852e2009-09-05 21:47:34 +000029325fi
29326
cristy73bd4a52010-10-05 11:24:23 +000029327 if test "$have_fontconfig" = 'yes'; then
29328 FONTCONFIG_DELEGATE_TRUE=
29329 FONTCONFIG_DELEGATE_FALSE='#'
29330else
29331 FONTCONFIG_DELEGATE_TRUE='#'
29332 FONTCONFIG_DELEGATE_FALSE=
29333fi
29334
cristy3ed852e2009-09-05 21:47:34 +000029335
29336
29337
29338
29339#
cristy03f187e2013-01-24 00:22:19 +000029340# Check for the Freetype delegate library.
cristy3ed852e2009-09-05 21:47:34 +000029341#
29342
29343# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000029344if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029345 withval=$with_freetype; with_freetype=$withval
29346else
29347 with_freetype='yes'
29348fi
29349
29350
cristy3ed852e2009-09-05 21:47:34 +000029351if test "$with_freetype" != 'yes'; then
29352 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
29353fi
29354
cristy81beccd2011-10-03 18:17:24 +000029355have_freetype='no'
cristy03f187e2013-01-24 00:22:19 +000029356FREETYPE_CFLAGS=""
29357FREETYPE_LIBS=""
29358FREETYPE_PKG=""
29359if test "x$with_freetype" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29361$as_echo "-------------------------------------------------------------" >&6; }
cristy03f187e2013-01-24 00:22:19 +000029362
29363pkg_failed=no
29364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
29365$as_echo_n "checking for FREETYPE... " >&6; }
29366
29367if test -n "$FREETYPE_CFLAGS"; then
29368 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
29369 elif test -n "$PKG_CONFIG"; then
29370 if test -n "$PKG_CONFIG" && \
29371 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
29372 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
29373 ac_status=$?
29374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29375 test $ac_status = 0; }; then
29376 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
29377else
29378 pkg_failed=yes
29379fi
29380 else
29381 pkg_failed=untried
29382fi
29383if test -n "$FREETYPE_LIBS"; then
29384 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
29385 elif test -n "$PKG_CONFIG"; then
29386 if test -n "$PKG_CONFIG" && \
29387 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
29388 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
29389 ac_status=$?
29390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29391 test $ac_status = 0; }; then
29392 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
29393else
29394 pkg_failed=yes
29395fi
29396 else
29397 pkg_failed=untried
29398fi
29399
29400
29401
29402if test $pkg_failed = yes; then
29403
29404if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29405 _pkg_short_errors_supported=yes
29406else
29407 _pkg_short_errors_supported=no
29408fi
29409 if test $_pkg_short_errors_supported = yes; then
29410 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1`
29411 else
29412 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1`
29413 fi
29414 # Put the nasty error message in config.log where it belongs
29415 echo "$FREETYPE_PKG_ERRORS" >&5
29416
29417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29418$as_echo "no" >&6; }
29419 have_freetype=no
29420elif test $pkg_failed = untried; then
29421 have_freetype=no
29422else
29423 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
29424 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
29425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29426$as_echo "yes" >&6; }
29427 have_freetype=yes
29428fi
cristyad38abe2012-12-23 23:03:21 +000029429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29430$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029431fi
29432
cristy03f187e2013-01-24 00:22:19 +000029433if test "$have_freetype" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029434
cristy8b350f62009-11-15 23:12:43 +000029435$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029436
cristy03f187e2013-01-24 00:22:19 +000029437 CFLAGS="$FREETYPE_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000029438fi
cristy03f187e2013-01-24 00:22:19 +000029439
cristy73bd4a52010-10-05 11:24:23 +000029440 if test "$have_freetype" = 'yes'; then
29441 FREETYPE_DELEGATE_TRUE=
29442 FREETYPE_DELEGATE_FALSE='#'
29443else
29444 FREETYPE_DELEGATE_TRUE='#'
29445 FREETYPE_DELEGATE_FALSE=
29446fi
29447
cristy3ed852e2009-09-05 21:47:34 +000029448
29449
29450
cristy03f187e2013-01-24 00:22:19 +000029451
cristy3ed852e2009-09-05 21:47:34 +000029452#
29453# Check for Ghostscript library or framework.
29454#
29455# Test for iapi.h & test for gsapi_new_instance in -lgs
29456# or -framework Ghostscript
29457
29458
29459# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000029460if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029461 withval=$with_gslib; with_gslib=$withval
29462else
29463 with_gslib='no'
29464fi
29465
29466
cristyb7931f12009-09-25 10:22:21 +000029467gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000029468if test "$with_gslib" != 'yes'; then
29469 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
29470fi
29471
29472have_gslib='no'
29473GS_LIBS=''
29474if test "$with_gslib" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29476$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000029478$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29480$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000029481 framework=0
cristy3ed852e2009-09-05 21:47:34 +000029482 failed=0
29483 passed=0
cristy8b350f62009-11-15 23:12:43 +000029484 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 +000029485if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029486 passed=`expr $passed + 1`
29487else
29488 failed=`expr $failed + 1`
29489fi
29490
29491
cristy8b350f62009-11-15 23:12:43 +000029492 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 +000029493if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029494 passed=`expr $passed + 1`
29495else
29496 failed=`expr $failed + 1`
29497fi
29498
29499
cristy73bd4a52010-10-05 11:24:23 +000029500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
29501$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029502if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000029503 $as_echo_n "(cached) " >&6
29504else
29505 ac_check_framework_save_LIBS=$LIBS
29506LIBS="-framework Ghostscript $LIBS"
29507cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29508/* end confdefs.h. */
29509
29510/* Override any GCC internal prototype to avoid an error.
29511 Use char because int might match the return type of a GCC
29512 builtin and then its argument prototype would still apply. */
29513#ifdef __cplusplus
29514extern "C"
29515#endif
29516char gsapi_new_instance ();
29517int
29518main ()
29519{
29520return gsapi_new_instance ();
29521 ;
29522 return 0;
29523}
29524_ACEOF
29525if ac_fn_c_try_link "$LINENO"; then :
29526 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
29527else
29528 ac_cv_framework_Ghostscript_gsapi_new_instance=no
29529fi
29530rm -f core conftest.err conftest.$ac_objext \
29531 conftest$ac_exeext conftest.$ac_ext
29532LIBS=$ac_check_framework_save_LIBS
29533fi
29534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
29535$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
29536if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
29537 framework=`expr $framework + 1`
29538else
29539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029540$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029541if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029542 $as_echo_n "(cached) " >&6
29543else
29544 ac_check_lib_save_LIBS=$LIBS
29545LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029546cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029547/* end confdefs.h. */
29548
29549/* Override any GCC internal prototype to avoid an error.
29550 Use char because int might match the return type of a GCC
29551 builtin and then its argument prototype would still apply. */
29552#ifdef __cplusplus
29553extern "C"
29554#endif
29555char gsapi_new_instance ();
29556int
29557main ()
29558{
29559return gsapi_new_instance ();
29560 ;
29561 return 0;
29562}
29563_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029564if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029565 ac_cv_lib_gs_gsapi_new_instance=yes
29566else
cristy8b350f62009-11-15 23:12:43 +000029567 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000029568fi
cristy8b350f62009-11-15 23:12:43 +000029569rm -f core conftest.err conftest.$ac_objext \
29570 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029571LIBS=$ac_check_lib_save_LIBS
29572fi
cristy8b350f62009-11-15 23:12:43 +000029573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000029574$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000029575if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029576 passed=`expr $passed + 1`
29577else
29578 failed=`expr $failed + 1`
29579fi
cristy73bd4a52010-10-05 11:24:23 +000029580
29581fi
cristy8b350f62009-11-15 23:12:43 +000029582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029583$as_echo_n "checking if Ghostscript package is complete... " >&6; }
29584 if test $passed -gt 0; then
29585 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29587$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029588 have_gslib='no (failed tests)'
29589 else
29590 if test $framework -gt 0; then
29591 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000029592 gslib_framework='yes'
cristyad38abe2012-12-23 23:03:21 +000029593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
29594$as_echo "yes, using framework." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029595 else
cristyad38abe2012-12-23 23:03:21 +000029596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
29597$as_echo "yes, using library." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029598 GS_LIBS='-lgs'
29599 fi
29600 LIBS="$GS_LIBS $LIBS"
29601
cristy8b350f62009-11-15 23:12:43 +000029602$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029603
29604 have_gslib='yes'
29605 fi
29606 else
cristyad38abe2012-12-23 23:03:21 +000029607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29608$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029609 fi
29610fi
cristy73bd4a52010-10-05 11:24:23 +000029611 if test "$have_gslib" = 'yes'; then
29612 GS_DELEGATE_TRUE=
29613 GS_DELEGATE_FALSE='#'
29614else
29615 GS_DELEGATE_TRUE='#'
29616 GS_DELEGATE_FALSE=
29617fi
29618
cristy3ed852e2009-09-05 21:47:34 +000029619
29620
29621# Set default font search path
29622
29623# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000029624if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029625 withval=$with_fontpath; with_fontpath=$withval
29626else
29627 with_fontpath=''
29628fi
29629
29630
29631if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
29632 with_fontpath=''
29633else
29634
29635cat >>confdefs.h <<_ACEOF
29636#define MAGICK_FONT_PATH "$with_fontpath"
29637_ACEOF
29638
29639fi
29640if test "$with_fontpath=" != ''; then
29641 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
29642fi
29643
29644# Set Ghostscript font directory
29645
29646# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029647if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029648 withval=$with_gs_font_dir; with_gs_font_dir=$withval
29649else
29650 with_gs_font_dir='default'
29651fi
29652
29653
29654if test "$with_gs_font_dir" != 'default'; then
29655 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
29656fi
29657
29658
29659#
29660# Check for GVC delegate library.
29661#
29662
29663# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000029664if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029665 withval=$with_gvc; with_gvc=$withval
29666else
cristy1b70dc82012-07-01 23:15:05 +000029667 with_gvc='no'
cristy3ed852e2009-09-05 21:47:34 +000029668fi
29669
29670
29671if test "$with_gvc" != 'yes'; then
29672 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
29673fi
29674
29675GVC_PKG=""
29676if test "x$with_gvc" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29678$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029679
29680pkg_failed=no
29681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
29682$as_echo_n "checking for GVC... " >&6; }
29683
29684if test -n "$GVC_CFLAGS"; then
29685 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
29686 elif test -n "$PKG_CONFIG"; then
29687 if test -n "$PKG_CONFIG" && \
29688 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29689 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29690 ac_status=$?
29691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29692 test $ac_status = 0; }; then
29693 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
29694else
29695 pkg_failed=yes
29696fi
29697 else
29698 pkg_failed=untried
29699fi
29700if test -n "$GVC_LIBS"; then
29701 pkg_cv_GVC_LIBS="$GVC_LIBS"
29702 elif test -n "$PKG_CONFIG"; then
29703 if test -n "$PKG_CONFIG" && \
29704 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29705 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29706 ac_status=$?
29707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29708 test $ac_status = 0; }; then
29709 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
29710else
29711 pkg_failed=yes
29712fi
29713 else
29714 pkg_failed=untried
29715fi
29716
29717
29718
29719if test $pkg_failed = yes; then
29720
29721if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29722 _pkg_short_errors_supported=yes
29723else
29724 _pkg_short_errors_supported=no
29725fi
29726 if test $_pkg_short_errors_supported = yes; then
29727 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
29728 else
29729 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
29730 fi
29731 # Put the nasty error message in config.log where it belongs
29732 echo "$GVC_PKG_ERRORS" >&5
29733
29734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29735$as_echo "no" >&6; }
29736 have_gvc=no
29737elif test $pkg_failed = untried; then
29738 have_gvc=no
29739else
29740 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
29741 GVC_LIBS=$pkg_cv_GVC_LIBS
29742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29743$as_echo "yes" >&6; }
29744 have_gvc=yes
29745fi
cristyad38abe2012-12-23 23:03:21 +000029746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29747$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029748fi
29749
29750if test "$have_gvc" = 'yes'; then
29751
cristy8b350f62009-11-15 23:12:43 +000029752$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029753
cristyc6722092012-10-14 00:19:31 +000029754 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000029755 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
29756 fi
29757fi
29758
cristy73bd4a52010-10-05 11:24:23 +000029759 if test "$have_gvc" = 'yes'; then
29760 GVC_DELEGATE_TRUE=
29761 GVC_DELEGATE_FALSE='#'
29762else
29763 GVC_DELEGATE_TRUE='#'
29764 GVC_DELEGATE_FALSE=
29765fi
29766
cristy3ed852e2009-09-05 21:47:34 +000029767
29768
29769
29770
29771#
29772# Check for JBIG delegate library.
29773#
29774
29775
29776# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000029777if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029778 withval=$with_jbig; with_jbig=$withval
29779else
29780 with_jbig='yes'
29781fi
29782
29783
29784have_jbig='no'
29785JBIG_LIBS=''
29786if test "$with_jbig" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29788$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029790$as_echo_n "checking for JBIG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29792$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029793 failed=0
29794 passed=0
cristy8b350f62009-11-15 23:12:43 +000029795 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029796if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029797 passed=`expr $passed + 1`
29798else
29799 failed=`expr $failed + 1`
29800fi
29801
29802
cristy8b350f62009-11-15 23:12:43 +000029803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000029804$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029805if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029806 $as_echo_n "(cached) " >&6
29807else
29808 ac_check_lib_save_LIBS=$LIBS
29809LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029810cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029811/* end confdefs.h. */
29812
29813/* Override any GCC internal prototype to avoid an error.
29814 Use char because int might match the return type of a GCC
29815 builtin and then its argument prototype would still apply. */
29816#ifdef __cplusplus
29817extern "C"
29818#endif
29819char jbg_dec_init ();
29820int
29821main ()
29822{
29823return jbg_dec_init ();
29824 ;
29825 return 0;
29826}
29827_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029828if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029829 ac_cv_lib_jbig_jbg_dec_init=yes
29830else
cristy8b350f62009-11-15 23:12:43 +000029831 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000029832fi
cristy8b350f62009-11-15 23:12:43 +000029833rm -f core conftest.err conftest.$ac_objext \
29834 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029835LIBS=$ac_check_lib_save_LIBS
29836fi
cristy8b350f62009-11-15 23:12:43 +000029837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000029838$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000029839if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029840 passed=`expr $passed + 1`
29841else
29842 failed=`expr $failed + 1`
29843fi
29844
cristy8b350f62009-11-15 23:12:43 +000029845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029846$as_echo_n "checking if JBIG package is complete... " >&6; }
29847 if test $passed -gt 0; then
29848 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29850$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029851 have_jbig='no (failed tests)'
29852 else
29853 JBIG_LIBS='-ljbig'
29854 LIBS="$JBIG_LIBS $LIBS"
29855
cristy8b350f62009-11-15 23:12:43 +000029856$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029857
cristyad38abe2012-12-23 23:03:21 +000029858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29859$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029860 have_jbig='yes'
29861 fi
29862 else
cristyad38abe2012-12-23 23:03:21 +000029863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29864$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029865 fi
29866fi
cristy73bd4a52010-10-05 11:24:23 +000029867 if test "$have_jbig" = 'yes'; then
29868 JBIG_DELEGATE_TRUE=
29869 JBIG_DELEGATE_FALSE='#'
29870else
29871 JBIG_DELEGATE_TRUE='#'
29872 JBIG_DELEGATE_FALSE=
29873fi
29874
cristy3ed852e2009-09-05 21:47:34 +000029875
29876
29877
29878#
29879# Check for JPEG delegate library.
29880#
29881
29882# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000029883if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029884 withval=$with_jpeg; with_jpeg=$withval
29885else
29886 with_jpeg='yes'
29887fi
29888
29889
29890if test "$with_jpeg" != 'yes'; then
29891 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
29892fi
29893
29894have_jpeg='no'
29895JPEG_LIBS=''
29896if test "$with_jpeg" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29898$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029900$as_echo_n "checking for JPEG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29902$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029903 failed=0
29904 passed=0
cristy8b350f62009-11-15 23:12:43 +000029905 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029906if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029907 passed=`expr $passed + 1`
29908else
29909 failed=`expr $failed + 1`
29910fi
29911
29912
cristy8b350f62009-11-15 23:12:43 +000029913 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029914if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029915 passed=`expr $passed + 1`
29916else
29917 failed=`expr $failed + 1`
29918fi
29919
29920
cristy8b350f62009-11-15 23:12:43 +000029921 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029922if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029923 passed=`expr $passed + 1`
29924else
29925 failed=`expr $failed + 1`
29926fi
29927
29928
cristy8b350f62009-11-15 23:12:43 +000029929 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029930if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029931 passed=`expr $passed + 1`
29932else
29933 failed=`expr $failed + 1`
29934fi
29935
29936
cristy8b350f62009-11-15 23:12:43 +000029937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000029938$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029939if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029940 $as_echo_n "(cached) " >&6
29941else
29942 ac_check_lib_save_LIBS=$LIBS
29943LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029944cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029945/* end confdefs.h. */
29946
29947/* Override any GCC internal prototype to avoid an error.
29948 Use char because int might match the return type of a GCC
29949 builtin and then its argument prototype would still apply. */
29950#ifdef __cplusplus
29951extern "C"
29952#endif
29953char jpeg_read_header ();
29954int
29955main ()
29956{
29957return jpeg_read_header ();
29958 ;
29959 return 0;
29960}
29961_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029962if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029963 ac_cv_lib_jpeg_jpeg_read_header=yes
29964else
cristy8b350f62009-11-15 23:12:43 +000029965 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000029966fi
cristy8b350f62009-11-15 23:12:43 +000029967rm -f core conftest.err conftest.$ac_objext \
29968 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029969LIBS=$ac_check_lib_save_LIBS
29970fi
cristy8b350f62009-11-15 23:12:43 +000029971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000029972$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000029973if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029974 passed=`expr $passed + 1`
29975else
29976 failed=`expr $failed + 1`
29977fi
29978
29979
29980# Test for compatible JPEG library
29981if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000029982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000029983$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029984if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029985 $as_echo_n "(cached) " >&6
29986else
cristy8b350f62009-11-15 23:12:43 +000029987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029988/* end confdefs.h. */
29989#include <stdio.h>
29990#include <stdlib.h>
29991#include <jpeglib.h>
29992
29993int
29994main ()
29995{
29996
29997#if JPEG_LIB_VERSION < 62
29998#error IJG JPEG library must be version 6b or newer!
29999#endif
30000return 0;
30001
30002 ;
30003 return 0;
30004}
30005_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030006if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030007 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
30008else
cristy8b350f62009-11-15 23:12:43 +000030009 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030010fi
cristy3ed852e2009-09-05 21:47:34 +000030011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30012fi
cristy8b350f62009-11-15 23:12:43 +000030013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000030014$as_echo "$ac_cv_jpeg_version_ok" >&6; }
30015fi
cristy8b350f62009-11-15 23:12:43 +000030016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030017$as_echo_n "checking if JPEG package is complete... " >&6; }
30018 if test $passed -gt 0; then
30019 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30021$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030022 have_jpeg='no (failed tests)'
30023 else
30024 JPEG_LIBS='-ljpeg'
30025 LIBS="$JPEG_LIBS $LIBS"
30026
cristy8b350f62009-11-15 23:12:43 +000030027$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030028
cristyad38abe2012-12-23 23:03:21 +000030029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30030$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030031 have_jpeg='yes'
30032 fi
30033 else
cristyad38abe2012-12-23 23:03:21 +000030034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30035$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030036 fi
30037fi
cristy73bd4a52010-10-05 11:24:23 +000030038 if test "$have_jpeg" = 'yes'; then
30039 JPEG_DELEGATE_TRUE=
30040 JPEG_DELEGATE_FALSE='#'
30041else
30042 JPEG_DELEGATE_TRUE='#'
30043 JPEG_DELEGATE_FALSE=
30044fi
30045
cristy3ed852e2009-09-05 21:47:34 +000030046
30047
30048
30049#
cristy3ed852e2009-09-05 21:47:34 +000030050# Check for LCMS delegate library.
30051#
cristy71203402010-06-18 13:12:03 +000030052# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000030053
30054# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000030055if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030056 withval=$with_lcms; with_lcms=$withval
30057else
30058 with_lcms='yes'
30059fi
30060
cristy71203402010-06-18 13:12:03 +000030061if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000030062 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
30063fi
30064
cristy71203402010-06-18 13:12:03 +000030065# Disable LCMS2.
30066
30067# Check whether --with-lcms2 was given.
30068if test "${with_lcms2+set}" = set; then :
30069 withval=$with_lcms2; with_lcms2=$withval
30070else
30071 with_lcms2='yes'
30072fi
30073
30074if test "$with_lcms2" != 'yes' ; then
30075 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
30076fi
30077
30078have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000030079LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000030080if test "$with_lcms2" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000030081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30082$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000030083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
30084$as_echo_n "checking for LCMS v2... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30086$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030087 failed=0
30088 passed=0
30089 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000030090
30091 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000030092 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030093if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030094 have_lcms_header='yes'
30095fi
30096
30097
30098 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000030099
30100$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
30101
cristy71203402010-06-18 13:12:03 +000030102 passed=`expr $passed + 1`
30103 fi
30104
30105 # Check for <lcms2/lcms2.h)
30106 if test "$have_lcms_header" != 'yes'; then
30107 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 +000030108if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030109 have_lcms_header='yes'
30110fi
30111
30112
cristy71203402010-06-18 13:12:03 +000030113 if test "$have_lcms_header" = 'yes'; then
30114 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000030115
cristy71203402010-06-18 13:12:03 +000030116$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000030117
cristy71203402010-06-18 13:12:03 +000030118 fi
cristyd09bcf92010-03-25 03:04:45 +000030119 fi
cristy71203402010-06-18 13:12:03 +000030120
30121 # Failed to find lcms header?
30122 if test "$have_lcms_header" != 'yes'; then
30123 failed=`expr $failed + 1`
30124 fi
30125
30126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
30127$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030128if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000030129 $as_echo_n "(cached) " >&6
30130else
30131 ac_check_lib_save_LIBS=$LIBS
30132LIBS="-llcms2 $LIBS"
30133cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30134/* end confdefs.h. */
30135
30136/* Override any GCC internal prototype to avoid an error.
30137 Use char because int might match the return type of a GCC
30138 builtin and then its argument prototype would still apply. */
30139#ifdef __cplusplus
30140extern "C"
30141#endif
cristy71203402010-06-18 13:12:03 +000030142char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000030143int
30144main ()
30145{
cristy71203402010-06-18 13:12:03 +000030146return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000030147 ;
30148 return 0;
30149}
30150_ACEOF
30151if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030152 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000030153else
cristy71203402010-06-18 13:12:03 +000030154 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000030155fi
30156rm -f core conftest.err conftest.$ac_objext \
30157 conftest$ac_exeext conftest.$ac_ext
30158LIBS=$ac_check_lib_save_LIBS
30159fi
cristy71203402010-06-18 13:12:03 +000030160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
30161$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030162if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030163 passed=`expr $passed + 1`
30164else
30165 failed=`expr $failed + 1`
30166fi
30167
cristy71203402010-06-18 13:12:03 +000030168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
30169$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000030170 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030171 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30173$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000030174 have_lcms2='no (failed tests)'
30175 else
30176 LCMS_LIBS='-llcms2'
30177 LIBS="$LCMS_LIBS $LIBS"
cristyad38abe2012-12-23 23:03:21 +000030178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30179$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000030180 have_lcms2='yes'
30181 fi
cristyd09bcf92010-03-25 03:04:45 +000030182 else
cristyad38abe2012-12-23 23:03:21 +000030183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30184$as_echo "no" >&6; }
cristyd09bcf92010-03-25 03:04:45 +000030185 fi
30186fi
30187
cristy71203402010-06-18 13:12:03 +000030188#
30189# Check for LCMS v1 (1.11 or later)
30190#
30191if test $have_lcms2 = 'yes'; then
30192 with_lcms='no'
30193fi
30194
30195have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000030196if test "$with_lcms" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000030197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30198$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000030199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
30200$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30202$as_echo "" >&6; }
cristyd09bcf92010-03-25 03:04:45 +000030203 failed=0
30204 passed=0
30205 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000030206
30207 # Check for <lcms.h>
30208 if test "$have_lcms_header" != 'yes'; then
30209 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030210if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030211 have_lcms_header='yes'
30212fi
30213
30214
cristy71203402010-06-18 13:12:03 +000030215 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000030216 passed=`expr $passed + 1`
30217
cristy8b350f62009-11-15 23:12:43 +000030218$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030219
cristy71203402010-06-18 13:12:03 +000030220 fi
30221 fi
30222
30223 # Check for <lcms/lcms.h>
30224 if test "$have_lcms_header" != 'yes'; then
30225 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 +000030226if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030227 have_lcms_header='yes'
30228fi
30229
30230
cristy71203402010-06-18 13:12:03 +000030231 if test "$have_lcms_header" = 'yes'; then
30232 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030233
cristy8b350f62009-11-15 23:12:43 +000030234$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030235
cristy71203402010-06-18 13:12:03 +000030236 fi
cristy3ed852e2009-09-05 21:47:34 +000030237 fi
cristy71203402010-06-18 13:12:03 +000030238
30239 # Failed to find lcms header?
30240 if test "$have_lcms_header" != 'yes'; then
30241 failed=`expr $failed + 1`
30242 fi
30243
30244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
30245$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030246if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030247 $as_echo_n "(cached) " >&6
30248else
30249 ac_check_lib_save_LIBS=$LIBS
30250LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030251cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030252/* end confdefs.h. */
30253
30254/* Override any GCC internal prototype to avoid an error.
30255 Use char because int might match the return type of a GCC
30256 builtin and then its argument prototype would still apply. */
30257#ifdef __cplusplus
30258extern "C"
30259#endif
cristy71203402010-06-18 13:12:03 +000030260char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030261int
30262main ()
30263{
cristy71203402010-06-18 13:12:03 +000030264return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030265 ;
30266 return 0;
30267}
30268_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030269if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030270 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000030271else
cristy71203402010-06-18 13:12:03 +000030272 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000030273fi
cristy8b350f62009-11-15 23:12:43 +000030274rm -f core conftest.err conftest.$ac_objext \
30275 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030276LIBS=$ac_check_lib_save_LIBS
30277fi
cristy71203402010-06-18 13:12:03 +000030278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
30279$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030280if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030281 passed=`expr $passed + 1`
30282else
30283 failed=`expr $failed + 1`
30284fi
30285
cristy8b350f62009-11-15 23:12:43 +000030286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030287$as_echo_n "checking if LCMS package is complete... " >&6; }
30288 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030289 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30291$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000030292 have_lcms='no (failed tests)'
30293 else
30294 LCMS_LIBS='-llcms'
30295 LIBS="$LCMS_LIBS $LIBS"
cristyad38abe2012-12-23 23:03:21 +000030296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30297$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000030298 have_lcms='yes'
30299 fi
cristy3ed852e2009-09-05 21:47:34 +000030300 else
cristyad38abe2012-12-23 23:03:21 +000030301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30302$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030303 fi
30304fi
cristy71203402010-06-18 13:12:03 +000030305
cristy73bd4a52010-10-05 11:24:23 +000030306 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30307 LCMS_DELEGATE_TRUE=
30308 LCMS_DELEGATE_FALSE='#'
30309else
30310 LCMS_DELEGATE_TRUE='#'
30311 LCMS_DELEGATE_FALSE=
30312fi
30313
cristy71203402010-06-18 13:12:03 +000030314if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30315
30316$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
30317
30318fi
30319
cristy3ed852e2009-09-05 21:47:34 +000030320
30321
30322
30323#
cristy99db3872014-01-01 15:11:34 +000030324# Check for the OpenJP2 delegate library.
30325#
30326
30327# Check whether --with-openjp2 was given.
30328if test "${with_openjp2+set}" = set; then :
30329 withval=$with_openjp2; with_openjp2=$withval
30330else
30331 with_openjp2='yes'
30332fi
30333
30334
30335if test "$with_openjp2" != 'yes'; then
30336 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openjp2=$with_openjp2 "
30337fi
30338
30339have_openjp2='no'
30340LIBOPENJP2_CFLAGS=""
30341LIBOPENJP2_LIBS=""
30342LIBOPENJP2_PKG=""
30343if test "x$with_openjp2" = "xyes"; then
30344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30345$as_echo "-------------------------------------------------------------" >&6; }
30346
30347pkg_failed=no
30348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBOPENJP2" >&5
30349$as_echo_n "checking for LIBOPENJP2... " >&6; }
30350
30351if test -n "$LIBOPENJP2_CFLAGS"; then
30352 pkg_cv_LIBOPENJP2_CFLAGS="$LIBOPENJP2_CFLAGS"
30353 elif test -n "$PKG_CONFIG"; then
30354 if test -n "$PKG_CONFIG" && \
cristybc964932014-05-08 21:45:03 +000030355 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenjp2 >= 2.1.0\""; } >&5
30356 ($PKG_CONFIG --exists --print-errors "libopenjp2 >= 2.1.0") 2>&5
cristy99db3872014-01-01 15:11:34 +000030357 ac_status=$?
30358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30359 test $ac_status = 0; }; then
cristybc964932014-05-08 21:45:03 +000030360 pkg_cv_LIBOPENJP2_CFLAGS=`$PKG_CONFIG --cflags "libopenjp2 >= 2.1.0" 2>/dev/null`
cristy99db3872014-01-01 15:11:34 +000030361else
30362 pkg_failed=yes
30363fi
30364 else
30365 pkg_failed=untried
30366fi
30367if test -n "$LIBOPENJP2_LIBS"; then
30368 pkg_cv_LIBOPENJP2_LIBS="$LIBOPENJP2_LIBS"
30369 elif test -n "$PKG_CONFIG"; then
30370 if test -n "$PKG_CONFIG" && \
cristybc964932014-05-08 21:45:03 +000030371 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenjp2 >= 2.1.0\""; } >&5
30372 ($PKG_CONFIG --exists --print-errors "libopenjp2 >= 2.1.0") 2>&5
cristy99db3872014-01-01 15:11:34 +000030373 ac_status=$?
30374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30375 test $ac_status = 0; }; then
cristybc964932014-05-08 21:45:03 +000030376 pkg_cv_LIBOPENJP2_LIBS=`$PKG_CONFIG --libs "libopenjp2 >= 2.1.0" 2>/dev/null`
cristy99db3872014-01-01 15:11:34 +000030377else
30378 pkg_failed=yes
30379fi
30380 else
30381 pkg_failed=untried
30382fi
30383
30384
30385
30386if test $pkg_failed = yes; then
30387
30388if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30389 _pkg_short_errors_supported=yes
30390else
30391 _pkg_short_errors_supported=no
30392fi
30393 if test $_pkg_short_errors_supported = yes; then
cristybc964932014-05-08 21:45:03 +000030394 LIBOPENJP2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libopenjp2 >= 2.1.0" 2>&1`
cristy99db3872014-01-01 15:11:34 +000030395 else
cristybc964932014-05-08 21:45:03 +000030396 LIBOPENJP2_PKG_ERRORS=`$PKG_CONFIG --print-errors "libopenjp2 >= 2.1.0" 2>&1`
cristy99db3872014-01-01 15:11:34 +000030397 fi
30398 # Put the nasty error message in config.log where it belongs
30399 echo "$LIBOPENJP2_PKG_ERRORS" >&5
30400
30401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30402$as_echo "no" >&6; }
30403 have_openjp2=no
30404elif test $pkg_failed = untried; then
30405 have_openjp2=no
30406else
30407 LIBOPENJP2_CFLAGS=$pkg_cv_LIBOPENJP2_CFLAGS
30408 LIBOPENJP2_LIBS=$pkg_cv_LIBOPENJP2_LIBS
30409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30410$as_echo "yes" >&6; }
30411 have_openjp2=yes
30412fi
30413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30414$as_echo "" >&6; }
30415fi
30416
30417if test "$have_openjp2" = 'yes'; then
30418
30419$as_echo "#define LIBOPENJP2_DELEGATE 1" >>confdefs.h
30420
30421 if test "$build_modules" = 'no'; then
30422 CFLAGS="$LIBOPENJP2_CFLAGS $CFLAGS"
30423 fi
30424fi
30425
30426 if test "$have_openjp2" = 'yes'; then
30427 LIBOPENJP2_DELEGATE_TRUE=
30428 LIBOPENJP2_DELEGATE_FALSE='#'
30429else
30430 LIBOPENJP2_DELEGATE_TRUE='#'
30431 LIBOPENJP2_DELEGATE_FALSE=
30432fi
30433
30434
30435
30436
30437
30438
30439#
cristy3ed852e2009-09-05 21:47:34 +000030440# Check for the LQR (Liquid Rescale) delegate library.
30441#
30442
30443# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000030444if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030445 withval=$with_lqr; with_lqr=$withval
30446else
30447 with_lqr='yes'
30448fi
30449
30450
30451if test "$with_lqr" != 'yes'; then
30452 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
30453fi
30454
30455have_lqr='no'
30456LQR_CFLAGS=""
30457LQR_LIBS=""
30458LQR_PKG=""
30459if test "x$with_lqr" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30461$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030462
30463pkg_failed=no
30464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
30465$as_echo_n "checking for LQR... " >&6; }
30466
30467if test -n "$LQR_CFLAGS"; then
30468 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
30469 elif test -n "$PKG_CONFIG"; then
30470 if test -n "$PKG_CONFIG" && \
30471 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30472 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30473 ac_status=$?
30474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30475 test $ac_status = 0; }; then
30476 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
30477else
30478 pkg_failed=yes
30479fi
30480 else
30481 pkg_failed=untried
30482fi
30483if test -n "$LQR_LIBS"; then
30484 pkg_cv_LQR_LIBS="$LQR_LIBS"
30485 elif test -n "$PKG_CONFIG"; then
30486 if test -n "$PKG_CONFIG" && \
30487 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30488 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30489 ac_status=$?
30490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30491 test $ac_status = 0; }; then
30492 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
30493else
30494 pkg_failed=yes
30495fi
30496 else
30497 pkg_failed=untried
30498fi
30499
30500
30501
30502if test $pkg_failed = yes; then
30503
30504if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30505 _pkg_short_errors_supported=yes
30506else
30507 _pkg_short_errors_supported=no
30508fi
30509 if test $_pkg_short_errors_supported = yes; then
30510 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
30511 else
30512 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
30513 fi
30514 # Put the nasty error message in config.log where it belongs
30515 echo "$LQR_PKG_ERRORS" >&5
30516
30517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30518$as_echo "no" >&6; }
30519 have_lqr=no
30520elif test $pkg_failed = untried; then
30521 have_lqr=no
30522else
30523 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
30524 LQR_LIBS=$pkg_cv_LQR_LIBS
30525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30526$as_echo "yes" >&6; }
30527 have_lqr=yes
30528fi
cristyad38abe2012-12-23 23:03:21 +000030529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30530$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030531fi
30532
30533if test "$have_lqr" = 'yes'; then
30534
cristy8b350f62009-11-15 23:12:43 +000030535$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030536
30537 CFLAGS="$LQR_CFLAGS $CFLAGS"
30538fi
30539
cristy73bd4a52010-10-05 11:24:23 +000030540 if test "$have_lqr" = 'yes'; then
30541 LQR_DELEGATE_TRUE=
30542 LQR_DELEGATE_FALSE='#'
30543else
30544 LQR_DELEGATE_TRUE='#'
30545 LQR_DELEGATE_FALSE=
30546fi
30547
cristy3ed852e2009-09-05 21:47:34 +000030548
30549
30550
30551
cristy81beccd2011-10-03 18:17:24 +000030552# Disable LZMA (lzma library)
cristyfbb0ef02010-12-19 02:32:11 +000030553
30554# Check whether --with-lzma was given.
30555if test "${with_lzma+set}" = set; then :
30556 withval=$with_lzma; with_lzma=$withval
30557else
30558 with_lzma='yes'
30559fi
30560
cristy81beccd2011-10-03 18:17:24 +000030561if test "$with_lzma" != 'yes' ; then
cristyfbb0ef02010-12-19 02:32:11 +000030562 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
30563fi
30564
cristyb94e5002011-11-14 13:20:10 +000030565LZMA_PKG=""
30566if test "x$with_lzma" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30568$as_echo "-------------------------------------------------------------" >&6; }
cristyb94e5002011-11-14 13:20:10 +000030569
30570pkg_failed=no
30571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
cristyfbb0ef02010-12-19 02:32:11 +000030572$as_echo_n "checking for LZMA... " >&6; }
cristyb94e5002011-11-14 13:20:10 +000030573
30574if test -n "$LZMA_CFLAGS"; then
30575 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
30576 elif test -n "$PKG_CONFIG"; then
30577 if test -n "$PKG_CONFIG" && \
30578 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30579 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30580 ac_status=$?
30581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30582 test $ac_status = 0; }; then
30583 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null`
30584else
30585 pkg_failed=yes
30586fi
30587 else
30588 pkg_failed=untried
30589fi
30590if test -n "$LZMA_LIBS"; then
30591 pkg_cv_LZMA_LIBS="$LZMA_LIBS"
30592 elif test -n "$PKG_CONFIG"; then
30593 if test -n "$PKG_CONFIG" && \
30594 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30595 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30596 ac_status=$?
30597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30598 test $ac_status = 0; }; then
30599 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null`
30600else
30601 pkg_failed=yes
30602fi
30603 else
30604 pkg_failed=untried
30605fi
30606
30607
30608
30609if test $pkg_failed = yes; then
30610
30611if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30612 _pkg_short_errors_supported=yes
30613else
30614 _pkg_short_errors_supported=no
30615fi
30616 if test $_pkg_short_errors_supported = yes; then
30617 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "liblzma >= 2.9.0" 2>&1`
30618 else
30619 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "liblzma >= 2.9.0" 2>&1`
30620 fi
30621 # Put the nasty error message in config.log where it belongs
30622 echo "$LZMA_PKG_ERRORS" >&5
30623
30624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30625$as_echo "no" >&6; }
30626 have_lzma=no
30627elif test $pkg_failed = untried; then
30628 have_lzma=no
30629else
30630 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
30631 LZMA_LIBS=$pkg_cv_LZMA_LIBS
30632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30633$as_echo "yes" >&6; }
30634 have_lzma=yes
30635fi
cristyad38abe2012-12-23 23:03:21 +000030636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30637$as_echo "" >&6; }
cristyfbb0ef02010-12-19 02:32:11 +000030638fi
30639
cristyb94e5002011-11-14 13:20:10 +000030640if test "$have_lzma" = 'yes'; then
cristyfbb0ef02010-12-19 02:32:11 +000030641
30642$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
30643
cristyc6722092012-10-14 00:19:31 +000030644 if test "$build_modules" = 'no'; then
cristyb94e5002011-11-14 13:20:10 +000030645 CPPFLAGS="$LZMA_CFLAGS $CPPFLAGS"
cristyfbb0ef02010-12-19 02:32:11 +000030646 fi
cristyfbb0ef02010-12-19 02:32:11 +000030647fi
cristyb94e5002011-11-14 13:20:10 +000030648
cristyfbb0ef02010-12-19 02:32:11 +000030649 if test "$have_lzma" = 'yes'; then
30650 LZMA_DELEGATE_TRUE=
30651 LZMA_DELEGATE_FALSE='#'
30652else
30653 LZMA_DELEGATE_TRUE='#'
30654 LZMA_DELEGATE_FALSE=
30655fi
30656
30657
30658
30659
cristyb94e5002011-11-14 13:20:10 +000030660
cristy3ed852e2009-09-05 21:47:34 +000030661#
30662# Check for the OpenEXR delegate library.
30663#
30664
30665# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000030666if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030667 withval=$with_openexr; with_openexr=$withval
30668else
30669 with_openexr='yes'
30670fi
30671
30672
30673if test "$with_openexr" != 'yes'; then
30674 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
30675fi
30676
30677have_openexr='no'
30678OPENEXR_CFLAGS=""
30679OPENEXR_LIBS=""
30680OPENEXR_PKG=""
30681if test "x$with_openexr" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30683$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030684
30685pkg_failed=no
30686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
30687$as_echo_n "checking for OPENEXR... " >&6; }
30688
30689if test -n "$OPENEXR_CFLAGS"; then
30690 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
30691 elif test -n "$PKG_CONFIG"; then
30692 if test -n "$PKG_CONFIG" && \
30693 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30694 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30695 ac_status=$?
30696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30697 test $ac_status = 0; }; then
30698 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
30699else
30700 pkg_failed=yes
30701fi
30702 else
30703 pkg_failed=untried
30704fi
30705if test -n "$OPENEXR_LIBS"; then
30706 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
30707 elif test -n "$PKG_CONFIG"; then
30708 if test -n "$PKG_CONFIG" && \
30709 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30710 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30711 ac_status=$?
30712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30713 test $ac_status = 0; }; then
30714 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
30715else
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
30732 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
30733 else
30734 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
30735 fi
30736 # Put the nasty error message in config.log where it belongs
30737 echo "$OPENEXR_PKG_ERRORS" >&5
30738
30739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30740$as_echo "no" >&6; }
30741 have_openexr=no
30742elif test $pkg_failed = untried; then
30743 have_openexr=no
30744else
30745 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
30746 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
30747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30748$as_echo "yes" >&6; }
30749 have_openexr=yes
30750fi
cristyad38abe2012-12-23 23:03:21 +000030751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30752$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030753fi
30754
30755if test "$have_openexr" = 'yes'; then
30756
cristy8b350f62009-11-15 23:12:43 +000030757$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030758
cristyc6722092012-10-14 00:19:31 +000030759 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000030760 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
30761 fi
30762fi
30763
cristy73bd4a52010-10-05 11:24:23 +000030764 if test "$have_openexr" = 'yes'; then
30765 OPENEXR_DELEGATE_TRUE=
30766 OPENEXR_DELEGATE_FALSE='#'
30767else
30768 OPENEXR_DELEGATE_TRUE='#'
30769 OPENEXR_DELEGATE_FALSE=
30770fi
30771
cristy3ed852e2009-09-05 21:47:34 +000030772
30773
30774
30775
30776#
cristy41cbe8a2011-10-27 01:35:18 +000030777# Check for PANGO delegate library.
30778#
30779
30780# Check whether --with-pango was given.
30781if test "${with_pango+set}" = set; then :
30782 withval=$with_pango; with_pango=$withval
30783else
cristyfc3d0222012-02-07 15:05:57 +000030784 with_pango='yes'
cristy41cbe8a2011-10-27 01:35:18 +000030785fi
30786
30787
30788if test "$with_pango" != 'yes'; then
30789 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
30790fi
30791
30792have_pango='no'
cristya054b762012-03-26 23:16:00 +000030793have_pangocairo='no'
cristy41cbe8a2011-10-27 01:35:18 +000030794PANGO_CFLAGS=""
30795PANGO_LIBS=""
30796PANGO_PKG=""
30797if test "x$with_pango" = "xyes"; then
30798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30799$as_echo "-------------------------------------------------------------" >&6; }
30800
30801pkg_failed=no
30802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30803$as_echo_n "checking for PANGO... " >&6; }
30804
30805if test -n "$PANGO_CFLAGS"; then
30806 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30807 elif test -n "$PKG_CONFIG"; then
30808 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030809 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30810 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030811 ac_status=$?
30812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30813 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030814 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030815else
30816 pkg_failed=yes
30817fi
30818 else
30819 pkg_failed=untried
30820fi
30821if test -n "$PANGO_LIBS"; then
30822 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30823 elif test -n "$PKG_CONFIG"; then
30824 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030825 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30826 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030827 ac_status=$?
30828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30829 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030830 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030831else
30832 pkg_failed=yes
30833fi
30834 else
30835 pkg_failed=untried
30836fi
30837
30838
30839
30840if test $pkg_failed = yes; then
30841
30842if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30843 _pkg_short_errors_supported=yes
30844else
30845 _pkg_short_errors_supported=no
30846fi
30847 if test $_pkg_short_errors_supported = yes; then
cristya054b762012-03-26 23:16:00 +000030848 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030849 else
cristya054b762012-03-26 23:16:00 +000030850 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030851 fi
30852 # Put the nasty error message in config.log where it belongs
30853 echo "$PANGO_PKG_ERRORS" >&5
30854
30855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30856$as_echo "no" >&6; }
cristya054b762012-03-26 23:16:00 +000030857 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030858elif test $pkg_failed = untried; then
cristya054b762012-03-26 23:16:00 +000030859 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030860else
30861 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30862 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30864$as_echo "yes" >&6; }
cristya054b762012-03-26 23:16:00 +000030865 have_pangocairo=yes
cristy41cbe8a2011-10-27 01:35:18 +000030866fi
30867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30868$as_echo "" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000030869
30870pkg_failed=no
30871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30872$as_echo_n "checking for PANGO... " >&6; }
30873
30874if test -n "$PANGO_CFLAGS"; then
30875 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30876 elif test -n "$PKG_CONFIG"; then
30877 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030878 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30879 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030880 ac_status=$?
30881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30882 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030883 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030884else
30885 pkg_failed=yes
30886fi
30887 else
30888 pkg_failed=untried
30889fi
30890if test -n "$PANGO_LIBS"; then
30891 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30892 elif test -n "$PKG_CONFIG"; then
30893 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030894 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30895 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030896 ac_status=$?
30897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30898 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030899 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030900else
30901 pkg_failed=yes
30902fi
30903 else
30904 pkg_failed=untried
30905fi
30906
30907
30908
30909if test $pkg_failed = yes; then
30910
30911if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30912 _pkg_short_errors_supported=yes
30913else
30914 _pkg_short_errors_supported=no
30915fi
30916 if test $_pkg_short_errors_supported = yes; then
cristy2542fc62011-12-06 17:50:25 +000030917 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030918 else
cristy2542fc62011-12-06 17:50:25 +000030919 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030920 fi
30921 # Put the nasty error message in config.log where it belongs
30922 echo "$PANGO_PKG_ERRORS" >&5
30923
30924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30925$as_echo "no" >&6; }
30926 have_pango=no
30927elif test $pkg_failed = untried; then
30928 have_pango=no
30929else
30930 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30931 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30933$as_echo "yes" >&6; }
30934 have_pango=yes
30935fi
30936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30937$as_echo "" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000030938fi
30939
30940if test "$have_pango" = 'yes'; then
30941
30942$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
30943
cristyc6722092012-10-14 00:19:31 +000030944 if test "$build_modules" = 'no'; then
cristy41cbe8a2011-10-27 01:35:18 +000030945 CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS"
30946 fi
30947fi
30948
cristya054b762012-03-26 23:16:00 +000030949if test "$have_pangocairo" = 'yes'; then
cristy41cbe8a2011-10-27 01:35:18 +000030950
cristya054b762012-03-26 23:16:00 +000030951$as_echo "#define PANGOCAIRO_DELEGATE 1" >>confdefs.h
cristy41cbe8a2011-10-27 01:35:18 +000030952
cristyc6722092012-10-14 00:19:31 +000030953 if test "$build_modules" = 'no'; then
cristya054b762012-03-26 23:16:00 +000030954 CPPFLAGS="$PANGOCAIRO_CFLAGS $CPPFLAGS"
cristy41cbe8a2011-10-27 01:35:18 +000030955 fi
30956fi
30957
30958 if test "$have_pango" = 'yes'; then
30959 PANGO_DELEGATE_TRUE=
30960 PANGO_DELEGATE_FALSE='#'
30961else
30962 PANGO_DELEGATE_TRUE='#'
30963 PANGO_DELEGATE_FALSE=
30964fi
30965
cristya054b762012-03-26 23:16:00 +000030966 if test "$have_pangocairo" = 'yes'; then
30967 PANGOCAIRO_DELEGATE_TRUE=
30968 PANGOCAIRO_DELEGATE_FALSE='#'
cristy41cbe8a2011-10-27 01:35:18 +000030969else
cristya054b762012-03-26 23:16:00 +000030970 PANGOCAIRO_DELEGATE_TRUE='#'
30971 PANGOCAIRO_DELEGATE_FALSE=
cristy41cbe8a2011-10-27 01:35:18 +000030972fi
30973
30974
30975
30976
30977
30978#
cristy3ed852e2009-09-05 21:47:34 +000030979# Check for PNG delegate library.
30980#
30981
30982# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000030983if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030984 withval=$with_png; with_png=$withval
30985else
30986 with_png='yes'
30987fi
30988
30989
30990if test "$with_png" != 'yes'; then
30991 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
30992fi
30993
cristy81beccd2011-10-03 18:17:24 +000030994have_png='no'
30995PNG_LIBS=''
30996
30997if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000030998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30999$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
31001$as_echo_n "checking for PNG support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31003$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031004 failed=0
31005 passed=0
31006 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
31007if test "x$ac_cv_header_png_h" = xyes; then :
31008 passed=`expr $passed + 1`
31009else
31010 failed=`expr $failed + 1`
cristy64877302011-08-23 19:10:31 +000031011fi
31012
cristy81beccd2011-10-03 18:17:24 +000031013
31014
31015 if test $passed -gt 0; then
glennrp3fc1c212013-01-10 01:52:32 +000031016 for var in 7 6 5 4 2 '' ; do
cristy0615f0e2011-10-12 11:36:46 +000031017 if test "$have_png" = 'no' ; then
31018 if test "x${var}" = 'x' ; then
cristy81beccd2011-10-03 18:17:24 +000031019 pnglib='png'
31020 else
31021 pnglib="png1${var}"
31022 fi
31023
31024# Test for compatible LIBPNG library
31025 failed=0
31026 passed=0
cristy0615f0e2011-10-12 11:36:46 +000031027 if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then
cristy81beccd2011-10-03 18:17:24 +000031028 if test "${pnglib}" != 'png' ; then
31029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
31030$as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
31031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31032/* end confdefs.h. */
31033#include <stdio.h>
31034#include <stdlib.h>
31035#include <png.h>
31036
31037int
31038main ()
31039{
31040
31041#if PNG_LIBPNG_VER_MINOR != ${var}
31042#error LIBPNG library must be version 1${var}!
31043Kaboom, Kaboom
31044#endif
31045return 0;
31046
31047 ;
31048 return 0;
31049}
31050_ACEOF
31051if ac_fn_c_try_compile "$LINENO"; then :
31052 ac_cv_libpng_ok='yes'
31053else
31054 ac_cv_libpng_ok='no'
31055fi
31056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31057 if test "$ac_cv_libpng_ok" = 'yes' ; then
31058 passed=`expr $passed + 1`
cristyad38abe2012-12-23 23:03:21 +000031059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31060$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031061 else
31062 failed=`expr $failed + 1`
cristyad38abe2012-12-23 23:03:21 +000031063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31064$as_echo "no" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031065 fi
31066 else
31067 passed=`expr $passed + 1`
cristyad38abe2012-12-23 23:03:21 +000031068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31069$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031070 fi
31071 fi
31072
31073 if test $passed -gt 0 -a $failed -le 0; then
cristy03f187e2013-01-24 00:22:19 +000031074 if test "1${var}" = '17' ; then
31075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng17" >&5
31076$as_echo_n "checking for png_get_io_ptr in -lpng17... " >&6; }
31077if ${ac_cv_lib_png17_png_get_io_ptr+:} false; then :
31078 $as_echo_n "(cached) " >&6
31079else
31080 ac_check_lib_save_LIBS=$LIBS
31081LIBS="-lpng17 $LIBS"
31082cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31083/* end confdefs.h. */
31084
31085/* Override any GCC internal prototype to avoid an error.
31086 Use char because int might match the return type of a GCC
31087 builtin and then its argument prototype would still apply. */
31088#ifdef __cplusplus
31089extern "C"
31090#endif
31091char png_get_io_ptr ();
31092int
31093main ()
31094{
31095return png_get_io_ptr ();
31096 ;
31097 return 0;
31098}
31099_ACEOF
31100if ac_fn_c_try_link "$LINENO"; then :
31101 ac_cv_lib_png17_png_get_io_ptr=yes
31102else
31103 ac_cv_lib_png17_png_get_io_ptr=no
31104fi
31105rm -f core conftest.err conftest.$ac_objext \
31106 conftest$ac_exeext conftest.$ac_ext
31107LIBS=$ac_check_lib_save_LIBS
31108fi
31109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png17_png_get_io_ptr" >&5
31110$as_echo "$ac_cv_lib_png17_png_get_io_ptr" >&6; }
31111if test "x$ac_cv_lib_png17_png_get_io_ptr" = xyes; then :
31112 passed=`expr $passed + 1`
31113else
31114 failed=`expr $failed + 1`
31115fi
31116
31117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng17" >&5
31118$as_echo_n "checking for png_longjmp in -lpng17... " >&6; }
31119if ${ac_cv_lib_png17_png_longjmp+:} false; then :
31120 $as_echo_n "(cached) " >&6
31121else
31122 ac_check_lib_save_LIBS=$LIBS
31123LIBS="-lpng17 $LIBS"
31124cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31125/* end confdefs.h. */
31126
31127/* Override any GCC internal prototype to avoid an error.
31128 Use char because int might match the return type of a GCC
31129 builtin and then its argument prototype would still apply. */
31130#ifdef __cplusplus
31131extern "C"
31132#endif
31133char png_longjmp ();
31134int
31135main ()
31136{
31137return png_longjmp ();
31138 ;
31139 return 0;
31140}
31141_ACEOF
31142if ac_fn_c_try_link "$LINENO"; then :
31143 ac_cv_lib_png17_png_longjmp=yes
31144else
31145 ac_cv_lib_png17_png_longjmp=no
31146fi
31147rm -f core conftest.err conftest.$ac_objext \
31148 conftest$ac_exeext conftest.$ac_ext
31149LIBS=$ac_check_lib_save_LIBS
31150fi
31151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png17_png_longjmp" >&5
31152$as_echo "$ac_cv_lib_png17_png_longjmp" >&6; }
31153if test "x$ac_cv_lib_png17_png_longjmp" = xyes; then :
31154 passed=`expr $passed + 1`
31155else
31156 failed=`expr $failed + 1`
31157fi
31158
31159 fi
31160 if test "1${var}" = '16' ; then
31161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng16" >&5
31162$as_echo_n "checking for png_get_io_ptr in -lpng16... " >&6; }
31163if ${ac_cv_lib_png16_png_get_io_ptr+:} false; then :
31164 $as_echo_n "(cached) " >&6
31165else
31166 ac_check_lib_save_LIBS=$LIBS
31167LIBS="-lpng16 $LIBS"
31168cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31169/* end confdefs.h. */
31170
31171/* Override any GCC internal prototype to avoid an error.
31172 Use char because int might match the return type of a GCC
31173 builtin and then its argument prototype would still apply. */
31174#ifdef __cplusplus
31175extern "C"
31176#endif
31177char png_get_io_ptr ();
31178int
31179main ()
31180{
31181return png_get_io_ptr ();
31182 ;
31183 return 0;
31184}
31185_ACEOF
31186if ac_fn_c_try_link "$LINENO"; then :
31187 ac_cv_lib_png16_png_get_io_ptr=yes
31188else
31189 ac_cv_lib_png16_png_get_io_ptr=no
31190fi
31191rm -f core conftest.err conftest.$ac_objext \
31192 conftest$ac_exeext conftest.$ac_ext
31193LIBS=$ac_check_lib_save_LIBS
31194fi
31195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png16_png_get_io_ptr" >&5
31196$as_echo "$ac_cv_lib_png16_png_get_io_ptr" >&6; }
31197if test "x$ac_cv_lib_png16_png_get_io_ptr" = xyes; then :
31198 passed=`expr $passed + 1`
31199else
31200 failed=`expr $failed + 1`
31201fi
31202
31203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng16" >&5
31204$as_echo_n "checking for png_longjmp in -lpng16... " >&6; }
31205if ${ac_cv_lib_png16_png_longjmp+:} false; then :
31206 $as_echo_n "(cached) " >&6
31207else
31208 ac_check_lib_save_LIBS=$LIBS
31209LIBS="-lpng16 $LIBS"
31210cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31211/* end confdefs.h. */
31212
31213/* Override any GCC internal prototype to avoid an error.
31214 Use char because int might match the return type of a GCC
31215 builtin and then its argument prototype would still apply. */
31216#ifdef __cplusplus
31217extern "C"
31218#endif
31219char png_longjmp ();
31220int
31221main ()
31222{
31223return png_longjmp ();
31224 ;
31225 return 0;
31226}
31227_ACEOF
31228if ac_fn_c_try_link "$LINENO"; then :
31229 ac_cv_lib_png16_png_longjmp=yes
31230else
31231 ac_cv_lib_png16_png_longjmp=no
31232fi
31233rm -f core conftest.err conftest.$ac_objext \
31234 conftest$ac_exeext conftest.$ac_ext
31235LIBS=$ac_check_lib_save_LIBS
31236fi
31237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png16_png_longjmp" >&5
31238$as_echo "$ac_cv_lib_png16_png_longjmp" >&6; }
31239if test "x$ac_cv_lib_png16_png_longjmp" = xyes; then :
31240 passed=`expr $passed + 1`
31241else
31242 failed=`expr $failed + 1`
31243fi
31244
31245 fi
cristy81beccd2011-10-03 18:17:24 +000031246 if test "1${var}" = '15' ; then
31247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
31248$as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
31249if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
31250 $as_echo_n "(cached) " >&6
31251else
31252 ac_check_lib_save_LIBS=$LIBS
31253LIBS="-lpng15 $LIBS"
31254cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31255/* end confdefs.h. */
31256
31257/* Override any GCC internal prototype to avoid an error.
31258 Use char because int might match the return type of a GCC
31259 builtin and then its argument prototype would still apply. */
31260#ifdef __cplusplus
31261extern "C"
31262#endif
31263char png_get_io_ptr ();
31264int
31265main ()
31266{
31267return png_get_io_ptr ();
31268 ;
31269 return 0;
31270}
31271_ACEOF
31272if ac_fn_c_try_link "$LINENO"; then :
31273 ac_cv_lib_png15_png_get_io_ptr=yes
31274else
31275 ac_cv_lib_png15_png_get_io_ptr=no
31276fi
31277rm -f core conftest.err conftest.$ac_objext \
31278 conftest$ac_exeext conftest.$ac_ext
31279LIBS=$ac_check_lib_save_LIBS
31280fi
31281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
31282$as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
31283if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
31284 passed=`expr $passed + 1`
31285else
31286 failed=`expr $failed + 1`
31287fi
31288
31289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
31290$as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
31291if ${ac_cv_lib_png15_png_longjmp+:} false; then :
31292 $as_echo_n "(cached) " >&6
31293else
31294 ac_check_lib_save_LIBS=$LIBS
31295LIBS="-lpng15 $LIBS"
31296cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31297/* end confdefs.h. */
31298
31299/* Override any GCC internal prototype to avoid an error.
31300 Use char because int might match the return type of a GCC
31301 builtin and then its argument prototype would still apply. */
31302#ifdef __cplusplus
31303extern "C"
31304#endif
31305char png_longjmp ();
31306int
31307main ()
31308{
31309return png_longjmp ();
31310 ;
31311 return 0;
31312}
31313_ACEOF
31314if ac_fn_c_try_link "$LINENO"; then :
31315 ac_cv_lib_png15_png_longjmp=yes
31316else
31317 ac_cv_lib_png15_png_longjmp=no
31318fi
31319rm -f core conftest.err conftest.$ac_objext \
31320 conftest$ac_exeext conftest.$ac_ext
31321LIBS=$ac_check_lib_save_LIBS
31322fi
31323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
31324$as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
31325if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
31326 passed=`expr $passed + 1`
31327else
31328 failed=`expr $failed + 1`
31329fi
31330
31331 fi
31332 if test "1${var}" = '14' ; then
31333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
31334$as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
31335if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
31336 $as_echo_n "(cached) " >&6
31337else
31338 ac_check_lib_save_LIBS=$LIBS
31339LIBS="-lpng14 $LIBS"
31340cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31341/* end confdefs.h. */
31342
31343/* Override any GCC internal prototype to avoid an error.
31344 Use char because int might match the return type of a GCC
31345 builtin and then its argument prototype would still apply. */
31346#ifdef __cplusplus
31347extern "C"
31348#endif
31349char png_get_io_ptr ();
31350int
31351main ()
31352{
31353return png_get_io_ptr ();
31354 ;
31355 return 0;
31356}
31357_ACEOF
31358if ac_fn_c_try_link "$LINENO"; then :
31359 ac_cv_lib_png14_png_get_io_ptr=yes
31360else
31361 ac_cv_lib_png14_png_get_io_ptr=no
31362fi
31363rm -f core conftest.err conftest.$ac_objext \
31364 conftest$ac_exeext conftest.$ac_ext
31365LIBS=$ac_check_lib_save_LIBS
31366fi
31367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
31368$as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
31369if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
31370 passed=`expr $passed + 1`
31371else
31372 failed=`expr $failed + 1`
31373fi
31374
31375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
31376$as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
31377if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
31378 $as_echo_n "(cached) " >&6
31379else
31380 ac_check_lib_save_LIBS=$LIBS
31381LIBS="-lpng14 $LIBS"
31382cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31383/* end confdefs.h. */
31384
31385/* Override any GCC internal prototype to avoid an error.
31386 Use char because int might match the return type of a GCC
31387 builtin and then its argument prototype would still apply. */
31388#ifdef __cplusplus
31389extern "C"
31390#endif
31391char png_get_io_state ();
31392int
31393main ()
31394{
31395return png_get_io_state ();
31396 ;
31397 return 0;
31398}
31399_ACEOF
31400if ac_fn_c_try_link "$LINENO"; then :
31401 ac_cv_lib_png14_png_get_io_state=yes
31402else
31403 ac_cv_lib_png14_png_get_io_state=no
31404fi
31405rm -f core conftest.err conftest.$ac_objext \
31406 conftest$ac_exeext conftest.$ac_ext
31407LIBS=$ac_check_lib_save_LIBS
31408fi
31409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
31410$as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
31411if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
31412 passed=`expr $passed + 1`
31413else
31414 failed=`expr $failed + 1`
31415fi
31416
31417 fi
31418 if test "1${var}" = '12' ; then
31419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
31420$as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
31421if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
31422 $as_echo_n "(cached) " >&6
31423else
31424 ac_check_lib_save_LIBS=$LIBS
31425LIBS="-lpng12 $LIBS"
31426cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31427/* end confdefs.h. */
31428
31429/* Override any GCC internal prototype to avoid an error.
31430 Use char because int might match the return type of a GCC
31431 builtin and then its argument prototype would still apply. */
31432#ifdef __cplusplus
31433extern "C"
31434#endif
31435char png_get_io_ptr ();
31436int
31437main ()
31438{
31439return png_get_io_ptr ();
31440 ;
31441 return 0;
31442}
31443_ACEOF
31444if ac_fn_c_try_link "$LINENO"; then :
31445 ac_cv_lib_png12_png_get_io_ptr=yes
31446else
31447 ac_cv_lib_png12_png_get_io_ptr=no
31448fi
31449rm -f core conftest.err conftest.$ac_objext \
31450 conftest$ac_exeext conftest.$ac_ext
31451LIBS=$ac_check_lib_save_LIBS
31452fi
31453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
31454$as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
31455if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
31456 passed=`expr $passed + 1`
31457else
31458 failed=`expr $failed + 1`
31459fi
31460
31461 fi
31462 if test "1${var}" = '1' ; then
31463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
31464$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
31465if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
31466 $as_echo_n "(cached) " >&6
31467else
31468 ac_check_lib_save_LIBS=$LIBS
31469LIBS="-lpng $LIBS"
31470cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31471/* end confdefs.h. */
31472
31473/* Override any GCC internal prototype to avoid an error.
31474 Use char because int might match the return type of a GCC
31475 builtin and then its argument prototype would still apply. */
31476#ifdef __cplusplus
31477extern "C"
31478#endif
31479char png_get_io_ptr ();
31480int
31481main ()
31482{
31483return png_get_io_ptr ();
31484 ;
31485 return 0;
31486}
31487_ACEOF
31488if ac_fn_c_try_link "$LINENO"; then :
31489 ac_cv_lib_png_png_get_io_ptr=yes
31490else
31491 ac_cv_lib_png_png_get_io_ptr=no
31492fi
31493rm -f core conftest.err conftest.$ac_objext \
31494 conftest$ac_exeext conftest.$ac_ext
31495LIBS=$ac_check_lib_save_LIBS
31496fi
31497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
31498$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
31499if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
31500 passed=`expr $passed + 1`
31501else
31502 failed=`expr $failed + 1`
31503fi
31504
31505 fi
31506 if test $passed -gt 0 -a $failed -le 0 ; then
31507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
31508$as_echo_n "checking if ${pnglib} package is complete... " >&6; }
31509 if test $passed -gt 0 ; then
31510 if test $failed -gt 0 ; then
cristyad38abe2012-12-23 23:03:21 +000031511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31512$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031513 have_png='no (failed tests)'
31514 else
31515 PNG_LIBS="-l${pnglib}"
31516 LIBS="$PNG_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031517
cristy8b350f62009-11-15 23:12:43 +000031518$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031519
cristyad38abe2012-12-23 23:03:21 +000031520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31521$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031522 have_png='yes'
31523 fi
31524 fi
31525 fi
31526 fi
31527 fi
31528 done
31529 fi
cristy3ed852e2009-09-05 21:47:34 +000031530fi
cristy64877302011-08-23 19:10:31 +000031531
cristy73bd4a52010-10-05 11:24:23 +000031532 if test "$have_png" = 'yes'; then
31533 PNG_DELEGATE_TRUE=
31534 PNG_DELEGATE_FALSE='#'
31535else
31536 PNG_DELEGATE_TRUE='#'
31537 PNG_DELEGATE_FALSE=
31538fi
31539
cristy3ed852e2009-09-05 21:47:34 +000031540
cristy50d3f5c2011-09-10 20:09:06 +000031541
cristy3ed852e2009-09-05 21:47:34 +000031542
31543
31544#
31545# Check for RSVG delegate library.
31546#
31547
31548# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000031549if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031550 withval=$with_rsvg; with_rsvg=$withval
31551else
cristy1164d5f2012-08-15 00:58:25 +000031552 with_rsvg='no'
cristy3ed852e2009-09-05 21:47:34 +000031553fi
31554
31555
31556if test "$with_rsvg" != 'yes'; then
31557 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
31558fi
31559
31560have_rsvg='no'
31561have_cairo='no'
31562RSVG_CFLAGS=""
31563RSVG_LIBS=""
31564RSVG_PKG=""
31565if test "x$with_rsvg" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000031566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31567$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031568
31569pkg_failed=no
31570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
31571$as_echo_n "checking for RSVG... " >&6; }
31572
31573if test -n "$RSVG_CFLAGS"; then
31574 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
31575 elif test -n "$PKG_CONFIG"; then
31576 if test -n "$PKG_CONFIG" && \
31577 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31578 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31579 ac_status=$?
31580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31581 test $ac_status = 0; }; then
31582 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31583else
31584 pkg_failed=yes
31585fi
31586 else
31587 pkg_failed=untried
31588fi
31589if test -n "$RSVG_LIBS"; then
31590 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
31591 elif test -n "$PKG_CONFIG"; then
31592 if test -n "$PKG_CONFIG" && \
31593 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31594 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31595 ac_status=$?
31596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31597 test $ac_status = 0; }; then
31598 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31599else
31600 pkg_failed=yes
31601fi
31602 else
31603 pkg_failed=untried
31604fi
31605
31606
31607
31608if test $pkg_failed = yes; then
31609
31610if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31611 _pkg_short_errors_supported=yes
31612else
31613 _pkg_short_errors_supported=no
31614fi
31615 if test $_pkg_short_errors_supported = yes; then
31616 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31617 else
31618 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31619 fi
31620 # Put the nasty error message in config.log where it belongs
31621 echo "$RSVG_PKG_ERRORS" >&5
31622
31623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31624$as_echo "no" >&6; }
31625 have_rsvg=no
31626elif test $pkg_failed = untried; then
31627 have_rsvg=no
31628else
31629 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
31630 RSVG_LIBS=$pkg_cv_RSVG_LIBS
31631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31632$as_echo "yes" >&6; }
31633 have_rsvg=yes
31634fi
cristyad38abe2012-12-23 23:03:21 +000031635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31636$as_echo "" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031637
31638pkg_failed=no
31639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
31640$as_echo_n "checking for CAIRO_SVG... " >&6; }
31641
31642if test -n "$CAIRO_SVG_CFLAGS"; then
31643 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
31644 elif test -n "$PKG_CONFIG"; then
31645 if test -n "$PKG_CONFIG" && \
31646 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31647 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31648 ac_status=$?
31649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31650 test $ac_status = 0; }; then
31651 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
31652else
31653 pkg_failed=yes
31654fi
31655 else
31656 pkg_failed=untried
31657fi
31658if test -n "$CAIRO_SVG_LIBS"; then
31659 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
31660 elif test -n "$PKG_CONFIG"; then
31661 if test -n "$PKG_CONFIG" && \
31662 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31663 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31664 ac_status=$?
31665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31666 test $ac_status = 0; }; then
31667 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
31668else
31669 pkg_failed=yes
31670fi
31671 else
31672 pkg_failed=untried
31673fi
31674
31675
31676
31677if test $pkg_failed = yes; then
31678
31679if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31680 _pkg_short_errors_supported=yes
31681else
31682 _pkg_short_errors_supported=no
31683fi
31684 if test $_pkg_short_errors_supported = yes; then
31685 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
31686 else
31687 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
31688 fi
31689 # Put the nasty error message in config.log where it belongs
31690 echo "$CAIRO_SVG_PKG_ERRORS" >&5
31691
31692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31693$as_echo "no" >&6; }
31694 have_cairo=no
31695elif test $pkg_failed = untried; then
31696 have_cairo=no
31697else
31698 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
31699 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
31700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31701$as_echo "yes" >&6; }
31702 have_cairo=yes
31703fi
cristyad38abe2012-12-23 23:03:21 +000031704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31705$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031706fi
31707
31708if test "$have_rsvg" = 'yes'; then
31709
cristy8b350f62009-11-15 23:12:43 +000031710$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031711
cristyc6722092012-10-14 00:19:31 +000031712 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031713 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
31714 fi
31715fi
31716
31717if test "$have_cairo" = 'yes'; then
31718
cristy8b350f62009-11-15 23:12:43 +000031719$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031720
cristyc6722092012-10-14 00:19:31 +000031721 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031722 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
31723 fi
31724fi
31725
cristy73bd4a52010-10-05 11:24:23 +000031726 if test "$have_rsvg" = 'yes'; then
31727 RSVG_DELEGATE_TRUE=
31728 RSVG_DELEGATE_FALSE='#'
31729else
31730 RSVG_DELEGATE_TRUE='#'
31731 RSVG_DELEGATE_FALSE=
31732fi
31733
31734 if test "$have_cairo" = 'yes'; then
31735 CAIRO_DELEGATE_TRUE=
31736 CAIRO_DELEGATE_FALSE='#'
31737else
31738 CAIRO_DELEGATE_TRUE='#'
31739 CAIRO_DELEGATE_FALSE=
31740fi
31741
cristy3ed852e2009-09-05 21:47:34 +000031742
31743
31744
31745
31746#
31747# Check for TIFF delegate library.
31748#
31749
31750# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000031751if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031752 withval=$with_tiff; with_tiff=$withval
31753else
31754 with_tiff='yes'
31755fi
31756
31757
31758if test "$with_tiff" != 'yes'; then
31759 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
31760fi
31761
31762have_tiff='no'
31763TIFF_LIBS=''
31764if test "$with_tiff" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000031765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31766$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031768$as_echo_n "checking for TIFF... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31770$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031771 failed=0
31772 passed=0
cristy8b350f62009-11-15 23:12:43 +000031773 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031774if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031775 passed=`expr $passed + 1`
31776else
31777 failed=`expr $failed + 1`
31778fi
31779
31780
cristy8b350f62009-11-15 23:12:43 +000031781 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031782if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031783 passed=`expr $passed + 1`
31784else
31785 failed=`expr $failed + 1`
31786fi
31787
31788
cristy8b350f62009-11-15 23:12:43 +000031789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031790$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031791if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031792 $as_echo_n "(cached) " >&6
31793else
31794 ac_check_lib_save_LIBS=$LIBS
31795LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031796cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031797/* end confdefs.h. */
31798
31799/* Override any GCC internal prototype to avoid an error.
31800 Use char because int might match the return type of a GCC
31801 builtin and then its argument prototype would still apply. */
31802#ifdef __cplusplus
31803extern "C"
31804#endif
31805char TIFFOpen ();
31806int
31807main ()
31808{
31809return TIFFOpen ();
31810 ;
31811 return 0;
31812}
31813_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031814if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031815 ac_cv_lib_tiff_TIFFOpen=yes
31816else
cristy8b350f62009-11-15 23:12:43 +000031817 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031818fi
cristy8b350f62009-11-15 23:12:43 +000031819rm -f core conftest.err conftest.$ac_objext \
31820 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031821LIBS=$ac_check_lib_save_LIBS
31822fi
cristy8b350f62009-11-15 23:12:43 +000031823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031824$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031825if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031826 passed=`expr $passed + 1`
31827else
31828 failed=`expr $failed + 1`
31829fi
31830
cristy8b350f62009-11-15 23:12:43 +000031831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031832$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031833if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031834 $as_echo_n "(cached) " >&6
31835else
31836 ac_check_lib_save_LIBS=$LIBS
31837LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031838cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031839/* end confdefs.h. */
31840
31841/* Override any GCC internal prototype to avoid an error.
31842 Use char because int might match the return type of a GCC
31843 builtin and then its argument prototype would still apply. */
31844#ifdef __cplusplus
31845extern "C"
31846#endif
31847char TIFFClientOpen ();
31848int
31849main ()
31850{
31851return TIFFClientOpen ();
31852 ;
31853 return 0;
31854}
31855_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031856if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031857 ac_cv_lib_tiff_TIFFClientOpen=yes
31858else
cristy8b350f62009-11-15 23:12:43 +000031859 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031860fi
cristy8b350f62009-11-15 23:12:43 +000031861rm -f core conftest.err conftest.$ac_objext \
31862 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031863LIBS=$ac_check_lib_save_LIBS
31864fi
cristy8b350f62009-11-15 23:12:43 +000031865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031866$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031867if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031868 passed=`expr $passed + 1`
31869else
31870 failed=`expr $failed + 1`
31871fi
31872
cristy8b350f62009-11-15 23:12:43 +000031873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031874$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031875if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031876 $as_echo_n "(cached) " >&6
31877else
31878 ac_check_lib_save_LIBS=$LIBS
31879LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031880cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031881/* end confdefs.h. */
31882
31883/* Override any GCC internal prototype to avoid an error.
31884 Use char because int might match the return type of a GCC
31885 builtin and then its argument prototype would still apply. */
31886#ifdef __cplusplus
31887extern "C"
31888#endif
31889char TIFFIsByteSwapped ();
31890int
31891main ()
31892{
31893return TIFFIsByteSwapped ();
31894 ;
31895 return 0;
31896}
31897_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031898if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031899 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
31900else
cristy8b350f62009-11-15 23:12:43 +000031901 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000031902fi
cristy8b350f62009-11-15 23:12:43 +000031903rm -f core conftest.err conftest.$ac_objext \
31904 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031905LIBS=$ac_check_lib_save_LIBS
31906fi
cristy8b350f62009-11-15 23:12:43 +000031907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000031908$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000031909if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031910 passed=`expr $passed + 1`
31911else
31912 failed=`expr $failed + 1`
31913fi
31914
cristy8b350f62009-11-15 23:12:43 +000031915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031916$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031917if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031918 $as_echo_n "(cached) " >&6
31919else
31920 ac_check_lib_save_LIBS=$LIBS
31921LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031922cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031923/* end confdefs.h. */
31924
31925/* Override any GCC internal prototype to avoid an error.
31926 Use char because int might match the return type of a GCC
31927 builtin and then its argument prototype would still apply. */
31928#ifdef __cplusplus
31929extern "C"
31930#endif
31931char TIFFReadRGBATile ();
31932int
31933main ()
31934{
31935return TIFFReadRGBATile ();
31936 ;
31937 return 0;
31938}
31939_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031940if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031941 ac_cv_lib_tiff_TIFFReadRGBATile=yes
31942else
cristy8b350f62009-11-15 23:12:43 +000031943 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000031944fi
cristy8b350f62009-11-15 23:12:43 +000031945rm -f core conftest.err conftest.$ac_objext \
31946 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031947LIBS=$ac_check_lib_save_LIBS
31948fi
cristy8b350f62009-11-15 23:12:43 +000031949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000031950$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000031951if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031952 passed=`expr $passed + 1`
31953else
31954 failed=`expr $failed + 1`
31955fi
31956
cristy8b350f62009-11-15 23:12:43 +000031957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031958$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031959if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031960 $as_echo_n "(cached) " >&6
31961else
31962 ac_check_lib_save_LIBS=$LIBS
31963LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031964cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031965/* end confdefs.h. */
31966
31967/* Override any GCC internal prototype to avoid an error.
31968 Use char because int might match the return type of a GCC
31969 builtin and then its argument prototype would still apply. */
31970#ifdef __cplusplus
31971extern "C"
31972#endif
31973char TIFFReadRGBAStrip ();
31974int
31975main ()
31976{
31977return TIFFReadRGBAStrip ();
31978 ;
31979 return 0;
31980}
31981_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031982if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031983 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
31984else
cristy8b350f62009-11-15 23:12:43 +000031985 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000031986fi
cristy8b350f62009-11-15 23:12:43 +000031987rm -f core conftest.err conftest.$ac_objext \
31988 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031989LIBS=$ac_check_lib_save_LIBS
31990fi
cristy8b350f62009-11-15 23:12:43 +000031991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000031992$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000031993if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031994 passed=`expr $passed + 1`
31995else
31996 failed=`expr $failed + 1`
31997fi
31998
cristy8b350f62009-11-15 23:12:43 +000031999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000032000$as_echo_n "checking if TIFF package is complete... " >&6; }
32001 if test $passed -gt 0; then
32002 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000032003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32004$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032005 have_tiff='no (failed tests)'
32006 else
32007 TIFF_LIBS='-ltiff'
32008 LIBS="$TIFF_LIBS $LIBS"
32009
cristy8b350f62009-11-15 23:12:43 +000032010$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032011
cristyad38abe2012-12-23 23:03:21 +000032012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32013$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032014 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000032015 for ac_header in tiffconf.h
32016do :
32017 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000032018if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032019 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032020#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000032021_ACEOF
32022
32023fi
32024
32025done
32026
cristy8b350f62009-11-15 23:12:43 +000032027 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3f590e52011-11-14 14:29:44 +000032028 TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \
32029 TIFFSetTagExtender TIFFSetWarningHandlerExt \
32030 TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000032031do :
32032 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
32033ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000032034if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000032035 cat >>confdefs.h <<_ACEOF
32036#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
32037_ACEOF
32038
32039fi
32040done
32041
32042 fi
32043 else
cristyad38abe2012-12-23 23:03:21 +000032044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32045$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032046 fi
32047fi
cristy73bd4a52010-10-05 11:24:23 +000032048 if test "$have_tiff" = 'yes'; then
32049 TIFF_DELEGATE_TRUE=
32050 TIFF_DELEGATE_FALSE='#'
32051else
32052 TIFF_DELEGATE_TRUE='#'
32053 TIFF_DELEGATE_FALSE=
32054fi
32055
cristy3ed852e2009-09-05 21:47:34 +000032056
32057
32058
32059#
cristyb1860752011-03-14 00:27:46 +000032060# Check for WEBP delegate library.
32061#
32062
32063# Check whether --with-webp was given.
32064if test "${with_webp+set}" = set; then :
32065 withval=$with_webp; with_webp=$withval
32066else
32067 with_webp='yes'
32068fi
32069
32070
32071if test "$with_webp" != 'yes'; then
32072 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
32073fi
32074
32075have_webp='no'
32076WEBP_LIBS=''
32077if test "$with_webp" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000032078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32079$as_echo "-------------------------------------------------------------" >&6; }
cristyb1860752011-03-14 00:27:46 +000032080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
32081$as_echo_n "checking for WEBP... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32083$as_echo "" >&6; }
cristyb1860752011-03-14 00:27:46 +000032084 failed=0
32085 passed=0
32086 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
32087if test "x$ac_cv_header_webp_decode_h" = xyes; then :
32088 passed=`expr $passed + 1`
32089else
32090 failed=`expr $failed + 1`
32091fi
32092
32093
cristy6d670312013-03-22 23:23:01 +000032094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPPictureInitInternal in -lwebp" >&5
32095$as_echo_n "checking for WebPPictureInitInternal in -lwebp... " >&6; }
32096if ${ac_cv_lib_webp_WebPPictureInitInternal+:} false; then :
cristyb1860752011-03-14 00:27:46 +000032097 $as_echo_n "(cached) " >&6
32098else
32099 ac_check_lib_save_LIBS=$LIBS
32100LIBS="-lwebp $LIBS"
32101cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32102/* end confdefs.h. */
32103
32104/* Override any GCC internal prototype to avoid an error.
32105 Use char because int might match the return type of a GCC
32106 builtin and then its argument prototype would still apply. */
32107#ifdef __cplusplus
32108extern "C"
32109#endif
cristy6d670312013-03-22 23:23:01 +000032110char WebPPictureInitInternal ();
cristyb1860752011-03-14 00:27:46 +000032111int
32112main ()
32113{
cristy6d670312013-03-22 23:23:01 +000032114return WebPPictureInitInternal ();
cristyb1860752011-03-14 00:27:46 +000032115 ;
32116 return 0;
32117}
32118_ACEOF
32119if ac_fn_c_try_link "$LINENO"; then :
cristy6d670312013-03-22 23:23:01 +000032120 ac_cv_lib_webp_WebPPictureInitInternal=yes
cristyb1860752011-03-14 00:27:46 +000032121else
cristy6d670312013-03-22 23:23:01 +000032122 ac_cv_lib_webp_WebPPictureInitInternal=no
cristyb1860752011-03-14 00:27:46 +000032123fi
32124rm -f core conftest.err conftest.$ac_objext \
32125 conftest$ac_exeext conftest.$ac_ext
32126LIBS=$ac_check_lib_save_LIBS
32127fi
cristy6d670312013-03-22 23:23:01 +000032128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPPictureInitInternal" >&5
32129$as_echo "$ac_cv_lib_webp_WebPPictureInitInternal" >&6; }
32130if test "x$ac_cv_lib_webp_WebPPictureInitInternal" = xyes; then :
cristyb1860752011-03-14 00:27:46 +000032131 passed=`expr $passed + 1`
32132else
32133 failed=`expr $failed + 1`
32134fi
32135
32136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
32137$as_echo_n "checking if WEBP package is complete... " >&6; }
32138 if test $passed -gt 0; then
32139 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000032140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32141$as_echo "no -- some components failed test" >&6; }
cristyb1860752011-03-14 00:27:46 +000032142 have_webp='no (failed tests)'
32143 else
32144 WEBP_LIBS='-lwebp'
32145 LIBS="$WEBP_LIBS $LIBS"
32146
32147$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
32148
cristyad38abe2012-12-23 23:03:21 +000032149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32150$as_echo "yes" >&6; }
cristyb1860752011-03-14 00:27:46 +000032151 have_webp='yes'
32152 fi
32153 else
cristyad38abe2012-12-23 23:03:21 +000032154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32155$as_echo "no" >&6; }
cristyb1860752011-03-14 00:27:46 +000032156 fi
32157fi
32158 if test "$have_webp" = 'yes'; then
32159 WEBP_DELEGATE_TRUE=
32160 WEBP_DELEGATE_FALSE='#'
32161else
32162 WEBP_DELEGATE_TRUE='#'
32163 WEBP_DELEGATE_FALSE=
32164fi
32165
32166
32167
32168
32169#
cristy3ed852e2009-09-05 21:47:34 +000032170# Set Windows font directory.
32171#
32172
32173# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000032174if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032175 withval=$with_windows_font_dir; with_windows_font_dir=$withval
32176else
32177 with_windows_font_dir=''
32178fi
32179
32180if test "$with_windows_font_dir" != '' ; then
32181 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
32182fi
32183
32184
32185#
32186# Check for WMF delegate library.
32187#
32188
32189# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000032190if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032191 withval=$with_wmf; with_wmf=$withval
32192else
cristyfc3d0222012-02-07 15:05:57 +000032193 with_wmf='no'
cristy3ed852e2009-09-05 21:47:34 +000032194fi
32195
32196
32197if test "$with_wmf" != 'yes'; then
32198 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
32199fi
32200
32201have_wmf='no'
32202WMF_LIBS=''
cristy03f7cf92011-12-15 01:40:41 +000032203WMF_LIBS_DEPS=''
32204OLIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032205if test "$with_wmf" != 'no'; then
cristy03f7cf92011-12-15 01:40:41 +000032206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32207$as_echo "-------------------------------------------------------------" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000032209$as_echo_n "checking for WMF... " >&6; }
cristy03f7cf92011-12-15 01:40:41 +000032210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32211$as_echo "" >&6; }
32212 have_libwmf='no'
32213 have_libwmflite='no'
32214 have_libwmf_ipa_h='no'
32215
32216 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
32217"
32218if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then :
32219 have_libwmf_ipa_h='yes'
cristy3ed852e2009-09-05 21:47:34 +000032220fi
32221
32222
cristy03f7cf92011-12-15 01:40:41 +000032223 if test "$have_libwmf_ipa_h" = 'yes'; then
32224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
32225$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
32226if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032227 $as_echo_n "(cached) " >&6
32228else
32229 ac_check_lib_save_LIBS=$LIBS
cristy03f7cf92011-12-15 01:40:41 +000032230LIBS="-lwmflite $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032231cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032232/* end confdefs.h. */
32233
32234/* Override any GCC internal prototype to avoid an error.
32235 Use char because int might match the return type of a GCC
32236 builtin and then its argument prototype would still apply. */
32237#ifdef __cplusplus
32238extern "C"
32239#endif
cristy03f7cf92011-12-15 01:40:41 +000032240char wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000032241int
32242main ()
32243{
cristy03f7cf92011-12-15 01:40:41 +000032244return wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000032245 ;
32246 return 0;
32247}
32248_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032249if ac_fn_c_try_link "$LINENO"; then :
cristy03f7cf92011-12-15 01:40:41 +000032250 ac_cv_lib_wmflite_wmf_lite_create=yes
cristy3ed852e2009-09-05 21:47:34 +000032251else
cristy03f7cf92011-12-15 01:40:41 +000032252 ac_cv_lib_wmflite_wmf_lite_create=no
cristy3ed852e2009-09-05 21:47:34 +000032253fi
cristy8b350f62009-11-15 23:12:43 +000032254rm -f core conftest.err conftest.$ac_objext \
32255 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032256LIBS=$ac_check_lib_save_LIBS
32257fi
cristy03f7cf92011-12-15 01:40:41 +000032258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
32259$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
32260if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then :
32261 have_libwmflite='yes'
cristy9243a2d2011-08-22 17:32:32 +000032262fi
32263
cristy03f7cf92011-12-15 01:40:41 +000032264 if test "$have_libwmflite" = 'yes'; then
32265
32266$as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
32267
32268 WMF_LIBS='-lwmflite'
glennrp33e524b2011-08-24 17:41:57 +000032269 LIBS="$WMF_LIBS $LIBS"
cristy03f7cf92011-12-15 01:40:41 +000032270 have_wmf='yes'
32271 else
32272 WMF_LIBS_DEPS=''
32273 WMF_CONFIG_LIBS=`libwmf-config --libs`
32274 for lib in xml2 expat freetype jpeg png z; do
32275 testlib="-l${lib}"
32276 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
32277 done
32278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
32279$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
32280if ${ac_cv_lib_wmf_wmf_api_create+:} false; then :
32281 $as_echo_n "(cached) " >&6
32282else
32283 ac_check_lib_save_LIBS=$LIBS
32284LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
32285cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32286/* end confdefs.h. */
32287
32288/* Override any GCC internal prototype to avoid an error.
32289 Use char because int might match the return type of a GCC
32290 builtin and then its argument prototype would still apply. */
32291#ifdef __cplusplus
32292extern "C"
32293#endif
32294char wmf_api_create ();
32295int
32296main ()
32297{
32298return wmf_api_create ();
32299 ;
32300 return 0;
32301}
32302_ACEOF
32303if ac_fn_c_try_link "$LINENO"; then :
32304 ac_cv_lib_wmf_wmf_api_create=yes
32305else
32306 ac_cv_lib_wmf_wmf_api_create=no
32307fi
32308rm -f core conftest.err conftest.$ac_objext \
32309 conftest$ac_exeext conftest.$ac_ext
32310LIBS=$ac_check_lib_save_LIBS
32311fi
32312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
32313$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
32314if test "x$ac_cv_lib_wmf_wmf_api_create" = xyes; then :
32315 have_libwmf='yes'
32316fi
32317
32318 if test "$have_libwmf" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032319
cristy8b350f62009-11-15 23:12:43 +000032320$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032321
cristy03f7cf92011-12-15 01:40:41 +000032322 WMF_LIBS='-lwmf'
32323 LIBS="$WMF_LIBS $LIBS"
32324 have_wmf='yes'
32325 else
32326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32327$as_echo "no -- some components failed test" >&6; }
32328 have_wmf='no (failed tests)'
32329 have_wmflite='no (failed tests)'
32330 LIBS="$OLIBS"
32331 WMF_LIBS=''
32332 fi
glennrp33e524b2011-08-24 17:41:57 +000032333 fi
cristy03f7cf92011-12-15 01:40:41 +000032334 fi
32335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
32336$as_echo_n "checking if WMF package is complete... " >&6; }
32337 if test "$have_wmf" = 'yes'; then
32338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32339$as_echo "yes" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032340 else
cristy03f7cf92011-12-15 01:40:41 +000032341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32342$as_echo "no" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032343 fi
cristy3ed852e2009-09-05 21:47:34 +000032344fi
cristy73bd4a52010-10-05 11:24:23 +000032345 if test "$have_wmf" = 'yes'; then
32346 WMF_DELEGATE_TRUE=
32347 WMF_DELEGATE_FALSE='#'
32348else
32349 WMF_DELEGATE_TRUE='#'
32350 WMF_DELEGATE_FALSE=
32351fi
32352
cristy3ed852e2009-09-05 21:47:34 +000032353
32354
32355
cristy81beccd2011-10-03 18:17:24 +000032356
32357
cristy3ed852e2009-09-05 21:47:34 +000032358#
32359# Check for XML delegate library.
32360#
32361
32362# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000032363if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032364 withval=$with_xml; with_xml=$withval
32365else
cristyfc3d0222012-02-07 15:05:57 +000032366 with_xml='yes'
cristy3ed852e2009-09-05 21:47:34 +000032367fi
32368
32369
cristy81beccd2011-10-03 18:17:24 +000032370if test "$with_xml" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000032371 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
32372fi
32373
cristy81beccd2011-10-03 18:17:24 +000032374have_xml='no'
32375XML_LIBS=''
32376if test "$with_xml" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000032377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32378$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
32380$as_echo_n "checking for XML... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32382$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032383 PERSIST_LDFLAGS=$LDFLAGS
32384 PERSIST_CPPFLAGS=$CPPFLAGS
32385 xml2_config=''
32386 # Extract the first word of "xml2-config", so it can be a program name with args.
32387set dummy xml2-config; ac_word=$2
32388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32389$as_echo_n "checking for $ac_word... " >&6; }
32390if ${ac_cv_path_xml2_config+:} false; then :
32391 $as_echo_n "(cached) " >&6
32392else
32393 case $xml2_config in
32394 [\\/]* | ?:[\\/]*)
32395 ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path.
32396 ;;
32397 *)
32398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32399for as_dir in $PATH
32400do
32401 IFS=$as_save_IFS
32402 test -z "$as_dir" && as_dir=.
32403 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy81beccd2011-10-03 18:17:24 +000032405 ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext"
32406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32407 break 2
32408 fi
32409done
32410 done
32411IFS=$as_save_IFS
32412
32413 ;;
32414esac
32415fi
32416xml2_config=$ac_cv_path_xml2_config
32417if test -n "$xml2_config"; then
32418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
32419$as_echo "$xml2_config" >&6; }
32420else
32421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32422$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032423fi
32424
cristy81beccd2011-10-03 18:17:24 +000032425 if test -n "$xml2_config"; then
32426 # Debian installs libxml headers under /usr/include/libxml2/libxml with
32427 # the shared library installed under /usr/lib, whereas the package
32428 # installs itself under $prefix/libxml and $prefix/lib.
cristy4a069772014-10-05 19:26:36 +000032429 xml2_prefix=`${xml2_config} --prefix`
cristy81beccd2011-10-03 18:17:24 +000032430 if test -d "${xml2_prefix}/include/libxml2"; then
32431 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
32432 fi
32433 if test "${xml2_prefix}" != '/usr'; then
32434 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
32435 fi
32436 fi
32437 failed=0
32438 passed=0
32439 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
32440if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
32441 passed=`expr $passed + 1`
32442else
32443 failed=`expr $failed + 1`
32444fi
32445
32446
32447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5
32448$as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; }
32449if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then :
32450 $as_echo_n "(cached) " >&6
32451else
32452 ac_check_lib_save_LIBS=$LIBS
32453LIBS="-lxml2 $LIBS"
32454cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32455/* end confdefs.h. */
32456
32457/* Override any GCC internal prototype to avoid an error.
32458 Use char because int might match the return type of a GCC
32459 builtin and then its argument prototype would still apply. */
32460#ifdef __cplusplus
32461extern "C"
32462#endif
32463char xmlSAXVersion ();
32464int
32465main ()
32466{
32467return xmlSAXVersion ();
32468 ;
32469 return 0;
32470}
32471_ACEOF
32472if ac_fn_c_try_link "$LINENO"; then :
32473 ac_cv_lib_xml2_xmlSAXVersion=yes
32474else
32475 ac_cv_lib_xml2_xmlSAXVersion=no
32476fi
32477rm -f core conftest.err conftest.$ac_objext \
32478 conftest$ac_exeext conftest.$ac_ext
32479LIBS=$ac_check_lib_save_LIBS
32480fi
32481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5
32482$as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; }
32483if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then :
32484 passed=`expr $passed + 1`
32485else
32486 failed=`expr $failed + 1`
32487fi
32488
32489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5
32490$as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; }
32491if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then :
32492 $as_echo_n "(cached) " >&6
32493else
32494 ac_check_lib_save_LIBS=$LIBS
32495LIBS="-lxml2 $LIBS"
32496cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32497/* end confdefs.h. */
32498
32499/* Override any GCC internal prototype to avoid an error.
32500 Use char because int might match the return type of a GCC
32501 builtin and then its argument prototype would still apply. */
32502#ifdef __cplusplus
32503extern "C"
32504#endif
32505char xmlParseChunk ();
32506int
32507main ()
32508{
32509return xmlParseChunk ();
32510 ;
32511 return 0;
32512}
32513_ACEOF
32514if ac_fn_c_try_link "$LINENO"; then :
32515 ac_cv_lib_xml2_xmlParseChunk=yes
32516else
32517 ac_cv_lib_xml2_xmlParseChunk=no
32518fi
32519rm -f core conftest.err conftest.$ac_objext \
32520 conftest$ac_exeext conftest.$ac_ext
32521LIBS=$ac_check_lib_save_LIBS
32522fi
32523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5
32524$as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; }
32525if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then :
32526 passed=`expr $passed + 1`
32527else
32528 failed=`expr $failed + 1`
32529fi
32530
32531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5
32532$as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; }
32533if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then :
32534 $as_echo_n "(cached) " >&6
32535else
32536 ac_check_lib_save_LIBS=$LIBS
32537LIBS="-lxml2 $LIBS"
32538cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32539/* end confdefs.h. */
32540
32541/* Override any GCC internal prototype to avoid an error.
32542 Use char because int might match the return type of a GCC
32543 builtin and then its argument prototype would still apply. */
32544#ifdef __cplusplus
32545extern "C"
32546#endif
32547char xmlCreatePushParserCtxt ();
32548int
32549main ()
32550{
32551return xmlCreatePushParserCtxt ();
32552 ;
32553 return 0;
32554}
32555_ACEOF
32556if ac_fn_c_try_link "$LINENO"; then :
32557 ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes
32558else
32559 ac_cv_lib_xml2_xmlCreatePushParserCtxt=no
32560fi
32561rm -f core conftest.err conftest.$ac_objext \
32562 conftest$ac_exeext conftest.$ac_ext
32563LIBS=$ac_check_lib_save_LIBS
32564fi
32565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5
32566$as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; }
32567if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then :
32568 passed=`expr $passed + 1`
32569else
32570 failed=`expr $failed + 1`
32571fi
32572
32573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
32574$as_echo_n "checking if XML package is complete... " >&6; }
32575 if test $passed -gt 0; then
32576 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000032577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32578$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032579 have_xml='no (failed tests)'
32580 LDFLAGS="$PERSIST_LDFLAGS"
32581 CPPFLAGS="$PERSIST_CPPFLAGS"
32582 else
32583 XML_LIBS='-lxml2'
32584 LIBS="$XML_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032585
cristy8b350f62009-11-15 23:12:43 +000032586$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032587
cristyad38abe2012-12-23 23:03:21 +000032588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32589$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032590 have_xml='yes'
32591 fi
32592 else
cristyad38abe2012-12-23 23:03:21 +000032593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32594$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032595 fi
32596fi
cristy73bd4a52010-10-05 11:24:23 +000032597 if test "$have_xml" = 'yes'; then
32598 XML_DELEGATE_TRUE=
32599 XML_DELEGATE_FALSE='#'
32600else
32601 XML_DELEGATE_TRUE='#'
32602 XML_DELEGATE_FALSE=
32603fi
32604
cristy3ed852e2009-09-05 21:47:34 +000032605
32606
32607
32608# Substitute compiler name to build/link PerlMagick
32609#
32610
32611
32612#
32613# Configure install Paths
32614#
cristy7def36a2011-10-28 19:04:41 +000032615
cristy2a11bef2011-10-28 18:33:11 +000032616# Path to ImageMagick header files
cristybdabdd62013-03-04 17:43:36 +000032617INCLUDE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristye52f12f2012-12-31 15:32:36 +000032618INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}"
32619DEFINE_INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}/"
cristy2a11bef2011-10-28 18:33:11 +000032620case "${build_os}" in
32621 mingw* )
32622 DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
32623 ;;
32624esac
32625
32626cat >>confdefs.h <<_ACEOF
32627#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH"
32628_ACEOF
32629
32630
cristy3ed852e2009-09-05 21:47:34 +000032631
cristye52f12f2012-12-31 15:32:36 +000032632# Path to ImageMagick header files (arch part)
32633INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
32634DEFINE_INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
32635case "${build_os}" in
32636 mingw* )
32637 DEFINE_INCLUDEARCH_PATH=`$WinPathScript "$DEFINE_INCLUDEARCH_PATH" 1`
32638 ;;
32639esac
32640
32641cat >>confdefs.h <<_ACEOF
32642#define INCLUDEARCH_PATH "$DEFINE_INCLUDE_PATH"
32643_ACEOF
32644
32645
32646
cristy3ed852e2009-09-05 21:47:34 +000032647# Subdirectory under lib to place ImageMagick lib files
32648LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
32649
32650cat >>confdefs.h <<_ACEOF
32651#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
32652_ACEOF
32653
32654
32655# Path to ImageMagick bin directory
32656EXECUTABLE_PATH="${BIN_DIR}"
32657DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
32658case "${build_os}" in
32659 mingw* )
32660 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
32661 ;;
32662esac
32663
32664cat >>confdefs.h <<_ACEOF
32665#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
32666_ACEOF
32667
32668
32669
32670# Path to ImageMagick lib
32671LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
32672DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
32673case "${build_os}" in
32674 mingw* )
32675 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
32676 ;;
32677esac
32678
32679cat >>confdefs.h <<_ACEOF
32680#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
32681_ACEOF
32682
32683
32684
cristy3ed852e2009-09-05 21:47:34 +000032685#
cristy8d0ff762013-03-10 20:33:28 +000032686# path to local binaries
32687if test "x$LIB_BIN_BASEDIRNAME" = "x"; then
32688 LIB_BIN_BASEDIRNAME="bin"
32689fi
32690
32691cat >>confdefs.h <<_ACEOF
32692#define LIB_BIN_BASEDIRNAME "$LIB_BIN_BASEDIRNAME"
32693_ACEOF
32694
32695
32696
32697if test "x$LIB_BIN_DIR" = "x"; then
32698 LIB_BIN_DIR=${LIB_BIN_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32699fi
32700
32701
32702LIB_BIN_DIR_RELATIVE_PATH=$LIB_BIN_DIR
32703
32704LIB_BIN_DIR_PATH="${LIBRARY_PATH}/${LIB_BIN_DIR_RELATIVE_PATH}"
32705
32706
32707#
cristy01ff9f32012-12-01 18:15:29 +000032708# path to modules lib
32709if test "x$MODULES_BASEDIRNAME" = "x"; then
32710 MODULES_BASEDIRNAME="modules"
32711fi
cristy3ed852e2009-09-05 21:47:34 +000032712
32713cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032714#define MODULES_BASEDIRNAME "$MODULES_BASEDIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032715_ACEOF
32716
cristy01ff9f32012-12-01 18:15:29 +000032717
32718
32719if test "x$MODULES_DIRNAME" = "x"; then
cristy4bdbd342012-12-03 18:41:18 +000032720 MODULES_DIRNAME=${MODULES_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32721else
cristy3ed852e2009-09-05 21:47:34 +000032722
32723cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032724#define MODULES_DIRNAME "$MODULES_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032725_ACEOF
32726
cristycf4a3c22012-12-02 21:47:25 +000032727fi
cristy01ff9f32012-12-01 18:15:29 +000032728
32729
cristy371d4812012-12-01 19:48:10 +000032730MODULES_RELATIVE_PATH="${MODULES_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032731
32732MODULES_PATH="${LIBRARY_PATH}/${MODULES_RELATIVE_PATH}"
32733
32734
32735#
32736# path to coders lib
32737if test "x$CODER_DIRNAME" = "x"; then
32738 CODER_DIRNAME="coders"
32739fi
32740
32741cat >>confdefs.h <<_ACEOF
32742#define CODER_DIRNAME "$CODER_DIRNAME"
32743_ACEOF
32744
32745
32746
cristy371d4812012-12-01 19:48:10 +000032747CODER_RELATIVE_PATH="${CODER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032748CODER_PATH="${MODULES_PATH}/${CODER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000032749
32750
32751#
32752# Subdirectory under lib to place ImageMagick filter module files
cristy01ff9f32012-12-01 18:15:29 +000032753#
32754# path to coders lib
32755if test "x$FILTER_DIRNAME" = "x"; then
32756 FILTER_DIRNAME="filters"
32757fi
cristy3ed852e2009-09-05 21:47:34 +000032758
32759cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032760#define FILTER_DIRNAME "$FILTER_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032761_ACEOF
32762
cristy3ed852e2009-09-05 21:47:34 +000032763
cristy3ed852e2009-09-05 21:47:34 +000032764
cristy371d4812012-12-01 19:48:10 +000032765FILTER_RELATIVE_PATH="${FILTER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032766FILTER_PATH="${MODULES_PATH}/${FILTER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000032767
32768
32769#
32770# Path to ImageMagick documentation files
cristybdabdd62013-03-04 17:43:36 +000032771DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristyd55889c2011-03-27 00:50:24 +000032772DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
32773DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032774case "${build_os}" in
32775 mingw* )
32776 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
32777 ;;
32778esac
32779
32780cat >>confdefs.h <<_ACEOF
32781#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
32782_ACEOF
32783
32784
32785
cristydd17feb2014-03-05 02:06:32 +000032786#
32787# Enable/Disable documentation
32788# Check whether --enable-docs was given.
32789if test "${enable_docs+set}" = set; then :
32790 enableval=$enable_docs; wantdocs=$enableval
32791else
cristy02272312014-03-07 00:55:25 +000032792 wantdocs=yes
cristydd17feb2014-03-05 02:06:32 +000032793fi
32794
cristy02272312014-03-07 00:55:25 +000032795 if test "$wantdocs" = "yes"; then
cristydd17feb2014-03-05 02:06:32 +000032796 INSTALL_DOC_TRUE=
32797 INSTALL_DOC_FALSE='#'
32798else
32799 INSTALL_DOC_TRUE='#'
32800 INSTALL_DOC_FALSE=
32801fi
32802
32803
cristy2a11bef2011-10-28 18:33:11 +000032804# Subdirectory to place architecture-dependent configuration files
cristybdabdd62013-03-04 17:43:36 +000032805CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristy45dbd322011-03-27 16:40:38 +000032806
32807cat >>confdefs.h <<_ACEOF
32808#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
32809_ACEOF
32810
cristy7def36a2011-10-28 19:04:41 +000032811CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
cristy45dbd322011-03-27 16:40:38 +000032812DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
32813case "${build_os}" in
32814 mingw* )
32815 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
32816 ;;
32817esac
32818
32819cat >>confdefs.h <<_ACEOF
32820#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
32821_ACEOF
32822
32823
32824
cristy2a11bef2011-10-28 18:33:11 +000032825# Subdirectory to place architecture-independent configuration files
cristybdabdd62013-03-04 17:43:36 +000032826SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristy3ed852e2009-09-05 21:47:34 +000032827
32828cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032829#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032830_ACEOF
32831
cristy670aa3c2011-11-03 00:54:00 +000032832SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
cristy4f820712011-04-01 12:35:43 +000032833DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032834case "${build_os}" in
32835 mingw* )
cristy4f820712011-04-01 12:35:43 +000032836 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000032837 ;;
32838esac
32839
32840cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032841#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032842_ACEOF
32843
32844
32845
cristy54378032012-12-04 15:52:20 +000032846#
32847# Subdirectory to place architecture-dependent configuration files.
32848if test "x$SHAREARCH_BASEDIRNAME" = "x"; then
32849 SHAREARCH_BASEDIRNAME="config"
32850fi
cristy670aa3c2011-11-03 00:54:00 +000032851
32852cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000032853#define SHAREARCH_BASEDIRNAME "$SHAREARCH_BASEDIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000032854_ACEOF
32855
cristy54378032012-12-04 15:52:20 +000032856
32857
32858if test "x$SHAREARCH_DIRNAME" = "x"; then
32859 SHAREARCH_DIRNAME=${SHAREARCH_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32860else
cristy670aa3c2011-11-03 00:54:00 +000032861
32862cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000032863#define SHAREARCH_DIRNAME "$SHAREARCH_DIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000032864_ACEOF
32865
cristy54378032012-12-04 15:52:20 +000032866fi
32867
32868
32869SHAREARCH_RELATIVE_PATH="${SHAREARCH_DIRNAME}"
32870
32871SHAREARCH_PATH="${LIBRARY_PATH}/${SHAREARCH_RELATIVE_PATH}"
cristy670aa3c2011-11-03 00:54:00 +000032872
32873
cristy3ed852e2009-09-05 21:47:34 +000032874#
32875# program_transform_name is formed for use in a Makefile, so create a
32876# modified version for use in a shell script.
32877configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
32878
32879# Default delegate definitions
cristyad38abe2012-12-23 23:03:21 +000032880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32881$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000032883$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32885$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032886AutotraceDecodeDelegateDefault='autotrace'
cristy3d7f8062009-09-24 20:45:35 +000032887BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000032888BZIPDelegateDefault='bzip2'
32889BrowseDelegateDefault='xdg-open'
cristy3ed852e2009-09-05 21:47:34 +000032890CatDelegateDefault='cat'
32891DNGDecodeDelegateDefault='ufraw-batch'
cristy66f238e2014-05-16 12:21:48 +000032892DOCDecodeDelegateDefault='soffice'
cristy3ed852e2009-09-05 21:47:34 +000032893GVCDecodeDelegateDefault='dot'
32894DVIDecodeDelegateDefault='dvips'
32895EchoDelegateDefault='echo'
32896EditorDelegateDefault='xterm'
cristy3ed852e2009-09-05 21:47:34 +000032897ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
32898DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
32899MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
32900GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000032901HPGLDecodeDelegateDefault='hp2xx'
32902HTMLDecodeDelegateDefault='html2ps'
32903ILBMDecodeDelegateDefault='ilbmtoppm'
32904ILBMEncodeDelegateDefault='ppmtoilbm'
cristy71f53d52013-04-27 13:33:59 +000032905JXRDecodeDelegateDefault='JxrDecApp'
32906JXREncodeDelegateDefault='JxrEncApp'
cristy3ed852e2009-09-05 21:47:34 +000032907LPDelegateDefault='lp'
32908LPRDelegateDefault='lpr'
cristy3ed852e2009-09-05 21:47:34 +000032909LaunchDelegateDefault='gimp'
32910MANDelegateDefault='groff'
cristy81ab5af2013-10-06 18:28:39 +000032911MPEGDecodeDelegateDefault='avconv'
32912MPEGEncodeDelegateDefault='avconv'
cristy935c86e2010-06-05 23:50:07 +000032913MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000032914MVDelegateDefault='mv'
32915PCLDelegateDefault='pcl6'
32916PGPDecodeDelegateDefault='pgpv'
32917POVDelegateDefault='povray'
32918if test "$native_win32_build" = 'yes'; then
32919 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000032920elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032921 PSDelegateDefault='gsc'
32922else
32923 PSDelegateDefault='gs'
32924fi
32925RLEEncodeDelegateDefault='rawtorle'
32926RMDelegateDefault='rm'
cristy5281e322012-02-09 21:12:45 +000032927RSVGDecodeDelegateDefault='rsvg-convert'
cristy3ed852e2009-09-05 21:47:34 +000032928SCANDecodeDelegateDefault='scanimage'
cristyec6934f2012-08-14 18:38:40 +000032929SVGDecodeDelegateDefault='inkscape'
cristy3ed852e2009-09-05 21:47:34 +000032930TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000032931UniconvertorDelegateDefault='uniconvertor'
cristy86e86092013-08-04 17:43:57 +000032932WebPDecodeDelegateDefault='dwebp'
32933WebPEncodeDelegateDefault='cwebp'
cristy3ed852e2009-09-05 21:47:34 +000032934WMFDecodeDelegateDefault='wmf2eps'
32935WWWDecodeDelegateDefault='curl'
32936XPSDelegateDefault='gxps'
32937ZipDelegateDefault='gzip'
32938
32939# Search for delegates
32940# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
32941set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032943$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032944if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032945 $as_echo_n "(cached) " >&6
32946else
32947 case $AutotraceDecodeDelegate in
32948 [\\/]* | ?:[\\/]*)
32949 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
32950 ;;
32951 *)
32952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32953for as_dir in $PATH
32954do
32955 IFS=$as_save_IFS
32956 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032957 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032959 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032961 break 2
32962 fi
32963done
cristy8b350f62009-11-15 23:12:43 +000032964 done
cristy3ed852e2009-09-05 21:47:34 +000032965IFS=$as_save_IFS
32966
32967 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
32968 ;;
32969esac
32970fi
32971AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
32972if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032974$as_echo "$AutotraceDecodeDelegate" >&6; }
32975else
cristy8b350f62009-11-15 23:12:43 +000032976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032977$as_echo "no" >&6; }
32978fi
32979
32980
cristy3ed852e2009-09-05 21:47:34 +000032981# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
32982set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032984$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032985if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032986 $as_echo_n "(cached) " >&6
32987else
32988 case $BlenderDecodeDelegate in
32989 [\\/]* | ?:[\\/]*)
32990 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
32991 ;;
32992 *)
32993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32994for as_dir in $PATH
32995do
32996 IFS=$as_save_IFS
32997 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032998 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033000 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033002 break 2
33003 fi
33004done
cristy8b350f62009-11-15 23:12:43 +000033005 done
cristy3ed852e2009-09-05 21:47:34 +000033006IFS=$as_save_IFS
33007
33008 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
33009 ;;
33010esac
33011fi
33012BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
33013if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033015$as_echo "$BlenderDecodeDelegate" >&6; }
33016else
cristy8b350f62009-11-15 23:12:43 +000033017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033018$as_echo "no" >&6; }
33019fi
33020
33021
33022# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
33023set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033025$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033026if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033027 $as_echo_n "(cached) " >&6
33028else
33029 case $BZIPDelegate in
33030 [\\/]* | ?:[\\/]*)
33031 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
33032 ;;
33033 *)
33034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33035for as_dir in $PATH
33036do
33037 IFS=$as_save_IFS
33038 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033039 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033041 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033043 break 2
33044 fi
33045done
cristy8b350f62009-11-15 23:12:43 +000033046 done
cristy3ed852e2009-09-05 21:47:34 +000033047IFS=$as_save_IFS
33048
33049 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
33050 ;;
33051esac
33052fi
33053BZIPDelegate=$ac_cv_path_BZIPDelegate
33054if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033056$as_echo "$BZIPDelegate" >&6; }
33057else
cristy8b350f62009-11-15 23:12:43 +000033058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033059$as_echo "no" >&6; }
33060fi
33061
33062
cristyc59f0e72012-08-27 12:59:33 +000033063for ac_prog in "$BrowseDelegateDefault" google-chrome firefox konqueror mozilla lynx
33064do
33065 # Extract the first word of "$ac_prog", so it can be a program name with args.
33066set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033068$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033069if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033070 $as_echo_n "(cached) " >&6
33071else
33072 case $BrowseDelegate in
33073 [\\/]* | ?:[\\/]*)
33074 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
33075 ;;
33076 *)
33077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33078for as_dir in $PATH
33079do
33080 IFS=$as_save_IFS
33081 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033082 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033084 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033086 break 2
33087 fi
33088done
cristy8b350f62009-11-15 23:12:43 +000033089 done
cristy3ed852e2009-09-05 21:47:34 +000033090IFS=$as_save_IFS
33091
cristy3ed852e2009-09-05 21:47:34 +000033092 ;;
33093esac
33094fi
33095BrowseDelegate=$ac_cv_path_BrowseDelegate
33096if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033098$as_echo "$BrowseDelegate" >&6; }
33099else
cristy8b350f62009-11-15 23:12:43 +000033100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033101$as_echo "no" >&6; }
33102fi
33103
33104
cristyc59f0e72012-08-27 12:59:33 +000033105 test -n "$BrowseDelegate" && break
33106done
33107test -n "$BrowseDelegate" || BrowseDelegate=""$BrowseDelegateDefault""
33108
cristy3ed852e2009-09-05 21:47:34 +000033109# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
33110set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033112$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033113if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033114 $as_echo_n "(cached) " >&6
33115else
33116 case $CatDelegate in
33117 [\\/]* | ?:[\\/]*)
33118 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
33119 ;;
33120 *)
33121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33122for as_dir in $PATH
33123do
33124 IFS=$as_save_IFS
33125 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033126 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033128 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033130 break 2
33131 fi
33132done
cristy8b350f62009-11-15 23:12:43 +000033133 done
cristy3ed852e2009-09-05 21:47:34 +000033134IFS=$as_save_IFS
33135
33136 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
33137 ;;
33138esac
33139fi
33140CatDelegate=$ac_cv_path_CatDelegate
33141if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033143$as_echo "$CatDelegate" >&6; }
33144else
cristy8b350f62009-11-15 23:12:43 +000033145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033146$as_echo "no" >&6; }
33147fi
33148
33149
33150# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
33151set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033153$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033154if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033155 $as_echo_n "(cached) " >&6
33156else
33157 case $DNGDecodeDelegate in
33158 [\\/]* | ?:[\\/]*)
33159 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
33160 ;;
33161 *)
33162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33163for as_dir in $PATH
33164do
33165 IFS=$as_save_IFS
33166 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033167 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033169 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033171 break 2
33172 fi
33173done
cristy8b350f62009-11-15 23:12:43 +000033174 done
cristy3ed852e2009-09-05 21:47:34 +000033175IFS=$as_save_IFS
33176
33177 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
33178 ;;
33179esac
33180fi
33181DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
33182if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033184$as_echo "$DNGDecodeDelegate" >&6; }
33185else
cristy8b350f62009-11-15 23:12:43 +000033186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033187$as_echo "no" >&6; }
33188fi
33189
33190
cristy66f238e2014-05-16 12:21:48 +000033191# Extract the first word of ""$DOCDecodeDelegateDefault"", so it can be a program name with args.
33192set dummy "$DOCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033194$as_echo_n "checking for $ac_word... " >&6; }
cristy66f238e2014-05-16 12:21:48 +000033195if ${ac_cv_path_DOCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033196 $as_echo_n "(cached) " >&6
33197else
cristy66f238e2014-05-16 12:21:48 +000033198 case $DOCDecodeDelegate in
cristy3ed852e2009-09-05 21:47:34 +000033199 [\\/]* | ?:[\\/]*)
cristy66f238e2014-05-16 12:21:48 +000033200 ac_cv_path_DOCDecodeDelegate="$DOCDecodeDelegate" # Let the user override the test with a path.
cristy3ed852e2009-09-05 21:47:34 +000033201 ;;
33202 *)
33203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33204for as_dir in $PATH
33205do
33206 IFS=$as_save_IFS
33207 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033208 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy66f238e2014-05-16 12:21:48 +000033210 ac_cv_path_DOCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033212 break 2
33213 fi
33214done
cristy8b350f62009-11-15 23:12:43 +000033215 done
cristy3ed852e2009-09-05 21:47:34 +000033216IFS=$as_save_IFS
33217
cristy66f238e2014-05-16 12:21:48 +000033218 test -z "$ac_cv_path_DOCDecodeDelegate" && ac_cv_path_DOCDecodeDelegate=""$DOCDecodeDelegateDefault""
cristy3ed852e2009-09-05 21:47:34 +000033219 ;;
33220esac
33221fi
cristy66f238e2014-05-16 12:21:48 +000033222DOCDecodeDelegate=$ac_cv_path_DOCDecodeDelegate
33223if test -n "$DOCDecodeDelegate"; then
33224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOCDecodeDelegate" >&5
33225$as_echo "$DOCDecodeDelegate" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000033226else
cristy8b350f62009-11-15 23:12:43 +000033227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033228$as_echo "no" >&6; }
33229fi
33230
33231
33232# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
33233set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033235$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033236if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033237 $as_echo_n "(cached) " >&6
33238else
33239 case $DVIDecodeDelegate in
33240 [\\/]* | ?:[\\/]*)
33241 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
33242 ;;
33243 *)
33244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33245for as_dir in $PATH
33246do
33247 IFS=$as_save_IFS
33248 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033249 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033251 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033253 break 2
33254 fi
33255done
cristy8b350f62009-11-15 23:12:43 +000033256 done
cristy3ed852e2009-09-05 21:47:34 +000033257IFS=$as_save_IFS
33258
33259 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
33260 ;;
33261esac
33262fi
33263DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
33264if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033266$as_echo "$DVIDecodeDelegate" >&6; }
33267else
cristy8b350f62009-11-15 23:12:43 +000033268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033269$as_echo "no" >&6; }
33270fi
33271
33272
cristy3ed852e2009-09-05 21:47:34 +000033273# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
33274set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033276$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033277if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033278 $as_echo_n "(cached) " >&6
33279else
33280 case $ConvertDelegate in
33281 [\\/]* | ?:[\\/]*)
33282 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
33283 ;;
33284 *)
33285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33286for as_dir in $PATH
33287do
33288 IFS=$as_save_IFS
33289 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033290 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033292 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033294 break 2
33295 fi
33296done
cristy8b350f62009-11-15 23:12:43 +000033297 done
cristy3ed852e2009-09-05 21:47:34 +000033298IFS=$as_save_IFS
33299
33300 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
33301 ;;
33302esac
33303fi
33304ConvertDelegate=$ac_cv_path_ConvertDelegate
33305if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033307$as_echo "$ConvertDelegate" >&6; }
33308else
cristy8b350f62009-11-15 23:12:43 +000033309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033310$as_echo "no" >&6; }
33311fi
33312
33313
33314# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
33315set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033317$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033318if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033319 $as_echo_n "(cached) " >&6
33320else
33321 case $DisplayDelegate in
33322 [\\/]* | ?:[\\/]*)
33323 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
33324 ;;
33325 *)
33326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33327for as_dir in $PATH
33328do
33329 IFS=$as_save_IFS
33330 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033331 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033333 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033335 break 2
33336 fi
33337done
cristy8b350f62009-11-15 23:12:43 +000033338 done
cristy3ed852e2009-09-05 21:47:34 +000033339IFS=$as_save_IFS
33340
33341 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
33342 ;;
33343esac
33344fi
33345DisplayDelegate=$ac_cv_path_DisplayDelegate
33346if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033348$as_echo "$DisplayDelegate" >&6; }
33349else
cristy8b350f62009-11-15 23:12:43 +000033350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033351$as_echo "no" >&6; }
33352fi
33353
33354
cristy66f238e2014-05-16 12:21:48 +000033355# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
33356set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033358$as_echo_n "checking for $ac_word... " >&6; }
cristy66f238e2014-05-16 12:21:48 +000033359if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033360 $as_echo_n "(cached) " >&6
33361else
cristy66f238e2014-05-16 12:21:48 +000033362 case $EchoDelegate in
cristy3ed852e2009-09-05 21:47:34 +000033363 [\\/]* | ?:[\\/]*)
cristy66f238e2014-05-16 12:21:48 +000033364 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
cristy3ed852e2009-09-05 21:47:34 +000033365 ;;
33366 *)
33367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33368for as_dir in $PATH
33369do
33370 IFS=$as_save_IFS
33371 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033372 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy66f238e2014-05-16 12:21:48 +000033374 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033376 break 2
33377 fi
33378done
cristy8b350f62009-11-15 23:12:43 +000033379 done
cristy3ed852e2009-09-05 21:47:34 +000033380IFS=$as_save_IFS
33381
cristy66f238e2014-05-16 12:21:48 +000033382 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
cristy3ed852e2009-09-05 21:47:34 +000033383 ;;
33384esac
33385fi
cristy66f238e2014-05-16 12:21:48 +000033386EchoDelegate=$ac_cv_path_EchoDelegate
33387if test -n "$EchoDelegate"; then
33388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
33389$as_echo "$EchoDelegate" >&6; }
33390else
33391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33392$as_echo "no" >&6; }
33393fi
33394
33395
33396# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
33397set dummy "$EditorDelegateDefault"; ac_word=$2
33398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33399$as_echo_n "checking for $ac_word... " >&6; }
33400if ${ac_cv_path_EditorDelegate+:} false; then :
33401 $as_echo_n "(cached) " >&6
33402else
33403 case $EditorDelegate in
33404 [\\/]* | ?:[\\/]*)
33405 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
33406 ;;
33407 *)
33408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33409for as_dir in $PATH
33410do
33411 IFS=$as_save_IFS
33412 test -z "$as_dir" && as_dir=.
33413 for ac_exec_ext in '' $ac_executable_extensions; do
33414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33415 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
33416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33417 break 2
33418 fi
33419done
33420 done
33421IFS=$as_save_IFS
33422
33423 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
33424 ;;
33425esac
33426fi
33427EditorDelegate=$ac_cv_path_EditorDelegate
33428if test -n "$EditorDelegate"; then
33429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
33430$as_echo "$EditorDelegate" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000033431else
cristy8b350f62009-11-15 23:12:43 +000033432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033433$as_echo "no" >&6; }
33434fi
33435
33436
33437# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
33438set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033440$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033441if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033442 $as_echo_n "(cached) " >&6
33443else
33444 case $GnuplotDecodeDelegate in
33445 [\\/]* | ?:[\\/]*)
33446 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
33447 ;;
33448 *)
33449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33450for as_dir in $PATH
33451do
33452 IFS=$as_save_IFS
33453 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033454 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033456 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033458 break 2
33459 fi
33460done
cristy8b350f62009-11-15 23:12:43 +000033461 done
cristy3ed852e2009-09-05 21:47:34 +000033462IFS=$as_save_IFS
33463
33464 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
33465 ;;
33466esac
33467fi
33468GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
33469if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033471$as_echo "$GnuplotDecodeDelegate" >&6; }
33472else
cristy8b350f62009-11-15 23:12:43 +000033473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033474$as_echo "no" >&6; }
33475fi
33476
33477
cristy66f238e2014-05-16 12:21:48 +000033478# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
33479set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
33480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33481$as_echo_n "checking for $ac_word... " >&6; }
33482if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
33483 $as_echo_n "(cached) " >&6
33484else
33485 case $GVCDecodeDelegate in
33486 [\\/]* | ?:[\\/]*)
33487 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
33488 ;;
33489 *)
33490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33491for as_dir in $PATH
33492do
33493 IFS=$as_save_IFS
33494 test -z "$as_dir" && as_dir=.
33495 for ac_exec_ext in '' $ac_executable_extensions; do
33496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33497 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33499 break 2
33500 fi
33501done
33502 done
33503IFS=$as_save_IFS
33504
33505 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
33506 ;;
33507esac
33508fi
33509GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
33510if test -n "$GVCDecodeDelegate"; then
33511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
33512$as_echo "$GVCDecodeDelegate" >&6; }
33513else
33514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33515$as_echo "no" >&6; }
33516fi
33517
33518
cristy3ed852e2009-09-05 21:47:34 +000033519# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
33520set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033522$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033523if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033524 $as_echo_n "(cached) " >&6
33525else
33526 case $HPGLDecodeDelegate in
33527 [\\/]* | ?:[\\/]*)
33528 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
33529 ;;
33530 *)
33531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33532for as_dir in $PATH
33533do
33534 IFS=$as_save_IFS
33535 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033536 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033538 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033540 break 2
33541 fi
33542done
cristy8b350f62009-11-15 23:12:43 +000033543 done
cristy3ed852e2009-09-05 21:47:34 +000033544IFS=$as_save_IFS
33545
33546 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
33547 ;;
33548esac
33549fi
33550HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
33551if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033553$as_echo "$HPGLDecodeDelegate" >&6; }
33554else
cristy8b350f62009-11-15 23:12:43 +000033555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033556$as_echo "no" >&6; }
33557fi
33558
33559
33560# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
33561set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033563$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033564if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033565 $as_echo_n "(cached) " >&6
33566else
33567 case $HTMLDecodeDelegate in
33568 [\\/]* | ?:[\\/]*)
33569 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
33570 ;;
33571 *)
33572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33573for as_dir in $PATH
33574do
33575 IFS=$as_save_IFS
33576 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033577 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033579 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033581 break 2
33582 fi
33583done
cristy8b350f62009-11-15 23:12:43 +000033584 done
cristy3ed852e2009-09-05 21:47:34 +000033585IFS=$as_save_IFS
33586
33587 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
33588 ;;
33589esac
33590fi
33591HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
33592if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033594$as_echo "$HTMLDecodeDelegate" >&6; }
33595else
cristy8b350f62009-11-15 23:12:43 +000033596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033597$as_echo "no" >&6; }
33598fi
33599
33600
33601# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
33602set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033604$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033605if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033606 $as_echo_n "(cached) " >&6
33607else
33608 case $ILBMDecodeDelegate in
33609 [\\/]* | ?:[\\/]*)
33610 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
33611 ;;
33612 *)
33613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33614for as_dir in $PATH
33615do
33616 IFS=$as_save_IFS
33617 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033618 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033620 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033622 break 2
33623 fi
33624done
cristy8b350f62009-11-15 23:12:43 +000033625 done
cristy3ed852e2009-09-05 21:47:34 +000033626IFS=$as_save_IFS
33627
33628 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
33629 ;;
33630esac
33631fi
33632ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
33633if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033635$as_echo "$ILBMDecodeDelegate" >&6; }
33636else
cristy8b350f62009-11-15 23:12:43 +000033637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033638$as_echo "no" >&6; }
33639fi
33640
33641
33642# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
33643set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033645$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033646if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033647 $as_echo_n "(cached) " >&6
33648else
33649 case $ILBMEncodeDelegate in
33650 [\\/]* | ?:[\\/]*)
33651 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
33652 ;;
33653 *)
33654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33655for as_dir in $PATH
33656do
33657 IFS=$as_save_IFS
33658 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033659 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033661 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033663 break 2
33664 fi
33665done
cristy8b350f62009-11-15 23:12:43 +000033666 done
cristy3ed852e2009-09-05 21:47:34 +000033667IFS=$as_save_IFS
33668
33669 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
33670 ;;
33671esac
33672fi
33673ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
33674if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033676$as_echo "$ILBMEncodeDelegate" >&6; }
33677else
cristy8b350f62009-11-15 23:12:43 +000033678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033679$as_echo "no" >&6; }
33680fi
33681
33682
cristy71f53d52013-04-27 13:33:59 +000033683# Extract the first word of ""$JXRDecodeDelegateDefault"", so it can be a program name with args.
33684set dummy "$JXRDecodeDelegateDefault"; ac_word=$2
33685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33686$as_echo_n "checking for $ac_word... " >&6; }
33687if ${ac_cv_path_JXRDecodeDelegate+:} false; then :
33688 $as_echo_n "(cached) " >&6
33689else
33690 case $JXRDecodeDelegate in
33691 [\\/]* | ?:[\\/]*)
33692 ac_cv_path_JXRDecodeDelegate="$JXRDecodeDelegate" # Let the user override the test with a path.
33693 ;;
33694 *)
33695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33696for as_dir in $PATH
33697do
33698 IFS=$as_save_IFS
33699 test -z "$as_dir" && as_dir=.
33700 for ac_exec_ext in '' $ac_executable_extensions; do
33701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33702 ac_cv_path_JXRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33704 break 2
33705 fi
33706done
33707 done
33708IFS=$as_save_IFS
33709
33710 test -z "$ac_cv_path_JXRDecodeDelegate" && ac_cv_path_JXRDecodeDelegate=""$JXRDecodeDelegateDefault""
33711 ;;
33712esac
33713fi
33714JXRDecodeDelegate=$ac_cv_path_JXRDecodeDelegate
33715if test -n "$JXRDecodeDelegate"; then
33716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXRDecodeDelegate" >&5
33717$as_echo "$JXRDecodeDelegate" >&6; }
33718else
33719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33720$as_echo "no" >&6; }
33721fi
33722
33723
33724# Extract the first word of ""$JXREncodeDelegateDefault"", so it can be a program name with args.
33725set dummy "$JXREncodeDelegateDefault"; ac_word=$2
33726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33727$as_echo_n "checking for $ac_word... " >&6; }
33728if ${ac_cv_path_JXREncodeDelegate+:} false; then :
33729 $as_echo_n "(cached) " >&6
33730else
33731 case $JXREncodeDelegate in
33732 [\\/]* | ?:[\\/]*)
33733 ac_cv_path_JXREncodeDelegate="$JXREncodeDelegate" # Let the user override the test with a path.
33734 ;;
33735 *)
33736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33737for as_dir in $PATH
33738do
33739 IFS=$as_save_IFS
33740 test -z "$as_dir" && as_dir=.
33741 for ac_exec_ext in '' $ac_executable_extensions; do
33742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33743 ac_cv_path_JXREncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33745 break 2
33746 fi
33747done
33748 done
33749IFS=$as_save_IFS
33750
33751 test -z "$ac_cv_path_JXREncodeDelegate" && ac_cv_path_JXREncodeDelegate=""$JXREncodeDelegateDefault""
33752 ;;
33753esac
33754fi
33755JXREncodeDelegate=$ac_cv_path_JXREncodeDelegate
33756if test -n "$JXREncodeDelegate"; then
33757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXREncodeDelegate" >&5
33758$as_echo "$JXREncodeDelegate" >&6; }
33759else
33760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33761$as_echo "no" >&6; }
33762fi
33763
33764
cristy3ed852e2009-09-05 21:47:34 +000033765# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
33766set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033768$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033769if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033770 $as_echo_n "(cached) " >&6
33771else
33772 case $LPDelegate in
33773 [\\/]* | ?:[\\/]*)
33774 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
33775 ;;
33776 *)
33777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33778for as_dir in $PATH
33779do
33780 IFS=$as_save_IFS
33781 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033782 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033784 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033786 break 2
33787 fi
33788done
cristy8b350f62009-11-15 23:12:43 +000033789 done
cristy3ed852e2009-09-05 21:47:34 +000033790IFS=$as_save_IFS
33791
33792 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
33793 ;;
33794esac
33795fi
33796LPDelegate=$ac_cv_path_LPDelegate
33797if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033799$as_echo "$LPDelegate" >&6; }
33800else
cristy8b350f62009-11-15 23:12:43 +000033801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033802$as_echo "no" >&6; }
33803fi
33804
33805
33806# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
33807set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033809$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033810if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033811 $as_echo_n "(cached) " >&6
33812else
33813 case $LPRDelegate in
33814 [\\/]* | ?:[\\/]*)
33815 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
33816 ;;
33817 *)
33818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33819for as_dir in $PATH
33820do
33821 IFS=$as_save_IFS
33822 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033823 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033825 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033827 break 2
33828 fi
33829done
cristy8b350f62009-11-15 23:12:43 +000033830 done
cristy3ed852e2009-09-05 21:47:34 +000033831IFS=$as_save_IFS
33832
33833 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
33834 ;;
33835esac
33836fi
33837LPRDelegate=$ac_cv_path_LPRDelegate
33838if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033840$as_echo "$LPRDelegate" >&6; }
33841else
cristy8b350f62009-11-15 23:12:43 +000033842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033843$as_echo "no" >&6; }
33844fi
33845
33846
cristy3ed852e2009-09-05 21:47:34 +000033847# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
33848set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033850$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033851if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033852 $as_echo_n "(cached) " >&6
33853else
33854 case $LaunchDelegate in
33855 [\\/]* | ?:[\\/]*)
33856 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
33857 ;;
33858 *)
33859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33860for as_dir in $PATH
33861do
33862 IFS=$as_save_IFS
33863 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033864 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033866 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033868 break 2
33869 fi
33870done
cristy8b350f62009-11-15 23:12:43 +000033871 done
cristy3ed852e2009-09-05 21:47:34 +000033872IFS=$as_save_IFS
33873
33874 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
33875 ;;
33876esac
33877fi
33878LaunchDelegate=$ac_cv_path_LaunchDelegate
33879if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033881$as_echo "$LaunchDelegate" >&6; }
33882else
cristy8b350f62009-11-15 23:12:43 +000033883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033884$as_echo "no" >&6; }
33885fi
33886
33887
33888# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
33889set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033891$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033892if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033893 $as_echo_n "(cached) " >&6
33894else
33895 case $MANDelegate in
33896 [\\/]* | ?:[\\/]*)
33897 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
33898 ;;
33899 *)
33900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33901for as_dir in $PATH
33902do
33903 IFS=$as_save_IFS
33904 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033905 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033907 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033909 break 2
33910 fi
33911done
cristy8b350f62009-11-15 23:12:43 +000033912 done
cristy3ed852e2009-09-05 21:47:34 +000033913IFS=$as_save_IFS
33914
33915 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
33916 ;;
33917esac
33918fi
33919MANDelegate=$ac_cv_path_MANDelegate
33920if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033922$as_echo "$MANDelegate" >&6; }
33923else
cristy8b350f62009-11-15 23:12:43 +000033924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033925$as_echo "no" >&6; }
33926fi
33927
33928
cristy66f238e2014-05-16 12:21:48 +000033929# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
33930set dummy "$MogrifyDelegateDefault"; ac_word=$2
33931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33932$as_echo_n "checking for $ac_word... " >&6; }
33933if ${ac_cv_path_MogrifyDelegate+:} false; then :
33934 $as_echo_n "(cached) " >&6
33935else
33936 case $MogrifyDelegate in
33937 [\\/]* | ?:[\\/]*)
33938 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
33939 ;;
33940 *)
33941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33942for as_dir in $PATH
33943do
33944 IFS=$as_save_IFS
33945 test -z "$as_dir" && as_dir=.
33946 for ac_exec_ext in '' $ac_executable_extensions; do
33947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33948 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
33949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33950 break 2
33951 fi
33952done
33953 done
33954IFS=$as_save_IFS
33955
33956 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
33957 ;;
33958esac
33959fi
33960MogrifyDelegate=$ac_cv_path_MogrifyDelegate
33961if test -n "$MogrifyDelegate"; then
33962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
33963$as_echo "$MogrifyDelegate" >&6; }
33964else
33965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33966$as_echo "no" >&6; }
33967fi
33968
33969
cristy3ed852e2009-09-05 21:47:34 +000033970# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33971set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033973$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033974if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033975 $as_echo_n "(cached) " >&6
33976else
33977 case $MPEGDecodeDelegate in
33978 [\\/]* | ?:[\\/]*)
33979 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33980 ;;
33981 *)
33982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33983for as_dir in $PATH
33984do
33985 IFS=$as_save_IFS
33986 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033987 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033989 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033991 break 2
33992 fi
33993done
cristy8b350f62009-11-15 23:12:43 +000033994 done
cristy3ed852e2009-09-05 21:47:34 +000033995IFS=$as_save_IFS
33996
33997 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33998 ;;
33999esac
34000fi
34001MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
34002if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034004$as_echo "$MPEGDecodeDelegate" >&6; }
34005else
cristy8b350f62009-11-15 23:12:43 +000034006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034007$as_echo "no" >&6; }
34008fi
34009
34010
cristy058d15f2014-08-21 18:53:03 +000034011if test "$MPEGDecodeDelegate" = "$MPEGDecodeDelegateDefault" ; then
cristy81ab5af2013-10-06 18:28:39 +000034012 MPEGDecodeDelegateDefault='ffmpeg'
34013 # Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
34014set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
34015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34016$as_echo_n "checking for $ac_word... " >&6; }
34017if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
34018 $as_echo_n "(cached) " >&6
34019else
34020 case $MPEGDecodeDelegate in
34021 [\\/]* | ?:[\\/]*)
34022 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
34023 ;;
34024 *)
34025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34026for as_dir in $PATH
34027do
34028 IFS=$as_save_IFS
34029 test -z "$as_dir" && as_dir=.
34030 for ac_exec_ext in '' $ac_executable_extensions; do
34031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34032 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34034 break 2
34035 fi
34036done
34037 done
34038IFS=$as_save_IFS
34039
34040 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
34041 ;;
34042esac
34043fi
34044MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
34045if test -n "$MPEGDecodeDelegate"; then
34046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
34047$as_echo "$MPEGDecodeDelegate" >&6; }
34048else
34049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34050$as_echo "no" >&6; }
34051fi
34052
34053
34054fi;
cristy3ed852e2009-09-05 21:47:34 +000034055# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
34056set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034058$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034059if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034060 $as_echo_n "(cached) " >&6
34061else
34062 case $MPEGEncodeDelegate in
34063 [\\/]* | ?:[\\/]*)
34064 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
34065 ;;
34066 *)
34067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34068for as_dir in $PATH
34069do
34070 IFS=$as_save_IFS
34071 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034072 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034074 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034076 break 2
34077 fi
34078done
cristy8b350f62009-11-15 23:12:43 +000034079 done
cristy3ed852e2009-09-05 21:47:34 +000034080IFS=$as_save_IFS
34081
34082 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
34083 ;;
34084esac
34085fi
34086MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
34087if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034089$as_echo "$MPEGEncodeDelegate" >&6; }
34090else
cristy8b350f62009-11-15 23:12:43 +000034091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034092$as_echo "no" >&6; }
34093fi
34094
34095
cristy058d15f2014-08-21 18:53:03 +000034096if test "$MPEGEncodeDelegate" = "$MPEGEncodeDelegateDefault" ; then
cristy81ab5af2013-10-06 18:28:39 +000034097 MPEGEncodeDelegateDefault='ffmpeg'
34098 # Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
34099set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
34100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34101$as_echo_n "checking for $ac_word... " >&6; }
34102if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
34103 $as_echo_n "(cached) " >&6
34104else
34105 case $MPEGEncodeDelegate in
34106 [\\/]* | ?:[\\/]*)
34107 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
34108 ;;
34109 *)
34110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34111for as_dir in $PATH
34112do
34113 IFS=$as_save_IFS
34114 test -z "$as_dir" && as_dir=.
34115 for ac_exec_ext in '' $ac_executable_extensions; do
34116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34117 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34119 break 2
34120 fi
34121done
34122 done
34123IFS=$as_save_IFS
34124
34125 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
34126 ;;
34127esac
34128fi
34129MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
34130if test -n "$MPEGEncodeDelegate"; then
34131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
34132$as_echo "$MPEGEncodeDelegate" >&6; }
34133else
34134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34135$as_echo "no" >&6; }
34136fi
34137
34138
34139fi;
cristy935c86e2010-06-05 23:50:07 +000034140# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
34141set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
34142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34143$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034144if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000034145 $as_echo_n "(cached) " >&6
34146else
34147 case $MrSIDDecodeDelegate in
34148 [\\/]* | ?:[\\/]*)
34149 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
34150 ;;
34151 *)
34152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34153for as_dir in $PATH
34154do
34155 IFS=$as_save_IFS
34156 test -z "$as_dir" && as_dir=.
34157 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy935c86e2010-06-05 23:50:07 +000034159 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34161 break 2
34162 fi
34163done
34164 done
34165IFS=$as_save_IFS
34166
34167 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
34168 ;;
34169esac
34170fi
34171MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
34172if test -n "$MrSIDDecodeDelegate"; then
34173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
34174$as_echo "$MrSIDDecodeDelegate" >&6; }
34175else
34176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34177$as_echo "no" >&6; }
34178fi
34179
34180
cristy3ed852e2009-09-05 21:47:34 +000034181# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
34182set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034184$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034185if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034186 $as_echo_n "(cached) " >&6
34187else
34188 case $MVDelegate in
34189 [\\/]* | ?:[\\/]*)
34190 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
34191 ;;
34192 *)
34193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34194for as_dir in $PATH
34195do
34196 IFS=$as_save_IFS
34197 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034198 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034200 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034202 break 2
34203 fi
34204done
cristy8b350f62009-11-15 23:12:43 +000034205 done
cristy3ed852e2009-09-05 21:47:34 +000034206IFS=$as_save_IFS
34207
34208 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
34209 ;;
34210esac
34211fi
34212MVDelegate=$ac_cv_path_MVDelegate
34213if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034215$as_echo "$MVDelegate" >&6; }
34216else
cristy8b350f62009-11-15 23:12:43 +000034217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034218$as_echo "no" >&6; }
34219fi
34220
34221
34222# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
34223set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034225$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034226if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034227 $as_echo_n "(cached) " >&6
34228else
34229 case $PCLDelegate in
34230 [\\/]* | ?:[\\/]*)
34231 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
34232 ;;
34233 *)
34234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34235for as_dir in $PATH
34236do
34237 IFS=$as_save_IFS
34238 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034239 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034241 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034243 break 2
34244 fi
34245done
cristy8b350f62009-11-15 23:12:43 +000034246 done
cristy3ed852e2009-09-05 21:47:34 +000034247IFS=$as_save_IFS
34248
34249 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
34250 ;;
34251esac
34252fi
34253PCLDelegate=$ac_cv_path_PCLDelegate
34254if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034256$as_echo "$PCLDelegate" >&6; }
34257else
cristy8b350f62009-11-15 23:12:43 +000034258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034259$as_echo "no" >&6; }
34260fi
34261
34262
34263# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
34264set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034266$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034267if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034268 $as_echo_n "(cached) " >&6
34269else
34270 case $PGPDecodeDelegate in
34271 [\\/]* | ?:[\\/]*)
34272 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
34273 ;;
34274 *)
34275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34276for as_dir in $PATH
34277do
34278 IFS=$as_save_IFS
34279 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034280 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034282 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034284 break 2
34285 fi
34286done
cristy8b350f62009-11-15 23:12:43 +000034287 done
cristy3ed852e2009-09-05 21:47:34 +000034288IFS=$as_save_IFS
34289
34290 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
34291 ;;
34292esac
34293fi
34294PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
34295if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034297$as_echo "$PGPDecodeDelegate" >&6; }
34298else
cristy8b350f62009-11-15 23:12:43 +000034299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034300$as_echo "no" >&6; }
34301fi
34302
34303
34304# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
34305set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034307$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034308if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034309 $as_echo_n "(cached) " >&6
34310else
34311 case $POVDelegate in
34312 [\\/]* | ?:[\\/]*)
34313 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
34314 ;;
34315 *)
34316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34317for as_dir in $PATH
34318do
34319 IFS=$as_save_IFS
34320 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034321 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034323 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034325 break 2
34326 fi
34327done
cristy8b350f62009-11-15 23:12:43 +000034328 done
cristy3ed852e2009-09-05 21:47:34 +000034329IFS=$as_save_IFS
34330
34331 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
34332 ;;
34333esac
34334fi
34335POVDelegate=$ac_cv_path_POVDelegate
34336if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034338$as_echo "$POVDelegate" >&6; }
34339else
cristy8b350f62009-11-15 23:12:43 +000034340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034341$as_echo "no" >&6; }
34342fi
34343
34344
34345for ac_prog in gsx gsc "$PSDelegateDefault"
34346do
34347 # Extract the first word of "$ac_prog", so it can be a program name with args.
34348set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034350$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034351if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034352 $as_echo_n "(cached) " >&6
34353else
34354 case $PSDelegate in
34355 [\\/]* | ?:[\\/]*)
34356 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
34357 ;;
34358 *)
34359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34360for as_dir in $PATH
34361do
34362 IFS=$as_save_IFS
34363 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034364 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034366 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034368 break 2
34369 fi
34370done
cristy8b350f62009-11-15 23:12:43 +000034371 done
cristy3ed852e2009-09-05 21:47:34 +000034372IFS=$as_save_IFS
34373
34374 ;;
34375esac
34376fi
34377PSDelegate=$ac_cv_path_PSDelegate
34378if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034380$as_echo "$PSDelegate" >&6; }
34381else
cristy8b350f62009-11-15 23:12:43 +000034382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034383$as_echo "no" >&6; }
34384fi
34385
34386
34387 test -n "$PSDelegate" && break
34388done
34389test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
34390
34391# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
34392set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034394$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034395if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034396 $as_echo_n "(cached) " >&6
34397else
34398 case $RLEEncodeDelegate in
34399 [\\/]* | ?:[\\/]*)
34400 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
34401 ;;
34402 *)
34403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34404for as_dir in $PATH
34405do
34406 IFS=$as_save_IFS
34407 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034408 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034410 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034412 break 2
34413 fi
34414done
cristy8b350f62009-11-15 23:12:43 +000034415 done
cristy3ed852e2009-09-05 21:47:34 +000034416IFS=$as_save_IFS
34417
34418 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
34419 ;;
34420esac
34421fi
34422RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
34423if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034425$as_echo "$RLEEncodeDelegate" >&6; }
34426else
cristy8b350f62009-11-15 23:12:43 +000034427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034428$as_echo "no" >&6; }
34429fi
34430
34431
34432# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
34433set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034435$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034436if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034437 $as_echo_n "(cached) " >&6
34438else
34439 case $RMDelegate in
34440 [\\/]* | ?:[\\/]*)
34441 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
34442 ;;
34443 *)
34444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34445for as_dir in $PATH
34446do
34447 IFS=$as_save_IFS
34448 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034449 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034451 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034453 break 2
34454 fi
34455done
cristy8b350f62009-11-15 23:12:43 +000034456 done
cristy3ed852e2009-09-05 21:47:34 +000034457IFS=$as_save_IFS
34458
34459 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
34460 ;;
34461esac
34462fi
34463RMDelegate=$ac_cv_path_RMDelegate
34464if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034466$as_echo "$RMDelegate" >&6; }
34467else
cristy8b350f62009-11-15 23:12:43 +000034468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034469$as_echo "no" >&6; }
34470fi
34471
34472
cristy4689cf02010-02-17 21:15:45 +000034473# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
34474set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
34475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34476$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034477if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000034478 $as_echo_n "(cached) " >&6
34479else
34480 case $RSVGDecodeDelegate in
34481 [\\/]* | ?:[\\/]*)
34482 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
34483 ;;
34484 *)
34485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34486for as_dir in $PATH
34487do
34488 IFS=$as_save_IFS
34489 test -z "$as_dir" && as_dir=.
34490 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy4689cf02010-02-17 21:15:45 +000034492 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34494 break 2
34495 fi
34496done
34497 done
34498IFS=$as_save_IFS
34499
34500 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
34501 ;;
34502esac
34503fi
34504RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
34505if test -n "$RSVGDecodeDelegate"; then
34506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
34507$as_echo "$RSVGDecodeDelegate" >&6; }
34508else
34509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34510$as_echo "no" >&6; }
34511fi
34512
34513
cristy3ed852e2009-09-05 21:47:34 +000034514# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
34515set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034517$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034518if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034519 $as_echo_n "(cached) " >&6
34520else
34521 case $SCANDecodeDelegate in
34522 [\\/]* | ?:[\\/]*)
34523 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
34524 ;;
34525 *)
34526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34527for as_dir in $PATH
34528do
34529 IFS=$as_save_IFS
34530 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034531 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034533 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034535 break 2
34536 fi
34537done
cristy8b350f62009-11-15 23:12:43 +000034538 done
cristy3ed852e2009-09-05 21:47:34 +000034539IFS=$as_save_IFS
34540
34541 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
34542 ;;
34543esac
34544fi
34545SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
34546if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034548$as_echo "$SCANDecodeDelegate" >&6; }
34549else
cristy8b350f62009-11-15 23:12:43 +000034550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034551$as_echo "no" >&6; }
34552fi
34553
34554
cristyec6934f2012-08-14 18:38:40 +000034555# Extract the first word of ""$SVGDecodeDelegateDefault"", so it can be a program name with args.
34556set dummy "$SVGDecodeDelegateDefault"; ac_word=$2
34557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34558$as_echo_n "checking for $ac_word... " >&6; }
34559if ${ac_cv_path_SVGDecodeDelegate+:} false; then :
34560 $as_echo_n "(cached) " >&6
34561else
34562 case $SVGDecodeDelegate in
34563 [\\/]* | ?:[\\/]*)
34564 ac_cv_path_SVGDecodeDelegate="$SVGDecodeDelegate" # Let the user override the test with a path.
34565 ;;
34566 *)
34567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34568for as_dir in $PATH
34569do
34570 IFS=$as_save_IFS
34571 test -z "$as_dir" && as_dir=.
34572 for ac_exec_ext in '' $ac_executable_extensions; do
34573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34574 ac_cv_path_SVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34576 break 2
34577 fi
34578done
34579 done
34580IFS=$as_save_IFS
34581
34582 test -z "$ac_cv_path_SVGDecodeDelegate" && ac_cv_path_SVGDecodeDelegate=""$SVGDecodeDelegateDefault""
34583 ;;
34584esac
34585fi
34586SVGDecodeDelegate=$ac_cv_path_SVGDecodeDelegate
34587if test -n "$SVGDecodeDelegate"; then
34588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVGDecodeDelegate" >&5
34589$as_echo "$SVGDecodeDelegate" >&6; }
34590else
34591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34592$as_echo "no" >&6; }
34593fi
34594
34595
cristy3ed852e2009-09-05 21:47:34 +000034596# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
34597set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034599$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034600if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034601 $as_echo_n "(cached) " >&6
34602else
34603 case $TXTDelegate in
34604 [\\/]* | ?:[\\/]*)
34605 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
34606 ;;
34607 *)
34608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34609for as_dir in $PATH
34610do
34611 IFS=$as_save_IFS
34612 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034613 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034615 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034617 break 2
34618 fi
34619done
cristy8b350f62009-11-15 23:12:43 +000034620 done
cristy3ed852e2009-09-05 21:47:34 +000034621IFS=$as_save_IFS
34622
34623 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
34624 ;;
34625esac
34626fi
34627TXTDelegate=$ac_cv_path_TXTDelegate
34628if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034630$as_echo "$TXTDelegate" >&6; }
34631else
cristy8b350f62009-11-15 23:12:43 +000034632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034633$as_echo "no" >&6; }
34634fi
34635
34636
cristy5ac9ac82010-07-29 13:24:24 +000034637# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
34638set dummy "$UniconvertorDelegateDefault"; ac_word=$2
34639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34640$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034641if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000034642 $as_echo_n "(cached) " >&6
34643else
34644 case $UniconvertorDelegate in
34645 [\\/]* | ?:[\\/]*)
34646 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
34647 ;;
34648 *)
34649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34650for as_dir in $PATH
34651do
34652 IFS=$as_save_IFS
34653 test -z "$as_dir" && as_dir=.
34654 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy5ac9ac82010-07-29 13:24:24 +000034656 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
34657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34658 break 2
34659 fi
34660done
34661 done
34662IFS=$as_save_IFS
34663
34664 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
34665 ;;
34666esac
34667fi
34668UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
34669if test -n "$UniconvertorDelegate"; then
34670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
34671$as_echo "$UniconvertorDelegate" >&6; }
34672else
34673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34674$as_echo "no" >&6; }
34675fi
34676
34677
cristy86e86092013-08-04 17:43:57 +000034678# Extract the first word of ""$WebPDecodeDelegateDefault"", so it can be a program name with args.
34679set dummy "$WebPDecodeDelegateDefault"; ac_word=$2
34680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34681$as_echo_n "checking for $ac_word... " >&6; }
34682if ${ac_cv_path_WebPDecodeDelegate+:} false; then :
34683 $as_echo_n "(cached) " >&6
34684else
34685 case $WebPDecodeDelegate in
34686 [\\/]* | ?:[\\/]*)
34687 ac_cv_path_WebPDecodeDelegate="$WebPDecodeDelegate" # Let the user override the test with a path.
34688 ;;
34689 *)
34690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34691for as_dir in $PATH
34692do
34693 IFS=$as_save_IFS
34694 test -z "$as_dir" && as_dir=.
34695 for ac_exec_ext in '' $ac_executable_extensions; do
34696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34697 ac_cv_path_WebPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34699 break 2
34700 fi
34701done
34702 done
34703IFS=$as_save_IFS
34704
34705 test -z "$ac_cv_path_WebPDecodeDelegate" && ac_cv_path_WebPDecodeDelegate=""$WebPDecodeDelegateDefault""
34706 ;;
34707esac
34708fi
34709WebPDecodeDelegate=$ac_cv_path_WebPDecodeDelegate
34710if test -n "$WebPDecodeDelegate"; then
34711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WebPDecodeDelegate" >&5
34712$as_echo "$WebPDecodeDelegate" >&6; }
34713else
34714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34715$as_echo "no" >&6; }
34716fi
34717
34718
34719# Extract the first word of ""$WebPEncodeDelegateDefault"", so it can be a program name with args.
34720set dummy "$WebPEncodeDelegateDefault"; ac_word=$2
34721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34722$as_echo_n "checking for $ac_word... " >&6; }
34723if ${ac_cv_path_WebPEncodeDelegate+:} false; then :
34724 $as_echo_n "(cached) " >&6
34725else
34726 case $WebPEncodeDelegate in
34727 [\\/]* | ?:[\\/]*)
34728 ac_cv_path_WebPEncodeDelegate="$WebPEncodeDelegate" # Let the user override the test with a path.
34729 ;;
34730 *)
34731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34732for as_dir in $PATH
34733do
34734 IFS=$as_save_IFS
34735 test -z "$as_dir" && as_dir=.
34736 for ac_exec_ext in '' $ac_executable_extensions; do
34737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34738 ac_cv_path_WebPEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34740 break 2
34741 fi
34742done
34743 done
34744IFS=$as_save_IFS
34745
34746 test -z "$ac_cv_path_WebPEncodeDelegate" && ac_cv_path_WebPEncodeDelegate=""$WebPEncodeDelegateDefault""
34747 ;;
34748esac
34749fi
34750WebPEncodeDelegate=$ac_cv_path_WebPEncodeDelegate
34751if test -n "$WebPEncodeDelegate"; then
34752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WebPEncodeDelegate" >&5
34753$as_echo "$WebPEncodeDelegate" >&6; }
34754else
34755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34756$as_echo "no" >&6; }
34757fi
34758
34759
cristy3ed852e2009-09-05 21:47:34 +000034760# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
34761set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034763$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034764if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034765 $as_echo_n "(cached) " >&6
34766else
34767 case $WMFDecodeDelegate in
34768 [\\/]* | ?:[\\/]*)
34769 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
34770 ;;
34771 *)
34772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34773for as_dir in $PATH
34774do
34775 IFS=$as_save_IFS
34776 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034777 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034779 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034781 break 2
34782 fi
34783done
cristy8b350f62009-11-15 23:12:43 +000034784 done
cristy3ed852e2009-09-05 21:47:34 +000034785IFS=$as_save_IFS
34786
34787 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
34788 ;;
34789esac
34790fi
34791WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
34792if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034794$as_echo "$WMFDecodeDelegate" >&6; }
34795else
cristy8b350f62009-11-15 23:12:43 +000034796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034797$as_echo "no" >&6; }
34798fi
34799
34800
34801# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
34802set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034804$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034805if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034806 $as_echo_n "(cached) " >&6
34807else
34808 case $WWWDecodeDelegate in
34809 [\\/]* | ?:[\\/]*)
34810 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
34811 ;;
34812 *)
34813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34814for as_dir in $PATH
34815do
34816 IFS=$as_save_IFS
34817 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034818 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034820 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034822 break 2
34823 fi
34824done
cristy8b350f62009-11-15 23:12:43 +000034825 done
cristy3ed852e2009-09-05 21:47:34 +000034826IFS=$as_save_IFS
34827
34828 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
34829 ;;
34830esac
34831fi
34832WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
34833if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034835$as_echo "$WWWDecodeDelegate" >&6; }
34836else
cristy8b350f62009-11-15 23:12:43 +000034837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034838$as_echo "no" >&6; }
34839fi
34840
34841
34842# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
34843set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034845$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034846if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034847 $as_echo_n "(cached) " >&6
34848else
34849 case $XPSDelegate in
34850 [\\/]* | ?:[\\/]*)
34851 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
34852 ;;
34853 *)
34854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34855for as_dir in $PATH
34856do
34857 IFS=$as_save_IFS
34858 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034859 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034861 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034863 break 2
34864 fi
34865done
cristy8b350f62009-11-15 23:12:43 +000034866 done
cristy3ed852e2009-09-05 21:47:34 +000034867IFS=$as_save_IFS
34868
34869 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
34870 ;;
34871esac
34872fi
34873XPSDelegate=$ac_cv_path_XPSDelegate
34874if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034876$as_echo "$XPSDelegate" >&6; }
34877else
cristy8b350f62009-11-15 23:12:43 +000034878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034879$as_echo "no" >&6; }
34880fi
34881
34882
34883# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
34884set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034886$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034887if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034888 $as_echo_n "(cached) " >&6
34889else
34890 case $ZipDelegate in
34891 [\\/]* | ?:[\\/]*)
34892 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
34893 ;;
34894 *)
34895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34896for as_dir in $PATH
34897do
34898 IFS=$as_save_IFS
34899 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034900 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034902 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034904 break 2
34905 fi
34906done
cristy8b350f62009-11-15 23:12:43 +000034907 done
cristy3ed852e2009-09-05 21:47:34 +000034908IFS=$as_save_IFS
34909
34910 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
34911 ;;
34912esac
34913fi
34914ZipDelegate=$ac_cv_path_ZipDelegate
34915if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034917$as_echo "$ZipDelegate" >&6; }
34918else
cristy8b350f62009-11-15 23:12:43 +000034919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034920$as_echo "no" >&6; }
34921fi
34922
34923
34924
34925# Prefer lpr to lp; lp needs options tacked on.
34926if test "$LPRDelegate" != no; then
34927 PrintDelegate="$LPRDelegate"
34928else
34929 PrintDelegate="$LPDelegate -c -s"
34930fi
34931
34932
34933# Installed ImageMagick utiltity paths
34934ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
34935DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
34936MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
34937
34938# Set delegate booleans
cristy81ab5af2013-10-06 18:28:39 +000034939have_avconv='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_avconv='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034940have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
34941have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
34942have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000034943have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034944have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
34945have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034946have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
34947
34948#
34949# Test for font directories
34950#
34951type_include_files=''
34952
cristy430a7312010-01-21 20:44:04 +000034953# Dejavu fonts.
34954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
34955$as_echo_n "checking for Dejavu fonts directory... " >&6; }
34956dejavu_font_dir=''
34957if test "${with_dejavu_font_dir}" != 'default'; then
34958 dejavu_font_dir="${with_dejavu_font_dir}/"
34959else
34960 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
34961 if test -f "${font_dir}DejaVuSerif.ttf"; then
34962 dejavu_font_dir="${font_dir}"
34963 break 1
34964 fi
34965 done
34966fi
34967if test "${dejavu_font_dir}x" != 'x'; then
34968 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
cristyad38abe2012-12-23 23:03:21 +000034969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
34970$as_echo "$dejavu_font_dir" >&6; }
cristy430a7312010-01-21 20:44:04 +000034971else
cristyad38abe2012-12-23 23:03:21 +000034972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
34973$as_echo "not found!" >&6; };
cristy430a7312010-01-21 20:44:04 +000034974fi
34975
34976
cristy3ed852e2009-09-05 21:47:34 +000034977# Windows
34978windows_font_dir=''
34979if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
34980 windows_font_dir="${with_windows_font_dir}/"
34981fi
cristy430a7312010-01-21 20:44:04 +000034982if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034983 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
34984 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
34985 fi
34986 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
34987 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
34988 fi
34989 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
34990 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
34991 fi
34992fi
cristy430a7312010-01-21 20:44:04 +000034993if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034994 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
34995fi
34996
34997
34998# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000034999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000035000$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
35001ghostscript_font_dir=''
35002if test "${with_gs_font_dir}" != 'default'; then
35003 ghostscript_font_dir="${with_gs_font_dir}/"
35004else
35005 if test "${native_win32_build}" = 'yes'; then
35006 # Native Windows Build
35007 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
35008 if test -f "${font_dir}a010013l.pfb"; then
35009 ghostscript_font_dir="$font_dir"
35010 break 1
35011 fi
35012 done
35013 if test "${PSDelegate}" != 'gswin32c'; then
35014 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
35015 fi
35016 else
35017 # Linux / Mac OS X / Unix Build
35018 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
35019 if test -f "${font_dir}a010013l.pfb"; then
35020 ghostscript_font_dir="${font_dir}"
35021 break 1
35022 fi
35023 done
35024 if test "${ghostscript_font_dir}x" = 'x'; then
35025 if test "$PSDelegate" != 'gs'; then
35026 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
35027 fi
35028 fi
35029 fi
35030fi
35031if test "${ghostscript_font_dir}x" != 'x'; then
35032 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristyad38abe2012-12-23 23:03:21 +000035033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
35034$as_echo "$ghostscript_font_dir" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035035else
cristyad38abe2012-12-23 23:03:21 +000035036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
35037$as_echo "not found!" >&6; };
cristy3ed852e2009-09-05 21:47:34 +000035038fi
35039
35040case "${build_os}" in
35041 mingw* )
35042 PSDelegate=`$WinPathScript "$PSDelegate" 1`
35043 ;;
35044esac
35045
35046
35047
35048#
35049# Handle case where user doesn't want frozen paths
35050#
35051if test "$with_frozenpaths" != 'yes'; then
35052 # Re-set delegate definitions to default (no paths)
35053 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035054 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
35055 BZIPDelegate="$BZIPDelegateDefault"
35056 BrowseDelegate="$BrowseDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035057 CatDelegate="$CatDelegateDefault"
35058 ConvertDelegate="$ConvertDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000035059 DisplayDelegate="$DisplayDelegateDefault"
35060 DNGDecodeDelegate="$DNGDecodeDelegateDefault"
cristy66f238e2014-05-16 12:21:48 +000035061 DOCDecodeDelegate="$DOCDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035062 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
35063 EchoDelegate="$EchoDelegateDefault"
35064 EditorDelegate="$EditorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035065 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000035066 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035067 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
35068 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
35069 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
35070 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000035071 JXRDecodeDelegate="$JXRDecodeDelegateDefault"
35072 JXREncodeDelegate="$JXREncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035073 LPDelegate="$LPDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035074 LaunchDelegate="$LaunchDelegateDefault"
35075 MANDelegate="$MANDelegateDefault"
35076 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
35077 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035078 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000035079 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
35080 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035081 PCLDelegate="$PCLDelegateDefault"
35082 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
35083 POVDelegate="$POVDelegateDefault"
35084 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035085 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
35086 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000035087 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035088 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
cristyec6934f2012-08-14 18:38:40 +000035089 SVGDecodeDelegate="$SVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035090 ShowImageDelegate="$ShowImageDelegateDefault"
35091 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000035092 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy86e86092013-08-04 17:43:57 +000035093 WebPDecodeDelegate="$WebPDecodeDelegateDefault"
35094 WebPEncodeDelegate="$WebPEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035095 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
35096 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
35097 XPSDelegate="$XPSDelegateDefault"
35098 ZipDelegate="$ZipDelegateDefault"
35099fi
35100
35101# Delegate substitutions
35102
35103
35104
35105
35106
35107
35108
35109
35110
35111
35112
35113
35114
35115
35116
35117
35118
35119
35120
35121
35122
35123
35124
35125
35126
35127
35128
35129
35130
35131
35132
35133
35134
35135
35136
35137
35138
35139
35140
35141
cristy71f53d52013-04-27 13:33:59 +000035142
35143
cristy3ed852e2009-09-05 21:47:34 +000035144#
35145# RPM support.
35146#
35147RPM=''
35148for ac_prog in gnutar gtar tar
35149do
35150 # Extract the first word of "$ac_prog", so it can be a program name with args.
35151set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035153$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035154if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035155 $as_echo_n "(cached) " >&6
35156else
35157 if test -n "$TAR"; then
35158 ac_cv_prog_TAR="$TAR" # Let the user override the test.
35159else
35160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35161for as_dir in $PATH
35162do
35163 IFS=$as_save_IFS
35164 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035165 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035167 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035169 break 2
35170 fi
35171done
cristy8b350f62009-11-15 23:12:43 +000035172 done
cristy3ed852e2009-09-05 21:47:34 +000035173IFS=$as_save_IFS
35174
35175fi
35176fi
35177TAR=$ac_cv_prog_TAR
35178if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000035179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000035180$as_echo "$TAR" >&6; }
35181else
cristy8b350f62009-11-15 23:12:43 +000035182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035183$as_echo "no" >&6; }
35184fi
35185
35186
35187 test -n "$TAR" && break
35188done
35189
35190for ac_prog in perl
35191do
35192 # Extract the first word of "$ac_prog", so it can be a program name with args.
35193set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035195$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035196if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035197 $as_echo_n "(cached) " >&6
35198else
35199 if test -n "$PERL"; then
35200 ac_cv_prog_PERL="$PERL" # Let the user override the test.
35201else
35202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35203for as_dir in $PATH
35204do
35205 IFS=$as_save_IFS
35206 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035207 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035209 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035211 break 2
35212 fi
35213done
cristy8b350f62009-11-15 23:12:43 +000035214 done
cristy3ed852e2009-09-05 21:47:34 +000035215IFS=$as_save_IFS
35216
35217fi
35218fi
35219PERL=$ac_cv_prog_PERL
35220if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000035221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035222$as_echo "$PERL" >&6; }
35223else
cristy8b350f62009-11-15 23:12:43 +000035224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035225$as_echo "no" >&6; }
35226fi
35227
35228
35229 test -n "$PERL" && break
35230done
35231
35232for ac_prog in rpmbuild rpm
35233do
35234 # Extract the first word of "$ac_prog", so it can be a program name with args.
35235set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035237$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035238if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035239 $as_echo_n "(cached) " >&6
35240else
35241 if test -n "$RPM"; then
35242 ac_cv_prog_RPM="$RPM" # Let the user override the test.
35243else
35244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35245for as_dir in $PATH
35246do
35247 IFS=$as_save_IFS
35248 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035249 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035251 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035253 break 2
35254 fi
35255done
cristy8b350f62009-11-15 23:12:43 +000035256 done
cristy3ed852e2009-09-05 21:47:34 +000035257IFS=$as_save_IFS
35258
35259fi
35260fi
35261RPM=$ac_cv_prog_RPM
35262if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000035263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000035264$as_echo "$RPM" >&6; }
35265else
cristy8b350f62009-11-15 23:12:43 +000035266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035267$as_echo "no" >&6; }
35268fi
35269
35270
35271 test -n "$RPM" && break
35272done
35273
35274
cristy73bd4a52010-10-05 11:24:23 +000035275ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
35276
35277
35278AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
35279
35280
35281AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
35282
35283
35284AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
35285
35286
35287 if test "x$RPM" != "x" ; then
35288 RPM_DELEGATE_TRUE=
35289 RPM_DELEGATE_FALSE='#'
35290else
35291 RPM_DELEGATE_TRUE='#'
35292 RPM_DELEGATE_FALSE=
35293fi
35294
cristy3ed852e2009-09-05 21:47:34 +000035295
35296#
35297# 7ZIP support (http://p7zip.sourceforge.net/)
35298#
35299P7ZIP=''
35300for ac_prog in 7za
35301do
35302 # Extract the first word of "$ac_prog", so it can be a program name with args.
35303set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035305$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035306if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035307 $as_echo_n "(cached) " >&6
35308else
35309 if test -n "$P7ZIP"; then
35310 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
35311else
35312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35313for as_dir in $PATH
35314do
35315 IFS=$as_save_IFS
35316 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035317 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035319 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035321 break 2
35322 fi
35323done
cristy8b350f62009-11-15 23:12:43 +000035324 done
cristy3ed852e2009-09-05 21:47:34 +000035325IFS=$as_save_IFS
35326
35327fi
35328fi
35329P7ZIP=$ac_cv_prog_P7ZIP
35330if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000035331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000035332$as_echo "$P7ZIP" >&6; }
35333else
cristy8b350f62009-11-15 23:12:43 +000035334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035335$as_echo "no" >&6; }
35336fi
35337
35338
35339 test -n "$P7ZIP" && break
35340done
35341
35342
cristy73bd4a52010-10-05 11:24:23 +000035343 if test "x$P7ZIP" != "x" ; then
35344 P7ZIP_DELEGATE_TRUE=
35345 P7ZIP_DELEGATE_FALSE='#'
35346else
35347 P7ZIP_DELEGATE_TRUE='#'
35348 P7ZIP_DELEGATE_FALSE=
35349fi
35350
cristy3ed852e2009-09-05 21:47:34 +000035351
35352#
35353# ZIP support (http://www.info-zip.org/Zip.html)
35354#
35355ZIP=''
35356for ac_prog in zip
35357do
35358 # Extract the first word of "$ac_prog", so it can be a program name with args.
35359set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035361$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035362if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035363 $as_echo_n "(cached) " >&6
35364else
35365 if test -n "$ZIP"; then
35366 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
35367else
35368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35369for as_dir in $PATH
35370do
35371 IFS=$as_save_IFS
35372 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035373 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035375 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035377 break 2
35378 fi
35379done
cristy8b350f62009-11-15 23:12:43 +000035380 done
cristy3ed852e2009-09-05 21:47:34 +000035381IFS=$as_save_IFS
35382
35383fi
35384fi
35385ZIP=$ac_cv_prog_ZIP
35386if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000035387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000035388$as_echo "$ZIP" >&6; }
35389else
cristy8b350f62009-11-15 23:12:43 +000035390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035391$as_echo "no" >&6; }
35392fi
35393
35394
35395 test -n "$ZIP" && break
35396done
35397
35398
cristy73bd4a52010-10-05 11:24:23 +000035399 if test "x$ZIP" != "x" ; then
35400 ZIP_DELEGATE_TRUE=
35401 ZIP_DELEGATE_FALSE='#'
35402else
35403 ZIP_DELEGATE_TRUE='#'
35404 ZIP_DELEGATE_FALSE=
35405fi
35406
cristy3ed852e2009-09-05 21:47:34 +000035407
35408#
35409# GhostPCL related configuration.
35410#
35411PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000035412PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000035413PCLMonoDevice=pbmraw
35414if test -z "$PCLVersion"; then
35415 PCLVersion='unknown'
35416fi
35417if test $have_pcl = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35419$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035421$as_echo_n "checking for PCL... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35423$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035424 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000035425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035426$as_echo_n "checking for pcl color device... " >&6; }
35427 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35428 :
35429 else
35430 PCLColorDevice=ppmraw
35431 fi
cristyad38abe2012-12-23 23:03:21 +000035432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
35433$as_echo "$PCLColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035434
35435 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035437$as_echo_n "checking for pcl CMYK device... " >&6; }
35438 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35439 :
35440 else
35441 PCLCMYKDevice=$PCLColorDevice
35442 fi
cristyad38abe2012-12-23 23:03:21 +000035443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
35444$as_echo "$PCLCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035445
35446 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035448$as_echo_n "checking for pcl mono device... " >&6; }
35449 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35450 :
35451 else
35452 PCLMonoDevice=$PCLColorDevice
35453 fi
cristyad38abe2012-12-23 23:03:21 +000035454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
35455$as_echo "$PCLMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035456fi
35457
35458
35459
35460
35461
35462
35463#
35464# GhostXPS related configuration.
35465#
35466XPSColorDevice=ppmraw
35467XPSCMYKDevice=bmpsep8
35468XPSMonoDevice=pbmraw
35469if test -z "$XPSVersion"; then
35470 XPSVersion='unknown'
35471fi
35472if test $have_xps = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35474$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000035476$as_echo_n "checking for XPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35478$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035479 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035481$as_echo_n "checking for xps color device... " >&6; }
35482 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35483 :
35484 else
35485 XPSColorDevice=ppmraw
35486 fi
cristyad38abe2012-12-23 23:03:21 +000035487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
35488$as_echo "$XPSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035489
35490 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035492$as_echo_n "checking for xps CMYK device... " >&6; }
35493 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35494 :
35495 else
35496 XPSCMYKDevice=$XPSColorDevice
35497 fi
cristyad38abe2012-12-23 23:03:21 +000035498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
35499$as_echo "$XPSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035500
35501 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035503$as_echo_n "checking for xps mono device... " >&6; }
35504 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35505 :
35506 else
35507 XPSMonoDevice=$XPSColorDevice
35508 fi
cristyad38abe2012-12-23 23:03:21 +000035509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
35510$as_echo "$XPSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035511fi
35512
35513
35514
35515
35516
35517
35518#
35519# Ghostscript related configuration.
35520#
cristya97426c2011-02-04 01:41:27 +000035521GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000035522GSColorDevice=pnmraw
35523GSCMYKDevice=pam
35524GSMonoDevice=pbmraw
35525GSPDFDevice=pdfwrite
cristyb096ea52013-10-26 20:56:38 +000035526GSPSDevice=ps2write
cristy3ed852e2009-09-05 21:47:34 +000035527GSEPSDevice=epswrite
35528GSVersion='unknown'
35529if test $have_gs = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35531$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000035533$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35535$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000035537$as_echo_n "checking for Ghostscript version... " >&6; }
35538 if GSVersion=`$PSDelegate --version`; then
35539 :
35540 else
35541 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
35542 fi
cristyad38abe2012-12-23 23:03:21 +000035543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
35544$as_echo "$GSVersion" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035545
35546 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000035547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035548$as_echo_n "checking for gs alpha device... " >&6; }
35549 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35550 :
35551 else
35552 GSAlphaDevice=pnmraw
35553 fi
cristyad38abe2012-12-23 23:03:21 +000035554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
35555$as_echo "$GSAlphaDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035556
35557 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035559$as_echo_n "checking for gs color device... " >&6; }
35560 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35561 :
35562 else
35563 GSColorDevice=pnmraw
35564 fi
cristyad38abe2012-12-23 23:03:21 +000035565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
35566$as_echo "$GSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035567
35568 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035570$as_echo_n "checking for gs CMYK device... " >&6; }
35571 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35572 :
35573 else
35574 GSCMYKDevice=bmpsep8
35575 fi
cristyad38abe2012-12-23 23:03:21 +000035576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
35577$as_echo "$GSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035578
35579 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035581$as_echo_n "checking for gs mono device... " >&6; }
35582 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35583 :
35584 else
35585 GSMonoDevice=$GSColorDevice
35586 fi
cristyad38abe2012-12-23 23:03:21 +000035587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
35588$as_echo "$GSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035589
35590 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000035591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035592$as_echo_n "checking for gs PDF writing device... " >&6; }
35593 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35594 :
35595 else
35596 GSPDFDevice=nodevice
35597 fi
cristyad38abe2012-12-23 23:03:21 +000035598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
35599$as_echo "$GSPDFDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035600
35601 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000035602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035603$as_echo_n "checking for gs PS writing device... " >&6; }
35604 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35605 :
35606 else
35607 GSPSDevice=nodevice
35608 fi
cristyad38abe2012-12-23 23:03:21 +000035609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
35610$as_echo "$GSPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035611
35612 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000035613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035614$as_echo_n "checking for gs EPS writing device... " >&6; }
35615 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35616 :
35617 else
35618 GSEPSDevice=nodevice
35619 fi
cristyad38abe2012-12-23 23:03:21 +000035620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
35621$as_echo "$GSEPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035622fi
35623
35624
35625
35626
35627
35628
35629
35630
35631
35632
35633#
35634# PerlMagick-related configuration
35635#
35636
35637# Look for PERL if PerlMagick requested
35638# If name/path of desired PERL interpreter is specified, look for that one first
35639have_perl='no'
35640if test "$with_perl" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000035641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35642$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035644$as_echo_n "checking for Perl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35646$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035647 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035649$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035650if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035651 $as_echo_n "(cached) " >&6
35652else
35653 ac_cv_path_PERL="$with_perl"
35654fi
cristy8b350f62009-11-15 23:12:43 +000035655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035656$as_echo "$ac_cv_path_PERL" >&6; };
35657 PERL=$ac_cv_path_PERL
35658 have_perl="$ac_cv_path_PERL"
35659 else
35660 for ac_prog in perl perl5
35661do
35662 # Extract the first word of "$ac_prog", so it can be a program name with args.
35663set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035665$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035666if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035667 $as_echo_n "(cached) " >&6
35668else
35669 case $PERL in
35670 [\\/]* | ?:[\\/]*)
35671 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
35672 ;;
35673 *)
35674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35675for as_dir in $PATH
35676do
35677 IFS=$as_save_IFS
35678 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035679 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035681 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035683 break 2
35684 fi
35685done
cristy8b350f62009-11-15 23:12:43 +000035686 done
cristy3ed852e2009-09-05 21:47:34 +000035687IFS=$as_save_IFS
35688
35689 ;;
35690esac
35691fi
35692PERL=$ac_cv_path_PERL
35693if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000035694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035695$as_echo "$PERL" >&6; }
35696else
cristy8b350f62009-11-15 23:12:43 +000035697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035698$as_echo "no" >&6; }
35699fi
35700
35701
35702 test -n "$PERL" && break
35703done
35704 if test "$ac_cv_path_PERL"; then
35705 have_perl="$ac_cv_path_PERL"
35706 fi
35707 fi
35708fi
35709
cristy949301e2010-01-06 01:38:40 +000035710if test "$with_perl" != 'yes' ; then
35711 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
35712fi
35713
35714PERL_SUPPORTS_DESTDIR='no'
35715
cristy3ed852e2009-09-05 21:47:34 +000035716with_perl_static='no'
35717with_perl_dynamic='no'
35718if test "$have_perl" != 'no'; then
35719 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
35720 with_perl_static='yes'
35721 fi
35722 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
35723 with_perl_dynamic='yes'
35724 fi
35725 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000035726
35727
35728
35729
35730 if test -n "$PERL"; then :
35731
35732 ax_perl_version="5.8.1"
35733
35734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
35735$as_echo_n "checking for perl version... " >&6; }
35736
cristy17491be2014-06-24 01:10:53 +000035737 perl_version=`$PERL --version 2>&1 \
35738 | $SED -n -e '/This is perl/b inspect
35739b
35740: inspect
35741s/.* (\{0,1\}v\([0-9]*\.[0-9]*\.[0-9]*\))\{0,1\} .*/\1/;p'`
cristy73bd4a52010-10-05 11:24:23 +000035742
35743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
35744$as_echo "$perl_version" >&6; }
35745
35746 PERL_VERSION=$perl_version
35747
35748
35749
35750
35751
35752 # Used to indicate true or false condition
35753 ax_compare_version=false
35754
35755 # Convert the two version strings to be compared into a format that
35756 # allows a simple string comparison. The end result is that a version
35757 # string of the form 1.12.5-r617 will be converted to the form
35758 # 0001001200050617. In other words, each number is zero padded to four
35759 # digits, and non digits are removed.
35760
35761 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35762 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35763 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35764 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35765 -e 's/[^0-9]//g'`
35766
35767
35768 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35769 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35770 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35771 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35772 -e 's/[^0-9]//g'`
35773
35774
35775 ax_compare_version=`echo "x$ax_compare_version_A
35776x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
35777
35778
35779
35780 if test "$ax_compare_version" = "true" ; then
35781
35782 :
35783 PERL_SUPPORTS_DESTDIR='yes'
35784
35785 else
35786 :
35787 PERL_SUPPORTS_DESTDIR='no'
35788
35789 fi
35790
35791
35792else
35793
35794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
35795$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
35796 PERL_SUPPORTS_DESTDIR='no'
35797
cristy3ed852e2009-09-05 21:47:34 +000035798fi
cristy73bd4a52010-10-05 11:24:23 +000035799
35800fi
35801 if test "$have_perl" != 'no'; then
35802 WITH_PERL_TRUE=
35803 WITH_PERL_FALSE='#'
35804else
35805 WITH_PERL_TRUE='#'
35806 WITH_PERL_FALSE=
35807fi
35808
35809 if test $with_perl_static = 'yes'; then
35810 WITH_PERL_STATIC_TRUE=
35811 WITH_PERL_STATIC_FALSE='#'
35812else
35813 WITH_PERL_STATIC_TRUE='#'
35814 WITH_PERL_STATIC_FALSE=
35815fi
35816
35817 if test $with_perl_dynamic = 'yes'; then
35818 WITH_PERL_DYNAMIC_TRUE=
35819 WITH_PERL_DYNAMIC_FALSE='#'
35820else
35821 WITH_PERL_DYNAMIC_TRUE='#'
35822 WITH_PERL_DYNAMIC_FALSE=
35823fi
35824
cristy3ed852e2009-09-05 21:47:34 +000035825
35826
35827# Determine path to pick up MagickCore library from for use with building PerlMagick
35828MAGICKCORE_PATH="${LIB_DIR}"
35829if test $with_perl_static = 'yes'; then
35830 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
35831 libtool_objdir=$objdir
35832
35833 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000035834 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000035835fi
35836
35837
cristy2a3eb392012-12-17 13:39:20 +000035838# Create a simple string containing format names for all delegate libraries.
cristy422d5502012-12-22 22:20:57 +000035839MAGICK_DELEGATES=''
cristy2a3eb392012-12-17 13:39:20 +000035840if test "$have_autotrace" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035841 MAGICK_DELEGATES="$MAGICK_DELEGATES autotrace"
cristy3ed852e2009-09-05 21:47:34 +000035842fi
cristy2a3eb392012-12-17 13:39:20 +000035843if test "$have_bzlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035844 MAGICK_DELEGATES="$MAGICK_DELEGATES bzlib"
cristy2a3eb392012-12-17 13:39:20 +000035845fi
35846if test "$have_dps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035847 MAGICK_DELEGATES="$MAGICK_DELEGATES dps"
cristy2a3eb392012-12-17 13:39:20 +000035848fi
35849if test "$have_djvu" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035850 MAGICK_DELEGATES="$MAGICK_DELEGATES djvu"
cristy2a3eb392012-12-17 13:39:20 +000035851fi
cristy81ab5af2013-10-06 18:28:39 +000035852if test "$have_avconv" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035853 MAGICK_DELEGATES="$MAGICK_DELEGATES mpeg"
cristy2a3eb392012-12-17 13:39:20 +000035854fi
35855if test "$have_fftw" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035856 MAGICK_DELEGATES="$MAGICK_DELEGATES fftw"
cristy2a3eb392012-12-17 13:39:20 +000035857fi
cristy2a3eb392012-12-17 13:39:20 +000035858if test "$have_fpx" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035859 MAGICK_DELEGATES="$MAGICK_DELEGATES fpx"
cristy2a3eb392012-12-17 13:39:20 +000035860fi
35861if test "$have_fontconfig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035862 MAGICK_DELEGATES="$MAGICK_DELEGATES fontconfig"
cristy2a3eb392012-12-17 13:39:20 +000035863fi
35864if test "$have_freetype" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035865 MAGICK_DELEGATES="$MAGICK_DELEGATES freetype"
cristy2a3eb392012-12-17 13:39:20 +000035866fi
35867if test "$have_gslib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035868 MAGICK_DELEGATES="$MAGICK_DELEGATES gslib"
cristy2a3eb392012-12-17 13:39:20 +000035869fi
35870if test "$have_jbig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035871 MAGICK_DELEGATES="$MAGICK_DELEGATES jbig"
cristy2a3eb392012-12-17 13:39:20 +000035872fi
35873if test "$have_png$have_jpeg" = 'yesyes' ; then
cristy422d5502012-12-22 22:20:57 +000035874 MAGICK_DELEGATES="$MAGICK_DELEGATES jng"
cristy2a3eb392012-12-17 13:39:20 +000035875fi
35876if test "$have_jp2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035877 MAGICK_DELEGATES="$MAGICK_DELEGATES jp2"
cristy2a3eb392012-12-17 13:39:20 +000035878fi
35879if test "$have_jpeg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035880 MAGICK_DELEGATES="$MAGICK_DELEGATES jpeg"
cristy2a3eb392012-12-17 13:39:20 +000035881fi
35882if test "$have_lcms" = 'yes' || test "$have_lcms2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035883 MAGICK_DELEGATES="$MAGICK_DELEGATES lcms"
cristy2a3eb392012-12-17 13:39:20 +000035884fi
35885if test "$have_lqr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035886 MAGICK_DELEGATES="$MAGICK_DELEGATES lqr"
cristy2a3eb392012-12-17 13:39:20 +000035887fi
35888if test "$have_lzma" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035889 MAGICK_DELEGATES="$MAGICK_DELEGATES lzma"
cristy2a3eb392012-12-17 13:39:20 +000035890fi
35891if test "$have_openexr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035892 MAGICK_DELEGATES="$MAGICK_DELEGATES openexr"
cristy2a3eb392012-12-17 13:39:20 +000035893fi
cristy99db3872014-01-01 15:11:34 +000035894if test "$have_openjp2" = 'yes' ; then
35895 MAGICK_DELEGATES="$MAGICK_DELEGATES openjp2"
cristy3fe09452014-01-01 12:29:14 +000035896fi
cristy2a3eb392012-12-17 13:39:20 +000035897if test "$have_pango" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035898 MAGICK_DELEGATES="$MAGICK_DELEGATES pango"
cristy2a3eb392012-12-17 13:39:20 +000035899fi
35900if test "$have_png" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035901 MAGICK_DELEGATES="$MAGICK_DELEGATES png"
cristy2a3eb392012-12-17 13:39:20 +000035902fi
35903have_ps='no'
35904if test "$have_dps" = 'yes' || \
35905 test "$have_gs" = 'yes' || \
35906 test "${native_win32_build}" = 'yes' ; then
35907 have_ps='yes'
35908fi
35909if test "$have_ps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035910 MAGICK_DELEGATES="$MAGICK_DELEGATES ps"
cristy2a3eb392012-12-17 13:39:20 +000035911fi
cristy2a3eb392012-12-17 13:39:20 +000035912if test "$have_ra_ppm" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035913 MAGICK_DELEGATES="$MAGICK_DELEGATES rad"
cristy2a3eb392012-12-17 13:39:20 +000035914fi
35915if test "$have_rsvg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035916 MAGICK_DELEGATES="$MAGICK_DELEGATES rsvg"
cristy2a3eb392012-12-17 13:39:20 +000035917fi
35918if test "$have_tiff" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035919 MAGICK_DELEGATES="$MAGICK_DELEGATES tiff"
cristy2a3eb392012-12-17 13:39:20 +000035920fi
35921if test "$have_ttf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035922 MAGICK_DELEGATES="$MAGICK_DELEGATES ttf"
cristy2a3eb392012-12-17 13:39:20 +000035923fi
cristy3b640ed2013-07-29 00:27:59 +000035924if test "$have_webp" = 'yes' ; then
35925 MAGICK_DELEGATES="$MAGICK_DELEGATES webp"
35926fi
cristy2a3eb392012-12-17 13:39:20 +000035927if test "$have_wmf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035928 MAGICK_DELEGATES="$MAGICK_DELEGATES wmf"
cristy2a3eb392012-12-17 13:39:20 +000035929fi
35930if test "$have_x" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035931 MAGICK_DELEGATES="$MAGICK_DELEGATES x"
cristy2a3eb392012-12-17 13:39:20 +000035932fi
35933if test "$have_xml" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035934 MAGICK_DELEGATES="$MAGICK_DELEGATES xml"
cristy2a3eb392012-12-17 13:39:20 +000035935fi
35936if test "$have_zlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035937 MAGICK_DELEGATES="$MAGICK_DELEGATES zlib"
cristy2a3eb392012-12-17 13:39:20 +000035938fi
cristy2a3eb392012-12-17 13:39:20 +000035939# Remove extraneous spaces from output variables (asthetic)
cristy422d5502012-12-22 22:20:57 +000035940MAGICK_DELEGATES=`echo $MAGICK_DELEGATES | sed -e 's/ */ /g'`
cristy2a3eb392012-12-17 13:39:20 +000035941MAGICK_FEATURES=`echo $MAGICK_FEATURES | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000035942
35943
cristyfa161182012-12-19 15:45:28 +000035944
cristy3ed852e2009-09-05 21:47:34 +000035945#
35946# Handle special compiler flags
35947#
35948
35949# Add '-p' if prof source profiling support enabled
35950if test "$enable_prof" = 'yes'; then
35951 CFLAGS="-p $CFLAGS"
35952 CXXFLAGS="-p $CXXFLAGS"
35953 LDFLAGS="-p $LDFLAGS"
35954fi
35955
35956# Add '-pg' if gprof source profiling support enabled
35957if test "$enable_gprof" = 'yes'; then
35958 CFLAGS="-pg $CFLAGS"
35959 CXXFLAGS="-pg $CXXFLAGS"
35960 LDFLAGS="-pg $LDFLAGS"
35961fi
35962
35963# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
35964# This is a gcc-specific feature
35965if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035967$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035968if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035969 $as_echo_n "(cached) " >&6
35970else
35971 ac_check_lib_save_LIBS=$LIBS
35972LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035973cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035974/* end confdefs.h. */
35975
35976/* Override any GCC internal prototype to avoid an error.
35977 Use char because int might match the return type of a GCC
35978 builtin and then its argument prototype would still apply. */
35979#ifdef __cplusplus
35980extern "C"
35981#endif
35982char _gcov_init ();
35983int
35984main ()
35985{
35986return _gcov_init ();
35987 ;
35988 return 0;
35989}
35990_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035991if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035992 ac_cv_lib_gcov__gcov_init=yes
35993else
cristy8b350f62009-11-15 23:12:43 +000035994 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035995fi
cristy8b350f62009-11-15 23:12:43 +000035996rm -f core conftest.err conftest.$ac_objext \
35997 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035998LIBS=$ac_check_lib_save_LIBS
35999fi
cristy8b350f62009-11-15 23:12:43 +000036000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000036001$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000036002if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000036003 cat >>confdefs.h <<_ACEOF
36004#define HAVE_LIBGCOV 1
36005_ACEOF
36006
36007 LIBS="-lgcov $LIBS"
36008
36009fi
36010
cristy8b350f62009-11-15 23:12:43 +000036011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000036012$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000036013if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000036014 $as_echo_n "(cached) " >&6
36015else
36016 ac_check_lib_save_LIBS=$LIBS
36017LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000036018cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000036019/* end confdefs.h. */
36020
36021/* Override any GCC internal prototype to avoid an error.
36022 Use char because int might match the return type of a GCC
36023 builtin and then its argument prototype would still apply. */
36024#ifdef __cplusplus
36025extern "C"
36026#endif
36027char __gcov_init ();
36028int
36029main ()
36030{
36031return __gcov_init ();
36032 ;
36033 return 0;
36034}
36035_ACEOF
cristy8b350f62009-11-15 23:12:43 +000036036if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000036037 ac_cv_lib_gcov___gcov_init=yes
36038else
cristy8b350f62009-11-15 23:12:43 +000036039 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000036040fi
cristy8b350f62009-11-15 23:12:43 +000036041rm -f core conftest.err conftest.$ac_objext \
36042 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000036043LIBS=$ac_check_lib_save_LIBS
36044fi
cristy8b350f62009-11-15 23:12:43 +000036045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000036046$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000036047if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000036048 cat >>confdefs.h <<_ACEOF
36049#define HAVE_LIBGCOV 1
36050_ACEOF
36051
36052 LIBS="-lgcov $LIBS"
36053
36054fi
36055
36056 case "$target_os" in
36057 darwin*)
36058 OSX_GCOV_LDFLAG="-Wl,-single_module"
36059 ;;
36060 *)
36061 OSX_GCOV_LDFLAG=""
36062 ;;
36063 esac
36064
36065 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
36066 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
36067 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
36068fi
36069
36070#
36071# Build library dependency list for libMagickCore
36072#
36073
cristyc6722092012-10-14 00:19:31 +000036074if test "$build_modules" != 'no'; then
cristy12ac8192014-11-04 13:59:13 +000036075 MAGICK_DEP_LIBS="$USER_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 $JE_LIBS $THREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000036076else
cristy12ac8192014-11-04 13:59:13 +000036077 MAGICK_DEP_LIBS="$USER_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 $JE_LIBS $THREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000036078fi
36079
36080
36081#
36082# Remove extraneous spaces from output variables (asthetic)
36083#
36084X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
36085X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
36086X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
36087X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
36088
36089CC=`echo $CC | sed -e 's/ */ /g'`
36090CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
36091CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
36092CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000036093DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
36094LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
36095TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
36096MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
36097#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
36098
36099# Pass only user-provided LIBS as "global" libraries
36100LIBS=$USER_LIBS
36101
36102#AC_SUBST(CPPFLAGS)
36103
36104#AC_SUBST(LDFLAGS)
36105#AC_SUBST(X_PRE_LIBS)
36106#AC_SUBST(X_LIBS)
36107#AC_SUBST(X_EXTRA_LIBS)
36108
36109MAGICK_CFLAGS=$CFLAGS
36110MAGICK_CXXFLAGS="$CXXFLAGS"
36111MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
36112MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
36113MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
cristy31b9e072013-10-17 15:02:53 +000036114MAGICK_LIBS="$MAGICK_DEP_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000036115
36116
36117
36118
36119
36120
36121
36122
36123# Set configured scripts to executable.
36124ac_config_commands="$ac_config_commands default"
36125
cristy2bd4b6e2012-07-22 15:29:11 +000036126ac_config_commands="$ac_config_commands magick.sh.in"
36127
cristy3ed852e2009-09-05 21:47:34 +000036128ac_config_commands="$ac_config_commands MagickCore-config.in"
36129
cristy3ed852e2009-09-05 21:47:34 +000036130ac_config_commands="$ac_config_commands MagickWand-config.in"
36131
cristy3ed852e2009-09-05 21:47:34 +000036132ac_config_commands="$ac_config_commands Magick++-config.in"
36133
36134ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
36135
36136
cristyad38abe2012-12-23 23:03:21 +000036137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
36138$as_echo "-------------------------------------------------------------" >&6; }
36139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
36140$as_echo "Update ImageMagick configuration" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000036141cat >confcache <<\_ACEOF
36142# This file is a shell script that caches the results of configure
36143# tests run on this system so they can be shared between configure
36144# scripts and configure runs, see configure's option --config-cache.
36145# It is not useful on other systems. If it contains results you don't
36146# want to keep, you may remove or edit it.
36147#
36148# config.status only pays attention to the cache file if you give it
36149# the --recheck option to rerun configure.
36150#
36151# `ac_cv_env_foo' variables (set or unset) will be overridden when
36152# loading this file, other *unset* `ac_cv_foo' will be assigned the
36153# following values.
36154
36155_ACEOF
36156
36157# The following way of writing the cache mishandles newlines in values,
36158# but we know of no workaround that is simple, portable, and efficient.
36159# So, we kill variables containing newlines.
36160# Ultrix sh set writes to stderr and can't be redirected directly,
36161# and sets the high bit in the cache file unless we assign to the vars.
36162(
36163 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
36164 eval ac_val=\$$ac_var
36165 case $ac_val in #(
36166 *${as_nl}*)
36167 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000036168 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000036169$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
36170 esac
36171 case $ac_var in #(
36172 _ | IFS | as_nl) ;; #(
36173 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000036174 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000036175 esac ;;
36176 esac
36177 done
36178
36179 (set) 2>&1 |
36180 case $as_nl`(ac_space=' '; set) 2>&1` in #(
36181 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000036182 # `set' does not quote correctly, so add quotes: double-quote
36183 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000036184 sed -n \
36185 "s/'/'\\\\''/g;
36186 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
36187 ;; #(
36188 *)
36189 # `set' quotes correctly as required by POSIX, so do not add quotes.
36190 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
36191 ;;
36192 esac |
36193 sort
36194) |
36195 sed '
36196 /^ac_cv_env_/b end
36197 t clear
36198 :clear
36199 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
36200 t end
36201 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
36202 :end' >>confcache
36203if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
36204 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000036205 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000036206 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000036207$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000036208 if test ! -f "$cache_file" || test -h "$cache_file"; then
36209 cat confcache >"$cache_file"
36210 else
36211 case $cache_file in #(
36212 */* | ?:*)
36213 mv -f confcache "$cache_file"$$ &&
36214 mv -f "$cache_file"$$ "$cache_file" ;; #(
36215 *)
36216 mv -f confcache "$cache_file" ;;
36217 esac
36218 fi
36219 fi
cristy3ed852e2009-09-05 21:47:34 +000036220 else
cristy8b350f62009-11-15 23:12:43 +000036221 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000036222$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
36223 fi
36224fi
36225rm -f confcache
36226
36227test "x$prefix" = xNONE && prefix=$ac_default_prefix
36228# Let make expand exec_prefix.
36229test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
36230
36231DEFS=-DHAVE_CONFIG_H
36232
36233ac_libobjs=
36234ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000036235U=
cristy3ed852e2009-09-05 21:47:34 +000036236for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
36237 # 1. Remove the extension, and $U if already installed.
36238 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
36239 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
36240 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
36241 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000036242 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
36243 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000036244done
36245LIBOBJS=$ac_libobjs
36246
36247LTLIBOBJS=$ac_ltlibobjs
36248
36249
cristyc0890a62012-07-19 00:18:20 +000036250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
36251$as_echo_n "checking that generated files are newer than configure... " >&6; }
36252 if test -n "$am_sleep_pid"; then
36253 # Hide warnings about reused PIDs.
36254 wait $am_sleep_pid 2>/dev/null
36255 fi
36256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
36257$as_echo "done" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000036258 if test -n "$EXEEXT"; then
36259 am__EXEEXT_TRUE=
36260 am__EXEEXT_FALSE='#'
36261else
36262 am__EXEEXT_TRUE='#'
36263 am__EXEEXT_FALSE=
36264fi
cristy3ed852e2009-09-05 21:47:34 +000036265
cristy73bd4a52010-10-05 11:24:23 +000036266if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036267 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036268Usually this means the macro was only invoked conditionally." "$LINENO" 5
36269fi
36270if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036271 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036272Usually this means the macro was only invoked conditionally." "$LINENO" 5
36273fi
36274if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036275 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036276Usually this means the macro was only invoked conditionally." "$LINENO" 5
36277fi
36278if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036279 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036280Usually this means the macro was only invoked conditionally." "$LINENO" 5
36281fi
cristy9b86f202012-11-28 21:55:35 +000036282if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
36283 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
36284Usually this means the macro was only invoked conditionally." "$LINENO" 5
36285fi
cristy73bd4a52010-10-05 11:24:23 +000036286if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036287 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036288Usually this means the macro was only invoked conditionally." "$LINENO" 5
36289fi
36290if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036291 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036292Usually this means the macro was only invoked conditionally." "$LINENO" 5
36293fi
36294if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036295 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036296Usually this means the macro was only invoked conditionally." "$LINENO" 5
36297fi
36298if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036299 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036300Usually this means the macro was only invoked conditionally." "$LINENO" 5
36301fi
cristy73bd4a52010-10-05 11:24:23 +000036302if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036303 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036304Usually this means the macro was only invoked conditionally." "$LINENO" 5
36305fi
36306if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036307 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036308Usually this means the macro was only invoked conditionally." "$LINENO" 5
36309fi
cristy73bd4a52010-10-05 11:24:23 +000036310if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036311 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036312Usually this means the macro was only invoked conditionally." "$LINENO" 5
36313fi
cristy71d8c202012-03-20 17:05:01 +000036314if test -z "${LEGACY_SUPPORT_TRUE}" && test -z "${LEGACY_SUPPORT_FALSE}"; then
36315 as_fn_error $? "conditional \"LEGACY_SUPPORT\" was never defined.
36316Usually this means the macro was only invoked conditionally." "$LINENO" 5
36317fi
cristy73bd4a52010-10-05 11:24:23 +000036318
36319if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036320 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036321Usually this means the macro was only invoked conditionally." "$LINENO" 5
36322fi
36323if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036324 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036325Usually this means the macro was only invoked conditionally." "$LINENO" 5
36326fi
36327if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036328 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036329Usually this means the macro was only invoked conditionally." "$LINENO" 5
36330fi
36331if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036332 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036333Usually this means the macro was only invoked conditionally." "$LINENO" 5
36334fi
36335if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036336 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036337Usually this means the macro was only invoked conditionally." "$LINENO" 5
36338fi
36339if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036340 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036341Usually this means the macro was only invoked conditionally." "$LINENO" 5
36342fi
cristy5eef09f2012-10-16 12:08:28 +000036343if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
36344 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
36345Usually this means the macro was only invoked conditionally." "$LINENO" 5
36346fi
cristy73bd4a52010-10-05 11:24:23 +000036347if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036348 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036349Usually this means the macro was only invoked conditionally." "$LINENO" 5
36350fi
36351if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036352 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036353Usually this means the macro was only invoked conditionally." "$LINENO" 5
36354fi
cristy73bd4a52010-10-05 11:24:23 +000036355if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036356 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036357Usually this means the macro was only invoked conditionally." "$LINENO" 5
36358fi
36359if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036360 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036361Usually this means the macro was only invoked conditionally." "$LINENO" 5
36362fi
cristy853d9902014-08-21 18:50:43 +000036363if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
36364 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
36365Usually this means the macro was only invoked conditionally." "$LINENO" 5
36366fi
cristy73bd4a52010-10-05 11:24:23 +000036367if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036368 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036369Usually this means the macro was only invoked conditionally." "$LINENO" 5
36370fi
36371if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036372 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036373Usually this means the macro was only invoked conditionally." "$LINENO" 5
36374fi
36375if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036376 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036377Usually this means the macro was only invoked conditionally." "$LINENO" 5
36378fi
36379if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036380 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036381Usually this means the macro was only invoked conditionally." "$LINENO" 5
36382fi
36383if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036384 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036385Usually this means the macro was only invoked conditionally." "$LINENO" 5
36386fi
36387if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036388 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036389Usually this means the macro was only invoked conditionally." "$LINENO" 5
36390fi
cristy73bd4a52010-10-05 11:24:23 +000036391if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036392 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036393Usually this means the macro was only invoked conditionally." "$LINENO" 5
36394fi
cristy99db3872014-01-01 15:11:34 +000036395if test -z "${LIBOPENJP2_DELEGATE_TRUE}" && test -z "${LIBOPENJP2_DELEGATE_FALSE}"; then
36396 as_fn_error $? "conditional \"LIBOPENJP2_DELEGATE\" was never defined.
36397Usually this means the macro was only invoked conditionally." "$LINENO" 5
36398fi
cristy73bd4a52010-10-05 11:24:23 +000036399if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036400 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036401Usually this means the macro was only invoked conditionally." "$LINENO" 5
36402fi
cristyfbb0ef02010-12-19 02:32:11 +000036403if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
36404 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
36405Usually this means the macro was only invoked conditionally." "$LINENO" 5
36406fi
cristy73bd4a52010-10-05 11:24:23 +000036407if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036408 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036409Usually this means the macro was only invoked conditionally." "$LINENO" 5
36410fi
cristy41cbe8a2011-10-27 01:35:18 +000036411if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
36412 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
36413Usually this means the macro was only invoked conditionally." "$LINENO" 5
36414fi
cristya054b762012-03-26 23:16:00 +000036415if test -z "${PANGOCAIRO_DELEGATE_TRUE}" && test -z "${PANGOCAIRO_DELEGATE_FALSE}"; then
36416 as_fn_error $? "conditional \"PANGOCAIRO_DELEGATE\" was never defined.
cristy41cbe8a2011-10-27 01:35:18 +000036417Usually this means the macro was only invoked conditionally." "$LINENO" 5
36418fi
cristy73bd4a52010-10-05 11:24:23 +000036419if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036420 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036421Usually this means the macro was only invoked conditionally." "$LINENO" 5
36422fi
36423if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036424 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036425Usually this means the macro was only invoked conditionally." "$LINENO" 5
36426fi
36427if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036428 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036429Usually this means the macro was only invoked conditionally." "$LINENO" 5
36430fi
36431if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036432 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036433Usually this means the macro was only invoked conditionally." "$LINENO" 5
36434fi
cristyb1860752011-03-14 00:27:46 +000036435if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
36436 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
36437Usually this means the macro was only invoked conditionally." "$LINENO" 5
36438fi
cristy73bd4a52010-10-05 11:24:23 +000036439if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036440 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036441Usually this means the macro was only invoked conditionally." "$LINENO" 5
36442fi
36443if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036444 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036445Usually this means the macro was only invoked conditionally." "$LINENO" 5
36446fi
cristydd17feb2014-03-05 02:06:32 +000036447if test -z "${INSTALL_DOC_TRUE}" && test -z "${INSTALL_DOC_FALSE}"; then
36448 as_fn_error $? "conditional \"INSTALL_DOC\" was never defined.
36449Usually this means the macro was only invoked conditionally." "$LINENO" 5
36450fi
cristy73bd4a52010-10-05 11:24:23 +000036451if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036452 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036453Usually this means the macro was only invoked conditionally." "$LINENO" 5
36454fi
36455if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036456 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036457Usually this means the macro was only invoked conditionally." "$LINENO" 5
36458fi
36459if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036460 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036461Usually this means the macro was only invoked conditionally." "$LINENO" 5
36462fi
36463if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036464 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036465Usually this means the macro was only invoked conditionally." "$LINENO" 5
36466fi
36467if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036468 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036469Usually this means the macro was only invoked conditionally." "$LINENO" 5
36470fi
36471if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036472 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036473Usually this means the macro was only invoked conditionally." "$LINENO" 5
36474fi
cristy3ed852e2009-09-05 21:47:34 +000036475
cristyda16f162011-02-19 23:52:17 +000036476: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000036477ac_write_fail=0
36478ac_clean_files_save=$ac_clean_files
36479ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000036480{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000036481$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000036482as_write_fail=0
36483cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036484#! $SHELL
36485# Generated by $as_me.
36486# Run this file to recreate the current configuration.
36487# Compiler output produced by configure, useful for debugging
36488# configure, is in config.log if it exists.
36489
36490debug=false
36491ac_cs_recheck=false
36492ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000036493
cristy8b350f62009-11-15 23:12:43 +000036494SHELL=\${CONFIG_SHELL-$SHELL}
36495export SHELL
36496_ASEOF
36497cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
36498## -------------------- ##
36499## M4sh Initialization. ##
36500## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000036501
36502# Be more Bourne compatible
36503DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000036504if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000036505 emulate sh
36506 NULLCMD=:
36507 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
36508 # is contrary to our usage. Disable this feature.
36509 alias -g '${1+"$@"}'='"$@"'
36510 setopt NO_GLOB_SUBST
36511else
cristy8b350f62009-11-15 23:12:43 +000036512 case `(set -o) 2>/dev/null` in #(
36513 *posix*) :
36514 set -o posix ;; #(
36515 *) :
36516 ;;
cristy3ed852e2009-09-05 21:47:34 +000036517esac
cristy3ed852e2009-09-05 21:47:34 +000036518fi
36519
36520
cristy3ed852e2009-09-05 21:47:34 +000036521as_nl='
36522'
36523export as_nl
36524# Printing a long string crashes Solaris 7 /usr/bin/printf.
36525as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
36526as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
36527as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000036528# Prefer a ksh shell builtin over an external printf program on Solaris,
36529# but without wasting forks for bash or zsh.
36530if test -z "$BASH_VERSION$ZSH_VERSION" \
36531 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
36532 as_echo='print -r --'
36533 as_echo_n='print -rn --'
36534elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000036535 as_echo='printf %s\n'
36536 as_echo_n='printf %s'
36537else
36538 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
36539 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
36540 as_echo_n='/usr/ucb/echo -n'
36541 else
36542 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
36543 as_echo_n_body='eval
36544 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000036545 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000036546 *"$as_nl"*)
36547 expr "X$arg" : "X\\(.*\\)$as_nl";
36548 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
36549 esac;
36550 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
36551 '
36552 export as_echo_n_body
36553 as_echo_n='sh -c $as_echo_n_body as_echo'
36554 fi
36555 export as_echo_body
36556 as_echo='sh -c $as_echo_body as_echo'
36557fi
36558
36559# The user is always right.
36560if test "${PATH_SEPARATOR+set}" != set; then
36561 PATH_SEPARATOR=:
36562 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
36563 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
36564 PATH_SEPARATOR=';'
36565 }
36566fi
36567
cristy3ed852e2009-09-05 21:47:34 +000036568
36569# IFS
36570# We need space, tab and new line, in precisely that order. Quoting is
36571# there to prevent editors from complaining about space-tab.
36572# (If _AS_PATH_WALK were called with IFS unset, it would disable word
36573# splitting by setting IFS to empty value.)
36574IFS=" "" $as_nl"
36575
36576# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000036577as_myself=
cristy8b350f62009-11-15 23:12:43 +000036578case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000036579 *[\\/]* ) as_myself=$0 ;;
36580 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36581for as_dir in $PATH
36582do
36583 IFS=$as_save_IFS
36584 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000036585 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
36586 done
cristy3ed852e2009-09-05 21:47:34 +000036587IFS=$as_save_IFS
36588
36589 ;;
36590esac
36591# We did not find ourselves, most probably we were run as `sh COMMAND'
36592# in which case we are not to be found in the path.
36593if test "x$as_myself" = x; then
36594 as_myself=$0
36595fi
36596if test ! -f "$as_myself"; then
36597 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000036598 exit 1
cristy3ed852e2009-09-05 21:47:34 +000036599fi
36600
cristy8b350f62009-11-15 23:12:43 +000036601# Unset variables that we do not need and which cause bugs (e.g. in
36602# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
36603# suppresses any "Segmentation fault" message there. '((' could
36604# trigger a bug in pdksh 5.2.14.
36605for as_var in BASH_ENV ENV MAIL MAILPATH
36606do eval test x\${$as_var+set} = xset \
36607 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000036608done
36609PS1='$ '
36610PS2='> '
36611PS4='+ '
36612
36613# NLS nuisances.
36614LC_ALL=C
36615export LC_ALL
36616LANGUAGE=C
36617export LANGUAGE
36618
cristy8b350f62009-11-15 23:12:43 +000036619# CDPATH.
36620(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36621
36622
cristy98dddb52010-11-04 00:30:15 +000036623# as_fn_error STATUS ERROR [LINENO LOG_FD]
36624# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000036625# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
36626# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000036627# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000036628as_fn_error ()
36629{
cristy98dddb52010-11-04 00:30:15 +000036630 as_status=$1; test $as_status -eq 0 && as_status=1
36631 if test "$4"; then
36632 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
36633 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000036634 fi
cristy98dddb52010-11-04 00:30:15 +000036635 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000036636 as_fn_exit $as_status
36637} # as_fn_error
36638
36639
36640# as_fn_set_status STATUS
36641# -----------------------
36642# Set $? to STATUS, without forking.
36643as_fn_set_status ()
36644{
36645 return $1
36646} # as_fn_set_status
36647
36648# as_fn_exit STATUS
36649# -----------------
36650# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
36651as_fn_exit ()
36652{
36653 set +e
36654 as_fn_set_status $1
36655 exit $1
36656} # as_fn_exit
36657
36658# as_fn_unset VAR
36659# ---------------
36660# Portably unset VAR.
36661as_fn_unset ()
36662{
36663 { eval $1=; unset $1;}
36664}
36665as_unset=as_fn_unset
36666# as_fn_append VAR VALUE
36667# ----------------------
36668# Append the text in VALUE to the end of the definition contained in VAR. Take
36669# advantage of any shell optimizations that allow amortized linear growth over
36670# repeated appends, instead of the typical quadratic growth present in naive
36671# implementations.
36672if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
36673 eval 'as_fn_append ()
36674 {
36675 eval $1+=\$2
36676 }'
36677else
36678 as_fn_append ()
36679 {
36680 eval $1=\$$1\$2
36681 }
36682fi # as_fn_append
36683
36684# as_fn_arith ARG...
36685# ------------------
36686# Perform arithmetic evaluation on the ARGs, and store the result in the
36687# global $as_val. Take advantage of shells that can avoid forks. The arguments
36688# must be portable across $(()) and expr.
36689if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
36690 eval 'as_fn_arith ()
36691 {
36692 as_val=$(( $* ))
36693 }'
36694else
36695 as_fn_arith ()
36696 {
36697 as_val=`expr "$@" || test $? -eq 1`
36698 }
36699fi # as_fn_arith
36700
36701
cristy3ed852e2009-09-05 21:47:34 +000036702if expr a : '\(a\)' >/dev/null 2>&1 &&
36703 test "X`expr 00001 : '.*\(...\)'`" = X001; then
36704 as_expr=expr
36705else
36706 as_expr=false
36707fi
36708
36709if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
36710 as_basename=basename
36711else
36712 as_basename=false
36713fi
36714
cristy8b350f62009-11-15 23:12:43 +000036715if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
36716 as_dirname=dirname
36717else
36718 as_dirname=false
36719fi
cristy3ed852e2009-09-05 21:47:34 +000036720
cristy3ed852e2009-09-05 21:47:34 +000036721as_me=`$as_basename -- "$0" ||
36722$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
36723 X"$0" : 'X\(//\)$' \| \
36724 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
36725$as_echo X/"$0" |
36726 sed '/^.*\/\([^/][^/]*\)\/*$/{
36727 s//\1/
36728 q
36729 }
36730 /^X\/\(\/\/\)$/{
36731 s//\1/
36732 q
36733 }
36734 /^X\/\(\/\).*/{
36735 s//\1/
36736 q
36737 }
36738 s/.*/./; q'`
36739
cristy8b350f62009-11-15 23:12:43 +000036740# Avoid depending upon Character Ranges.
36741as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36742as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36743as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36744as_cr_digits='0123456789'
36745as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000036746
36747ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000036748case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000036749-n*)
cristy8b350f62009-11-15 23:12:43 +000036750 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000036751 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000036752 xy) ECHO_C='\c';;
36753 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
36754 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000036755 esac;;
36756*)
36757 ECHO_N='-n';;
36758esac
cristy3ed852e2009-09-05 21:47:34 +000036759
36760rm -f conf$$ conf$$.exe conf$$.file
36761if test -d conf$$.dir; then
36762 rm -f conf$$.dir/conf$$.file
36763else
36764 rm -f conf$$.dir
36765 mkdir conf$$.dir 2>/dev/null
36766fi
36767if (echo >conf$$.file) 2>/dev/null; then
36768 if ln -s conf$$.file conf$$ 2>/dev/null; then
36769 as_ln_s='ln -s'
36770 # ... but there are two gotchas:
36771 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
36772 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cristy14fefe52012-05-21 00:59:18 +000036773 # In both cases, we have to default to `cp -pR'.
cristy3ed852e2009-09-05 21:47:34 +000036774 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cristy14fefe52012-05-21 00:59:18 +000036775 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036776 elif ln conf$$.file conf$$ 2>/dev/null; then
36777 as_ln_s=ln
36778 else
cristy14fefe52012-05-21 00:59:18 +000036779 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036780 fi
36781else
cristy14fefe52012-05-21 00:59:18 +000036782 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036783fi
36784rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
36785rmdir conf$$.dir 2>/dev/null
36786
cristy8b350f62009-11-15 23:12:43 +000036787
36788# as_fn_mkdir_p
36789# -------------
36790# Create "$as_dir" as a directory, including parents if necessary.
36791as_fn_mkdir_p ()
36792{
36793
36794 case $as_dir in #(
36795 -*) as_dir=./$as_dir;;
36796 esac
36797 test -d "$as_dir" || eval $as_mkdir_p || {
36798 as_dirs=
36799 while :; do
36800 case $as_dir in #(
36801 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
36802 *) as_qdir=$as_dir;;
36803 esac
36804 as_dirs="'$as_qdir' $as_dirs"
36805 as_dir=`$as_dirname -- "$as_dir" ||
36806$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36807 X"$as_dir" : 'X\(//\)[^/]' \| \
36808 X"$as_dir" : 'X\(//\)$' \| \
36809 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36810$as_echo X"$as_dir" |
36811 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36812 s//\1/
36813 q
36814 }
36815 /^X\(\/\/\)[^/].*/{
36816 s//\1/
36817 q
36818 }
36819 /^X\(\/\/\)$/{
36820 s//\1/
36821 q
36822 }
36823 /^X\(\/\).*/{
36824 s//\1/
36825 q
36826 }
36827 s/.*/./; q'`
36828 test -d "$as_dir" && break
36829 done
36830 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000036831 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000036832
36833
36834} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000036835if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000036836 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000036837else
36838 test -d ./-p && rmdir ./-p
36839 as_mkdir_p=false
36840fi
36841
cristy14fefe52012-05-21 00:59:18 +000036842
36843# as_fn_executable_p FILE
36844# -----------------------
36845# Test if FILE is an executable regular file.
36846as_fn_executable_p ()
36847{
36848 test -f "$1" && test -x "$1"
36849} # as_fn_executable_p
36850as_test_x='test -x'
36851as_executable_p=as_fn_executable_p
cristy3ed852e2009-09-05 21:47:34 +000036852
36853# Sed expression to map a string onto a valid CPP name.
36854as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
36855
36856# Sed expression to map a string onto a valid variable name.
36857as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
36858
36859
36860exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000036861## ----------------------------------- ##
36862## Main body of $CONFIG_STATUS script. ##
36863## ----------------------------------- ##
36864_ASEOF
36865test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036866
cristy8b350f62009-11-15 23:12:43 +000036867cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36868# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000036869# report actual input values of CONFIG_FILES etc. instead of their
36870# values after options handling.
36871ac_log="
cristy29eb34e2011-10-16 00:46:08 +000036872This file was extended by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +000036873generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000036874
36875 CONFIG_FILES = $CONFIG_FILES
36876 CONFIG_HEADERS = $CONFIG_HEADERS
36877 CONFIG_LINKS = $CONFIG_LINKS
36878 CONFIG_COMMANDS = $CONFIG_COMMANDS
36879 $ $0 $@
36880
36881on `(hostname || uname -n) 2>/dev/null | sed 1q`
36882"
36883
36884_ACEOF
36885
36886case $ac_config_files in *"
36887"*) set x $ac_config_files; shift; ac_config_files=$*;;
36888esac
36889
36890case $ac_config_headers in *"
36891"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
36892esac
36893
36894
36895cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36896# Files that config.status was made for.
36897config_files="$ac_config_files"
36898config_headers="$ac_config_headers"
36899config_commands="$ac_config_commands"
36900
36901_ACEOF
36902
36903cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36904ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000036905\`$as_me' instantiates files and other configuration actions
36906from templates according to the current configuration. Unless the files
36907and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000036908
cristy8b350f62009-11-15 23:12:43 +000036909Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000036910
36911 -h, --help print this help, then exit
36912 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000036913 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000036914 -q, --quiet, --silent
36915 do not print progress messages
36916 -d, --debug don't remove temporary files
36917 --recheck update $as_me by reconfiguring in the same conditions
36918 --file=FILE[:TEMPLATE]
36919 instantiate the configuration file FILE
36920 --header=FILE[:TEMPLATE]
36921 instantiate the configuration header FILE
36922
36923Configuration files:
36924$config_files
36925
36926Configuration headers:
36927$config_headers
36928
36929Configuration commands:
36930$config_commands
36931
cristy8b350f62009-11-15 23:12:43 +000036932Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000036933
36934_ACEOF
36935cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000036936ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000036937ac_cs_version="\\
cristy29eb34e2011-10-16 00:46:08 +000036938ImageMagick config.status 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +000036939configured by $0, generated by GNU Autoconf 2.69,
cristycd4c5312009-11-22 01:19:08 +000036940 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000036941
cristy14fefe52012-05-21 00:59:18 +000036942Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000036943This config.status script is free software; the Free Software Foundation
36944gives unlimited permission to copy, distribute and modify it."
36945
36946ac_pwd='$ac_pwd'
36947srcdir='$srcdir'
36948INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000036949MKDIR_P='$MKDIR_P'
36950AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000036951test -n "\$AWK" || AWK=awk
36952_ACEOF
36953
36954cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36955# The default lists apply if the user does not specify any file.
36956ac_need_defaults=:
36957while test $# != 0
36958do
36959 case $1 in
cristyda16f162011-02-19 23:52:17 +000036960 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000036961 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36962 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
36963 ac_shift=:
36964 ;;
cristyda16f162011-02-19 23:52:17 +000036965 --*=)
36966 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36967 ac_optarg=
36968 ac_shift=:
36969 ;;
cristy3ed852e2009-09-05 21:47:34 +000036970 *)
36971 ac_option=$1
36972 ac_optarg=$2
36973 ac_shift=shift
36974 ;;
36975 esac
36976
36977 case $ac_option in
36978 # Handling of the options.
36979 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36980 ac_cs_recheck=: ;;
36981 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
36982 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000036983 --config | --confi | --conf | --con | --co | --c )
36984 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000036985 --debug | --debu | --deb | --de | --d | -d )
36986 debug=: ;;
36987 --file | --fil | --fi | --f )
36988 $ac_shift
36989 case $ac_optarg in
36990 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000036991 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000036992 esac
cristy8b350f62009-11-15 23:12:43 +000036993 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036994 ac_need_defaults=false;;
36995 --header | --heade | --head | --hea )
36996 $ac_shift
36997 case $ac_optarg in
36998 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
36999 esac
cristy8b350f62009-11-15 23:12:43 +000037000 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000037001 ac_need_defaults=false;;
37002 --he | --h)
37003 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000037004 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000037005Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000037006 --help | --hel | -h )
37007 $as_echo "$ac_cs_usage"; exit ;;
37008 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
37009 | -silent | --silent | --silen | --sile | --sil | --si | --s)
37010 ac_cs_silent=: ;;
37011
37012 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000037013 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000037014Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000037015
cristy8b350f62009-11-15 23:12:43 +000037016 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000037017 ac_need_defaults=false ;;
37018
37019 esac
37020 shift
37021done
37022
37023ac_configure_extra_args=
37024
37025if $ac_cs_silent; then
37026 exec 6>/dev/null
37027 ac_configure_extra_args="$ac_configure_extra_args --silent"
37028fi
37029
37030_ACEOF
37031cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37032if \$ac_cs_recheck; then
cristy14fefe52012-05-21 00:59:18 +000037033 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
cristy3ed852e2009-09-05 21:47:34 +000037034 shift
37035 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
37036 CONFIG_SHELL='$SHELL'
37037 export CONFIG_SHELL
37038 exec "\$@"
37039fi
37040
37041_ACEOF
37042cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37043exec 5>>config.log
37044{
37045 echo
37046 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
37047## Running $as_me. ##
37048_ASBOX
37049 $as_echo "$ac_log"
37050} >&5
37051
37052_ACEOF
37053cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000037054#
37055# INIT-COMMANDS
37056#
37057PACKAGE="$PACKAGE"
37058AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
37059
37060
37061# The HP-UX ksh and POSIX shell print the target directory to stdout
37062# if CDPATH is set.
37063(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
37064
37065sed_quote_subst='$sed_quote_subst'
37066double_quote_subst='$double_quote_subst'
37067delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000037068SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
37069Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
37070GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
37071EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
37072FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
37073SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
37074ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
37075LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
37076macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
37077macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
37078AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
37079DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
37080OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
37081enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
37082enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
37083pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
37084enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
cristy99bd5232011-12-07 14:38:20 +000037085PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037086host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
37087host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
37088host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
37089build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
37090build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
37091build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
37092NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
37093LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
37094max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
37095ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
37096exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
37097lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
37098lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
37099lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037100lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
37101lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037102reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
37103reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
37104deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
37105file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037106file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
37107want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
37108sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037109AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
37110AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037111archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037112STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
37113RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
37114old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
37115old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
37116old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
37117lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
37118CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
37119CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
37120compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
37121GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
37122lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
37123lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
37124lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
37125lt_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 +000037126nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
37127lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037128objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
37129MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
37130lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037131lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037132lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037133lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
37134lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
37135need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037136MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037137DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
37138NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
37139LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
37140OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
37141OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
37142libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
37143shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
37144extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
37145archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
37146enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
37147export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
37148whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
37149compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
37150old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
37151old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
37152archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
37153archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
37154module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
37155module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
37156with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
37157allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
37158no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
37159hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037160hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
37161hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
37162hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
37163hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
37164hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
37165hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
37166inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
37167link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037168always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
37169export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
37170exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
37171include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
37172prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037173postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037174file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
37175variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
37176need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
37177need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
37178version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
37179runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
37180shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
37181shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
37182libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
37183library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
37184soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
37185install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
37186postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
37187postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
37188finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
37189finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
37190hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
37191sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
37192sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
37193hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
37194enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
37195enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
37196enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
37197old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
37198striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
37199compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
37200predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
37201postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
37202predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
37203postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
37204compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
37205LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
37206reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
37207reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37208old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37209compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
37210GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
37211lt_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 +000037212lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037213lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037214lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
37215lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
37216archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
37217enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
37218export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
37219whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
37220compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
37221old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37222old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37223archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37224archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37225module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37226module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37227with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
37228allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
37229no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
37230hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037231hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
37232hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
37233hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
37234hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
37235hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
37236hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
37237inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
37238link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037239always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
37240export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37241exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
37242include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
37243prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037244postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037245file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
37246hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
37247compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
37248predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
37249postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
37250predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
37251postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
37252compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000037253
37254LTCC='$LTCC'
37255LTCFLAGS='$LTCFLAGS'
37256compiler='$compiler_DEFAULT'
37257
cristy0c60a692010-11-04 01:09:47 +000037258# A function that is used when there is no print builtin or printf.
37259func_fallback_echo ()
37260{
37261 eval 'cat <<_LTECHO_EOF
37262\$1
37263_LTECHO_EOF'
37264}
37265
cristy73bd4a52010-10-05 11:24:23 +000037266# Quote evaled strings.
37267for var in SED \
37268GREP \
37269EGREP \
37270FGREP \
cristy0c60a692010-11-04 01:09:47 +000037271SHELL \
37272ECHO \
cristy73bd4a52010-10-05 11:24:23 +000037273LD \
cristy0c60a692010-11-04 01:09:47 +000037274AS \
37275DLLTOOL \
37276OBJDUMP \
cristy99bd5232011-12-07 14:38:20 +000037277PATH_SEPARATOR \
cristy73bd4a52010-10-05 11:24:23 +000037278NM \
37279LN_S \
37280lt_SP2NL \
37281lt_NL2SP \
37282reload_flag \
37283deplibs_check_method \
37284file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000037285file_magic_glob \
37286want_nocaseglob \
37287sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000037288AR \
37289AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000037290archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000037291STRIP \
37292RANLIB \
37293CC \
37294CFLAGS \
37295compiler \
37296lt_cv_sys_global_symbol_pipe \
37297lt_cv_sys_global_symbol_to_cdecl \
37298lt_cv_sys_global_symbol_to_c_name_address \
37299lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000037300nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000037301lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000037302lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000037303lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000037304lt_prog_compiler_static \
37305lt_cv_prog_compiler_c_o \
37306need_locks \
cristyda16f162011-02-19 23:52:17 +000037307MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000037308DSYMUTIL \
37309NMEDIT \
37310LIPO \
37311OTOOL \
37312OTOOL64 \
37313shrext_cmds \
37314export_dynamic_flag_spec \
37315whole_archive_flag_spec \
37316compiler_needs_object \
37317with_gnu_ld \
37318allow_undefined_flag \
37319no_undefined_flag \
37320hardcode_libdir_flag_spec \
cristy73bd4a52010-10-05 11:24:23 +000037321hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000037322exclude_expsyms \
37323include_expsyms \
37324file_list_spec \
37325variables_saved_for_relink \
37326libname_spec \
37327library_names_spec \
37328soname_spec \
cristy0c60a692010-11-04 01:09:47 +000037329install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000037330finish_eval \
37331old_striplib \
37332striplib \
37333compiler_lib_search_dirs \
37334predep_objects \
37335postdep_objects \
37336predeps \
37337postdeps \
37338compiler_lib_search_path \
37339LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000037340reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037341compiler_CXX \
37342lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037343lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000037344lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037345lt_prog_compiler_static_CXX \
37346lt_cv_prog_compiler_c_o_CXX \
37347export_dynamic_flag_spec_CXX \
37348whole_archive_flag_spec_CXX \
37349compiler_needs_object_CXX \
37350with_gnu_ld_CXX \
37351allow_undefined_flag_CXX \
37352no_undefined_flag_CXX \
37353hardcode_libdir_flag_spec_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037354hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037355exclude_expsyms_CXX \
37356include_expsyms_CXX \
37357file_list_spec_CXX \
37358compiler_lib_search_dirs_CXX \
37359predep_objects_CXX \
37360postdep_objects_CXX \
37361predeps_CXX \
37362postdeps_CXX \
37363compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000037364 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000037365 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000037366 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000037367 ;;
37368 *)
37369 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37370 ;;
37371 esac
37372done
37373
37374# Double-quote double-evaled strings.
37375for var in reload_cmds \
37376old_postinstall_cmds \
37377old_postuninstall_cmds \
37378old_archive_cmds \
37379extract_expsyms_cmds \
37380old_archive_from_new_cmds \
37381old_archive_from_expsyms_cmds \
37382archive_cmds \
37383archive_expsym_cmds \
37384module_cmds \
37385module_expsym_cmds \
37386export_symbols_cmds \
37387prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000037388postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000037389postinstall_cmds \
37390postuninstall_cmds \
37391finish_cmds \
37392sys_lib_search_path_spec \
37393sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000037394reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037395old_archive_cmds_CXX \
37396old_archive_from_new_cmds_CXX \
37397old_archive_from_expsyms_cmds_CXX \
37398archive_cmds_CXX \
37399archive_expsym_cmds_CXX \
37400module_cmds_CXX \
37401module_expsym_cmds_CXX \
37402export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000037403prelink_cmds_CXX \
37404postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000037405 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000037406 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000037407 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000037408 ;;
37409 *)
37410 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37411 ;;
37412 esac
37413done
37414
cristy73bd4a52010-10-05 11:24:23 +000037415ac_aux_dir='$ac_aux_dir'
37416xsi_shell='$xsi_shell'
37417lt_shell_append='$lt_shell_append'
37418
37419# See if we are running on zsh, and set the options which allow our
37420# commands through without removal of \ escapes INIT.
37421if test -n "\${ZSH_VERSION+set}" ; then
37422 setopt NO_GLOB_SUBST
37423fi
37424
37425
37426 PACKAGE='$PACKAGE'
37427 VERSION='$VERSION'
37428 TIMESTAMP='$TIMESTAMP'
37429 RM='$RM'
37430 ofile='$ofile'
37431
37432
37433
37434
37435
37436
cristy3ed852e2009-09-05 21:47:34 +000037437_ACEOF
37438
37439cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37440
37441# Handling of arguments.
37442for ac_config_target in $ac_config_targets
37443do
37444 case $ac_config_target in
37445 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy01ff9f32012-12-01 18:15:29 +000037446 "MagickCore/magick-baseconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-baseconfig.h" ;;
cristy305c5dd2012-09-13 00:30:13 +000037447 "common.shi") CONFIG_FILES="$CONFIG_FILES common.shi" ;;
cristy3ed852e2009-09-05 21:47:34 +000037448 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
37449 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
37450 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
37451 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
37452 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy2df32802012-09-17 01:15:28 +000037453 "config/Magick++.dox") CONFIG_FILES="$CONFIG_FILES config/Magick++.dox" ;;
cristy430a7312010-01-21 20:44:04 +000037454 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000037455 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
37456 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
37457 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
37458 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
37459 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000037460 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000037461 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000037462 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
37463 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
37464 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000037465 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
37466 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
cristy3ed852e2009-09-05 21:47:34 +000037467 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
cristy8d0ff762013-03-10 20:33:28 +000037468 "PerlMagick/default/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Magick.pm" ;;
cristy3e049f82013-02-13 13:26:53 +000037469 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
cristy8d0ff762013-03-10 20:33:28 +000037470 "PerlMagick/default/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Makefile.PL" ;;
cristycf0cbcc2013-02-13 23:32:58 +000037471 "PerlMagick/quantum/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/Makefile.PL" ;;
37472 "PerlMagick/quantum/quantum.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.pm" ;;
37473 "PerlMagick/quantum/quantum.xs") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.xs" ;;
37474 "PerlMagick/quantum/typemap") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/typemap" ;;
cristy3ed852e2009-09-05 21:47:34 +000037475 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
37476 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
37477 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
37478 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
37479 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
37480 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
37481 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
37482 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
37483 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
37484 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
37485 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
37486 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000037487 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
37488 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000037489 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
37490 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000037491 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
cristy2bd4b6e2012-07-22 15:29:11 +000037492 "magick.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS magick.sh.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037493 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037494 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037495 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
37496 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
37497
cristy98dddb52010-11-04 00:30:15 +000037498 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037499 esac
37500done
37501
37502
37503# If the user did not use the arguments to specify the items to instantiate,
37504# then the envvar interface is used. Set only those that are not.
37505# We use the long form for the default assignment because of an extremely
37506# bizarre bug on SunOS 4.1.3.
37507if $ac_need_defaults; then
37508 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
37509 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
37510 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
37511fi
37512
37513# Have a temporary directory for convenience. Make it in the build tree
37514# simply because there is no reason against having it here, and in addition,
37515# creating and moving files from /tmp can sometimes cause problems.
37516# Hook for its removal unless debugging.
37517# Note that there is a small window in which the directory will not be cleaned:
37518# after its creation but before its name has been assigned to `$tmp'.
37519$debug ||
37520{
cristyda16f162011-02-19 23:52:17 +000037521 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000037522 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000037523 : "${ac_tmp:=$tmp}"
37524 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000037525' 0
cristy8b350f62009-11-15 23:12:43 +000037526 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000037527}
37528# Create a (secure) tmp directory for tmp files.
37529
37530{
37531 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000037532 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000037533} ||
37534{
37535 tmp=./conf$$-$RANDOM
37536 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000037537} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037538ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000037539
37540# Set up the scripts for CONFIG_FILES section.
37541# No need to generate them if there are no CONFIG_FILES.
37542# This happens for instance with `./config.status config.h'.
37543if test -n "$CONFIG_FILES"; then
37544
37545
cristy8b350f62009-11-15 23:12:43 +000037546ac_cr=`echo X | tr X '\015'`
37547# On cygwin, bash can eat \r inside `` if the user requested igncr.
37548# But we know of no other shell where ac_cr would be empty at this
37549# point, so we can use a bashism as a fallback.
37550if test "x$ac_cr" = x; then
37551 eval ac_cr=\$\'\\r\'
37552fi
cristy3ed852e2009-09-05 21:47:34 +000037553ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
37554if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000037555 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000037556else
37557 ac_cs_awk_cr=$ac_cr
37558fi
37559
cristyda16f162011-02-19 23:52:17 +000037560echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000037561_ACEOF
37562
37563
37564{
37565 echo "cat >conf$$subs.awk <<_ACEOF" &&
37566 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
37567 echo "_ACEOF"
37568} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037569 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
37570ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000037571ac_delim='%!_!# '
37572for ac_last_try in false false false false false :; do
37573 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037574 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037575
37576 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
37577 if test $ac_delim_n = $ac_delim_num; then
37578 break
37579 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037580 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037581 else
37582 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37583 fi
37584done
37585rm -f conf$$subs.sh
37586
37587cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000037588cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037589_ACEOF
37590sed -n '
37591h
37592s/^/S["/; s/!.*/"]=/
37593p
37594g
37595s/^[^!]*!//
37596:repl
37597t repl
37598s/'"$ac_delim"'$//
37599t delim
37600:nl
37601h
cristycd4c5312009-11-22 01:19:08 +000037602s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037603t more1
37604s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
37605p
37606n
37607b repl
37608:more1
37609s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37610p
37611g
37612s/.\{148\}//
37613t nl
37614:delim
37615h
cristycd4c5312009-11-22 01:19:08 +000037616s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037617t more2
37618s/["\\]/\\&/g; s/^/"/; s/$/"/
37619p
37620b
37621:more2
37622s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37623p
37624g
37625s/.\{148\}//
37626t delim
37627' <conf$$subs.awk | sed '
37628/^[^""]/{
37629 N
37630 s/\n//
37631}
37632' >>$CONFIG_STATUS || ac_write_fail=1
37633rm -f conf$$subs.awk
37634cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37635_ACAWK
cristyda16f162011-02-19 23:52:17 +000037636cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037637 for (key in S) S_is_set[key] = 1
37638 FS = ""
37639
37640}
37641{
37642 line = $ 0
37643 nfields = split(line, field, "@")
37644 substed = 0
37645 len = length(field[1])
37646 for (i = 2; i < nfields; i++) {
37647 key = field[i]
37648 keylen = length(key)
37649 if (S_is_set[key]) {
37650 value = S[key]
37651 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
37652 len += length(value) + length(field[++i])
37653 substed = 1
37654 } else
37655 len += 1 + keylen
37656 }
37657
37658 print line
37659}
37660
37661_ACAWK
37662_ACEOF
37663cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37664if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
37665 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
37666else
37667 cat
cristyda16f162011-02-19 23:52:17 +000037668fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000037669 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037670_ACEOF
37671
cristy98dddb52010-11-04 00:30:15 +000037672# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
37673# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000037674# trailing colons and then remove the whole line if VPATH becomes empty
37675# (actually we leave an empty line to preserve line numbers).
37676if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000037677 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
37678h
37679s///
37680s/^/:/
37681s/[ ]*$/:/
37682s/:\$(srcdir):/:/g
37683s/:\${srcdir}:/:/g
37684s/:@srcdir@:/:/g
37685s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000037686s/:*$//
cristy98dddb52010-11-04 00:30:15 +000037687x
37688s/\(=[ ]*\).*/\1/
37689G
37690s/\n//
cristy3ed852e2009-09-05 21:47:34 +000037691s/^[^=]*=[ ]*$//
37692}'
37693fi
37694
37695cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37696fi # test -n "$CONFIG_FILES"
37697
37698# Set up the scripts for CONFIG_HEADERS section.
37699# No need to generate them if there are no CONFIG_HEADERS.
37700# This happens for instance with `./config.status Makefile'.
37701if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000037702cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000037703BEGIN {
37704_ACEOF
37705
37706# Transform confdefs.h into an awk script `defines.awk', embedded as
37707# here-document in config.status, that substitutes the proper values into
37708# config.h.in to produce config.h.
37709
37710# Create a delimiter string that does not exist in confdefs.h, to ease
37711# handling of long lines.
37712ac_delim='%!_!# '
37713for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000037714 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
37715 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000037716 break
37717 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037718 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037719 else
37720 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37721 fi
37722done
37723
37724# For the awk script, D is an array of macro values keyed by name,
37725# likewise P contains macro parameters if any. Preserve backslash
37726# newline sequences.
37727
37728ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
37729sed -n '
37730s/.\{148\}/&'"$ac_delim"'/g
37731t rset
37732:rset
37733s/^[ ]*#[ ]*define[ ][ ]*/ /
37734t def
37735d
37736:def
37737s/\\$//
37738t bsnl
37739s/["\\]/\\&/g
37740s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37741D["\1"]=" \3"/p
37742s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
37743d
37744:bsnl
37745s/["\\]/\\&/g
37746s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37747D["\1"]=" \3\\\\\\n"\\/p
37748t cont
37749s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
37750t cont
37751d
37752:cont
37753n
37754s/.\{148\}/&'"$ac_delim"'/g
37755t clear
37756:clear
37757s/\\$//
37758t bsnlc
37759s/["\\]/\\&/g; s/^/"/; s/$/"/p
37760d
37761:bsnlc
37762s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
37763b cont
37764' <confdefs.h | sed '
37765s/'"$ac_delim"'/"\\\
37766"/g' >>$CONFIG_STATUS || ac_write_fail=1
37767
37768cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37769 for (key in D) D_is_set[key] = 1
37770 FS = ""
37771}
37772/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
37773 line = \$ 0
37774 split(line, arg, " ")
37775 if (arg[1] == "#") {
37776 defundef = arg[2]
37777 mac1 = arg[3]
37778 } else {
37779 defundef = substr(arg[1], 2)
37780 mac1 = arg[2]
37781 }
37782 split(mac1, mac2, "(") #)
37783 macro = mac2[1]
37784 prefix = substr(line, 1, index(line, defundef) - 1)
37785 if (D_is_set[macro]) {
37786 # Preserve the white space surrounding the "#".
37787 print prefix "define", macro P[macro] D[macro]
37788 next
37789 } else {
37790 # Replace #undef with comments. This is necessary, for example,
37791 # in the case of _POSIX_SOURCE, which is predefined and required
37792 # on some systems where configure will not decide to define it.
37793 if (defundef == "undef") {
37794 print "/*", prefix defundef, macro, "*/"
37795 next
37796 }
37797 }
37798}
37799{ print }
37800_ACAWK
37801_ACEOF
37802cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000037803 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037804fi # test -n "$CONFIG_HEADERS"
37805
37806
37807eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
37808shift
37809for ac_tag
37810do
37811 case $ac_tag in
37812 :[FHLC]) ac_mode=$ac_tag; continue;;
37813 esac
37814 case $ac_mode$ac_tag in
37815 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000037816 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037817 :[FH]-) ac_tag=-:-;;
37818 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
37819 esac
37820 ac_save_IFS=$IFS
37821 IFS=:
37822 set x $ac_tag
37823 IFS=$ac_save_IFS
37824 shift
37825 ac_file=$1
37826 shift
37827
37828 case $ac_mode in
37829 :L) ac_source=$1;;
37830 :[FH])
37831 ac_file_inputs=
37832 for ac_f
37833 do
37834 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000037835 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000037836 *) # Look for the file first in the build tree, then in the source tree
37837 # (if the path is not absolute). The absolute path cannot be DOS-style,
37838 # because $ac_f cannot contain `:'.
37839 test -f "$ac_f" ||
37840 case $ac_f in
37841 [\\/$]*) false;;
37842 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
37843 esac ||
cristy98dddb52010-11-04 00:30:15 +000037844 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037845 esac
37846 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000037847 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000037848 done
37849
37850 # Let's still pretend it is `configure' which instantiates (i.e., don't
37851 # use $as_me), people would be surprised to read:
37852 # /* config.h. Generated by config.status. */
37853 configure_input='Generated from '`
37854 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
37855 `' by configure.'
37856 if test x"$ac_file" != x-; then
37857 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000037858 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000037859$as_echo "$as_me: creating $ac_file" >&6;}
37860 fi
37861 # Neutralize special characters interpreted by sed in replacement strings.
37862 case $configure_input in #(
37863 *\&* | *\|* | *\\* )
37864 ac_sed_conf_input=`$as_echo "$configure_input" |
37865 sed 's/[\\\\&|]/\\\\&/g'`;; #(
37866 *) ac_sed_conf_input=$configure_input;;
37867 esac
37868
37869 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000037870 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000037871 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000037872 esac
37873 ;;
37874 esac
37875
37876 ac_dir=`$as_dirname -- "$ac_file" ||
37877$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37878 X"$ac_file" : 'X\(//\)[^/]' \| \
37879 X"$ac_file" : 'X\(//\)$' \| \
37880 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
37881$as_echo X"$ac_file" |
37882 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37883 s//\1/
37884 q
37885 }
37886 /^X\(\/\/\)[^/].*/{
37887 s//\1/
37888 q
37889 }
37890 /^X\(\/\/\)$/{
37891 s//\1/
37892 q
37893 }
37894 /^X\(\/\).*/{
37895 s//\1/
37896 q
37897 }
37898 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000037899 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000037900 ac_builddir=.
37901
37902case "$ac_dir" in
37903.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
37904*)
37905 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
37906 # A ".." for each directory in $ac_dir_suffix.
37907 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
37908 case $ac_top_builddir_sub in
37909 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
37910 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
37911 esac ;;
37912esac
37913ac_abs_top_builddir=$ac_pwd
37914ac_abs_builddir=$ac_pwd$ac_dir_suffix
37915# for backward compatibility:
37916ac_top_builddir=$ac_top_build_prefix
37917
37918case $srcdir in
37919 .) # We are building in place.
37920 ac_srcdir=.
37921 ac_top_srcdir=$ac_top_builddir_sub
37922 ac_abs_top_srcdir=$ac_pwd ;;
37923 [\\/]* | ?:[\\/]* ) # Absolute name.
37924 ac_srcdir=$srcdir$ac_dir_suffix;
37925 ac_top_srcdir=$srcdir
37926 ac_abs_top_srcdir=$srcdir ;;
37927 *) # Relative name.
37928 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
37929 ac_top_srcdir=$ac_top_build_prefix$srcdir
37930 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
37931esac
37932ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
37933
37934
37935 case $ac_mode in
37936 :F)
37937 #
37938 # CONFIG_FILE
37939 #
37940
37941 case $INSTALL in
37942 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
37943 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
37944 esac
cristy73bd4a52010-10-05 11:24:23 +000037945 ac_MKDIR_P=$MKDIR_P
37946 case $MKDIR_P in
37947 [\\/$]* | ?:[\\/]* ) ;;
37948 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
37949 esac
cristy3ed852e2009-09-05 21:47:34 +000037950_ACEOF
37951
37952cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37953# If the template does not know about datarootdir, expand it.
37954# FIXME: This hack should be removed a few years after 2.60.
37955ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000037956ac_sed_dataroot='
37957/datarootdir/ {
37958 p
37959 q
37960}
37961/@datadir@/p
37962/@docdir@/p
37963/@infodir@/p
37964/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000037965/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000037966case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
37967*datarootdir*) ac_datarootdir_seen=yes;;
37968*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000037969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000037970$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
37971_ACEOF
37972cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37973 ac_datarootdir_hack='
37974 s&@datadir@&$datadir&g
37975 s&@docdir@&$docdir&g
37976 s&@infodir@&$infodir&g
37977 s&@localedir@&$localedir&g
37978 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000037979 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000037980esac
37981_ACEOF
37982
37983# Neutralize VPATH when `$srcdir' = `.'.
37984# Shell code in configure.ac might set extrasub.
37985# FIXME: do we really want to maintain this feature?
37986cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37987ac_sed_extra="$ac_vpsub
37988$extrasub
37989_ACEOF
37990cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37991:t
37992/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
37993s|@configure_input@|$ac_sed_conf_input|;t t
37994s&@top_builddir@&$ac_top_builddir_sub&;t t
37995s&@top_build_prefix@&$ac_top_build_prefix&;t t
37996s&@srcdir@&$ac_srcdir&;t t
37997s&@abs_srcdir@&$ac_abs_srcdir&;t t
37998s&@top_srcdir@&$ac_top_srcdir&;t t
37999s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
38000s&@builddir@&$ac_builddir&;t t
38001s&@abs_builddir@&$ac_abs_builddir&;t t
38002s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
38003s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000038004s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000038005$ac_datarootdir_hack
38006"
cristyda16f162011-02-19 23:52:17 +000038007eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
38008 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038009
38010test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000038011 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
38012 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
38013 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000038014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000038015which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000038016$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000038017which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000038018
cristyda16f162011-02-19 23:52:17 +000038019 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000038020 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000038021 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
38022 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000038023 esac \
cristy98dddb52010-11-04 00:30:15 +000038024 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038025 ;;
38026 :H)
38027 #
38028 # CONFIG_HEADER
38029 #
38030 if test x"$ac_file" != x-; then
38031 {
38032 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000038033 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
38034 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000038035 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000038036 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000038037 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000038038$as_echo "$as_me: $ac_file is unchanged" >&6;}
38039 else
38040 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000038041 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000038042 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038043 fi
38044 else
38045 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000038046 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000038047 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038048 fi
cristy73bd4a52010-10-05 11:24:23 +000038049# Compute "$ac_file"'s index in $config_headers.
38050_am_arg="$ac_file"
38051_am_stamp_count=1
38052for _am_header in $config_headers :; do
38053 case $_am_header in
38054 $_am_arg | $_am_arg:* )
38055 break ;;
38056 * )
38057 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
38058 esac
38059done
38060echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
38061$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38062 X"$_am_arg" : 'X\(//\)[^/]' \| \
38063 X"$_am_arg" : 'X\(//\)$' \| \
38064 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
38065$as_echo X"$_am_arg" |
38066 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38067 s//\1/
38068 q
38069 }
38070 /^X\(\/\/\)[^/].*/{
38071 s//\1/
38072 q
38073 }
38074 /^X\(\/\/\)$/{
38075 s//\1/
38076 q
38077 }
38078 /^X\(\/\).*/{
38079 s//\1/
38080 q
38081 }
38082 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000038083 ;;
38084
cristy8b350f62009-11-15 23:12:43 +000038085 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000038086$as_echo "$as_me: executing $ac_file commands" >&6;}
38087 ;;
38088 esac
38089
38090
38091 case $ac_file$ac_mode in
cristy01ff9f32012-12-01 18:15:29 +000038092 "MagickCore/magick-baseconfig.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-baseconfig.h`
cristy73bd4a52010-10-05 11:24:23 +000038093ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
38094ac_prefix_conf_PKG=`echo MagickCore`
38095ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
38096ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
38097ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
38098if test ".$ac_prefix_conf_INP" = "."; then
38099 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
38100 case "$ac_file" in
38101 *.h) ac_prefix_conf_INP=$ac_file ;;
38102 *)
38103 esac
38104 test ".$ac_prefix_conf_INP" != "." && break
38105 done
38106fi
38107if test ".$ac_prefix_conf_INP" = "."; then
38108 case "$ac_prefix_conf_OUT" in
38109 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
38110 ;;
38111 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
38112 ;;
38113 *) ac_prefix_conf_INP=config.h
38114 ;;
38115 esac
38116fi
38117if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000038118 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000038119else
38120 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
38121 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
38122 fi fi
38123 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
38124$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
38125 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000038126 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
38127 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
38128 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
38129 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
38130 $as_echo "#endif/" >> conftest.prefix
38131 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
38132 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
38133 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000038134 # now executing _script on _DEF input to create _OUT output file
38135 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
38136 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
38137 echo ' ' >>$tmp/pconfig.h
38138 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
38139
38140 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
38141 echo ' ' >>$tmp/pconfig.h
38142 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
38143 echo "#endif" >>$tmp/pconfig.h
38144 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
38145 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
38146$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
38147 else
38148 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
38149$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38150 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
38151 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
38152 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
38153$as_echo X"$ac_prefix_conf_OUT" |
38154 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38155 s//\1/
38156 q
38157 }
38158 /^X\(\/\/\)[^/].*/{
38159 s//\1/
38160 q
38161 }
38162 /^X\(\/\/\)$/{
38163 s//\1/
38164 q
38165 }
38166 /^X\(\/\).*/{
38167 s//\1/
38168 q
38169 }
38170 s/.*/./; q'`
38171 as_dir="$ac_dir"; as_fn_mkdir_p
38172 rm -f "$ac_prefix_conf_OUT"
38173 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
38174 fi
cristy73bd4a52010-10-05 11:24:23 +000038175 else
cristy98dddb52010-11-04 00:30:15 +000038176 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 +000038177 fi
38178 rm -f conftest.*
38179fi
38180 ;;
38181 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
cristy58d34aa2013-01-24 15:11:54 +000038182 # Older Autoconf quotes --file arguments for eval, but not when files
cristy73bd4a52010-10-05 11:24:23 +000038183 # are listed without --file. Let's play safe and only enable the eval
38184 # if we detect the quoting.
38185 case $CONFIG_FILES in
38186 *\'*) eval set x "$CONFIG_FILES" ;;
38187 *) set x $CONFIG_FILES ;;
38188 esac
38189 shift
38190 for mf
38191 do
38192 # Strip MF so we end up with the name of the file.
38193 mf=`echo "$mf" | sed -e 's/:.*$//'`
38194 # Check whether this is an Automake generated Makefile or not.
cristyc0890a62012-07-19 00:18:20 +000038195 # We used to match only the files named 'Makefile.in', but
cristy73bd4a52010-10-05 11:24:23 +000038196 # some people rename them; so instead we look at the file content.
38197 # Grep'ing the first line is not enough: some people post-process
38198 # each Makefile.in and add a new line on top of each file to say so.
38199 # Grep'ing the whole file is not good either: AIX grep has a line
38200 # limit of 2048, but all sed's we know have understand at least 4000.
38201 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
38202 dirpart=`$as_dirname -- "$mf" ||
38203$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38204 X"$mf" : 'X\(//\)[^/]' \| \
38205 X"$mf" : 'X\(//\)$' \| \
38206 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
38207$as_echo X"$mf" |
38208 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38209 s//\1/
38210 q
38211 }
38212 /^X\(\/\/\)[^/].*/{
38213 s//\1/
38214 q
38215 }
38216 /^X\(\/\/\)$/{
38217 s//\1/
38218 q
38219 }
38220 /^X\(\/\).*/{
38221 s//\1/
38222 q
38223 }
38224 s/.*/./; q'`
38225 else
38226 continue
38227 fi
38228 # Extract the definition of DEPDIR, am__include, and am__quote
cristyc0890a62012-07-19 00:18:20 +000038229 # from the Makefile without running 'make'.
cristy73bd4a52010-10-05 11:24:23 +000038230 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
38231 test -z "$DEPDIR" && continue
38232 am__include=`sed -n 's/^am__include = //p' < "$mf"`
cristybced8142013-05-31 01:23:57 +000038233 test -z "$am__include" && continue
cristy73bd4a52010-10-05 11:24:23 +000038234 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
cristy73bd4a52010-10-05 11:24:23 +000038235 # Find all dependency output files, they are included files with
38236 # $(DEPDIR) in their names. We invoke sed twice because it is the
38237 # simplest approach to changing $(DEPDIR) to its actual value in the
38238 # expansion.
38239 for file in `sed -n "
38240 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
cristyc0890a62012-07-19 00:18:20 +000038241 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
cristy73bd4a52010-10-05 11:24:23 +000038242 # Make sure the directory exists.
38243 test -f "$dirpart/$file" && continue
38244 fdir=`$as_dirname -- "$file" ||
38245$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38246 X"$file" : 'X\(//\)[^/]' \| \
38247 X"$file" : 'X\(//\)$' \| \
38248 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
38249$as_echo X"$file" |
38250 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38251 s//\1/
38252 q
38253 }
38254 /^X\(\/\/\)[^/].*/{
38255 s//\1/
38256 q
38257 }
38258 /^X\(\/\/\)$/{
38259 s//\1/
38260 q
38261 }
38262 /^X\(\/\).*/{
38263 s//\1/
38264 q
38265 }
38266 s/.*/./; q'`
38267 as_dir=$dirpart/$fdir; as_fn_mkdir_p
38268 # echo "creating $dirpart/$file"
38269 echo '# dummy' > "$dirpart/$file"
38270 done
38271 done
38272}
38273 ;;
38274 "libtool":C)
38275
38276 # See if we are running on zsh, and set the options which allow our
38277 # commands through without removal of \ escapes.
38278 if test -n "${ZSH_VERSION+set}" ; then
38279 setopt NO_GLOB_SUBST
38280 fi
38281
38282 cfgfile="${ofile}T"
38283 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
38284 $RM "$cfgfile"
38285
38286 cat <<_LT_EOF >> "$cfgfile"
38287#! $SHELL
38288
38289# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
38290# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
38291# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
38292# NOTE: Changes made to this file will be lost: look at ltmain.sh.
38293#
38294# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy99bd5232011-12-07 14:38:20 +000038295# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
38296# Foundation, Inc.
cristy73bd4a52010-10-05 11:24:23 +000038297# Written by Gordon Matzigkeit, 1996
38298#
38299# This file is part of GNU Libtool.
38300#
38301# GNU Libtool is free software; you can redistribute it and/or
38302# modify it under the terms of the GNU General Public License as
38303# published by the Free Software Foundation; either version 2 of
38304# the License, or (at your option) any later version.
38305#
38306# As a special exception to the GNU General Public License,
38307# if you distribute this file as part of a program or library that
38308# is built using GNU Libtool, you may include this file under the
38309# same distribution terms that you use for the rest of that program.
38310#
38311# GNU Libtool is distributed in the hope that it will be useful,
38312# but WITHOUT ANY WARRANTY; without even the implied warranty of
38313# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
38314# GNU General Public License for more details.
38315#
38316# You should have received a copy of the GNU General Public License
38317# along with GNU Libtool; see the file COPYING. If not, a copy
38318# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
38319# obtained by writing to the Free Software Foundation, Inc.,
38320# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
38321
38322
38323# The names of the tagged configurations supported by this script.
38324available_tags="CXX "
38325
38326# ### BEGIN LIBTOOL CONFIG
38327
38328# A sed program that does not truncate output.
38329SED=$lt_SED
38330
38331# Sed that helps us avoid accidentally triggering echo(1) options like -n.
38332Xsed="\$SED -e 1s/^X//"
38333
38334# A grep program that handles long lines.
38335GREP=$lt_GREP
38336
38337# An ERE matcher.
38338EGREP=$lt_EGREP
38339
38340# A literal string matcher.
38341FGREP=$lt_FGREP
38342
cristy0c60a692010-11-04 01:09:47 +000038343# Shell to use when invoking shell scripts.
38344SHELL=$lt_SHELL
38345
38346# An echo program that protects backslashes.
38347ECHO=$lt_ECHO
38348
cristy73bd4a52010-10-05 11:24:23 +000038349# Which release of libtool.m4 was used?
38350macro_version=$macro_version
38351macro_revision=$macro_revision
38352
38353# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000038354AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000038355
38356# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000038357DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000038358
38359# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000038360OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000038361
38362# Whether or not to build shared libraries.
38363build_libtool_libs=$enable_shared
38364
38365# Whether or not to build static libraries.
38366build_old_libs=$enable_static
38367
38368# What type of objects to build.
38369pic_mode=$pic_mode
38370
38371# Whether or not to optimize for fast installation.
38372fast_install=$enable_fast_install
38373
cristy99bd5232011-12-07 14:38:20 +000038374# The PATH separator for the build system.
38375PATH_SEPARATOR=$lt_PATH_SEPARATOR
38376
cristy73bd4a52010-10-05 11:24:23 +000038377# The host system.
38378host_alias=$host_alias
38379host=$host
38380host_os=$host_os
38381
38382# The build system.
38383build_alias=$build_alias
38384build=$build
38385build_os=$build_os
38386
38387# A BSD- or MS-compatible name lister.
38388NM=$lt_NM
38389
38390# Whether we need soft or hard links.
38391LN_S=$lt_LN_S
38392
38393# What is the maximum length of a command?
38394max_cmd_len=$max_cmd_len
38395
38396# Object file suffix (normally "o").
38397objext=$ac_objext
38398
38399# Executable file suffix (normally "").
38400exeext=$exeext
38401
38402# whether the shell understands "unset".
38403lt_unset=$lt_unset
38404
38405# turn spaces into newlines.
38406SP2NL=$lt_lt_SP2NL
38407
38408# turn newlines into spaces.
38409NL2SP=$lt_lt_NL2SP
38410
cristyda16f162011-02-19 23:52:17 +000038411# convert \$build file names to \$host format.
38412to_host_file_cmd=$lt_cv_to_host_file_cmd
38413
38414# convert \$build files to toolchain format.
38415to_tool_file_cmd=$lt_cv_to_tool_file_cmd
38416
cristy73bd4a52010-10-05 11:24:23 +000038417# Method to check whether dependent libraries are shared objects.
38418deplibs_check_method=$lt_deplibs_check_method
38419
cristyda16f162011-02-19 23:52:17 +000038420# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000038421file_magic_cmd=$lt_file_magic_cmd
38422
cristyda16f162011-02-19 23:52:17 +000038423# How to find potential files when deplibs_check_method = "file_magic".
38424file_magic_glob=$lt_file_magic_glob
38425
38426# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
38427want_nocaseglob=$lt_want_nocaseglob
38428
38429# Command to associate shared and link libraries.
38430sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
38431
cristy73bd4a52010-10-05 11:24:23 +000038432# The archiver.
38433AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000038434
38435# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000038436AR_FLAGS=$lt_AR_FLAGS
38437
cristyda16f162011-02-19 23:52:17 +000038438# How to feed a file listing to the archiver.
38439archiver_list_spec=$lt_archiver_list_spec
38440
cristy73bd4a52010-10-05 11:24:23 +000038441# A symbol stripping program.
38442STRIP=$lt_STRIP
38443
38444# Commands used to install an old-style archive.
38445RANLIB=$lt_RANLIB
38446old_postinstall_cmds=$lt_old_postinstall_cmds
38447old_postuninstall_cmds=$lt_old_postuninstall_cmds
38448
cristy0c60a692010-11-04 01:09:47 +000038449# Whether to use a lock for old archive extraction.
38450lock_old_archive_extraction=$lock_old_archive_extraction
38451
cristy73bd4a52010-10-05 11:24:23 +000038452# A C compiler.
38453LTCC=$lt_CC
38454
38455# LTCC compiler flags.
38456LTCFLAGS=$lt_CFLAGS
38457
38458# Take the output of nm and produce a listing of raw symbols and C names.
38459global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
38460
38461# Transform the output of nm in a proper C declaration.
38462global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
38463
38464# Transform the output of nm in a C name address pair.
38465global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
38466
38467# Transform the output of nm in a C name address pair when lib prefix is needed.
38468global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
38469
cristyda16f162011-02-19 23:52:17 +000038470# Specify filename containing input files for \$NM.
38471nm_file_list_spec=$lt_nm_file_list_spec
38472
38473# The root where to search for dependent libraries,and in which our libraries should be installed.
38474lt_sysroot=$lt_sysroot
38475
cristy73bd4a52010-10-05 11:24:23 +000038476# The name of the directory that contains temporary libtool files.
38477objdir=$objdir
38478
cristy73bd4a52010-10-05 11:24:23 +000038479# Used to examine libraries when file_magic_cmd begins with "file".
38480MAGIC_CMD=$MAGIC_CMD
38481
38482# Must we lock files when doing compilation?
38483need_locks=$lt_need_locks
38484
cristyda16f162011-02-19 23:52:17 +000038485# Manifest tool.
38486MANIFEST_TOOL=$lt_MANIFEST_TOOL
38487
cristy73bd4a52010-10-05 11:24:23 +000038488# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
38489DSYMUTIL=$lt_DSYMUTIL
38490
38491# Tool to change global to local symbols on Mac OS X.
38492NMEDIT=$lt_NMEDIT
38493
38494# Tool to manipulate fat objects and archives on Mac OS X.
38495LIPO=$lt_LIPO
38496
38497# ldd/readelf like tool for Mach-O binaries on Mac OS X.
38498OTOOL=$lt_OTOOL
38499
38500# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
38501OTOOL64=$lt_OTOOL64
38502
38503# Old archive suffix (normally "a").
38504libext=$libext
38505
38506# Shared library suffix (normally ".so").
38507shrext_cmds=$lt_shrext_cmds
38508
38509# The commands to extract the exported symbol list from a shared archive.
38510extract_expsyms_cmds=$lt_extract_expsyms_cmds
38511
38512# Variables whose values should be saved in libtool wrapper scripts and
38513# restored at link time.
38514variables_saved_for_relink=$lt_variables_saved_for_relink
38515
38516# Do we need the "lib" prefix for modules?
38517need_lib_prefix=$need_lib_prefix
38518
38519# Do we need a version for libraries?
38520need_version=$need_version
38521
38522# Library versioning type.
38523version_type=$version_type
38524
38525# Shared library runtime path variable.
38526runpath_var=$runpath_var
38527
38528# Shared library path variable.
38529shlibpath_var=$shlibpath_var
38530
38531# Is shlibpath searched before the hard-coded library search path?
38532shlibpath_overrides_runpath=$shlibpath_overrides_runpath
38533
38534# Format of library name prefix.
38535libname_spec=$lt_libname_spec
38536
38537# List of archive names. First name is the real one, the rest are links.
38538# The last name is the one that the linker finds with -lNAME
38539library_names_spec=$lt_library_names_spec
38540
38541# The coded name of the library, if different from the real name.
38542soname_spec=$lt_soname_spec
38543
cristy0c60a692010-11-04 01:09:47 +000038544# Permission mode override for installation of shared libraries.
38545install_override_mode=$lt_install_override_mode
38546
cristy73bd4a52010-10-05 11:24:23 +000038547# Command to use after installation of a shared archive.
38548postinstall_cmds=$lt_postinstall_cmds
38549
38550# Command to use after uninstallation of a shared archive.
38551postuninstall_cmds=$lt_postuninstall_cmds
38552
38553# Commands used to finish a libtool library installation in a directory.
38554finish_cmds=$lt_finish_cmds
38555
38556# As "finish_cmds", except a single script fragment to be evaled but
38557# not shown.
38558finish_eval=$lt_finish_eval
38559
38560# Whether we should hardcode library paths into libraries.
38561hardcode_into_libs=$hardcode_into_libs
38562
38563# Compile-time system search path for libraries.
38564sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
38565
38566# Run-time system search path for libraries.
38567sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
38568
38569# Whether dlopen is supported.
38570dlopen_support=$enable_dlopen
38571
38572# Whether dlopen of programs is supported.
38573dlopen_self=$enable_dlopen_self
38574
38575# Whether dlopen of statically linked programs is supported.
38576dlopen_self_static=$enable_dlopen_self_static
38577
38578# Commands to strip libraries.
38579old_striplib=$lt_old_striplib
38580striplib=$lt_striplib
38581
38582
38583# The linker used to build libraries.
38584LD=$lt_LD
38585
cristy0c60a692010-11-04 01:09:47 +000038586# How to create reloadable object files.
38587reload_flag=$lt_reload_flag
38588reload_cmds=$lt_reload_cmds
38589
cristy73bd4a52010-10-05 11:24:23 +000038590# Commands used to build an old-style archive.
38591old_archive_cmds=$lt_old_archive_cmds
38592
38593# A language specific compiler.
38594CC=$lt_compiler
38595
38596# Is the compiler the GNU compiler?
38597with_gcc=$GCC
38598
38599# Compiler flag to turn off builtin functions.
38600no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
38601
cristy73bd4a52010-10-05 11:24:23 +000038602# Additional compiler flags for building library objects.
38603pic_flag=$lt_lt_prog_compiler_pic
38604
cristyda16f162011-02-19 23:52:17 +000038605# How to pass a linker flag through the compiler.
38606wl=$lt_lt_prog_compiler_wl
38607
cristy73bd4a52010-10-05 11:24:23 +000038608# Compiler flag to prevent dynamic linking.
38609link_static_flag=$lt_lt_prog_compiler_static
38610
38611# Does compiler simultaneously support -c and -o options?
38612compiler_c_o=$lt_lt_cv_prog_compiler_c_o
38613
38614# Whether or not to add -lc for building shared libraries.
38615build_libtool_need_lc=$archive_cmds_need_lc
38616
38617# Whether or not to disallow shared libs when runtime libs are static.
38618allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
38619
38620# Compiler flag to allow reflexive dlopens.
38621export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
38622
38623# Compiler flag to generate shared objects directly from archives.
38624whole_archive_flag_spec=$lt_whole_archive_flag_spec
38625
38626# Whether the compiler copes with passing no objects directly.
38627compiler_needs_object=$lt_compiler_needs_object
38628
38629# Create an old-style archive from a shared archive.
38630old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
38631
38632# Create a temporary old-style archive to link instead of a shared archive.
38633old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
38634
38635# Commands used to build a shared archive.
38636archive_cmds=$lt_archive_cmds
38637archive_expsym_cmds=$lt_archive_expsym_cmds
38638
38639# Commands used to build a loadable module if different from building
38640# a shared archive.
38641module_cmds=$lt_module_cmds
38642module_expsym_cmds=$lt_module_expsym_cmds
38643
38644# Whether we are building with GNU ld or not.
38645with_gnu_ld=$lt_with_gnu_ld
38646
38647# Flag that allows shared libraries with undefined symbols to be built.
38648allow_undefined_flag=$lt_allow_undefined_flag
38649
38650# Flag that enforces no undefined symbols.
38651no_undefined_flag=$lt_no_undefined_flag
38652
38653# Flag to hardcode \$libdir into a binary during linking.
38654# This must work even if \$libdir does not exist
38655hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
38656
cristy73bd4a52010-10-05 11:24:23 +000038657# Whether we need a single "-rpath" flag with a separated argument.
38658hardcode_libdir_separator=$lt_hardcode_libdir_separator
38659
38660# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38661# DIR into the resulting binary.
38662hardcode_direct=$hardcode_direct
38663
38664# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38665# DIR into the resulting binary and the resulting library dependency is
38666# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38667# library is relocated.
38668hardcode_direct_absolute=$hardcode_direct_absolute
38669
38670# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38671# into the resulting binary.
38672hardcode_minus_L=$hardcode_minus_L
38673
38674# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38675# into the resulting binary.
38676hardcode_shlibpath_var=$hardcode_shlibpath_var
38677
38678# Set to "yes" if building a shared library automatically hardcodes DIR
38679# into the library and all subsequent libraries and executables linked
38680# against it.
38681hardcode_automatic=$hardcode_automatic
38682
38683# Set to yes if linker adds runtime paths of dependent libraries
38684# to runtime path list.
38685inherit_rpath=$inherit_rpath
38686
38687# Whether libtool must link a program against all its dependency libraries.
38688link_all_deplibs=$link_all_deplibs
38689
cristy73bd4a52010-10-05 11:24:23 +000038690# Set to "yes" if exported symbols are required.
38691always_export_symbols=$always_export_symbols
38692
38693# The commands to list exported symbols.
38694export_symbols_cmds=$lt_export_symbols_cmds
38695
38696# Symbols that should not be listed in the preloaded symbols.
38697exclude_expsyms=$lt_exclude_expsyms
38698
38699# Symbols that must always be exported.
38700include_expsyms=$lt_include_expsyms
38701
38702# Commands necessary for linking programs (against libraries) with templates.
38703prelink_cmds=$lt_prelink_cmds
38704
cristyda16f162011-02-19 23:52:17 +000038705# Commands necessary for finishing linking programs.
38706postlink_cmds=$lt_postlink_cmds
38707
cristy73bd4a52010-10-05 11:24:23 +000038708# Specify filename containing input files.
38709file_list_spec=$lt_file_list_spec
38710
38711# How to hardcode a shared library path into an executable.
38712hardcode_action=$hardcode_action
38713
38714# The directories searched by this compiler when creating a shared library.
38715compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
38716
38717# Dependencies to place before and after the objects being linked to
38718# create a shared library.
38719predep_objects=$lt_predep_objects
38720postdep_objects=$lt_postdep_objects
38721predeps=$lt_predeps
38722postdeps=$lt_postdeps
38723
38724# The library search path used internally by the compiler when linking
38725# a shared library.
38726compiler_lib_search_path=$lt_compiler_lib_search_path
38727
38728# ### END LIBTOOL CONFIG
38729
38730_LT_EOF
38731
38732 case $host_os in
38733 aix3*)
38734 cat <<\_LT_EOF >> "$cfgfile"
38735# AIX sometimes has problems with the GCC collect2 program. For some
38736# reason, if we set the COLLECT_NAMES environment variable, the problems
38737# vanish in a puff of smoke.
38738if test "X${COLLECT_NAMES+set}" != Xset; then
38739 COLLECT_NAMES=
38740 export COLLECT_NAMES
38741fi
38742_LT_EOF
38743 ;;
38744 esac
38745
38746
38747ltmain="$ac_aux_dir/ltmain.sh"
38748
38749
38750 # We use sed instead of cat because bash on DJGPP gets confused if
38751 # if finds mixed CR/LF and LF-only lines. Since sed operates in
38752 # text mode, it properly converts lines to CR/LF. This bash problem
38753 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000038754 sed '$q' "$ltmain" >> "$cfgfile" \
38755 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000038756
cristyda16f162011-02-19 23:52:17 +000038757 if test x"$xsi_shell" = xyes; then
38758 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
38759func_dirname ()\
38760{\
38761\ case ${1} in\
38762\ */*) func_dirname_result="${1%/*}${2}" ;;\
38763\ * ) func_dirname_result="${3}" ;;\
38764\ esac\
38765} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
38766 && mv -f "$cfgfile.tmp" "$cfgfile" \
38767 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38768test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038769
38770
cristyda16f162011-02-19 23:52:17 +000038771 sed -e '/^func_basename ()$/,/^} # func_basename /c\
38772func_basename ()\
38773{\
38774\ func_basename_result="${1##*/}"\
38775} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
38776 && mv -f "$cfgfile.tmp" "$cfgfile" \
38777 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38778test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038779
38780
cristyda16f162011-02-19 23:52:17 +000038781 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
38782func_dirname_and_basename ()\
38783{\
38784\ case ${1} in\
38785\ */*) func_dirname_result="${1%/*}${2}" ;;\
38786\ * ) func_dirname_result="${3}" ;;\
38787\ esac\
38788\ func_basename_result="${1##*/}"\
38789} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
38790 && mv -f "$cfgfile.tmp" "$cfgfile" \
38791 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38792test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038793
cristyda16f162011-02-19 23:52:17 +000038794
38795 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
38796func_stripname ()\
38797{\
38798\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
38799\ # positional parameters, so assign one to ordinary parameter first.\
38800\ func_stripname_result=${3}\
38801\ func_stripname_result=${func_stripname_result#"${1}"}\
38802\ func_stripname_result=${func_stripname_result%"${2}"}\
38803} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
38804 && mv -f "$cfgfile.tmp" "$cfgfile" \
38805 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38806test 0 -eq $? || _lt_function_replace_fail=:
38807
38808
38809 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
38810func_split_long_opt ()\
38811{\
38812\ func_split_long_opt_name=${1%%=*}\
38813\ func_split_long_opt_arg=${1#*=}\
38814} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
38815 && mv -f "$cfgfile.tmp" "$cfgfile" \
38816 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38817test 0 -eq $? || _lt_function_replace_fail=:
38818
38819
38820 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
38821func_split_short_opt ()\
38822{\
38823\ func_split_short_opt_arg=${1#??}\
38824\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
38825} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
38826 && mv -f "$cfgfile.tmp" "$cfgfile" \
38827 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38828test 0 -eq $? || _lt_function_replace_fail=:
38829
38830
38831 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
38832func_lo2o ()\
38833{\
38834\ case ${1} in\
38835\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
38836\ *) func_lo2o_result=${1} ;;\
38837\ esac\
38838} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
38839 && mv -f "$cfgfile.tmp" "$cfgfile" \
38840 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38841test 0 -eq $? || _lt_function_replace_fail=:
38842
38843
38844 sed -e '/^func_xform ()$/,/^} # func_xform /c\
38845func_xform ()\
38846{\
38847 func_xform_result=${1%.*}.lo\
38848} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
38849 && mv -f "$cfgfile.tmp" "$cfgfile" \
38850 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38851test 0 -eq $? || _lt_function_replace_fail=:
38852
38853
38854 sed -e '/^func_arith ()$/,/^} # func_arith /c\
38855func_arith ()\
38856{\
38857 func_arith_result=$(( $* ))\
38858} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
38859 && mv -f "$cfgfile.tmp" "$cfgfile" \
38860 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38861test 0 -eq $? || _lt_function_replace_fail=:
38862
38863
38864 sed -e '/^func_len ()$/,/^} # func_len /c\
38865func_len ()\
38866{\
38867 func_len_result=${#1}\
38868} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
38869 && mv -f "$cfgfile.tmp" "$cfgfile" \
38870 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38871test 0 -eq $? || _lt_function_replace_fail=:
38872
38873fi
38874
38875if test x"$lt_shell_append" = xyes; then
38876 sed -e '/^func_append ()$/,/^} # func_append /c\
38877func_append ()\
38878{\
38879 eval "${1}+=\\${2}"\
38880} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
38881 && mv -f "$cfgfile.tmp" "$cfgfile" \
38882 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38883test 0 -eq $? || _lt_function_replace_fail=:
38884
38885
38886 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
38887func_append_quoted ()\
38888{\
38889\ func_quote_for_eval "${2}"\
38890\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
38891} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
38892 && mv -f "$cfgfile.tmp" "$cfgfile" \
38893 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38894test 0 -eq $? || _lt_function_replace_fail=:
38895
38896
38897 # Save a `func_append' function call where possible by direct use of '+='
38898 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
38899 && mv -f "$cfgfile.tmp" "$cfgfile" \
38900 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38901 test 0 -eq $? || _lt_function_replace_fail=:
38902else
38903 # Save a `func_append' function call even when '+=' is not available
38904 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
38905 && mv -f "$cfgfile.tmp" "$cfgfile" \
38906 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38907 test 0 -eq $? || _lt_function_replace_fail=:
38908fi
38909
38910if test x"$_lt_function_replace_fail" = x":"; then
38911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
38912$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
38913fi
38914
38915
38916 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000038917 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
38918 chmod +x "$ofile"
38919
38920
38921 cat <<_LT_EOF >> "$ofile"
38922
38923# ### BEGIN LIBTOOL TAG CONFIG: CXX
38924
38925# The linker used to build libraries.
38926LD=$lt_LD_CXX
38927
cristy0c60a692010-11-04 01:09:47 +000038928# How to create reloadable object files.
38929reload_flag=$lt_reload_flag_CXX
38930reload_cmds=$lt_reload_cmds_CXX
38931
cristy73bd4a52010-10-05 11:24:23 +000038932# Commands used to build an old-style archive.
38933old_archive_cmds=$lt_old_archive_cmds_CXX
38934
38935# A language specific compiler.
38936CC=$lt_compiler_CXX
38937
38938# Is the compiler the GNU compiler?
38939with_gcc=$GCC_CXX
38940
38941# Compiler flag to turn off builtin functions.
38942no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
38943
cristy73bd4a52010-10-05 11:24:23 +000038944# Additional compiler flags for building library objects.
38945pic_flag=$lt_lt_prog_compiler_pic_CXX
38946
cristyda16f162011-02-19 23:52:17 +000038947# How to pass a linker flag through the compiler.
38948wl=$lt_lt_prog_compiler_wl_CXX
38949
cristy73bd4a52010-10-05 11:24:23 +000038950# Compiler flag to prevent dynamic linking.
38951link_static_flag=$lt_lt_prog_compiler_static_CXX
38952
38953# Does compiler simultaneously support -c and -o options?
38954compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
38955
38956# Whether or not to add -lc for building shared libraries.
38957build_libtool_need_lc=$archive_cmds_need_lc_CXX
38958
38959# Whether or not to disallow shared libs when runtime libs are static.
38960allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
38961
38962# Compiler flag to allow reflexive dlopens.
38963export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
38964
38965# Compiler flag to generate shared objects directly from archives.
38966whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
38967
38968# Whether the compiler copes with passing no objects directly.
38969compiler_needs_object=$lt_compiler_needs_object_CXX
38970
38971# Create an old-style archive from a shared archive.
38972old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
38973
38974# Create a temporary old-style archive to link instead of a shared archive.
38975old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
38976
38977# Commands used to build a shared archive.
38978archive_cmds=$lt_archive_cmds_CXX
38979archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
38980
38981# Commands used to build a loadable module if different from building
38982# a shared archive.
38983module_cmds=$lt_module_cmds_CXX
38984module_expsym_cmds=$lt_module_expsym_cmds_CXX
38985
38986# Whether we are building with GNU ld or not.
38987with_gnu_ld=$lt_with_gnu_ld_CXX
38988
38989# Flag that allows shared libraries with undefined symbols to be built.
38990allow_undefined_flag=$lt_allow_undefined_flag_CXX
38991
38992# Flag that enforces no undefined symbols.
38993no_undefined_flag=$lt_no_undefined_flag_CXX
38994
38995# Flag to hardcode \$libdir into a binary during linking.
38996# This must work even if \$libdir does not exist
38997hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
38998
cristy73bd4a52010-10-05 11:24:23 +000038999# Whether we need a single "-rpath" flag with a separated argument.
39000hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
39001
39002# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
39003# DIR into the resulting binary.
39004hardcode_direct=$hardcode_direct_CXX
39005
39006# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
39007# DIR into the resulting binary and the resulting library dependency is
39008# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
39009# library is relocated.
39010hardcode_direct_absolute=$hardcode_direct_absolute_CXX
39011
39012# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
39013# into the resulting binary.
39014hardcode_minus_L=$hardcode_minus_L_CXX
39015
39016# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
39017# into the resulting binary.
39018hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
39019
39020# Set to "yes" if building a shared library automatically hardcodes DIR
39021# into the library and all subsequent libraries and executables linked
39022# against it.
39023hardcode_automatic=$hardcode_automatic_CXX
39024
39025# Set to yes if linker adds runtime paths of dependent libraries
39026# to runtime path list.
39027inherit_rpath=$inherit_rpath_CXX
39028
39029# Whether libtool must link a program against all its dependency libraries.
39030link_all_deplibs=$link_all_deplibs_CXX
39031
cristy73bd4a52010-10-05 11:24:23 +000039032# Set to "yes" if exported symbols are required.
39033always_export_symbols=$always_export_symbols_CXX
39034
39035# The commands to list exported symbols.
39036export_symbols_cmds=$lt_export_symbols_cmds_CXX
39037
39038# Symbols that should not be listed in the preloaded symbols.
39039exclude_expsyms=$lt_exclude_expsyms_CXX
39040
39041# Symbols that must always be exported.
39042include_expsyms=$lt_include_expsyms_CXX
39043
39044# Commands necessary for linking programs (against libraries) with templates.
39045prelink_cmds=$lt_prelink_cmds_CXX
39046
cristyda16f162011-02-19 23:52:17 +000039047# Commands necessary for finishing linking programs.
39048postlink_cmds=$lt_postlink_cmds_CXX
39049
cristy73bd4a52010-10-05 11:24:23 +000039050# Specify filename containing input files.
39051file_list_spec=$lt_file_list_spec_CXX
39052
39053# How to hardcode a shared library path into an executable.
39054hardcode_action=$hardcode_action_CXX
39055
39056# The directories searched by this compiler when creating a shared library.
39057compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
39058
39059# Dependencies to place before and after the objects being linked to
39060# create a shared library.
39061predep_objects=$lt_predep_objects_CXX
39062postdep_objects=$lt_postdep_objects_CXX
39063predeps=$lt_predeps_CXX
39064postdeps=$lt_postdeps_CXX
39065
39066# The library search path used internally by the compiler when linking
39067# a shared library.
39068compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
39069
39070# ### END LIBTOOL TAG CONFIG: CXX
39071_LT_EOF
39072
39073 ;;
cristy2bd4b6e2012-07-22 15:29:11 +000039074 "magick.sh.in":C) chmod +x magick.sh ;;
cristy4c08aed2011-07-01 19:47:50 +000039075 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000039076 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000039077 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
39078 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
39079
39080 esac
39081done # for ac_tag
39082
39083
cristy8b350f62009-11-15 23:12:43 +000039084as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000039085_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000039086ac_clean_files=$ac_clean_files_save
39087
39088test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000039089 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000039090
39091
39092# configure is writing to config.log, and then calls config.status.
39093# config.status does its own redirection, appending to config.log.
39094# Unfortunately, on DOS this fails, as config.log is still kept open
39095# by configure, so config.status won't be able to write to it; its
39096# output is simply discarded. So we exec the FD to /dev/null,
39097# effectively closing config.log, so it can be properly (re)opened and
39098# appended to by config.status. When coming back to configure, we
39099# need to make the FD available again.
39100if test "$no_create" != yes; then
39101 ac_cs_success=:
39102 ac_config_status_args=
39103 test "$silent" = yes &&
39104 ac_config_status_args="$ac_config_status_args --quiet"
39105 exec 5>/dev/null
39106 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
39107 exec 5>>config.log
39108 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
39109 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000039110 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000039111fi
39112if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000039113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000039114$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
39115fi
39116
39117
39118rm -f magick-version
39119
cristy430a7312010-01-21 20:44:04 +000039120result_dejavu_font_dir='none'
39121if test "${dejavu_font_dir}x" != 'x'; then
39122 result_dejavu_font_dir=$dejavu_font_dir
39123fi
39124
cristy3ed852e2009-09-05 21:47:34 +000039125result_ghostscript_font_dir='none'
39126if test "${ghostscript_font_dir}x" != 'x'; then
39127 result_ghostscript_font_dir=$ghostscript_font_dir
39128fi
39129
39130result_windows_font_dir='none'
39131if test "${windows_font_dir}x" != 'x'; then
39132 result_windows_font_dir=${windows_font_dir}
39133fi
39134
cristyad38abe2012-12-23 23:03:21 +000039135{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
cristy3ed852e2009-09-05 21:47:34 +000039136ImageMagick is configured as follows. Please verify that this configuration
39137matches your expectations.
39138
39139Host system type: $host
39140Build system type: $build
39141
39142 Option Value
39143-------------------------------------------------------------------------------
39144Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
39145Static libraries --enable-static=$enable_static $libtool_build_static_libs
cristyc6722092012-10-14 00:19:31 +000039146Module support --with-modules=$build_modules $build_modules
cristy3ed852e2009-09-05 21:47:34 +000039147GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
39148Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
39149High Dynamic Range Imagery
39150 --enable-hdri=$enable_hdri $enable_hdri
39151
39152Delegate Configuration:
39153BZLIB --with-bzlib=$with_bzlib $have_bzlib
39154Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000039155Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000039156DJVU --with-djvu=$with_djvu $have_djvu
39157DPS --with-dps=$with_dps $have_dps
39158FFTW --with-fftw=$with_fftw $have_fftw
39159FlashPIX --with-fpx=$with_fpx $have_fpx
39160FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
39161FreeType --with-freetype=$with_freetype $have_freetype
39162GhostPCL None $PCLDelegate ($PCLVersion)
39163GhostXPS None $XPSDelegate ($XPSVersion)
39164Ghostscript None $PSDelegate ($GSVersion)
39165Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
39166Ghostscript lib --with-gslib=$with_gslib $have_gslib
39167Graphviz --with-gvc=$with_gvc $have_gvc
39168JBIG --with-jbig=$with_jbig $have_jbig
39169JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
39170JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000039171LCMS v1 --with-lcms=$with_lcms $have_lcms
39172LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy99db3872014-01-01 15:11:34 +000039173LIBJPEG2 --with-openjp2=$with_openjp2 $have_openjp2
cristy3ed852e2009-09-05 21:47:34 +000039174LQR --with-lqr=$with_lqr $have_lqr
cristy5eef09f2012-10-16 12:08:28 +000039175LTDL --with-ltdl=$with_ltdl $have_ltdl
cristyfbb0ef02010-12-19 02:32:11 +000039176LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000039177Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
39178OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000039179PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000039180PERL --with-perl=$with_perl $have_perl
39181PNG --with-png=$with_png $have_png
39182RSVG --with-rsvg=$with_rsvg $have_rsvg
39183TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000039184WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000039185Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy01ff9f32012-12-01 18:15:29 +000039186WMF --with-wmf=$with_wmf $have_wmf
cristy3ed852e2009-09-05 21:47:34 +000039187X11 --with-x=$with_x $have_x
39188XML --with-xml=$with_xml $have_xml
39189ZLIB --with-zlib=$with_zlib $have_zlib
39190
39191X11 Configuration:
39192 X_CFLAGS = $X_CFLAGS
39193 X_PRE_LIBS = $X_PRE_LIBS
39194 X_LIBS = $X_LIBS
39195 X_EXTRA_LIBS = $X_EXTRA_LIBS
39196
39197Options used to compile and link:
39198 PREFIX = $PREFIX_DIR
39199 EXEC-PREFIX = $EXEC_PREFIX_DIR
39200 VERSION = $PACKAGE_VERSION
39201 CC = $CC
39202 CFLAGS = $CFLAGS
cristy03ae99f2014-04-28 16:34:55 +000039203 CPPFLAGS = $CPPFLAGS
39204 PCFLAGS = $PCFLAGS
cristy3ed852e2009-09-05 21:47:34 +000039205 DEFS = $DEFS
39206 LDFLAGS = $LDFLAGS
cristy03ae99f2014-04-28 16:34:55 +000039207 LIBS = $LIBS
cristy3ed852e2009-09-05 21:47:34 +000039208 CXX = $CXX
39209 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000039210 FEATURES = $MAGICK_FEATURES
cristy422d5502012-12-22 22:20:57 +000039211 DELEGATES = $MAGICK_DELEGATES
cristy3ed852e2009-09-05 21:47:34 +000039212" >&5
cristyad38abe2012-12-23 23:03:21 +000039213$as_echo "
cristy3ed852e2009-09-05 21:47:34 +000039214ImageMagick is configured as follows. Please verify that this configuration
39215matches your expectations.
39216
39217Host system type: $host
39218Build system type: $build
39219
39220 Option Value
39221-------------------------------------------------------------------------------
39222Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
39223Static libraries --enable-static=$enable_static $libtool_build_static_libs
cristyc6722092012-10-14 00:19:31 +000039224Module support --with-modules=$build_modules $build_modules
cristy3ed852e2009-09-05 21:47:34 +000039225GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
39226Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
39227High Dynamic Range Imagery
39228 --enable-hdri=$enable_hdri $enable_hdri
39229
39230Delegate Configuration:
39231BZLIB --with-bzlib=$with_bzlib $have_bzlib
39232Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000039233Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000039234DJVU --with-djvu=$with_djvu $have_djvu
39235DPS --with-dps=$with_dps $have_dps
39236FFTW --with-fftw=$with_fftw $have_fftw
39237FlashPIX --with-fpx=$with_fpx $have_fpx
39238FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
39239FreeType --with-freetype=$with_freetype $have_freetype
39240GhostPCL None $PCLDelegate ($PCLVersion)
39241GhostXPS None $XPSDelegate ($XPSVersion)
39242Ghostscript None $PSDelegate ($GSVersion)
39243Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
39244Ghostscript lib --with-gslib=$with_gslib $have_gslib
39245Graphviz --with-gvc=$with_gvc $have_gvc
39246JBIG --with-jbig=$with_jbig $have_jbig
39247JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
39248JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000039249LCMS v1 --with-lcms=$with_lcms $have_lcms
39250LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy99db3872014-01-01 15:11:34 +000039251LIBJPEG2 --with-openjp2=$with_openjp2 $have_openjp2
cristy3ed852e2009-09-05 21:47:34 +000039252LQR --with-lqr=$with_lqr $have_lqr
cristy5eef09f2012-10-16 12:08:28 +000039253LTDL --with-ltdl=$with_ltdl $have_ltdl
cristyfbb0ef02010-12-19 02:32:11 +000039254LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000039255Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
39256OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000039257PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000039258PERL --with-perl=$with_perl $have_perl
39259PNG --with-png=$with_png $have_png
39260RSVG --with-rsvg=$with_rsvg $have_rsvg
39261TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000039262WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000039263Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy01ff9f32012-12-01 18:15:29 +000039264WMF --with-wmf=$with_wmf $have_wmf
cristy3ed852e2009-09-05 21:47:34 +000039265X11 --with-x=$with_x $have_x
39266XML --with-xml=$with_xml $have_xml
39267ZLIB --with-zlib=$with_zlib $have_zlib
39268
39269X11 Configuration:
39270 X_CFLAGS = $X_CFLAGS
39271 X_PRE_LIBS = $X_PRE_LIBS
39272 X_LIBS = $X_LIBS
39273 X_EXTRA_LIBS = $X_EXTRA_LIBS
39274
39275Options used to compile and link:
39276 PREFIX = $PREFIX_DIR
39277 EXEC-PREFIX = $EXEC_PREFIX_DIR
39278 VERSION = $PACKAGE_VERSION
39279 CC = $CC
39280 CFLAGS = $CFLAGS
cristy03ae99f2014-04-28 16:34:55 +000039281 CPPFLAGS = $CPPFLAGS
39282 PCFLAGS = $PCFLAGS
cristy3ed852e2009-09-05 21:47:34 +000039283 DEFS = $DEFS
39284 LDFLAGS = $LDFLAGS
cristy03ae99f2014-04-28 16:34:55 +000039285 LIBS = $LIBS
cristy3ed852e2009-09-05 21:47:34 +000039286 CXX = $CXX
39287 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000039288 FEATURES = $MAGICK_FEATURES
cristy422d5502012-12-22 22:20:57 +000039289 DELEGATES = $MAGICK_DELEGATES
cristyad38abe2012-12-23 23:03:21 +000039290" >&6; }