blob: a88c1b000386188e0173a50d744b7585ddaee105 [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
cristy3ed852e2009-09-05 21:47:34 +0000687windows_font_dir
cristy5a3dc992014-12-05 19:50:04 +0000688ghostscript_font_dir
cristy430a7312010-01-21 20:44:04 +0000689dejavu_font_dir
cristy5a3dc992014-12-05 19:50:04 +0000690apple_font_dir
cristy3ed852e2009-09-05 21:47:34 +0000691PrintDelegate
692ZipDelegate
693XPSDelegate
694WWWDecodeDelegate
695WMFDecodeDelegate
cristy86e86092013-08-04 17:43:57 +0000696WebPEncodeDelegate
697WebPDecodeDelegate
cristy5ac9ac82010-07-29 13:24:24 +0000698UniconvertorDelegate
cristy3ed852e2009-09-05 21:47:34 +0000699TXTDelegate
cristyec6934f2012-08-14 18:38:40 +0000700SVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000701SCANDecodeDelegate
cristy4689cf02010-02-17 21:15:45 +0000702RSVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000703RMDelegate
704RLEEncodeDelegate
705PSDelegate
706POVDelegate
707PGPDecodeDelegate
708PCLDelegate
709MVDelegate
cristy935c86e2010-06-05 23:50:07 +0000710MrSIDDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000711MPEGEncodeDelegate
712MPEGDecodeDelegate
cristy66f238e2014-05-16 12:21:48 +0000713MogrifyDelegate
cristy3ed852e2009-09-05 21:47:34 +0000714MANDelegate
715LaunchDelegate
cristy3ed852e2009-09-05 21:47:34 +0000716LPRDelegate
717LPDelegate
cristy71f53d52013-04-27 13:33:59 +0000718JXREncodeDelegate
719JXRDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000720ILBMEncodeDelegate
721ILBMDecodeDelegate
722HTMLDecodeDelegate
723HPGLDecodeDelegate
cristy66f238e2014-05-16 12:21:48 +0000724GVCDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000725GnuplotDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000726EditorDelegate
727EchoDelegate
cristy66f238e2014-05-16 12:21:48 +0000728DisplayDelegate
729ConvertDelegate
cristy3ed852e2009-09-05 21:47:34 +0000730DVIDecodeDelegate
cristy66f238e2014-05-16 12:21:48 +0000731DOCDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000732DNGDecodeDelegate
733CatDelegate
cristy3ed852e2009-09-05 21:47:34 +0000734BrowseDelegate
735BZIPDelegate
736BlenderDecodeDelegate
cristy16b412d2014-12-15 11:09:48 +0000737BGPEncodeDelegate
738BGPDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000739AutotraceDecodeDelegate
cristy670aa3c2011-11-03 00:54:00 +0000740SHAREARCH_PATH
cristy54378032012-12-04 15:52:20 +0000741SHAREARCH_RELATIVE_PATH
742SHAREARCH_DIRNAME
743SHAREARCH_BASEDIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000744SHARE_PATH
cristy4f820712011-04-01 12:35:43 +0000745CONFIGURE_PATH
cristydd17feb2014-03-05 02:06:32 +0000746INSTALL_DOC_FALSE
747INSTALL_DOC_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000748DOCUMENTATION_PATH
749FILTER_PATH
cristy01ff9f32012-12-01 18:15:29 +0000750FILTER_DIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000751CODER_PATH
cristy01ff9f32012-12-01 18:15:29 +0000752CODER_DIRNAME
753MODULES_PATH
754MODULES_RELATIVE_PATH
755MODULES_DIRNAME
756MODULES_BASEDIRNAME
cristy8d0ff762013-03-10 20:33:28 +0000757LIB_BIN_DIR_PATH
758LIB_BIN_DIR_RELATIVE_PATH
759LIB_BIN_DIR
760LIB_BIN_BASEDIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000761LIBRARY_PATH
762EXECUTABLE_PATH
cristye52f12f2012-12-31 15:32:36 +0000763INCLUDEARCH_PATH
cristy2a11bef2011-10-28 18:33:11 +0000764INCLUDE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000765PERLMAINCC
766XML_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000767XML_DELEGATE_FALSE
768XML_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000769xml2_config
cristy03f7cf92011-12-15 01:40:41 +0000770WMF_LIBS_DEPS
cristy3ed852e2009-09-05 21:47:34 +0000771WMF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000772WMF_DELEGATE_FALSE
773WMF_DELEGATE_TRUE
cristyb1860752011-03-14 00:27:46 +0000774WEBP_LIBS
775WEBP_DELEGATE_FALSE
776WEBP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000777TIFF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000778TIFF_DELEGATE_FALSE
779TIFF_DELEGATE_TRUE
780CAIRO_DELEGATE_FALSE
781CAIRO_DELEGATE_TRUE
782RSVG_DELEGATE_FALSE
783RSVG_DELEGATE_TRUE
784CAIRO_SVG_LIBS
785CAIRO_SVG_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000786RSVG_LIBS
787RSVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +0000788PNG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000789PNG_DELEGATE_FALSE
790PNG_DELEGATE_TRUE
cristya054b762012-03-26 23:16:00 +0000791PANGOCAIRO_DELEGATE_FALSE
792PANGOCAIRO_DELEGATE_TRUE
cristy41cbe8a2011-10-27 01:35:18 +0000793PANGO_DELEGATE_FALSE
794PANGO_DELEGATE_TRUE
795PANGO_LIBS
796PANGO_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000797OPENEXR_DELEGATE_FALSE
798OPENEXR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000799OPENEXR_LIBS
800OPENEXR_CFLAGS
cristyfbb0ef02010-12-19 02:32:11 +0000801LZMA_DELEGATE_FALSE
802LZMA_DELEGATE_TRUE
cristyb94e5002011-11-14 13:20:10 +0000803LZMA_LIBS
804LZMA_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000805LQR_DELEGATE_FALSE
806LQR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000807LQR_LIBS
808LQR_CFLAGS
cristy99db3872014-01-01 15:11:34 +0000809LIBOPENJP2_DELEGATE_FALSE
810LIBOPENJP2_DELEGATE_TRUE
811LIBOPENJP2_LIBS
812LIBOPENJP2_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000813LCMS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000814LCMS_DELEGATE_FALSE
815LCMS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000816JPEG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000817JPEG_DELEGATE_FALSE
818JPEG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000819JBIG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000820JBIG_DELEGATE_FALSE
821JBIG_DELEGATE_TRUE
822GVC_DELEGATE_FALSE
823GVC_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000824GVC_LIBS
825GVC_CFLAGS
826GS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000827GS_DELEGATE_FALSE
828GS_DELEGATE_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000829FREETYPE_DELEGATE_FALSE
830FREETYPE_DELEGATE_TRUE
cristy03f187e2013-01-24 00:22:19 +0000831FREETYPE_LIBS
832FREETYPE_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000833FONTCONFIG_DELEGATE_FALSE
834FONTCONFIG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000835FONTCONFIG_LIBS
836FONTCONFIG_CFLAGS
cristy853d9902014-08-21 18:50:43 +0000837DJVU_LIBS
838DJVU_DELEGATE_FALSE
839DJVU_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000840FPX_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000841FPX_DELEGATE_FALSE
842FPX_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000843FFTW_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000844FFTW_DELEGATE_FALSE
845FFTW_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000846DPS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000847DPS_DELEGATE_FALSE
848DPS_DELEGATE_TRUE
849AUTOTRACE_DELEGATE_FALSE
850AUTOTRACE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000851AUTOTRACE_LIBS
852AUTOTRACE_CFLAGS
853LIB_DL
cristy5eef09f2012-10-16 12:08:28 +0000854WITH_LTDL_FALSE
855WITH_LTDL_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000856ZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000857ZLIB_DELEGATE_FALSE
858ZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000859XEXT_LIBS
860X11_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000861X11_DELEGATE_FALSE
862X11_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000863X_EXTRA_LIBS
864X_LIBS
865X_PRE_LIBS
866X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000867XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000868BZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000869BZLIB_DELEGATE_FALSE
870BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000871CCMALLOCDelegate
872UMEM_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000873HasUMEM_FALSE
874HasUMEM_TRUE
cristy3b0097d2014-11-04 15:34:47 +0000875JEMALLOC_LIBS
876HasJEMALLOC_FALSE
877HasJEMALLOC_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000878GOMP_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000879WITH_MAGICK_PLUS_PLUS_FALSE
880WITH_MAGICK_PLUS_PLUS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000881OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000882MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000883POW_LIB
884LIBOBJS
cristy6d5e20f2011-04-25 13:48:54 +0000885UINTPTR_F
cristy3ed852e2009-09-05 21:47:34 +0000886UINTPTR_T
cristy6d5e20f2011-04-25 13:48:54 +0000887UINTMAX_F
cristy3ed852e2009-09-05 21:47:34 +0000888UINTMAX_T
cristy6d5e20f2011-04-25 13:48:54 +0000889UINT64_F
cristy3ed852e2009-09-05 21:47:34 +0000890UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000891INT64_F
cristy3ed852e2009-09-05 21:47:34 +0000892INT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000893UINT32_F
cristy3ed852e2009-09-05 21:47:34 +0000894UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +0000895INT32_F
cristy3ed852e2009-09-05 21:47:34 +0000896INT32_T
897UINT16_T
898INT16_T
899UINT8_T
900INT8_T
901LIBRARY_EXTRA_CPPFLAGS
902MODULE_EXTRA_CPPFLAGS
903LIBSTDCLDFLAGS
904PERL_MAKE_OPTIONS
cristy3a75f062012-09-08 23:29:40 +0000905MAGICK_LT_RELEASE_OPTS
cristy7a26abd2012-12-03 00:18:59 +0000906MAGICK_ABI_SUFFIX
cristy3ed852e2009-09-05 21:47:34 +0000907QUANTUM_DEPTH
cristy71d8c202012-03-20 17:05:01 +0000908LEGACY_SUPPORT_FALSE
909LEGACY_SUPPORT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000910MAINT
911MAINTAINER_MODE_FALSE
912MAINTAINER_MODE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000913MAGICK_HDRI
cristy73bd4a52010-10-05 11:24:23 +0000914WITH_MODULES_FALSE
915WITH_MODULES_TRUE
916WITH_SHARED_LIBS_FALSE
917WITH_SHARED_LIBS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000918LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +0000919CXXCPP
920OTOOL64
921OTOOL
922LIPO
923NMEDIT
924DSYMUTIL
cristyda16f162011-02-19 23:52:17 +0000925MANIFEST_TOOL
cristy73bd4a52010-10-05 11:24:23 +0000926RANLIB
cristy73bd4a52010-10-05 11:24:23 +0000927NM
928ac_ct_DUMPBIN
929DUMPBIN
930LIBTOOL
931OBJDUMP
932DLLTOOL
933AS
cristy3ed852e2009-09-05 21:47:34 +0000934LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000935CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000936CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000937OPENMP_CFLAGS
cristy1ae5c992013-07-30 14:55:07 +0000938THREAD_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000939PTHREAD_CFLAGS
940PTHREAD_LIBS
941PTHREAD_CC
942ax_pthread_config
cristy2ec87cc2013-02-18 17:46:50 +0000943pkgconfigdir
cristy670aa3c2011-11-03 00:54:00 +0000944SHAREARCH_DIR
945INCLUDEARCH_DIR
cristy3ed852e2009-09-05 21:47:34 +0000946WinPathScript
cristy73bd4a52010-10-05 11:24:23 +0000947USING_CL_FALSE
948USING_CL_TRUE
949CYGWIN_BUILD_FALSE
950CYGWIN_BUILD_TRUE
951WIN32_NATIVE_BUILD_FALSE
952WIN32_NATIVE_BUILD_TRUE
953WINGDI32_DELEGATE_FALSE
954WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000955GDI32_LIBS
cristy9b86f202012-11-28 21:55:35 +0000956HAVE_LD_VERSION_SCRIPT_FALSE
957HAVE_LD_VERSION_SCRIPT_TRUE
cristy146497a2015-05-17 22:46:16 +0000958PKG_CONFIG_LIBDIR
959PKG_CONFIG_PATH
cristy73bd4a52010-10-05 11:24:23 +0000960PKG_CONFIG
cristya0459972013-11-03 18:09:35 +0000961PRTDIAG
cristy3ed852e2009-09-05 21:47:34 +0000962LN_S
cristy3ed852e2009-09-05 21:47:34 +0000963LD
cristy73bd4a52010-10-05 11:24:23 +0000964FGREP
965SED
966am__fastdepCXX_FALSE
967am__fastdepCXX_TRUE
968CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000969ac_ct_CXX
970CXXFLAGS
971CXX
cristy9e007fe2015-01-03 16:05:07 +0000972ac_ct_AR
973AR
cristya0b81c32010-01-22 02:54:33 +0000974EGREP
975GREP
976CPP
cristy73bd4a52010-10-05 11:24:23 +0000977am__fastdepCC_FALSE
978am__fastdepCC_TRUE
979CCDEPMODE
cristy7247bba2012-02-05 16:37:27 +0000980am__nodep
cristy73bd4a52010-10-05 11:24:23 +0000981AMDEPBACKSLASH
982AMDEP_FALSE
983AMDEP_TRUE
984am__quote
985am__include
986DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000987OBJEXT
988EXEEXT
989ac_ct_CC
990CPPFLAGS
991LDFLAGS
992CFLAGS
993CC
994DIRSEP
995MAGICK_FILTER_MODULE_PATH
996MAGICK_CONFIGURE_BUILD_PATH
997MAGICK_CONFIGURE_SRC_PATH
998MAGICK_CODER_MODULE_PATH
999MAN_DIR
1000INFO_DIR
1001PERSISTINCLUDE_DIR
1002INCLUDE_DIR
1003LIB_DIR
1004LOCALSTATE_DIR
1005SHAREDSTATE_DIR
1006SYSCONF_DIR
cristyd55889c2011-03-27 00:50:24 +00001007DOC_DIR
cristy3ed852e2009-09-05 21:47:34 +00001008DATA_DIR
1009LIBEXEC_DIR
1010SBIN_DIR
1011BIN_DIR
1012EXEC_PREFIX_DIR
1013PREFIX_DIR
1014CONFIG_STATUS_DEPENDENCIES
cristy5ed9c6e2013-07-14 21:20:31 +00001015MAGICKPP_LIB_VERSION_TEXT
1016MAGICKPP_LIB_VERSION
cristy3ed852e2009-09-05 21:47:34 +00001017MAGICK_LIB_VERSION_NUMBER
1018MAGICK_LIB_VERSION_TEXT
1019MAGICK_LIB_VERSION
cristy9af1cbf2014-12-28 22:03:09 +00001020PACKAGE_VERSION_ADDENDUM
1021PACKAGE_RELEASE_DATE
1022PACKAGE_LIB_VERSION_NUMBER
1023PACKAGE_LIB_VERSION
1024PACKAGE_CHANGE_DATE
1025PACKAGE_RELEASE
1026PACKAGE_PERL_VERSION
1027MAGICKPP_LIBRARY_VERSION_INFO
1028MAGICKPP_LIBRARY_CURRENT_MIN
1029MAGICKPP_LIBRARY_AGE
1030MAGICKPP_LIBRARY_REVISION
1031MAGICKPP_LIBRARY_CURRENT
1032MAGICK_LIBRARY_VERSION_INFO
1033MAGICK_LIBRARY_CURRENT_MIN
1034MAGICK_LIBRARY_AGE
1035MAGICK_LIBRARY_REVISION
1036MAGICK_LIBRARY_CURRENT
1037MAGICK_SVN_REVISION
1038MAGICK_VERSION
1039MAGICK_PATCHLEVEL_VERSION
1040MAGICK_MICRO_VERSION
1041MAGICK_MINOR_VERSION
1042MAGICK_MAJOR_VERSION
1043MAGICK_TARGET_OS
1044MAGICK_TARGET_VENDOR
1045MAGICK_TARGET_CPU
1046CONFIGURE_ARGS
1047DISTCHECK_CONFIG_FLAGS
cristy73bd4a52010-10-05 11:24:23 +00001048AM_BACKSLASH
1049AM_DEFAULT_VERBOSITY
cristyc3fb77b2012-02-06 01:49:41 +00001050AM_DEFAULT_V
1051AM_V
cristy73bd4a52010-10-05 11:24:23 +00001052am__untar
1053am__tar
1054AMTAR
1055am__leading_dot
1056SET_MAKE
1057AWK
1058mkdir_p
1059MKDIR_P
1060INSTALL_STRIP_PROGRAM
1061STRIP
1062install_sh
1063MAKEINFO
1064AUTOHEADER
1065AUTOMAKE
1066AUTOCONF
1067ACLOCAL
1068VERSION
1069PACKAGE
1070CYGPATH_W
1071am__isrc
1072INSTALL_DATA
1073INSTALL_SCRIPT
1074INSTALL_PROGRAM
cristy3ed852e2009-09-05 21:47:34 +00001075target_os
1076target_vendor
1077target_cpu
1078target
1079host_os
1080host_vendor
1081host_cpu
1082host
1083build_os
1084build_vendor
1085build_cpu
1086build
cristy3ed852e2009-09-05 21:47:34 +00001087target_alias
1088host_alias
1089build_alias
1090LIBS
1091ECHO_T
1092ECHO_N
1093ECHO_C
1094DEFS
1095mandir
1096localedir
1097libdir
1098psdir
1099pdfdir
1100dvidir
1101htmldir
1102infodir
1103docdir
1104oldincludedir
1105includedir
1106localstatedir
1107sharedstatedir
1108sysconfdir
1109datadir
1110datarootdir
1111libexecdir
1112sbindir
1113bindir
1114program_transform_name
1115prefix
1116exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001117PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001118PACKAGE_BUGREPORT
1119PACKAGE_STRING
1120PACKAGE_VERSION
1121PACKAGE_TARNAME
1122PACKAGE_NAME
1123PATH_SEPARATOR
1124SHELL'
1125ac_subst_files=''
1126ac_user_opts='
1127enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001128enable_silent_rules
cristy187791c2015-05-03 22:17:00 +00001129enable_reproducible_build
cristy73bd4a52010-10-05 11:24:23 +00001130enable_dependency_tracking
1131with_gnu_ld
1132with_dmalloc
cristya0459972013-11-03 18:09:35 +00001133with_gcc_arch
cristy9b86f202012-11-28 21:55:35 +00001134enable_ld_version_script
cristy3ed852e2009-09-05 21:47:34 +00001135enable_bounds_checking
1136enable_osx_universal_binary
cristy670aa3c2011-11-03 00:54:00 +00001137with_includearch_dir
1138with_sharearch_dir
cristy2ec87cc2013-02-18 17:46:50 +00001139with_pkgconfigdir
cristy3ed852e2009-09-05 21:47:34 +00001140with_threads
1141enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001142enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001143enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001144enable_shared
1145enable_static
1146with_pic
1147enable_fast_install
cristyda16f162011-02-19 23:52:17 +00001148with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001149enable_libtool_lock
cristy3ed852e2009-09-05 21:47:34 +00001150with_modules
1151enable_delegate_build
1152enable_deprecated
1153enable_installed
1154enable_cipher
cristy6e3607c2011-09-13 13:59:17 +00001155enable_zero_configuration
cristy3ed852e2009-09-05 21:47:34 +00001156enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001157enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001158enable_maintainer_mode
cristy944e51f2013-04-16 18:45:02 +00001159enable_hugepages
cristy3ed852e2009-09-05 21:47:34 +00001160enable_ccmalloc
1161enable_efence
1162enable_prof
1163enable_gprof
1164enable_gcov
1165with_method_prefix
cristy71d8c202012-03-20 17:05:01 +00001166enable_legacy_support
cristy3ed852e2009-09-05 21:47:34 +00001167with_quantum_depth
1168with_cache
1169with_frozenpaths
1170with_magick_plus_plus
cristy3a75f062012-09-08 23:29:40 +00001171with_package_release_name
cristy3ed852e2009-09-05 21:47:34 +00001172with_perl
1173with_perl_options
cristy3b0097d2014-11-04 15:34:47 +00001174with_jemalloc
cristy3ed852e2009-09-05 21:47:34 +00001175with_umem
1176with_libstdc
1177with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001178with_x
cristy3ed852e2009-09-05 21:47:34 +00001179with_zlib
cristy5a3dc992014-12-05 19:50:04 +00001180with_apple_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001181with_autotrace
1182with_dps
cristy430a7312010-01-21 20:44:04 +00001183with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001184with_fftw
1185with_fpx
cristy853d9902014-08-21 18:50:43 +00001186with_djvu
cristy3ed852e2009-09-05 21:47:34 +00001187with_fontconfig
1188with_freetype
1189with_gslib
1190with_fontpath
1191with_gs_font_dir
1192with_gvc
1193with_jbig
1194with_jpeg
cristy3ed852e2009-09-05 21:47:34 +00001195with_lcms
cristy71203402010-06-18 13:12:03 +00001196with_lcms2
cristy99db3872014-01-01 15:11:34 +00001197with_openjp2
cristy3ed852e2009-09-05 21:47:34 +00001198with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001199with_lzma
cristy3ed852e2009-09-05 21:47:34 +00001200with_openexr
cristy41cbe8a2011-10-27 01:35:18 +00001201with_pango
cristy3ed852e2009-09-05 21:47:34 +00001202with_png
1203with_rsvg
1204with_tiff
cristyb1860752011-03-14 00:27:46 +00001205with_webp
cristy3ed852e2009-09-05 21:47:34 +00001206with_windows_font_dir
1207with_wmf
1208with_xml
cristydd17feb2014-03-05 02:06:32 +00001209enable_docs
cristy3ed852e2009-09-05 21:47:34 +00001210'
1211 ac_precious_vars='build_alias
1212host_alias
1213target_alias
1214CC
1215CFLAGS
1216LDFLAGS
1217LIBS
1218CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001219CPP
cristy3ed852e2009-09-05 21:47:34 +00001220CXX
1221CXXFLAGS
1222CCC
cristy73bd4a52010-10-05 11:24:23 +00001223PKG_CONFIG
cristy146497a2015-05-17 22:46:16 +00001224PKG_CONFIG_PATH
1225PKG_CONFIG_LIBDIR
cristy73bd4a52010-10-05 11:24:23 +00001226CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001227XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001228AUTOTRACE_CFLAGS
1229AUTOTRACE_LIBS
1230FONTCONFIG_CFLAGS
1231FONTCONFIG_LIBS
cristy03f187e2013-01-24 00:22:19 +00001232FREETYPE_CFLAGS
1233FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001234GVC_CFLAGS
1235GVC_LIBS
cristy99db3872014-01-01 15:11:34 +00001236LIBOPENJP2_CFLAGS
1237LIBOPENJP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001238LQR_CFLAGS
1239LQR_LIBS
cristyb94e5002011-11-14 13:20:10 +00001240LZMA_CFLAGS
1241LZMA_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001242OPENEXR_CFLAGS
1243OPENEXR_LIBS
cristy41cbe8a2011-10-27 01:35:18 +00001244PANGO_CFLAGS
1245PANGO_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001246RSVG_CFLAGS
1247RSVG_LIBS
1248CAIRO_SVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +00001249CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001250
1251
1252# Initialize some variables set by options.
1253ac_init_help=
1254ac_init_version=false
1255ac_unrecognized_opts=
1256ac_unrecognized_sep=
1257# The variables have the same names as the options, with
1258# dashes changed to underlines.
1259cache_file=/dev/null
1260exec_prefix=NONE
1261no_create=
1262no_recursion=
1263prefix=NONE
1264program_prefix=NONE
1265program_suffix=NONE
1266program_transform_name=s,x,x,
1267silent=
1268site=
1269srcdir=
1270verbose=
1271x_includes=NONE
1272x_libraries=NONE
1273
1274# Installation directory options.
1275# These are left unexpanded so users can "make install exec_prefix=/foo"
1276# and all the variables that are supposed to be based on exec_prefix
1277# by default will actually change.
1278# Use braces instead of parens because sh, perl, etc. also accept them.
1279# (The list follows the same order as the GNU Coding Standards.)
1280bindir='${exec_prefix}/bin'
1281sbindir='${exec_prefix}/sbin'
1282libexecdir='${exec_prefix}/libexec'
1283datarootdir='${prefix}/share'
1284datadir='${datarootdir}'
1285sysconfdir='${prefix}/etc'
1286sharedstatedir='${prefix}/com'
1287localstatedir='${prefix}/var'
1288includedir='${prefix}/include'
1289oldincludedir='/usr/include'
1290docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1291infodir='${datarootdir}/info'
1292htmldir='${docdir}'
1293dvidir='${docdir}'
1294pdfdir='${docdir}'
1295psdir='${docdir}'
1296libdir='${exec_prefix}/lib'
1297localedir='${datarootdir}/locale'
1298mandir='${datarootdir}/man'
1299
1300ac_prev=
1301ac_dashdash=
1302for ac_option
1303do
1304 # If the previous option needs an argument, assign it.
1305 if test -n "$ac_prev"; then
1306 eval $ac_prev=\$ac_option
1307 ac_prev=
1308 continue
1309 fi
1310
1311 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001312 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1313 *=) ac_optarg= ;;
1314 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001315 esac
1316
1317 # Accept the important Cygnus configure options, so we can diagnose typos.
1318
1319 case $ac_dashdash$ac_option in
1320 --)
1321 ac_dashdash=yes ;;
1322
1323 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1324 ac_prev=bindir ;;
1325 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1326 bindir=$ac_optarg ;;
1327
1328 -build | --build | --buil | --bui | --bu)
1329 ac_prev=build_alias ;;
1330 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1331 build_alias=$ac_optarg ;;
1332
1333 -cache-file | --cache-file | --cache-fil | --cache-fi \
1334 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1335 ac_prev=cache_file ;;
1336 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1337 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1338 cache_file=$ac_optarg ;;
1339
1340 --config-cache | -C)
1341 cache_file=config.cache ;;
1342
1343 -datadir | --datadir | --datadi | --datad)
1344 ac_prev=datadir ;;
1345 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1346 datadir=$ac_optarg ;;
1347
1348 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1349 | --dataroo | --dataro | --datar)
1350 ac_prev=datarootdir ;;
1351 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1352 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1353 datarootdir=$ac_optarg ;;
1354
1355 -disable-* | --disable-*)
1356 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1357 # Reject names that are not valid shell variable names.
1358 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001359 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001360 ac_useropt_orig=$ac_useropt
1361 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1362 case $ac_user_opts in
1363 *"
1364"enable_$ac_useropt"
1365"*) ;;
1366 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1367 ac_unrecognized_sep=', ';;
1368 esac
1369 eval enable_$ac_useropt=no ;;
1370
1371 -docdir | --docdir | --docdi | --doc | --do)
1372 ac_prev=docdir ;;
1373 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1374 docdir=$ac_optarg ;;
1375
1376 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1377 ac_prev=dvidir ;;
1378 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1379 dvidir=$ac_optarg ;;
1380
1381 -enable-* | --enable-*)
1382 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1383 # Reject names that are not valid shell variable names.
1384 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001385 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001386 ac_useropt_orig=$ac_useropt
1387 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1388 case $ac_user_opts in
1389 *"
1390"enable_$ac_useropt"
1391"*) ;;
1392 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1393 ac_unrecognized_sep=', ';;
1394 esac
1395 eval enable_$ac_useropt=\$ac_optarg ;;
1396
1397 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1398 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1399 | --exec | --exe | --ex)
1400 ac_prev=exec_prefix ;;
1401 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1402 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1403 | --exec=* | --exe=* | --ex=*)
1404 exec_prefix=$ac_optarg ;;
1405
1406 -gas | --gas | --ga | --g)
1407 # Obsolete; use --with-gas.
1408 with_gas=yes ;;
1409
1410 -help | --help | --hel | --he | -h)
1411 ac_init_help=long ;;
1412 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1413 ac_init_help=recursive ;;
1414 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1415 ac_init_help=short ;;
1416
1417 -host | --host | --hos | --ho)
1418 ac_prev=host_alias ;;
1419 -host=* | --host=* | --hos=* | --ho=*)
1420 host_alias=$ac_optarg ;;
1421
1422 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1423 ac_prev=htmldir ;;
1424 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1425 | --ht=*)
1426 htmldir=$ac_optarg ;;
1427
1428 -includedir | --includedir | --includedi | --included | --include \
1429 | --includ | --inclu | --incl | --inc)
1430 ac_prev=includedir ;;
1431 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1432 | --includ=* | --inclu=* | --incl=* | --inc=*)
1433 includedir=$ac_optarg ;;
1434
1435 -infodir | --infodir | --infodi | --infod | --info | --inf)
1436 ac_prev=infodir ;;
1437 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1438 infodir=$ac_optarg ;;
1439
1440 -libdir | --libdir | --libdi | --libd)
1441 ac_prev=libdir ;;
1442 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1443 libdir=$ac_optarg ;;
1444
1445 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1446 | --libexe | --libex | --libe)
1447 ac_prev=libexecdir ;;
1448 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1449 | --libexe=* | --libex=* | --libe=*)
1450 libexecdir=$ac_optarg ;;
1451
1452 -localedir | --localedir | --localedi | --localed | --locale)
1453 ac_prev=localedir ;;
1454 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1455 localedir=$ac_optarg ;;
1456
1457 -localstatedir | --localstatedir | --localstatedi | --localstated \
1458 | --localstate | --localstat | --localsta | --localst | --locals)
1459 ac_prev=localstatedir ;;
1460 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1461 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1462 localstatedir=$ac_optarg ;;
1463
1464 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1465 ac_prev=mandir ;;
1466 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1467 mandir=$ac_optarg ;;
1468
1469 -nfp | --nfp | --nf)
1470 # Obsolete; use --without-fp.
1471 with_fp=no ;;
1472
1473 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1474 | --no-cr | --no-c | -n)
1475 no_create=yes ;;
1476
1477 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1478 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1479 no_recursion=yes ;;
1480
1481 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1482 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1483 | --oldin | --oldi | --old | --ol | --o)
1484 ac_prev=oldincludedir ;;
1485 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1486 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1487 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1488 oldincludedir=$ac_optarg ;;
1489
1490 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1491 ac_prev=prefix ;;
1492 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1493 prefix=$ac_optarg ;;
1494
1495 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1496 | --program-pre | --program-pr | --program-p)
1497 ac_prev=program_prefix ;;
1498 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1499 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1500 program_prefix=$ac_optarg ;;
1501
1502 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1503 | --program-suf | --program-su | --program-s)
1504 ac_prev=program_suffix ;;
1505 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1506 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1507 program_suffix=$ac_optarg ;;
1508
1509 -program-transform-name | --program-transform-name \
1510 | --program-transform-nam | --program-transform-na \
1511 | --program-transform-n | --program-transform- \
1512 | --program-transform | --program-transfor \
1513 | --program-transfo | --program-transf \
1514 | --program-trans | --program-tran \
1515 | --progr-tra | --program-tr | --program-t)
1516 ac_prev=program_transform_name ;;
1517 -program-transform-name=* | --program-transform-name=* \
1518 | --program-transform-nam=* | --program-transform-na=* \
1519 | --program-transform-n=* | --program-transform-=* \
1520 | --program-transform=* | --program-transfor=* \
1521 | --program-transfo=* | --program-transf=* \
1522 | --program-trans=* | --program-tran=* \
1523 | --progr-tra=* | --program-tr=* | --program-t=*)
1524 program_transform_name=$ac_optarg ;;
1525
1526 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1527 ac_prev=pdfdir ;;
1528 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1529 pdfdir=$ac_optarg ;;
1530
1531 -psdir | --psdir | --psdi | --psd | --ps)
1532 ac_prev=psdir ;;
1533 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1534 psdir=$ac_optarg ;;
1535
1536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1537 | -silent | --silent | --silen | --sile | --sil)
1538 silent=yes ;;
1539
1540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1541 ac_prev=sbindir ;;
1542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1543 | --sbi=* | --sb=*)
1544 sbindir=$ac_optarg ;;
1545
1546 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1548 | --sharedst | --shareds | --shared | --share | --shar \
1549 | --sha | --sh)
1550 ac_prev=sharedstatedir ;;
1551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1554 | --sha=* | --sh=*)
1555 sharedstatedir=$ac_optarg ;;
1556
1557 -site | --site | --sit)
1558 ac_prev=site ;;
1559 -site=* | --site=* | --sit=*)
1560 site=$ac_optarg ;;
1561
1562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1563 ac_prev=srcdir ;;
1564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1565 srcdir=$ac_optarg ;;
1566
1567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1568 | --syscon | --sysco | --sysc | --sys | --sy)
1569 ac_prev=sysconfdir ;;
1570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1572 sysconfdir=$ac_optarg ;;
1573
1574 -target | --target | --targe | --targ | --tar | --ta | --t)
1575 ac_prev=target_alias ;;
1576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1577 target_alias=$ac_optarg ;;
1578
1579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1580 verbose=yes ;;
1581
1582 -version | --version | --versio | --versi | --vers | -V)
1583 ac_init_version=: ;;
1584
1585 -with-* | --with-*)
1586 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1587 # Reject names that are not valid shell variable names.
1588 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001589 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001590 ac_useropt_orig=$ac_useropt
1591 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1592 case $ac_user_opts in
1593 *"
1594"with_$ac_useropt"
1595"*) ;;
1596 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1597 ac_unrecognized_sep=', ';;
1598 esac
1599 eval with_$ac_useropt=\$ac_optarg ;;
1600
1601 -without-* | --without-*)
1602 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1603 # Reject names that are not valid shell variable names.
1604 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001605 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001606 ac_useropt_orig=$ac_useropt
1607 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1608 case $ac_user_opts in
1609 *"
1610"with_$ac_useropt"
1611"*) ;;
1612 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1613 ac_unrecognized_sep=', ';;
1614 esac
1615 eval with_$ac_useropt=no ;;
1616
1617 --x)
1618 # Obsolete; use --with-x.
1619 with_x=yes ;;
1620
1621 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1622 | --x-incl | --x-inc | --x-in | --x-i)
1623 ac_prev=x_includes ;;
1624 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1625 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1626 x_includes=$ac_optarg ;;
1627
1628 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1629 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1630 ac_prev=x_libraries ;;
1631 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1632 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1633 x_libraries=$ac_optarg ;;
1634
cristy98dddb52010-11-04 00:30:15 +00001635 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1636Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001637 ;;
1638
1639 *=*)
1640 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1641 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001642 case $ac_envvar in #(
1643 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001644 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001645 esac
cristy3ed852e2009-09-05 21:47:34 +00001646 eval $ac_envvar=\$ac_optarg
1647 export $ac_envvar ;;
1648
1649 *)
1650 # FIXME: should be removed in autoconf 3.0.
1651 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1652 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1653 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001654 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001655 ;;
1656
1657 esac
1658done
1659
1660if test -n "$ac_prev"; then
1661 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001662 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001663fi
1664
1665if test -n "$ac_unrecognized_opts"; then
1666 case $enable_option_checking in
1667 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001668 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001669 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1670 esac
1671fi
1672
1673# Check all directory arguments for consistency.
1674for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1675 datadir sysconfdir sharedstatedir localstatedir includedir \
1676 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1677 libdir localedir mandir
1678do
1679 eval ac_val=\$$ac_var
1680 # Remove trailing slashes.
1681 case $ac_val in
1682 */ )
1683 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1684 eval $ac_var=\$ac_val;;
1685 esac
1686 # Be sure to have absolute directory names.
1687 case $ac_val in
1688 [\\/$]* | ?:[\\/]* ) continue;;
1689 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1690 esac
cristy98dddb52010-11-04 00:30:15 +00001691 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001692done
1693
1694# There might be people who depend on the old broken behavior: `$host'
1695# used to hold the argument of --host etc.
1696# FIXME: To remove some day.
1697build=$build_alias
1698host=$host_alias
1699target=$target_alias
1700
1701# FIXME: To remove some day.
1702if test "x$host_alias" != x; then
1703 if test "x$build_alias" = x; then
1704 cross_compiling=maybe
cristy3ed852e2009-09-05 21:47:34 +00001705 elif test "x$build_alias" != "x$host_alias"; then
1706 cross_compiling=yes
1707 fi
1708fi
1709
1710ac_tool_prefix=
1711test -n "$host_alias" && ac_tool_prefix=$host_alias-
1712
1713test "$silent" = yes && exec 6>/dev/null
1714
1715
1716ac_pwd=`pwd` && test -n "$ac_pwd" &&
1717ac_ls_di=`ls -di .` &&
1718ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001719 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001720test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001721 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001722
1723
1724# Find the source files, if location was not specified.
1725if test -z "$srcdir"; then
1726 ac_srcdir_defaulted=yes
1727 # Try the directory containing this script, then the parent directory.
1728 ac_confdir=`$as_dirname -- "$as_myself" ||
1729$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1730 X"$as_myself" : 'X\(//\)[^/]' \| \
1731 X"$as_myself" : 'X\(//\)$' \| \
1732 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1733$as_echo X"$as_myself" |
1734 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1735 s//\1/
1736 q
1737 }
1738 /^X\(\/\/\)[^/].*/{
1739 s//\1/
1740 q
1741 }
1742 /^X\(\/\/\)$/{
1743 s//\1/
1744 q
1745 }
1746 /^X\(\/\).*/{
1747 s//\1/
1748 q
1749 }
1750 s/.*/./; q'`
1751 srcdir=$ac_confdir
1752 if test ! -r "$srcdir/$ac_unique_file"; then
1753 srcdir=..
1754 fi
1755else
1756 ac_srcdir_defaulted=no
1757fi
1758if test ! -r "$srcdir/$ac_unique_file"; then
1759 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001760 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001761fi
1762ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1763ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001764 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001765 pwd)`
1766# When building in place, set srcdir=.
1767if test "$ac_abs_confdir" = "$ac_pwd"; then
1768 srcdir=.
1769fi
1770# Remove unnecessary trailing slashes from srcdir.
1771# Double slashes in file names in object file debugging info
1772# mess up M-x gdb in Emacs.
1773case $srcdir in
1774*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1775esac
1776for ac_var in $ac_precious_vars; do
1777 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1778 eval ac_env_${ac_var}_value=\$${ac_var}
1779 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1780 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1781done
1782
1783#
1784# Report the --help message.
1785#
1786if test "$ac_init_help" = "long"; then
1787 # Omit some internal or obsolete options to make the list less imposing.
1788 # This message is too long to be a string in the A/UX 3.1 sh.
1789 cat <<_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00001790\`configure' configures ImageMagick 7.0.0-0 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001791
1792Usage: $0 [OPTION]... [VAR=VALUE]...
1793
1794To assign environment variables (e.g., CC, CFLAGS...), specify them as
1795VAR=VALUE. See below for descriptions of some of the useful variables.
1796
1797Defaults for the options are specified in brackets.
1798
1799Configuration:
1800 -h, --help display this help and exit
1801 --help=short display options specific to this package
1802 --help=recursive display the short help of all the included packages
1803 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001804 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001805 --cache-file=FILE cache test results in FILE [disabled]
1806 -C, --config-cache alias for \`--cache-file=config.cache'
1807 -n, --no-create do not create output files
1808 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1809
1810Installation directories:
1811 --prefix=PREFIX install architecture-independent files in PREFIX
1812 [$ac_default_prefix]
1813 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1814 [PREFIX]
1815
1816By default, \`make install' will install all the files in
1817\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1818an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1819for instance \`--prefix=\$HOME'.
1820
1821For better control, use the options below.
1822
1823Fine tuning of the installation directories:
1824 --bindir=DIR user executables [EPREFIX/bin]
1825 --sbindir=DIR system admin executables [EPREFIX/sbin]
1826 --libexecdir=DIR program executables [EPREFIX/libexec]
1827 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1828 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1829 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1830 --libdir=DIR object code libraries [EPREFIX/lib]
1831 --includedir=DIR C header files [PREFIX/include]
1832 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1833 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1834 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1835 --infodir=DIR info documentation [DATAROOTDIR/info]
1836 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1837 --mandir=DIR man documentation [DATAROOTDIR/man]
cristy09b53e12011-10-14 12:47:22 +00001838 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
cristy3ed852e2009-09-05 21:47:34 +00001839 --htmldir=DIR html documentation [DOCDIR]
1840 --dvidir=DIR dvi documentation [DOCDIR]
1841 --pdfdir=DIR pdf documentation [DOCDIR]
1842 --psdir=DIR ps documentation [DOCDIR]
1843_ACEOF
1844
1845 cat <<\_ACEOF
1846
cristy73bd4a52010-10-05 11:24:23 +00001847Program names:
1848 --program-prefix=PREFIX prepend PREFIX to installed program names
1849 --program-suffix=SUFFIX append SUFFIX to installed program names
1850 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1851
cristy3ed852e2009-09-05 21:47:34 +00001852X features:
1853 --x-includes=DIR X include files are in DIR
1854 --x-libraries=DIR X library files are in DIR
1855
1856System types:
1857 --build=BUILD configure for building on BUILD [guessed]
1858 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1859 --target=TARGET configure for building compilers for TARGET [HOST]
1860_ACEOF
1861fi
1862
1863if test -n "$ac_init_help"; then
1864 case $ac_init_help in
cristy29eb34e2011-10-16 00:46:08 +00001865 short | recursive ) echo "Configuration of ImageMagick 7.0.0-0:";;
cristy3ed852e2009-09-05 21:47:34 +00001866 esac
1867 cat <<\_ACEOF
1868
1869Optional Features:
1870 --disable-option-checking ignore unrecognized --enable/--with options
1871 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1872 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristyc0890a62012-07-19 00:18:20 +00001873 --enable-silent-rules less verbose build output (undo: "make V=1")
1874 --disable-silent-rules verbose build output (undo: "make V=0")
cristy187791c2015-05-03 22:17:00 +00001875 --enable-reproducible-build
1876 enable reproducible build
cristyc0890a62012-07-19 00:18:20 +00001877 --enable-dependency-tracking
1878 do not reject slow dependency extractors
1879 --disable-dependency-tracking
1880 speeds up one-time build
cristy9b86f202012-11-28 21:55:35 +00001881 --enable-ld-version-script
1882 enable linker version script (default is enabled
1883 when possible)
cristya3824692012-03-30 17:22:07 +00001884 --enable-bounds-checking
1885 enable run-time bounds-checking
cristy3ed852e2009-09-05 21:47:34 +00001886 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001887 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001888 --disable-openmp do not use OpenMP
cristy48794642012-09-02 15:19:08 +00001889 --enable-opencl enable OpenCL support
cristy3ed852e2009-09-05 21:47:34 +00001890 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001891 --enable-shared[=PKGS] build shared libraries [default=yes]
1892 --enable-static[=PKGS] build static libraries [default=yes]
1893 --enable-fast-install[=PKGS]
1894 optimize for fast installation [default=yes]
1895 --disable-libtool-lock avoid locking (might break parallel builds)
cristy3ed852e2009-09-05 21:47:34 +00001896 --enable-delegate-build look for delegate libraries in build directory
1897 --disable-deprecated exclude deprecated methods in MagickCore and
cristy3a75f062012-09-08 23:29:40 +00001898 MagickWand APIs
cristy3ed852e2009-09-05 21:47:34 +00001899 --disable-installed Formally install ImageMagick under PREFIX
1900 --disable-cipher disable enciphering and deciphering image pixels
cristy6e3607c2011-09-13 13:59:17 +00001901 --enable-zero-configuration
1902 enable self-contained, embeddable,
cristy3ed852e2009-09-05 21:47:34 +00001903 zero-configuration ImageMagick
cristyf314dbd2012-11-15 13:35:28 +00001904 --enable-hdri accurately represent the wide range of intensity
cristy3ed852e2009-09-05 21:47:34 +00001905 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001906 --disable-assert disable assert() statements in build
cristyc0890a62012-07-19 00:18:20 +00001907 --enable-maintainer-mode
1908 enable make rules and dependencies not useful (and
1909 sometimes confusing) to the casual installer
cristy944e51f2013-04-16 18:45:02 +00001910 --enable-hugepages enable 'huge pages' support
cristy3ed852e2009-09-05 21:47:34 +00001911 --enable-ccmalloc enable 'ccmalloc' memory debug support
1912 --enable-efence enable 'efence' memory debug support
1913 --enable-prof enable 'prof' profiling support
1914 --enable-gprof enable 'gprof' profiling support
1915 --enable-gcov enable 'gcov' profiling support
cristy71d8c202012-03-20 17:05:01 +00001916 --enable-legacy-support install legacy command-line utilities (default disabled)
cristya0b81c32010-01-22 02:54:33 +00001917 --disable-assert turn off assertions
cristydd17feb2014-03-05 02:06:32 +00001918 --disable-docs disable building of documentation
cristy3ed852e2009-09-05 21:47:34 +00001919
1920Optional Packages:
1921 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1922 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001923 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cristy7247bba2012-02-05 16:37:27 +00001924 --with-dmalloc use dmalloc, as in http://www.dmalloc.com
cristya0459972013-11-03 18:09:35 +00001925 --with-gcc-arch=<arch> use architecture <arch> for gcc -march/-mtune,
1926 instead of guessing
cristy670aa3c2011-11-03 00:54:00 +00001927 --includearch-dir=DIR ARCH specific include directory
1928 --sharearch-dir=DIR ARCH specific config directory
cristy2ec87cc2013-02-18 17:46:50 +00001929 --with-pkgconfigdir=DIR Path to the pkgconfig directory [LIBDIR/pkgconfig]
cristy3ed852e2009-09-05 21:47:34 +00001930 --without-threads disable threads support
cristy99bd5232011-12-07 14:38:20 +00001931 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
cristy73bd4a52010-10-05 11:24:23 +00001932 both]
cristyda16f162011-02-19 23:52:17 +00001933 --with-sysroot=DIR Search for dependent libraries within DIR
1934 (or the compiler's sysroot if not specified).
cristy3ed852e2009-09-05 21:47:34 +00001935 --with-modules enable building dynamically loadable modules
1936 --with-method-prefix=PREFIX
1937 prefix MagickCore API methods
1938 --with-quantum-depth=DEPTH
1939 number of bits in a pixel quantum (default 16)
1940 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1941 memory)
1942 --with-frozenpaths freeze delegate paths
1943 --without-magick-plus-plus
1944 disable build/install of Magick++
cristy3a75f062012-09-08 23:29:40 +00001945 --with-package-release-name=NAME
1946 encode this name into the shared library
cristy3ed852e2009-09-05 21:47:34 +00001947 --with-perl enable build/install of PerlMagick
1948 --with-perl-options=OPTIONS
1949 options to pass on command-line when generating
cristyfc3d0222012-02-07 15:05:57 +00001950 PerlMagick build file
cristy3b0097d2014-11-04 15:34:47 +00001951 --with-jemalloc enable jemalloc memory allocation library support
cristy3ed852e2009-09-05 21:47:34 +00001952 --with-umem enable umem memory allocation library support
1953 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1954 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001955 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001956 --without-zlib disable ZLIB support
cristy5a3dc992014-12-05 19:50:04 +00001957 --with-apple-font-dir=DIR
1958 Apple font directory
cristy3ed852e2009-09-05 21:47:34 +00001959 --with-autotrace enable autotrace support
1960 --without-dps disable Display Postscript support
cristy430a7312010-01-21 20:44:04 +00001961 --with-dejavu-font-dir=DIR
1962 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001963 --without-fftw disable FFTW support
1964 --without-fpx disable FlashPIX support
cristy853d9902014-08-21 18:50:43 +00001965 --without-djvu disable DjVu support
cristy3ed852e2009-09-05 21:47:34 +00001966 --without-fontconfig disable fontconfig support
cristy81beccd2011-10-03 18:17:24 +00001967 --without-freetype disable Freetype support
cristybdabdd62013-03-04 17:43:36 +00001968 --with-gslib enable Ghostscript library support
cristy3ed852e2009-09-05 21:47:34 +00001969 --with-fontpath=DIR prepend to default font search path
1970 --with-gs-font-dir=DIR Ghostscript font directory
cristybdabdd62013-03-04 17:43:36 +00001971 --with-gvc enable GVC support
cristy3ed852e2009-09-05 21:47:34 +00001972 --without-jbig disable JBIG support
1973 --without-jpeg disable JPEG support
cristy71203402010-06-18 13:12:03 +00001974 --without-lcms disable lcms (v1.1X) support
1975 --without-lcms2 disable lcms (v2.X) support
cristy99db3872014-01-01 15:11:34 +00001976 --without-openjp2 disable OpenJP2 support
cristyf0c78232010-03-15 12:53:40 +00001977 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00001978 --without-lzma disable LZMA support
cristy3ed852e2009-09-05 21:47:34 +00001979 --without-openexr disable OpenEXR support
cristy41cbe8a2011-10-27 01:35:18 +00001980 --without-pango disable PANGO support
cristy3ed852e2009-09-05 21:47:34 +00001981 --without-png disable PNG support
cristy51633f52013-04-23 14:03:19 +00001982 --with-rsvg enable RSVG support
cristy3ed852e2009-09-05 21:47:34 +00001983 --without-tiff disable TIFF support
cristyb1860752011-03-14 00:27:46 +00001984 --without-webp disable WEBP support
cristy3ed852e2009-09-05 21:47:34 +00001985 --with-windows-font-dir=DIR
cristy5a3dc992014-12-05 19:50:04 +00001986 Windows font directory
cristyde3fc5d2012-02-12 15:40:47 +00001987 --with-wmf enable WMF support
cristy3ed852e2009-09-05 21:47:34 +00001988 --without-xml disable XML support
1989
1990Some influential environment variables:
1991 CC C compiler command
1992 CFLAGS C compiler flags
1993 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1994 nonstandard directory <lib dir>
1995 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001996 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001997 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001998 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001999 CXX C++ compiler command
2000 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00002001 PKG_CONFIG path to pkg-config utility
cristy146497a2015-05-17 22:46:16 +00002002 PKG_CONFIG_PATH
2003 directories to add to pkg-config's search path
2004 PKG_CONFIG_LIBDIR
2005 path overriding pkg-config's built-in search path
nicolas6237c462010-10-05 06:11:49 +00002006 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00002007 XMKMF Path to xmkmf, Makefile generator for X Window System
2008 AUTOTRACE_CFLAGS
2009 C compiler flags for AUTOTRACE, overriding pkg-config
2010 AUTOTRACE_LIBS
2011 linker flags for AUTOTRACE, overriding pkg-config
2012 FONTCONFIG_CFLAGS
2013 C compiler flags for FONTCONFIG, overriding pkg-config
2014 FONTCONFIG_LIBS
2015 linker flags for FONTCONFIG, overriding pkg-config
cristy03f187e2013-01-24 00:22:19 +00002016 FREETYPE_CFLAGS
2017 C compiler flags for FREETYPE, overriding pkg-config
2018 FREETYPE_LIBS
2019 linker flags for FREETYPE, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002020 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
2021 GVC_LIBS linker flags for GVC, overriding pkg-config
cristy99db3872014-01-01 15:11:34 +00002022 LIBOPENJP2_CFLAGS
2023 C compiler flags for LIBOPENJP2, overriding pkg-config
2024 LIBOPENJP2_LIBS
2025 linker flags for LIBOPENJP2, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002026 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
2027 LQR_LIBS linker flags for LQR, overriding pkg-config
cristyb94e5002011-11-14 13:20:10 +00002028 LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config
2029 LZMA_LIBS linker flags for LZMA, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002030 OPENEXR_CFLAGS
2031 C compiler flags for OPENEXR, overriding pkg-config
2032 OPENEXR_LIBS
2033 linker flags for OPENEXR, overriding pkg-config
cristy41cbe8a2011-10-27 01:35:18 +00002034 PANGO_CFLAGS
2035 C compiler flags for PANGO, overriding pkg-config
2036 PANGO_LIBS linker flags for PANGO, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002037 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
2038 RSVG_LIBS linker flags for RSVG, overriding pkg-config
2039 CAIRO_SVG_CFLAGS
2040 C compiler flags for CAIRO_SVG, overriding pkg-config
2041 CAIRO_SVG_LIBS
2042 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00002043
2044Use these variables to override the choices made by `configure' or to help
2045it to find libraries and programs with nonstandard names/locations.
2046
2047Report bugs to <http://www.imagemagick.org>.
2048_ACEOF
2049ac_status=$?
2050fi
2051
2052if test "$ac_init_help" = "recursive"; then
2053 # If there are subdirs, report their specific --help.
2054 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2055 test -d "$ac_dir" ||
2056 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2057 continue
2058 ac_builddir=.
2059
2060case "$ac_dir" in
2061.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2062*)
2063 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2064 # A ".." for each directory in $ac_dir_suffix.
2065 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2066 case $ac_top_builddir_sub in
2067 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2068 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2069 esac ;;
2070esac
2071ac_abs_top_builddir=$ac_pwd
2072ac_abs_builddir=$ac_pwd$ac_dir_suffix
2073# for backward compatibility:
2074ac_top_builddir=$ac_top_build_prefix
2075
2076case $srcdir in
2077 .) # We are building in place.
2078 ac_srcdir=.
2079 ac_top_srcdir=$ac_top_builddir_sub
2080 ac_abs_top_srcdir=$ac_pwd ;;
2081 [\\/]* | ?:[\\/]* ) # Absolute name.
2082 ac_srcdir=$srcdir$ac_dir_suffix;
2083 ac_top_srcdir=$srcdir
2084 ac_abs_top_srcdir=$srcdir ;;
2085 *) # Relative name.
2086 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2087 ac_top_srcdir=$ac_top_build_prefix$srcdir
2088 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2089esac
2090ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2091
2092 cd "$ac_dir" || { ac_status=$?; continue; }
2093 # Check for guested configure.
2094 if test -f "$ac_srcdir/configure.gnu"; then
2095 echo &&
2096 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2097 elif test -f "$ac_srcdir/configure"; then
2098 echo &&
2099 $SHELL "$ac_srcdir/configure" --help=recursive
2100 else
2101 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2102 fi || ac_status=$?
2103 cd "$ac_pwd" || { ac_status=$?; break; }
2104 done
2105fi
2106
2107test -n "$ac_init_help" && exit $ac_status
2108if $ac_init_version; then
2109 cat <<\_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00002110ImageMagick configure 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +00002111generated by GNU Autoconf 2.69
cristy3ed852e2009-09-05 21:47:34 +00002112
cristy14fefe52012-05-21 00:59:18 +00002113Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002114This configure script is free software; the Free Software Foundation
2115gives unlimited permission to copy, distribute and modify it.
2116_ACEOF
2117 exit
2118fi
cristy8b350f62009-11-15 23:12:43 +00002119
2120## ------------------------ ##
2121## Autoconf initialization. ##
2122## ------------------------ ##
2123
2124# ac_fn_c_try_compile LINENO
2125# --------------------------
2126# Try to compile conftest.$ac_ext, and return whether this succeeded.
2127ac_fn_c_try_compile ()
2128{
2129 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2130 rm -f conftest.$ac_objext
2131 if { { ac_try="$ac_compile"
2132case "(($ac_try" in
2133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2134 *) ac_try_echo=$ac_try;;
2135esac
2136eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2137$as_echo "$ac_try_echo"; } >&5
2138 (eval "$ac_compile") 2>conftest.err
2139 ac_status=$?
2140 if test -s conftest.err; then
2141 grep -v '^ *+' conftest.err >conftest.er1
2142 cat conftest.er1 >&5
2143 mv -f conftest.er1 conftest.err
2144 fi
2145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2146 test $ac_status = 0; } && {
2147 test -z "$ac_c_werror_flag" ||
2148 test ! -s conftest.err
2149 } && test -s conftest.$ac_objext; then :
2150 ac_retval=0
2151else
2152 $as_echo "$as_me: failed program was:" >&5
2153sed 's/^/| /' conftest.$ac_ext >&5
2154
2155 ac_retval=1
2156fi
cristyda16f162011-02-19 23:52:17 +00002157 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002158 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002159
2160} # ac_fn_c_try_compile
2161
cristy95646052009-11-28 23:05:30 +00002162# ac_fn_c_try_cpp LINENO
2163# ----------------------
2164# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2165ac_fn_c_try_cpp ()
2166{
2167 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2168 if { { ac_try="$ac_cpp conftest.$ac_ext"
2169case "(($ac_try" in
2170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2171 *) ac_try_echo=$ac_try;;
2172esac
2173eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2174$as_echo "$ac_try_echo"; } >&5
2175 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2176 ac_status=$?
2177 if test -s conftest.err; then
2178 grep -v '^ *+' conftest.err >conftest.er1
2179 cat conftest.er1 >&5
2180 mv -f conftest.er1 conftest.err
2181 fi
2182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002183 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002184 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2185 test ! -s conftest.err
2186 }; then :
2187 ac_retval=0
2188else
2189 $as_echo "$as_me: failed program was:" >&5
2190sed 's/^/| /' conftest.$ac_ext >&5
2191
2192 ac_retval=1
2193fi
cristyda16f162011-02-19 23:52:17 +00002194 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002195 as_fn_set_status $ac_retval
2196
2197} # ac_fn_c_try_cpp
2198
cristy8b350f62009-11-15 23:12:43 +00002199# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2200# -------------------------------------------------------
2201# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2202# the include files in INCLUDES and setting the cache variable VAR
2203# accordingly.
2204ac_fn_c_check_header_mongrel ()
2205{
2206 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002207 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2209$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002210if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002211 $as_echo_n "(cached) " >&6
2212fi
2213eval ac_res=\$$3
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2215$as_echo "$ac_res" >&6; }
2216else
2217 # Is the header compilable?
2218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2219$as_echo_n "checking $2 usability... " >&6; }
2220cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2221/* end confdefs.h. */
2222$4
2223#include <$2>
2224_ACEOF
2225if ac_fn_c_try_compile "$LINENO"; then :
2226 ac_header_compiler=yes
2227else
2228 ac_header_compiler=no
2229fi
2230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2232$as_echo "$ac_header_compiler" >&6; }
2233
2234# Is the header present?
2235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2236$as_echo_n "checking $2 presence... " >&6; }
2237cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2238/* end confdefs.h. */
2239#include <$2>
2240_ACEOF
2241if ac_fn_c_try_cpp "$LINENO"; then :
2242 ac_header_preproc=yes
2243else
2244 ac_header_preproc=no
2245fi
cristyda16f162011-02-19 23:52:17 +00002246rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2248$as_echo "$ac_header_preproc" >&6; }
2249
2250# So? What about this header?
2251case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2252 yes:no: )
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2254$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2256$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2257 ;;
2258 no:yes:* )
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2260$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2262$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2264$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2266$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2268$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002269( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002270## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002271## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002272 ) | sed "s/^/$as_me: WARNING: /" >&2
2273 ;;
2274esac
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2276$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002277if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002278 $as_echo_n "(cached) " >&6
2279else
2280 eval "$3=\$ac_header_compiler"
2281fi
2282eval ac_res=\$$3
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2284$as_echo "$ac_res" >&6; }
2285fi
cristyda16f162011-02-19 23:52:17 +00002286 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002287
2288} # ac_fn_c_check_header_mongrel
2289
2290# ac_fn_c_try_run LINENO
2291# ----------------------
2292# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2293# that executables *can* be run.
2294ac_fn_c_try_run ()
2295{
2296 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2297 if { { ac_try="$ac_link"
2298case "(($ac_try" in
2299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2300 *) ac_try_echo=$ac_try;;
2301esac
2302eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2303$as_echo "$ac_try_echo"; } >&5
2304 (eval "$ac_link") 2>&5
2305 ac_status=$?
2306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2307 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2308 { { case "(($ac_try" in
2309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2310 *) ac_try_echo=$ac_try;;
2311esac
2312eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2313$as_echo "$ac_try_echo"; } >&5
2314 (eval "$ac_try") 2>&5
2315 ac_status=$?
2316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2317 test $ac_status = 0; }; }; then :
2318 ac_retval=0
2319else
2320 $as_echo "$as_me: program exited with status $ac_status" >&5
2321 $as_echo "$as_me: failed program was:" >&5
2322sed 's/^/| /' conftest.$ac_ext >&5
2323
2324 ac_retval=$ac_status
2325fi
2326 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002327 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002328 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002329
2330} # ac_fn_c_try_run
2331
2332# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2333# -------------------------------------------------------
2334# Tests whether HEADER exists and can be compiled using the include files in
2335# INCLUDES, setting the cache variable VAR accordingly.
2336ac_fn_c_check_header_compile ()
2337{
2338 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2340$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002341if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002342 $as_echo_n "(cached) " >&6
2343else
2344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2345/* end confdefs.h. */
2346$4
2347#include <$2>
2348_ACEOF
2349if ac_fn_c_try_compile "$LINENO"; then :
2350 eval "$3=yes"
2351else
2352 eval "$3=no"
2353fi
2354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2355fi
2356eval ac_res=\$$3
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2358$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002359 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002360
2361} # ac_fn_c_check_header_compile
2362
cristya0b81c32010-01-22 02:54:33 +00002363# ac_fn_cxx_try_compile LINENO
2364# ----------------------------
2365# Try to compile conftest.$ac_ext, and return whether this succeeded.
2366ac_fn_cxx_try_compile ()
2367{
2368 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2369 rm -f conftest.$ac_objext
2370 if { { ac_try="$ac_compile"
2371case "(($ac_try" in
2372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2373 *) ac_try_echo=$ac_try;;
2374esac
2375eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2376$as_echo "$ac_try_echo"; } >&5
2377 (eval "$ac_compile") 2>conftest.err
2378 ac_status=$?
2379 if test -s conftest.err; then
2380 grep -v '^ *+' conftest.err >conftest.er1
2381 cat conftest.er1 >&5
2382 mv -f conftest.er1 conftest.err
2383 fi
2384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2385 test $ac_status = 0; } && {
2386 test -z "$ac_cxx_werror_flag" ||
2387 test ! -s conftest.err
2388 } && test -s conftest.$ac_objext; then :
2389 ac_retval=0
2390else
2391 $as_echo "$as_me: failed program was:" >&5
2392sed 's/^/| /' conftest.$ac_ext >&5
2393
2394 ac_retval=1
2395fi
cristyda16f162011-02-19 23:52:17 +00002396 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002397 as_fn_set_status $ac_retval
2398
2399} # ac_fn_cxx_try_compile
2400
cristyd95b7a52013-10-23 13:12:53 +00002401# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2402# --------------------------------------------
2403# Tries to find the compile-time value of EXPR in a program that includes
2404# INCLUDES, setting VAR accordingly. Returns whether the value could be
2405# computed
2406ac_fn_c_compute_int ()
2407{
2408 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2409 if test "$cross_compiling" = yes; then
2410 # Depending upon the size, compute the lo and hi bounds.
2411cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2412/* end confdefs.h. */
2413$4
2414int
2415main ()
2416{
2417static int test_array [1 - 2 * !(($2) >= 0)];
2418test_array [0] = 0;
2419return test_array [0];
2420
2421 ;
2422 return 0;
2423}
2424_ACEOF
2425if ac_fn_c_try_compile "$LINENO"; then :
2426 ac_lo=0 ac_mid=0
2427 while :; do
2428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2429/* end confdefs.h. */
2430$4
2431int
2432main ()
2433{
2434static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2435test_array [0] = 0;
2436return test_array [0];
2437
2438 ;
2439 return 0;
2440}
2441_ACEOF
2442if ac_fn_c_try_compile "$LINENO"; then :
2443 ac_hi=$ac_mid; break
2444else
2445 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2446 if test $ac_lo -le $ac_mid; then
2447 ac_lo= ac_hi=
2448 break
2449 fi
2450 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2451fi
2452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2453 done
2454else
2455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2456/* end confdefs.h. */
2457$4
2458int
2459main ()
2460{
2461static int test_array [1 - 2 * !(($2) < 0)];
2462test_array [0] = 0;
2463return test_array [0];
2464
2465 ;
2466 return 0;
2467}
2468_ACEOF
2469if ac_fn_c_try_compile "$LINENO"; then :
2470 ac_hi=-1 ac_mid=-1
2471 while :; do
2472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2473/* end confdefs.h. */
2474$4
2475int
2476main ()
2477{
2478static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2479test_array [0] = 0;
2480return test_array [0];
2481
2482 ;
2483 return 0;
2484}
2485_ACEOF
2486if ac_fn_c_try_compile "$LINENO"; then :
2487 ac_lo=$ac_mid; break
2488else
2489 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2490 if test $ac_mid -le $ac_hi; then
2491 ac_lo= ac_hi=
2492 break
2493 fi
2494 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2495fi
2496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2497 done
2498else
2499 ac_lo= ac_hi=
2500fi
2501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2502fi
2503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2504# Binary search between lo and hi bounds.
2505while test "x$ac_lo" != "x$ac_hi"; do
2506 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2508/* end confdefs.h. */
2509$4
2510int
2511main ()
2512{
2513static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2514test_array [0] = 0;
2515return test_array [0];
2516
2517 ;
2518 return 0;
2519}
2520_ACEOF
2521if ac_fn_c_try_compile "$LINENO"; then :
2522 ac_hi=$ac_mid
2523else
2524 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2525fi
2526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2527done
2528case $ac_lo in #((
2529?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2530'') ac_retval=1 ;;
2531esac
2532 else
2533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2534/* end confdefs.h. */
2535$4
2536static long int longval () { return $2; }
2537static unsigned long int ulongval () { return $2; }
2538#include <stdio.h>
2539#include <stdlib.h>
2540int
2541main ()
2542{
2543
2544 FILE *f = fopen ("conftest.val", "w");
2545 if (! f)
2546 return 1;
2547 if (($2) < 0)
2548 {
2549 long int i = longval ();
2550 if (i != ($2))
2551 return 1;
2552 fprintf (f, "%ld", i);
2553 }
2554 else
2555 {
2556 unsigned long int i = ulongval ();
2557 if (i != ($2))
2558 return 1;
2559 fprintf (f, "%lu", i);
2560 }
2561 /* Do not output a trailing newline, as this causes \r\n confusion
2562 on some platforms. */
2563 return ferror (f) || fclose (f) != 0;
2564
2565 ;
2566 return 0;
2567}
2568_ACEOF
2569if ac_fn_c_try_run "$LINENO"; then :
2570 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2571else
2572 ac_retval=1
2573fi
2574rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2575 conftest.$ac_objext conftest.beam conftest.$ac_ext
2576rm -f conftest.val
2577
2578 fi
2579 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2580 as_fn_set_status $ac_retval
2581
2582} # ac_fn_c_compute_int
2583
cristy8b350f62009-11-15 23:12:43 +00002584# ac_fn_c_try_link LINENO
2585# -----------------------
2586# Try to link conftest.$ac_ext, and return whether this succeeded.
2587ac_fn_c_try_link ()
2588{
2589 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2590 rm -f conftest.$ac_objext conftest$ac_exeext
2591 if { { ac_try="$ac_link"
2592case "(($ac_try" in
2593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2594 *) ac_try_echo=$ac_try;;
2595esac
2596eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2597$as_echo "$ac_try_echo"; } >&5
2598 (eval "$ac_link") 2>conftest.err
2599 ac_status=$?
2600 if test -s conftest.err; then
2601 grep -v '^ *+' conftest.err >conftest.er1
2602 cat conftest.er1 >&5
2603 mv -f conftest.er1 conftest.err
2604 fi
2605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2606 test $ac_status = 0; } && {
2607 test -z "$ac_c_werror_flag" ||
2608 test ! -s conftest.err
2609 } && test -s conftest$ac_exeext && {
2610 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002611 test -x conftest$ac_exeext
cristy8b350f62009-11-15 23:12:43 +00002612 }; then :
2613 ac_retval=0
2614else
2615 $as_echo "$as_me: failed program was:" >&5
2616sed 's/^/| /' conftest.$ac_ext >&5
2617
2618 ac_retval=1
2619fi
2620 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2621 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2622 # interfere with the next link command; also delete a directory that is
2623 # left behind by Apple's compiler. We do this before executing the actions.
2624 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002625 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002626 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002627
2628} # ac_fn_c_try_link
2629
cristy73bd4a52010-10-05 11:24:23 +00002630# ac_fn_c_check_func LINENO FUNC VAR
2631# ----------------------------------
2632# Tests whether FUNC exists, setting the cache variable VAR accordingly
2633ac_fn_c_check_func ()
2634{
2635 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2637$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002638if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002639 $as_echo_n "(cached) " >&6
2640else
2641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2642/* end confdefs.h. */
2643/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2644 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2645#define $2 innocuous_$2
2646
2647/* System header to define __stub macros and hopefully few prototypes,
2648 which can conflict with char $2 (); below.
2649 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2650 <limits.h> exists even on freestanding compilers. */
2651
2652#ifdef __STDC__
2653# include <limits.h>
2654#else
2655# include <assert.h>
2656#endif
2657
2658#undef $2
2659
2660/* Override any GCC internal prototype to avoid an error.
2661 Use char because int might match the return type of a GCC
2662 builtin and then its argument prototype would still apply. */
2663#ifdef __cplusplus
2664extern "C"
2665#endif
2666char $2 ();
2667/* The GNU C library defines this for functions which it implements
2668 to always fail with ENOSYS. Some functions are actually named
2669 something starting with __ and the normal name is an alias. */
2670#if defined __stub_$2 || defined __stub___$2
2671choke me
2672#endif
2673
2674int
2675main ()
2676{
2677return $2 ();
2678 ;
2679 return 0;
2680}
2681_ACEOF
2682if ac_fn_c_try_link "$LINENO"; then :
2683 eval "$3=yes"
2684else
2685 eval "$3=no"
2686fi
2687rm -f core conftest.err conftest.$ac_objext \
2688 conftest$ac_exeext conftest.$ac_ext
2689fi
2690eval ac_res=\$$3
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2692$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002693 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002694
2695} # ac_fn_c_check_func
2696
2697# ac_fn_cxx_try_cpp LINENO
2698# ------------------------
2699# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2700ac_fn_cxx_try_cpp ()
2701{
2702 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2703 if { { ac_try="$ac_cpp conftest.$ac_ext"
2704case "(($ac_try" in
2705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2706 *) ac_try_echo=$ac_try;;
2707esac
2708eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2709$as_echo "$ac_try_echo"; } >&5
2710 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2711 ac_status=$?
2712 if test -s conftest.err; then
2713 grep -v '^ *+' conftest.err >conftest.er1
2714 cat conftest.er1 >&5
2715 mv -f conftest.er1 conftest.err
2716 fi
2717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002718 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002719 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2720 test ! -s conftest.err
2721 }; then :
2722 ac_retval=0
2723else
2724 $as_echo "$as_me: failed program was:" >&5
2725sed 's/^/| /' conftest.$ac_ext >&5
2726
2727 ac_retval=1
2728fi
cristyda16f162011-02-19 23:52:17 +00002729 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002730 as_fn_set_status $ac_retval
2731
2732} # ac_fn_cxx_try_cpp
2733
2734# ac_fn_cxx_try_link LINENO
2735# -------------------------
2736# Try to link conftest.$ac_ext, and return whether this succeeded.
2737ac_fn_cxx_try_link ()
2738{
2739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2740 rm -f conftest.$ac_objext conftest$ac_exeext
2741 if { { ac_try="$ac_link"
2742case "(($ac_try" in
2743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2744 *) ac_try_echo=$ac_try;;
2745esac
2746eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2747$as_echo "$ac_try_echo"; } >&5
2748 (eval "$ac_link") 2>conftest.err
2749 ac_status=$?
2750 if test -s conftest.err; then
2751 grep -v '^ *+' conftest.err >conftest.er1
2752 cat conftest.er1 >&5
2753 mv -f conftest.er1 conftest.err
2754 fi
2755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2756 test $ac_status = 0; } && {
2757 test -z "$ac_cxx_werror_flag" ||
2758 test ! -s conftest.err
2759 } && test -s conftest$ac_exeext && {
2760 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002761 test -x conftest$ac_exeext
cristy73bd4a52010-10-05 11:24:23 +00002762 }; then :
2763 ac_retval=0
2764else
2765 $as_echo "$as_me: failed program was:" >&5
2766sed 's/^/| /' conftest.$ac_ext >&5
2767
2768 ac_retval=1
2769fi
2770 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2771 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2772 # interfere with the next link command; also delete a directory that is
2773 # left behind by Apple's compiler. We do this before executing the actions.
2774 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002775 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002776 as_fn_set_status $ac_retval
2777
2778} # ac_fn_cxx_try_link
2779
cristy8b350f62009-11-15 23:12:43 +00002780# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2781# -------------------------------------------
2782# Tests whether TYPE exists after having included INCLUDES, setting cache
2783# variable VAR accordingly.
2784ac_fn_c_check_type ()
2785{
2786 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2788$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002789if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002790 $as_echo_n "(cached) " >&6
2791else
2792 eval "$3=no"
2793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2794/* end confdefs.h. */
2795$4
2796int
2797main ()
2798{
2799if (sizeof ($2))
2800 return 0;
2801 ;
2802 return 0;
2803}
2804_ACEOF
2805if ac_fn_c_try_compile "$LINENO"; then :
2806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2807/* end confdefs.h. */
2808$4
2809int
2810main ()
2811{
2812if (sizeof (($2)))
2813 return 0;
2814 ;
2815 return 0;
2816}
2817_ACEOF
2818if ac_fn_c_try_compile "$LINENO"; then :
2819
2820else
2821 eval "$3=yes"
2822fi
2823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2824fi
2825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2826fi
2827eval ac_res=\$$3
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2829$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002830 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002831
2832} # ac_fn_c_check_type
2833
cristy92703d82010-04-26 00:18:18 +00002834# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2835# ----------------------------------------------------
2836# Tries to find if the field MEMBER exists in type AGGR, after including
2837# INCLUDES, setting cache variable VAR accordingly.
2838ac_fn_c_check_member ()
2839{
2840 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2842$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002843if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002844 $as_echo_n "(cached) " >&6
2845else
2846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2847/* end confdefs.h. */
2848$5
2849int
2850main ()
2851{
2852static $2 ac_aggr;
2853if (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 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2863/* end confdefs.h. */
2864$5
2865int
2866main ()
2867{
2868static $2 ac_aggr;
2869if (sizeof ac_aggr.$3)
2870return 0;
2871 ;
2872 return 0;
2873}
2874_ACEOF
2875if ac_fn_c_try_compile "$LINENO"; then :
2876 eval "$4=yes"
2877else
2878 eval "$4=no"
2879fi
2880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2881fi
2882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2883fi
2884eval ac_res=\$$4
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2886$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002887 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002888
2889} # ac_fn_c_check_member
2890
cristy5eef09f2012-10-16 12:08:28 +00002891# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2892# ---------------------------------------------
2893# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2894# accordingly.
2895ac_fn_c_check_decl ()
2896{
2897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2898 as_decl_name=`echo $2|sed 's/ *(.*//'`
2899 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2901$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2902if eval \${$3+:} false; then :
2903 $as_echo_n "(cached) " >&6
2904else
2905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2906/* end confdefs.h. */
2907$4
2908int
2909main ()
2910{
2911#ifndef $as_decl_name
2912#ifdef __cplusplus
2913 (void) $as_decl_use;
2914#else
2915 (void) $as_decl_name;
2916#endif
2917#endif
2918
2919 ;
2920 return 0;
2921}
2922_ACEOF
2923if ac_fn_c_try_compile "$LINENO"; then :
2924 eval "$3=yes"
2925else
2926 eval "$3=no"
2927fi
2928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2929fi
2930eval ac_res=\$$3
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2932$as_echo "$ac_res" >&6; }
2933 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2934
2935} # ac_fn_c_check_decl
2936
cristy501c8042011-05-26 17:46:28 +00002937# ac_fn_c_find_intX_t LINENO BITS VAR
2938# -----------------------------------
2939# Finds a signed integer type with width BITS, setting cache variable VAR
2940# accordingly.
2941ac_fn_c_find_intX_t ()
2942{
2943 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2945$as_echo_n "checking for int$2_t... " >&6; }
2946if eval \${$3+:} false; then :
2947 $as_echo_n "(cached) " >&6
2948else
2949 eval "$3=no"
2950 # Order is important - never check a type that is potentially smaller
2951 # than half of the expected target width.
2952 for ac_type in int$2_t 'int' 'long int' \
2953 'long long int' 'short int' 'signed char'; do
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 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
cristy14fefe52012-05-21 00:59:18 +00002962test_array [0] = 0;
2963return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002964
2965 ;
2966 return 0;
2967}
2968_ACEOF
2969if ac_fn_c_try_compile "$LINENO"; then :
2970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2971/* end confdefs.h. */
2972$ac_includes_default
2973 enum { N = $2 / 2 - 1 };
2974int
2975main ()
2976{
2977static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2978 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
cristy14fefe52012-05-21 00:59:18 +00002979test_array [0] = 0;
2980return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002981
2982 ;
2983 return 0;
2984}
2985_ACEOF
2986if ac_fn_c_try_compile "$LINENO"; then :
2987
2988else
2989 case $ac_type in #(
2990 int$2_t) :
2991 eval "$3=yes" ;; #(
2992 *) :
2993 eval "$3=\$ac_type" ;;
2994esac
2995fi
2996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2997fi
2998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2999 if eval test \"x\$"$3"\" = x"no"; then :
3000
3001else
3002 break
3003fi
3004 done
3005fi
3006eval ac_res=\$$3
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3008$as_echo "$ac_res" >&6; }
3009 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3010
3011} # ac_fn_c_find_intX_t
3012
3013# ac_fn_c_find_uintX_t LINENO BITS VAR
3014# ------------------------------------
3015# Finds an unsigned integer type with width BITS, setting cache variable VAR
3016# accordingly.
3017ac_fn_c_find_uintX_t ()
3018{
3019 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
3021$as_echo_n "checking for uint$2_t... " >&6; }
3022if eval \${$3+:} false; then :
3023 $as_echo_n "(cached) " >&6
3024else
3025 eval "$3=no"
3026 # Order is important - never check a type that is potentially smaller
3027 # than half of the expected target width.
3028 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
3029 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
3030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3031/* end confdefs.h. */
3032$ac_includes_default
3033int
3034main ()
3035{
3036static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
cristy14fefe52012-05-21 00:59:18 +00003037test_array [0] = 0;
3038return test_array [0];
cristy501c8042011-05-26 17:46:28 +00003039
3040 ;
3041 return 0;
3042}
3043_ACEOF
3044if ac_fn_c_try_compile "$LINENO"; then :
3045 case $ac_type in #(
3046 uint$2_t) :
3047 eval "$3=yes" ;; #(
3048 *) :
3049 eval "$3=\$ac_type" ;;
3050esac
3051fi
3052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3053 if eval test \"x\$"$3"\" = x"no"; then :
3054
3055else
3056 break
3057fi
3058 done
3059fi
3060eval ac_res=\$$3
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3062$as_echo "$ac_res" >&6; }
3063 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3064
3065} # ac_fn_c_find_uintX_t
3066
cristy8b350f62009-11-15 23:12:43 +00003067# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
3068# ---------------------------------------------------------
3069# Tests whether HEADER exists, giving a warning if it cannot be compiled using
3070# the include files in INCLUDES and setting the cache variable VAR
3071# accordingly.
3072ac_fn_cxx_check_header_mongrel ()
3073{
3074 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00003075 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3077$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003078if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003079 $as_echo_n "(cached) " >&6
3080fi
3081eval ac_res=\$$3
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3083$as_echo "$ac_res" >&6; }
3084else
3085 # Is the header compilable?
3086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3087$as_echo_n "checking $2 usability... " >&6; }
3088cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3089/* end confdefs.h. */
3090$4
3091#include <$2>
3092_ACEOF
3093if ac_fn_cxx_try_compile "$LINENO"; then :
3094 ac_header_compiler=yes
3095else
3096 ac_header_compiler=no
3097fi
3098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3100$as_echo "$ac_header_compiler" >&6; }
3101
3102# Is the header present?
3103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3104$as_echo_n "checking $2 presence... " >&6; }
3105cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3106/* end confdefs.h. */
3107#include <$2>
3108_ACEOF
3109if ac_fn_cxx_try_cpp "$LINENO"; then :
3110 ac_header_preproc=yes
3111else
3112 ac_header_preproc=no
3113fi
cristyda16f162011-02-19 23:52:17 +00003114rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00003115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3116$as_echo "$ac_header_preproc" >&6; }
3117
3118# So? What about this header?
3119case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3120 yes:no: )
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3122$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3124$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3125 ;;
3126 no:yes:* )
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3128$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3130$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3132$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3134$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3136$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003137( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00003138## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00003139## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00003140 ) | sed "s/^/$as_me: WARNING: /" >&2
3141 ;;
3142esac
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3144$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003145if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003146 $as_echo_n "(cached) " >&6
3147else
3148 eval "$3=\$ac_header_compiler"
3149fi
3150eval ac_res=\$$3
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3152$as_echo "$ac_res" >&6; }
3153fi
cristyda16f162011-02-19 23:52:17 +00003154 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00003155
3156} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003157cat >config.log <<_ACEOF
3158This file contains any messages produced by compilers while
3159running configure, to aid debugging if configure makes a mistake.
3160
cristy29eb34e2011-10-16 00:46:08 +00003161It was created by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +00003162generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003163
3164 $ $0 $@
3165
3166_ACEOF
3167exec 5>>config.log
3168{
3169cat <<_ASUNAME
3170## --------- ##
3171## Platform. ##
3172## --------- ##
3173
3174hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3175uname -m = `(uname -m) 2>/dev/null || echo unknown`
3176uname -r = `(uname -r) 2>/dev/null || echo unknown`
3177uname -s = `(uname -s) 2>/dev/null || echo unknown`
3178uname -v = `(uname -v) 2>/dev/null || echo unknown`
3179
3180/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3181/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3182
3183/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3184/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3185/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3186/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3187/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3188/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3189/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3190
3191_ASUNAME
3192
3193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3194for as_dir in $PATH
3195do
3196 IFS=$as_save_IFS
3197 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003198 $as_echo "PATH: $as_dir"
3199 done
cristy3ed852e2009-09-05 21:47:34 +00003200IFS=$as_save_IFS
3201
3202} >&5
3203
3204cat >&5 <<_ACEOF
3205
3206
3207## ----------- ##
3208## Core tests. ##
3209## ----------- ##
3210
3211_ACEOF
3212
3213
3214# Keep a trace of the command line.
3215# Strip out --no-create and --no-recursion so they do not pile up.
3216# Strip out --silent because we don't want to record it for future runs.
3217# Also quote any args containing shell meta-characters.
3218# Make two passes to allow for proper duplicate-argument suppression.
3219ac_configure_args=
3220ac_configure_args0=
3221ac_configure_args1=
3222ac_must_keep_next=false
3223for ac_pass in 1 2
3224do
3225 for ac_arg
3226 do
3227 case $ac_arg in
3228 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3229 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3230 | -silent | --silent | --silen | --sile | --sil)
3231 continue ;;
3232 *\'*)
3233 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3234 esac
3235 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003236 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003237 2)
cristy8b350f62009-11-15 23:12:43 +00003238 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003239 if test $ac_must_keep_next = true; then
3240 ac_must_keep_next=false # Got value, back to normal.
3241 else
3242 case $ac_arg in
3243 *=* | --config-cache | -C | -disable-* | --disable-* \
3244 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3245 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3246 | -with-* | --with-* | -without-* | --without-* | --x)
3247 case "$ac_configure_args0 " in
3248 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3249 esac
3250 ;;
3251 -* ) ac_must_keep_next=true ;;
3252 esac
3253 fi
cristy8b350f62009-11-15 23:12:43 +00003254 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003255 ;;
3256 esac
3257 done
3258done
cristy8b350f62009-11-15 23:12:43 +00003259{ ac_configure_args0=; unset ac_configure_args0;}
3260{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003261
3262# When interrupted or exit'd, cleanup temporary files, and complete
3263# config.log. We remove comments because anyway the quotes in there
3264# would cause problems or look ugly.
3265# WARNING: Use '\'' to represent an apostrophe within the trap.
3266# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3267trap 'exit_status=$?
3268 # Save into config.log some information that might help in debugging.
3269 {
3270 echo
3271
cristy98dddb52010-11-04 00:30:15 +00003272 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003273## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003274## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003275 echo
3276 # The following way of writing the cache mishandles newlines in values,
3277(
3278 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3279 eval ac_val=\$$ac_var
3280 case $ac_val in #(
3281 *${as_nl}*)
3282 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003283 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003284$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3285 esac
3286 case $ac_var in #(
3287 _ | IFS | as_nl) ;; #(
3288 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003289 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003290 esac ;;
3291 esac
3292 done
3293 (set) 2>&1 |
3294 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3295 *${as_nl}ac_space=\ *)
3296 sed -n \
3297 "s/'\''/'\''\\\\'\'''\''/g;
3298 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3299 ;; #(
3300 *)
3301 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3302 ;;
3303 esac |
3304 sort
3305)
3306 echo
3307
cristy98dddb52010-11-04 00:30:15 +00003308 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003309## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003310## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003311 echo
3312 for ac_var in $ac_subst_vars
3313 do
3314 eval ac_val=\$$ac_var
3315 case $ac_val in
3316 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3317 esac
3318 $as_echo "$ac_var='\''$ac_val'\''"
3319 done | sort
3320 echo
3321
3322 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003323 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003324## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003325## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003326 echo
3327 for ac_var in $ac_subst_files
3328 do
3329 eval ac_val=\$$ac_var
3330 case $ac_val in
3331 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3332 esac
3333 $as_echo "$ac_var='\''$ac_val'\''"
3334 done | sort
3335 echo
3336 fi
3337
3338 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003339 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003340## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003341## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003342 echo
3343 cat confdefs.h
3344 echo
3345 fi
3346 test "$ac_signal" != 0 &&
3347 $as_echo "$as_me: caught signal $ac_signal"
3348 $as_echo "$as_me: exit $exit_status"
3349 } >&5
3350 rm -f core *.core core.conftest.* &&
3351 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3352 exit $exit_status
3353' 0
3354for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003355 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003356done
3357ac_signal=0
3358
3359# confdefs.h avoids OS command line length limits that DEFS can exceed.
3360rm -f -r conftest* confdefs.h
3361
cristy8b350f62009-11-15 23:12:43 +00003362$as_echo "/* confdefs.h */" > confdefs.h
3363
cristy3ed852e2009-09-05 21:47:34 +00003364# Predefined preprocessor variables.
3365
3366cat >>confdefs.h <<_ACEOF
3367#define PACKAGE_NAME "$PACKAGE_NAME"
3368_ACEOF
3369
cristy3ed852e2009-09-05 21:47:34 +00003370cat >>confdefs.h <<_ACEOF
3371#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3372_ACEOF
3373
cristy3ed852e2009-09-05 21:47:34 +00003374cat >>confdefs.h <<_ACEOF
3375#define PACKAGE_VERSION "$PACKAGE_VERSION"
3376_ACEOF
3377
cristy3ed852e2009-09-05 21:47:34 +00003378cat >>confdefs.h <<_ACEOF
3379#define PACKAGE_STRING "$PACKAGE_STRING"
3380_ACEOF
3381
cristy3ed852e2009-09-05 21:47:34 +00003382cat >>confdefs.h <<_ACEOF
3383#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3384_ACEOF
3385
cristy8b350f62009-11-15 23:12:43 +00003386cat >>confdefs.h <<_ACEOF
3387#define PACKAGE_URL "$PACKAGE_URL"
3388_ACEOF
3389
cristy3ed852e2009-09-05 21:47:34 +00003390
3391# Let the site file select an alternate cache file if it wants to.
3392# Prefer an explicitly selected file to automatically selected ones.
3393ac_site_file1=NONE
3394ac_site_file2=NONE
3395if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003396 # We do not want a PATH search for config.site.
3397 case $CONFIG_SITE in #((
3398 -*) ac_site_file1=./$CONFIG_SITE;;
3399 */*) ac_site_file1=$CONFIG_SITE;;
3400 *) ac_site_file1=./$CONFIG_SITE;;
3401 esac
cristy3ed852e2009-09-05 21:47:34 +00003402elif test "x$prefix" != xNONE; then
3403 ac_site_file1=$prefix/share/config.site
3404 ac_site_file2=$prefix/etc/config.site
3405else
3406 ac_site_file1=$ac_default_prefix/share/config.site
3407 ac_site_file2=$ac_default_prefix/etc/config.site
3408fi
3409for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3410do
3411 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003412 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003413 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003414$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3415 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003416 . "$ac_site_file" \
3417 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3418$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3419as_fn_error $? "failed to load site script $ac_site_file
3420See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003421 fi
3422done
3423
3424if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003425 # Some versions of bash will fail to source /dev/null (special files
3426 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3427 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003428 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003429$as_echo "$as_me: loading cache $cache_file" >&6;}
3430 case $cache_file in
3431 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3432 *) . "./$cache_file";;
3433 esac
3434 fi
3435else
cristy8b350f62009-11-15 23:12:43 +00003436 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003437$as_echo "$as_me: creating cache $cache_file" >&6;}
3438 >$cache_file
3439fi
3440
cristycd4c5312009-11-22 01:19:08 +00003441as_fn_append ac_header_list " stdlib.h"
3442as_fn_append ac_header_list " unistd.h"
3443as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003444# Check that the precious variables saved in the cache have kept the same
3445# value.
3446ac_cache_corrupted=false
3447for ac_var in $ac_precious_vars; do
3448 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3449 eval ac_new_set=\$ac_env_${ac_var}_set
3450 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3451 eval ac_new_val=\$ac_env_${ac_var}_value
3452 case $ac_old_set,$ac_new_set in
3453 set,)
cristy8b350f62009-11-15 23:12:43 +00003454 { $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 +00003455$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3456 ac_cache_corrupted=: ;;
3457 ,set)
cristy8b350f62009-11-15 23:12:43 +00003458 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003459$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3460 ac_cache_corrupted=: ;;
3461 ,);;
3462 *)
3463 if test "x$ac_old_val" != "x$ac_new_val"; then
3464 # differences in whitespace do not lead to failure.
3465 ac_old_val_w=`echo x $ac_old_val`
3466 ac_new_val_w=`echo x $ac_new_val`
3467 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003468 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003469$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3470 ac_cache_corrupted=:
3471 else
cristy8b350f62009-11-15 23:12:43 +00003472 { $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 +00003473$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3474 eval $ac_var=\$ac_old_val
3475 fi
cristy8b350f62009-11-15 23:12:43 +00003476 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003477$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003478 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003479$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3480 fi;;
3481 esac
3482 # Pass precious variables to config.status.
3483 if test "$ac_new_set" = set; then
3484 case $ac_new_val in
3485 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3486 *) ac_arg=$ac_var=$ac_new_val ;;
3487 esac
3488 case " $ac_configure_args " in
3489 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003490 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003491 esac
3492 fi
3493done
3494if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003495 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003496$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003497 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003498$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003499 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003500fi
cristy8b350f62009-11-15 23:12:43 +00003501## -------------------- ##
3502## Main body of script. ##
3503## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003504
3505ac_ext=c
3506ac_cpp='$CPP $CPPFLAGS'
3507ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3508ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3509ac_compiler_gnu=$ac_cv_c_compiler_gnu
3510
3511
3512
3513ac_aux_dir=
3514for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003515 if test -f "$ac_dir/install-sh"; then
3516 ac_aux_dir=$ac_dir
3517 ac_install_sh="$ac_aux_dir/install-sh -c"
3518 break
3519 elif test -f "$ac_dir/install.sh"; then
3520 ac_aux_dir=$ac_dir
3521 ac_install_sh="$ac_aux_dir/install.sh -c"
3522 break
3523 elif test -f "$ac_dir/shtool"; then
3524 ac_aux_dir=$ac_dir
3525 ac_install_sh="$ac_aux_dir/shtool install -c"
3526 break
3527 fi
cristy3ed852e2009-09-05 21:47:34 +00003528done
3529if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003530 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003531fi
3532
3533# These three variables are undocumented and unsupported,
3534# and are intended to be withdrawn in a future Autoconf release.
3535# They can cause serious problems if a builder's source tree is in a directory
3536# whose full name contains unusual characters.
3537ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3538ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3539ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3540
3541
3542
3543
3544ac_config_headers="$ac_config_headers config/config.h"
3545
cristy24fc1fe2010-10-23 21:13:01 +00003546
cristy01ff9f32012-12-01 18:15:29 +00003547ac_config_commands="$ac_config_commands MagickCore/magick-baseconfig.h"
cristy73bd4a52010-10-05 11:24:23 +00003548
cristy3ed852e2009-09-05 21:47:34 +00003549# Make sure we can run config.sub.
3550$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003551 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003552
cristy8b350f62009-11-15 23:12:43 +00003553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003554$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003555if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003556 $as_echo_n "(cached) " >&6
3557else
3558 ac_build_alias=$build_alias
3559test "x$ac_build_alias" = x &&
3560 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3561test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003562 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003563ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003564 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003565
3566fi
cristy8b350f62009-11-15 23:12:43 +00003567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003568$as_echo "$ac_cv_build" >&6; }
3569case $ac_cv_build in
3570*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003571*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003572esac
3573build=$ac_cv_build
3574ac_save_IFS=$IFS; IFS='-'
3575set x $ac_cv_build
3576shift
3577build_cpu=$1
3578build_vendor=$2
3579shift; shift
3580# Remember, the first character of IFS is used to create $*,
3581# except with old shells:
3582build_os=$*
3583IFS=$ac_save_IFS
3584case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3585
3586
cristy8b350f62009-11-15 23:12:43 +00003587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003588$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003589if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003590 $as_echo_n "(cached) " >&6
3591else
3592 if test "x$host_alias" = x; then
3593 ac_cv_host=$ac_cv_build
3594else
3595 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003596 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003597fi
3598
3599fi
cristy8b350f62009-11-15 23:12:43 +00003600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003601$as_echo "$ac_cv_host" >&6; }
3602case $ac_cv_host in
3603*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003604*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003605esac
3606host=$ac_cv_host
3607ac_save_IFS=$IFS; IFS='-'
3608set x $ac_cv_host
3609shift
3610host_cpu=$1
3611host_vendor=$2
3612shift; shift
3613# Remember, the first character of IFS is used to create $*,
3614# except with old shells:
3615host_os=$*
3616IFS=$ac_save_IFS
3617case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3618
3619
cristy8b350f62009-11-15 23:12:43 +00003620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003621$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003622if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003623 $as_echo_n "(cached) " >&6
3624else
3625 if test "x$target_alias" = x; then
3626 ac_cv_target=$ac_cv_host
3627else
3628 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003629 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003630fi
3631
3632fi
cristy8b350f62009-11-15 23:12:43 +00003633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003634$as_echo "$ac_cv_target" >&6; }
3635case $ac_cv_target in
3636*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003637*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003638esac
3639target=$ac_cv_target
3640ac_save_IFS=$IFS; IFS='-'
3641set x $ac_cv_target
3642shift
3643target_cpu=$1
3644target_vendor=$2
3645shift; shift
3646# Remember, the first character of IFS is used to create $*,
3647# except with old shells:
3648target_os=$*
3649IFS=$ac_save_IFS
3650case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3651
3652
3653# The aliases save the names the user supplied, while $host etc.
3654# will get canonicalized.
3655test -n "$target_alias" &&
3656 test "$program_prefix$program_suffix$program_transform_name" = \
3657 NONENONEs,x,x, &&
3658 program_prefix=${target_alias}-
3659
cristy837d6dc2010-02-27 01:16:57 +00003660
cristyead532a2015-06-05 00:49:30 +00003661am__api_version='1.15'
cristy73bd4a52010-10-05 11:24:23 +00003662
3663# Find a good install program. We prefer a C program (faster),
3664# so one script is as good as another. But avoid the broken or
3665# incompatible versions:
3666# SysV /etc/install, /usr/sbin/install
3667# SunOS /usr/etc/install
3668# IRIX /sbin/install
3669# AIX /bin/install
3670# AmigaOS /C/install, which installs bootblocks on floppy discs
3671# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3672# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3673# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3674# OS/2's system install, which has a completely different semantic
3675# ./install, which can be erroneously created by make from ./install.sh.
3676# Reject install programs that cannot install multiple files.
3677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3678$as_echo_n "checking for a BSD-compatible install... " >&6; }
3679if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003680if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003681 $as_echo_n "(cached) " >&6
3682else
3683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3684for as_dir in $PATH
3685do
3686 IFS=$as_save_IFS
3687 test -z "$as_dir" && as_dir=.
3688 # Account for people who put trailing slashes in PATH elements.
3689case $as_dir/ in #((
3690 ./ | .// | /[cC]/* | \
3691 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3692 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3693 /usr/ucb/* ) ;;
3694 *)
3695 # OSF1 and SCO ODT 3.0 have their own names for install.
3696 # Don't use installbsd from OSF since it installs stuff as root
3697 # by default.
3698 for ac_prog in ginstall scoinst install; do
3699 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003700 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003701 if test $ac_prog = install &&
3702 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3703 # AIX install. It has an incompatible calling convention.
3704 :
3705 elif test $ac_prog = install &&
3706 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3707 # program-specific install script used by HP pwplus--don't use.
3708 :
3709 else
3710 rm -rf conftest.one conftest.two conftest.dir
3711 echo one > conftest.one
3712 echo two > conftest.two
3713 mkdir conftest.dir
3714 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3715 test -s conftest.one && test -s conftest.two &&
3716 test -s conftest.dir/conftest.one &&
3717 test -s conftest.dir/conftest.two
3718 then
3719 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3720 break 3
3721 fi
3722 fi
3723 fi
3724 done
3725 done
3726 ;;
3727esac
3728
3729 done
3730IFS=$as_save_IFS
3731
3732rm -rf conftest.one conftest.two conftest.dir
3733
3734fi
3735 if test "${ac_cv_path_install+set}" = set; then
3736 INSTALL=$ac_cv_path_install
3737 else
3738 # As a last resort, use the slow shell script. Don't cache a
3739 # value for INSTALL within a source directory, because that will
3740 # break other packages using the cache if that directory is
3741 # removed, or if the value is a relative name.
3742 INSTALL=$ac_install_sh
3743 fi
3744fi
3745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3746$as_echo "$INSTALL" >&6; }
3747
3748# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3749# It thinks the first close brace ends the variable substitution.
3750test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3751
3752test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3753
3754test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3755
cristy9af1cbf2014-12-28 22:03:09 +00003756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3757$as_echo_n "checking whether build environment is sane... " >&6; }
3758# Reject unsafe characters in $srcdir or the absolute working directory
3759# name. Accept space and tab only in the latter.
3760am_lf='
3761'
3762case `pwd` in
3763 *[\\\"\#\$\&\'\`$am_lf]*)
3764 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3765esac
3766case $srcdir in
3767 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3768 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3769esac
3770
3771# Do 'set' in a subshell so we don't clobber the current shell's
3772# arguments. Must try -L first in case configure is actually a
3773# symlink; some systems play weird games with the mod time of symlinks
3774# (eg FreeBSD returns the mod time of the symlink's containing
3775# directory).
3776if (
3777 am_has_slept=no
3778 for am_try in 1 2; do
3779 echo "timestamp, slept: $am_has_slept" > conftest.file
3780 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3781 if test "$*" = "X"; then
3782 # -L didn't work.
3783 set X `ls -t "$srcdir/configure" conftest.file`
3784 fi
3785 if test "$*" != "X $srcdir/configure conftest.file" \
3786 && test "$*" != "X conftest.file $srcdir/configure"; then
3787
3788 # If neither matched, then we have a broken ls. This can happen
3789 # if, for instance, CONFIG_SHELL is bash and it inherits a
3790 # broken ls alias from the environment. This has actually
3791 # happened. Such a system could not be considered "sane".
3792 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3793 alias in your environment" "$LINENO" 5
3794 fi
3795 if test "$2" = conftest.file || test $am_try -eq 2; then
3796 break
3797 fi
3798 # Just in case.
3799 sleep 1
3800 am_has_slept=yes
3801 done
3802 test "$2" = conftest.file
3803 )
3804then
3805 # Ok.
3806 :
3807else
3808 as_fn_error $? "newly created file is older than distributed files!
3809Check your system clock" "$LINENO" 5
3810fi
3811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3812$as_echo "yes" >&6; }
3813# If we didn't sleep, we still need to ensure time stamps of config.status and
3814# generated files are strictly newer.
3815am_sleep_pid=
3816if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3817 ( sleep 1 ) &
3818 am_sleep_pid=$!
3819fi
3820
3821rm -f conftest.file
3822
cristy73bd4a52010-10-05 11:24:23 +00003823test "$program_prefix" != NONE &&
3824 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3825# Use a double $ so make ignores it.
3826test "$program_suffix" != NONE &&
3827 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3828# Double any \ or $.
3829# By default was `s,x,x', remove it if useless.
3830ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3831program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3832
cristyead532a2015-06-05 00:49:30 +00003833# Expand $ac_aux_dir to an absolute path.
3834am_aux_dir=`cd "$ac_aux_dir" && pwd`
cristy73bd4a52010-10-05 11:24:23 +00003835
3836if test x"${MISSING+set}" != xset; then
3837 case $am_aux_dir in
3838 *\ * | *\ *)
3839 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3840 *)
3841 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3842 esac
3843fi
3844# Use eval to expand $SHELL
cristy58d34aa2013-01-24 15:11:54 +00003845if eval "$MISSING --is-lightweight"; then
3846 am_missing_run="$MISSING "
cristy73bd4a52010-10-05 11:24:23 +00003847else
3848 am_missing_run=
cristyc0890a62012-07-19 00:18:20 +00003849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3850$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
cristy73bd4a52010-10-05 11:24:23 +00003851fi
3852
cristyead532a2015-06-05 00:49:30 +00003853if test x"${install_sh+set}" != xset; then
cristy73bd4a52010-10-05 11:24:23 +00003854 case $am_aux_dir in
3855 *\ * | *\ *)
3856 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3857 *)
3858 install_sh="\${SHELL} $am_aux_dir/install-sh"
3859 esac
3860fi
3861
cristyc0890a62012-07-19 00:18:20 +00003862# Installed binaries are usually stripped using 'strip' when the user
3863# run "make install-strip". However 'strip' might not be the right
cristy73bd4a52010-10-05 11:24:23 +00003864# tool to use in cross-compilation environments, therefore Automake
cristyc0890a62012-07-19 00:18:20 +00003865# will honor the 'STRIP' environment variable to overrule this program.
cristy73bd4a52010-10-05 11:24:23 +00003866if test "$cross_compiling" != no; then
3867 if test -n "$ac_tool_prefix"; then
3868 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3869set dummy ${ac_tool_prefix}strip; ac_word=$2
3870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3871$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003872if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003873 $as_echo_n "(cached) " >&6
3874else
3875 if test -n "$STRIP"; then
3876 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3877else
3878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3879for as_dir in $PATH
3880do
3881 IFS=$as_save_IFS
3882 test -z "$as_dir" && as_dir=.
3883 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003885 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3887 break 2
3888 fi
3889done
3890 done
3891IFS=$as_save_IFS
3892
3893fi
3894fi
3895STRIP=$ac_cv_prog_STRIP
3896if test -n "$STRIP"; then
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3898$as_echo "$STRIP" >&6; }
3899else
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3901$as_echo "no" >&6; }
3902fi
3903
3904
3905fi
3906if test -z "$ac_cv_prog_STRIP"; then
3907 ac_ct_STRIP=$STRIP
3908 # Extract the first word of "strip", so it can be a program name with args.
3909set dummy strip; ac_word=$2
3910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3911$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003912if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003913 $as_echo_n "(cached) " >&6
3914else
3915 if test -n "$ac_ct_STRIP"; then
3916 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3917else
3918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3919for as_dir in $PATH
3920do
3921 IFS=$as_save_IFS
3922 test -z "$as_dir" && as_dir=.
3923 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003925 ac_cv_prog_ac_ct_STRIP="strip"
3926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3927 break 2
3928 fi
3929done
3930 done
3931IFS=$as_save_IFS
3932
3933fi
3934fi
3935ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3936if test -n "$ac_ct_STRIP"; then
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3938$as_echo "$ac_ct_STRIP" >&6; }
3939else
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3941$as_echo "no" >&6; }
3942fi
3943
3944 if test "x$ac_ct_STRIP" = x; then
3945 STRIP=":"
3946 else
3947 case $cross_compiling:$ac_tool_warned in
3948yes:)
3949{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3950$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3951ac_tool_warned=yes ;;
3952esac
3953 STRIP=$ac_ct_STRIP
3954 fi
3955else
3956 STRIP="$ac_cv_prog_STRIP"
3957fi
3958
3959fi
3960INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3961
3962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3963$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3964if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00003965 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003966 $as_echo_n "(cached) " >&6
3967else
3968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3969for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3970do
3971 IFS=$as_save_IFS
3972 test -z "$as_dir" && as_dir=.
3973 for ac_prog in mkdir gmkdir; do
3974 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003975 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
cristy73bd4a52010-10-05 11:24:23 +00003976 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3977 'mkdir (GNU coreutils) '* | \
3978 'mkdir (coreutils) '* | \
3979 'mkdir (fileutils) '4.1*)
3980 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3981 break 3;;
3982 esac
3983 done
3984 done
3985 done
3986IFS=$as_save_IFS
3987
3988fi
3989
3990 test -d ./--version && rmdir ./--version
3991 if test "${ac_cv_path_mkdir+set}" = set; then
3992 MKDIR_P="$ac_cv_path_mkdir -p"
3993 else
3994 # As a last resort, use the slow shell script. Don't cache a
3995 # value for MKDIR_P within a source directory, because that will
3996 # break other packages using the cache if that directory is
3997 # removed, or if the value is a relative name.
3998 MKDIR_P="$ac_install_sh -d"
3999 fi
4000fi
4001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4002$as_echo "$MKDIR_P" >&6; }
4003
cristy73bd4a52010-10-05 11:24:23 +00004004for ac_prog in gawk mawk nawk awk
4005do
4006 # Extract the first word of "$ac_prog", so it can be a program name with args.
4007set dummy $ac_prog; ac_word=$2
4008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4009$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004010if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004011 $as_echo_n "(cached) " >&6
4012else
4013 if test -n "$AWK"; then
4014 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4015else
4016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4017for as_dir in $PATH
4018do
4019 IFS=$as_save_IFS
4020 test -z "$as_dir" && as_dir=.
4021 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00004023 ac_cv_prog_AWK="$ac_prog"
4024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4025 break 2
4026 fi
4027done
4028 done
4029IFS=$as_save_IFS
4030
4031fi
4032fi
4033AWK=$ac_cv_prog_AWK
4034if test -n "$AWK"; then
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4036$as_echo "$AWK" >&6; }
4037else
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4039$as_echo "no" >&6; }
4040fi
4041
4042
4043 test -n "$AWK" && break
4044done
4045
4046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4047$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4048set x ${MAKE-make}
4049ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00004050if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004051 $as_echo_n "(cached) " >&6
4052else
4053 cat >conftest.make <<\_ACEOF
4054SHELL = /bin/sh
4055all:
4056 @echo '@@@%%%=$(MAKE)=@@@%%%'
4057_ACEOF
cristy98dddb52010-11-04 00:30:15 +00004058# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00004059case `${MAKE-make} -f conftest.make 2>/dev/null` in
4060 *@@@%%%=?*=@@@%%%*)
4061 eval ac_cv_prog_make_${ac_make}_set=yes;;
4062 *)
4063 eval ac_cv_prog_make_${ac_make}_set=no;;
4064esac
4065rm -f conftest.make
4066fi
4067if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4069$as_echo "yes" >&6; }
4070 SET_MAKE=
4071else
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4073$as_echo "no" >&6; }
4074 SET_MAKE="MAKE=${MAKE-make}"
4075fi
4076
4077rm -rf .tst 2>/dev/null
4078mkdir .tst 2>/dev/null
4079if test -d .tst; then
4080 am__leading_dot=.
4081else
4082 am__leading_dot=_
4083fi
4084rmdir .tst 2>/dev/null
4085
cristya448bd22011-10-14 12:38:13 +00004086# Check whether --enable-silent-rules was given.
4087if test "${enable_silent_rules+set}" = set; then :
4088 enableval=$enable_silent_rules;
4089fi
4090
cristyc0890a62012-07-19 00:18:20 +00004091case $enable_silent_rules in # (((
4092 yes) AM_DEFAULT_VERBOSITY=0;;
4093 no) AM_DEFAULT_VERBOSITY=1;;
4094 *) AM_DEFAULT_VERBOSITY=1;;
cristya448bd22011-10-14 12:38:13 +00004095esac
cristyc3fb77b2012-02-06 01:49:41 +00004096am_make=${MAKE-make}
4097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4098$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4099if ${am_cv_make_support_nested_variables+:} false; then :
4100 $as_echo_n "(cached) " >&6
4101else
4102 if $as_echo 'TRUE=$(BAR$(V))
4103BAR0=false
4104BAR1=true
4105V=1
4106am__doit:
4107 @$(TRUE)
4108.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4109 am_cv_make_support_nested_variables=yes
4110else
4111 am_cv_make_support_nested_variables=no
4112fi
4113fi
4114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4115$as_echo "$am_cv_make_support_nested_variables" >&6; }
4116if test $am_cv_make_support_nested_variables = yes; then
4117 AM_V='$(V)'
4118 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4119else
4120 AM_V=$AM_DEFAULT_VERBOSITY
4121 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4122fi
cristya448bd22011-10-14 12:38:13 +00004123AM_BACKSLASH='\'
4124
cristy73bd4a52010-10-05 11:24:23 +00004125if test "`cd $srcdir && pwd`" != "`pwd`"; then
4126 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4127 # is not polluted with repeated "-I."
4128 am__isrc=' -I$(srcdir)'
4129 # test to see if srcdir already configured
4130 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00004131 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00004132 fi
4133fi
4134
4135# test whether we have cygpath
4136if test -z "$CYGPATH_W"; then
4137 if (cygpath --version) >/dev/null 2>/dev/null; then
4138 CYGPATH_W='cygpath -w'
4139 else
4140 CYGPATH_W=echo
4141 fi
4142fi
4143
4144
4145# Define the identity of the package.
cristy09b53e12011-10-14 12:47:22 +00004146 PACKAGE='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +00004147 VERSION='7.0.0-0'
cristy73bd4a52010-10-05 11:24:23 +00004148
4149
cristya448bd22011-10-14 12:38:13 +00004150cat >>confdefs.h <<_ACEOF
4151#define PACKAGE "$PACKAGE"
4152_ACEOF
4153
4154
4155cat >>confdefs.h <<_ACEOF
4156#define VERSION "$VERSION"
4157_ACEOF
4158
cristy73bd4a52010-10-05 11:24:23 +00004159# Some tools Automake needs.
4160
4161ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4162
4163
4164AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4165
4166
4167AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4168
4169
4170AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4171
4172
4173MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4174
cristyc0890a62012-07-19 00:18:20 +00004175# For better backward compatibility. To be removed once Automake 1.9.x
4176# dies out for good. For more background, see:
4177# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4178# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4179mkdir_p='$(MKDIR_P)'
4180
cristyead532a2015-06-05 00:49:30 +00004181# We need awk for the "check" target (and possibly the TAP driver). The
4182# system "awk" is bad on some platforms.
cristyc3fb77b2012-02-06 01:49:41 +00004183# Always define AMTAR for backward compatibility. Yes, it's still used
4184# in the wild :-( We should find a proper way to deprecate it ...
4185AMTAR='$${TAR-tar}'
cristy73bd4a52010-10-05 11:24:23 +00004186
cristye69bdbe2013-05-03 21:40:44 +00004187
4188# We'll loop over all known methods to create a tar archive until one works.
4189_am_tools='gnutar pax cpio none'
4190
cristyc3fb77b2012-02-06 01:49:41 +00004191am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
cristy73bd4a52010-10-05 11:24:23 +00004192
4193
4194
4195
4196
cristy3ed852e2009-09-05 21:47:34 +00004197
cristya5bda012013-11-03 18:05:38 +00004198# POSIX will say in a future version that running "rm -f" with no argument
4199# is OK; and we want to be able to make that assumption in our Makefile
4200# recipes. So use an aggressive probe to check that the usage we want is
4201# actually supported "in the wild" to an acceptable degree.
4202# See automake bug#10828.
4203# To make any issue more visible, cause the running configure to be aborted
4204# by default if the 'rm' program in use doesn't match our expectations; the
4205# user can still override this though.
4206if rm -f && rm -fr && rm -rf; then : OK; else
4207 cat >&2 <<'END'
4208Oops!
4209
4210Your 'rm' program seems unable to run without file operands specified
4211on the command line, even when the '-f' option is present. This is contrary
4212to the behaviour of most rm programs out there, and not conforming with
4213the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4214
4215Please tell bug-automake@gnu.org about your system, including the value
4216of your $PATH and any error possibly output before this message. This
4217can help us improve future automake versions.
4218
4219END
4220 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4221 echo 'Configuration will proceed anyway, since you have set the' >&2
4222 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4223 echo >&2
4224 else
4225 cat >&2 <<'END'
4226Aborting the configuration process, to ensure you take notice of the issue.
4227
4228You can download and install GNU coreutils to get an 'rm' implementation
4229that behaves properly: <http://www.gnu.org/software/coreutils/>.
4230
4231If you want to complete the configuration process using your problematic
4232'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4233to "yes", and re-run configure.
4234
4235END
4236 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4237 fi
4238fi
cristyead532a2015-06-05 00:49:30 +00004239
cristy73bd4a52010-10-05 11:24:23 +00004240# Check whether --enable-silent-rules was given.
4241if test "${enable_silent_rules+set}" = set; then :
4242 enableval=$enable_silent_rules;
4243fi
4244
cristyc0890a62012-07-19 00:18:20 +00004245case $enable_silent_rules in # (((
4246 yes) AM_DEFAULT_VERBOSITY=0;;
4247 no) AM_DEFAULT_VERBOSITY=1;;
4248 *) AM_DEFAULT_VERBOSITY=0;;
cristy73bd4a52010-10-05 11:24:23 +00004249esac
cristyc3fb77b2012-02-06 01:49:41 +00004250am_make=${MAKE-make}
4251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4252$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4253if ${am_cv_make_support_nested_variables+:} false; then :
4254 $as_echo_n "(cached) " >&6
4255else
4256 if $as_echo 'TRUE=$(BAR$(V))
4257BAR0=false
4258BAR1=true
4259V=1
4260am__doit:
4261 @$(TRUE)
4262.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4263 am_cv_make_support_nested_variables=yes
4264else
4265 am_cv_make_support_nested_variables=no
4266fi
4267fi
4268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4269$as_echo "$am_cv_make_support_nested_variables" >&6; }
4270if test $am_cv_make_support_nested_variables = yes; then
4271 AM_V='$(V)'
4272 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4273else
4274 AM_V=$AM_DEFAULT_VERBOSITY
4275 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4276fi
cristy73bd4a52010-10-05 11:24:23 +00004277AM_BACKSLASH='\'
4278
cristy3ed852e2009-09-05 21:47:34 +00004279
cristy9af1cbf2014-12-28 22:03:09 +00004280#
4281# Save initial user-tunable values
4282#
4283USER_LIBS=$LIBS
4284for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
4285 eval isset=\${$var+set}
4286 if test "$isset" = 'set'; then
4287 eval val=$`echo $var`
4288 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
4289 fi
4290done
4291
4292
4293CONFIGURE_ARGS="$0 ${ac_configure_args}"
4294
4295
cristy187791c2015-05-03 22:17:00 +00004296# Check whether --enable-reproducible-build was given.
4297if test "${enable_reproducible_build+set}" = set; then :
4298 enableval=$enable_reproducible_build; enable_reproducible_build=$enableval
4299else
4300 enable_reproducible_build='no'
4301fi
4302
4303
cristy9af1cbf2014-12-28 22:03:09 +00004304# Source file containing package/library versioning information.
4305. ${srcdir}/version.sh
4306
4307echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
4308
4309MAGICK_TARGET_CPU=$host_cpu
4310
4311
4312cat >>confdefs.h <<_ACEOF
4313#define MAGICK_TARGET_CPU $MAGICK_TARGET_CPU
4314_ACEOF
4315
4316
4317MAGICK_TARGET_VENDOR=$host_vendor
4318
4319
4320cat >>confdefs.h <<_ACEOF
4321#define MAGICK_TARGET_VENDOR $MAGICK_TARGET_VENDOR
4322_ACEOF
4323
4324
4325MAGICK_TARGET_OS=$host_os
4326
4327
4328cat >>confdefs.h <<_ACEOF
4329#define MAGICK_TARGET_OS $MAGICK_TARGET_OS
4330_ACEOF
4331
4332
4333
4334# Substitute versioning
4335MAGICK_MAJOR_VERSION=7
4336
4337MAGICK_MINOR_VERSION=0
4338
4339MAGICK_MICRO_VERSION=0
4340
4341MAGICK_PATCHLEVEL_VERSION=0
4342
4343MAGICK_VERSION=7.0.0-0
4344
cristyead532a2015-06-05 00:49:30 +00004345MAGICK_SVN_REVISION=18723M
cristy9af1cbf2014-12-28 22:03:09 +00004346
4347
4348# Substitute library versioning
4349MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
4350
4351MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
4352
4353
4354MAGICKPP_LIBRARY_CURRENT_MIN=`expr $MAGICKPP_LIBRARY_CURRENT - $MAGICKPP_LIBRARY_AGE`
4355
4356MAGICKPP_LIBRARY_VERSION_INFO=$MAGICKPP_LIBRARY_CURRENT:$MAGICKPP_LIBRARY_REVISION:$MAGICKPP_LIBRARY_AGE
4357
4358
cristy187791c2015-05-03 22:17:00 +00004359if test X$enable_reproducible_build = Xyes; then :
4360 PACKAGE_RELEASE_DATE=$PACKAGE_RELEASE_DATE_REPRODUCIBLE
4361elif PACKAGE_RELEASE_DATE=$PACKAGE_RELEASE_DATE_RAW; then :
4362
4363fi
4364
cristy9af1cbf2014-12-28 22:03:09 +00004365
4366# Ensure that make can run correctly
4367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4368$as_echo_n "checking whether build environment is sane... " >&6; }
4369# Reject unsafe characters in $srcdir or the absolute working directory
4370# name. Accept space and tab only in the latter.
4371am_lf='
4372'
4373case `pwd` in
4374 *[\\\"\#\$\&\'\`$am_lf]*)
4375 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4376esac
4377case $srcdir in
4378 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4379 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4380esac
4381
4382# Do 'set' in a subshell so we don't clobber the current shell's
4383# arguments. Must try -L first in case configure is actually a
4384# symlink; some systems play weird games with the mod time of symlinks
4385# (eg FreeBSD returns the mod time of the symlink's containing
4386# directory).
4387if (
4388 am_has_slept=no
4389 for am_try in 1 2; do
4390 echo "timestamp, slept: $am_has_slept" > conftest.file
4391 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4392 if test "$*" = "X"; then
4393 # -L didn't work.
4394 set X `ls -t "$srcdir/configure" conftest.file`
4395 fi
4396 if test "$*" != "X $srcdir/configure conftest.file" \
4397 && test "$*" != "X conftest.file $srcdir/configure"; then
4398
4399 # If neither matched, then we have a broken ls. This can happen
4400 # if, for instance, CONFIG_SHELL is bash and it inherits a
4401 # broken ls alias from the environment. This has actually
4402 # happened. Such a system could not be considered "sane".
4403 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4404 alias in your environment" "$LINENO" 5
4405 fi
4406 if test "$2" = conftest.file || test $am_try -eq 2; then
4407 break
4408 fi
4409 # Just in case.
4410 sleep 1
4411 am_has_slept=yes
4412 done
4413 test "$2" = conftest.file
4414 )
4415then
4416 # Ok.
4417 :
4418else
4419 as_fn_error $? "newly created file is older than distributed files!
4420Check your system clock" "$LINENO" 5
4421fi
4422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4423$as_echo "yes" >&6; }
4424# If we didn't sleep, we still need to ensure time stamps of config.status and
4425# generated files are strictly newer.
4426am_sleep_pid=
4427if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4428 ( sleep 1 ) &
4429 am_sleep_pid=$!
4430fi
4431
4432rm -f conftest.file
4433
4434
cristyf279b692014-08-13 12:01:27 +00004435# versioning of library
cristy3ed852e2009-09-05 21:47:34 +00004436MAGICK_LIB_VERSION="0x"
4437if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4438 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4439fi
4440MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4441if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4442 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4443fi
4444MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4445if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4446 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4447fi
4448MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4449
4450
4451# Definition used to define MagickLibVersionText in version.h
4452MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4453
4454
4455# Definition used to define MagickLibVersionNumber in version.h
4456MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4457
4458
cristy5ed9c6e2013-07-14 21:20:31 +00004459MAGICKPP_LIB_VERSION="0x"
4460if test ${MAGICKPP_LIBRARY_CURRENT} -lt 10 ; then
4461 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4462fi
4463MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_CURRENT}
4464if test ${MAGICKPP_LIBRARY_AGE} -lt 10 ; then
4465 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4466fi
4467MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_AGE}
4468if test ${MAGICKPP_LIBRARY_REVISION} -lt 10 ; then
4469 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4470fi
4471MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_REVISION}
4472
4473
4474# Definition used to define MagickLibVersionText in version.h
4475MAGICKPP_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4476
4477
4478# Definition used to define MagickLibVersionNumber in version.h
4479MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4480
4481
4482
4483
cristy3ed852e2009-09-05 21:47:34 +00004484# Regenerate config.status if ChangeLog or version.sh is updated.
4485CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4486
4487
4488PERLMAINCC=$CC
4489
4490MAGICK_CFLAGS=''
4491MAGICK_CPPFLAGS=$CPPFLAGS_USER
4492MAGICK_PCFLAGS=$CPPFLAGS_USER
4493MAGICK_LDFLAGS=''
4494MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004495MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004496
4497#
4498# Evaluate shell variable equivalents to Makefile directory variables
4499#
4500if test "x$prefix" = xNONE; then
4501 prefix=$ac_default_prefix
4502fi
4503# Let make expand exec_prefix.
4504if test "x$exec_prefix" = xNONE; then
4505 exec_prefix='${prefix}'
4506fi
4507
4508#
4509eval "eval PREFIX_DIR=${prefix}"
4510
4511eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4512
4513eval "eval BIN_DIR=$bindir"
4514
4515eval "eval SBIN_DIR=$sbindir"
4516
4517eval "eval LIBEXEC_DIR=$libexecdir"
4518
4519eval "eval DATA_DIR=$datadir"
4520
cristy4e65ec22012-04-08 01:33:27 +00004521eval "eval DOC_DIR=$datadir/doc"
cristyd55889c2011-03-27 00:50:24 +00004522
cristy3ed852e2009-09-05 21:47:34 +00004523eval "eval SYSCONF_DIR=$sysconfdir"
4524
4525eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4526
4527eval "eval LOCALSTATE_DIR=$localstatedir"
4528
4529eval "eval LIB_DIR=$libdir"
4530
4531eval "eval INCLUDE_DIR=$includedir"
4532
4533eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4534
4535eval "eval INFO_DIR=$infodir"
4536
4537eval "eval MAN_DIR=$mandir"
4538
4539
4540# Get full paths to source and build directories
4541srcdirfull="`cd $srcdir && pwd`"
4542builddir="`pwd`"
4543
4544#
4545# Compute variables useful for running uninstalled software.
4546#
4547MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4548MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4549MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4550MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4551DIRSEP=':'
4552case "${build_os}" in
4553 mingw* )
4554 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4555 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4556 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4557 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4558 DIRSEP=';'
4559 ;;
4560esac
4561case "${host_os}" in
4562 mingw* )
4563 DIRSEP=';'
4564 ;;
4565esac
4566
4567
4568
4569
4570
4571
cristya0b81c32010-01-22 02:54:33 +00004572
4573#
4574# Enable OS features.
4575#
cristy73bd4a52010-10-05 11:24:23 +00004576DEPDIR="${am__leading_dot}deps"
4577
4578ac_config_commands="$ac_config_commands depfiles"
4579
4580
4581am_make=${MAKE-make}
4582cat > confinc << 'END'
4583am__doit:
4584 @echo this is the am__doit target
4585.PHONY: am__doit
4586END
4587# If we don't find an include directive, just comment out the code.
4588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4589$as_echo_n "checking for style of include used by $am_make... " >&6; }
4590am__include="#"
4591am__quote=
4592_am_result=none
4593# First try GNU make style include.
4594echo "include confinc" > confmf
cristyc0890a62012-07-19 00:18:20 +00004595# Ignore all kinds of additional output from 'make'.
cristy73bd4a52010-10-05 11:24:23 +00004596case `$am_make -s -f confmf 2> /dev/null` in #(
4597*the\ am__doit\ target*)
4598 am__include=include
4599 am__quote=
4600 _am_result=GNU
4601 ;;
4602esac
4603# Now try BSD make style include.
4604if test "$am__include" = "#"; then
4605 echo '.include "confinc"' > confmf
4606 case `$am_make -s -f confmf 2> /dev/null` in #(
4607 *the\ am__doit\ target*)
4608 am__include=.include
4609 am__quote="\""
4610 _am_result=BSD
4611 ;;
4612 esac
4613fi
4614
4615
4616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4617$as_echo "$_am_result" >&6; }
4618rm -f confinc confmf
4619
4620# Check whether --enable-dependency-tracking was given.
4621if test "${enable_dependency_tracking+set}" = set; then :
4622 enableval=$enable_dependency_tracking;
4623fi
4624
4625if test "x$enable_dependency_tracking" != xno; then
4626 am_depcomp="$ac_aux_dir/depcomp"
4627 AMDEPBACKSLASH='\'
cristy7247bba2012-02-05 16:37:27 +00004628 am__nodep='_no'
cristy73bd4a52010-10-05 11:24:23 +00004629fi
4630 if test "x$enable_dependency_tracking" != xno; then
4631 AMDEP_TRUE=
4632 AMDEP_FALSE='#'
4633else
4634 AMDEP_TRUE='#'
4635 AMDEP_FALSE=
4636fi
4637
4638
cristy3ed852e2009-09-05 21:47:34 +00004639ac_ext=c
4640ac_cpp='$CPP $CPPFLAGS'
4641ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4642ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4643ac_compiler_gnu=$ac_cv_c_compiler_gnu
4644if test -n "$ac_tool_prefix"; then
4645 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4646set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004648$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004649if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004650 $as_echo_n "(cached) " >&6
4651else
4652 if test -n "$CC"; then
4653 ac_cv_prog_CC="$CC" # Let the user override the test.
4654else
4655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4656for as_dir in $PATH
4657do
4658 IFS=$as_save_IFS
4659 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004660 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004662 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004664 break 2
4665 fi
4666done
cristy8b350f62009-11-15 23:12:43 +00004667 done
cristy3ed852e2009-09-05 21:47:34 +00004668IFS=$as_save_IFS
4669
4670fi
4671fi
4672CC=$ac_cv_prog_CC
4673if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004675$as_echo "$CC" >&6; }
4676else
cristy8b350f62009-11-15 23:12:43 +00004677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004678$as_echo "no" >&6; }
4679fi
4680
4681
4682fi
4683if test -z "$ac_cv_prog_CC"; then
4684 ac_ct_CC=$CC
4685 # Extract the first word of "gcc", so it can be a program name with args.
4686set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004688$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004689if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004690 $as_echo_n "(cached) " >&6
4691else
4692 if test -n "$ac_ct_CC"; then
4693 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4694else
4695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4696for as_dir in $PATH
4697do
4698 IFS=$as_save_IFS
4699 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004700 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004702 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004704 break 2
4705 fi
4706done
cristy8b350f62009-11-15 23:12:43 +00004707 done
cristy3ed852e2009-09-05 21:47:34 +00004708IFS=$as_save_IFS
4709
4710fi
4711fi
4712ac_ct_CC=$ac_cv_prog_ac_ct_CC
4713if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004715$as_echo "$ac_ct_CC" >&6; }
4716else
cristy8b350f62009-11-15 23:12:43 +00004717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004718$as_echo "no" >&6; }
4719fi
4720
4721 if test "x$ac_ct_CC" = x; then
4722 CC=""
4723 else
4724 case $cross_compiling:$ac_tool_warned in
4725yes:)
cristy8b350f62009-11-15 23:12:43 +00004726{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004727$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4728ac_tool_warned=yes ;;
4729esac
4730 CC=$ac_ct_CC
4731 fi
4732else
4733 CC="$ac_cv_prog_CC"
4734fi
4735
4736if test -z "$CC"; then
4737 if test -n "$ac_tool_prefix"; then
4738 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4739set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004741$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004742if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004743 $as_echo_n "(cached) " >&6
4744else
4745 if test -n "$CC"; then
4746 ac_cv_prog_CC="$CC" # Let the user override the test.
4747else
4748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4749for as_dir in $PATH
4750do
4751 IFS=$as_save_IFS
4752 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004753 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004755 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004757 break 2
4758 fi
4759done
cristy8b350f62009-11-15 23:12:43 +00004760 done
cristy3ed852e2009-09-05 21:47:34 +00004761IFS=$as_save_IFS
4762
4763fi
4764fi
4765CC=$ac_cv_prog_CC
4766if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004768$as_echo "$CC" >&6; }
4769else
cristy8b350f62009-11-15 23:12:43 +00004770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004771$as_echo "no" >&6; }
4772fi
4773
4774
4775 fi
4776fi
4777if test -z "$CC"; then
4778 # Extract the first word of "cc", so it can be a program name with args.
4779set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004781$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004782if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004783 $as_echo_n "(cached) " >&6
4784else
4785 if test -n "$CC"; then
4786 ac_cv_prog_CC="$CC" # Let the user override the test.
4787else
4788 ac_prog_rejected=no
4789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4790for as_dir in $PATH
4791do
4792 IFS=$as_save_IFS
4793 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004794 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004796 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4797 ac_prog_rejected=yes
4798 continue
4799 fi
4800 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004802 break 2
4803 fi
4804done
cristy8b350f62009-11-15 23:12:43 +00004805 done
cristy3ed852e2009-09-05 21:47:34 +00004806IFS=$as_save_IFS
4807
4808if test $ac_prog_rejected = yes; then
4809 # We found a bogon in the path, so make sure we never use it.
4810 set dummy $ac_cv_prog_CC
4811 shift
4812 if test $# != 0; then
4813 # We chose a different compiler from the bogus one.
4814 # However, it has the same basename, so the bogon will be chosen
4815 # first if we set CC to just the basename; use the full file name.
4816 shift
4817 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4818 fi
4819fi
4820fi
4821fi
4822CC=$ac_cv_prog_CC
4823if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004825$as_echo "$CC" >&6; }
4826else
cristy8b350f62009-11-15 23:12:43 +00004827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004828$as_echo "no" >&6; }
4829fi
4830
4831
4832fi
4833if test -z "$CC"; then
4834 if test -n "$ac_tool_prefix"; then
4835 for ac_prog in cl.exe
4836 do
4837 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4838set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004840$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004841if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004842 $as_echo_n "(cached) " >&6
4843else
4844 if test -n "$CC"; then
4845 ac_cv_prog_CC="$CC" # Let the user override the test.
4846else
4847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4848for as_dir in $PATH
4849do
4850 IFS=$as_save_IFS
4851 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004852 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004854 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004856 break 2
4857 fi
4858done
cristy8b350f62009-11-15 23:12:43 +00004859 done
cristy3ed852e2009-09-05 21:47:34 +00004860IFS=$as_save_IFS
4861
4862fi
4863fi
4864CC=$ac_cv_prog_CC
4865if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004867$as_echo "$CC" >&6; }
4868else
cristy8b350f62009-11-15 23:12:43 +00004869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004870$as_echo "no" >&6; }
4871fi
4872
4873
4874 test -n "$CC" && break
4875 done
4876fi
4877if test -z "$CC"; then
4878 ac_ct_CC=$CC
4879 for ac_prog in cl.exe
4880do
4881 # Extract the first word of "$ac_prog", so it can be a program name with args.
4882set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004884$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004885if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004886 $as_echo_n "(cached) " >&6
4887else
4888 if test -n "$ac_ct_CC"; then
4889 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4890else
4891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4892for as_dir in $PATH
4893do
4894 IFS=$as_save_IFS
4895 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004896 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004898 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004900 break 2
4901 fi
4902done
cristy8b350f62009-11-15 23:12:43 +00004903 done
cristy3ed852e2009-09-05 21:47:34 +00004904IFS=$as_save_IFS
4905
4906fi
4907fi
4908ac_ct_CC=$ac_cv_prog_ac_ct_CC
4909if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004911$as_echo "$ac_ct_CC" >&6; }
4912else
cristy8b350f62009-11-15 23:12:43 +00004913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004914$as_echo "no" >&6; }
4915fi
4916
4917
4918 test -n "$ac_ct_CC" && break
4919done
4920
4921 if test "x$ac_ct_CC" = x; then
4922 CC=""
4923 else
4924 case $cross_compiling:$ac_tool_warned in
4925yes:)
cristy8b350f62009-11-15 23:12:43 +00004926{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004927$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4928ac_tool_warned=yes ;;
4929esac
4930 CC=$ac_ct_CC
4931 fi
4932fi
4933
4934fi
4935
4936
cristy8b350f62009-11-15 23:12:43 +00004937test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004938$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004939as_fn_error $? "no acceptable C compiler found in \$PATH
4940See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004941
4942# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004943$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004944set X $ac_compile
4945ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004946for ac_option in --version -v -V -qversion; do
4947 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004948case "(($ac_try" in
4949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4950 *) ac_try_echo=$ac_try;;
4951esac
cristy8b350f62009-11-15 23:12:43 +00004952eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4953$as_echo "$ac_try_echo"; } >&5
4954 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004955 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004956 if test -s conftest.err; then
4957 sed '10a\
4958... rest of stderr output deleted ...
4959 10q' conftest.err >conftest.er1
4960 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004961 fi
cristycd4c5312009-11-22 01:19:08 +00004962 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4964 test $ac_status = 0; }
4965done
cristy3ed852e2009-09-05 21:47:34 +00004966
cristy8b350f62009-11-15 23:12:43 +00004967cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004968/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004969
cristy3ed852e2009-09-05 21:47:34 +00004970int
4971main ()
4972{
4973
4974 ;
4975 return 0;
4976}
4977_ACEOF
4978ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004979ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004980# Try to create an executable without -o first, disregard a.out.
4981# It will help us diagnose broken compilers, and finding out an intuition
4982# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4984$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004985ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4986
4987# The possible output files:
4988ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4989
4990ac_rmfiles=
4991for ac_file in $ac_files
4992do
4993 case $ac_file in
4994 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4995 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4996 esac
4997done
4998rm -f $ac_rmfiles
4999
cristy8b350f62009-11-15 23:12:43 +00005000if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00005001case "(($ac_try" in
5002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5003 *) ac_try_echo=$ac_try;;
5004esac
cristy8b350f62009-11-15 23:12:43 +00005005eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5006$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00005007 (eval "$ac_link_default") 2>&5
5008 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00005009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5010 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00005011 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5012# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5013# in a Makefile. We should not override ac_cv_exeext if it was cached,
5014# so that the user can short-circuit this test for compilers unknown to
5015# Autoconf.
5016for ac_file in $ac_files ''
5017do
5018 test -f "$ac_file" || continue
5019 case $ac_file in
5020 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5021 ;;
5022 [ab].out )
5023 # We found the default executable, but exeext='' is most
5024 # certainly right.
5025 break;;
5026 *.* )
cristy8b350f62009-11-15 23:12:43 +00005027 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00005028 then :; else
5029 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5030 fi
5031 # We set ac_cv_exeext here because the later test for it is not
5032 # safe: cross compilers may not add the suffix if given an `-o'
5033 # argument, so we may need to know it at that point already.
5034 # Even if this section looks crufty: it has the advantage of
5035 # actually working.
5036 break;;
5037 * )
5038 break;;
5039 esac
5040done
5041test "$ac_cv_exeext" = no && ac_cv_exeext=
5042
5043else
5044 ac_file=''
5045fi
cristy8b350f62009-11-15 23:12:43 +00005046if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00005047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5048$as_echo "no" >&6; }
5049$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00005050sed 's/^/| /' conftest.$ac_ext >&5
5051
cristy8b350f62009-11-15 23:12:43 +00005052{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005053$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005054as_fn_error 77 "C compiler cannot create executables
5055See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00005056else
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5058$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00005059fi
cristycd4c5312009-11-22 01:19:08 +00005060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5061$as_echo_n "checking for C compiler default output file name... " >&6; }
5062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5063$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00005064ac_exeext=$ac_cv_exeext
5065
cristycd4c5312009-11-22 01:19:08 +00005066rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00005067ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00005068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00005069$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00005070if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00005071case "(($ac_try" in
5072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5073 *) ac_try_echo=$ac_try;;
5074esac
cristy8b350f62009-11-15 23:12:43 +00005075eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5076$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00005077 (eval "$ac_link") 2>&5
5078 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00005079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5080 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00005081 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5082# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5083# work properly (i.e., refer to `conftest.exe'), while it won't with
5084# `rm'.
5085for ac_file in conftest.exe conftest conftest.*; do
5086 test -f "$ac_file" || continue
5087 case $ac_file in
5088 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5089 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5090 break;;
5091 * ) break;;
5092 esac
5093done
5094else
cristy8b350f62009-11-15 23:12:43 +00005095 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005096$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005097as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5098See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00005099fi
cristycd4c5312009-11-22 01:19:08 +00005100rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00005101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005102$as_echo "$ac_cv_exeext" >&6; }
5103
5104rm -f conftest.$ac_ext
5105EXEEXT=$ac_cv_exeext
5106ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00005107cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5108/* end confdefs.h. */
5109#include <stdio.h>
5110int
5111main ()
5112{
5113FILE *f = fopen ("conftest.out", "w");
5114 return ferror (f) || fclose (f) != 0;
5115
5116 ;
5117 return 0;
5118}
5119_ACEOF
5120ac_clean_files="$ac_clean_files conftest.out"
5121# Check that the compiler produces executables we can run. If not, either
5122# the compiler is broken, or we cross compile.
5123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5124$as_echo_n "checking whether we are cross compiling... " >&6; }
5125if test "$cross_compiling" != yes; then
5126 { { ac_try="$ac_link"
5127case "(($ac_try" in
5128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5129 *) ac_try_echo=$ac_try;;
5130esac
5131eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5132$as_echo "$ac_try_echo"; } >&5
5133 (eval "$ac_link") 2>&5
5134 ac_status=$?
5135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5136 test $ac_status = 0; }
5137 if { ac_try='./conftest$ac_cv_exeext'
5138 { { case "(($ac_try" in
5139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5140 *) ac_try_echo=$ac_try;;
5141esac
5142eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5143$as_echo "$ac_try_echo"; } >&5
5144 (eval "$ac_try") 2>&5
5145 ac_status=$?
5146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5147 test $ac_status = 0; }; }; then
5148 cross_compiling=no
5149 else
5150 if test "$cross_compiling" = maybe; then
5151 cross_compiling=yes
5152 else
5153 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5154$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005155as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00005156If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00005157See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00005158 fi
5159 fi
5160fi
5161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5162$as_echo "$cross_compiling" >&6; }
5163
5164rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5165ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00005166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00005167$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005168if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005169 $as_echo_n "(cached) " >&6
5170else
cristy8b350f62009-11-15 23:12:43 +00005171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005172/* end confdefs.h. */
5173
5174int
5175main ()
5176{
5177
5178 ;
5179 return 0;
5180}
5181_ACEOF
5182rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00005183if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00005184case "(($ac_try" in
5185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5186 *) ac_try_echo=$ac_try;;
5187esac
cristy8b350f62009-11-15 23:12:43 +00005188eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5189$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00005190 (eval "$ac_compile") 2>&5
5191 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00005192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5193 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00005194 for ac_file in conftest.o conftest.obj conftest.*; do
5195 test -f "$ac_file" || continue;
5196 case $ac_file in
5197 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5198 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5199 break;;
5200 esac
5201done
5202else
5203 $as_echo "$as_me: failed program was:" >&5
5204sed 's/^/| /' conftest.$ac_ext >&5
5205
cristy8b350f62009-11-15 23:12:43 +00005206{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005207$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005208as_fn_error $? "cannot compute suffix of object files: cannot compile
5209See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00005210fi
cristy3ed852e2009-09-05 21:47:34 +00005211rm -f conftest.$ac_cv_objext conftest.$ac_ext
5212fi
cristy8b350f62009-11-15 23:12:43 +00005213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005214$as_echo "$ac_cv_objext" >&6; }
5215OBJEXT=$ac_cv_objext
5216ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00005217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00005218$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005219if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005220 $as_echo_n "(cached) " >&6
5221else
cristy8b350f62009-11-15 23:12:43 +00005222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005223/* end confdefs.h. */
5224
5225int
5226main ()
5227{
5228#ifndef __GNUC__
5229 choke me
5230#endif
5231
5232 ;
5233 return 0;
5234}
5235_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005236if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005237 ac_compiler_gnu=yes
5238else
cristy8b350f62009-11-15 23:12:43 +00005239 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00005240fi
cristy3ed852e2009-09-05 21:47:34 +00005241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5242ac_cv_c_compiler_gnu=$ac_compiler_gnu
5243
5244fi
cristy8b350f62009-11-15 23:12:43 +00005245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00005246$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5247if test $ac_compiler_gnu = yes; then
5248 GCC=yes
5249else
5250 GCC=
5251fi
5252ac_test_CFLAGS=${CFLAGS+set}
5253ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00005254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005255$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005256if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005257 $as_echo_n "(cached) " >&6
5258else
5259 ac_save_c_werror_flag=$ac_c_werror_flag
5260 ac_c_werror_flag=yes
5261 ac_cv_prog_cc_g=no
5262 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005264/* end confdefs.h. */
5265
5266int
5267main ()
5268{
5269
5270 ;
5271 return 0;
5272}
5273_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005274if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005275 ac_cv_prog_cc_g=yes
5276else
cristy8b350f62009-11-15 23:12:43 +00005277 CFLAGS=""
5278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005279/* end confdefs.h. */
5280
5281int
5282main ()
5283{
5284
5285 ;
5286 return 0;
5287}
5288_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005289if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005290
cristy8b350f62009-11-15 23:12:43 +00005291else
5292 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00005293 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005295/* end confdefs.h. */
5296
5297int
5298main ()
5299{
5300
5301 ;
5302 return 0;
5303}
5304_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005305if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005306 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00005307fi
cristy3ed852e2009-09-05 21:47:34 +00005308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5309fi
cristy3ed852e2009-09-05 21:47:34 +00005310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5311fi
cristy3ed852e2009-09-05 21:47:34 +00005312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5313 ac_c_werror_flag=$ac_save_c_werror_flag
5314fi
cristy8b350f62009-11-15 23:12:43 +00005315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005316$as_echo "$ac_cv_prog_cc_g" >&6; }
5317if test "$ac_test_CFLAGS" = set; then
5318 CFLAGS=$ac_save_CFLAGS
5319elif test $ac_cv_prog_cc_g = yes; then
5320 if test "$GCC" = yes; then
5321 CFLAGS="-g -O2"
5322 else
5323 CFLAGS="-g"
5324 fi
5325else
5326 if test "$GCC" = yes; then
5327 CFLAGS="-O2"
5328 else
5329 CFLAGS=
5330 fi
5331fi
cristy8b350f62009-11-15 23:12:43 +00005332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005333$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005334if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005335 $as_echo_n "(cached) " >&6
5336else
5337 ac_cv_prog_cc_c89=no
5338ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005339cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005340/* end confdefs.h. */
5341#include <stdarg.h>
5342#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00005343struct stat;
cristy3ed852e2009-09-05 21:47:34 +00005344/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5345struct buf { int x; };
5346FILE * (*rcsopen) (struct buf *, struct stat *, int);
5347static char *e (p, i)
5348 char **p;
5349 int i;
5350{
5351 return p[i];
5352}
5353static char *f (char * (*g) (char **, int), char **p, ...)
5354{
5355 char *s;
5356 va_list v;
5357 va_start (v,p);
5358 s = g (p, va_arg (v,int));
5359 va_end (v);
5360 return s;
5361}
5362
5363/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5364 function prototypes and stuff, but not '\xHH' hex character constants.
5365 These don't provoke an error unfortunately, instead are silently treated
5366 as 'x'. The following induces an error, until -std is added to get
5367 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5368 array size at least. It's necessary to write '\x00'==0 to get something
5369 that's true only with -std. */
5370int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5371
5372/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5373 inside strings and character constants. */
5374#define FOO(x) 'x'
5375int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5376
5377int test (int i, double x);
5378struct s1 {int (*f) (int a);};
5379struct s2 {int (*f) (double a);};
5380int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5381int argc;
5382char **argv;
5383int
5384main ()
5385{
5386return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5387 ;
5388 return 0;
5389}
5390_ACEOF
5391for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5392 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5393do
5394 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005395 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005396 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005397fi
cristy3ed852e2009-09-05 21:47:34 +00005398rm -f core conftest.err conftest.$ac_objext
5399 test "x$ac_cv_prog_cc_c89" != "xno" && break
5400done
5401rm -f conftest.$ac_ext
5402CC=$ac_save_CC
5403
5404fi
5405# AC_CACHE_VAL
5406case "x$ac_cv_prog_cc_c89" in
5407 x)
cristy8b350f62009-11-15 23:12:43 +00005408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005409$as_echo "none needed" >&6; } ;;
5410 xno)
cristy8b350f62009-11-15 23:12:43 +00005411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005412$as_echo "unsupported" >&6; } ;;
5413 *)
5414 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005416$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5417esac
cristy8b350f62009-11-15 23:12:43 +00005418if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005419
cristy8b350f62009-11-15 23:12:43 +00005420fi
cristy3ed852e2009-09-05 21:47:34 +00005421
5422ac_ext=c
5423ac_cpp='$CPP $CPPFLAGS'
5424ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5425ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5426ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005427
cristya5bda012013-11-03 18:05:38 +00005428ac_ext=c
5429ac_cpp='$CPP $CPPFLAGS'
5430ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5431ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5432ac_compiler_gnu=$ac_cv_c_compiler_gnu
5433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5434$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5435if ${am_cv_prog_cc_c_o+:} false; then :
5436 $as_echo_n "(cached) " >&6
5437else
5438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5439/* end confdefs.h. */
5440
5441int
5442main ()
5443{
5444
5445 ;
5446 return 0;
5447}
5448_ACEOF
5449 # Make sure it works both with $CC and with simple cc.
5450 # Following AC_PROG_CC_C_O, we do the test twice because some
5451 # compilers refuse to overwrite an existing .o file with -o,
5452 # though they will create one.
5453 am_cv_prog_cc_c_o=yes
5454 for am_i in 1 2; do
5455 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5456 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5457 ac_status=$?
5458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459 (exit $ac_status); } \
5460 && test -f conftest2.$ac_objext; then
5461 : OK
5462 else
5463 am_cv_prog_cc_c_o=no
5464 break
5465 fi
5466 done
5467 rm -f core conftest*
5468 unset am_i
5469fi
5470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5471$as_echo "$am_cv_prog_cc_c_o" >&6; }
5472if test "$am_cv_prog_cc_c_o" != yes; then
5473 # Losing compiler, so override with the script.
5474 # FIXME: It is wrong to rewrite CC.
5475 # But if we don't then we get into trouble of one sort or another.
5476 # A longer-term fix would be to have automake use am__CC in this case,
5477 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5478 CC="$am_aux_dir/compile $CC"
5479fi
5480ac_ext=c
5481ac_cpp='$CPP $CPPFLAGS'
5482ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5483ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5484ac_compiler_gnu=$ac_cv_c_compiler_gnu
5485
5486
cristy73bd4a52010-10-05 11:24:23 +00005487depcc="$CC" am_compiler_list=
5488
5489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5490$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005491if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00005492 $as_echo_n "(cached) " >&6
5493else
5494 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5495 # We make a subdir and do the tests there. Otherwise we can end up
5496 # making bogus files that we don't know about and never remove. For
5497 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00005498 # making a dummy file named 'D' -- because '-MD' means "put the output
5499 # in D".
cristy7247bba2012-02-05 16:37:27 +00005500 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00005501 mkdir conftest.dir
5502 # Copy depcomp to subdir because otherwise we won't find it if we're
5503 # using a relative directory.
5504 cp "$am_depcomp" conftest.dir
5505 cd conftest.dir
5506 # We will build objects and dependencies in a subdirectory because
5507 # it helps to detect inapplicable dependency modes. For instance
5508 # both Tru64's cc and ICC support -MD to output dependencies as a
5509 # side effect of compilation, but ICC will put the dependencies in
5510 # the current directory while Tru64 will put them in the object
5511 # directory.
5512 mkdir sub
5513
5514 am_cv_CC_dependencies_compiler_type=none
5515 if test "$am_compiler_list" = ""; then
5516 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5517 fi
5518 am__universal=false
5519 case " $depcc " in #(
5520 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5521 esac
5522
5523 for depmode in $am_compiler_list; do
5524 # Setup a source with many dependencies, because some compilers
5525 # like to wrap large dependency lists on column 80 (with \), and
5526 # we should not choose a depcomp mode which is confused by this.
5527 #
5528 # We need to recreate these files for each test, as the compiler may
5529 # overwrite some of them when testing with obscure command lines.
5530 # This happens at least with the AIX C compiler.
5531 : > sub/conftest.c
5532 for i in 1 2 3 4 5 6; do
5533 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00005534 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5535 # Solaris 10 /bin/sh.
5536 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00005537 done
5538 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5539
cristyc0890a62012-07-19 00:18:20 +00005540 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00005541 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00005542 # handle '-M -o', and we need to detect this. Also, some Intel
5543 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00005544 am__obj=sub/conftest.${OBJEXT-o}
5545 am__minus_obj="-o $am__obj"
5546 case $depmode in
5547 gcc)
5548 # This depmode causes a compiler race in universal mode.
5549 test "$am__universal" = false || continue
5550 ;;
5551 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00005552 # After this tag, mechanisms are not by side-effect, so they'll
5553 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00005554 if test "x$enable_dependency_tracking" = xyes; then
5555 continue
5556 else
5557 break
5558 fi
5559 ;;
cristy7247bba2012-02-05 16:37:27 +00005560 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00005561 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00005562 # not run yet. These depmodes are late enough in the game, and
5563 # so weak that their functioning should not be impacted.
5564 am__obj=conftest.${OBJEXT-o}
5565 am__minus_obj=
5566 ;;
5567 none) break ;;
5568 esac
5569 if depmode=$depmode \
5570 source=sub/conftest.c object=$am__obj \
5571 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5572 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5573 >/dev/null 2>conftest.err &&
5574 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5575 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5576 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5577 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5578 # icc doesn't choke on unknown options, it will just issue warnings
5579 # or remarks (even with -Werror). So we grep stderr for any message
5580 # that says an option was ignored or not supported.
5581 # When given -MP, icc 7.0 and 7.1 complain thusly:
5582 # icc: Command line warning: ignoring option '-M'; no argument required
5583 # The diagnosis changed in icc 8.0:
5584 # icc: Command line remark: option '-MP' not supported
5585 if (grep 'ignoring option' conftest.err ||
5586 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5587 am_cv_CC_dependencies_compiler_type=$depmode
5588 break
5589 fi
5590 fi
5591 done
5592
5593 cd ..
5594 rm -rf conftest.dir
5595else
5596 am_cv_CC_dependencies_compiler_type=none
5597fi
5598
5599fi
5600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5601$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5602CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5603
5604 if
5605 test "x$enable_dependency_tracking" != xno \
5606 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5607 am__fastdepCC_TRUE=
5608 am__fastdepCC_FALSE='#'
5609else
5610 am__fastdepCC_TRUE='#'
5611 am__fastdepCC_FALSE=
5612fi
5613
5614
cristy3ed852e2009-09-05 21:47:34 +00005615
cristya0b81c32010-01-22 02:54:33 +00005616ac_ext=c
5617ac_cpp='$CPP $CPPFLAGS'
5618ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5619ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5620ac_compiler_gnu=$ac_cv_c_compiler_gnu
5621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5622$as_echo_n "checking how to run the C preprocessor... " >&6; }
5623# On Suns, sometimes $CPP names a directory.
5624if test -n "$CPP" && test -d "$CPP"; then
5625 CPP=
5626fi
5627if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005628 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005629 $as_echo_n "(cached) " >&6
5630else
5631 # Double quotes because CPP needs to be expanded
5632 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5633 do
5634 ac_preproc_ok=false
5635for ac_c_preproc_warn_flag in '' yes
5636do
5637 # Use a header file that comes with gcc, so configuring glibc
5638 # with a fresh cross-compiler works.
5639 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5640 # <limits.h> exists even on freestanding compilers.
5641 # On the NeXT, cc -E runs the code through the compiler's parser,
5642 # not just through cpp. "Syntax error" is here to catch this case.
5643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5644/* end confdefs.h. */
5645#ifdef __STDC__
5646# include <limits.h>
5647#else
5648# include <assert.h>
5649#endif
5650 Syntax error
5651_ACEOF
5652if ac_fn_c_try_cpp "$LINENO"; then :
5653
5654else
5655 # Broken: fails on valid input.
5656continue
5657fi
cristyda16f162011-02-19 23:52:17 +00005658rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005659
5660 # OK, works on sane cases. Now check whether nonexistent headers
5661 # can be detected and how.
5662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5663/* end confdefs.h. */
5664#include <ac_nonexistent.h>
5665_ACEOF
5666if ac_fn_c_try_cpp "$LINENO"; then :
5667 # Broken: success on invalid input.
5668continue
5669else
5670 # Passes both tests.
5671ac_preproc_ok=:
5672break
5673fi
cristyda16f162011-02-19 23:52:17 +00005674rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005675
5676done
5677# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005678rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005679if $ac_preproc_ok; then :
5680 break
5681fi
5682
5683 done
5684 ac_cv_prog_CPP=$CPP
5685
5686fi
5687 CPP=$ac_cv_prog_CPP
5688else
5689 ac_cv_prog_CPP=$CPP
5690fi
5691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5692$as_echo "$CPP" >&6; }
5693ac_preproc_ok=false
5694for ac_c_preproc_warn_flag in '' yes
5695do
5696 # Use a header file that comes with gcc, so configuring glibc
5697 # with a fresh cross-compiler works.
5698 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5699 # <limits.h> exists even on freestanding compilers.
5700 # On the NeXT, cc -E runs the code through the compiler's parser,
5701 # not just through cpp. "Syntax error" is here to catch this case.
5702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5703/* end confdefs.h. */
5704#ifdef __STDC__
5705# include <limits.h>
5706#else
5707# include <assert.h>
5708#endif
5709 Syntax error
5710_ACEOF
5711if ac_fn_c_try_cpp "$LINENO"; then :
5712
5713else
5714 # Broken: fails on valid input.
5715continue
5716fi
cristyda16f162011-02-19 23:52:17 +00005717rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005718
5719 # OK, works on sane cases. Now check whether nonexistent headers
5720 # can be detected and how.
5721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5722/* end confdefs.h. */
5723#include <ac_nonexistent.h>
5724_ACEOF
5725if ac_fn_c_try_cpp "$LINENO"; then :
5726 # Broken: success on invalid input.
5727continue
5728else
5729 # Passes both tests.
5730ac_preproc_ok=:
5731break
5732fi
cristyda16f162011-02-19 23:52:17 +00005733rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005734
5735done
5736# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005737rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005738if $ac_preproc_ok; then :
5739
5740else
5741 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5742$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005743as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5744See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005745fi
5746
5747ac_ext=c
5748ac_cpp='$CPP $CPPFLAGS'
5749ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5750ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5751ac_compiler_gnu=$ac_cv_c_compiler_gnu
5752
5753
5754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5755$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005756if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005757 $as_echo_n "(cached) " >&6
5758else
5759 if test -z "$GREP"; then
5760 ac_path_GREP_found=false
5761 # Loop through the user's path and test for each of PROGNAME-LIST
5762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5763for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5764do
5765 IFS=$as_save_IFS
5766 test -z "$as_dir" && as_dir=.
5767 for ac_prog in grep ggrep; do
5768 for ac_exec_ext in '' $ac_executable_extensions; do
5769 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005770 as_fn_executable_p "$ac_path_GREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005771# Check for GNU ac_path_GREP and select it if it is found.
5772 # Check for GNU $ac_path_GREP
5773case `"$ac_path_GREP" --version 2>&1` in
5774*GNU*)
5775 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5776*)
5777 ac_count=0
5778 $as_echo_n 0123456789 >"conftest.in"
5779 while :
5780 do
5781 cat "conftest.in" "conftest.in" >"conftest.tmp"
5782 mv "conftest.tmp" "conftest.in"
5783 cp "conftest.in" "conftest.nl"
5784 $as_echo 'GREP' >> "conftest.nl"
5785 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5786 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5787 as_fn_arith $ac_count + 1 && ac_count=$as_val
5788 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5789 # Best one so far, save it but keep looking for a better one
5790 ac_cv_path_GREP="$ac_path_GREP"
5791 ac_path_GREP_max=$ac_count
5792 fi
5793 # 10*(2^10) chars as input seems more than enough
5794 test $ac_count -gt 10 && break
5795 done
5796 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5797esac
5798
5799 $ac_path_GREP_found && break 3
5800 done
5801 done
5802 done
5803IFS=$as_save_IFS
5804 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005805 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005806 fi
5807else
5808 ac_cv_path_GREP=$GREP
5809fi
5810
5811fi
5812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5813$as_echo "$ac_cv_path_GREP" >&6; }
5814 GREP="$ac_cv_path_GREP"
5815
5816
5817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5818$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005819if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005820 $as_echo_n "(cached) " >&6
5821else
5822 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5823 then ac_cv_path_EGREP="$GREP -E"
5824 else
5825 if test -z "$EGREP"; then
5826 ac_path_EGREP_found=false
5827 # Loop through the user's path and test for each of PROGNAME-LIST
5828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5829for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5830do
5831 IFS=$as_save_IFS
5832 test -z "$as_dir" && as_dir=.
5833 for ac_prog in egrep; do
5834 for ac_exec_ext in '' $ac_executable_extensions; do
5835 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005836 as_fn_executable_p "$ac_path_EGREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005837# Check for GNU ac_path_EGREP and select it if it is found.
5838 # Check for GNU $ac_path_EGREP
5839case `"$ac_path_EGREP" --version 2>&1` in
5840*GNU*)
5841 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5842*)
5843 ac_count=0
5844 $as_echo_n 0123456789 >"conftest.in"
5845 while :
5846 do
5847 cat "conftest.in" "conftest.in" >"conftest.tmp"
5848 mv "conftest.tmp" "conftest.in"
5849 cp "conftest.in" "conftest.nl"
5850 $as_echo 'EGREP' >> "conftest.nl"
5851 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5852 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5853 as_fn_arith $ac_count + 1 && ac_count=$as_val
5854 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5855 # Best one so far, save it but keep looking for a better one
5856 ac_cv_path_EGREP="$ac_path_EGREP"
5857 ac_path_EGREP_max=$ac_count
5858 fi
5859 # 10*(2^10) chars as input seems more than enough
5860 test $ac_count -gt 10 && break
5861 done
5862 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5863esac
5864
5865 $ac_path_EGREP_found && break 3
5866 done
5867 done
5868 done
5869IFS=$as_save_IFS
5870 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005871 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005872 fi
5873else
5874 ac_cv_path_EGREP=$EGREP
5875fi
5876
5877 fi
5878fi
5879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5880$as_echo "$ac_cv_path_EGREP" >&6; }
5881 EGREP="$ac_cv_path_EGREP"
5882
5883
5884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5885$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005886if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005887 $as_echo_n "(cached) " >&6
5888else
5889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5890/* end confdefs.h. */
5891#include <stdlib.h>
5892#include <stdarg.h>
5893#include <string.h>
5894#include <float.h>
5895
5896int
5897main ()
5898{
5899
5900 ;
5901 return 0;
5902}
5903_ACEOF
5904if ac_fn_c_try_compile "$LINENO"; then :
5905 ac_cv_header_stdc=yes
5906else
5907 ac_cv_header_stdc=no
5908fi
5909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5910
5911if test $ac_cv_header_stdc = yes; then
5912 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5914/* end confdefs.h. */
5915#include <string.h>
5916
5917_ACEOF
5918if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5919 $EGREP "memchr" >/dev/null 2>&1; then :
5920
5921else
5922 ac_cv_header_stdc=no
5923fi
5924rm -f conftest*
5925
5926fi
5927
5928if test $ac_cv_header_stdc = yes; then
5929 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5931/* end confdefs.h. */
5932#include <stdlib.h>
5933
5934_ACEOF
5935if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5936 $EGREP "free" >/dev/null 2>&1; then :
5937
5938else
5939 ac_cv_header_stdc=no
5940fi
5941rm -f conftest*
5942
5943fi
5944
5945if test $ac_cv_header_stdc = yes; then
5946 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5947 if test "$cross_compiling" = yes; then :
5948 :
5949else
5950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5951/* end confdefs.h. */
5952#include <ctype.h>
5953#include <stdlib.h>
5954#if ((' ' & 0x0FF) == 0x020)
5955# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5956# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5957#else
5958# define ISLOWER(c) \
5959 (('a' <= (c) && (c) <= 'i') \
5960 || ('j' <= (c) && (c) <= 'r') \
5961 || ('s' <= (c) && (c) <= 'z'))
5962# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5963#endif
5964
5965#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5966int
5967main ()
5968{
5969 int i;
5970 for (i = 0; i < 256; i++)
5971 if (XOR (islower (i), ISLOWER (i))
5972 || toupper (i) != TOUPPER (i))
5973 return 2;
5974 return 0;
5975}
5976_ACEOF
5977if ac_fn_c_try_run "$LINENO"; then :
5978
5979else
5980 ac_cv_header_stdc=no
5981fi
5982rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5983 conftest.$ac_objext conftest.beam conftest.$ac_ext
5984fi
5985
5986fi
5987fi
5988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5989$as_echo "$ac_cv_header_stdc" >&6; }
5990if test $ac_cv_header_stdc = yes; then
5991
5992$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5993
5994fi
5995
5996# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5997for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5998 inttypes.h stdint.h unistd.h
5999do :
6000 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6001ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6002"
cristy98dddb52010-11-04 00:30:15 +00006003if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00006004 cat >>confdefs.h <<_ACEOF
6005#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6006_ACEOF
6007
6008fi
6009
6010done
6011
6012
6013
6014 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 +00006015if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00006016 MINIX=yes
6017else
6018 MINIX=
6019fi
6020
6021
6022 if test "$MINIX" = yes; then
6023
6024$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6025
6026
6027$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6028
6029
6030$as_echo "#define _MINIX 1" >>confdefs.h
6031
6032 fi
6033
6034
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6036$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006037if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006038 $as_echo_n "(cached) " >&6
6039else
6040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6041/* end confdefs.h. */
6042
cristy14fefe52012-05-21 00:59:18 +00006043# define __EXTENSIONS__ 1
6044 $ac_includes_default
cristya0b81c32010-01-22 02:54:33 +00006045int
6046main ()
6047{
6048
6049 ;
6050 return 0;
6051}
6052_ACEOF
6053if ac_fn_c_try_compile "$LINENO"; then :
6054 ac_cv_safe_to_define___extensions__=yes
6055else
6056 ac_cv_safe_to_define___extensions__=no
6057fi
6058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6059fi
6060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6061$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6062 test $ac_cv_safe_to_define___extensions__ = yes &&
6063 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6064
6065 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6066
6067 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6068
6069 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6070
6071 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6072
6073
6074
cristy9af1cbf2014-12-28 22:03:09 +00006075# ==============================================================================
6076# Find required base packages
6077# ==============================================================================
cristy9e007fe2015-01-03 16:05:07 +00006078if test -n "$ac_tool_prefix"; then
6079 for ac_prog in ar lib "link -lib"
6080 do
6081 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6082set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6084$as_echo_n "checking for $ac_word... " >&6; }
6085if ${ac_cv_prog_AR+:} false; then :
6086 $as_echo_n "(cached) " >&6
6087else
6088 if test -n "$AR"; then
6089 ac_cv_prog_AR="$AR" # Let the user override the test.
6090else
6091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6092for as_dir in $PATH
6093do
6094 IFS=$as_save_IFS
6095 test -z "$as_dir" && as_dir=.
6096 for ac_exec_ext in '' $ac_executable_extensions; do
6097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6098 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6100 break 2
6101 fi
6102done
6103 done
6104IFS=$as_save_IFS
6105
6106fi
6107fi
6108AR=$ac_cv_prog_AR
6109if test -n "$AR"; then
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6111$as_echo "$AR" >&6; }
6112else
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6114$as_echo "no" >&6; }
6115fi
6116
6117
6118 test -n "$AR" && break
6119 done
6120fi
6121if test -z "$AR"; then
6122 ac_ct_AR=$AR
6123 for ac_prog in ar lib "link -lib"
6124do
6125 # Extract the first word of "$ac_prog", so it can be a program name with args.
6126set dummy $ac_prog; ac_word=$2
6127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6128$as_echo_n "checking for $ac_word... " >&6; }
6129if ${ac_cv_prog_ac_ct_AR+:} false; then :
6130 $as_echo_n "(cached) " >&6
6131else
6132 if test -n "$ac_ct_AR"; then
6133 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6134else
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
6141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6142 ac_cv_prog_ac_ct_AR="$ac_prog"
6143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6144 break 2
6145 fi
6146done
6147 done
6148IFS=$as_save_IFS
6149
6150fi
6151fi
6152ac_ct_AR=$ac_cv_prog_ac_ct_AR
6153if test -n "$ac_ct_AR"; then
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6155$as_echo "$ac_ct_AR" >&6; }
6156else
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6158$as_echo "no" >&6; }
6159fi
6160
6161
6162 test -n "$ac_ct_AR" && break
6163done
6164
6165 if test "x$ac_ct_AR" = x; then
6166 AR="false"
6167 else
6168 case $cross_compiling:$ac_tool_warned in
6169yes:)
6170{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6171$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6172ac_tool_warned=yes ;;
6173esac
6174 AR=$ac_ct_AR
6175 fi
6176fi
6177
6178: ${AR=ar}
6179
6180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
6181$as_echo_n "checking the archiver ($AR) interface... " >&6; }
6182if ${am_cv_ar_interface+:} false; then :
6183 $as_echo_n "(cached) " >&6
6184else
6185 ac_ext=c
6186ac_cpp='$CPP $CPPFLAGS'
6187ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6188ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6189ac_compiler_gnu=$ac_cv_c_compiler_gnu
6190
6191 am_cv_ar_interface=ar
6192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6193/* end confdefs.h. */
6194int some_variable = 0;
6195_ACEOF
6196if ac_fn_c_try_compile "$LINENO"; then :
6197 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
6198 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6199 (eval $am_ar_try) 2>&5
6200 ac_status=$?
6201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6202 test $ac_status = 0; }
6203 if test "$ac_status" -eq 0; then
6204 am_cv_ar_interface=ar
6205 else
6206 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
6207 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6208 (eval $am_ar_try) 2>&5
6209 ac_status=$?
6210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6211 test $ac_status = 0; }
6212 if test "$ac_status" -eq 0; then
6213 am_cv_ar_interface=lib
6214 else
6215 am_cv_ar_interface=unknown
6216 fi
6217 fi
6218 rm -f conftest.lib libconftest.a
6219
6220fi
6221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6222 ac_ext=c
6223ac_cpp='$CPP $CPPFLAGS'
6224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6226ac_compiler_gnu=$ac_cv_c_compiler_gnu
6227
6228fi
6229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
6230$as_echo "$am_cv_ar_interface" >&6; }
6231
6232case $am_cv_ar_interface in
6233ar)
6234 ;;
6235lib)
6236 # Microsoft lib, so override with the ar-lib wrapper script.
6237 # FIXME: It is wrong to rewrite AR.
6238 # But if we don't then we get into trouble of one sort or another.
6239 # A longer-term fix would be to have automake use am__AR in this case,
6240 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
6241 # similar.
6242 AR="$am_aux_dir/ar-lib $AR"
6243 ;;
6244unknown)
6245 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
6246 ;;
6247esac
cristy9af1cbf2014-12-28 22:03:09 +00006248
cristya0b81c32010-01-22 02:54:33 +00006249ac_ext=c
6250ac_cpp='$CPP $CPPFLAGS'
6251ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6252ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6253ac_compiler_gnu=$ac_cv_c_compiler_gnu
6254if test -n "$ac_tool_prefix"; then
6255 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6256set dummy ${ac_tool_prefix}gcc; ac_word=$2
6257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6258$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006259if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006260 $as_echo_n "(cached) " >&6
6261else
6262 if test -n "$CC"; then
6263 ac_cv_prog_CC="$CC" # Let the user override the test.
6264else
6265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6266for as_dir in $PATH
6267do
6268 IFS=$as_save_IFS
6269 test -z "$as_dir" && as_dir=.
6270 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006272 ac_cv_prog_CC="${ac_tool_prefix}gcc"
6273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6274 break 2
6275 fi
6276done
6277 done
6278IFS=$as_save_IFS
6279
6280fi
6281fi
6282CC=$ac_cv_prog_CC
6283if test -n "$CC"; then
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6285$as_echo "$CC" >&6; }
6286else
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6288$as_echo "no" >&6; }
6289fi
6290
6291
6292fi
6293if test -z "$ac_cv_prog_CC"; then
6294 ac_ct_CC=$CC
6295 # Extract the first word of "gcc", so it can be a program name with args.
6296set dummy gcc; ac_word=$2
6297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6298$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006299if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006300 $as_echo_n "(cached) " >&6
6301else
6302 if test -n "$ac_ct_CC"; then
6303 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6304else
6305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6306for as_dir in $PATH
6307do
6308 IFS=$as_save_IFS
6309 test -z "$as_dir" && as_dir=.
6310 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006312 ac_cv_prog_ac_ct_CC="gcc"
6313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6314 break 2
6315 fi
6316done
6317 done
6318IFS=$as_save_IFS
6319
6320fi
6321fi
6322ac_ct_CC=$ac_cv_prog_ac_ct_CC
6323if test -n "$ac_ct_CC"; then
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6325$as_echo "$ac_ct_CC" >&6; }
6326else
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6328$as_echo "no" >&6; }
6329fi
6330
6331 if test "x$ac_ct_CC" = x; then
6332 CC=""
6333 else
6334 case $cross_compiling:$ac_tool_warned in
6335yes:)
6336{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6337$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6338ac_tool_warned=yes ;;
6339esac
6340 CC=$ac_ct_CC
6341 fi
6342else
6343 CC="$ac_cv_prog_CC"
6344fi
6345
6346if test -z "$CC"; then
6347 if test -n "$ac_tool_prefix"; then
6348 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6349set dummy ${ac_tool_prefix}cc; ac_word=$2
6350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6351$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006352if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006353 $as_echo_n "(cached) " >&6
6354else
6355 if test -n "$CC"; then
6356 ac_cv_prog_CC="$CC" # Let the user override the test.
6357else
6358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6359for as_dir in $PATH
6360do
6361 IFS=$as_save_IFS
6362 test -z "$as_dir" && as_dir=.
6363 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006365 ac_cv_prog_CC="${ac_tool_prefix}cc"
6366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6367 break 2
6368 fi
6369done
6370 done
6371IFS=$as_save_IFS
6372
6373fi
6374fi
6375CC=$ac_cv_prog_CC
6376if test -n "$CC"; then
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6378$as_echo "$CC" >&6; }
6379else
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6381$as_echo "no" >&6; }
6382fi
6383
6384
6385 fi
6386fi
6387if test -z "$CC"; then
6388 # Extract the first word of "cc", so it can be a program name with args.
6389set dummy cc; ac_word=$2
6390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6391$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006392if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006393 $as_echo_n "(cached) " >&6
6394else
6395 if test -n "$CC"; then
6396 ac_cv_prog_CC="$CC" # Let the user override the test.
6397else
6398 ac_prog_rejected=no
6399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6400for as_dir in $PATH
6401do
6402 IFS=$as_save_IFS
6403 test -z "$as_dir" && as_dir=.
6404 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006406 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6407 ac_prog_rejected=yes
6408 continue
6409 fi
6410 ac_cv_prog_CC="cc"
6411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6412 break 2
6413 fi
6414done
6415 done
6416IFS=$as_save_IFS
6417
6418if test $ac_prog_rejected = yes; then
6419 # We found a bogon in the path, so make sure we never use it.
6420 set dummy $ac_cv_prog_CC
6421 shift
6422 if test $# != 0; then
6423 # We chose a different compiler from the bogus one.
6424 # However, it has the same basename, so the bogon will be chosen
6425 # first if we set CC to just the basename; use the full file name.
6426 shift
6427 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6428 fi
6429fi
6430fi
6431fi
6432CC=$ac_cv_prog_CC
6433if test -n "$CC"; then
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6435$as_echo "$CC" >&6; }
6436else
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6438$as_echo "no" >&6; }
6439fi
6440
6441
6442fi
6443if test -z "$CC"; then
6444 if test -n "$ac_tool_prefix"; then
6445 for ac_prog in cl.exe
6446 do
6447 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6448set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6450$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006451if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006452 $as_echo_n "(cached) " >&6
6453else
6454 if test -n "$CC"; then
6455 ac_cv_prog_CC="$CC" # Let the user override the test.
6456else
6457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6458for as_dir in $PATH
6459do
6460 IFS=$as_save_IFS
6461 test -z "$as_dir" && as_dir=.
6462 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006464 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6466 break 2
6467 fi
6468done
6469 done
6470IFS=$as_save_IFS
6471
6472fi
6473fi
6474CC=$ac_cv_prog_CC
6475if test -n "$CC"; then
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6477$as_echo "$CC" >&6; }
6478else
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6480$as_echo "no" >&6; }
6481fi
6482
6483
6484 test -n "$CC" && break
6485 done
6486fi
6487if test -z "$CC"; then
6488 ac_ct_CC=$CC
6489 for ac_prog in cl.exe
6490do
6491 # Extract the first word of "$ac_prog", so it can be a program name with args.
6492set dummy $ac_prog; ac_word=$2
6493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6494$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006495if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006496 $as_echo_n "(cached) " >&6
6497else
6498 if test -n "$ac_ct_CC"; then
6499 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6500else
6501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6502for as_dir in $PATH
6503do
6504 IFS=$as_save_IFS
6505 test -z "$as_dir" && as_dir=.
6506 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006508 ac_cv_prog_ac_ct_CC="$ac_prog"
6509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6510 break 2
6511 fi
6512done
6513 done
6514IFS=$as_save_IFS
6515
6516fi
6517fi
6518ac_ct_CC=$ac_cv_prog_ac_ct_CC
6519if test -n "$ac_ct_CC"; then
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6521$as_echo "$ac_ct_CC" >&6; }
6522else
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6524$as_echo "no" >&6; }
6525fi
6526
6527
6528 test -n "$ac_ct_CC" && break
6529done
6530
6531 if test "x$ac_ct_CC" = x; then
6532 CC=""
6533 else
6534 case $cross_compiling:$ac_tool_warned in
6535yes:)
6536{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6537$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6538ac_tool_warned=yes ;;
6539esac
6540 CC=$ac_ct_CC
6541 fi
6542fi
6543
6544fi
6545
6546
6547test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6548$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00006549as_fn_error $? "no acceptable C compiler found in \$PATH
6550See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00006551
6552# Provide some information about the compiler.
6553$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6554set X $ac_compile
6555ac_compiler=$2
6556for ac_option in --version -v -V -qversion; do
6557 { { ac_try="$ac_compiler $ac_option >&5"
6558case "(($ac_try" in
6559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6560 *) ac_try_echo=$ac_try;;
6561esac
6562eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6563$as_echo "$ac_try_echo"; } >&5
6564 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6565 ac_status=$?
6566 if test -s conftest.err; then
6567 sed '10a\
6568... rest of stderr output deleted ...
6569 10q' conftest.err >conftest.er1
6570 cat conftest.er1 >&5
6571 fi
6572 rm -f conftest.er1 conftest.err
6573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6574 test $ac_status = 0; }
6575done
6576
6577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6578$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006579if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006580 $as_echo_n "(cached) " >&6
6581else
6582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6583/* end confdefs.h. */
6584
6585int
6586main ()
6587{
6588#ifndef __GNUC__
6589 choke me
6590#endif
6591
6592 ;
6593 return 0;
6594}
6595_ACEOF
6596if ac_fn_c_try_compile "$LINENO"; then :
6597 ac_compiler_gnu=yes
6598else
6599 ac_compiler_gnu=no
6600fi
6601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6602ac_cv_c_compiler_gnu=$ac_compiler_gnu
6603
6604fi
6605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6606$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6607if test $ac_compiler_gnu = yes; then
6608 GCC=yes
6609else
6610 GCC=
6611fi
6612ac_test_CFLAGS=${CFLAGS+set}
6613ac_save_CFLAGS=$CFLAGS
6614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6615$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006616if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006617 $as_echo_n "(cached) " >&6
6618else
6619 ac_save_c_werror_flag=$ac_c_werror_flag
6620 ac_c_werror_flag=yes
6621 ac_cv_prog_cc_g=no
6622 CFLAGS="-g"
6623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6624/* end confdefs.h. */
6625
6626int
6627main ()
6628{
6629
6630 ;
6631 return 0;
6632}
6633_ACEOF
6634if ac_fn_c_try_compile "$LINENO"; then :
6635 ac_cv_prog_cc_g=yes
6636else
6637 CFLAGS=""
6638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6639/* end confdefs.h. */
6640
6641int
6642main ()
6643{
6644
6645 ;
6646 return 0;
6647}
6648_ACEOF
6649if ac_fn_c_try_compile "$LINENO"; then :
6650
6651else
6652 ac_c_werror_flag=$ac_save_c_werror_flag
6653 CFLAGS="-g"
6654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6655/* end confdefs.h. */
6656
6657int
6658main ()
6659{
6660
6661 ;
6662 return 0;
6663}
6664_ACEOF
6665if ac_fn_c_try_compile "$LINENO"; then :
6666 ac_cv_prog_cc_g=yes
6667fi
6668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6669fi
6670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6671fi
6672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6673 ac_c_werror_flag=$ac_save_c_werror_flag
6674fi
6675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6676$as_echo "$ac_cv_prog_cc_g" >&6; }
6677if test "$ac_test_CFLAGS" = set; then
6678 CFLAGS=$ac_save_CFLAGS
6679elif test $ac_cv_prog_cc_g = yes; then
6680 if test "$GCC" = yes; then
6681 CFLAGS="-g -O2"
6682 else
6683 CFLAGS="-g"
6684 fi
6685else
6686 if test "$GCC" = yes; then
6687 CFLAGS="-O2"
6688 else
6689 CFLAGS=
6690 fi
6691fi
6692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6693$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006694if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006695 $as_echo_n "(cached) " >&6
6696else
6697 ac_cv_prog_cc_c89=no
6698ac_save_CC=$CC
6699cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6700/* end confdefs.h. */
6701#include <stdarg.h>
6702#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00006703struct stat;
cristya0b81c32010-01-22 02:54:33 +00006704/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6705struct buf { int x; };
6706FILE * (*rcsopen) (struct buf *, struct stat *, int);
6707static char *e (p, i)
6708 char **p;
6709 int i;
6710{
6711 return p[i];
6712}
6713static char *f (char * (*g) (char **, int), char **p, ...)
6714{
6715 char *s;
6716 va_list v;
6717 va_start (v,p);
6718 s = g (p, va_arg (v,int));
6719 va_end (v);
6720 return s;
6721}
6722
6723/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6724 function prototypes and stuff, but not '\xHH' hex character constants.
6725 These don't provoke an error unfortunately, instead are silently treated
6726 as 'x'. The following induces an error, until -std is added to get
6727 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6728 array size at least. It's necessary to write '\x00'==0 to get something
6729 that's true only with -std. */
6730int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6731
6732/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6733 inside strings and character constants. */
6734#define FOO(x) 'x'
6735int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6736
6737int test (int i, double x);
6738struct s1 {int (*f) (int a);};
6739struct s2 {int (*f) (double a);};
6740int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6741int argc;
6742char **argv;
6743int
6744main ()
6745{
6746return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6747 ;
6748 return 0;
6749}
6750_ACEOF
6751for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6752 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6753do
6754 CC="$ac_save_CC $ac_arg"
6755 if ac_fn_c_try_compile "$LINENO"; then :
6756 ac_cv_prog_cc_c89=$ac_arg
6757fi
6758rm -f core conftest.err conftest.$ac_objext
6759 test "x$ac_cv_prog_cc_c89" != "xno" && break
6760done
6761rm -f conftest.$ac_ext
6762CC=$ac_save_CC
6763
6764fi
6765# AC_CACHE_VAL
6766case "x$ac_cv_prog_cc_c89" in
6767 x)
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6769$as_echo "none needed" >&6; } ;;
6770 xno)
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6772$as_echo "unsupported" >&6; } ;;
6773 *)
6774 CC="$CC $ac_cv_prog_cc_c89"
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6776$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6777esac
6778if test "x$ac_cv_prog_cc_c89" != xno; then :
6779
6780fi
6781
6782ac_ext=c
6783ac_cpp='$CPP $CPPFLAGS'
6784ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6785ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6786ac_compiler_gnu=$ac_cv_c_compiler_gnu
6787
cristya5bda012013-11-03 18:05:38 +00006788ac_ext=c
6789ac_cpp='$CPP $CPPFLAGS'
6790ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6791ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6792ac_compiler_gnu=$ac_cv_c_compiler_gnu
6793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6794$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6795if ${am_cv_prog_cc_c_o+:} false; then :
6796 $as_echo_n "(cached) " >&6
6797else
6798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6799/* end confdefs.h. */
6800
6801int
6802main ()
6803{
6804
6805 ;
6806 return 0;
6807}
6808_ACEOF
6809 # Make sure it works both with $CC and with simple cc.
6810 # Following AC_PROG_CC_C_O, we do the test twice because some
6811 # compilers refuse to overwrite an existing .o file with -o,
6812 # though they will create one.
6813 am_cv_prog_cc_c_o=yes
6814 for am_i in 1 2; do
6815 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6816 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6817 ac_status=$?
6818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6819 (exit $ac_status); } \
6820 && test -f conftest2.$ac_objext; then
6821 : OK
6822 else
6823 am_cv_prog_cc_c_o=no
6824 break
6825 fi
6826 done
6827 rm -f core conftest*
6828 unset am_i
6829fi
6830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6831$as_echo "$am_cv_prog_cc_c_o" >&6; }
6832if test "$am_cv_prog_cc_c_o" != yes; then
6833 # Losing compiler, so override with the script.
6834 # FIXME: It is wrong to rewrite CC.
6835 # But if we don't then we get into trouble of one sort or another.
6836 # A longer-term fix would be to have automake use am__CC in this case,
6837 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6838 CC="$am_aux_dir/compile $CC"
6839fi
6840ac_ext=c
6841ac_cpp='$CPP $CPPFLAGS'
6842ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6843ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6844ac_compiler_gnu=$ac_cv_c_compiler_gnu
6845
6846
cristy73bd4a52010-10-05 11:24:23 +00006847depcc="$CC" am_compiler_list=
6848
6849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6850$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006851if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006852 $as_echo_n "(cached) " >&6
6853else
6854 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6855 # We make a subdir and do the tests there. Otherwise we can end up
6856 # making bogus files that we don't know about and never remove. For
6857 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006858 # making a dummy file named 'D' -- because '-MD' means "put the output
6859 # in D".
cristy7247bba2012-02-05 16:37:27 +00006860 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006861 mkdir conftest.dir
6862 # Copy depcomp to subdir because otherwise we won't find it if we're
6863 # using a relative directory.
6864 cp "$am_depcomp" conftest.dir
6865 cd conftest.dir
6866 # We will build objects and dependencies in a subdirectory because
6867 # it helps to detect inapplicable dependency modes. For instance
6868 # both Tru64's cc and ICC support -MD to output dependencies as a
6869 # side effect of compilation, but ICC will put the dependencies in
6870 # the current directory while Tru64 will put them in the object
6871 # directory.
6872 mkdir sub
6873
6874 am_cv_CC_dependencies_compiler_type=none
6875 if test "$am_compiler_list" = ""; then
6876 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6877 fi
6878 am__universal=false
6879 case " $depcc " in #(
6880 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6881 esac
6882
6883 for depmode in $am_compiler_list; do
6884 # Setup a source with many dependencies, because some compilers
6885 # like to wrap large dependency lists on column 80 (with \), and
6886 # we should not choose a depcomp mode which is confused by this.
6887 #
6888 # We need to recreate these files for each test, as the compiler may
6889 # overwrite some of them when testing with obscure command lines.
6890 # This happens at least with the AIX C compiler.
6891 : > sub/conftest.c
6892 for i in 1 2 3 4 5 6; do
6893 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006894 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6895 # Solaris 10 /bin/sh.
6896 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006897 done
6898 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6899
cristyc0890a62012-07-19 00:18:20 +00006900 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006901 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006902 # handle '-M -o', and we need to detect this. Also, some Intel
6903 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006904 am__obj=sub/conftest.${OBJEXT-o}
6905 am__minus_obj="-o $am__obj"
6906 case $depmode in
6907 gcc)
6908 # This depmode causes a compiler race in universal mode.
6909 test "$am__universal" = false || continue
6910 ;;
6911 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006912 # After this tag, mechanisms are not by side-effect, so they'll
6913 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006914 if test "x$enable_dependency_tracking" = xyes; then
6915 continue
6916 else
6917 break
6918 fi
6919 ;;
cristy7247bba2012-02-05 16:37:27 +00006920 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006921 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006922 # not run yet. These depmodes are late enough in the game, and
6923 # so weak that their functioning should not be impacted.
6924 am__obj=conftest.${OBJEXT-o}
6925 am__minus_obj=
6926 ;;
6927 none) break ;;
6928 esac
6929 if depmode=$depmode \
6930 source=sub/conftest.c object=$am__obj \
6931 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6932 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6933 >/dev/null 2>conftest.err &&
6934 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6935 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6936 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6937 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6938 # icc doesn't choke on unknown options, it will just issue warnings
6939 # or remarks (even with -Werror). So we grep stderr for any message
6940 # that says an option was ignored or not supported.
6941 # When given -MP, icc 7.0 and 7.1 complain thusly:
6942 # icc: Command line warning: ignoring option '-M'; no argument required
6943 # The diagnosis changed in icc 8.0:
6944 # icc: Command line remark: option '-MP' not supported
6945 if (grep 'ignoring option' conftest.err ||
6946 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6947 am_cv_CC_dependencies_compiler_type=$depmode
6948 break
6949 fi
6950 fi
6951 done
6952
6953 cd ..
6954 rm -rf conftest.dir
6955else
6956 am_cv_CC_dependencies_compiler_type=none
6957fi
6958
6959fi
6960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6961$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6962CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6963
6964 if
6965 test "x$enable_dependency_tracking" != xno \
6966 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6967 am__fastdepCC_TRUE=
6968 am__fastdepCC_FALSE='#'
6969else
6970 am__fastdepCC_TRUE='#'
6971 am__fastdepCC_FALSE=
6972fi
6973
6974
cristy95646052009-11-28 23:05:30 +00006975ac_ext=cpp
6976ac_cpp='$CXXCPP $CPPFLAGS'
6977ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6978ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6979ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6980if test -z "$CXX"; then
6981 if test -n "$CCC"; then
6982 CXX=$CCC
6983 else
6984 if test -n "$ac_tool_prefix"; then
6985 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6986 do
6987 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6988set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6990$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006991if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006992 $as_echo_n "(cached) " >&6
6993else
6994 if test -n "$CXX"; then
6995 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6996else
6997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6998for as_dir in $PATH
6999do
7000 IFS=$as_save_IFS
7001 test -z "$as_dir" && as_dir=.
7002 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00007003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00007004 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7006 break 2
7007 fi
7008done
7009 done
7010IFS=$as_save_IFS
7011
7012fi
7013fi
7014CXX=$ac_cv_prog_CXX
7015if test -n "$CXX"; then
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7017$as_echo "$CXX" >&6; }
7018else
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7020$as_echo "no" >&6; }
7021fi
7022
7023
7024 test -n "$CXX" && break
7025 done
7026fi
7027if test -z "$CXX"; then
7028 ac_ct_CXX=$CXX
7029 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7030do
7031 # Extract the first word of "$ac_prog", so it can be a program name with args.
7032set dummy $ac_prog; ac_word=$2
7033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7034$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007035if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00007036 $as_echo_n "(cached) " >&6
7037else
7038 if test -n "$ac_ct_CXX"; then
7039 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7040else
7041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7042for as_dir in $PATH
7043do
7044 IFS=$as_save_IFS
7045 test -z "$as_dir" && as_dir=.
7046 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00007047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00007048 ac_cv_prog_ac_ct_CXX="$ac_prog"
7049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7050 break 2
7051 fi
7052done
7053 done
7054IFS=$as_save_IFS
7055
7056fi
7057fi
7058ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7059if test -n "$ac_ct_CXX"; then
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7061$as_echo "$ac_ct_CXX" >&6; }
7062else
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7064$as_echo "no" >&6; }
7065fi
7066
7067
7068 test -n "$ac_ct_CXX" && break
7069done
7070
7071 if test "x$ac_ct_CXX" = x; then
7072 CXX="g++"
7073 else
7074 case $cross_compiling:$ac_tool_warned in
7075yes:)
7076{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7077$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7078ac_tool_warned=yes ;;
7079esac
7080 CXX=$ac_ct_CXX
7081 fi
7082fi
7083
7084 fi
7085fi
7086# Provide some information about the compiler.
7087$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7088set X $ac_compile
7089ac_compiler=$2
7090for ac_option in --version -v -V -qversion; do
7091 { { ac_try="$ac_compiler $ac_option >&5"
7092case "(($ac_try" in
7093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7094 *) ac_try_echo=$ac_try;;
7095esac
7096eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7097$as_echo "$ac_try_echo"; } >&5
7098 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7099 ac_status=$?
7100 if test -s conftest.err; then
7101 sed '10a\
7102... rest of stderr output deleted ...
7103 10q' conftest.err >conftest.er1
7104 cat conftest.er1 >&5
7105 fi
7106 rm -f conftest.er1 conftest.err
7107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7108 test $ac_status = 0; }
7109done
7110
7111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7112$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007113if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00007114 $as_echo_n "(cached) " >&6
7115else
7116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7117/* end confdefs.h. */
7118
7119int
7120main ()
7121{
7122#ifndef __GNUC__
7123 choke me
7124#endif
7125
7126 ;
7127 return 0;
7128}
7129_ACEOF
7130if ac_fn_cxx_try_compile "$LINENO"; then :
7131 ac_compiler_gnu=yes
7132else
7133 ac_compiler_gnu=no
7134fi
7135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7136ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7137
7138fi
7139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7140$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7141if test $ac_compiler_gnu = yes; then
7142 GXX=yes
7143else
7144 GXX=
7145fi
7146ac_test_CXXFLAGS=${CXXFLAGS+set}
7147ac_save_CXXFLAGS=$CXXFLAGS
7148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7149$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007150if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00007151 $as_echo_n "(cached) " >&6
7152else
7153 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7154 ac_cxx_werror_flag=yes
7155 ac_cv_prog_cxx_g=no
7156 CXXFLAGS="-g"
7157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7158/* end confdefs.h. */
7159
7160int
7161main ()
7162{
7163
7164 ;
7165 return 0;
7166}
7167_ACEOF
7168if ac_fn_cxx_try_compile "$LINENO"; then :
7169 ac_cv_prog_cxx_g=yes
7170else
7171 CXXFLAGS=""
7172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7173/* end confdefs.h. */
7174
7175int
7176main ()
7177{
7178
7179 ;
7180 return 0;
7181}
7182_ACEOF
7183if ac_fn_cxx_try_compile "$LINENO"; then :
7184
7185else
7186 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7187 CXXFLAGS="-g"
7188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7189/* end confdefs.h. */
7190
7191int
7192main ()
7193{
7194
7195 ;
7196 return 0;
7197}
7198_ACEOF
7199if ac_fn_cxx_try_compile "$LINENO"; then :
7200 ac_cv_prog_cxx_g=yes
7201fi
7202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7203fi
7204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7205fi
7206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7207 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7208fi
7209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7210$as_echo "$ac_cv_prog_cxx_g" >&6; }
7211if test "$ac_test_CXXFLAGS" = set; then
7212 CXXFLAGS=$ac_save_CXXFLAGS
7213elif test $ac_cv_prog_cxx_g = yes; then
7214 if test "$GXX" = yes; then
7215 CXXFLAGS="-g -O2"
7216 else
7217 CXXFLAGS="-g"
7218 fi
7219else
7220 if test "$GXX" = yes; then
7221 CXXFLAGS="-O2"
7222 else
7223 CXXFLAGS=
7224 fi
7225fi
7226ac_ext=c
7227ac_cpp='$CPP $CPPFLAGS'
7228ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7229ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7230ac_compiler_gnu=$ac_cv_c_compiler_gnu
7231
cristy73bd4a52010-10-05 11:24:23 +00007232depcc="$CXX" am_compiler_list=
7233
7234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7235$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007236if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007237 $as_echo_n "(cached) " >&6
7238else
7239 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7240 # We make a subdir and do the tests there. Otherwise we can end up
7241 # making bogus files that we don't know about and never remove. For
7242 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00007243 # making a dummy file named 'D' -- because '-MD' means "put the output
7244 # in D".
cristy7247bba2012-02-05 16:37:27 +00007245 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00007246 mkdir conftest.dir
7247 # Copy depcomp to subdir because otherwise we won't find it if we're
7248 # using a relative directory.
7249 cp "$am_depcomp" conftest.dir
7250 cd conftest.dir
7251 # We will build objects and dependencies in a subdirectory because
7252 # it helps to detect inapplicable dependency modes. For instance
7253 # both Tru64's cc and ICC support -MD to output dependencies as a
7254 # side effect of compilation, but ICC will put the dependencies in
7255 # the current directory while Tru64 will put them in the object
7256 # directory.
7257 mkdir sub
7258
7259 am_cv_CXX_dependencies_compiler_type=none
7260 if test "$am_compiler_list" = ""; then
7261 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7262 fi
7263 am__universal=false
7264 case " $depcc " in #(
7265 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7266 esac
7267
7268 for depmode in $am_compiler_list; do
7269 # Setup a source with many dependencies, because some compilers
7270 # like to wrap large dependency lists on column 80 (with \), and
7271 # we should not choose a depcomp mode which is confused by this.
7272 #
7273 # We need to recreate these files for each test, as the compiler may
7274 # overwrite some of them when testing with obscure command lines.
7275 # This happens at least with the AIX C compiler.
7276 : > sub/conftest.c
7277 for i in 1 2 3 4 5 6; do
7278 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00007279 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7280 # Solaris 10 /bin/sh.
7281 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00007282 done
7283 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7284
cristyc0890a62012-07-19 00:18:20 +00007285 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00007286 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00007287 # handle '-M -o', and we need to detect this. Also, some Intel
7288 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00007289 am__obj=sub/conftest.${OBJEXT-o}
7290 am__minus_obj="-o $am__obj"
7291 case $depmode in
7292 gcc)
7293 # This depmode causes a compiler race in universal mode.
7294 test "$am__universal" = false || continue
7295 ;;
7296 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00007297 # After this tag, mechanisms are not by side-effect, so they'll
7298 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00007299 if test "x$enable_dependency_tracking" = xyes; then
7300 continue
7301 else
7302 break
7303 fi
7304 ;;
cristy7247bba2012-02-05 16:37:27 +00007305 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00007306 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00007307 # not run yet. These depmodes are late enough in the game, and
7308 # so weak that their functioning should not be impacted.
7309 am__obj=conftest.${OBJEXT-o}
7310 am__minus_obj=
7311 ;;
7312 none) break ;;
7313 esac
7314 if depmode=$depmode \
7315 source=sub/conftest.c object=$am__obj \
7316 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7317 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7318 >/dev/null 2>conftest.err &&
7319 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7320 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7321 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7322 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7323 # icc doesn't choke on unknown options, it will just issue warnings
7324 # or remarks (even with -Werror). So we grep stderr for any message
7325 # that says an option was ignored or not supported.
7326 # When given -MP, icc 7.0 and 7.1 complain thusly:
7327 # icc: Command line warning: ignoring option '-M'; no argument required
7328 # The diagnosis changed in icc 8.0:
7329 # icc: Command line remark: option '-MP' not supported
7330 if (grep 'ignoring option' conftest.err ||
7331 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7332 am_cv_CXX_dependencies_compiler_type=$depmode
7333 break
7334 fi
7335 fi
7336 done
7337
7338 cd ..
7339 rm -rf conftest.dir
7340else
7341 am_cv_CXX_dependencies_compiler_type=none
7342fi
7343
7344fi
7345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7346$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7347CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7348
7349 if
7350 test "x$enable_dependency_tracking" != xno \
7351 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7352 am__fastdepCXX_TRUE=
7353 am__fastdepCXX_FALSE='#'
7354else
7355 am__fastdepCXX_TRUE='#'
7356 am__fastdepCXX_FALSE=
7357fi
7358
7359
cristy8b350f62009-11-15 23:12:43 +00007360 case $ac_cv_prog_cc_stdc in #(
7361 no) :
7362 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
7363 *) :
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007365$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007366if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007367 $as_echo_n "(cached) " >&6
7368else
7369 ac_cv_prog_cc_c99=no
7370ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007371cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007372/* end confdefs.h. */
7373#include <stdarg.h>
7374#include <stdbool.h>
7375#include <stdlib.h>
7376#include <wchar.h>
7377#include <stdio.h>
7378
7379// Check varargs macros. These examples are taken from C99 6.10.3.5.
7380#define debug(...) fprintf (stderr, __VA_ARGS__)
7381#define showlist(...) puts (#__VA_ARGS__)
7382#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7383static void
7384test_varargs_macros (void)
7385{
7386 int x = 1234;
7387 int y = 5678;
7388 debug ("Flag");
7389 debug ("X = %d\n", x);
7390 showlist (The first, second, and third items.);
7391 report (x>y, "x is %d but y is %d", x, y);
7392}
7393
7394// Check long long types.
7395#define BIG64 18446744073709551615ull
7396#define BIG32 4294967295ul
7397#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7398#if !BIG_OK
7399 your preprocessor is broken;
7400#endif
7401#if BIG_OK
7402#else
7403 your preprocessor is broken;
7404#endif
7405static long long int bignum = -9223372036854775807LL;
7406static unsigned long long int ubignum = BIG64;
7407
7408struct incomplete_array
7409{
7410 int datasize;
7411 double data[];
7412};
7413
7414struct named_init {
7415 int number;
7416 const wchar_t *name;
7417 double average;
7418};
7419
7420typedef const char *ccp;
7421
7422static inline int
7423test_restrict (ccp restrict text)
7424{
7425 // See if C++-style comments work.
7426 // Iterate through items via the restricted pointer.
7427 // Also check for declarations in for loops.
7428 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7429 continue;
7430 return 0;
7431}
7432
7433// Check varargs and va_copy.
7434static void
7435test_varargs (const char *format, ...)
7436{
7437 va_list args;
7438 va_start (args, format);
7439 va_list args_copy;
7440 va_copy (args_copy, args);
7441
7442 const char *str;
7443 int number;
7444 float fnumber;
7445
7446 while (*format)
7447 {
7448 switch (*format++)
7449 {
7450 case 's': // string
7451 str = va_arg (args_copy, const char *);
7452 break;
7453 case 'd': // int
7454 number = va_arg (args_copy, int);
7455 break;
7456 case 'f': // float
7457 fnumber = va_arg (args_copy, double);
7458 break;
7459 default:
7460 break;
7461 }
7462 }
7463 va_end (args_copy);
7464 va_end (args);
7465}
7466
7467int
7468main ()
7469{
7470
7471 // Check bool.
7472 _Bool success = false;
7473
7474 // Check restrict.
7475 if (test_restrict ("String literal") == 0)
7476 success = true;
7477 char *restrict newvar = "Another string";
7478
7479 // Check varargs.
7480 test_varargs ("s, d' f .", "string", 65, 34.234);
7481 test_varargs_macros ();
7482
7483 // Check flexible array members.
7484 struct incomplete_array *ia =
7485 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7486 ia->datasize = 10;
7487 for (int i = 0; i < ia->datasize; ++i)
7488 ia->data[i] = i * 1.234;
7489
7490 // Check named initializers.
7491 struct named_init ni = {
7492 .number = 34,
7493 .name = L"Test wide string",
7494 .average = 543.34343,
7495 };
7496
7497 ni.number = 58;
7498
7499 int dynamic_array[ni.number];
7500 dynamic_array[ni.number - 1] = 543;
7501
7502 // work around unused variable warnings
7503 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7504 || dynamic_array[ni.number - 1] != 543);
7505
7506 ;
7507 return 0;
7508}
7509_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007510for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy3ed852e2009-09-05 21:47:34 +00007511do
7512 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007513 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007514 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007515fi
cristy3ed852e2009-09-05 21:47:34 +00007516rm -f core conftest.err conftest.$ac_objext
7517 test "x$ac_cv_prog_cc_c99" != "xno" && break
7518done
7519rm -f conftest.$ac_ext
7520CC=$ac_save_CC
7521
7522fi
7523# AC_CACHE_VAL
7524case "x$ac_cv_prog_cc_c99" in
7525 x)
cristy8b350f62009-11-15 23:12:43 +00007526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007527$as_echo "none needed" >&6; } ;;
7528 xno)
cristy8b350f62009-11-15 23:12:43 +00007529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007530$as_echo "unsupported" >&6; } ;;
7531 *)
7532 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00007533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007534$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7535esac
cristy8b350f62009-11-15 23:12:43 +00007536if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007537 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7538else
cristy8b350f62009-11-15 23:12:43 +00007539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007540$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007541if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007542 $as_echo_n "(cached) " >&6
7543else
7544 ac_cv_prog_cc_c89=no
7545ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007546cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007547/* end confdefs.h. */
7548#include <stdarg.h>
7549#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00007550struct stat;
cristy3ed852e2009-09-05 21:47:34 +00007551/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7552struct buf { int x; };
7553FILE * (*rcsopen) (struct buf *, struct stat *, int);
7554static char *e (p, i)
7555 char **p;
7556 int i;
7557{
7558 return p[i];
7559}
7560static char *f (char * (*g) (char **, int), char **p, ...)
7561{
7562 char *s;
7563 va_list v;
7564 va_start (v,p);
7565 s = g (p, va_arg (v,int));
7566 va_end (v);
7567 return s;
7568}
7569
7570/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7571 function prototypes and stuff, but not '\xHH' hex character constants.
7572 These don't provoke an error unfortunately, instead are silently treated
7573 as 'x'. The following induces an error, until -std is added to get
7574 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7575 array size at least. It's necessary to write '\x00'==0 to get something
7576 that's true only with -std. */
7577int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7578
7579/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7580 inside strings and character constants. */
7581#define FOO(x) 'x'
7582int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7583
7584int test (int i, double x);
7585struct s1 {int (*f) (int a);};
7586struct s2 {int (*f) (double a);};
7587int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7588int argc;
7589char **argv;
7590int
7591main ()
7592{
7593return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7594 ;
7595 return 0;
7596}
7597_ACEOF
7598for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7599 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7600do
7601 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007602 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007603 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007604fi
cristy3ed852e2009-09-05 21:47:34 +00007605rm -f core conftest.err conftest.$ac_objext
7606 test "x$ac_cv_prog_cc_c89" != "xno" && break
7607done
7608rm -f conftest.$ac_ext
7609CC=$ac_save_CC
7610
7611fi
7612# AC_CACHE_VAL
7613case "x$ac_cv_prog_cc_c89" in
7614 x)
cristy8b350f62009-11-15 23:12:43 +00007615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007616$as_echo "none needed" >&6; } ;;
7617 xno)
cristy8b350f62009-11-15 23:12:43 +00007618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007619$as_echo "unsupported" >&6; } ;;
7620 *)
7621 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00007622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007623$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7624esac
cristy8b350f62009-11-15 23:12:43 +00007625if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007626 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7627else
7628 ac_cv_prog_cc_stdc=no
7629fi
7630
cristy3ed852e2009-09-05 21:47:34 +00007631fi
cristy3ed852e2009-09-05 21:47:34 +00007632 ;;
7633esac
cristy8b350f62009-11-15 23:12:43 +00007634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00007635$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007636 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007637 $as_echo_n "(cached) " >&6
7638fi
7639
cristy8b350f62009-11-15 23:12:43 +00007640 case $ac_cv_prog_cc_stdc in #(
7641 no) :
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7643$as_echo "unsupported" >&6; } ;; #(
7644 '') :
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7646$as_echo "none needed" >&6; } ;; #(
7647 *) :
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00007649$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7650esac
7651
cristy3ed852e2009-09-05 21:47:34 +00007652ac_ext=c
7653ac_cpp='$CPP $CPPFLAGS'
7654ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7655ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7656ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00007657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00007658$as_echo_n "checking how to run the C preprocessor... " >&6; }
7659# On Suns, sometimes $CPP names a directory.
7660if test -n "$CPP" && test -d "$CPP"; then
7661 CPP=
7662fi
7663if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00007664 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007665 $as_echo_n "(cached) " >&6
7666else
7667 # Double quotes because CPP needs to be expanded
7668 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7669 do
7670 ac_preproc_ok=false
7671for ac_c_preproc_warn_flag in '' yes
7672do
7673 # Use a header file that comes with gcc, so configuring glibc
7674 # with a fresh cross-compiler works.
7675 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7676 # <limits.h> exists even on freestanding compilers.
7677 # On the NeXT, cc -E runs the code through the compiler's parser,
7678 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007680/* end confdefs.h. */
7681#ifdef __STDC__
7682# include <limits.h>
7683#else
7684# include <assert.h>
7685#endif
7686 Syntax error
7687_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007688if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007689
cristy8b350f62009-11-15 23:12:43 +00007690else
cristy3ed852e2009-09-05 21:47:34 +00007691 # Broken: fails on valid input.
7692continue
7693fi
cristyda16f162011-02-19 23:52:17 +00007694rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007695
7696 # OK, works on sane cases. Now check whether nonexistent headers
7697 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007699/* end confdefs.h. */
7700#include <ac_nonexistent.h>
7701_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007702if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007703 # Broken: success on invalid input.
7704continue
7705else
cristy3ed852e2009-09-05 21:47:34 +00007706 # Passes both tests.
7707ac_preproc_ok=:
7708break
7709fi
cristyda16f162011-02-19 23:52:17 +00007710rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007711
7712done
7713# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007714rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007715if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007716 break
7717fi
7718
7719 done
7720 ac_cv_prog_CPP=$CPP
7721
7722fi
7723 CPP=$ac_cv_prog_CPP
7724else
7725 ac_cv_prog_CPP=$CPP
7726fi
cristy8b350f62009-11-15 23:12:43 +00007727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007728$as_echo "$CPP" >&6; }
7729ac_preproc_ok=false
7730for ac_c_preproc_warn_flag in '' yes
7731do
7732 # Use a header file that comes with gcc, so configuring glibc
7733 # with a fresh cross-compiler works.
7734 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7735 # <limits.h> exists even on freestanding compilers.
7736 # On the NeXT, cc -E runs the code through the compiler's parser,
7737 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007739/* end confdefs.h. */
7740#ifdef __STDC__
7741# include <limits.h>
7742#else
7743# include <assert.h>
7744#endif
7745 Syntax error
7746_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007747if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007748
cristy8b350f62009-11-15 23:12:43 +00007749else
cristy3ed852e2009-09-05 21:47:34 +00007750 # Broken: fails on valid input.
7751continue
7752fi
cristyda16f162011-02-19 23:52:17 +00007753rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007754
7755 # OK, works on sane cases. Now check whether nonexistent headers
7756 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007758/* end confdefs.h. */
7759#include <ac_nonexistent.h>
7760_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007761if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007762 # Broken: success on invalid input.
7763continue
7764else
cristy3ed852e2009-09-05 21:47:34 +00007765 # Passes both tests.
7766ac_preproc_ok=:
7767break
7768fi
cristyda16f162011-02-19 23:52:17 +00007769rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007770
7771done
7772# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007773rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007774if $ac_preproc_ok; then :
7775
cristy3ed852e2009-09-05 21:47:34 +00007776else
cristy8b350f62009-11-15 23:12:43 +00007777 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007778$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00007779as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7780See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007781fi
7782
7783ac_ext=c
7784ac_cpp='$CPP $CPPFLAGS'
7785ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7786ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7787ac_compiler_gnu=$ac_cv_c_compiler_gnu
7788
cristy73bd4a52010-10-05 11:24:23 +00007789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7790$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007791if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007792 $as_echo_n "(cached) " >&6
7793else
7794 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7795 for ac_i in 1 2 3 4 5 6 7; do
7796 ac_script="$ac_script$as_nl$ac_script"
7797 done
7798 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7799 { ac_script=; unset ac_script;}
7800 if test -z "$SED"; then
7801 ac_path_SED_found=false
7802 # Loop through the user's path and test for each of PROGNAME-LIST
7803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7804for as_dir in $PATH
7805do
7806 IFS=$as_save_IFS
7807 test -z "$as_dir" && as_dir=.
7808 for ac_prog in sed gsed; do
7809 for ac_exec_ext in '' $ac_executable_extensions; do
7810 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007811 as_fn_executable_p "$ac_path_SED" || continue
cristy73bd4a52010-10-05 11:24:23 +00007812# Check for GNU ac_path_SED and select it if it is found.
7813 # Check for GNU $ac_path_SED
7814case `"$ac_path_SED" --version 2>&1` in
7815*GNU*)
7816 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7817*)
7818 ac_count=0
7819 $as_echo_n 0123456789 >"conftest.in"
7820 while :
7821 do
7822 cat "conftest.in" "conftest.in" >"conftest.tmp"
7823 mv "conftest.tmp" "conftest.in"
7824 cp "conftest.in" "conftest.nl"
7825 $as_echo '' >> "conftest.nl"
7826 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7827 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7828 as_fn_arith $ac_count + 1 && ac_count=$as_val
7829 if test $ac_count -gt ${ac_path_SED_max-0}; then
7830 # Best one so far, save it but keep looking for a better one
7831 ac_cv_path_SED="$ac_path_SED"
7832 ac_path_SED_max=$ac_count
7833 fi
7834 # 10*(2^10) chars as input seems more than enough
7835 test $ac_count -gt 10 && break
7836 done
7837 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7838esac
7839
7840 $ac_path_SED_found && break 3
7841 done
7842 done
7843 done
7844IFS=$as_save_IFS
7845 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007846 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007847 fi
7848else
7849 ac_cv_path_SED=$SED
7850fi
7851
7852fi
7853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7854$as_echo "$ac_cv_path_SED" >&6; }
7855 SED="$ac_cv_path_SED"
7856 rm -f conftest.sed
7857
7858test -z "$SED" && SED=sed
7859Xsed="$SED -e 1s/^X//"
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7872$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007873if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007874 $as_echo_n "(cached) " >&6
7875else
7876 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7877 then ac_cv_path_FGREP="$GREP -F"
7878 else
7879 if test -z "$FGREP"; then
7880 ac_path_FGREP_found=false
7881 # Loop through the user's path and test for each of PROGNAME-LIST
7882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7883for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7884do
7885 IFS=$as_save_IFS
7886 test -z "$as_dir" && as_dir=.
7887 for ac_prog in fgrep; do
7888 for ac_exec_ext in '' $ac_executable_extensions; do
7889 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007890 as_fn_executable_p "$ac_path_FGREP" || continue
cristy73bd4a52010-10-05 11:24:23 +00007891# Check for GNU ac_path_FGREP and select it if it is found.
7892 # Check for GNU $ac_path_FGREP
7893case `"$ac_path_FGREP" --version 2>&1` in
7894*GNU*)
7895 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7896*)
7897 ac_count=0
7898 $as_echo_n 0123456789 >"conftest.in"
7899 while :
7900 do
7901 cat "conftest.in" "conftest.in" >"conftest.tmp"
7902 mv "conftest.tmp" "conftest.in"
7903 cp "conftest.in" "conftest.nl"
7904 $as_echo 'FGREP' >> "conftest.nl"
7905 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7906 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7907 as_fn_arith $ac_count + 1 && ac_count=$as_val
7908 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7909 # Best one so far, save it but keep looking for a better one
7910 ac_cv_path_FGREP="$ac_path_FGREP"
7911 ac_path_FGREP_max=$ac_count
7912 fi
7913 # 10*(2^10) chars as input seems more than enough
7914 test $ac_count -gt 10 && break
7915 done
7916 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7917esac
7918
7919 $ac_path_FGREP_found && break 3
7920 done
7921 done
7922 done
7923IFS=$as_save_IFS
7924 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007925 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007926 fi
7927else
7928 ac_cv_path_FGREP=$FGREP
7929fi
7930
7931 fi
7932fi
7933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7934$as_echo "$ac_cv_path_FGREP" >&6; }
7935 FGREP="$ac_cv_path_FGREP"
7936
7937
7938test -z "$GREP" && GREP=grep
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
cristy0c60a692010-11-04 01:09:47 +00007956ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7957ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7958ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7959
7960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7961$as_echo_n "checking how to print strings... " >&6; }
7962# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00007963if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00007964 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7965 ECHO='print -r --'
7966elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7967 ECHO='printf %s\n'
7968else
7969 # Use this function as a fallback that always works.
7970 func_fallback_echo ()
7971 {
7972 eval 'cat <<_LTECHO_EOF
7973$1
7974_LTECHO_EOF'
7975 }
7976 ECHO='func_fallback_echo'
7977fi
7978
7979# func_echo_all arg...
7980# Invoke $ECHO with all args, space-separated.
7981func_echo_all ()
7982{
7983 $ECHO ""
7984}
7985
7986case "$ECHO" in
7987 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7988$as_echo "printf" >&6; } ;;
7989 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7990$as_echo "print -r" >&6; } ;;
7991 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7992$as_echo "cat" >&6; } ;;
7993esac
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
cristy73bd4a52010-10-05 11:24:23 +00008008
8009
8010# Check whether --with-gnu-ld was given.
8011if test "${with_gnu_ld+set}" = set; then :
8012 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8013else
8014 with_gnu_ld=no
8015fi
8016
8017ac_prog=ld
8018if test "$GCC" = yes; then
8019 # Check if gcc -print-prog-name=ld gives a path.
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8021$as_echo_n "checking for ld used by $CC... " >&6; }
8022 case $host in
8023 *-*-mingw*)
8024 # gcc leaves a trailing carriage return which upsets mingw
8025 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8026 *)
8027 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8028 esac
8029 case $ac_prog in
8030 # Accept absolute paths.
8031 [\\/]* | ?:[\\/]*)
8032 re_direlt='/[^/][^/]*/\.\./'
8033 # Canonicalize the pathname of ld
8034 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8035 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8036 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8037 done
8038 test -z "$LD" && LD="$ac_prog"
8039 ;;
8040 "")
8041 # If it fails, then pretend we aren't using GCC.
8042 ac_prog=ld
8043 ;;
8044 *)
8045 # If it is relative, then search for the first ld in PATH.
8046 with_gnu_ld=unknown
8047 ;;
8048 esac
8049elif test "$with_gnu_ld" = yes; then
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8051$as_echo_n "checking for GNU ld... " >&6; }
8052else
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8054$as_echo_n "checking for non-GNU ld... " >&6; }
8055fi
cristyda16f162011-02-19 23:52:17 +00008056if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008057 $as_echo_n "(cached) " >&6
8058else
8059 if test -z "$LD"; then
8060 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8061 for ac_dir in $PATH; do
8062 IFS="$lt_save_ifs"
8063 test -z "$ac_dir" && ac_dir=.
8064 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8065 lt_cv_path_LD="$ac_dir/$ac_prog"
8066 # Check to see if the program is GNU ld. I'd rather use --version,
8067 # but apparently some variants of GNU ld only accept -v.
8068 # Break only if it was the GNU/non-GNU ld that we prefer.
8069 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8070 *GNU* | *'with BFD'*)
8071 test "$with_gnu_ld" != no && break
8072 ;;
8073 *)
8074 test "$with_gnu_ld" != yes && break
8075 ;;
8076 esac
8077 fi
8078 done
8079 IFS="$lt_save_ifs"
8080else
8081 lt_cv_path_LD="$LD" # Let the user override the test with a path.
8082fi
8083fi
8084
8085LD="$lt_cv_path_LD"
8086if test -n "$LD"; then
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8088$as_echo "$LD" >&6; }
8089else
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8091$as_echo "no" >&6; }
8092fi
cristy98dddb52010-11-04 00:30:15 +00008093test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00008094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8095$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008096if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008097 $as_echo_n "(cached) " >&6
8098else
8099 # I'd rather use --version here, but apparently some GNU lds only accept -v.
8100case `$LD -v 2>&1 </dev/null` in
8101*GNU* | *'with BFD'*)
8102 lt_cv_prog_gnu_ld=yes
8103 ;;
8104*)
8105 lt_cv_prog_gnu_ld=no
8106 ;;
8107esac
8108fi
8109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8110$as_echo "$lt_cv_prog_gnu_ld" >&6; }
8111with_gnu_ld=$lt_cv_prog_gnu_ld
8112
8113
8114
8115
8116
8117
8118
8119
8120
cristy3ed852e2009-09-05 21:47:34 +00008121
cristy837d6dc2010-02-27 01:16:57 +00008122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
8123$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008124if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00008125 $as_echo_n "(cached) " >&6
8126else
8127 ac_cv_prog_cc_c99=no
8128ac_save_CC=$CC
8129cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8130/* end confdefs.h. */
8131#include <stdarg.h>
8132#include <stdbool.h>
8133#include <stdlib.h>
8134#include <wchar.h>
8135#include <stdio.h>
8136
8137// Check varargs macros. These examples are taken from C99 6.10.3.5.
8138#define debug(...) fprintf (stderr, __VA_ARGS__)
8139#define showlist(...) puts (#__VA_ARGS__)
8140#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
8141static void
8142test_varargs_macros (void)
8143{
8144 int x = 1234;
8145 int y = 5678;
8146 debug ("Flag");
8147 debug ("X = %d\n", x);
8148 showlist (The first, second, and third items.);
8149 report (x>y, "x is %d but y is %d", x, y);
8150}
8151
8152// Check long long types.
8153#define BIG64 18446744073709551615ull
8154#define BIG32 4294967295ul
8155#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
8156#if !BIG_OK
8157 your preprocessor is broken;
8158#endif
8159#if BIG_OK
8160#else
8161 your preprocessor is broken;
8162#endif
8163static long long int bignum = -9223372036854775807LL;
8164static unsigned long long int ubignum = BIG64;
8165
8166struct incomplete_array
8167{
8168 int datasize;
8169 double data[];
8170};
8171
8172struct named_init {
8173 int number;
8174 const wchar_t *name;
8175 double average;
8176};
8177
8178typedef const char *ccp;
8179
8180static inline int
8181test_restrict (ccp restrict text)
8182{
8183 // See if C++-style comments work.
8184 // Iterate through items via the restricted pointer.
8185 // Also check for declarations in for loops.
8186 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
8187 continue;
8188 return 0;
8189}
8190
8191// Check varargs and va_copy.
8192static void
8193test_varargs (const char *format, ...)
8194{
8195 va_list args;
8196 va_start (args, format);
8197 va_list args_copy;
8198 va_copy (args_copy, args);
8199
8200 const char *str;
8201 int number;
8202 float fnumber;
8203
8204 while (*format)
8205 {
8206 switch (*format++)
8207 {
8208 case 's': // string
8209 str = va_arg (args_copy, const char *);
8210 break;
8211 case 'd': // int
8212 number = va_arg (args_copy, int);
8213 break;
8214 case 'f': // float
8215 fnumber = va_arg (args_copy, double);
8216 break;
8217 default:
8218 break;
8219 }
8220 }
8221 va_end (args_copy);
8222 va_end (args);
8223}
8224
8225int
8226main ()
8227{
8228
8229 // Check bool.
8230 _Bool success = false;
8231
8232 // Check restrict.
8233 if (test_restrict ("String literal") == 0)
8234 success = true;
8235 char *restrict newvar = "Another string";
8236
8237 // Check varargs.
8238 test_varargs ("s, d' f .", "string", 65, 34.234);
8239 test_varargs_macros ();
8240
8241 // Check flexible array members.
8242 struct incomplete_array *ia =
8243 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
8244 ia->datasize = 10;
8245 for (int i = 0; i < ia->datasize; ++i)
8246 ia->data[i] = i * 1.234;
8247
8248 // Check named initializers.
8249 struct named_init ni = {
8250 .number = 34,
8251 .name = L"Test wide string",
8252 .average = 543.34343,
8253 };
8254
8255 ni.number = 58;
8256
8257 int dynamic_array[ni.number];
8258 dynamic_array[ni.number - 1] = 543;
8259
8260 // work around unused variable warnings
8261 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
8262 || dynamic_array[ni.number - 1] != 543);
8263
8264 ;
8265 return 0;
8266}
8267_ACEOF
cristy14fefe52012-05-21 00:59:18 +00008268for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy837d6dc2010-02-27 01:16:57 +00008269do
8270 CC="$ac_save_CC $ac_arg"
8271 if ac_fn_c_try_compile "$LINENO"; then :
8272 ac_cv_prog_cc_c99=$ac_arg
8273fi
8274rm -f core conftest.err conftest.$ac_objext
8275 test "x$ac_cv_prog_cc_c99" != "xno" && break
8276done
8277rm -f conftest.$ac_ext
8278CC=$ac_save_CC
8279
8280fi
8281# AC_CACHE_VAL
8282case "x$ac_cv_prog_cc_c99" in
8283 x)
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
8285$as_echo "none needed" >&6; } ;;
8286 xno)
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
8288$as_echo "unsupported" >&6; } ;;
8289 *)
8290 CC="$CC $ac_cv_prog_cc_c99"
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
8292$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
8293esac
8294if test "x$ac_cv_prog_cc_c99" != xno; then :
8295
8296fi
8297
8298
cristy73bd4a52010-10-05 11:24:23 +00008299
cristy17491be2014-06-24 01:10:53 +00008300ac_ext=c
8301ac_cpp='$CPP $CPPFLAGS'
8302ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8303ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8304ac_compiler_gnu=$ac_cv_c_compiler_gnu
8305
cristy73bd4a52010-10-05 11:24:23 +00008306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
8307$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008308if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008309 $as_echo_n "(cached) " >&6
8310else
8311 ac_cv_cflags_warn_all="no, unknown"
cristy17491be2014-06-24 01:10:53 +00008312ac_save_CFLAGS="$CFLAGS"
8313for 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 +00008314do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
8315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8316/* end confdefs.h. */
8317
8318int
8319main ()
8320{
cristy24fc1fe2010-10-23 21:13:01 +00008321
cristy73bd4a52010-10-05 11:24:23 +00008322 ;
8323 return 0;
8324}
8325_ACEOF
8326if ac_fn_c_try_compile "$LINENO"; then :
8327 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
8328fi
8329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8330done
cristy17491be2014-06-24 01:10:53 +00008331CFLAGS="$ac_save_CFLAGS"
8332
8333fi
8334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
8335$as_echo "$ac_cv_cflags_warn_all" >&6; }
8336
8337
8338case ".$ac_cv_cflags_warn_all" in
8339 .ok|.ok,*) ;;
8340 .|.no|.no,*) ;;
cristy146497a2015-05-17 22:46:16 +00008341 *)
8342if ${CFLAGS+:} false; then :
8343
8344 case " $CFLAGS " in #(
8345 *" $ac_cv_cflags_warn_all "*) :
8346 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
cristy17491be2014-06-24 01:10:53 +00008347 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
8348 ac_status=$?
8349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristy146497a2015-05-17 22:46:16 +00008350 test $ac_status = 0; } ;; #(
8351 *) :
8352
8353 as_fn_append CFLAGS " $ac_cv_cflags_warn_all"
8354 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
8355 (: CFLAGS="$CFLAGS") 2>&5
cristy17491be2014-06-24 01:10:53 +00008356 ac_status=$?
8357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8358 test $ac_status = 0; }
cristy146497a2015-05-17 22:46:16 +00008359 ;;
8360esac
8361
cristy17491be2014-06-24 01:10:53 +00008362else
cristy146497a2015-05-17 22:46:16 +00008363
8364 CFLAGS=$ac_cv_cflags_warn_all
8365 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
8366 (: CFLAGS="$CFLAGS") 2>&5
8367 ac_status=$?
8368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8369 test $ac_status = 0; }
8370
cristy17491be2014-06-24 01:10:53 +00008371fi
8372 ;;
8373esac
8374
8375ac_ext=c
cristy73bd4a52010-10-05 11:24:23 +00008376ac_cpp='$CPP $CPPFLAGS'
8377ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8378ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8379ac_compiler_gnu=$ac_cv_c_compiler_gnu
8380
8381
cristya0b81c32010-01-22 02:54:33 +00008382
8383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8384$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8385set x ${MAKE-make}
8386ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00008387if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00008388 $as_echo_n "(cached) " >&6
8389else
8390 cat >conftest.make <<\_ACEOF
8391SHELL = /bin/sh
8392all:
8393 @echo '@@@%%%=$(MAKE)=@@@%%%'
8394_ACEOF
cristy98dddb52010-11-04 00:30:15 +00008395# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00008396case `${MAKE-make} -f conftest.make 2>/dev/null` in
8397 *@@@%%%=?*=@@@%%%*)
8398 eval ac_cv_prog_make_${ac_make}_set=yes;;
8399 *)
8400 eval ac_cv_prog_make_${ac_make}_set=no;;
8401esac
8402rm -f conftest.make
8403fi
8404if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8406$as_echo "yes" >&6; }
8407 SET_MAKE=
8408else
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8410$as_echo "no" >&6; }
8411 SET_MAKE="MAKE=${MAKE-make}"
8412fi
8413
cristy8b350f62009-11-15 23:12:43 +00008414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00008415$as_echo_n "checking whether ln -s works... " >&6; }
8416LN_S=$as_ln_s
8417if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00008418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00008419$as_echo "yes" >&6; }
8420else
cristy8b350f62009-11-15 23:12:43 +00008421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00008422$as_echo "no, using $LN_S" >&6; }
8423fi
8424
cristy8d0ff762013-03-10 20:33:28 +00008425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8426$as_echo_n "checking for a sed that does not truncate output... " >&6; }
8427if ${ac_cv_path_SED+:} false; then :
8428 $as_echo_n "(cached) " >&6
8429else
8430 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8431 for ac_i in 1 2 3 4 5 6 7; do
8432 ac_script="$ac_script$as_nl$ac_script"
8433 done
8434 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8435 { ac_script=; unset ac_script;}
8436 if test -z "$SED"; then
8437 ac_path_SED_found=false
8438 # Loop through the user's path and test for each of PROGNAME-LIST
8439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8440for as_dir in $PATH
8441do
8442 IFS=$as_save_IFS
8443 test -z "$as_dir" && as_dir=.
8444 for ac_prog in sed gsed; do
8445 for ac_exec_ext in '' $ac_executable_extensions; do
8446 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8447 as_fn_executable_p "$ac_path_SED" || continue
8448# Check for GNU ac_path_SED and select it if it is found.
8449 # Check for GNU $ac_path_SED
8450case `"$ac_path_SED" --version 2>&1` in
8451*GNU*)
8452 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8453*)
8454 ac_count=0
8455 $as_echo_n 0123456789 >"conftest.in"
8456 while :
8457 do
8458 cat "conftest.in" "conftest.in" >"conftest.tmp"
8459 mv "conftest.tmp" "conftest.in"
8460 cp "conftest.in" "conftest.nl"
8461 $as_echo '' >> "conftest.nl"
8462 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8463 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8464 as_fn_arith $ac_count + 1 && ac_count=$as_val
8465 if test $ac_count -gt ${ac_path_SED_max-0}; then
8466 # Best one so far, save it but keep looking for a better one
8467 ac_cv_path_SED="$ac_path_SED"
8468 ac_path_SED_max=$ac_count
8469 fi
8470 # 10*(2^10) chars as input seems more than enough
8471 test $ac_count -gt 10 && break
8472 done
8473 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8474esac
8475
8476 $ac_path_SED_found && break 3
8477 done
8478 done
8479 done
8480IFS=$as_save_IFS
8481 if test -z "$ac_cv_path_SED"; then
8482 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8483 fi
8484else
8485 ac_cv_path_SED=$SED
8486fi
8487
8488fi
8489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8490$as_echo "$ac_cv_path_SED" >&6; }
8491 SED="$ac_cv_path_SED"
8492 rm -f conftest.sed
8493
cristybc556452012-08-17 19:44:03 +00008494for ac_prog in gawk mawk nawk awk
8495do
8496 # Extract the first word of "$ac_prog", so it can be a program name with args.
8497set dummy $ac_prog; ac_word=$2
8498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8499$as_echo_n "checking for $ac_word... " >&6; }
8500if ${ac_cv_prog_AWK+:} false; then :
8501 $as_echo_n "(cached) " >&6
8502else
8503 if test -n "$AWK"; then
8504 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8505else
8506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8507for as_dir in $PATH
8508do
8509 IFS=$as_save_IFS
8510 test -z "$as_dir" && as_dir=.
8511 for ac_exec_ext in '' $ac_executable_extensions; do
8512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8513 ac_cv_prog_AWK="$ac_prog"
8514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8515 break 2
8516 fi
8517done
8518 done
8519IFS=$as_save_IFS
8520
8521fi
8522fi
8523AWK=$ac_cv_prog_AWK
8524if test -n "$AWK"; then
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8526$as_echo "$AWK" >&6; }
8527else
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8529$as_echo "no" >&6; }
8530fi
8531
8532
8533 test -n "$AWK" && break
8534done
8535
cristy73bd4a52010-10-05 11:24:23 +00008536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
8537$as_echo_n "checking if malloc debugging is wanted... " >&6; }
8538
8539# Check whether --with-dmalloc was given.
8540if test "${with_dmalloc+set}" = set; then :
8541 withval=$with_dmalloc; if test "$withval" = yes; then
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8543$as_echo "yes" >&6; }
8544
8545$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
8546
8547 LIBS="$LIBS -ldmalloc"
8548 LDFLAGS="$LDFLAGS -g"
8549else
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8551$as_echo "no" >&6; }
8552fi
8553else
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8555$as_echo "no" >&6; }
8556fi
8557
8558
8559
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
8561$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008562if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008563 $as_echo_n "(cached) " >&6
8564else
8565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8566/* end confdefs.h. */
8567#include <stdlib.h>
cristy146497a2015-05-17 22:46:16 +00008568 static void foo(void) __attribute__ ((unused));
cristy73bd4a52010-10-05 11:24:23 +00008569 static void
8570 foo(void) {
8571 exit(1);
8572 }
8573
8574int
8575main ()
8576{
8577
8578 ;
8579 return 0;
8580}
8581_ACEOF
8582if ac_fn_c_try_compile "$LINENO"; then :
8583 ax_cv___attribute__=yes
8584else
8585 ax_cv___attribute__=no
8586
8587fi
8588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8589
8590fi
8591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
8592$as_echo "$ax_cv___attribute__" >&6; }
8593 if test "$ax_cv___attribute__" = "yes"; then
8594
8595$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
8596
8597 fi
8598
cristy146497a2015-05-17 22:46:16 +00008599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
8600$as_echo_n "checking for C compiler vendor... " >&6; }
8601if ${ax_cv_c_compiler_vendor+:} false; then :
8602 $as_echo_n "(cached) " >&6
8603else
8604 # note: don't check for gcc first since some other compilers define __GNUC__
8605 vendors="intel: __ICC,__ECC,__INTEL_COMPILER
8606 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__
8607 pathscale: __PATHCC__,__PATHSCALE__
8608 clang: __clang__
8609 cray: _CRAYC
8610 fujitsu: __FUJITSU
8611 gnu: __GNUC__
8612 sun: __SUNPRO_C,__SUNPRO_CC
8613 hp: __HP_cc,__HP_aCC
8614 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
8615 borland: __BORLANDC__,__CODEGEARC__,__TURBOC__
8616 comeau: __COMO__
8617 kai: __KCC
8618 lcc: __LCC__
8619 sgi: __sgi,sgi
8620 microsoft: _MSC_VER
8621 metrowerks: __MWERKS__
8622 watcom: __WATCOMC__
8623 portland: __PGI
8624 tcc: __TINYC__
8625 unknown: UNKNOWN"
8626 for ventest in $vendors; do
8627 case $ventest in
8628 *:) vendor=$ventest; continue ;;
8629 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
8630 esac
8631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8632/* end confdefs.h. */
8633
8634int
8635main ()
8636{
8637
8638 #if !($vencpp)
8639 thisisanerror;
8640 #endif
8641
8642 ;
8643 return 0;
8644}
8645_ACEOF
8646if ac_fn_c_try_compile "$LINENO"; then :
8647 break
8648fi
8649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8650 done
8651 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
8652
8653fi
8654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
8655$as_echo "$ax_cv_c_compiler_vendor" >&6; }
8656
8657
cristy73bd4a52010-10-05 11:24:23 +00008658
8659
cristya0459972013-11-03 18:09:35 +00008660
8661
cristy17491be2014-06-24 01:10:53 +00008662
cristya0459972013-11-03 18:09:35 +00008663# Check whether --with-gcc-arch was given.
8664if test "${with_gcc_arch+set}" = set; then :
8665 withval=$with_gcc_arch; ax_gcc_arch=$withval
8666else
cristy17491be2014-06-24 01:10:53 +00008667 ax_gcc_arch=yes
cristya0459972013-11-03 18:09:35 +00008668fi
8669
8670
8671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8672$as_echo_n "checking for gcc architecture flag... " >&6; }
8673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8674$as_echo "" >&6; }
8675if ${ax_cv_gcc_archflag+:} false; then :
8676 $as_echo_n "(cached) " >&6
8677else
8678
8679ax_cv_gcc_archflag="unknown"
8680
8681if test "$GCC" = yes; then
8682
8683if test "x$ax_gcc_arch" = xyes; then
8684ax_gcc_arch=""
8685if test "$cross_compiling" = no; then
8686case $host_cpu in
cristy17491be2014-06-24 01:10:53 +00008687 i[3456]86*|x86_64*|amd64*) # use cpuid codes
cristya0459972013-11-03 18:09:35 +00008688
8689ac_ext=c
8690ac_cpp='$CPP $CPPFLAGS'
8691ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8692ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8693ac_compiler_gnu=$ac_cv_c_compiler_gnu
8694
8695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
8696$as_echo_n "checking for x86 cpuid 0 output... " >&6; }
8697if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
8698 $as_echo_n "(cached) " >&6
8699else
8700 if test "$cross_compiling" = yes; then :
8701 ax_cv_gcc_x86_cpuid_0=unknown
8702else
8703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8704/* end confdefs.h. */
8705#include <stdio.h>
8706int
8707main ()
8708{
8709
8710 int op = 0, eax, ebx, ecx, edx;
8711 FILE *f;
8712 __asm__("cpuid"
8713 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8714 : "a" (op));
8715 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8716 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8717 fclose(f);
8718 return 0;
8719
8720 ;
8721 return 0;
8722}
8723_ACEOF
8724if ac_fn_c_try_run "$LINENO"; then :
8725 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
8726else
8727 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
8728fi
8729rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8730 conftest.$ac_objext conftest.beam conftest.$ac_ext
8731fi
8732
8733fi
8734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
8735$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
8736ac_ext=c
8737ac_cpp='$CPP $CPPFLAGS'
8738ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8739ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8740ac_compiler_gnu=$ac_cv_c_compiler_gnu
8741
8742
8743
8744ac_ext=c
8745ac_cpp='$CPP $CPPFLAGS'
8746ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8747ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8748ac_compiler_gnu=$ac_cv_c_compiler_gnu
8749
8750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
8751$as_echo_n "checking for x86 cpuid 1 output... " >&6; }
8752if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
8753 $as_echo_n "(cached) " >&6
8754else
8755 if test "$cross_compiling" = yes; then :
8756 ax_cv_gcc_x86_cpuid_1=unknown
8757else
8758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8759/* end confdefs.h. */
8760#include <stdio.h>
8761int
8762main ()
8763{
8764
8765 int op = 1, eax, ebx, ecx, edx;
8766 FILE *f;
8767 __asm__("cpuid"
8768 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8769 : "a" (op));
8770 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8771 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8772 fclose(f);
8773 return 0;
8774
8775 ;
8776 return 0;
8777}
8778_ACEOF
8779if ac_fn_c_try_run "$LINENO"; then :
8780 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
8781else
8782 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
8783fi
8784rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8785 conftest.$ac_objext conftest.beam conftest.$ac_ext
8786fi
8787
8788fi
8789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
8790$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
8791ac_ext=c
8792ac_cpp='$CPP $CPPFLAGS'
8793ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8794ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8795ac_compiler_gnu=$ac_cv_c_compiler_gnu
8796
8797
8798 case $ax_cv_gcc_x86_cpuid_0 in
cristy146497a2015-05-17 22:46:16 +00008799 *:756e6547:6c65746e:49656e69) # Intel
cristya0459972013-11-03 18:09:35 +00008800 case $ax_cv_gcc_x86_cpuid_1 in
cristy146497a2015-05-17 22:46:16 +00008801 *5[4578]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
8802 *5[123]?:*:*:*) ax_gcc_arch=pentium ;;
8803 *0?61?:*:*:*|?61?:*:*:*|61?:*:*:*) ax_gcc_arch=pentiumpro ;;
8804 *0?6[356]?:*:*:*|?6[356]?:*:*:*|6[356]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8805 *0?6[78ab]?:*:*:*|?6[78ab]?:*:*:*|6[78ab]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8806 *0?6[9d]?:*:*:*|?6[9d]?:*:*:*|6[9d]?:*:*:*|*1?65?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
8807 *0?6e?:*:*:*|?6e?:*:*:*|6e?:*:*:*) ax_gcc_arch="yonah pentium-m pentium3 pentiumpro" ;;
8808 *0?6f?:*:*:*|?6f?:*:*:*|6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
cristya0459972013-11-03 18:09:35 +00008809 *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
cristy146497a2015-05-17 22:46:16 +00008810 *1?6[aef]?:*:*:*|*2?6e?:*:*:*) ax_gcc_arch="nehalem corei7 core2 pentium-m pentium3 pentiumpro" ;;
8811 *2?6[5cf]?:*:*:*) ax_gcc_arch="westmere corei7 core2 pentium-m pentium3 pentiumpro" ;;
8812 *2?6[ad]?:*:*:*) ax_gcc_arch="sandybridge corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8813 *3?6[ae]?:*:*:*) ax_gcc_arch="ivybridge core-avx-i corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8814 *3?6[cf]?:*:*:*|*4?6[56]?:*:*:*) ax_gcc_arch="haswell core-avx2 core-avx-i corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8815 *3?6d?:*:*:*) ax_gcc_arch="broadwell core-avx2 core-avx-i corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8816 *1?6c?:*:*:*|*2?6[67]?:*:*:*|*3?6[56]?:*:*:*) ax_gcc_arch="bonnell atom core2 pentium-m pentium3 pentiumpro" ;;
8817 *3?67?:*:*:*|*[45]?6[ad]?:*:*:*) ax_gcc_arch="silvermont atom core2 pentium-m pentium3 pentiumpro" ;;
8818 *000?f[012]?:*:*:*|?f[012]?:*:*:*|f[012]?:*:*:*) ax_gcc_arch="pentium4 pentiumpro" ;;
8819 *000?f[346]?:*:*:*|?f[346]?:*:*:*|f[346]?:*:*:*) ax_gcc_arch="nocona prescott pentium4 pentiumpro" ;;
8820 # fallback
8821 *5??:*:*:*) ax_gcc_arch=pentium ;;
8822 *??6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
cristy17491be2014-06-24 01:10:53 +00008823 *6??:*:*:*) ax_gcc_arch=pentiumpro ;;
cristy146497a2015-05-17 22:46:16 +00008824 *00??f??:*:*:*|??f??:*:*:*|?f??:*:*:*|f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro" ;;
cristya0459972013-11-03 18:09:35 +00008825 esac ;;
cristy146497a2015-05-17 22:46:16 +00008826 *:68747541:444d4163:69746e65) # AMD
cristya0459972013-11-03 18:09:35 +00008827 case $ax_cv_gcc_x86_cpuid_1 in
8828 *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
cristy146497a2015-05-17 22:46:16 +00008829 *5[8]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
8830 *5[9d]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
cristya0459972013-11-03 18:09:35 +00008831 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
8832 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
cristy146497a2015-05-17 22:46:16 +00008833 *6[678a]?:*:*:*) ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
8834 *000?f[4578bcef]?:*:*:*|?f[4578bcef]?:*:*:*|f[4578bcef]?:*:*:*|*001?f[4578bcf]?:*:*:*|1?f[4578bcf]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
8835 *002?f[13457bcf]?:*:*:*|2?f[13457bcf]?:*:*:*|*004?f[138bcf]?:*:*:*|4?f[138bcf]?:*:*:*|*005?f[df]?:*:*:*|5?f[df]?:*:*:*|*006?f[8bcf]?:*:*:*|6?f[8bcf]?:*:*:*|*007?f[cf]?:*:*:*|7?f[cf]?:*:*:*|*00c?f1?:*:*:*|c?f1?:*:*:*|*020?f3?:*:*:*|20?f3?:*:*:*) ax_gcc_arch="athlon64-sse3 k8-sse3 athlon64 k8" ;;
8836 *010?f[245689a]?:*:*:*|10?f[245689a]?:*:*:*|*030?f1?:*:*:*|30?f1?:*:*:*) ax_gcc_arch="barcelona amdfam10 k8" ;;
8837 *050?f[12]?:*:*:*|50?f[12]?:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
8838 *060?f1?:*:*:*|60?f1?:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
8839 *060?f2?:*:*:*|60?f2?:*:*:*|*061?f[03]?:*:*:*|61?f[03]?:*:*:*) ax_gcc_arch="bdver2 bdver1 amdfam10 k8" ;;
8840 *063?f0?:*:*:*|63?f0?:*:*:*) ax_gcc_arch="bdver3 bdver2 bdver1 amdfam10 k8" ;;
8841 *07[03]?f0?:*:*:*|7[03]?f0?:*:*:*) ax_gcc_arch="btver2 btver1 amdfam10 k8" ;;
8842 # fallback
8843 *0[13]??f??:*:*:*|[13]??f??:*:*:*) ax_gcc_arch="barcelona amdfam10 k8" ;;
8844 *020?f??:*:*:*|20?f??:*:*:*) ax_gcc_arch="athlon64-sse3 k8-sse3 athlon64 k8" ;;
8845 *05??f??:*:*:*|5??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
8846 *060?f??:*:*:*|60?f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
8847 *061?f??:*:*:*|61?f??:*:*:*) ax_gcc_arch="bdver2 bdver1 amdfam10 k8" ;;
8848 *06??f??:*:*:*|6??f??:*:*:*) ax_gcc_arch="bdver3 bdver2 bdver1 amdfam10 k8" ;;
8849 *070?f??:*:*:*|70?f??:*:*:*) ax_gcc_arch="btver2 btver1 amdfam10 k8" ;;
8850 *???f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
cristya0459972013-11-03 18:09:35 +00008851 esac ;;
cristy146497a2015-05-17 22:46:16 +00008852 *:746e6543:736c7561:48727561) # IDT / VIA (Centaur)
cristya0459972013-11-03 18:09:35 +00008853 case $ax_cv_gcc_x86_cpuid_1 in
8854 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
cristy146497a2015-05-17 22:46:16 +00008855 *5[89]?:*:*:*) ax_gcc_arch=winchip2 ;;
8856 *66?:*:*:*) ax_gcc_arch=winchip2 ;;
cristya0459972013-11-03 18:09:35 +00008857 *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
cristy146497a2015-05-17 22:46:16 +00008858 *6[9adf]?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
cristya0459972013-11-03 18:09:35 +00008859 esac ;;
8860 esac
8861 if test x"$ax_gcc_arch" = x; then # fallback
8862 case $host_cpu in
8863 i586*) ax_gcc_arch=pentium ;;
8864 i686*) ax_gcc_arch=pentiumpro ;;
8865 esac
8866 fi
8867 ;;
8868
8869 sparc*)
8870 # Extract the first word of "prtdiag", so it can be a program name with args.
8871set dummy prtdiag; ac_word=$2
8872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8873$as_echo_n "checking for $ac_word... " >&6; }
8874if ${ac_cv_path_PRTDIAG+:} false; then :
8875 $as_echo_n "(cached) " >&6
8876else
8877 case $PRTDIAG in
8878 [\\/]* | ?:[\\/]*)
8879 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
8880 ;;
8881 *)
8882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8883as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
8884for as_dir in $as_dummy
8885do
8886 IFS=$as_save_IFS
8887 test -z "$as_dir" && as_dir=.
8888 for ac_exec_ext in '' $ac_executable_extensions; do
8889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8890 ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
8891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8892 break 2
8893 fi
8894done
8895 done
8896IFS=$as_save_IFS
8897
8898 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
8899 ;;
8900esac
8901fi
8902PRTDIAG=$ac_cv_path_PRTDIAG
8903if test -n "$PRTDIAG"; then
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
8905$as_echo "$PRTDIAG" >&6; }
8906else
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8908$as_echo "no" >&6; }
8909fi
8910
8911
8912 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 +00008913 cputype=`echo "$cputype" | tr -d ' -' | $SED 's/SPARCIIi/SPARCII/' |tr $as_cr_LETTERS $as_cr_letters`
cristya0459972013-11-03 18:09:35 +00008914 case $cputype in
8915 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
8916 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
8917 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
8918 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
8919 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
8920 *cypress*) ax_gcc_arch=cypress ;;
8921 esac ;;
8922
8923 alphaev5) ax_gcc_arch=ev5 ;;
8924 alphaev56) ax_gcc_arch=ev56 ;;
8925 alphapca56) ax_gcc_arch="pca56 ev56" ;;
8926 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
8927 alphaev6) ax_gcc_arch=ev6 ;;
8928 alphaev67) ax_gcc_arch=ev67 ;;
8929 alphaev68) ax_gcc_arch="ev68 ev67" ;;
8930 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
8931 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
8932 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
8933
8934 powerpc*)
cristy17491be2014-06-24 01:10:53 +00008935 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`
8936 cputype=`echo $cputype | $SED -e 's/ppc//g;s/ *//g'`
cristya0459972013-11-03 18:09:35 +00008937 case $cputype in
8938 *750*) ax_gcc_arch="750 G3" ;;
8939 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
8940 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
8941 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
8942 *970*) ax_gcc_arch="970 G5 power4";;
8943 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
8944 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
8945 603ev|8240) ax_gcc_arch="$cputype 603e 603";;
8946 *) ax_gcc_arch=$cputype ;;
8947 esac
8948 ax_gcc_arch="$ax_gcc_arch powerpc"
8949 ;;
8950esac
8951fi # not cross-compiling
8952fi # guess arch
8953
8954if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
cristy146497a2015-05-17 22:46:16 +00008955if test "xyes" = xyes; then # if we require portable code
8956 flag_prefixes="-mtune="
8957 if test "x$ax_cv_c_compiler_vendor" = xclang; then flag_prefixes="-march="; fi
8958 # -mcpu=$arch and m$arch generate nonportable code on every arch except
8959 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr.
8960 case $host_cpu in i*86|x86_64*|amd64*) flag_prefixes="$flag_prefixes -mcpu= -m";; esac
8961else
8962 flag_prefixes="-march= -mcpu= -m"
8963fi
8964for flag_prefix in $flag_prefixes; do
8965 for arch in $ax_gcc_arch; do
8966 flag="$flag_prefix$arch"
cristya0459972013-11-03 18:09:35 +00008967 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
8968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
8969$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
8970if eval \${$as_CACHEVAR+:} false; then :
8971 $as_echo_n "(cached) " >&6
8972else
8973
8974 ax_check_save_flags=$CFLAGS
8975 CFLAGS="$CFLAGS $flag"
8976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8977/* end confdefs.h. */
8978
8979int
8980main ()
8981{
8982
8983 ;
8984 return 0;
8985}
8986_ACEOF
8987if ac_fn_c_try_compile "$LINENO"; then :
8988 eval "$as_CACHEVAR=yes"
8989else
8990 eval "$as_CACHEVAR=no"
8991fi
8992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8993 CFLAGS=$ax_check_save_flags
8994fi
8995eval ac_res=\$$as_CACHEVAR
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8997$as_echo "$ac_res" >&6; }
cristy146497a2015-05-17 22:46:16 +00008998if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
8999 if test "x$ax_cv_c_compiler_vendor" = xclang; then
9000 if test "xyes" = xyes; then
9001 if test "x$flag" = "x-march=$arch"; then flag=-mtune=$arch; fi
9002 fi
9003 fi; ax_cv_gcc_archflag=$flag; break
cristya0459972013-11-03 18:09:35 +00009004else
9005 :
9006fi
9007
9008 done
9009 test "x$ax_cv_gcc_archflag" = xunknown || break
9010done
9011fi
9012
9013fi # $GCC=yes
9014
9015fi
9016
9017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
9018$as_echo_n "checking for gcc architecture flag... " >&6; }
9019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
9020$as_echo "$ax_cv_gcc_archflag" >&6; }
9021if test "x$ax_cv_gcc_archflag" = xunknown; then
9022 :
9023else
9024 CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
9025fi
9026
9027
9028
cristy146497a2015-05-17 22:46:16 +00009029
9030
9031
9032
9033
cristy73bd4a52010-10-05 11:24:23 +00009034if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9035 if test -n "$ac_tool_prefix"; then
9036 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9037set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9039$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009040if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009041 $as_echo_n "(cached) " >&6
9042else
9043 case $PKG_CONFIG in
9044 [\\/]* | ?:[\\/]*)
9045 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9046 ;;
9047 *)
9048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9049for as_dir in $PATH
9050do
9051 IFS=$as_save_IFS
9052 test -z "$as_dir" && as_dir=.
9053 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009055 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9057 break 2
9058 fi
9059done
9060 done
9061IFS=$as_save_IFS
9062
9063 ;;
9064esac
9065fi
9066PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9067if test -n "$PKG_CONFIG"; then
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9069$as_echo "$PKG_CONFIG" >&6; }
9070else
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9072$as_echo "no" >&6; }
9073fi
9074
9075
9076fi
9077if test -z "$ac_cv_path_PKG_CONFIG"; then
9078 ac_pt_PKG_CONFIG=$PKG_CONFIG
9079 # Extract the first word of "pkg-config", so it can be a program name with args.
9080set dummy pkg-config; ac_word=$2
9081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9082$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009083if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009084 $as_echo_n "(cached) " >&6
9085else
9086 case $ac_pt_PKG_CONFIG in
9087 [\\/]* | ?:[\\/]*)
9088 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9089 ;;
9090 *)
9091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9092for as_dir in $PATH
9093do
9094 IFS=$as_save_IFS
9095 test -z "$as_dir" && as_dir=.
9096 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009098 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9100 break 2
9101 fi
9102done
9103 done
9104IFS=$as_save_IFS
9105
9106 ;;
9107esac
9108fi
9109ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9110if test -n "$ac_pt_PKG_CONFIG"; then
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
9112$as_echo "$ac_pt_PKG_CONFIG" >&6; }
9113else
9114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9115$as_echo "no" >&6; }
9116fi
9117
9118 if test "x$ac_pt_PKG_CONFIG" = x; then
9119 PKG_CONFIG=""
9120 else
9121 case $cross_compiling:$ac_tool_warned in
9122yes:)
9123{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9124$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9125ac_tool_warned=yes ;;
9126esac
9127 PKG_CONFIG=$ac_pt_PKG_CONFIG
9128 fi
9129else
9130 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9131fi
9132
9133fi
9134if test -n "$PKG_CONFIG"; then
9135 _pkg_min_version=0.9.0
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
9137$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
9138 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9140$as_echo "yes" >&6; }
9141 else
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9143$as_echo "no" >&6; }
9144 PKG_CONFIG=""
9145 fi
cristy73bd4a52010-10-05 11:24:23 +00009146fi
cristy3ed852e2009-09-05 21:47:34 +00009147
cristy9af1cbf2014-12-28 22:03:09 +00009148
9149
cristyd95b7a52013-10-23 13:12:53 +00009150# Test for 64-bit build.
9151# The cast to long int works around a bug in the HP C Compiler
9152# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9153# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9154# This bug is HP SR number 8606223364.
9155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
9156$as_echo_n "checking size of size_t... " >&6; }
9157if ${ac_cv_sizeof_size_t+:} false; then :
9158 $as_echo_n "(cached) " >&6
9159else
9160 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
9161
9162else
9163 if test "$ac_cv_type_size_t" = yes; then
9164 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9165$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9166as_fn_error 77 "cannot compute sizeof (size_t)
9167See \`config.log' for more details" "$LINENO" 5; }
9168 else
9169 ac_cv_sizeof_size_t=0
9170 fi
9171fi
9172
9173fi
9174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
9175$as_echo "$ac_cv_sizeof_size_t" >&6; }
9176
9177
9178
9179cat >>confdefs.h <<_ACEOF
9180#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
9181_ACEOF
9182
9183
9184
9185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
9186$as_echo_n "checking for C compiler vendor... " >&6; }
9187if ${ax_cv_c_compiler_vendor+:} false; then :
9188 $as_echo_n "(cached) " >&6
9189else
cristy146497a2015-05-17 22:46:16 +00009190 # note: don't check for gcc first since some other compilers define __GNUC__
cristyd95b7a52013-10-23 13:12:53 +00009191 vendors="intel: __ICC,__ECC,__INTEL_COMPILER
9192 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__
9193 pathscale: __PATHCC__,__PATHSCALE__
9194 clang: __clang__
cristy146497a2015-05-17 22:46:16 +00009195 cray: _CRAYC
cristy17491be2014-06-24 01:10:53 +00009196 fujitsu: __FUJITSU
cristyd95b7a52013-10-23 13:12:53 +00009197 gnu: __GNUC__
9198 sun: __SUNPRO_C,__SUNPRO_CC
9199 hp: __HP_cc,__HP_aCC
9200 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
cristy146497a2015-05-17 22:46:16 +00009201 borland: __BORLANDC__,__CODEGEARC__,__TURBOC__
cristyd95b7a52013-10-23 13:12:53 +00009202 comeau: __COMO__
cristyd95b7a52013-10-23 13:12:53 +00009203 kai: __KCC
9204 lcc: __LCC__
9205 sgi: __sgi,sgi
9206 microsoft: _MSC_VER
9207 metrowerks: __MWERKS__
9208 watcom: __WATCOMC__
9209 portland: __PGI
cristy146497a2015-05-17 22:46:16 +00009210 tcc: __TINYC__
cristyd95b7a52013-10-23 13:12:53 +00009211 unknown: UNKNOWN"
9212 for ventest in $vendors; do
9213 case $ventest in
9214 *:) vendor=$ventest; continue ;;
9215 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
9216 esac
9217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9218/* end confdefs.h. */
9219
9220int
9221main ()
9222{
9223
9224 #if !($vencpp)
9225 thisisanerror;
9226 #endif
9227
9228 ;
9229 return 0;
9230}
9231_ACEOF
9232if ac_fn_c_try_compile "$LINENO"; then :
9233 break
9234fi
9235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9236 done
9237 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
9238
9239fi
9240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
9241$as_echo "$ax_cv_c_compiler_vendor" >&6; }
9242
cristyd95b7a52013-10-23 13:12:53 +00009243# The AX_CFLAGS_WARN_ALL macro doesn't currently work for sunpro
9244# compiler.
9245if test "$ax_cv_c_compiler_vendor" != "sun"; then
cristy17491be2014-06-24 01:10:53 +00009246 ac_ext=c
cristyd95b7a52013-10-23 13:12:53 +00009247ac_cpp='$CPP $CPPFLAGS'
9248ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9249ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9250ac_compiler_gnu=$ac_cv_c_compiler_gnu
9251
cristy17491be2014-06-24 01:10:53 +00009252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
9253$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
9254if ${ac_cv_cflags_warn_all+:} false; then :
9255 $as_echo_n "(cached) " >&6
9256else
9257 ac_cv_cflags_warn_all="no, unknown"
9258ac_save_CFLAGS="$CFLAGS"
9259for 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 +00009260do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
9261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9262/* end confdefs.h. */
9263
9264int
9265main ()
9266{
9267
9268 ;
9269 return 0;
9270}
9271_ACEOF
9272if ac_fn_c_try_compile "$LINENO"; then :
9273 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
9274fi
9275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9276done
cristy17491be2014-06-24 01:10:53 +00009277CFLAGS="$ac_save_CFLAGS"
9278
9279fi
9280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
9281$as_echo "$ac_cv_cflags_warn_all" >&6; }
9282
9283
9284case ".$ac_cv_cflags_warn_all" in
9285 .ok|.ok,*) ;;
9286 .|.no|.no,*) ;;
cristy146497a2015-05-17 22:46:16 +00009287 *)
9288if ${CFLAGS+:} false; then :
9289
9290 case " $CFLAGS " in #(
9291 *" $ac_cv_cflags_warn_all "*) :
9292 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
cristy17491be2014-06-24 01:10:53 +00009293 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
9294 ac_status=$?
9295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristy146497a2015-05-17 22:46:16 +00009296 test $ac_status = 0; } ;; #(
9297 *) :
9298
9299 as_fn_append CFLAGS " $ac_cv_cflags_warn_all"
9300 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
9301 (: CFLAGS="$CFLAGS") 2>&5
cristy17491be2014-06-24 01:10:53 +00009302 ac_status=$?
9303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9304 test $ac_status = 0; }
cristy146497a2015-05-17 22:46:16 +00009305 ;;
9306esac
9307
cristy17491be2014-06-24 01:10:53 +00009308else
cristy146497a2015-05-17 22:46:16 +00009309
9310 CFLAGS=$ac_cv_cflags_warn_all
9311 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
9312 (: CFLAGS="$CFLAGS") 2>&5
9313 ac_status=$?
9314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9315 test $ac_status = 0; }
9316
cristy17491be2014-06-24 01:10:53 +00009317fi
9318 ;;
9319esac
9320
9321ac_ext=c
cristyd95b7a52013-10-23 13:12:53 +00009322ac_cpp='$CPP $CPPFLAGS'
9323ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9324ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9325ac_compiler_gnu=$ac_cv_c_compiler_gnu
9326
9327
9328fi
cristyd95b7a52013-10-23 13:12:53 +00009329
9330if test "x$GCC" = "xyes"; then
9331 CFLAGS="$CFLAGS -fexceptions"
9332 touch local.exp
9333else
9334 cat > local.exp <<EOF
9335set CC_FOR_TARGET "$CC"
9336EOF
9337fi
9338
cristy9b86f202012-11-28 21:55:35 +00009339# Check for linker script support
9340
9341 # Check whether --enable-ld-version-script was given.
9342if test "${enable_ld_version_script+set}" = set; then :
9343 enableval=$enable_ld_version_script; have_ld_version_script=$enableval
9344fi
9345
9346 if test -z "$have_ld_version_script"; then
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
9348$as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
9349 save_LDFLAGS="$LDFLAGS"
9350 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
9351 cat > conftest.map <<EOF
9352foo
9353EOF
9354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9355/* end confdefs.h. */
9356
9357int
9358main ()
9359{
9360
9361 ;
9362 return 0;
9363}
9364_ACEOF
9365if ac_fn_c_try_link "$LINENO"; then :
9366 accepts_syntax_errors=yes
9367else
9368 accepts_syntax_errors=no
9369fi
9370rm -f core conftest.err conftest.$ac_objext \
9371 conftest$ac_exeext conftest.$ac_ext
9372 if test "$accepts_syntax_errors" = no; then
9373 cat > conftest.map <<EOF
9374VERS_1 {
9375 global: sym;
9376};
9377
9378VERS_2 {
9379 global: sym;
9380} VERS_1;
9381EOF
9382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9383/* end confdefs.h. */
9384
9385int
9386main ()
9387{
9388
9389 ;
9390 return 0;
9391}
9392_ACEOF
9393if ac_fn_c_try_link "$LINENO"; then :
9394 have_ld_version_script=yes
9395else
9396 have_ld_version_script=no
9397fi
9398rm -f core conftest.err conftest.$ac_objext \
9399 conftest$ac_exeext conftest.$ac_ext
9400 else
9401 have_ld_version_script=no
9402 fi
9403 rm -f conftest.map
9404 LDFLAGS="$save_LDFLAGS"
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
9406$as_echo "$have_ld_version_script" >&6; }
9407 fi
9408 if test "$have_ld_version_script" = "yes"; then
9409 HAVE_LD_VERSION_SCRIPT_TRUE=
9410 HAVE_LD_VERSION_SCRIPT_FALSE='#'
9411else
9412 HAVE_LD_VERSION_SCRIPT_TRUE='#'
9413 HAVE_LD_VERSION_SCRIPT_FALSE=
9414fi
9415
9416
9417
cristy3ed852e2009-09-05 21:47:34 +00009418#
cristy3ed852e2009-09-05 21:47:34 +00009419# Enable run-time checking.
9420#
9421# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00009422if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009423 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
9424else
9425 enable_bounds_checking='no'
9426fi
9427
9428
9429if test "$enable_bounds_checking" = yes; then
9430
cristy8b350f62009-11-15 23:12:43 +00009431$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009432
9433fi
9434
9435#
9436# Tests for Windows
9437#
9438
9439
9440
9441GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00009442native_win32_build='no'
9443cygwin_build='no'
9444case "${host_os}" in
9445 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00009446 cygwin_build='yes'
9447 GDI32_LIBS='-lgdi32'
9448 ;;
9449 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00009450 native_win32_build='yes'
9451 GDI32_LIBS='-lgdi32'
9452 ;;
9453esac
9454if test "${GDI32_LIBS}x" != 'x'; then
9455
cristy8b350f62009-11-15 23:12:43 +00009456$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009457
9458fi
9459
cristy73bd4a52010-10-05 11:24:23 +00009460 if test "${GDI32_LIBS}x" != 'x' ; then
9461 WINGDI32_DELEGATE_TRUE=
9462 WINGDI32_DELEGATE_FALSE='#'
9463else
9464 WINGDI32_DELEGATE_TRUE='#'
9465 WINGDI32_DELEGATE_FALSE=
9466fi
9467
9468 if test "${native_win32_build}" = 'yes' ; then
9469 WIN32_NATIVE_BUILD_TRUE=
9470 WIN32_NATIVE_BUILD_FALSE='#'
9471else
9472 WIN32_NATIVE_BUILD_TRUE='#'
9473 WIN32_NATIVE_BUILD_FALSE=
9474fi
9475
9476 if test "${cygwin_build}" = 'yes' ; then
9477 CYGWIN_BUILD_TRUE=
9478 CYGWIN_BUILD_FALSE='#'
9479else
9480 CYGWIN_BUILD_TRUE='#'
9481 CYGWIN_BUILD_FALSE=
9482fi
9483
9484 if test "x${CC}" = 'xcl.exe' ; then
9485 USING_CL_TRUE=
9486 USING_CL_FALSE='#'
9487else
9488 USING_CL_TRUE='#'
9489 USING_CL_FALSE=
9490fi
9491
cristy3ed852e2009-09-05 21:47:34 +00009492
9493WinPathScript="${srcdirfull}/winpath.sh"
9494
9495
9496#
9497# Compiler flags tweaks
9498#
9499if test "${GCC}" != "yes"; then
9500 case "${host}" in
9501 *-*-hpux* )
9502 # aCC: HP ANSI C++ B3910B A.03.34
9503 CFLAGS="${CFLAGS} -Wp,-H30000"
9504 if test -n "${CXXFLAGS}"; then
9505 CXXFLAGS='-AA'
9506 else
9507 CXXFLAGS="${CXXFLAGS} -AA"
9508 fi
9509 ;;
9510 *-dec-osf5.* )
9511 # Compaq alphaev68-dec-osf5.1 compiler
9512 if test -n "${CXXFLAGS}"; then
9513 CXXFLAGS='-std strict_ansi -noimplicit_include'
9514 else
9515 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
9516 fi
9517 esac
9518fi
9519
9520# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00009521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00009522$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009523if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009524 $as_echo_n "(cached) " >&6
9525else
9526
9527im_cv_ld_lazyload='none'
9528case "${host}" in
9529 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
9530 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
9531 im_cv_ld_lazyload='-Wl,-zlazyload'
9532 fi
9533 ;;
9534esac
9535
9536fi
cristy8b350f62009-11-15 23:12:43 +00009537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00009538$as_echo "$im_cv_ld_lazyload" >&6; }
9539if test "${im_cv_ld_lazyload}" != 'none' ; then
9540 if test -z "${LDFLAGS}" ; then
9541 LDFLAGS="${im_cv_ld_lazyload}"
9542 else
9543 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
9544 fi
9545fi
9546
9547case "$host" in
cristyc37574e2013-02-16 01:04:55 +00009548 *darwin* | *-macos10*)
cristyb3b90d32013-02-16 15:44:08 +00009549 CFLAGS="${CFLAGS} -D_FORTIFY_SOURCE=0"
cristyc37574e2013-02-16 01:04:55 +00009550 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00009551if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009552 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
9553else
9554 build_osxuniversal=no
9555fi
9556
9557
cristyc37574e2013-02-16 01:04:55 +00009558 if test "${build_osxuniversal}" != no ; then
9559 if test "$enable_dependency_tracking" != no ; then
9560 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00009561Please re-run configure with these options:
9562 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00009563 " "$LINENO" 5
cristyc37574e2013-02-16 01:04:55 +00009564 fi
9565 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9566 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9567 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
cristy3ed852e2009-09-05 21:47:34 +00009568 fi
9569 ;;
9570esac
9571
cristy0151ae12011-10-28 16:32:29 +00009572#
9573# ARCH specific include directory
9574#
9575
cristy670aa3c2011-11-03 00:54:00 +00009576# Check whether --with-includearch-dir was given.
9577if test "${with_includearch_dir+set}" = set; then :
9578 withval=$with_includearch_dir; includearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00009579else
cristy670aa3c2011-11-03 00:54:00 +00009580 includearch_dir=$INCLUDE_DIR
cristy0151ae12011-10-28 16:32:29 +00009581fi
9582
9583
cristyd286fd72013-02-24 19:25:33 +00009584eval "eval INCLUDEARCH_DIR=$includearch_dir"
cristyac9041a2011-10-28 16:52:32 +00009585
cristy0151ae12011-10-28 16:32:29 +00009586
9587#
9588# ARCH specific configuration directory
9589#
9590
cristy670aa3c2011-11-03 00:54:00 +00009591# Check whether --with-sharearch-dir was given.
9592if test "${with_sharearch_dir+set}" = set; then :
9593 withval=$with_sharearch_dir; sharearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00009594else
cristy408ebcd2011-11-14 01:36:57 +00009595 sharearch_dir="${LIB_DIR}"
cristy0151ae12011-10-28 16:32:29 +00009596fi
9597
9598
cristy670aa3c2011-11-03 00:54:00 +00009599eval "eval SHAREARCH_DIR=$sharearch_dir"
cristyac9041a2011-10-28 16:52:32 +00009600
cristy0151ae12011-10-28 16:32:29 +00009601
cristy2ec87cc2013-02-18 17:46:50 +00009602# Path to the pkgconfig folder
9603
9604# Check whether --with-pkgconfigdir was given.
9605if test "${with_pkgconfigdir+set}" = set; then :
9606 withval=$with_pkgconfigdir; pkgconfigdir="$withval"
9607else
9608 pkgconfigdir='${libdir}/pkgconfig'
9609fi
9610
9611
9612
cristy0151ae12011-10-28 16:32:29 +00009613#
cristy3ed852e2009-09-05 21:47:34 +00009614# Enable support for threads
cristy1ae5c992013-07-30 14:55:07 +00009615#
9616# Find Posix threads library
9617#
cristy3ed852e2009-09-05 21:47:34 +00009618
9619# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00009620if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009621 withval=$with_threads; with_threads=$withval
9622else
9623 with_threads='yes'
9624fi
9625
9626
cristy1ae5c992013-07-30 14:55:07 +00009627THREAD_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00009628have_threads=no
9629if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00009630
9631
cristy73bd4a52010-10-05 11:24:23 +00009632ac_ext=c
9633ac_cpp='$CPP $CPPFLAGS'
9634ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9635ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9636ac_compiler_gnu=$ac_cv_c_compiler_gnu
9637
9638ax_pthread_ok=no
9639
9640# We used to check for pthread.h first, but this fails if pthread.h
9641# requires special compiler flags (e.g. on True64 or Sequent).
9642# It gets checked for in the link test anyway.
9643
9644# First of all, check if the user has set any of the PTHREAD_LIBS,
9645# etcetera environment variables, and if threads linking works using
9646# them:
9647if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9648 save_CFLAGS="$CFLAGS"
9649 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9650 save_LIBS="$LIBS"
9651 LIBS="$PTHREAD_LIBS $LIBS"
9652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9653$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9655/* end confdefs.h. */
9656
9657/* Override any GCC internal prototype to avoid an error.
9658 Use char because int might match the return type of a GCC
9659 builtin and then its argument prototype would still apply. */
9660#ifdef __cplusplus
9661extern "C"
9662#endif
9663char pthread_join ();
9664int
9665main ()
9666{
9667return pthread_join ();
9668 ;
9669 return 0;
9670}
9671_ACEOF
9672if ac_fn_c_try_link "$LINENO"; then :
9673 ax_pthread_ok=yes
9674fi
9675rm -f core conftest.err conftest.$ac_objext \
9676 conftest$ac_exeext conftest.$ac_ext
9677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9678$as_echo "$ax_pthread_ok" >&6; }
9679 if test x"$ax_pthread_ok" = xno; then
9680 PTHREAD_LIBS=""
9681 PTHREAD_CFLAGS=""
9682 fi
9683 LIBS="$save_LIBS"
9684 CFLAGS="$save_CFLAGS"
9685fi
9686
9687# We must check for the threads library under a number of different
9688# names; the ordering is very important because some systems
9689# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9690# libraries is broken (non-POSIX).
9691
9692# Create a list of thread flags to try. Items starting with a "-" are
9693# C compiler flags, and other items are library names, except for "none"
9694# which indicates that we try without any flags at all, and "pthread-config"
9695# which is a program returning the flags for the Pth emulation library.
9696
cristy2ec87cc2013-02-18 17:46:50 +00009697ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009698
9699# The ordering *is* (sometimes) important. Some notes on the
9700# individual items follow:
9701
9702# pthreads: AIX (must check this before -lpthread)
9703# none: in case threads are in libc; should be tried before -Kthread and
9704# other compiler flags to prevent continual compiler warnings
9705# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9706# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9707# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9708# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9709# -pthreads: Solaris/gcc
9710# -mthreads: Mingw32/gcc, Lynx/gcc
9711# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9712# doesn't hurt to check since this sometimes defines pthreads too;
9713# also defines -D_REENTRANT)
9714# ... -mt is also the pthreads flag for HP/aCC
9715# pthread: Linux, etcetera
9716# --thread-safe: KAI C++
9717# pthread-config: use pthread-config program (for GNU Pth library)
9718
cristy2ec87cc2013-02-18 17:46:50 +00009719case ${host_os} in
9720 solaris*)
cristy73bd4a52010-10-05 11:24:23 +00009721
9722 # On Solaris (at least, for some versions), libc contains stubbed
9723 # (non-functional) versions of the pthreads routines, so link-based
9724 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9725 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9726 # a function called by this macro, so we could check for that, but
9727 # who knows whether they'll stub that too in a future libc.) So,
9728 # we'll just look for -pthreads and -lpthread first:
9729
9730 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9731 ;;
9732
cristy2ec87cc2013-02-18 17:46:50 +00009733 darwin*)
cristya316db12011-10-24 00:49:45 +00009734 ax_pthread_flags="-pthread $ax_pthread_flags"
9735 ;;
cristy73bd4a52010-10-05 11:24:23 +00009736esac
9737
cristy17491be2014-06-24 01:10:53 +00009738# Clang doesn't consider unrecognized options an error unless we specify
9739# -Werror. We throw in some extra Clang-specific options to ensure that
9740# this doesn't happen for GCC, which also accepts -Werror.
9741
9742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
9743$as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
9744save_CFLAGS="$CFLAGS"
9745ax_pthread_extra_flags="-Werror"
9746CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
9747cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9748/* end confdefs.h. */
9749int foo(void);
9750int
9751main ()
9752{
9753foo()
9754 ;
9755 return 0;
9756}
9757_ACEOF
9758if ac_fn_c_try_compile "$LINENO"; then :
9759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9760$as_echo "yes" >&6; }
9761else
9762 ax_pthread_extra_flags=
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9764$as_echo "no" >&6; }
9765fi
9766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9767CFLAGS="$save_CFLAGS"
9768
cristy73bd4a52010-10-05 11:24:23 +00009769if test x"$ax_pthread_ok" = xno; then
9770for flag in $ax_pthread_flags; do
9771
9772 case $flag in
9773 none)
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9775$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9776 ;;
9777
9778 -*)
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9780$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9781 PTHREAD_CFLAGS="$flag"
9782 ;;
9783
cristya316db12011-10-24 00:49:45 +00009784 pthread-config)
9785 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009786set dummy pthread-config; ac_word=$2
9787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9788$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009789if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009790 $as_echo_n "(cached) " >&6
9791else
9792 if test -n "$ax_pthread_config"; then
9793 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9794else
9795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9796for as_dir in $PATH
9797do
9798 IFS=$as_save_IFS
9799 test -z "$as_dir" && as_dir=.
9800 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009802 ac_cv_prog_ax_pthread_config="yes"
9803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9804 break 2
9805 fi
9806done
9807 done
9808IFS=$as_save_IFS
9809
9810 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9811fi
9812fi
9813ax_pthread_config=$ac_cv_prog_ax_pthread_config
9814if test -n "$ax_pthread_config"; then
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9816$as_echo "$ax_pthread_config" >&6; }
9817else
9818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9819$as_echo "no" >&6; }
9820fi
9821
9822
cristya316db12011-10-24 00:49:45 +00009823 if test x"$ax_pthread_config" = xno; then continue; fi
9824 PTHREAD_CFLAGS="`pthread-config --cflags`"
9825 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9826 ;;
cristy73bd4a52010-10-05 11:24:23 +00009827
9828 *)
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9830$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9831 PTHREAD_LIBS="-l$flag"
9832 ;;
9833 esac
9834
9835 save_LIBS="$LIBS"
9836 save_CFLAGS="$CFLAGS"
9837 LIBS="$PTHREAD_LIBS $LIBS"
cristy17491be2014-06-24 01:10:53 +00009838 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
cristy73bd4a52010-10-05 11:24:23 +00009839
9840 # Check for various functions. We must include pthread.h,
9841 # since some functions may be macros. (On the Sequent, we
9842 # need a special flag -Kthread to make this header compile.)
9843 # We check for pthread_join because it is in -lpthread on IRIX
9844 # while pthread_create is in libc. We check for pthread_attr_init
9845 # due to DEC craziness with -lpthreads. We check for
9846 # pthread_cleanup_push because it is one of the few pthread
9847 # functions on Solaris that doesn't have a non-functional libc stub.
9848 # We try pthread_create on general principles.
9849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9850/* end confdefs.h. */
9851#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009852 static void routine(void *a) { a = 0; }
9853 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009854int
9855main ()
9856{
9857pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009858 pthread_create(&th, 0, start_routine, 0);
9859 pthread_join(th, 0);
9860 pthread_attr_init(&attr);
9861 pthread_cleanup_push(routine, 0);
9862 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009863 ;
9864 return 0;
9865}
9866_ACEOF
9867if ac_fn_c_try_link "$LINENO"; then :
9868 ax_pthread_ok=yes
9869fi
9870rm -f core conftest.err conftest.$ac_objext \
9871 conftest$ac_exeext conftest.$ac_ext
9872
9873 LIBS="$save_LIBS"
9874 CFLAGS="$save_CFLAGS"
9875
9876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9877$as_echo "$ax_pthread_ok" >&6; }
9878 if test "x$ax_pthread_ok" = xyes; then
9879 break;
9880 fi
9881
9882 PTHREAD_LIBS=""
9883 PTHREAD_CFLAGS=""
9884done
9885fi
9886
9887# Various other checks:
9888if test "x$ax_pthread_ok" = xyes; then
9889 save_LIBS="$LIBS"
9890 LIBS="$PTHREAD_LIBS $LIBS"
9891 save_CFLAGS="$CFLAGS"
9892 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9893
9894 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009896$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009897 attr_name=unknown
9898 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009900/* end confdefs.h. */
9901#include <pthread.h>
9902int
9903main ()
9904{
cristya316db12011-10-24 00:49:45 +00009905int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009906 ;
9907 return 0;
9908}
9909_ACEOF
9910if ac_fn_c_try_link "$LINENO"; then :
9911 attr_name=$attr; break
9912fi
9913rm -f core conftest.err conftest.$ac_objext \
9914 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009915 done
cristy73bd4a52010-10-05 11:24:23 +00009916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9917$as_echo "$attr_name" >&6; }
9918 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9919
9920cat >>confdefs.h <<_ACEOF
9921#define PTHREAD_CREATE_JOINABLE $attr_name
9922_ACEOF
9923
9924 fi
9925
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9927$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9928 flag=no
cristy2ec87cc2013-02-18 17:46:50 +00009929 case ${host_os} in
9930 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
9931 osf* | hpux*) flag="-D_REENTRANT";;
9932 solaris*)
9933 if test "$GCC" = "yes"; then
9934 flag="-D_REENTRANT"
9935 else
cristy17491be2014-06-24 01:10:53 +00009936 # TODO: What about Clang on Solaris?
cristy2ec87cc2013-02-18 17:46:50 +00009937 flag="-mt -D_REENTRANT"
9938 fi
9939 ;;
cristy73bd4a52010-10-05 11:24:23 +00009940 esac
cristy17491be2014-06-24 01:10:53 +00009941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
9942$as_echo "$flag" >&6; }
cristy73bd4a52010-10-05 11:24:23 +00009943 if test "x$flag" != xno; then
9944 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9945 fi
9946
cristya316db12011-10-24 00:49:45 +00009947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9948$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9949if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9950 $as_echo_n "(cached) " >&6
9951else
9952
9953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9954/* end confdefs.h. */
cristy17491be2014-06-24 01:10:53 +00009955#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009956int
9957main ()
9958{
9959int i = PTHREAD_PRIO_INHERIT;
9960 ;
9961 return 0;
9962}
9963_ACEOF
9964if ac_fn_c_try_link "$LINENO"; then :
9965 ax_cv_PTHREAD_PRIO_INHERIT=yes
9966else
9967 ax_cv_PTHREAD_PRIO_INHERIT=no
9968fi
9969rm -f core conftest.err conftest.$ac_objext \
9970 conftest$ac_exeext conftest.$ac_ext
9971
9972fi
9973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9974$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9975 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9976
9977$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9978
9979fi
9980
cristy73bd4a52010-10-05 11:24:23 +00009981 LIBS="$save_LIBS"
9982 CFLAGS="$save_CFLAGS"
9983
cristy23493c42013-04-11 16:04:59 +00009984 # More AIX lossage: compile with *_r variant
9985 if test "x$GCC" != xyes; then
9986 case $host_os in
9987 aix*)
9988 case "x/$CC" in #(
9989 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
9990 #handle absolute path differently from PATH based program lookup
9991 case "x$CC" in #(
9992 x/*) :
9993 if as_fn_executable_p ${CC}_r; then :
9994 PTHREAD_CC="${CC}_r"
9995fi ;; #(
9996 *) :
9997 for ac_prog in ${CC}_r
cristy73bd4a52010-10-05 11:24:23 +00009998do
9999 # Extract the first word of "$ac_prog", so it can be a program name with args.
10000set dummy $ac_prog; ac_word=$2
10001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10002$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010003if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010004 $as_echo_n "(cached) " >&6
10005else
10006 if test -n "$PTHREAD_CC"; then
10007 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
10008else
10009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10010for as_dir in $PATH
10011do
10012 IFS=$as_save_IFS
10013 test -z "$as_dir" && as_dir=.
10014 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010016 ac_cv_prog_PTHREAD_CC="$ac_prog"
10017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10018 break 2
10019 fi
10020done
10021 done
10022IFS=$as_save_IFS
10023
10024fi
10025fi
10026PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
10027if test -n "$PTHREAD_CC"; then
10028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
10029$as_echo "$PTHREAD_CC" >&6; }
10030else
10031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10032$as_echo "no" >&6; }
10033fi
10034
10035
10036 test -n "$PTHREAD_CC" && break
10037done
cristy23493c42013-04-11 16:04:59 +000010038test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10039 ;;
10040esac ;; #(
10041 *) :
10042 ;;
10043esac
10044 ;;
10045 esac
cristya316db12011-10-24 00:49:45 +000010046 fi
cristy73bd4a52010-10-05 11:24:23 +000010047fi
10048
cristy23493c42013-04-11 16:04:59 +000010049test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10050
cristy73bd4a52010-10-05 11:24:23 +000010051
10052
10053
10054
10055# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
10056if test x"$ax_pthread_ok" = xyes; then
10057
10058$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10059
10060 :
10061else
10062 ax_pthread_ok=no
10063
10064fi
10065ac_ext=c
10066ac_cpp='$CPP $CPPFLAGS'
10067ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10068ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10069ac_compiler_gnu=$ac_cv_c_compiler_gnu
10070
10071
cristy7acf8fb2010-09-23 19:58:53 +000010072 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +000010073 have_threads=yes
10074 DEF_THREAD="$PTHREAD_CFLAGS"
10075 CFLAGS="$CFLAGS $DEF_THREAD"
10076 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
cristy1ae5c992013-07-30 14:55:07 +000010077 THREAD_LIBS="$PTHREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000010078 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +000010079 { $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 +000010080$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
10081 CC="$PTHREAD_CC"
10082 fi
cristy55bf91c2010-09-24 00:29:41 +000010083
10084$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
10085
cristy3ed852e2009-09-05 21:47:34 +000010086 fi
10087fi
cristy1ae5c992013-07-30 14:55:07 +000010088LIBS="$LIBS $THREAD_LIBS"
10089
cristy3ed852e2009-09-05 21:47:34 +000010090
10091# Enable support for OpenMP
10092if test "$have_threads" != 'yes'; then
10093 ac_cv_prog_c_openmp=unsupported
10094fi
10095
10096 OPENMP_CFLAGS=
10097 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000010098if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010099 enableval=$enable_openmp;
10100fi
10101
10102 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +000010103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000010104$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010105if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010106 $as_echo_n "(cached) " >&6
10107else
cristy8b350f62009-11-15 23:12:43 +000010108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10109/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000010110
10111#ifndef _OPENMP
10112 choke me
10113#endif
10114#include <omp.h>
10115int main () { return omp_get_num_threads (); }
10116
10117_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010118if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010119 ac_cv_prog_c_openmp='none needed'
10120else
cristy8b350f62009-11-15 23:12:43 +000010121 ac_cv_prog_c_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +000010122 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
10123 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +000010124 ac_save_CFLAGS=$CFLAGS
10125 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000010126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10127/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000010128
10129#ifndef _OPENMP
10130 choke me
10131#endif
10132#include <omp.h>
10133int main () { return omp_get_num_threads (); }
10134
10135_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010136if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010137 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000010138fi
cristy8b350f62009-11-15 23:12:43 +000010139rm -f core conftest.err conftest.$ac_objext \
10140 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010141 CFLAGS=$ac_save_CFLAGS
10142 if test "$ac_cv_prog_c_openmp" != unsupported; then
10143 break
10144 fi
10145 done
10146fi
cristy8b350f62009-11-15 23:12:43 +000010147rm -f core conftest.err conftest.$ac_objext \
10148 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010149fi
cristy8b350f62009-11-15 23:12:43 +000010150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000010151$as_echo "$ac_cv_prog_c_openmp" >&6; }
10152 case $ac_cv_prog_c_openmp in #(
10153 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000010154 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000010155 *)
cristy8b350f62009-11-15 23:12:43 +000010156 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000010157 esac
10158 fi
10159
10160
10161CFLAGS="$OPENMP_CFLAGS $CFLAGS"
10162MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
10163
cristy391f1ce2010-09-09 17:23:28 +000010164if test "$enable_openmp" != no; then
10165 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
10166 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
10167 fi
10168fi
cristy3ed852e2009-09-05 21:47:34 +000010169
cristy736173a2009-09-20 21:18:22 +000010170# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +000010171
10172
cristy73bd4a52010-10-05 11:24:23 +000010173ac_ext=c
10174ac_cpp='$CPP $CPPFLAGS'
10175ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10176ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10177ac_compiler_gnu=$ac_cv_c_compiler_gnu
10178
10179ax_pthread_ok=no
10180
10181# We used to check for pthread.h first, but this fails if pthread.h
10182# requires special compiler flags (e.g. on True64 or Sequent).
10183# It gets checked for in the link test anyway.
10184
10185# First of all, check if the user has set any of the PTHREAD_LIBS,
10186# etcetera environment variables, and if threads linking works using
10187# them:
10188if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
10189 save_CFLAGS="$CFLAGS"
10190 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10191 save_LIBS="$LIBS"
10192 LIBS="$PTHREAD_LIBS $LIBS"
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
10194$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
10195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10196/* end confdefs.h. */
10197
10198/* Override any GCC internal prototype to avoid an error.
10199 Use char because int might match the return type of a GCC
10200 builtin and then its argument prototype would still apply. */
10201#ifdef __cplusplus
10202extern "C"
10203#endif
10204char pthread_join ();
10205int
10206main ()
10207{
10208return pthread_join ();
10209 ;
10210 return 0;
10211}
10212_ACEOF
10213if ac_fn_c_try_link "$LINENO"; then :
10214 ax_pthread_ok=yes
10215fi
10216rm -f core conftest.err conftest.$ac_objext \
10217 conftest$ac_exeext conftest.$ac_ext
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
10219$as_echo "$ax_pthread_ok" >&6; }
10220 if test x"$ax_pthread_ok" = xno; then
10221 PTHREAD_LIBS=""
10222 PTHREAD_CFLAGS=""
10223 fi
10224 LIBS="$save_LIBS"
10225 CFLAGS="$save_CFLAGS"
10226fi
10227
10228# We must check for the threads library under a number of different
10229# names; the ordering is very important because some systems
10230# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
10231# libraries is broken (non-POSIX).
10232
10233# Create a list of thread flags to try. Items starting with a "-" are
10234# C compiler flags, and other items are library names, except for "none"
10235# which indicates that we try without any flags at all, and "pthread-config"
10236# which is a program returning the flags for the Pth emulation library.
10237
cristy2ec87cc2013-02-18 17:46:50 +000010238ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy73bd4a52010-10-05 11:24:23 +000010239
10240# The ordering *is* (sometimes) important. Some notes on the
10241# individual items follow:
10242
10243# pthreads: AIX (must check this before -lpthread)
10244# none: in case threads are in libc; should be tried before -Kthread and
10245# other compiler flags to prevent continual compiler warnings
10246# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
10247# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
10248# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
10249# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
10250# -pthreads: Solaris/gcc
10251# -mthreads: Mingw32/gcc, Lynx/gcc
10252# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
10253# doesn't hurt to check since this sometimes defines pthreads too;
10254# also defines -D_REENTRANT)
10255# ... -mt is also the pthreads flag for HP/aCC
10256# pthread: Linux, etcetera
10257# --thread-safe: KAI C++
10258# pthread-config: use pthread-config program (for GNU Pth library)
10259
cristy2ec87cc2013-02-18 17:46:50 +000010260case ${host_os} in
10261 solaris*)
cristy73bd4a52010-10-05 11:24:23 +000010262
10263 # On Solaris (at least, for some versions), libc contains stubbed
10264 # (non-functional) versions of the pthreads routines, so link-based
10265 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
10266 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
10267 # a function called by this macro, so we could check for that, but
10268 # who knows whether they'll stub that too in a future libc.) So,
10269 # we'll just look for -pthreads and -lpthread first:
10270
10271 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
10272 ;;
10273
cristy2ec87cc2013-02-18 17:46:50 +000010274 darwin*)
cristya316db12011-10-24 00:49:45 +000010275 ax_pthread_flags="-pthread $ax_pthread_flags"
10276 ;;
cristy73bd4a52010-10-05 11:24:23 +000010277esac
10278
cristy17491be2014-06-24 01:10:53 +000010279# Clang doesn't consider unrecognized options an error unless we specify
10280# -Werror. We throw in some extra Clang-specific options to ensure that
10281# this doesn't happen for GCC, which also accepts -Werror.
10282
10283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
10284$as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
10285save_CFLAGS="$CFLAGS"
10286ax_pthread_extra_flags="-Werror"
10287CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
10288cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10289/* end confdefs.h. */
10290int foo(void);
10291int
10292main ()
10293{
10294foo()
10295 ;
10296 return 0;
10297}
10298_ACEOF
10299if ac_fn_c_try_compile "$LINENO"; then :
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10301$as_echo "yes" >&6; }
10302else
10303 ax_pthread_extra_flags=
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10305$as_echo "no" >&6; }
10306fi
10307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10308CFLAGS="$save_CFLAGS"
10309
cristy73bd4a52010-10-05 11:24:23 +000010310if test x"$ax_pthread_ok" = xno; then
10311for flag in $ax_pthread_flags; do
10312
10313 case $flag in
10314 none)
10315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
10316$as_echo_n "checking whether pthreads work without any flags... " >&6; }
10317 ;;
10318
10319 -*)
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
10321$as_echo_n "checking whether pthreads work with $flag... " >&6; }
10322 PTHREAD_CFLAGS="$flag"
10323 ;;
10324
cristya316db12011-10-24 00:49:45 +000010325 pthread-config)
10326 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +000010327set dummy pthread-config; ac_word=$2
10328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10329$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010330if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010331 $as_echo_n "(cached) " >&6
10332else
10333 if test -n "$ax_pthread_config"; then
10334 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
10335else
10336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10337for as_dir in $PATH
10338do
10339 IFS=$as_save_IFS
10340 test -z "$as_dir" && as_dir=.
10341 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010343 ac_cv_prog_ax_pthread_config="yes"
10344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10345 break 2
10346 fi
10347done
10348 done
10349IFS=$as_save_IFS
10350
10351 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
10352fi
10353fi
10354ax_pthread_config=$ac_cv_prog_ax_pthread_config
10355if test -n "$ax_pthread_config"; then
10356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
10357$as_echo "$ax_pthread_config" >&6; }
10358else
10359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10360$as_echo "no" >&6; }
10361fi
10362
10363
cristya316db12011-10-24 00:49:45 +000010364 if test x"$ax_pthread_config" = xno; then continue; fi
10365 PTHREAD_CFLAGS="`pthread-config --cflags`"
10366 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
10367 ;;
cristy73bd4a52010-10-05 11:24:23 +000010368
10369 *)
10370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
10371$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
10372 PTHREAD_LIBS="-l$flag"
10373 ;;
10374 esac
10375
10376 save_LIBS="$LIBS"
10377 save_CFLAGS="$CFLAGS"
10378 LIBS="$PTHREAD_LIBS $LIBS"
cristy17491be2014-06-24 01:10:53 +000010379 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
cristy73bd4a52010-10-05 11:24:23 +000010380
10381 # Check for various functions. We must include pthread.h,
10382 # since some functions may be macros. (On the Sequent, we
10383 # need a special flag -Kthread to make this header compile.)
10384 # We check for pthread_join because it is in -lpthread on IRIX
10385 # while pthread_create is in libc. We check for pthread_attr_init
10386 # due to DEC craziness with -lpthreads. We check for
10387 # pthread_cleanup_push because it is one of the few pthread
10388 # functions on Solaris that doesn't have a non-functional libc stub.
10389 # We try pthread_create on general principles.
10390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10391/* end confdefs.h. */
10392#include <pthread.h>
cristya316db12011-10-24 00:49:45 +000010393 static void routine(void *a) { a = 0; }
10394 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +000010395int
10396main ()
10397{
10398pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +000010399 pthread_create(&th, 0, start_routine, 0);
10400 pthread_join(th, 0);
10401 pthread_attr_init(&attr);
10402 pthread_cleanup_push(routine, 0);
10403 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +000010404 ;
10405 return 0;
10406}
10407_ACEOF
10408if ac_fn_c_try_link "$LINENO"; then :
10409 ax_pthread_ok=yes
10410fi
10411rm -f core conftest.err conftest.$ac_objext \
10412 conftest$ac_exeext conftest.$ac_ext
10413
10414 LIBS="$save_LIBS"
10415 CFLAGS="$save_CFLAGS"
10416
10417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
10418$as_echo "$ax_pthread_ok" >&6; }
10419 if test "x$ax_pthread_ok" = xyes; then
10420 break;
10421 fi
10422
10423 PTHREAD_LIBS=""
10424 PTHREAD_CFLAGS=""
10425done
10426fi
10427
10428# Various other checks:
10429if test "x$ax_pthread_ok" = xyes; then
10430 save_LIBS="$LIBS"
10431 LIBS="$PTHREAD_LIBS $LIBS"
10432 save_CFLAGS="$CFLAGS"
10433 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10434
10435 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +000010436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +000010437$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +000010438 attr_name=unknown
10439 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
10440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000010441/* end confdefs.h. */
10442#include <pthread.h>
10443int
10444main ()
10445{
cristya316db12011-10-24 00:49:45 +000010446int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +000010447 ;
10448 return 0;
10449}
10450_ACEOF
10451if ac_fn_c_try_link "$LINENO"; then :
10452 attr_name=$attr; break
10453fi
10454rm -f core conftest.err conftest.$ac_objext \
10455 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +000010456 done
cristy73bd4a52010-10-05 11:24:23 +000010457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
10458$as_echo "$attr_name" >&6; }
10459 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
10460
10461cat >>confdefs.h <<_ACEOF
10462#define PTHREAD_CREATE_JOINABLE $attr_name
10463_ACEOF
10464
10465 fi
10466
10467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
10468$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
10469 flag=no
cristy2ec87cc2013-02-18 17:46:50 +000010470 case ${host_os} in
10471 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
10472 osf* | hpux*) flag="-D_REENTRANT";;
10473 solaris*)
10474 if test "$GCC" = "yes"; then
10475 flag="-D_REENTRANT"
10476 else
cristy17491be2014-06-24 01:10:53 +000010477 # TODO: What about Clang on Solaris?
cristy2ec87cc2013-02-18 17:46:50 +000010478 flag="-mt -D_REENTRANT"
10479 fi
10480 ;;
cristy73bd4a52010-10-05 11:24:23 +000010481 esac
cristy17491be2014-06-24 01:10:53 +000010482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
10483$as_echo "$flag" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000010484 if test "x$flag" != xno; then
10485 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
10486 fi
10487
cristya316db12011-10-24 00:49:45 +000010488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
10489$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
10490if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
10491 $as_echo_n "(cached) " >&6
10492else
10493
10494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10495/* end confdefs.h. */
cristy17491be2014-06-24 01:10:53 +000010496#include <pthread.h>
cristya316db12011-10-24 00:49:45 +000010497int
10498main ()
10499{
10500int i = PTHREAD_PRIO_INHERIT;
10501 ;
10502 return 0;
10503}
10504_ACEOF
10505if ac_fn_c_try_link "$LINENO"; then :
10506 ax_cv_PTHREAD_PRIO_INHERIT=yes
10507else
10508 ax_cv_PTHREAD_PRIO_INHERIT=no
10509fi
10510rm -f core conftest.err conftest.$ac_objext \
10511 conftest$ac_exeext conftest.$ac_ext
10512
10513fi
10514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
10515$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
10516 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
10517
10518$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
10519
10520fi
10521
cristy73bd4a52010-10-05 11:24:23 +000010522 LIBS="$save_LIBS"
10523 CFLAGS="$save_CFLAGS"
10524
cristy23493c42013-04-11 16:04:59 +000010525 # More AIX lossage: compile with *_r variant
10526 if test "x$GCC" != xyes; then
10527 case $host_os in
10528 aix*)
10529 case "x/$CC" in #(
10530 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
10531 #handle absolute path differently from PATH based program lookup
10532 case "x$CC" in #(
10533 x/*) :
10534 if as_fn_executable_p ${CC}_r; then :
10535 PTHREAD_CC="${CC}_r"
10536fi ;; #(
10537 *) :
10538 for ac_prog in ${CC}_r
cristy73bd4a52010-10-05 11:24:23 +000010539do
10540 # Extract the first word of "$ac_prog", so it can be a program name with args.
10541set dummy $ac_prog; ac_word=$2
10542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10543$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010544if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010545 $as_echo_n "(cached) " >&6
10546else
10547 if test -n "$PTHREAD_CC"; then
10548 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
10549else
10550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10551for as_dir in $PATH
10552do
10553 IFS=$as_save_IFS
10554 test -z "$as_dir" && as_dir=.
10555 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010557 ac_cv_prog_PTHREAD_CC="$ac_prog"
10558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10559 break 2
10560 fi
10561done
10562 done
10563IFS=$as_save_IFS
10564
10565fi
10566fi
10567PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
10568if test -n "$PTHREAD_CC"; then
10569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
10570$as_echo "$PTHREAD_CC" >&6; }
10571else
10572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10573$as_echo "no" >&6; }
10574fi
10575
10576
10577 test -n "$PTHREAD_CC" && break
10578done
cristy23493c42013-04-11 16:04:59 +000010579test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10580 ;;
10581esac ;; #(
10582 *) :
10583 ;;
10584esac
10585 ;;
10586 esac
cristya316db12011-10-24 00:49:45 +000010587 fi
cristy73bd4a52010-10-05 11:24:23 +000010588fi
10589
cristy23493c42013-04-11 16:04:59 +000010590test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10591
cristy73bd4a52010-10-05 11:24:23 +000010592
10593
10594
10595
10596# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
10597if test x"$ax_pthread_ok" = xyes; then
10598
10599$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10600
10601 :
10602else
10603 ax_pthread_ok=no
10604
10605fi
10606ac_ext=c
10607ac_cpp='$CPP $CPPFLAGS'
10608ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10609ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10610ac_compiler_gnu=$ac_cv_c_compiler_gnu
10611
10612
10613
10614# Check whether --enable-opencl was given.
10615if test "${enable_opencl+set}" = set; then :
cristy48794642012-09-02 15:19:08 +000010616 enableval=$enable_opencl; enable_opencl=$enableval
cristy73bd4a52010-10-05 11:24:23 +000010617else
cristy48794642012-09-02 15:19:08 +000010618 enable_opencl='no'
cristy73bd4a52010-10-05 11:24:23 +000010619fi
10620
10621
cristy48794642012-09-02 15:19:08 +000010622if test "$enable_opencl" = 'yes'; then
cristy73bd4a52010-10-05 11:24:23 +000010623 ac_ext=c
10624ac_cpp='$CPP $CPPFLAGS'
10625ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10626ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10627ac_compiler_gnu=$ac_cv_c_compiler_gnu
10628
cristy75314cc2012-09-15 23:08:29 +000010629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
10630$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
10631if ${ax_cv_c_compiler_ms+:} false; then :
10632 $as_echo_n "(cached) " >&6
10633else
10634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10635/* end confdefs.h. */
10636
10637int
10638main ()
10639{
10640#ifndef _MSC_VER
10641 choke me
10642#endif
10643
10644 ;
10645 return 0;
10646}
10647_ACEOF
10648if ac_fn_c_try_compile "$LINENO"; then :
10649 ax_compiler_ms=yes
10650else
10651 ax_compiler_ms=no
10652fi
10653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10654ax_cv_c_compiler_ms=$ax_compiler_ms
10655
10656fi
10657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
10658$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000010659 if test X$ax_compiler_ms = Xno; then :
10660 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
10661fi
10662
10663 ax_save_CPPFLAGS=$CPPFLAGS
cristyfdc7d122013-08-17 20:46:45 +000010664 ax_save_CL_CFLAGS=$CL_CFLAGS
10665
10666 found_opencl_header='no'
cristy73bd4a52010-10-05 11:24:23 +000010667 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
10668 for ac_header in CL/cl.h OpenCL/cl.h
10669do :
10670 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10671ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000010672if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000010673 cat >>confdefs.h <<_ACEOF
10674#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10675_ACEOF
cristyfdc7d122013-08-17 20:46:45 +000010676 found_opencl_header='yes'
10677 break;
10678else
10679 found_opencl_header='no'
cristy73bd4a52010-10-05 11:24:23 +000010680fi
10681
10682done
10683
cristyfdc7d122013-08-17 20:46:45 +000010684
10685 if test X$found_opencl_header = Xno; then :
10686 { ac_cv_header_CL_cl_h=; unset ac_cv_header_CL_cl_h;}
10687 { ac_cv_header_OpenCL_cl_h=; unset ac_cv_header_OpenCL_cl_h;}
10688 CL_CFLAGS="-I$AMDAPPSDKROOT/include"
10689 CPPFLAGS="$ax_save_CPPFLAGS $CL_CFLAGS"
10690 for ac_header in CL/cl.h OpenCL/cl.h
10691do :
10692 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10693ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10694if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10695 cat >>confdefs.h <<_ACEOF
10696#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10697_ACEOF
10698 found_opencl_header='yes'
10699 break;
10700else
10701 found_opencl_header='no'
10702fi
10703
10704done
10705
10706
10707fi
10708
10709 CPPFLAGS="$ax_save_CPPFLAGS"
cristy73bd4a52010-10-05 11:24:23 +000010710
10711 for ac_header in windows.h
10712do :
10713 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000010714if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000010715 cat >>confdefs.h <<_ACEOF
10716#define HAVE_WINDOWS_H 1
10717_ACEOF
10718
10719fi
10720
10721done
10722
10723
10724
10725
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
10727$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010728if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010729 $as_echo_n "(cached) " >&6
10730else
10731 ax_cv_check_cl_libcl=no
10732 case $host_cpu in
cristyfdc7d122013-08-17 20:46:45 +000010733 x86_64) ax_check_cl_libdir=lib64
10734 ax_check_cl_amd_libdir=x86_64
10735 ;;
10736 *) ax_check_cl_libdir=lib
10737 ax_check_cl_amd_libdir=x86
10738 ;;
cristy73bd4a52010-10-05 11:24:23 +000010739 esac
10740 ax_save_CPPFLAGS=$CPPFLAGS
10741 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
10742 ax_save_LIBS=$LIBS
10743 LIBS=""
10744 ax_check_libs="-lOpenCL -lCL -lclparser"
10745 for ax_lib in $ax_check_libs; do
10746 if test X$ax_compiler_ms = Xyes; then :
10747 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
10748else
10749 ax_try_lib=$ax_lib
10750fi
10751 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
10752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10753/* end confdefs.h. */
10754
10755 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10756 # include <windows.h>
10757 # endif
10758 # ifdef HAVE_CL_CL_H
10759 # include <CL/cl.h>
10760 # elif defined(HAVE_OPENCL_CL_H)
10761 # include <OpenCL/cl.h>
10762 # else
10763 # error no CL.h
10764 # endif
10765int
10766main ()
10767{
10768clCreateContextFromType(0,0,0,0,0)
10769 ;
10770 return 0;
10771}
10772_ACEOF
10773if ac_fn_c_try_link "$LINENO"; then :
10774 ax_cv_check_cl_libcl=$ax_try_lib; break
10775else
10776 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"
10777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10778/* end confdefs.h. */
10779
10780 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10781 # include <windows.h>
10782 # endif
10783 # ifdef HAVE_CL_CL_H
10784 # include <CL/cl.h>
10785 # elif defined(HAVE_OPENCL_CL_H)
10786 # include <OpenCL/cl.h>
10787 # else
10788 # error no CL.h
10789 # endif
10790int
10791main ()
10792{
10793clCreateContextFromType(0,0,0,0,0)
10794 ;
10795 return 0;
10796}
10797_ACEOF
10798if ac_fn_c_try_link "$LINENO"; then :
10799 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
10800else
cristy78c5a0c2010-12-04 20:00:59 +000010801 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 +000010802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10803/* end confdefs.h. */
10804
10805 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10806 # include <windows.h>
10807 # endif
10808 # ifdef HAVE_CL_CL_H
10809 # include <CL/cl.h>
10810 # elif defined(HAVE_OPENCL_CL_H)
10811 # include <OpenCL/cl.h>
10812 # else
10813 # error no CL.h
10814 # endif
10815int
10816main ()
10817{
10818clCreateContextFromType(0,0,0,0,0)
10819 ;
10820 return 0;
10821}
10822_ACEOF
10823if ac_fn_c_try_link "$LINENO"; then :
10824 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
cristyfdc7d122013-08-17 20:46:45 +000010825else
10826 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"
10827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10828/* end confdefs.h. */
10829
10830 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10831 # include <windows.h>
10832 # endif
10833 # ifdef HAVE_CL_CL_H
10834 # include <CL/cl.h>
10835 # elif defined(HAVE_OPENCL_CL_H)
10836 # include <OpenCL/cl.h>
10837 # else
10838 # error no CL.h
10839 # endif
10840int
10841main ()
10842{
10843clCreateContextFromType(0,0,0,0,0)
10844 ;
10845 return 0;
10846}
10847_ACEOF
10848if ac_fn_c_try_link "$LINENO"; then :
10849 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_amd_flags"; break
10850
10851fi
10852rm -f core conftest.err conftest.$ac_objext \
10853 conftest$ac_exeext conftest.$ac_ext
10854
10855
cristy73bd4a52010-10-05 11:24:23 +000010856fi
10857rm -f core conftest.err conftest.$ac_objext \
10858 conftest$ac_exeext conftest.$ac_ext
10859fi
10860rm -f core conftest.err conftest.$ac_objext \
10861 conftest$ac_exeext conftest.$ac_ext
10862fi
10863rm -f core conftest.err conftest.$ac_objext \
10864 conftest$ac_exeext conftest.$ac_ext
10865 done
10866
cristyc3f8b8e2011-12-22 14:55:16 +000010867 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy78c5a0c2010-12-04 20:00:59 +000010868 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +000010869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10870/* end confdefs.h. */
10871
10872 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10873 # include <windows.h>
10874 # endif
10875 # ifdef HAVE_CL_CL_H
10876 # include <CL/cl.h>
10877 # elif defined(HAVE_OPENCL_CL_H)
10878 # include <OpenCL/cl.h>
10879 # else
10880 # error no CL.h
10881 # endif
10882int
10883main ()
10884{
10885clCreateContextFromType(0,0,0,0,0)
10886 ;
10887 return 0;
10888}
10889_ACEOF
10890if ac_fn_c_try_link "$LINENO"; then :
10891 ax_cv_check_cl_libcl=$LIBS
10892fi
10893rm -f core conftest.err conftest.$ac_objext \
10894 conftest$ac_exeext conftest.$ac_ext
10895fi
10896
10897 LIBS=$ax_save_LIBS
10898 CPPFLAGS=$ax_save_CPPFLAGS
10899fi
10900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
10901$as_echo "$ax_cv_check_cl_libcl" >&6; }
10902
10903 if test "X$ax_cv_check_cl_libcl" = Xno; then :
10904 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
10905else
10906 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
10907$as_echo "#define _OPENCL 1" >>confdefs.h
10908
10909fi
10910 ac_ext=c
10911ac_cpp='$CPP $CPPFLAGS'
10912ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10913ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10914ac_compiler_gnu=$ac_cv_c_compiler_gnu
10915
10916fi
10917
10918
10919
cristy0c832c62014-03-07 22:21:04 +000010920#remove static link on Linux
10921CL_LIBS=`echo $CL_LIBS | $SED -e 's/-lOpenCL //'`
10922
cristy73bd4a52010-10-05 11:24:23 +000010923
cristyc7083c12009-10-14 03:16:55 +000010924CFLAGS="$CL_CFLAGS $CFLAGS"
cristyfdc7d122013-08-17 20:46:45 +000010925CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
cristyc7083c12009-10-14 03:16:55 +000010926LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +000010927
cristy391f1ce2010-09-09 17:23:28 +000010928if test "$enable_opencl" != no; then
cristy6e3607c2011-09-13 13:59:17 +000010929 if test "X$ax_cv_check_cl_libcl" != Xno; then :
cristy391f1ce2010-09-09 17:23:28 +000010930 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
10931 fi
cristyfd9dcd42010-08-08 18:07:02 +000010932fi
cristy2e8b51d2009-10-17 18:26:15 +000010933
cristy3ed852e2009-09-05 21:47:34 +000010934########
10935#
10936# Check for large file support
10937#
10938########
10939# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +000010940if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010941 enableval=$enable_largefile;
10942fi
10943
10944if test "$enable_largefile" != no; then
10945
cristy8b350f62009-11-15 23:12:43 +000010946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010947$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010948if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010949 $as_echo_n "(cached) " >&6
10950else
10951 ac_cv_sys_largefile_CC=no
10952 if test "$GCC" != yes; then
10953 ac_save_CC=$CC
10954 while :; do
10955 # IRIX 6.2 and later do not support large files by default,
10956 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +000010957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010958/* end confdefs.h. */
10959#include <sys/types.h>
10960 /* Check that off_t can represent 2**63 - 1 correctly.
10961 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10962 since some C++ compilers masquerading as C compilers
10963 incorrectly reject 9223372036854775807. */
10964#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10965 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10966 && LARGE_OFF_T % 2147483647 == 1)
10967 ? 1 : -1];
10968int
10969main ()
10970{
10971
10972 ;
10973 return 0;
10974}
10975_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010976 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010977 break
cristy3ed852e2009-09-05 21:47:34 +000010978fi
cristy3ed852e2009-09-05 21:47:34 +000010979rm -f core conftest.err conftest.$ac_objext
10980 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +000010981 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010982 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +000010983fi
cristy3ed852e2009-09-05 21:47:34 +000010984rm -f core conftest.err conftest.$ac_objext
10985 break
10986 done
10987 CC=$ac_save_CC
10988 rm -f conftest.$ac_ext
10989 fi
10990fi
cristy8b350f62009-11-15 23:12:43 +000010991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000010992$as_echo "$ac_cv_sys_largefile_CC" >&6; }
10993 if test "$ac_cv_sys_largefile_CC" != no; then
10994 CC=$CC$ac_cv_sys_largefile_CC
10995 fi
10996
cristy8b350f62009-11-15 23:12:43 +000010997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010998$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010999if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000011000 $as_echo_n "(cached) " >&6
11001else
11002 while :; do
cristy8b350f62009-11-15 23:12:43 +000011003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011004/* end confdefs.h. */
11005#include <sys/types.h>
11006 /* Check that off_t can represent 2**63 - 1 correctly.
11007 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11008 since some C++ compilers masquerading as C compilers
11009 incorrectly reject 9223372036854775807. */
11010#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11011 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11012 && LARGE_OFF_T % 2147483647 == 1)
11013 ? 1 : -1];
11014int
11015main ()
11016{
11017
11018 ;
11019 return 0;
11020}
11021_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011022if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011023 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +000011024fi
cristy3ed852e2009-09-05 21:47:34 +000011025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000011026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011027/* end confdefs.h. */
11028#define _FILE_OFFSET_BITS 64
11029#include <sys/types.h>
11030 /* Check that off_t can represent 2**63 - 1 correctly.
11031 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11032 since some C++ compilers masquerading as C compilers
11033 incorrectly reject 9223372036854775807. */
11034#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11035 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11036 && LARGE_OFF_T % 2147483647 == 1)
11037 ? 1 : -1];
11038int
11039main ()
11040{
11041
11042 ;
11043 return 0;
11044}
11045_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011046if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011047 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +000011048fi
cristy3ed852e2009-09-05 21:47:34 +000011049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11050 ac_cv_sys_file_offset_bits=unknown
11051 break
11052done
11053fi
cristy8b350f62009-11-15 23:12:43 +000011054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +000011055$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11056case $ac_cv_sys_file_offset_bits in #(
11057 no | unknown) ;;
11058 *)
11059cat >>confdefs.h <<_ACEOF
11060#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11061_ACEOF
11062;;
11063esac
11064rm -rf conftest*
11065 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +000011066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000011067$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011068if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000011069 $as_echo_n "(cached) " >&6
11070else
11071 while :; do
cristy8b350f62009-11-15 23:12:43 +000011072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011073/* end confdefs.h. */
11074#include <sys/types.h>
11075 /* Check that off_t can represent 2**63 - 1 correctly.
11076 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11077 since some C++ compilers masquerading as C compilers
11078 incorrectly reject 9223372036854775807. */
11079#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11080 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11081 && LARGE_OFF_T % 2147483647 == 1)
11082 ? 1 : -1];
11083int
11084main ()
11085{
11086
11087 ;
11088 return 0;
11089}
11090_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011091if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011092 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +000011093fi
cristy3ed852e2009-09-05 21:47:34 +000011094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000011095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011096/* end confdefs.h. */
11097#define _LARGE_FILES 1
11098#include <sys/types.h>
11099 /* Check that off_t can represent 2**63 - 1 correctly.
11100 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11101 since some C++ compilers masquerading as C compilers
11102 incorrectly reject 9223372036854775807. */
11103#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11104 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11105 && LARGE_OFF_T % 2147483647 == 1)
11106 ? 1 : -1];
11107int
11108main ()
11109{
11110
11111 ;
11112 return 0;
11113}
11114_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011115if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011116 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +000011117fi
cristy3ed852e2009-09-05 21:47:34 +000011118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11119 ac_cv_sys_large_files=unknown
11120 break
11121done
11122fi
cristy8b350f62009-11-15 23:12:43 +000011123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +000011124$as_echo "$ac_cv_sys_large_files" >&6; }
11125case $ac_cv_sys_large_files in #(
11126 no | unknown) ;;
11127 *)
11128cat >>confdefs.h <<_ACEOF
11129#define _LARGE_FILES $ac_cv_sys_large_files
11130_ACEOF
11131;;
11132esac
11133rm -rf conftest*
11134 fi
cristy14fefe52012-05-21 00:59:18 +000011135
11136
cristy3ed852e2009-09-05 21:47:34 +000011137fi
11138
cristy8b350f62009-11-15 23:12:43 +000011139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000011140$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011141if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000011142 $as_echo_n "(cached) " >&6
11143else
11144 while :; do
cristy8b350f62009-11-15 23:12:43 +000011145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011146/* end confdefs.h. */
11147#include <sys/types.h> /* for off_t */
11148 #include <stdio.h>
11149int
11150main ()
11151{
11152int (*fp) (FILE *, off_t, int) = fseeko;
11153 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11154 ;
11155 return 0;
11156}
11157_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011158if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011159 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +000011160fi
cristy8b350f62009-11-15 23:12:43 +000011161rm -f core conftest.err conftest.$ac_objext \
11162 conftest$ac_exeext conftest.$ac_ext
11163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011164/* end confdefs.h. */
11165#define _LARGEFILE_SOURCE 1
11166#include <sys/types.h> /* for off_t */
11167 #include <stdio.h>
11168int
11169main ()
11170{
11171int (*fp) (FILE *, off_t, int) = fseeko;
11172 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11173 ;
11174 return 0;
11175}
11176_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011177if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011178 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +000011179fi
cristy8b350f62009-11-15 23:12:43 +000011180rm -f core conftest.err conftest.$ac_objext \
11181 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011182 ac_cv_sys_largefile_source=unknown
11183 break
11184done
11185fi
cristy8b350f62009-11-15 23:12:43 +000011186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +000011187$as_echo "$ac_cv_sys_largefile_source" >&6; }
11188case $ac_cv_sys_largefile_source in #(
11189 no | unknown) ;;
11190 *)
11191cat >>confdefs.h <<_ACEOF
11192#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
11193_ACEOF
11194;;
11195esac
11196rm -rf conftest*
11197
11198# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
11199# in glibc 2.1.3, but that breaks too many other things.
11200# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
11201if test $ac_cv_sys_largefile_source != unknown; then
11202
cristy8b350f62009-11-15 23:12:43 +000011203$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000011204
11205fi
11206
11207LFS_CPPFLAGS=''
11208if test "$enable_largefile" != no; then
cristyc1e0cc12011-09-21 16:41:16 +000011209 case $ac_cv_sys_file_offset_bits in
11210 no)
11211 # nothing to do here as the host supports LFS fine
11212 ;;
11213 unknown)
cristy8b350f62009-11-15 23:12:43 +000011214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +000011215$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011216 if test "$cross_compiling" = yes; then :
11217 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000011218$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000011219as_fn_error $? "cannot run test program while cross compiling
11220See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000011221else
cristy8b350f62009-11-15 23:12:43 +000011222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11223/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000011224#include <unistd.h>
11225 main () {
11226 exit(!(sizeof(off_t) == 8));
11227 }
cristyda16f162011-02-19 23:52:17 +000011228int
11229main ()
11230{
11231
11232 ;
11233 return 0;
11234}
cristy3ed852e2009-09-05 21:47:34 +000011235_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011236if ac_fn_c_try_run "$LINENO"; then :
11237 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000011238
cristyad38abe2012-12-23 23:03:21 +000011239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11240$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000011241else
cristyad38abe2012-12-23 23:03:21 +000011242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11243$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000011244fi
cristy8b350f62009-11-15 23:12:43 +000011245rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11246 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011247fi
11248
cristyc1e0cc12011-09-21 16:41:16 +000011249 ;;
11250 *)
11251 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
11252 ;;
11253 esac
cristy3ed852e2009-09-05 21:47:34 +000011254 if test "$ac_cv_sys_large_files" != 'no'; then
11255 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
11256 fi
11257 if test "$ac_cv_sys_largefile_source" != 'no'; then
11258 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
11259 fi
11260fi
11261
11262
cristy3ed852e2009-09-05 21:47:34 +000011263# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +000011264enable_dlopen=yes
11265
11266
11267
11268case `pwd` in
11269 *\ * | *\ *)
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11271$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11272esac
11273
11274
11275
cristy99bd5232011-12-07 14:38:20 +000011276macro_version='2.4.2'
11277macro_revision='1.3337'
cristy73bd4a52010-10-05 11:24:23 +000011278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291ltmain="$ac_aux_dir/ltmain.sh"
11292
cristy0c60a692010-11-04 01:09:47 +000011293# Backslashify metacharacters that are still active within
11294# double-quoted strings.
11295sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11296
11297# Same as above, but do not quote variable references.
11298double_quote_subst='s/\(["`\\]\)/\\\1/g'
11299
11300# Sed substitution to delay expansion of an escaped shell variable in a
11301# double_quote_subst'ed string.
11302delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11303
11304# Sed substitution to delay expansion of an escaped single quote.
11305delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11306
11307# Sed substitution to avoid accidental globbing in evaled expressions
11308no_glob_subst='s/\*/\\\*/g'
11309
cristy73bd4a52010-10-05 11:24:23 +000011310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11311$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011312if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011313 $as_echo_n "(cached) " >&6
11314else
11315 if test -n "$NM"; then
11316 # Let the user override the test.
11317 lt_cv_path_NM="$NM"
11318else
11319 lt_nm_to_check="${ac_tool_prefix}nm"
11320 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11321 lt_nm_to_check="$lt_nm_to_check nm"
11322 fi
11323 for lt_tmp_nm in $lt_nm_to_check; do
11324 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11325 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11326 IFS="$lt_save_ifs"
11327 test -z "$ac_dir" && ac_dir=.
11328 tmp_nm="$ac_dir/$lt_tmp_nm"
11329 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11330 # Check to see if the nm accepts a BSD-compat flag.
11331 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11332 # nm: unknown option "B" ignored
11333 # Tru64's nm complains that /dev/null is an invalid object file
11334 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11335 */dev/null* | *'Invalid file or object type'*)
11336 lt_cv_path_NM="$tmp_nm -B"
11337 break
11338 ;;
11339 *)
11340 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11341 */dev/null*)
11342 lt_cv_path_NM="$tmp_nm -p"
11343 break
11344 ;;
11345 *)
11346 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11347 continue # so that we can try to find one that supports BSD flags
11348 ;;
11349 esac
11350 ;;
11351 esac
11352 fi
11353 done
11354 IFS="$lt_save_ifs"
11355 done
11356 : ${lt_cv_path_NM=no}
11357fi
11358fi
11359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11360$as_echo "$lt_cv_path_NM" >&6; }
11361if test "$lt_cv_path_NM" != "no"; then
11362 NM="$lt_cv_path_NM"
11363else
11364 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +000011365 if test -n "$DUMPBIN"; then :
11366 # Let the user override the test.
11367 else
11368 if test -n "$ac_tool_prefix"; then
11369 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000011370 do
11371 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11372set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11374$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011375if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011376 $as_echo_n "(cached) " >&6
11377else
11378 if test -n "$DUMPBIN"; then
11379 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11380else
11381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11382for as_dir in $PATH
11383do
11384 IFS=$as_save_IFS
11385 test -z "$as_dir" && as_dir=.
11386 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011388 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11390 break 2
11391 fi
11392done
11393 done
11394IFS=$as_save_IFS
11395
11396fi
11397fi
11398DUMPBIN=$ac_cv_prog_DUMPBIN
11399if test -n "$DUMPBIN"; then
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11401$as_echo "$DUMPBIN" >&6; }
11402else
11403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11404$as_echo "no" >&6; }
11405fi
11406
11407
11408 test -n "$DUMPBIN" && break
11409 done
11410fi
11411if test -z "$DUMPBIN"; then
11412 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +000011413 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000011414do
11415 # Extract the first word of "$ac_prog", so it can be a program name with args.
11416set dummy $ac_prog; ac_word=$2
11417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11418$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011419if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011420 $as_echo_n "(cached) " >&6
11421else
11422 if test -n "$ac_ct_DUMPBIN"; then
11423 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11424else
11425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11426for as_dir in $PATH
11427do
11428 IFS=$as_save_IFS
11429 test -z "$as_dir" && as_dir=.
11430 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011432 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11434 break 2
11435 fi
11436done
11437 done
11438IFS=$as_save_IFS
11439
11440fi
11441fi
11442ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11443if test -n "$ac_ct_DUMPBIN"; then
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11445$as_echo "$ac_ct_DUMPBIN" >&6; }
11446else
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11448$as_echo "no" >&6; }
11449fi
11450
11451
11452 test -n "$ac_ct_DUMPBIN" && break
11453done
11454
11455 if test "x$ac_ct_DUMPBIN" = x; then
11456 DUMPBIN=":"
11457 else
11458 case $cross_compiling:$ac_tool_warned in
11459yes:)
11460{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11461$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11462ac_tool_warned=yes ;;
11463esac
11464 DUMPBIN=$ac_ct_DUMPBIN
11465 fi
11466fi
11467
cristy0c60a692010-11-04 01:09:47 +000011468 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11469 *COFF*)
11470 DUMPBIN="$DUMPBIN -symbols"
11471 ;;
11472 *)
11473 DUMPBIN=:
11474 ;;
11475 esac
11476 fi
cristy73bd4a52010-10-05 11:24:23 +000011477
11478 if test "$DUMPBIN" != ":"; then
11479 NM="$DUMPBIN"
11480 fi
11481fi
11482test -z "$NM" && NM=nm
11483
11484
11485
11486
11487
11488
11489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11490$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011491if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011492 $as_echo_n "(cached) " >&6
11493else
11494 lt_cv_nm_interface="BSD nm"
11495 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000011496 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000011497 (eval "$ac_compile" 2>conftest.err)
11498 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000011499 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000011500 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11501 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000011502 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000011503 cat conftest.out >&5
11504 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11505 lt_cv_nm_interface="MS dumpbin"
11506 fi
11507 rm -f conftest*
11508fi
11509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11510$as_echo "$lt_cv_nm_interface" >&6; }
11511
11512# find the maximum length of command line arguments
11513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11514$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011515if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011516 $as_echo_n "(cached) " >&6
11517else
11518 i=0
11519 teststring="ABCD"
11520
11521 case $build_os in
11522 msdosdjgpp*)
11523 # On DJGPP, this test can blow up pretty badly due to problems in libc
11524 # (any single argument exceeding 2000 bytes causes a buffer overrun
11525 # during glob expansion). Even if it were fixed, the result of this
11526 # check would be larger than it should be.
11527 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11528 ;;
11529
11530 gnu*)
11531 # Under GNU Hurd, this test is not required because there is
11532 # no limit to the length of command line arguments.
11533 # Libtool will interpret -1 as no limit whatsoever
11534 lt_cv_sys_max_cmd_len=-1;
11535 ;;
11536
11537 cygwin* | mingw* | cegcc*)
11538 # On Win9x/ME, this test blows up -- it succeeds, but takes
11539 # about 5 minutes as the teststring grows exponentially.
11540 # Worse, since 9x/ME are not pre-emptively multitasking,
11541 # you end up with a "frozen" computer, even though with patience
11542 # the test eventually succeeds (with a max line length of 256k).
11543 # Instead, let's just punt: use the minimum linelength reported by
11544 # all of the supported platforms: 8192 (on NT/2K/XP).
11545 lt_cv_sys_max_cmd_len=8192;
11546 ;;
11547
cristy0c60a692010-11-04 01:09:47 +000011548 mint*)
11549 # On MiNT this can take a long time and run out of memory.
11550 lt_cv_sys_max_cmd_len=8192;
11551 ;;
11552
cristy73bd4a52010-10-05 11:24:23 +000011553 amigaos*)
11554 # On AmigaOS with pdksh, this test takes hours, literally.
11555 # So we just punt and use a minimum line length of 8192.
11556 lt_cv_sys_max_cmd_len=8192;
11557 ;;
11558
11559 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11560 # This has been around since 386BSD, at least. Likely further.
11561 if test -x /sbin/sysctl; then
11562 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11563 elif test -x /usr/sbin/sysctl; then
11564 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11565 else
11566 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11567 fi
11568 # And add a safety zone
11569 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11570 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11571 ;;
11572
11573 interix*)
11574 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11575 lt_cv_sys_max_cmd_len=196608
11576 ;;
11577
cristy99bd5232011-12-07 14:38:20 +000011578 os2*)
11579 # The test takes a long time on OS/2.
11580 lt_cv_sys_max_cmd_len=8192
11581 ;;
11582
cristy73bd4a52010-10-05 11:24:23 +000011583 osf*)
11584 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11585 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11586 # nice to cause kernel panics so lets avoid the loop below.
11587 # First set a reasonable default.
11588 lt_cv_sys_max_cmd_len=16384
11589 #
11590 if test -x /sbin/sysconfig; then
11591 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11592 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11593 esac
11594 fi
11595 ;;
11596 sco3.2v5*)
11597 lt_cv_sys_max_cmd_len=102400
11598 ;;
11599 sysv5* | sco5v6* | sysv4.2uw2*)
11600 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11601 if test -n "$kargmax"; then
11602 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11603 else
11604 lt_cv_sys_max_cmd_len=32768
11605 fi
11606 ;;
11607 *)
11608 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11609 if test -n "$lt_cv_sys_max_cmd_len"; then
11610 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11611 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11612 else
11613 # Make teststring a little bigger before we do anything with it.
11614 # a 1K string should be a reasonable start.
11615 for i in 1 2 3 4 5 6 7 8 ; do
11616 teststring=$teststring$teststring
11617 done
11618 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11619 # If test is not a shell built-in, we'll probably end up computing a
11620 # maximum length that is only half of the actual maximum length, but
11621 # we can't tell.
cristy99bd5232011-12-07 14:38:20 +000011622 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
cristy0c60a692010-11-04 01:09:47 +000011623 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +000011624 test $i != 17 # 1/2 MB should be enough
11625 do
11626 i=`expr $i + 1`
11627 teststring=$teststring$teststring
11628 done
11629 # Only check the string length outside the loop.
11630 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11631 teststring=
11632 # Add a significant safety factor because C++ compilers can tack on
11633 # massive amounts of additional arguments before passing them to the
11634 # linker. It appears as though 1/2 is a usable value.
11635 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11636 fi
11637 ;;
11638 esac
11639
11640fi
11641
11642if test -n $lt_cv_sys_max_cmd_len ; then
11643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11644$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11645else
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11647$as_echo "none" >&6; }
11648fi
11649max_cmd_len=$lt_cv_sys_max_cmd_len
11650
11651
11652
11653
11654
11655
11656: ${CP="cp -f"}
11657: ${MV="mv -f"}
11658: ${RM="rm -f"}
11659
11660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11661$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11662# Try some XSI features
11663xsi_shell=no
11664( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +000011665 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
11666 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +000011667 && eval 'test $(( 1 + 1 )) -eq 2 \
11668 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11669 && xsi_shell=yes
11670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11671$as_echo "$xsi_shell" >&6; }
11672
11673
11674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11675$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11676lt_shell_append=no
11677( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11678 >/dev/null 2>&1 \
11679 && lt_shell_append=yes
11680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11681$as_echo "$lt_shell_append" >&6; }
11682
11683
11684if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11685 lt_unset=unset
11686else
11687 lt_unset=false
11688fi
11689
11690
11691
11692
11693
11694# test EBCDIC or ASCII
11695case `echo X|tr X '\101'` in
11696 A) # ASCII based system
11697 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11698 lt_SP2NL='tr \040 \012'
11699 lt_NL2SP='tr \015\012 \040\040'
11700 ;;
11701 *) # EBCDIC based system
11702 lt_SP2NL='tr \100 \n'
11703 lt_NL2SP='tr \r\n \100\100'
11704 ;;
11705esac
11706
11707
11708
11709
11710
11711
11712
11713
11714
cristyda16f162011-02-19 23:52:17 +000011715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11716$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11717if ${lt_cv_to_host_file_cmd+:} false; then :
11718 $as_echo_n "(cached) " >&6
11719else
11720 case $host in
11721 *-*-mingw* )
11722 case $build in
11723 *-*-mingw* ) # actually msys
11724 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11725 ;;
11726 *-*-cygwin* )
11727 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11728 ;;
11729 * ) # otherwise, assume *nix
11730 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11731 ;;
11732 esac
11733 ;;
11734 *-*-cygwin* )
11735 case $build in
11736 *-*-mingw* ) # actually msys
11737 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11738 ;;
11739 *-*-cygwin* )
11740 lt_cv_to_host_file_cmd=func_convert_file_noop
11741 ;;
11742 * ) # otherwise, assume *nix
11743 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11744 ;;
11745 esac
11746 ;;
11747 * ) # unhandled hosts (and "normal" native builds)
11748 lt_cv_to_host_file_cmd=func_convert_file_noop
11749 ;;
11750esac
11751
11752fi
11753
11754to_host_file_cmd=$lt_cv_to_host_file_cmd
11755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11756$as_echo "$lt_cv_to_host_file_cmd" >&6; }
11757
11758
11759
11760
11761
11762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11763$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11764if ${lt_cv_to_tool_file_cmd+:} false; then :
11765 $as_echo_n "(cached) " >&6
11766else
11767 #assume ordinary cross tools, or native build.
11768lt_cv_to_tool_file_cmd=func_convert_file_noop
11769case $host in
11770 *-*-mingw* )
11771 case $build in
11772 *-*-mingw* ) # actually msys
11773 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11774 ;;
11775 esac
11776 ;;
11777esac
11778
11779fi
11780
11781to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11783$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11784
11785
11786
11787
11788
cristy73bd4a52010-10-05 11:24:23 +000011789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11790$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011791if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011792 $as_echo_n "(cached) " >&6
11793else
11794 lt_cv_ld_reload_flag='-r'
11795fi
11796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11797$as_echo "$lt_cv_ld_reload_flag" >&6; }
11798reload_flag=$lt_cv_ld_reload_flag
11799case $reload_flag in
11800"" | " "*) ;;
11801*) reload_flag=" $reload_flag" ;;
11802esac
11803reload_cmds='$LD$reload_flag -o $output$reload_objs'
11804case $host_os in
cristyda16f162011-02-19 23:52:17 +000011805 cygwin* | mingw* | pw32* | cegcc*)
11806 if test "$GCC" != yes; then
11807 reload_cmds=false
11808 fi
11809 ;;
cristy73bd4a52010-10-05 11:24:23 +000011810 darwin*)
11811 if test "$GCC" = yes; then
11812 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11813 else
11814 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11815 fi
11816 ;;
11817esac
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827if test -n "$ac_tool_prefix"; then
11828 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11829set dummy ${ac_tool_prefix}objdump; ac_word=$2
11830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11831$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011832if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011833 $as_echo_n "(cached) " >&6
11834else
11835 if test -n "$OBJDUMP"; then
11836 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11837else
11838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11839for as_dir in $PATH
11840do
11841 IFS=$as_save_IFS
11842 test -z "$as_dir" && as_dir=.
11843 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011845 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11847 break 2
11848 fi
11849done
11850 done
11851IFS=$as_save_IFS
11852
11853fi
11854fi
11855OBJDUMP=$ac_cv_prog_OBJDUMP
11856if test -n "$OBJDUMP"; then
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11858$as_echo "$OBJDUMP" >&6; }
11859else
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11861$as_echo "no" >&6; }
11862fi
11863
11864
11865fi
11866if test -z "$ac_cv_prog_OBJDUMP"; then
11867 ac_ct_OBJDUMP=$OBJDUMP
11868 # Extract the first word of "objdump", so it can be a program name with args.
11869set dummy objdump; ac_word=$2
11870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11871$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011872if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011873 $as_echo_n "(cached) " >&6
11874else
11875 if test -n "$ac_ct_OBJDUMP"; then
11876 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11877else
11878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11879for as_dir in $PATH
11880do
11881 IFS=$as_save_IFS
11882 test -z "$as_dir" && as_dir=.
11883 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011885 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11887 break 2
11888 fi
11889done
11890 done
11891IFS=$as_save_IFS
11892
11893fi
11894fi
11895ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11896if test -n "$ac_ct_OBJDUMP"; then
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11898$as_echo "$ac_ct_OBJDUMP" >&6; }
11899else
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11901$as_echo "no" >&6; }
11902fi
11903
11904 if test "x$ac_ct_OBJDUMP" = x; then
11905 OBJDUMP="false"
11906 else
11907 case $cross_compiling:$ac_tool_warned in
11908yes:)
11909{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11910$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11911ac_tool_warned=yes ;;
11912esac
11913 OBJDUMP=$ac_ct_OBJDUMP
11914 fi
11915else
11916 OBJDUMP="$ac_cv_prog_OBJDUMP"
11917fi
11918
11919test -z "$OBJDUMP" && OBJDUMP=objdump
11920
11921
11922
11923
11924
11925
11926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11927$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011928if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011929 $as_echo_n "(cached) " >&6
11930else
11931 lt_cv_file_magic_cmd='$MAGIC_CMD'
11932lt_cv_file_magic_test_file=
11933lt_cv_deplibs_check_method='unknown'
11934# Need to set the preceding variable on all platforms that support
11935# interlibrary dependencies.
11936# 'none' -- dependencies not supported.
11937# `unknown' -- same as none, but documents that we really don't know.
11938# 'pass_all' -- all dependencies passed with no checks.
11939# 'test_compile' -- check by making test program.
11940# 'file_magic [[regex]]' -- check by looking for files in library path
11941# which responds to the $file_magic_cmd with a given extended regex.
11942# If you have `file' or equivalent on your system and you're not sure
11943# whether `pass_all' will *always* work, you probably want this one.
11944
11945case $host_os in
11946aix[4-9]*)
11947 lt_cv_deplibs_check_method=pass_all
11948 ;;
11949
11950beos*)
11951 lt_cv_deplibs_check_method=pass_all
11952 ;;
11953
11954bsdi[45]*)
11955 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11956 lt_cv_file_magic_cmd='/usr/bin/file -L'
11957 lt_cv_file_magic_test_file=/shlib/libc.so
11958 ;;
11959
11960cygwin*)
11961 # func_win32_libid is a shell function defined in ltmain.sh
11962 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11963 lt_cv_file_magic_cmd='func_win32_libid'
11964 ;;
11965
11966mingw* | pw32*)
11967 # Base MSYS/MinGW do not provide the 'file' command needed by
11968 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11969 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000011970 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11971 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000011972 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11973 lt_cv_file_magic_cmd='func_win32_libid'
11974 else
cristy0c60a692010-11-04 01:09:47 +000011975 # Keep this pattern in sync with the one in func_win32_libid.
11976 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 +000011977 lt_cv_file_magic_cmd='$OBJDUMP -f'
11978 fi
11979 ;;
11980
cristy0c60a692010-11-04 01:09:47 +000011981cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000011982 # use the weaker test based on 'objdump'. See mingw*.
11983 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11984 lt_cv_file_magic_cmd='$OBJDUMP -f'
11985 ;;
11986
11987darwin* | rhapsody*)
11988 lt_cv_deplibs_check_method=pass_all
11989 ;;
11990
11991freebsd* | dragonfly*)
11992 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11993 case $host_cpu in
11994 i*86 )
11995 # Not sure whether the presence of OpenBSD here was a mistake.
11996 # Let's accept both of them until this is cleared up.
11997 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11998 lt_cv_file_magic_cmd=/usr/bin/file
11999 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12000 ;;
12001 esac
12002 else
12003 lt_cv_deplibs_check_method=pass_all
12004 fi
12005 ;;
12006
12007gnu*)
12008 lt_cv_deplibs_check_method=pass_all
12009 ;;
12010
cristy0c60a692010-11-04 01:09:47 +000012011haiku*)
12012 lt_cv_deplibs_check_method=pass_all
12013 ;;
12014
cristy73bd4a52010-10-05 11:24:23 +000012015hpux10.20* | hpux11*)
12016 lt_cv_file_magic_cmd=/usr/bin/file
12017 case $host_cpu in
12018 ia64*)
12019 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12020 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12021 ;;
12022 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000012023 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 +000012024 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12025 ;;
12026 *)
cristy0c60a692010-11-04 01:09:47 +000012027 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 +000012028 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12029 ;;
12030 esac
12031 ;;
12032
12033interix[3-9]*)
12034 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12035 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12036 ;;
12037
12038irix5* | irix6* | nonstopux*)
12039 case $LD in
12040 *-32|*"-32 ") libmagic=32-bit;;
12041 *-n32|*"-n32 ") libmagic=N32;;
12042 *-64|*"-64 ") libmagic=64-bit;;
12043 *) libmagic=never-match;;
12044 esac
12045 lt_cv_deplibs_check_method=pass_all
12046 ;;
12047
cristy99bd5232011-12-07 14:38:20 +000012048# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000012049linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000012050 lt_cv_deplibs_check_method=pass_all
12051 ;;
12052
12053netbsd*)
12054 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12055 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12056 else
12057 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12058 fi
12059 ;;
12060
12061newos6*)
12062 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12063 lt_cv_file_magic_cmd=/usr/bin/file
12064 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12065 ;;
12066
12067*nto* | *qnx*)
12068 lt_cv_deplibs_check_method=pass_all
12069 ;;
12070
12071openbsd*)
12072 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12073 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12074 else
12075 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12076 fi
12077 ;;
12078
12079osf3* | osf4* | osf5*)
12080 lt_cv_deplibs_check_method=pass_all
12081 ;;
12082
12083rdos*)
12084 lt_cv_deplibs_check_method=pass_all
12085 ;;
12086
12087solaris*)
12088 lt_cv_deplibs_check_method=pass_all
12089 ;;
12090
12091sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12092 lt_cv_deplibs_check_method=pass_all
12093 ;;
12094
12095sysv4 | sysv4.3*)
12096 case $host_vendor in
12097 motorola)
12098 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]'
12099 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12100 ;;
12101 ncr)
12102 lt_cv_deplibs_check_method=pass_all
12103 ;;
12104 sequent)
12105 lt_cv_file_magic_cmd='/bin/file'
12106 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12107 ;;
12108 sni)
12109 lt_cv_file_magic_cmd='/bin/file'
12110 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12111 lt_cv_file_magic_test_file=/lib/libc.so
12112 ;;
12113 siemens)
12114 lt_cv_deplibs_check_method=pass_all
12115 ;;
12116 pc)
12117 lt_cv_deplibs_check_method=pass_all
12118 ;;
12119 esac
12120 ;;
12121
12122tpf*)
12123 lt_cv_deplibs_check_method=pass_all
12124 ;;
12125esac
12126
12127fi
12128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12129$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000012130
12131file_magic_glob=
12132want_nocaseglob=no
12133if test "$build" = "$host"; then
12134 case $host_os in
12135 mingw* | pw32*)
12136 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
12137 want_nocaseglob=yes
12138 else
12139 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
12140 fi
12141 ;;
12142 esac
12143fi
12144
cristy73bd4a52010-10-05 11:24:23 +000012145file_magic_cmd=$lt_cv_file_magic_cmd
12146deplibs_check_method=$lt_cv_deplibs_check_method
12147test -z "$deplibs_check_method" && deplibs_check_method=unknown
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
cristyda16f162011-02-19 23:52:17 +000012160
12161
12162
12163
12164
12165
12166
12167
12168
12169
cristy73bd4a52010-10-05 11:24:23 +000012170if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000012171 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12172set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000012173{ $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_DLLTOOL+:} false; then :
12176 $as_echo_n "(cached) " >&6
12177else
12178 if test -n "$DLLTOOL"; then
12179 ac_cv_prog_DLLTOOL="$DLLTOOL" # 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
cristyda16f162011-02-19 23:52:17 +000012188 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
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
12198DLLTOOL=$ac_cv_prog_DLLTOOL
12199if test -n "$DLLTOOL"; then
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12201$as_echo "$DLLTOOL" >&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_DLLTOOL"; then
12210 ac_ct_DLLTOOL=$DLLTOOL
12211 # Extract the first word of "dlltool", so it can be a program name with args.
12212set dummy dlltool; 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; }
12215if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
12216 $as_echo_n "(cached) " >&6
12217else
12218 if test -n "$ac_ct_DLLTOOL"; then
12219 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # 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
cristyda16f162011-02-19 23:52:17 +000012228 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
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_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12239if test -n "$ac_ct_DLLTOOL"; then
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12241$as_echo "$ac_ct_DLLTOOL" >&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_DLLTOOL" = x; then
12248 DLLTOOL="false"
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 DLLTOOL=$ac_ct_DLLTOOL
12257 fi
12258else
12259 DLLTOOL="$ac_cv_prog_DLLTOOL"
12260fi
12261
12262test -z "$DLLTOOL" && DLLTOOL=dlltool
12263
12264
12265
12266
12267
12268
12269
12270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12271$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12272if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12273 $as_echo_n "(cached) " >&6
12274else
12275 lt_cv_sharedlib_from_linklib_cmd='unknown'
12276
12277case $host_os in
12278cygwin* | mingw* | pw32* | cegcc*)
12279 # two different shell functions defined in ltmain.sh
12280 # decide which to use based on capabilities of $DLLTOOL
12281 case `$DLLTOOL --help 2>&1` in
12282 *--identify-strict*)
12283 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12284 ;;
12285 *)
12286 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12287 ;;
12288 esac
12289 ;;
12290*)
12291 # fallback: assume linklib IS sharedlib
12292 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
12293 ;;
12294esac
12295
12296fi
12297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12298$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12299sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12300test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12301
12302
12303
12304
12305
12306
12307
12308if test -n "$ac_tool_prefix"; then
12309 for ac_prog in ar
12310 do
12311 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12312set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12314$as_echo_n "checking for $ac_word... " >&6; }
12315if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012316 $as_echo_n "(cached) " >&6
12317else
12318 if test -n "$AR"; then
12319 ac_cv_prog_AR="$AR" # Let the user override the test.
12320else
12321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12322for as_dir in $PATH
12323do
12324 IFS=$as_save_IFS
12325 test -z "$as_dir" && as_dir=.
12326 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012328 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000012329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12330 break 2
12331 fi
12332done
12333 done
12334IFS=$as_save_IFS
12335
12336fi
12337fi
12338AR=$ac_cv_prog_AR
12339if test -n "$AR"; then
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12341$as_echo "$AR" >&6; }
12342else
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12344$as_echo "no" >&6; }
12345fi
12346
12347
cristyda16f162011-02-19 23:52:17 +000012348 test -n "$AR" && break
12349 done
cristy73bd4a52010-10-05 11:24:23 +000012350fi
cristyda16f162011-02-19 23:52:17 +000012351if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000012352 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000012353 for ac_prog in ar
12354do
12355 # Extract the first word of "$ac_prog", so it can be a program name with args.
12356set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000012357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12358$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012359if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012360 $as_echo_n "(cached) " >&6
12361else
12362 if test -n "$ac_ct_AR"; then
12363 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12364else
12365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12366for as_dir in $PATH
12367do
12368 IFS=$as_save_IFS
12369 test -z "$as_dir" && as_dir=.
12370 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012372 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000012373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12374 break 2
12375 fi
12376done
12377 done
12378IFS=$as_save_IFS
12379
12380fi
12381fi
12382ac_ct_AR=$ac_cv_prog_ac_ct_AR
12383if test -n "$ac_ct_AR"; then
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12385$as_echo "$ac_ct_AR" >&6; }
12386else
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12388$as_echo "no" >&6; }
12389fi
12390
cristyda16f162011-02-19 23:52:17 +000012391
12392 test -n "$ac_ct_AR" && break
12393done
12394
cristy73bd4a52010-10-05 11:24:23 +000012395 if test "x$ac_ct_AR" = x; then
12396 AR="false"
12397 else
12398 case $cross_compiling:$ac_tool_warned in
12399yes:)
12400{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12401$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12402ac_tool_warned=yes ;;
12403esac
12404 AR=$ac_ct_AR
12405 fi
cristy73bd4a52010-10-05 11:24:23 +000012406fi
12407
cristyda16f162011-02-19 23:52:17 +000012408: ${AR=ar}
12409: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000012410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
cristyda16f162011-02-19 23:52:17 +000012421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12422$as_echo_n "checking for archiver @FILE support... " >&6; }
12423if ${lt_cv_ar_at_file+:} false; then :
12424 $as_echo_n "(cached) " >&6
12425else
12426 lt_cv_ar_at_file=no
12427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12428/* end confdefs.h. */
12429
12430int
12431main ()
12432{
12433
12434 ;
12435 return 0;
12436}
12437_ACEOF
12438if ac_fn_c_try_compile "$LINENO"; then :
12439 echo conftest.$ac_objext > conftest.lst
12440 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12441 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12442 (eval $lt_ar_try) 2>&5
12443 ac_status=$?
12444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12445 test $ac_status = 0; }
12446 if test "$ac_status" -eq 0; then
12447 # Ensure the archiver fails upon bogus file names.
12448 rm -f conftest.$ac_objext libconftest.a
12449 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12450 (eval $lt_ar_try) 2>&5
12451 ac_status=$?
12452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12453 test $ac_status = 0; }
12454 if test "$ac_status" -ne 0; then
12455 lt_cv_ar_at_file=@
12456 fi
12457 fi
12458 rm -f conftest.* libconftest.a
12459
12460fi
12461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12462
12463fi
12464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12465$as_echo "$lt_cv_ar_at_file" >&6; }
12466
12467if test "x$lt_cv_ar_at_file" = xno; then
12468 archiver_list_spec=
12469else
12470 archiver_list_spec=$lt_cv_ar_at_file
12471fi
12472
12473
12474
12475
12476
12477
12478
cristy73bd4a52010-10-05 11:24:23 +000012479if test -n "$ac_tool_prefix"; then
12480 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12481set dummy ${ac_tool_prefix}strip; ac_word=$2
12482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12483$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012484if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012485 $as_echo_n "(cached) " >&6
12486else
12487 if test -n "$STRIP"; then
12488 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12489else
12490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12491for as_dir in $PATH
12492do
12493 IFS=$as_save_IFS
12494 test -z "$as_dir" && as_dir=.
12495 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012497 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12499 break 2
12500 fi
12501done
12502 done
12503IFS=$as_save_IFS
12504
12505fi
12506fi
12507STRIP=$ac_cv_prog_STRIP
12508if test -n "$STRIP"; then
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12510$as_echo "$STRIP" >&6; }
12511else
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12513$as_echo "no" >&6; }
12514fi
12515
12516
12517fi
12518if test -z "$ac_cv_prog_STRIP"; then
12519 ac_ct_STRIP=$STRIP
12520 # Extract the first word of "strip", so it can be a program name with args.
12521set dummy strip; ac_word=$2
12522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12523$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012524if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012525 $as_echo_n "(cached) " >&6
12526else
12527 if test -n "$ac_ct_STRIP"; then
12528 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12529else
12530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12531for as_dir in $PATH
12532do
12533 IFS=$as_save_IFS
12534 test -z "$as_dir" && as_dir=.
12535 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012537 ac_cv_prog_ac_ct_STRIP="strip"
12538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12539 break 2
12540 fi
12541done
12542 done
12543IFS=$as_save_IFS
12544
12545fi
12546fi
12547ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12548if test -n "$ac_ct_STRIP"; then
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12550$as_echo "$ac_ct_STRIP" >&6; }
12551else
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12553$as_echo "no" >&6; }
12554fi
12555
12556 if test "x$ac_ct_STRIP" = x; then
12557 STRIP=":"
12558 else
12559 case $cross_compiling:$ac_tool_warned in
12560yes:)
12561{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12562$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12563ac_tool_warned=yes ;;
12564esac
12565 STRIP=$ac_ct_STRIP
12566 fi
12567else
12568 STRIP="$ac_cv_prog_STRIP"
12569fi
12570
12571test -z "$STRIP" && STRIP=:
12572
12573
12574
12575
12576
12577
12578if test -n "$ac_tool_prefix"; then
12579 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12580set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12582$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012583if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012584 $as_echo_n "(cached) " >&6
12585else
12586 if test -n "$RANLIB"; then
12587 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12588else
12589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12590for as_dir in $PATH
12591do
12592 IFS=$as_save_IFS
12593 test -z "$as_dir" && as_dir=.
12594 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012596 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12598 break 2
12599 fi
12600done
12601 done
12602IFS=$as_save_IFS
12603
12604fi
12605fi
12606RANLIB=$ac_cv_prog_RANLIB
12607if test -n "$RANLIB"; then
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12609$as_echo "$RANLIB" >&6; }
12610else
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12612$as_echo "no" >&6; }
12613fi
12614
12615
12616fi
12617if test -z "$ac_cv_prog_RANLIB"; then
12618 ac_ct_RANLIB=$RANLIB
12619 # Extract the first word of "ranlib", so it can be a program name with args.
12620set dummy ranlib; ac_word=$2
12621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12622$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012623if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012624 $as_echo_n "(cached) " >&6
12625else
12626 if test -n "$ac_ct_RANLIB"; then
12627 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12628else
12629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12630for as_dir in $PATH
12631do
12632 IFS=$as_save_IFS
12633 test -z "$as_dir" && as_dir=.
12634 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012636 ac_cv_prog_ac_ct_RANLIB="ranlib"
12637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12638 break 2
12639 fi
12640done
12641 done
12642IFS=$as_save_IFS
12643
12644fi
12645fi
12646ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12647if test -n "$ac_ct_RANLIB"; then
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12649$as_echo "$ac_ct_RANLIB" >&6; }
12650else
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12652$as_echo "no" >&6; }
12653fi
12654
12655 if test "x$ac_ct_RANLIB" = x; then
12656 RANLIB=":"
12657 else
12658 case $cross_compiling:$ac_tool_warned in
12659yes:)
12660{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12661$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12662ac_tool_warned=yes ;;
12663esac
12664 RANLIB=$ac_ct_RANLIB
12665 fi
12666else
12667 RANLIB="$ac_cv_prog_RANLIB"
12668fi
12669
12670test -z "$RANLIB" && RANLIB=:
12671
12672
12673
12674
12675
12676
12677# Determine commands to create old-style static archives.
12678old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12679old_postinstall_cmds='chmod 644 $oldlib'
12680old_postuninstall_cmds=
12681
12682if test -n "$RANLIB"; then
12683 case $host_os in
12684 openbsd*)
cristy99bd5232011-12-07 14:38:20 +000012685 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012686 ;;
12687 *)
cristy99bd5232011-12-07 14:38:20 +000012688 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012689 ;;
12690 esac
cristy99bd5232011-12-07 14:38:20 +000012691 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012692fi
12693
cristy0c60a692010-11-04 01:09:47 +000012694case $host_os in
12695 darwin*)
12696 lock_old_archive_extraction=yes ;;
12697 *)
12698 lock_old_archive_extraction=no ;;
12699esac
12700
12701
12702
12703
12704
12705
cristy73bd4a52010-10-05 11:24:23 +000012706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739# If no C compiler was specified, use CC.
12740LTCC=${LTCC-"$CC"}
12741
12742# If no C compiler flags were specified, use CFLAGS.
12743LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12744
12745# Allow CC to be a program name with arguments.
12746compiler=$CC
12747
12748
12749# Check for command to grab the raw symbol name followed by C symbol from nm.
12750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12751$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012752if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012753 $as_echo_n "(cached) " >&6
12754else
12755
12756# These are sane defaults that work on at least a few old systems.
12757# [They come from Ultrix. What could be older than Ultrix?!! ;)]
12758
12759# Character class describing NM global symbol codes.
12760symcode='[BCDEGRST]'
12761
12762# Regexp to match symbols that can be accessed directly from C.
12763sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12764
12765# Define system-specific variables.
12766case $host_os in
12767aix*)
12768 symcode='[BCDT]'
12769 ;;
12770cygwin* | mingw* | pw32* | cegcc*)
12771 symcode='[ABCDGISTW]'
12772 ;;
12773hpux*)
12774 if test "$host_cpu" = ia64; then
12775 symcode='[ABCDEGRST]'
12776 fi
12777 ;;
12778irix* | nonstopux*)
12779 symcode='[BCDEGRST]'
12780 ;;
12781osf*)
12782 symcode='[BCDEGQRST]'
12783 ;;
12784solaris*)
12785 symcode='[BDRT]'
12786 ;;
12787sco3.2v5*)
12788 symcode='[DT]'
12789 ;;
12790sysv4.2uw2*)
12791 symcode='[DT]'
12792 ;;
12793sysv5* | sco5v6* | unixware* | OpenUNIX*)
12794 symcode='[ABDT]'
12795 ;;
12796sysv4)
12797 symcode='[DFNSTU]'
12798 ;;
12799esac
12800
12801# If we're using GNU nm, then use its standard symbol codes.
12802case `$NM -V 2>&1` in
12803*GNU* | *'with BFD'*)
12804 symcode='[ABCDGIRSTW]' ;;
12805esac
12806
12807# Transform an extracted symbol line into a proper C declaration.
12808# Some systems (esp. on ia64) link data and code symbols differently,
12809# so use this general approach.
12810lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12811
12812# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000012813lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12814lt_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 +000012815
12816# Handle CRLF in mingw tool chain
12817opt_cr=
12818case $build_os in
12819mingw*)
12820 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12821 ;;
12822esac
12823
12824# Try without a prefix underscore, then with it.
12825for ac_symprfx in "" "_"; do
12826
12827 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12828 symxfrm="\\1 $ac_symprfx\\2 \\2"
12829
12830 # Write the raw and C identifiers.
12831 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12832 # Fake it for dumpbin and say T for any non-static function
12833 # and D for any global variable.
12834 # Also find C++ and __fastcall symbols from MSVC++,
12835 # which start with @ or ?.
12836 lt_cv_sys_global_symbol_pipe="$AWK '"\
12837" {last_section=section; section=\$ 3};"\
cristy99bd5232011-12-07 14:38:20 +000012838" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
cristy73bd4a52010-10-05 11:24:23 +000012839" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12840" \$ 0!~/External *\|/{next};"\
12841" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12842" {if(hide[section]) next};"\
12843" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12844" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12845" s[1]~/^[@?]/{print s[1], s[1]; next};"\
12846" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12847" ' prfx=^$ac_symprfx"
12848 else
12849 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12850 fi
cristyda16f162011-02-19 23:52:17 +000012851 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000012852
12853 # Check to see that the pipe works correctly.
12854 pipe_works=no
12855
12856 rm -f conftest*
12857 cat > conftest.$ac_ext <<_LT_EOF
12858#ifdef __cplusplus
12859extern "C" {
12860#endif
12861char nm_test_var;
12862void nm_test_func(void);
12863void nm_test_func(void){}
12864#ifdef __cplusplus
12865}
12866#endif
12867int main(){nm_test_var='a';nm_test_func();return(0);}
12868_LT_EOF
12869
12870 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12871 (eval $ac_compile) 2>&5
12872 ac_status=$?
12873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12874 test $ac_status = 0; }; then
12875 # Now try to grab the symbols.
12876 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000012877 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12878 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000012879 ac_status=$?
12880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12881 test $ac_status = 0; } && test -s "$nlist"; then
12882 # Try sorting and uniquifying the output.
12883 if sort "$nlist" | uniq > "$nlist"T; then
12884 mv -f "$nlist"T "$nlist"
12885 else
12886 rm -f "$nlist"T
12887 fi
12888
12889 # Make sure that we snagged all the symbols we need.
12890 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12891 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12892 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000012893/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12894#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12895/* DATA imports from DLLs on WIN32 con't be const, because runtime
12896 relocations are performed -- see ld's documentation on pseudo-relocs. */
12897# define LT_DLSYM_CONST
12898#elif defined(__osf__)
12899/* This system does not cope well with relocations in const data. */
12900# define LT_DLSYM_CONST
12901#else
12902# define LT_DLSYM_CONST const
12903#endif
12904
cristy73bd4a52010-10-05 11:24:23 +000012905#ifdef __cplusplus
12906extern "C" {
12907#endif
12908
12909_LT_EOF
12910 # Now generate the symbol file.
12911 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12912
12913 cat <<_LT_EOF >> conftest.$ac_ext
12914
12915/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000012916LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000012917 const char *name;
12918 void *address;
12919}
12920lt__PROGRAM__LTX_preloaded_symbols[] =
12921{
12922 { "@PROGRAM@", (void *) 0 },
12923_LT_EOF
12924 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12925 cat <<\_LT_EOF >> conftest.$ac_ext
12926 {0, (void *) 0}
12927};
12928
12929/* This works around a problem in FreeBSD linker */
12930#ifdef FREEBSD_WORKAROUND
12931static const void *lt_preloaded_setup() {
12932 return lt__PROGRAM__LTX_preloaded_symbols;
12933}
12934#endif
12935
12936#ifdef __cplusplus
12937}
12938#endif
12939_LT_EOF
12940 # Now try linking the two files.
12941 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000012942 lt_globsym_save_LIBS=$LIBS
12943 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012944 LIBS="conftstm.$ac_objext"
12945 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12946 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12947 (eval $ac_link) 2>&5
12948 ac_status=$?
12949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12950 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12951 pipe_works=yes
12952 fi
cristyda16f162011-02-19 23:52:17 +000012953 LIBS=$lt_globsym_save_LIBS
12954 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012955 else
12956 echo "cannot find nm_test_func in $nlist" >&5
12957 fi
12958 else
12959 echo "cannot find nm_test_var in $nlist" >&5
12960 fi
12961 else
12962 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12963 fi
12964 else
12965 echo "$progname: failed program was:" >&5
12966 cat conftest.$ac_ext >&5
12967 fi
12968 rm -rf conftest* conftst*
12969
12970 # Do not use the global_symbol_pipe unless it works.
12971 if test "$pipe_works" = yes; then
12972 break
12973 else
12974 lt_cv_sys_global_symbol_pipe=
12975 fi
12976done
12977
12978fi
12979
12980if test -z "$lt_cv_sys_global_symbol_pipe"; then
12981 lt_cv_sys_global_symbol_to_cdecl=
12982fi
12983if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12985$as_echo "failed" >&6; }
12986else
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12988$as_echo "ok" >&6; }
12989fi
12990
cristyda16f162011-02-19 23:52:17 +000012991# Response file support.
12992if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12993 nm_file_list_spec='@'
12994elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12995 nm_file_list_spec='@'
12996fi
cristy73bd4a52010-10-05 11:24:23 +000012997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
cristyda16f162011-02-19 23:52:17 +000013018
13019
13020
13021
13022
13023
13024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
13025$as_echo_n "checking for sysroot... " >&6; }
13026
13027# Check whether --with-sysroot was given.
13028if test "${with_sysroot+set}" = set; then :
13029 withval=$with_sysroot;
13030else
13031 with_sysroot=no
13032fi
13033
13034
13035lt_sysroot=
13036case ${with_sysroot} in #(
13037 yes)
13038 if test "$GCC" = yes; then
13039 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
13040 fi
13041 ;; #(
13042 /*)
13043 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
13044 ;; #(
13045 no|'')
13046 ;; #(
13047 *)
13048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
13049$as_echo "${with_sysroot}" >&6; }
13050 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
13051 ;;
13052esac
13053
13054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
13055$as_echo "${lt_sysroot:-no}" >&6; }
13056
13057
13058
13059
13060
cristy73bd4a52010-10-05 11:24:23 +000013061# Check whether --enable-libtool-lock was given.
13062if test "${enable_libtool_lock+set}" = set; then :
13063 enableval=$enable_libtool_lock;
13064fi
13065
13066test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13067
13068# Some flags need to be propagated to the compiler or linker for good
13069# libtool support.
13070case $host in
13071ia64-*-hpux*)
13072 # Find out which ABI we are using.
13073 echo 'int i;' > conftest.$ac_ext
13074 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13075 (eval $ac_compile) 2>&5
13076 ac_status=$?
13077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13078 test $ac_status = 0; }; then
13079 case `/usr/bin/file conftest.$ac_objext` in
13080 *ELF-32*)
13081 HPUX_IA64_MODE="32"
13082 ;;
13083 *ELF-64*)
13084 HPUX_IA64_MODE="64"
13085 ;;
13086 esac
13087 fi
13088 rm -rf conftest*
13089 ;;
13090*-*-irix6*)
13091 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000013092 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000013093 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13094 (eval $ac_compile) 2>&5
13095 ac_status=$?
13096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13097 test $ac_status = 0; }; then
13098 if test "$lt_cv_prog_gnu_ld" = yes; then
13099 case `/usr/bin/file conftest.$ac_objext` in
13100 *32-bit*)
13101 LD="${LD-ld} -melf32bsmip"
13102 ;;
13103 *N32*)
13104 LD="${LD-ld} -melf32bmipn32"
13105 ;;
13106 *64-bit*)
13107 LD="${LD-ld} -melf64bmip"
13108 ;;
13109 esac
13110 else
13111 case `/usr/bin/file conftest.$ac_objext` in
13112 *32-bit*)
13113 LD="${LD-ld} -32"
13114 ;;
13115 *N32*)
13116 LD="${LD-ld} -n32"
13117 ;;
13118 *64-bit*)
13119 LD="${LD-ld} -64"
13120 ;;
13121 esac
13122 fi
13123 fi
13124 rm -rf conftest*
13125 ;;
13126
cristyd95b7a52013-10-23 13:12:53 +000013127x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
cristy73bd4a52010-10-05 11:24:23 +000013128s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13129 # Find out which ABI we are using.
13130 echo 'int i;' > conftest.$ac_ext
13131 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13132 (eval $ac_compile) 2>&5
13133 ac_status=$?
13134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13135 test $ac_status = 0; }; then
13136 case `/usr/bin/file conftest.o` in
13137 *32-bit*)
13138 case $host in
13139 x86_64-*kfreebsd*-gnu)
13140 LD="${LD-ld} -m elf_i386_fbsd"
13141 ;;
13142 x86_64-*linux*)
13143 LD="${LD-ld} -m elf_i386"
13144 ;;
cristya5bda012013-11-03 18:05:38 +000013145 powerpc64le-*linux*)
cristyd95b7a52013-10-23 13:12:53 +000013146 LD="${LD-ld} -m elf32lppclinux"
13147 ;;
cristya5bda012013-11-03 18:05:38 +000013148 powerpc64-*linux*)
cristy73bd4a52010-10-05 11:24:23 +000013149 LD="${LD-ld} -m elf32ppclinux"
13150 ;;
13151 s390x-*linux*)
13152 LD="${LD-ld} -m elf_s390"
13153 ;;
13154 sparc64-*linux*)
13155 LD="${LD-ld} -m elf32_sparc"
13156 ;;
13157 esac
13158 ;;
13159 *64-bit*)
13160 case $host in
13161 x86_64-*kfreebsd*-gnu)
13162 LD="${LD-ld} -m elf_x86_64_fbsd"
13163 ;;
13164 x86_64-*linux*)
13165 LD="${LD-ld} -m elf_x86_64"
13166 ;;
cristyd95b7a52013-10-23 13:12:53 +000013167 powerpcle-*linux*)
13168 LD="${LD-ld} -m elf64lppc"
13169 ;;
13170 powerpc-*linux*)
cristy73bd4a52010-10-05 11:24:23 +000013171 LD="${LD-ld} -m elf64ppc"
13172 ;;
13173 s390*-*linux*|s390*-*tpf*)
13174 LD="${LD-ld} -m elf64_s390"
13175 ;;
13176 sparc*-*linux*)
13177 LD="${LD-ld} -m elf64_sparc"
13178 ;;
13179 esac
13180 ;;
13181 esac
13182 fi
13183 rm -rf conftest*
13184 ;;
13185
13186*-*-sco3.2v5*)
13187 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13188 SAVE_CFLAGS="$CFLAGS"
13189 CFLAGS="$CFLAGS -belf"
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13191$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013192if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013193 $as_echo_n "(cached) " >&6
13194else
13195 ac_ext=c
13196ac_cpp='$CPP $CPPFLAGS'
13197ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13198ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13199ac_compiler_gnu=$ac_cv_c_compiler_gnu
13200
13201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13202/* end confdefs.h. */
13203
13204int
13205main ()
13206{
13207
13208 ;
13209 return 0;
13210}
13211_ACEOF
13212if ac_fn_c_try_link "$LINENO"; then :
13213 lt_cv_cc_needs_belf=yes
13214else
13215 lt_cv_cc_needs_belf=no
13216fi
13217rm -f core conftest.err conftest.$ac_objext \
13218 conftest$ac_exeext conftest.$ac_ext
13219 ac_ext=c
13220ac_cpp='$CPP $CPPFLAGS'
13221ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13222ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13223ac_compiler_gnu=$ac_cv_c_compiler_gnu
13224
13225fi
13226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13227$as_echo "$lt_cv_cc_needs_belf" >&6; }
13228 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13229 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13230 CFLAGS="$SAVE_CFLAGS"
13231 fi
13232 ;;
cristy99bd5232011-12-07 14:38:20 +000013233*-*solaris*)
cristy73bd4a52010-10-05 11:24:23 +000013234 # Find out which ABI we are using.
13235 echo 'int i;' > conftest.$ac_ext
13236 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13237 (eval $ac_compile) 2>&5
13238 ac_status=$?
13239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13240 test $ac_status = 0; }; then
13241 case `/usr/bin/file conftest.o` in
13242 *64-bit*)
13243 case $lt_cv_prog_gnu_ld in
cristy99bd5232011-12-07 14:38:20 +000013244 yes*)
13245 case $host in
13246 i?86-*-solaris*)
13247 LD="${LD-ld} -m elf_x86_64"
13248 ;;
13249 sparc*-*-solaris*)
13250 LD="${LD-ld} -m elf64_sparc"
13251 ;;
13252 esac
13253 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
13254 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
13255 LD="${LD-ld}_sol2"
13256 fi
13257 ;;
cristy73bd4a52010-10-05 11:24:23 +000013258 *)
13259 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13260 LD="${LD-ld} -64"
13261 fi
13262 ;;
13263 esac
13264 ;;
13265 esac
13266 fi
13267 rm -rf conftest*
13268 ;;
13269esac
13270
13271need_locks="$enable_libtool_lock"
13272
cristyda16f162011-02-19 23:52:17 +000013273if test -n "$ac_tool_prefix"; then
13274 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13275set dummy ${ac_tool_prefix}mt; ac_word=$2
13276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13277$as_echo_n "checking for $ac_word... " >&6; }
13278if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13279 $as_echo_n "(cached) " >&6
13280else
13281 if test -n "$MANIFEST_TOOL"; then
13282 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13283else
13284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13285for as_dir in $PATH
13286do
13287 IFS=$as_save_IFS
13288 test -z "$as_dir" && as_dir=.
13289 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000013291 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13293 break 2
13294 fi
13295done
13296 done
13297IFS=$as_save_IFS
13298
13299fi
13300fi
13301MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13302if test -n "$MANIFEST_TOOL"; then
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13304$as_echo "$MANIFEST_TOOL" >&6; }
13305else
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13307$as_echo "no" >&6; }
13308fi
13309
13310
13311fi
13312if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13313 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13314 # Extract the first word of "mt", so it can be a program name with args.
13315set dummy mt; ac_word=$2
13316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13317$as_echo_n "checking for $ac_word... " >&6; }
13318if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13319 $as_echo_n "(cached) " >&6
13320else
13321 if test -n "$ac_ct_MANIFEST_TOOL"; then
13322 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13323else
13324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13325for as_dir in $PATH
13326do
13327 IFS=$as_save_IFS
13328 test -z "$as_dir" && as_dir=.
13329 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000013331 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13333 break 2
13334 fi
13335done
13336 done
13337IFS=$as_save_IFS
13338
13339fi
13340fi
13341ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13342if test -n "$ac_ct_MANIFEST_TOOL"; then
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13344$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13345else
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13347$as_echo "no" >&6; }
13348fi
13349
13350 if test "x$ac_ct_MANIFEST_TOOL" = x; then
13351 MANIFEST_TOOL=":"
13352 else
13353 case $cross_compiling:$ac_tool_warned in
13354yes:)
13355{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13356$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13357ac_tool_warned=yes ;;
13358esac
13359 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13360 fi
13361else
13362 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13363fi
13364
13365test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13367$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13368if ${lt_cv_path_mainfest_tool+:} false; then :
13369 $as_echo_n "(cached) " >&6
13370else
13371 lt_cv_path_mainfest_tool=no
13372 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13373 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13374 cat conftest.err >&5
13375 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13376 lt_cv_path_mainfest_tool=yes
13377 fi
13378 rm -f conftest*
13379fi
13380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13381$as_echo "$lt_cv_path_mainfest_tool" >&6; }
13382if test "x$lt_cv_path_mainfest_tool" != xyes; then
13383 MANIFEST_TOOL=:
13384fi
13385
13386
13387
13388
13389
cristy73bd4a52010-10-05 11:24:23 +000013390
13391 case $host_os in
13392 rhapsody* | darwin*)
13393 if test -n "$ac_tool_prefix"; then
13394 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13395set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13397$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013398if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013399 $as_echo_n "(cached) " >&6
13400else
13401 if test -n "$DSYMUTIL"; then
13402 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13403else
13404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13405for as_dir in $PATH
13406do
13407 IFS=$as_save_IFS
13408 test -z "$as_dir" && as_dir=.
13409 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013411 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13413 break 2
13414 fi
13415done
13416 done
13417IFS=$as_save_IFS
13418
13419fi
13420fi
13421DSYMUTIL=$ac_cv_prog_DSYMUTIL
13422if test -n "$DSYMUTIL"; then
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13424$as_echo "$DSYMUTIL" >&6; }
13425else
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13427$as_echo "no" >&6; }
13428fi
13429
13430
13431fi
13432if test -z "$ac_cv_prog_DSYMUTIL"; then
13433 ac_ct_DSYMUTIL=$DSYMUTIL
13434 # Extract the first word of "dsymutil", so it can be a program name with args.
13435set dummy dsymutil; ac_word=$2
13436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13437$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013438if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013439 $as_echo_n "(cached) " >&6
13440else
13441 if test -n "$ac_ct_DSYMUTIL"; then
13442 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13443else
13444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13445for as_dir in $PATH
13446do
13447 IFS=$as_save_IFS
13448 test -z "$as_dir" && as_dir=.
13449 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013451 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13453 break 2
13454 fi
13455done
13456 done
13457IFS=$as_save_IFS
13458
13459fi
13460fi
13461ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13462if test -n "$ac_ct_DSYMUTIL"; then
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13464$as_echo "$ac_ct_DSYMUTIL" >&6; }
13465else
13466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13467$as_echo "no" >&6; }
13468fi
13469
13470 if test "x$ac_ct_DSYMUTIL" = x; then
13471 DSYMUTIL=":"
13472 else
13473 case $cross_compiling:$ac_tool_warned in
13474yes:)
13475{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13476$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13477ac_tool_warned=yes ;;
13478esac
13479 DSYMUTIL=$ac_ct_DSYMUTIL
13480 fi
13481else
13482 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13483fi
13484
13485 if test -n "$ac_tool_prefix"; then
13486 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13487set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13489$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013490if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013491 $as_echo_n "(cached) " >&6
13492else
13493 if test -n "$NMEDIT"; then
13494 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13495else
13496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13497for as_dir in $PATH
13498do
13499 IFS=$as_save_IFS
13500 test -z "$as_dir" && as_dir=.
13501 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013503 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13505 break 2
13506 fi
13507done
13508 done
13509IFS=$as_save_IFS
13510
13511fi
13512fi
13513NMEDIT=$ac_cv_prog_NMEDIT
13514if test -n "$NMEDIT"; then
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13516$as_echo "$NMEDIT" >&6; }
13517else
13518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13519$as_echo "no" >&6; }
13520fi
13521
13522
13523fi
13524if test -z "$ac_cv_prog_NMEDIT"; then
13525 ac_ct_NMEDIT=$NMEDIT
13526 # Extract the first word of "nmedit", so it can be a program name with args.
13527set dummy nmedit; ac_word=$2
13528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13529$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013530if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013531 $as_echo_n "(cached) " >&6
13532else
13533 if test -n "$ac_ct_NMEDIT"; then
13534 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13535else
13536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13537for as_dir in $PATH
13538do
13539 IFS=$as_save_IFS
13540 test -z "$as_dir" && as_dir=.
13541 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013543 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13545 break 2
13546 fi
13547done
13548 done
13549IFS=$as_save_IFS
13550
13551fi
13552fi
13553ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13554if test -n "$ac_ct_NMEDIT"; then
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13556$as_echo "$ac_ct_NMEDIT" >&6; }
13557else
13558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13559$as_echo "no" >&6; }
13560fi
13561
13562 if test "x$ac_ct_NMEDIT" = x; then
13563 NMEDIT=":"
13564 else
13565 case $cross_compiling:$ac_tool_warned in
13566yes:)
13567{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13568$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13569ac_tool_warned=yes ;;
13570esac
13571 NMEDIT=$ac_ct_NMEDIT
13572 fi
13573else
13574 NMEDIT="$ac_cv_prog_NMEDIT"
13575fi
13576
13577 if test -n "$ac_tool_prefix"; then
13578 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13579set dummy ${ac_tool_prefix}lipo; ac_word=$2
13580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13581$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013582if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013583 $as_echo_n "(cached) " >&6
13584else
13585 if test -n "$LIPO"; then
13586 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13587else
13588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13589for as_dir in $PATH
13590do
13591 IFS=$as_save_IFS
13592 test -z "$as_dir" && as_dir=.
13593 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013595 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13597 break 2
13598 fi
13599done
13600 done
13601IFS=$as_save_IFS
13602
13603fi
13604fi
13605LIPO=$ac_cv_prog_LIPO
13606if test -n "$LIPO"; then
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13608$as_echo "$LIPO" >&6; }
13609else
13610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13611$as_echo "no" >&6; }
13612fi
13613
13614
13615fi
13616if test -z "$ac_cv_prog_LIPO"; then
13617 ac_ct_LIPO=$LIPO
13618 # Extract the first word of "lipo", so it can be a program name with args.
13619set dummy lipo; ac_word=$2
13620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13621$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013622if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013623 $as_echo_n "(cached) " >&6
13624else
13625 if test -n "$ac_ct_LIPO"; then
13626 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13627else
13628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13629for as_dir in $PATH
13630do
13631 IFS=$as_save_IFS
13632 test -z "$as_dir" && as_dir=.
13633 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013635 ac_cv_prog_ac_ct_LIPO="lipo"
13636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13637 break 2
13638 fi
13639done
13640 done
13641IFS=$as_save_IFS
13642
13643fi
13644fi
13645ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13646if test -n "$ac_ct_LIPO"; then
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13648$as_echo "$ac_ct_LIPO" >&6; }
13649else
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13651$as_echo "no" >&6; }
13652fi
13653
13654 if test "x$ac_ct_LIPO" = x; then
13655 LIPO=":"
13656 else
13657 case $cross_compiling:$ac_tool_warned in
13658yes:)
13659{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13660$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13661ac_tool_warned=yes ;;
13662esac
13663 LIPO=$ac_ct_LIPO
13664 fi
13665else
13666 LIPO="$ac_cv_prog_LIPO"
13667fi
13668
13669 if test -n "$ac_tool_prefix"; then
13670 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13671set dummy ${ac_tool_prefix}otool; ac_word=$2
13672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13673$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013674if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013675 $as_echo_n "(cached) " >&6
13676else
13677 if test -n "$OTOOL"; then
13678 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13679else
13680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13681for as_dir in $PATH
13682do
13683 IFS=$as_save_IFS
13684 test -z "$as_dir" && as_dir=.
13685 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013687 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13689 break 2
13690 fi
13691done
13692 done
13693IFS=$as_save_IFS
13694
13695fi
13696fi
13697OTOOL=$ac_cv_prog_OTOOL
13698if test -n "$OTOOL"; then
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13700$as_echo "$OTOOL" >&6; }
13701else
13702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13703$as_echo "no" >&6; }
13704fi
13705
13706
13707fi
13708if test -z "$ac_cv_prog_OTOOL"; then
13709 ac_ct_OTOOL=$OTOOL
13710 # Extract the first word of "otool", so it can be a program name with args.
13711set dummy otool; ac_word=$2
13712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13713$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013714if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013715 $as_echo_n "(cached) " >&6
13716else
13717 if test -n "$ac_ct_OTOOL"; then
13718 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13719else
13720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13721for as_dir in $PATH
13722do
13723 IFS=$as_save_IFS
13724 test -z "$as_dir" && as_dir=.
13725 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013727 ac_cv_prog_ac_ct_OTOOL="otool"
13728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13729 break 2
13730 fi
13731done
13732 done
13733IFS=$as_save_IFS
13734
13735fi
13736fi
13737ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13738if test -n "$ac_ct_OTOOL"; then
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13740$as_echo "$ac_ct_OTOOL" >&6; }
13741else
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13743$as_echo "no" >&6; }
13744fi
13745
13746 if test "x$ac_ct_OTOOL" = x; then
13747 OTOOL=":"
13748 else
13749 case $cross_compiling:$ac_tool_warned in
13750yes:)
13751{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13752$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13753ac_tool_warned=yes ;;
13754esac
13755 OTOOL=$ac_ct_OTOOL
13756 fi
13757else
13758 OTOOL="$ac_cv_prog_OTOOL"
13759fi
13760
13761 if test -n "$ac_tool_prefix"; then
13762 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13763set dummy ${ac_tool_prefix}otool64; ac_word=$2
13764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13765$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013766if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013767 $as_echo_n "(cached) " >&6
13768else
13769 if test -n "$OTOOL64"; then
13770 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13771else
13772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13773for as_dir in $PATH
13774do
13775 IFS=$as_save_IFS
13776 test -z "$as_dir" && as_dir=.
13777 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013779 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13781 break 2
13782 fi
13783done
13784 done
13785IFS=$as_save_IFS
13786
13787fi
13788fi
13789OTOOL64=$ac_cv_prog_OTOOL64
13790if test -n "$OTOOL64"; then
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13792$as_echo "$OTOOL64" >&6; }
13793else
13794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13795$as_echo "no" >&6; }
13796fi
13797
13798
13799fi
13800if test -z "$ac_cv_prog_OTOOL64"; then
13801 ac_ct_OTOOL64=$OTOOL64
13802 # Extract the first word of "otool64", so it can be a program name with args.
13803set dummy otool64; ac_word=$2
13804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13805$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013806if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013807 $as_echo_n "(cached) " >&6
13808else
13809 if test -n "$ac_ct_OTOOL64"; then
13810 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13811else
13812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13813for as_dir in $PATH
13814do
13815 IFS=$as_save_IFS
13816 test -z "$as_dir" && as_dir=.
13817 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013819 ac_cv_prog_ac_ct_OTOOL64="otool64"
13820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13821 break 2
13822 fi
13823done
13824 done
13825IFS=$as_save_IFS
13826
13827fi
13828fi
13829ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13830if test -n "$ac_ct_OTOOL64"; then
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13832$as_echo "$ac_ct_OTOOL64" >&6; }
13833else
13834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13835$as_echo "no" >&6; }
13836fi
13837
13838 if test "x$ac_ct_OTOOL64" = x; then
13839 OTOOL64=":"
13840 else
13841 case $cross_compiling:$ac_tool_warned in
13842yes:)
13843{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13844$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13845ac_tool_warned=yes ;;
13846esac
13847 OTOOL64=$ac_ct_OTOOL64
13848 fi
13849else
13850 OTOOL64="$ac_cv_prog_OTOOL64"
13851fi
13852
13853
13854
13855
13856
13857
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13880$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013881if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013882 $as_echo_n "(cached) " >&6
13883else
13884 lt_cv_apple_cc_single_mod=no
13885 if test -z "${LT_MULTI_MODULE}"; then
13886 # By default we will add the -single_module flag. You can override
13887 # by either setting the environment variable LT_MULTI_MODULE
13888 # non-empty at configure time, or by adding -multi_module to the
13889 # link flags.
13890 rm -rf libconftest.dylib*
13891 echo "int foo(void){return 1;}" > conftest.c
13892 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13893-dynamiclib -Wl,-single_module conftest.c" >&5
13894 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13895 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13896 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013897 # If there is a non-empty error log, and "single_module"
13898 # appears in it, assume the flag caused a linker warning
13899 if test -s conftest.err && $GREP single_module conftest.err; then
13900 cat conftest.err >&5
13901 # Otherwise, if the output was created with a 0 exit code from
13902 # the compiler, it worked.
13903 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
cristy73bd4a52010-10-05 11:24:23 +000013904 lt_cv_apple_cc_single_mod=yes
13905 else
13906 cat conftest.err >&5
13907 fi
13908 rm -rf libconftest.dylib*
13909 rm -f conftest.*
13910 fi
13911fi
13912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13913$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013914
cristy73bd4a52010-10-05 11:24:23 +000013915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13916$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013917if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013918 $as_echo_n "(cached) " >&6
13919else
13920 lt_cv_ld_exported_symbols_list=no
13921 save_LDFLAGS=$LDFLAGS
13922 echo "_main" > conftest.sym
13923 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13925/* end confdefs.h. */
13926
13927int
13928main ()
13929{
13930
13931 ;
13932 return 0;
13933}
13934_ACEOF
13935if ac_fn_c_try_link "$LINENO"; then :
13936 lt_cv_ld_exported_symbols_list=yes
13937else
13938 lt_cv_ld_exported_symbols_list=no
13939fi
13940rm -f core conftest.err conftest.$ac_objext \
13941 conftest$ac_exeext conftest.$ac_ext
13942 LDFLAGS="$save_LDFLAGS"
13943
13944fi
13945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13946$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013947
cristy0c60a692010-11-04 01:09:47 +000013948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13949$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013950if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000013951 $as_echo_n "(cached) " >&6
13952else
13953 lt_cv_ld_force_load=no
13954 cat > conftest.c << _LT_EOF
13955int forced_loaded() { return 2;}
13956_LT_EOF
13957 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13958 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13959 echo "$AR cru libconftest.a conftest.o" >&5
13960 $AR cru libconftest.a conftest.o 2>&5
13961 echo "$RANLIB libconftest.a" >&5
13962 $RANLIB libconftest.a 2>&5
13963 cat > conftest.c << _LT_EOF
13964int main() { return 0;}
13965_LT_EOF
13966 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13967 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13968 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013969 if test -s conftest.err && $GREP force_load conftest.err; then
13970 cat conftest.err >&5
13971 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
cristy0c60a692010-11-04 01:09:47 +000013972 lt_cv_ld_force_load=yes
13973 else
13974 cat conftest.err >&5
13975 fi
13976 rm -f conftest.err libconftest.a conftest conftest.c
13977 rm -rf conftest.dSYM
13978
13979fi
13980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13981$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000013982 case $host_os in
13983 rhapsody* | darwin1.[012])
13984 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13985 darwin1.*)
13986 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13987 darwin*) # darwin 5.x on
13988 # if running on 10.5 or later, the deployment target defaults
13989 # to the OS version, if on x86, and 10.4, the deployment
13990 # target defaults to 10.4. Don't you love it?
13991 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13992 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13993 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13994 10.[012]*)
13995 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13996 10.*)
13997 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13998 esac
13999 ;;
14000 esac
14001 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14002 _lt_dar_single_mod='$single_module'
14003 fi
14004 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14005 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14006 else
14007 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14008 fi
cristy0c60a692010-11-04 01:09:47 +000014009 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000014010 _lt_dsymutil='~$DSYMUTIL $lib || :'
14011 else
14012 _lt_dsymutil=
14013 fi
14014 ;;
14015 esac
14016
14017for ac_header in dlfcn.h
14018do :
14019 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
14020"
cristyda16f162011-02-19 23:52:17 +000014021if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000014022 cat >>confdefs.h <<_ACEOF
14023#define HAVE_DLFCN_H 1
14024_ACEOF
14025
14026fi
14027
14028done
14029
14030
14031
cristy73bd4a52010-10-05 11:24:23 +000014032
cristyda16f162011-02-19 23:52:17 +000014033func_stripname_cnf ()
14034{
14035 case ${2} in
14036 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
14037 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
14038 esac
14039} # func_stripname_cnf
14040
14041
14042
cristy73bd4a52010-10-05 11:24:23 +000014043
14044
14045# Set options
14046enable_win32_dll=yes
14047
14048case $host in
cristy0c60a692010-11-04 01:09:47 +000014049*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000014050 if test -n "$ac_tool_prefix"; then
14051 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
14052set dummy ${ac_tool_prefix}as; ac_word=$2
14053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14054$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014055if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014056 $as_echo_n "(cached) " >&6
14057else
14058 if test -n "$AS"; then
14059 ac_cv_prog_AS="$AS" # Let the user override the test.
14060else
14061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14062for as_dir in $PATH
14063do
14064 IFS=$as_save_IFS
14065 test -z "$as_dir" && as_dir=.
14066 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014068 ac_cv_prog_AS="${ac_tool_prefix}as"
14069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14070 break 2
14071 fi
14072done
14073 done
14074IFS=$as_save_IFS
14075
14076fi
14077fi
14078AS=$ac_cv_prog_AS
14079if test -n "$AS"; then
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
14081$as_echo "$AS" >&6; }
14082else
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14084$as_echo "no" >&6; }
14085fi
14086
14087
14088fi
14089if test -z "$ac_cv_prog_AS"; then
14090 ac_ct_AS=$AS
14091 # Extract the first word of "as", so it can be a program name with args.
14092set dummy as; ac_word=$2
14093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14094$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014095if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014096 $as_echo_n "(cached) " >&6
14097else
14098 if test -n "$ac_ct_AS"; then
14099 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
14100else
14101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14102for as_dir in $PATH
14103do
14104 IFS=$as_save_IFS
14105 test -z "$as_dir" && as_dir=.
14106 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014108 ac_cv_prog_ac_ct_AS="as"
14109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14110 break 2
14111 fi
14112done
14113 done
14114IFS=$as_save_IFS
14115
14116fi
14117fi
14118ac_ct_AS=$ac_cv_prog_ac_ct_AS
14119if test -n "$ac_ct_AS"; then
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
14121$as_echo "$ac_ct_AS" >&6; }
14122else
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14124$as_echo "no" >&6; }
14125fi
14126
14127 if test "x$ac_ct_AS" = x; then
14128 AS="false"
14129 else
14130 case $cross_compiling:$ac_tool_warned in
14131yes:)
14132{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14133$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14134ac_tool_warned=yes ;;
14135esac
14136 AS=$ac_ct_AS
14137 fi
14138else
14139 AS="$ac_cv_prog_AS"
14140fi
14141
14142 if test -n "$ac_tool_prefix"; then
14143 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
14144set dummy ${ac_tool_prefix}dlltool; ac_word=$2
14145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14146$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014147if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014148 $as_echo_n "(cached) " >&6
14149else
14150 if test -n "$DLLTOOL"; then
14151 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
14152else
14153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14154for as_dir in $PATH
14155do
14156 IFS=$as_save_IFS
14157 test -z "$as_dir" && as_dir=.
14158 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014160 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
14161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14162 break 2
14163 fi
14164done
14165 done
14166IFS=$as_save_IFS
14167
14168fi
14169fi
14170DLLTOOL=$ac_cv_prog_DLLTOOL
14171if test -n "$DLLTOOL"; then
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
14173$as_echo "$DLLTOOL" >&6; }
14174else
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14176$as_echo "no" >&6; }
14177fi
14178
14179
14180fi
14181if test -z "$ac_cv_prog_DLLTOOL"; then
14182 ac_ct_DLLTOOL=$DLLTOOL
14183 # Extract the first word of "dlltool", so it can be a program name with args.
14184set dummy dlltool; ac_word=$2
14185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14186$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014187if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014188 $as_echo_n "(cached) " >&6
14189else
14190 if test -n "$ac_ct_DLLTOOL"; then
14191 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
14192else
14193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14194for as_dir in $PATH
14195do
14196 IFS=$as_save_IFS
14197 test -z "$as_dir" && as_dir=.
14198 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014200 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
14201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14202 break 2
14203 fi
14204done
14205 done
14206IFS=$as_save_IFS
14207
14208fi
14209fi
14210ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
14211if test -n "$ac_ct_DLLTOOL"; then
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
14213$as_echo "$ac_ct_DLLTOOL" >&6; }
14214else
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14216$as_echo "no" >&6; }
14217fi
14218
14219 if test "x$ac_ct_DLLTOOL" = x; then
14220 DLLTOOL="false"
14221 else
14222 case $cross_compiling:$ac_tool_warned in
14223yes:)
14224{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14225$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14226ac_tool_warned=yes ;;
14227esac
14228 DLLTOOL=$ac_ct_DLLTOOL
14229 fi
14230else
14231 DLLTOOL="$ac_cv_prog_DLLTOOL"
14232fi
14233
14234 if test -n "$ac_tool_prefix"; then
14235 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
14236set dummy ${ac_tool_prefix}objdump; ac_word=$2
14237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14238$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014239if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014240 $as_echo_n "(cached) " >&6
14241else
14242 if test -n "$OBJDUMP"; then
14243 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
14244else
14245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14246for as_dir in $PATH
14247do
14248 IFS=$as_save_IFS
14249 test -z "$as_dir" && as_dir=.
14250 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014252 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
14253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14254 break 2
14255 fi
14256done
14257 done
14258IFS=$as_save_IFS
14259
14260fi
14261fi
14262OBJDUMP=$ac_cv_prog_OBJDUMP
14263if test -n "$OBJDUMP"; then
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
14265$as_echo "$OBJDUMP" >&6; }
14266else
14267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14268$as_echo "no" >&6; }
14269fi
14270
14271
14272fi
14273if test -z "$ac_cv_prog_OBJDUMP"; then
14274 ac_ct_OBJDUMP=$OBJDUMP
14275 # Extract the first word of "objdump", so it can be a program name with args.
14276set dummy objdump; ac_word=$2
14277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14278$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014279if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014280 $as_echo_n "(cached) " >&6
14281else
14282 if test -n "$ac_ct_OBJDUMP"; then
14283 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
14284else
14285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14286for as_dir in $PATH
14287do
14288 IFS=$as_save_IFS
14289 test -z "$as_dir" && as_dir=.
14290 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014292 ac_cv_prog_ac_ct_OBJDUMP="objdump"
14293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14294 break 2
14295 fi
14296done
14297 done
14298IFS=$as_save_IFS
14299
14300fi
14301fi
14302ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
14303if test -n "$ac_ct_OBJDUMP"; then
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
14305$as_echo "$ac_ct_OBJDUMP" >&6; }
14306else
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14308$as_echo "no" >&6; }
14309fi
14310
14311 if test "x$ac_ct_OBJDUMP" = x; then
14312 OBJDUMP="false"
14313 else
14314 case $cross_compiling:$ac_tool_warned in
14315yes:)
14316{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14317$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14318ac_tool_warned=yes ;;
14319esac
14320 OBJDUMP=$ac_ct_OBJDUMP
14321 fi
14322else
14323 OBJDUMP="$ac_cv_prog_OBJDUMP"
14324fi
14325
14326 ;;
14327esac
14328
14329test -z "$AS" && AS=as
14330
14331
14332
14333
14334
14335test -z "$DLLTOOL" && DLLTOOL=dlltool
14336
14337
14338
14339
14340
14341test -z "$OBJDUMP" && OBJDUMP=objdump
14342
14343
14344
14345
14346
14347
14348
14349
14350
14351 # Check whether --enable-shared was given.
14352if test "${enable_shared+set}" = set; then :
14353 enableval=$enable_shared; p=${PACKAGE-default}
14354 case $enableval in
14355 yes) enable_shared=yes ;;
14356 no) enable_shared=no ;;
14357 *)
14358 enable_shared=no
14359 # Look at the argument we got. We use all the common list separators.
14360 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14361 for pkg in $enableval; do
14362 IFS="$lt_save_ifs"
14363 if test "X$pkg" = "X$p"; then
14364 enable_shared=yes
14365 fi
14366 done
14367 IFS="$lt_save_ifs"
14368 ;;
14369 esac
14370else
14371 enable_shared=yes
14372fi
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382 # Check whether --enable-static was given.
14383if test "${enable_static+set}" = set; then :
14384 enableval=$enable_static; p=${PACKAGE-default}
14385 case $enableval in
14386 yes) enable_static=yes ;;
14387 no) enable_static=no ;;
14388 *)
14389 enable_static=no
14390 # Look at the argument we got. We use all the common list separators.
14391 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14392 for pkg in $enableval; do
14393 IFS="$lt_save_ifs"
14394 if test "X$pkg" = "X$p"; then
14395 enable_static=yes
14396 fi
14397 done
14398 IFS="$lt_save_ifs"
14399 ;;
14400 esac
14401else
14402 enable_static=yes
14403fi
14404
14405
14406
14407
14408
14409
14410
14411
14412
14413
14414# Check whether --with-pic was given.
14415if test "${with_pic+set}" = set; then :
cristy99bd5232011-12-07 14:38:20 +000014416 withval=$with_pic; lt_p=${PACKAGE-default}
14417 case $withval in
14418 yes|no) pic_mode=$withval ;;
14419 *)
14420 pic_mode=default
14421 # Look at the argument we got. We use all the common list separators.
14422 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14423 for lt_pkg in $withval; do
14424 IFS="$lt_save_ifs"
14425 if test "X$lt_pkg" = "X$lt_p"; then
14426 pic_mode=yes
14427 fi
14428 done
14429 IFS="$lt_save_ifs"
14430 ;;
14431 esac
cristy73bd4a52010-10-05 11:24:23 +000014432else
14433 pic_mode=default
14434fi
14435
14436
14437test -z "$pic_mode" && pic_mode=default
14438
14439
14440
14441
14442
14443
14444
14445 # Check whether --enable-fast-install was given.
14446if test "${enable_fast_install+set}" = set; then :
14447 enableval=$enable_fast_install; p=${PACKAGE-default}
14448 case $enableval in
14449 yes) enable_fast_install=yes ;;
14450 no) enable_fast_install=no ;;
14451 *)
14452 enable_fast_install=no
14453 # Look at the argument we got. We use all the common list separators.
14454 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14455 for pkg in $enableval; do
14456 IFS="$lt_save_ifs"
14457 if test "X$pkg" = "X$p"; then
14458 enable_fast_install=yes
14459 fi
14460 done
14461 IFS="$lt_save_ifs"
14462 ;;
14463 esac
14464else
14465 enable_fast_install=yes
14466fi
14467
14468
14469
14470
14471
14472
14473
14474
14475
14476
14477
14478# This can be used to rebuild libtool when needed
14479LIBTOOL_DEPS="$ltmain"
14480
14481# Always use our own libtool.
14482LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14483
14484
14485
14486
14487
14488
14489
14490
14491
14492
14493
14494
14495
14496
14497
14498
14499
14500
14501
14502
14503
14504
14505
14506
14507
cristy0c60a692010-11-04 01:09:47 +000014508
cristy99bd5232011-12-07 14:38:20 +000014509
14510
14511
14512
cristy73bd4a52010-10-05 11:24:23 +000014513test -z "$LN_S" && LN_S="ln -s"
14514
14515
14516
14517
14518
14519
14520
14521
14522
14523
14524
14525
14526
14527
14528if test -n "${ZSH_VERSION+set}" ; then
14529 setopt NO_GLOB_SUBST
14530fi
14531
14532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14533$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014534if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014535 $as_echo_n "(cached) " >&6
14536else
14537 rm -f .libs 2>/dev/null
14538mkdir .libs 2>/dev/null
14539if test -d .libs; then
14540 lt_cv_objdir=.libs
14541else
14542 # MS-DOS does not allow filenames that begin with a dot.
14543 lt_cv_objdir=_libs
14544fi
14545rmdir .libs 2>/dev/null
14546fi
14547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14548$as_echo "$lt_cv_objdir" >&6; }
14549objdir=$lt_cv_objdir
14550
14551
14552
14553
14554
14555cat >>confdefs.h <<_ACEOF
14556#define LT_OBJDIR "$lt_cv_objdir/"
14557_ACEOF
14558
14559
14560
14561
cristy73bd4a52010-10-05 11:24:23 +000014562case $host_os in
14563aix3*)
14564 # AIX sometimes has problems with the GCC collect2 program. For some
14565 # reason, if we set the COLLECT_NAMES environment variable, the problems
14566 # vanish in a puff of smoke.
14567 if test "X${COLLECT_NAMES+set}" != Xset; then
14568 COLLECT_NAMES=
14569 export COLLECT_NAMES
14570 fi
14571 ;;
14572esac
14573
cristy73bd4a52010-10-05 11:24:23 +000014574# Global variables:
14575ofile=libtool
14576can_build_shared=yes
14577
14578# All known linkers require a `.a' archive for static linking (except MSVC,
14579# which needs '.lib').
14580libext=a
14581
14582with_gnu_ld="$lt_cv_prog_gnu_ld"
14583
14584old_CC="$CC"
14585old_CFLAGS="$CFLAGS"
14586
14587# Set sane defaults for various variables
14588test -z "$CC" && CC=cc
14589test -z "$LTCC" && LTCC=$CC
14590test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14591test -z "$LD" && LD=ld
14592test -z "$ac_objext" && ac_objext=o
14593
14594for cc_temp in $compiler""; do
14595 case $cc_temp in
14596 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14597 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14598 \-*) ;;
14599 *) break;;
14600 esac
14601done
cristy0c60a692010-11-04 01:09:47 +000014602cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000014603
14604
14605# Only perform the check for file, if the check method requires it
14606test -z "$MAGIC_CMD" && MAGIC_CMD=file
14607case $deplibs_check_method in
14608file_magic*)
14609 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14611$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014612if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014613 $as_echo_n "(cached) " >&6
14614else
14615 case $MAGIC_CMD in
14616[\\/*] | ?:[\\/]*)
14617 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14618 ;;
14619*)
14620 lt_save_MAGIC_CMD="$MAGIC_CMD"
14621 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14622 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14623 for ac_dir in $ac_dummy; do
14624 IFS="$lt_save_ifs"
14625 test -z "$ac_dir" && ac_dir=.
14626 if test -f $ac_dir/${ac_tool_prefix}file; then
14627 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14628 if test -n "$file_magic_test_file"; then
14629 case $deplibs_check_method in
14630 "file_magic "*)
14631 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14632 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14633 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14634 $EGREP "$file_magic_regex" > /dev/null; then
14635 :
14636 else
14637 cat <<_LT_EOF 1>&2
14638
14639*** Warning: the command libtool uses to detect shared libraries,
14640*** $file_magic_cmd, produces output that libtool cannot recognize.
14641*** The result is that libtool may fail to recognize shared libraries
14642*** as such. This will affect the creation of libtool libraries that
14643*** depend on shared libraries, but programs linked with such libtool
14644*** libraries will work regardless of this problem. Nevertheless, you
14645*** may want to report the problem to your system manager and/or to
14646*** bug-libtool@gnu.org
14647
14648_LT_EOF
14649 fi ;;
14650 esac
14651 fi
14652 break
14653 fi
14654 done
14655 IFS="$lt_save_ifs"
14656 MAGIC_CMD="$lt_save_MAGIC_CMD"
14657 ;;
14658esac
14659fi
14660
14661MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14662if test -n "$MAGIC_CMD"; then
14663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14664$as_echo "$MAGIC_CMD" >&6; }
14665else
14666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14667$as_echo "no" >&6; }
14668fi
14669
14670
14671
14672
14673
14674if test -z "$lt_cv_path_MAGIC_CMD"; then
14675 if test -n "$ac_tool_prefix"; then
14676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14677$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014678if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014679 $as_echo_n "(cached) " >&6
14680else
14681 case $MAGIC_CMD in
14682[\\/*] | ?:[\\/]*)
14683 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14684 ;;
14685*)
14686 lt_save_MAGIC_CMD="$MAGIC_CMD"
14687 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14688 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14689 for ac_dir in $ac_dummy; do
14690 IFS="$lt_save_ifs"
14691 test -z "$ac_dir" && ac_dir=.
14692 if test -f $ac_dir/file; then
14693 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14694 if test -n "$file_magic_test_file"; then
14695 case $deplibs_check_method in
14696 "file_magic "*)
14697 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14698 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14699 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14700 $EGREP "$file_magic_regex" > /dev/null; then
14701 :
14702 else
14703 cat <<_LT_EOF 1>&2
14704
14705*** Warning: the command libtool uses to detect shared libraries,
14706*** $file_magic_cmd, produces output that libtool cannot recognize.
14707*** The result is that libtool may fail to recognize shared libraries
14708*** as such. This will affect the creation of libtool libraries that
14709*** depend on shared libraries, but programs linked with such libtool
14710*** libraries will work regardless of this problem. Nevertheless, you
14711*** may want to report the problem to your system manager and/or to
14712*** bug-libtool@gnu.org
14713
14714_LT_EOF
14715 fi ;;
14716 esac
14717 fi
14718 break
14719 fi
14720 done
14721 IFS="$lt_save_ifs"
14722 MAGIC_CMD="$lt_save_MAGIC_CMD"
14723 ;;
14724esac
14725fi
14726
14727MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14728if test -n "$MAGIC_CMD"; then
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14730$as_echo "$MAGIC_CMD" >&6; }
14731else
14732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14733$as_echo "no" >&6; }
14734fi
14735
14736
14737 else
14738 MAGIC_CMD=:
14739 fi
14740fi
14741
14742 fi
14743 ;;
14744esac
14745
14746# Use C for the default configuration in the libtool script
14747
14748lt_save_CC="$CC"
14749ac_ext=c
14750ac_cpp='$CPP $CPPFLAGS'
14751ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14752ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14753ac_compiler_gnu=$ac_cv_c_compiler_gnu
14754
14755
14756# Source file extension for C test sources.
14757ac_ext=c
14758
14759# Object file extension for compiled C test sources.
14760objext=o
14761objext=$objext
14762
14763# Code to be used in simple compile tests
14764lt_simple_compile_test_code="int some_variable = 0;"
14765
14766# Code to be used in simple link tests
14767lt_simple_link_test_code='int main(){return(0);}'
14768
14769
14770
14771
14772
14773
14774
14775# If no C compiler was specified, use CC.
14776LTCC=${LTCC-"$CC"}
14777
14778# If no C compiler flags were specified, use CFLAGS.
14779LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14780
14781# Allow CC to be a program name with arguments.
14782compiler=$CC
14783
14784# Save the default compiler, since it gets overwritten when the other
14785# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14786compiler_DEFAULT=$CC
14787
14788# save warnings/boilerplate of simple test code
14789ac_outfile=conftest.$ac_objext
14790echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14791eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14792_lt_compiler_boilerplate=`cat conftest.err`
14793$RM conftest*
14794
14795ac_outfile=conftest.$ac_objext
14796echo "$lt_simple_link_test_code" >conftest.$ac_ext
14797eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14798_lt_linker_boilerplate=`cat conftest.err`
14799$RM -r conftest*
14800
14801
14802## CAVEAT EMPTOR:
14803## There is no encapsulation within the following macros, do not change
14804## the running order or otherwise move them around unless you know exactly
14805## what you are doing...
14806if test -n "$compiler"; then
14807
14808lt_prog_compiler_no_builtin_flag=
14809
14810if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000014811 case $cc_basename in
14812 nvcc*)
14813 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14814 *)
14815 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14816 esac
cristy73bd4a52010-10-05 11:24:23 +000014817
14818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14819$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014820if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014821 $as_echo_n "(cached) " >&6
14822else
14823 lt_cv_prog_compiler_rtti_exceptions=no
14824 ac_outfile=conftest.$ac_objext
14825 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14826 lt_compiler_flag="-fno-rtti -fno-exceptions"
14827 # Insert the option either (1) after the last *FLAGS variable, or
14828 # (2) before a word containing "conftest.", or (3) at the end.
14829 # Note that $ac_compile itself does not contain backslashes and begins
14830 # with a dollar sign (not a hyphen), so the echo should work correctly.
14831 # The option is referenced via a variable to avoid confusing sed.
14832 lt_compile=`echo "$ac_compile" | $SED \
14833 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14834 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14835 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014836 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014837 (eval "$lt_compile" 2>conftest.err)
14838 ac_status=$?
14839 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014841 if (exit $ac_status) && test -s "$ac_outfile"; then
14842 # The compiler can only warn and ignore the option if not recognized
14843 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014844 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014845 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14846 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14847 lt_cv_prog_compiler_rtti_exceptions=yes
14848 fi
14849 fi
14850 $RM conftest*
14851
14852fi
14853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14854$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14855
14856if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14857 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14858else
14859 :
14860fi
14861
14862fi
14863
14864
14865
14866
14867
14868
14869 lt_prog_compiler_wl=
14870lt_prog_compiler_pic=
14871lt_prog_compiler_static=
14872
cristy73bd4a52010-10-05 11:24:23 +000014873
14874 if test "$GCC" = yes; then
14875 lt_prog_compiler_wl='-Wl,'
14876 lt_prog_compiler_static='-static'
14877
14878 case $host_os in
14879 aix*)
14880 # All AIX code is PIC.
14881 if test "$host_cpu" = ia64; then
14882 # AIX 5 now supports IA64 processor
14883 lt_prog_compiler_static='-Bstatic'
14884 fi
14885 ;;
14886
14887 amigaos*)
14888 case $host_cpu in
14889 powerpc)
14890 # see comment about AmigaOS4 .so support
14891 lt_prog_compiler_pic='-fPIC'
14892 ;;
14893 m68k)
14894 # FIXME: we need at least 68020 code to build shared libraries, but
14895 # adding the `-m68020' flag to GCC prevents building anything better,
14896 # like `-m68040'.
14897 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14898 ;;
14899 esac
14900 ;;
14901
14902 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14903 # PIC is the default for these OSes.
14904 ;;
14905
14906 mingw* | cygwin* | pw32* | os2* | cegcc*)
14907 # This hack is so that the source file can tell whether it is being
14908 # built for inclusion in a dll (and should export symbols for example).
14909 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14910 # (--disable-auto-import) libraries
14911 lt_prog_compiler_pic='-DDLL_EXPORT'
14912 ;;
14913
14914 darwin* | rhapsody*)
14915 # PIC is the default on this platform
14916 # Common symbols not allowed in MH_DYLIB files
14917 lt_prog_compiler_pic='-fno-common'
14918 ;;
14919
cristy0c60a692010-11-04 01:09:47 +000014920 haiku*)
14921 # PIC is the default for Haiku.
14922 # The "-static" flag exists, but is broken.
14923 lt_prog_compiler_static=
14924 ;;
14925
cristy73bd4a52010-10-05 11:24:23 +000014926 hpux*)
14927 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14928 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14929 # sets the default TLS model and affects inlining.
14930 case $host_cpu in
14931 hppa*64*)
14932 # +Z the default
14933 ;;
14934 *)
14935 lt_prog_compiler_pic='-fPIC'
14936 ;;
14937 esac
14938 ;;
14939
14940 interix[3-9]*)
14941 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14942 # Instead, we relocate shared libraries at runtime.
14943 ;;
14944
14945 msdosdjgpp*)
14946 # Just because we use GCC doesn't mean we suddenly get shared libraries
14947 # on systems that don't support them.
14948 lt_prog_compiler_can_build_shared=no
14949 enable_shared=no
14950 ;;
14951
14952 *nto* | *qnx*)
14953 # QNX uses GNU C++, but need to define -shared option too, otherwise
14954 # it will coredump.
14955 lt_prog_compiler_pic='-fPIC -shared'
14956 ;;
14957
14958 sysv4*MP*)
14959 if test -d /usr/nec; then
14960 lt_prog_compiler_pic=-Kconform_pic
14961 fi
14962 ;;
14963
14964 *)
14965 lt_prog_compiler_pic='-fPIC'
14966 ;;
14967 esac
cristy0c60a692010-11-04 01:09:47 +000014968
14969 case $cc_basename in
14970 nvcc*) # Cuda Compiler Driver 2.2
14971 lt_prog_compiler_wl='-Xlinker '
cristy99bd5232011-12-07 14:38:20 +000014972 if test -n "$lt_prog_compiler_pic"; then
14973 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14974 fi
cristy0c60a692010-11-04 01:09:47 +000014975 ;;
14976 esac
cristy73bd4a52010-10-05 11:24:23 +000014977 else
14978 # PORTME Check for flag to pass linker flags through the system compiler.
14979 case $host_os in
14980 aix*)
14981 lt_prog_compiler_wl='-Wl,'
14982 if test "$host_cpu" = ia64; then
14983 # AIX 5 now supports IA64 processor
14984 lt_prog_compiler_static='-Bstatic'
14985 else
14986 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14987 fi
14988 ;;
14989
14990 mingw* | cygwin* | pw32* | os2* | cegcc*)
14991 # This hack is so that the source file can tell whether it is being
14992 # built for inclusion in a dll (and should export symbols for example).
14993 lt_prog_compiler_pic='-DDLL_EXPORT'
14994 ;;
14995
14996 hpux9* | hpux10* | hpux11*)
14997 lt_prog_compiler_wl='-Wl,'
14998 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14999 # not for PA HP-UX.
15000 case $host_cpu in
15001 hppa*64*|ia64*)
15002 # +Z the default
15003 ;;
15004 *)
15005 lt_prog_compiler_pic='+Z'
15006 ;;
15007 esac
15008 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15009 lt_prog_compiler_static='${wl}-a ${wl}archive'
15010 ;;
15011
15012 irix5* | irix6* | nonstopux*)
15013 lt_prog_compiler_wl='-Wl,'
15014 # PIC (with -KPIC) is the default.
15015 lt_prog_compiler_static='-non_shared'
15016 ;;
15017
cristy0c60a692010-11-04 01:09:47 +000015018 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000015019 case $cc_basename in
15020 # old Intel for x86_64 which still supported -KPIC.
15021 ecc*)
15022 lt_prog_compiler_wl='-Wl,'
15023 lt_prog_compiler_pic='-KPIC'
15024 lt_prog_compiler_static='-static'
15025 ;;
15026 # icc used to be incompatible with GCC.
15027 # ICC 10 doesn't accept -KPIC any more.
15028 icc* | ifort*)
15029 lt_prog_compiler_wl='-Wl,'
15030 lt_prog_compiler_pic='-fPIC'
15031 lt_prog_compiler_static='-static'
15032 ;;
15033 # Lahey Fortran 8.1.
15034 lf95*)
15035 lt_prog_compiler_wl='-Wl,'
15036 lt_prog_compiler_pic='--shared'
15037 lt_prog_compiler_static='--static'
15038 ;;
cristyda16f162011-02-19 23:52:17 +000015039 nagfor*)
15040 # NAG Fortran compiler
15041 lt_prog_compiler_wl='-Wl,-Wl,,'
15042 lt_prog_compiler_pic='-PIC'
15043 lt_prog_compiler_static='-Bstatic'
15044 ;;
cristy0c60a692010-11-04 01:09:47 +000015045 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000015046 # Portland Group compilers (*not* the Pentium gcc compiler,
15047 # which looks to be a dead project)
15048 lt_prog_compiler_wl='-Wl,'
15049 lt_prog_compiler_pic='-fpic'
15050 lt_prog_compiler_static='-Bstatic'
15051 ;;
15052 ccc*)
15053 lt_prog_compiler_wl='-Wl,'
15054 # All Alpha code is PIC.
15055 lt_prog_compiler_static='-non_shared'
15056 ;;
cristy0c60a692010-11-04 01:09:47 +000015057 xl* | bgxl* | bgf* | mpixl*)
15058 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000015059 lt_prog_compiler_wl='-Wl,'
15060 lt_prog_compiler_pic='-qpic'
15061 lt_prog_compiler_static='-qstaticlink'
15062 ;;
15063 *)
15064 case `$CC -V 2>&1 | sed 5q` in
cristy99bd5232011-12-07 14:38:20 +000015065 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
cristy0c60a692010-11-04 01:09:47 +000015066 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15067 lt_prog_compiler_pic='-KPIC'
15068 lt_prog_compiler_static='-Bstatic'
15069 lt_prog_compiler_wl=''
15070 ;;
cristy99bd5232011-12-07 14:38:20 +000015071 *Sun\ F* | *Sun*Fortran*)
15072 lt_prog_compiler_pic='-KPIC'
15073 lt_prog_compiler_static='-Bstatic'
15074 lt_prog_compiler_wl='-Qoption ld '
15075 ;;
cristy73bd4a52010-10-05 11:24:23 +000015076 *Sun\ C*)
15077 # Sun C 5.9
15078 lt_prog_compiler_pic='-KPIC'
15079 lt_prog_compiler_static='-Bstatic'
15080 lt_prog_compiler_wl='-Wl,'
15081 ;;
cristy99bd5232011-12-07 14:38:20 +000015082 *Intel*\ [CF]*Compiler*)
15083 lt_prog_compiler_wl='-Wl,'
15084 lt_prog_compiler_pic='-fPIC'
15085 lt_prog_compiler_static='-static'
15086 ;;
15087 *Portland\ Group*)
15088 lt_prog_compiler_wl='-Wl,'
15089 lt_prog_compiler_pic='-fpic'
15090 lt_prog_compiler_static='-Bstatic'
15091 ;;
cristy73bd4a52010-10-05 11:24:23 +000015092 esac
15093 ;;
15094 esac
15095 ;;
15096
15097 newsos6)
15098 lt_prog_compiler_pic='-KPIC'
15099 lt_prog_compiler_static='-Bstatic'
15100 ;;
15101
15102 *nto* | *qnx*)
15103 # QNX uses GNU C++, but need to define -shared option too, otherwise
15104 # it will coredump.
15105 lt_prog_compiler_pic='-fPIC -shared'
15106 ;;
15107
15108 osf3* | osf4* | osf5*)
15109 lt_prog_compiler_wl='-Wl,'
15110 # All OSF/1 code is PIC.
15111 lt_prog_compiler_static='-non_shared'
15112 ;;
15113
15114 rdos*)
15115 lt_prog_compiler_static='-non_shared'
15116 ;;
15117
15118 solaris*)
15119 lt_prog_compiler_pic='-KPIC'
15120 lt_prog_compiler_static='-Bstatic'
15121 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000015122 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000015123 lt_prog_compiler_wl='-Qoption ld ';;
15124 *)
15125 lt_prog_compiler_wl='-Wl,';;
15126 esac
15127 ;;
15128
15129 sunos4*)
15130 lt_prog_compiler_wl='-Qoption ld '
15131 lt_prog_compiler_pic='-PIC'
15132 lt_prog_compiler_static='-Bstatic'
15133 ;;
15134
15135 sysv4 | sysv4.2uw2* | sysv4.3*)
15136 lt_prog_compiler_wl='-Wl,'
15137 lt_prog_compiler_pic='-KPIC'
15138 lt_prog_compiler_static='-Bstatic'
15139 ;;
15140
15141 sysv4*MP*)
15142 if test -d /usr/nec ;then
15143 lt_prog_compiler_pic='-Kconform_pic'
15144 lt_prog_compiler_static='-Bstatic'
15145 fi
15146 ;;
15147
15148 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15149 lt_prog_compiler_wl='-Wl,'
15150 lt_prog_compiler_pic='-KPIC'
15151 lt_prog_compiler_static='-Bstatic'
15152 ;;
15153
15154 unicos*)
15155 lt_prog_compiler_wl='-Wl,'
15156 lt_prog_compiler_can_build_shared=no
15157 ;;
15158
15159 uts4*)
15160 lt_prog_compiler_pic='-pic'
15161 lt_prog_compiler_static='-Bstatic'
15162 ;;
15163
15164 *)
15165 lt_prog_compiler_can_build_shared=no
15166 ;;
15167 esac
15168 fi
15169
15170case $host_os in
15171 # For platforms which do not support PIC, -DPIC is meaningless:
15172 *djgpp*)
15173 lt_prog_compiler_pic=
15174 ;;
15175 *)
15176 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15177 ;;
15178esac
cristy73bd4a52010-10-05 11:24:23 +000015179
cristyda16f162011-02-19 23:52:17 +000015180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15181$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15182if ${lt_cv_prog_compiler_pic+:} false; then :
15183 $as_echo_n "(cached) " >&6
15184else
15185 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
15186fi
15187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
15188$as_echo "$lt_cv_prog_compiler_pic" >&6; }
15189lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000015190
15191#
15192# Check to make sure the PIC flag actually works.
15193#
15194if test -n "$lt_prog_compiler_pic"; then
15195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15196$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015197if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015198 $as_echo_n "(cached) " >&6
15199else
15200 lt_cv_prog_compiler_pic_works=no
15201 ac_outfile=conftest.$ac_objext
15202 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15203 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15204 # Insert the option either (1) after the last *FLAGS variable, or
15205 # (2) before a word containing "conftest.", or (3) at the end.
15206 # Note that $ac_compile itself does not contain backslashes and begins
15207 # with a dollar sign (not a hyphen), so the echo should work correctly.
15208 # The option is referenced via a variable to avoid confusing sed.
15209 lt_compile=`echo "$ac_compile" | $SED \
15210 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15211 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15212 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000015213 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000015214 (eval "$lt_compile" 2>conftest.err)
15215 ac_status=$?
15216 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000015217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000015218 if (exit $ac_status) && test -s "$ac_outfile"; then
15219 # The compiler can only warn and ignore the option if not recognized
15220 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000015221 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000015222 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15223 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15224 lt_cv_prog_compiler_pic_works=yes
15225 fi
15226 fi
15227 $RM conftest*
15228
15229fi
15230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15231$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15232
15233if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15234 case $lt_prog_compiler_pic in
15235 "" | " "*) ;;
15236 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15237 esac
15238else
15239 lt_prog_compiler_pic=
15240 lt_prog_compiler_can_build_shared=no
15241fi
15242
15243fi
15244
15245
15246
15247
15248
15249
cristyda16f162011-02-19 23:52:17 +000015250
15251
15252
15253
15254
cristy73bd4a52010-10-05 11:24:23 +000015255#
15256# Check to make sure the static flag actually works.
15257#
15258wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15260$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015261if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015262 $as_echo_n "(cached) " >&6
15263else
15264 lt_cv_prog_compiler_static_works=no
15265 save_LDFLAGS="$LDFLAGS"
15266 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15267 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15268 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15269 # The linker can only warn and ignore the option if not recognized
15270 # So say no if there are warnings
15271 if test -s conftest.err; then
15272 # Append any errors to the config.log.
15273 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000015274 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000015275 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15276 if diff conftest.exp conftest.er2 >/dev/null; then
15277 lt_cv_prog_compiler_static_works=yes
15278 fi
15279 else
15280 lt_cv_prog_compiler_static_works=yes
15281 fi
15282 fi
15283 $RM -r conftest*
15284 LDFLAGS="$save_LDFLAGS"
15285
15286fi
15287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15288$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15289
15290if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15291 :
15292else
15293 lt_prog_compiler_static=
15294fi
15295
15296
15297
15298
15299
15300
15301
15302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15303$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015304if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015305 $as_echo_n "(cached) " >&6
15306else
15307 lt_cv_prog_compiler_c_o=no
15308 $RM -r conftest 2>/dev/null
15309 mkdir conftest
15310 cd conftest
15311 mkdir out
15312 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15313
15314 lt_compiler_flag="-o out/conftest2.$ac_objext"
15315 # Insert the option either (1) after the last *FLAGS variable, or
15316 # (2) before a word containing "conftest.", or (3) at the end.
15317 # Note that $ac_compile itself does not contain backslashes and begins
15318 # with a dollar sign (not a hyphen), so the echo should work correctly.
15319 lt_compile=`echo "$ac_compile" | $SED \
15320 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15321 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15322 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000015323 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000015324 (eval "$lt_compile" 2>out/conftest.err)
15325 ac_status=$?
15326 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000015327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000015328 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15329 then
15330 # The compiler can only warn and ignore the option if not recognized
15331 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000015332 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000015333 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15334 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15335 lt_cv_prog_compiler_c_o=yes
15336 fi
15337 fi
15338 chmod u+w . 2>&5
15339 $RM conftest*
15340 # SGI C++ compiler will create directory out/ii_files/ for
15341 # template instantiation
15342 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15343 $RM out/* && rmdir out
15344 cd ..
15345 $RM -r conftest
15346 $RM conftest*
15347
15348fi
15349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15350$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15351
15352
15353
15354
15355
15356
15357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15358$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015359if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015360 $as_echo_n "(cached) " >&6
15361else
15362 lt_cv_prog_compiler_c_o=no
15363 $RM -r conftest 2>/dev/null
15364 mkdir conftest
15365 cd conftest
15366 mkdir out
15367 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15368
15369 lt_compiler_flag="-o out/conftest2.$ac_objext"
15370 # Insert the option either (1) after the last *FLAGS variable, or
15371 # (2) before a word containing "conftest.", or (3) at the end.
15372 # Note that $ac_compile itself does not contain backslashes and begins
15373 # with a dollar sign (not a hyphen), so the echo should work correctly.
15374 lt_compile=`echo "$ac_compile" | $SED \
15375 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15376 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15377 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000015378 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000015379 (eval "$lt_compile" 2>out/conftest.err)
15380 ac_status=$?
15381 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000015382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000015383 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15384 then
15385 # The compiler can only warn and ignore the option if not recognized
15386 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000015387 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000015388 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15389 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15390 lt_cv_prog_compiler_c_o=yes
15391 fi
15392 fi
15393 chmod u+w . 2>&5
15394 $RM conftest*
15395 # SGI C++ compiler will create directory out/ii_files/ for
15396 # template instantiation
15397 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15398 $RM out/* && rmdir out
15399 cd ..
15400 $RM -r conftest
15401 $RM conftest*
15402
15403fi
15404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15405$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15406
15407
15408
15409
15410hard_links="nottested"
15411if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15412 # do not overwrite the value of need_locks provided by the user
15413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15414$as_echo_n "checking if we can lock with hard links... " >&6; }
15415 hard_links=yes
15416 $RM conftest*
15417 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15418 touch conftest.a
15419 ln conftest.a conftest.b 2>&5 || hard_links=no
15420 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15422$as_echo "$hard_links" >&6; }
15423 if test "$hard_links" = no; then
15424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15425$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15426 need_locks=warn
15427 fi
15428else
15429 need_locks=no
15430fi
15431
15432
15433
15434
15435
15436
15437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15438$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15439
15440 runpath_var=
15441 allow_undefined_flag=
15442 always_export_symbols=no
15443 archive_cmds=
15444 archive_expsym_cmds=
15445 compiler_needs_object=no
15446 enable_shared_with_static_runtimes=no
15447 export_dynamic_flag_spec=
15448 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15449 hardcode_automatic=no
15450 hardcode_direct=no
15451 hardcode_direct_absolute=no
15452 hardcode_libdir_flag_spec=
cristy73bd4a52010-10-05 11:24:23 +000015453 hardcode_libdir_separator=
15454 hardcode_minus_L=no
15455 hardcode_shlibpath_var=unsupported
15456 inherit_rpath=no
15457 link_all_deplibs=unknown
15458 module_cmds=
15459 module_expsym_cmds=
15460 old_archive_from_new_cmds=
15461 old_archive_from_expsyms_cmds=
15462 thread_safe_flag_spec=
15463 whole_archive_flag_spec=
15464 # include_expsyms should be a list of space-separated symbols to be *always*
15465 # included in the symbol list
15466 include_expsyms=
15467 # exclude_expsyms can be an extended regexp of symbols to exclude
15468 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15469 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15470 # as well as any symbol that contains `d'.
15471 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15472 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15473 # platforms (ab)use it in PIC code, but their linkers get confused if
15474 # the symbol is explicitly referenced. Since portable code cannot
15475 # rely on this symbol name, it's probably fine to never include it in
15476 # preloaded symbol tables.
15477 # Exclude shared library initialization/finalization symbols.
15478 extract_expsyms_cmds=
15479
15480 case $host_os in
15481 cygwin* | mingw* | pw32* | cegcc*)
15482 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15483 # When not using gcc, we currently assume that we are using
15484 # Microsoft Visual C++.
15485 if test "$GCC" != yes; then
15486 with_gnu_ld=no
15487 fi
15488 ;;
15489 interix*)
15490 # we just hope/assume this is gcc and not c89 (= MSVC++)
15491 with_gnu_ld=yes
15492 ;;
15493 openbsd*)
15494 with_gnu_ld=no
15495 ;;
15496 esac
15497
15498 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000015499
15500 # On some targets, GNU ld is compatible enough with the native linker
15501 # that we're better off using the native interface for both.
15502 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000015503 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000015504 case $host_os in
15505 aix*)
15506 # The AIX port of GNU ld has always aspired to compatibility
15507 # with the native linker. However, as the warning in the GNU ld
15508 # block says, versions before 2.19.5* couldn't really create working
15509 # shared libraries, regardless of the interface used.
15510 case `$LD -v 2>&1` in
15511 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15512 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15513 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15514 *)
15515 lt_use_gnu_ld_interface=yes
15516 ;;
15517 esac
15518 ;;
15519 *)
15520 lt_use_gnu_ld_interface=yes
15521 ;;
15522 esac
15523 fi
15524
15525 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000015526 # If archive_cmds runs LD, not CC, wlarc should be empty
15527 wlarc='${wl}'
15528
15529 # Set some defaults for GNU ld with shared library support. These
15530 # are reset later if shared libraries are not supported. Putting them
15531 # here allows them to be overridden if necessary.
15532 runpath_var=LD_RUN_PATH
15533 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15534 export_dynamic_flag_spec='${wl}--export-dynamic'
15535 # ancient GNU ld didn't support --whole-archive et. al.
15536 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15537 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15538 else
15539 whole_archive_flag_spec=
15540 fi
15541 supports_anon_versioning=no
15542 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000015543 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000015544 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15545 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15546 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15547 *\ 2.11.*) ;; # other 2.11 versions
15548 *) supports_anon_versioning=yes ;;
15549 esac
15550
15551 # See if GNU ld supports shared libraries.
15552 case $host_os in
15553 aix[3-9]*)
15554 # On AIX/PPC, the GNU linker is very broken
15555 if test "$host_cpu" != ia64; then
15556 ld_shlibs=no
15557 cat <<_LT_EOF 1>&2
15558
cristy0c60a692010-11-04 01:09:47 +000015559*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000015560*** to be unable to reliably create shared libraries on AIX.
15561*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000015562*** really care for shared libraries, you may want to install binutils
15563*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15564*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000015565
15566_LT_EOF
15567 fi
15568 ;;
15569
15570 amigaos*)
15571 case $host_cpu in
15572 powerpc)
15573 # see comment about AmigaOS4 .so support
15574 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15575 archive_expsym_cmds=''
15576 ;;
15577 m68k)
15578 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)'
15579 hardcode_libdir_flag_spec='-L$libdir'
15580 hardcode_minus_L=yes
15581 ;;
15582 esac
15583 ;;
15584
15585 beos*)
15586 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15587 allow_undefined_flag=unsupported
15588 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15589 # support --undefined. This deserves some investigation. FIXME
15590 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15591 else
15592 ld_shlibs=no
15593 fi
15594 ;;
15595
15596 cygwin* | mingw* | pw32* | cegcc*)
15597 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15598 # as there is no search path for DLLs.
15599 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000015600 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000015601 allow_undefined_flag=unsupported
15602 always_export_symbols=no
15603 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000015604 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'
15605 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 +000015606
15607 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15608 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15609 # If the export-symbols file already is a .def file (1st line
15610 # is EXPORTS), use it as is; otherwise, prepend...
15611 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15612 cp $export_symbols $output_objdir/$soname.def;
15613 else
15614 echo EXPORTS > $output_objdir/$soname.def;
15615 cat $export_symbols >> $output_objdir/$soname.def;
15616 fi~
15617 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15618 else
15619 ld_shlibs=no
15620 fi
15621 ;;
15622
cristy0c60a692010-11-04 01:09:47 +000015623 haiku*)
15624 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15625 link_all_deplibs=yes
15626 ;;
15627
cristy73bd4a52010-10-05 11:24:23 +000015628 interix[3-9]*)
15629 hardcode_direct=no
15630 hardcode_shlibpath_var=no
15631 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15632 export_dynamic_flag_spec='${wl}-E'
15633 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15634 # Instead, shared libraries are loaded at an image base (0x10000000 by
15635 # default) and relocated if they conflict, which is a slow very memory
15636 # consuming and fragmenting process. To avoid this, we pick a random,
15637 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15638 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15639 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15640 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'
15641 ;;
15642
cristy0c60a692010-11-04 01:09:47 +000015643 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000015644 tmp_diet=no
15645 if test "$host_os" = linux-dietlibc; then
15646 case $cc_basename in
15647 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15648 esac
15649 fi
15650 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15651 && test "$tmp_diet" = no
15652 then
cristyda16f162011-02-19 23:52:17 +000015653 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000015654 tmp_sharedflag='-shared'
15655 case $cc_basename,$host_cpu in
15656 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000015657 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 +000015658 tmp_addflag=' $pic_flag'
15659 ;;
cristy0c60a692010-11-04 01:09:47 +000015660 pgf77* | pgf90* | pgf95* | pgfortran*)
15661 # Portland Group f77 and f90 compilers
15662 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 +000015663 tmp_addflag=' $pic_flag -Mnomain' ;;
15664 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15665 tmp_addflag=' -i_dynamic' ;;
15666 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15667 tmp_addflag=' -i_dynamic -nofor_main' ;;
15668 ifc* | ifort*) # Intel Fortran compiler
15669 tmp_addflag=' -nofor_main' ;;
15670 lf95*) # Lahey Fortran 8.1
15671 whole_archive_flag_spec=
15672 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000015673 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000015674 tmp_sharedflag='-qmkshrobj'
15675 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000015676 nvcc*) # Cuda Compiler Driver 2.2
15677 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'
15678 compiler_needs_object=yes
15679 ;;
cristy73bd4a52010-10-05 11:24:23 +000015680 esac
15681 case `$CC -V 2>&1 | sed 5q` in
15682 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000015683 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 +000015684 compiler_needs_object=yes
15685 tmp_sharedflag='-G' ;;
15686 *Sun\ F*) # Sun Fortran 8.3
15687 tmp_sharedflag='-G' ;;
15688 esac
15689 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15690
15691 if test "x$supports_anon_versioning" = xyes; then
15692 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15693 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15694 echo "local: *; };" >> $output_objdir/$libname.ver~
15695 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15696 fi
15697
15698 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000015699 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000015700 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15701 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
cristy99bd5232011-12-07 14:38:20 +000015702 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cristy0c60a692010-11-04 01:09:47 +000015703 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015704 if test "x$supports_anon_versioning" = xyes; then
15705 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15706 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15707 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000015708 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015709 fi
15710 ;;
15711 esac
15712 else
15713 ld_shlibs=no
15714 fi
15715 ;;
15716
15717 netbsd*)
15718 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15719 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15720 wlarc=
15721 else
cristyda16f162011-02-19 23:52:17 +000015722 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15723 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 +000015724 fi
15725 ;;
15726
15727 solaris*)
15728 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15729 ld_shlibs=no
15730 cat <<_LT_EOF 1>&2
15731
15732*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15733*** create shared libraries on Solaris systems. Therefore, libtool
15734*** is disabling shared libraries support. We urge you to upgrade GNU
15735*** binutils to release 2.9.1 or newer. Another option is to modify
15736*** your PATH or compiler configuration so that the native linker is
15737*** used, and then restart.
15738
15739_LT_EOF
15740 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000015741 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15742 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 +000015743 else
15744 ld_shlibs=no
15745 fi
15746 ;;
15747
15748 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15749 case `$LD -v 2>&1` in
15750 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15751 ld_shlibs=no
15752 cat <<_LT_EOF 1>&2
15753
15754*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15755*** reliably create shared libraries on SCO systems. Therefore, libtool
15756*** is disabling shared libraries support. We urge you to upgrade GNU
15757*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15758*** your PATH or compiler configuration so that the native linker is
15759*** used, and then restart.
15760
15761_LT_EOF
15762 ;;
15763 *)
15764 # For security reasons, it is highly recommended that you always
15765 # use absolute paths for naming shared libraries, and exclude the
15766 # DT_RUNPATH tag from executables and libraries. But doing so
15767 # requires that you compile everything twice, which is a pain.
15768 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15769 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15770 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15771 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15772 else
15773 ld_shlibs=no
15774 fi
15775 ;;
15776 esac
15777 ;;
15778
15779 sunos4*)
15780 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15781 wlarc=
15782 hardcode_direct=yes
15783 hardcode_shlibpath_var=no
15784 ;;
15785
15786 *)
15787 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000015788 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15789 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 +000015790 else
15791 ld_shlibs=no
15792 fi
15793 ;;
15794 esac
15795
15796 if test "$ld_shlibs" = no; then
15797 runpath_var=
15798 hardcode_libdir_flag_spec=
15799 export_dynamic_flag_spec=
15800 whole_archive_flag_spec=
15801 fi
15802 else
15803 # PORTME fill in a description of your system's linker (not GNU ld)
15804 case $host_os in
15805 aix3*)
15806 allow_undefined_flag=unsupported
15807 always_export_symbols=yes
15808 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'
15809 # Note: this linker hardcodes the directories in LIBPATH if there
15810 # are no directories specified by -L.
15811 hardcode_minus_L=yes
15812 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15813 # Neither direct hardcoding nor static linking is supported with a
15814 # broken collect2.
15815 hardcode_direct=unsupported
15816 fi
15817 ;;
15818
15819 aix[4-9]*)
15820 if test "$host_cpu" = ia64; then
15821 # On IA64, the linker does run time linking by default, so we don't
15822 # have to do anything special.
15823 aix_use_runtimelinking=no
15824 exp_sym_flag='-Bexport'
15825 no_entry_flag=""
15826 else
15827 # If we're using GNU nm, then we don't want the "-C" option.
15828 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000015829 # Also, AIX nm treats weak defined symbols like other global
15830 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000015831 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000015832 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 +000015833 else
15834 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'
15835 fi
15836 aix_use_runtimelinking=no
15837
15838 # Test if we are trying to use run time linking or normal
15839 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15840 # need to do runtime linking.
15841 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15842 for ld_flag in $LDFLAGS; do
15843 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15844 aix_use_runtimelinking=yes
15845 break
15846 fi
15847 done
15848 ;;
15849 esac
15850
15851 exp_sym_flag='-bexport'
15852 no_entry_flag='-bnoentry'
15853 fi
15854
15855 # When large executables or shared objects are built, AIX ld can
15856 # have problems creating the table of contents. If linking a library
15857 # or program results in "error TOC overflow" add -mminimal-toc to
15858 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15859 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15860
15861 archive_cmds=''
15862 hardcode_direct=yes
15863 hardcode_direct_absolute=yes
15864 hardcode_libdir_separator=':'
15865 link_all_deplibs=yes
15866 file_list_spec='${wl}-f,'
15867
15868 if test "$GCC" = yes; then
15869 case $host_os in aix4.[012]|aix4.[012].*)
15870 # We only want to do this on AIX 4.2 and lower, the check
15871 # below for broken collect2 doesn't work under 4.3+
15872 collect2name=`${CC} -print-prog-name=collect2`
15873 if test -f "$collect2name" &&
15874 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15875 then
15876 # We have reworked collect2
15877 :
15878 else
15879 # We have old collect2
15880 hardcode_direct=unsupported
15881 # It fails to find uninstalled libraries when the uninstalled
15882 # path is not listed in the libpath. Setting hardcode_minus_L
15883 # to unsupported forces relinking
15884 hardcode_minus_L=yes
15885 hardcode_libdir_flag_spec='-L$libdir'
15886 hardcode_libdir_separator=
15887 fi
15888 ;;
15889 esac
15890 shared_flag='-shared'
15891 if test "$aix_use_runtimelinking" = yes; then
15892 shared_flag="$shared_flag "'${wl}-G'
15893 fi
15894 else
15895 # not using gcc
15896 if test "$host_cpu" = ia64; then
15897 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15898 # chokes on -Wl,-G. The following line is correct:
15899 shared_flag='-G'
15900 else
15901 if test "$aix_use_runtimelinking" = yes; then
15902 shared_flag='${wl}-G'
15903 else
15904 shared_flag='${wl}-bM:SRE'
15905 fi
15906 fi
15907 fi
15908
15909 export_dynamic_flag_spec='${wl}-bexpall'
15910 # It seems that -bexpall does not export symbols beginning with
15911 # underscore (_), so it is better to generate a list of symbols to export.
15912 always_export_symbols=yes
15913 if test "$aix_use_runtimelinking" = yes; then
15914 # Warning - without using the other runtime loading flags (-brtl),
15915 # -berok will link without error, but may produce a broken library.
15916 allow_undefined_flag='-berok'
15917 # Determine the default libpath from the value encoded in an
15918 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015919 if test "${lt_cv_aix_libpath+set}" = set; then
15920 aix_libpath=$lt_cv_aix_libpath
15921else
15922 if ${lt_cv_aix_libpath_+:} false; then :
15923 $as_echo_n "(cached) " >&6
15924else
15925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015926/* end confdefs.h. */
15927
15928int
15929main ()
15930{
15931
15932 ;
15933 return 0;
15934}
15935_ACEOF
15936if ac_fn_c_try_link "$LINENO"; then :
15937
cristyda16f162011-02-19 23:52:17 +000015938 lt_aix_libpath_sed='
15939 /Import File Strings/,/^$/ {
15940 /^0/ {
15941 s/^0 *\([^ ]*\) *$/\1/
15942 p
15943 }
15944 }'
15945 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15946 # Check for a 64-bit object if we didn't find anything.
15947 if test -z "$lt_cv_aix_libpath_"; then
15948 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15949 fi
cristy73bd4a52010-10-05 11:24:23 +000015950fi
15951rm -f core conftest.err conftest.$ac_objext \
15952 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015953 if test -z "$lt_cv_aix_libpath_"; then
15954 lt_cv_aix_libpath_="/usr/lib:/lib"
15955 fi
15956
15957fi
15958
15959 aix_libpath=$lt_cv_aix_libpath_
15960fi
cristy73bd4a52010-10-05 11:24:23 +000015961
15962 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000015963 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 +000015964 else
15965 if test "$host_cpu" = ia64; then
15966 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15967 allow_undefined_flag="-z nodefs"
15968 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"
15969 else
15970 # Determine the default libpath from the value encoded in an
15971 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015972 if test "${lt_cv_aix_libpath+set}" = set; then
15973 aix_libpath=$lt_cv_aix_libpath
15974else
15975 if ${lt_cv_aix_libpath_+:} false; then :
15976 $as_echo_n "(cached) " >&6
15977else
15978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015979/* end confdefs.h. */
15980
15981int
15982main ()
15983{
15984
15985 ;
15986 return 0;
15987}
15988_ACEOF
15989if ac_fn_c_try_link "$LINENO"; then :
15990
cristyda16f162011-02-19 23:52:17 +000015991 lt_aix_libpath_sed='
15992 /Import File Strings/,/^$/ {
15993 /^0/ {
15994 s/^0 *\([^ ]*\) *$/\1/
15995 p
15996 }
15997 }'
15998 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15999 # Check for a 64-bit object if we didn't find anything.
16000 if test -z "$lt_cv_aix_libpath_"; then
16001 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16002 fi
cristy73bd4a52010-10-05 11:24:23 +000016003fi
16004rm -f core conftest.err conftest.$ac_objext \
16005 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000016006 if test -z "$lt_cv_aix_libpath_"; then
16007 lt_cv_aix_libpath_="/usr/lib:/lib"
16008 fi
16009
16010fi
16011
16012 aix_libpath=$lt_cv_aix_libpath_
16013fi
cristy73bd4a52010-10-05 11:24:23 +000016014
16015 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16016 # Warning - without using the other run time loading flags,
16017 # -berok will link without error, but may produce a broken library.
16018 no_undefined_flag=' ${wl}-bernotok'
16019 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000016020 if test "$with_gnu_ld" = yes; then
16021 # We only use this code for GNU lds that support --whole-archive.
16022 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16023 else
16024 # Exported symbols can be pulled into shared objects from archives
16025 whole_archive_flag_spec='$convenience'
16026 fi
cristy73bd4a52010-10-05 11:24:23 +000016027 archive_cmds_need_lc=yes
16028 # This is similar to how AIX traditionally builds its shared libraries.
16029 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'
16030 fi
16031 fi
16032 ;;
16033
16034 amigaos*)
16035 case $host_cpu in
16036 powerpc)
16037 # see comment about AmigaOS4 .so support
16038 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16039 archive_expsym_cmds=''
16040 ;;
16041 m68k)
16042 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)'
16043 hardcode_libdir_flag_spec='-L$libdir'
16044 hardcode_minus_L=yes
16045 ;;
16046 esac
16047 ;;
16048
16049 bsdi[45]*)
16050 export_dynamic_flag_spec=-rdynamic
16051 ;;
16052
16053 cygwin* | mingw* | pw32* | cegcc*)
16054 # When not using gcc, we currently assume that we are using
16055 # Microsoft Visual C++.
16056 # hardcode_libdir_flag_spec is actually meaningless, as there is
16057 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000016058 case $cc_basename in
16059 cl*)
16060 # Native MSVC
16061 hardcode_libdir_flag_spec=' '
16062 allow_undefined_flag=unsupported
16063 always_export_symbols=yes
16064 file_list_spec='@'
16065 # Tell ltmain to make .lib files, not .a files.
16066 libext=lib
16067 # Tell ltmain to make .dll files, not .so files.
16068 shrext_cmds=".dll"
16069 # FIXME: Setting linknames here is a bad hack.
16070 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
16071 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16072 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
16073 else
16074 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
16075 fi~
16076 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16077 linknames='
16078 # The linker will not automatically build a static lib if we build a DLL.
16079 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
16080 enable_shared_with_static_runtimes=yes
cristy99bd5232011-12-07 14:38:20 +000016081 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
cristyda16f162011-02-19 23:52:17 +000016082 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16083 # Don't use ranlib
16084 old_postinstall_cmds='chmod 644 $oldlib'
16085 postlink_cmds='lt_outputfile="@OUTPUT@"~
16086 lt_tool_outputfile="@TOOL_OUTPUT@"~
16087 case $lt_outputfile in
16088 *.exe|*.EXE) ;;
16089 *)
16090 lt_outputfile="$lt_outputfile.exe"
16091 lt_tool_outputfile="$lt_tool_outputfile.exe"
16092 ;;
16093 esac~
16094 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
16095 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16096 $RM "$lt_outputfile.manifest";
16097 fi'
16098 ;;
16099 *)
16100 # Assume MSVC wrapper
16101 hardcode_libdir_flag_spec=' '
16102 allow_undefined_flag=unsupported
16103 # Tell ltmain to make .lib files, not .a files.
16104 libext=lib
16105 # Tell ltmain to make .dll files, not .so files.
16106 shrext_cmds=".dll"
16107 # FIXME: Setting linknames here is a bad hack.
16108 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16109 # The linker will automatically build a .lib file if we build a DLL.
16110 old_archive_from_new_cmds='true'
16111 # FIXME: Should let the user specify the lib program.
16112 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16113 enable_shared_with_static_runtimes=yes
16114 ;;
16115 esac
cristy73bd4a52010-10-05 11:24:23 +000016116 ;;
16117
16118 darwin* | rhapsody*)
16119
16120
16121 archive_cmds_need_lc=no
16122 hardcode_direct=no
16123 hardcode_automatic=yes
16124 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000016125 if test "$lt_cv_ld_force_load" = "yes"; then
16126 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 +000016127
cristy0c60a692010-11-04 01:09:47 +000016128 else
16129 whole_archive_flag_spec=''
16130 fi
cristy73bd4a52010-10-05 11:24:23 +000016131 link_all_deplibs=yes
16132 allow_undefined_flag="$_lt_dar_allow_undefined"
16133 case $cc_basename in
16134 ifort*) _lt_dar_can_shared=yes ;;
16135 *) _lt_dar_can_shared=$GCC ;;
16136 esac
16137 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000016138 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000016139 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16140 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16141 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}"
16142 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}"
16143
16144 else
16145 ld_shlibs=no
16146 fi
16147
16148 ;;
16149
16150 dgux*)
16151 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16152 hardcode_libdir_flag_spec='-L$libdir'
16153 hardcode_shlibpath_var=no
16154 ;;
16155
cristy73bd4a52010-10-05 11:24:23 +000016156 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16157 # support. Future versions do this automatically, but an explicit c++rt0.o
16158 # does not break anything, and helps significantly (at the cost of a little
16159 # extra space).
16160 freebsd2.2*)
16161 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16162 hardcode_libdir_flag_spec='-R$libdir'
16163 hardcode_direct=yes
16164 hardcode_shlibpath_var=no
16165 ;;
16166
16167 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cristy99bd5232011-12-07 14:38:20 +000016168 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000016169 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16170 hardcode_direct=yes
16171 hardcode_minus_L=yes
16172 hardcode_shlibpath_var=no
16173 ;;
16174
16175 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16176 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000016177 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000016178 hardcode_libdir_flag_spec='-R$libdir'
16179 hardcode_direct=yes
16180 hardcode_shlibpath_var=no
16181 ;;
16182
16183 hpux9*)
16184 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000016185 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 +000016186 else
16187 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'
16188 fi
16189 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16190 hardcode_libdir_separator=:
16191 hardcode_direct=yes
16192
16193 # hardcode_minus_L: Not really in the search PATH,
16194 # but as the default location of the library.
16195 hardcode_minus_L=yes
16196 export_dynamic_flag_spec='${wl}-E'
16197 ;;
16198
16199 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000016200 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000016201 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 +000016202 else
16203 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16204 fi
16205 if test "$with_gnu_ld" = no; then
16206 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cristy73bd4a52010-10-05 11:24:23 +000016207 hardcode_libdir_separator=:
16208 hardcode_direct=yes
16209 hardcode_direct_absolute=yes
16210 export_dynamic_flag_spec='${wl}-E'
16211 # hardcode_minus_L: Not really in the search PATH,
16212 # but as the default location of the library.
16213 hardcode_minus_L=yes
16214 fi
16215 ;;
16216
16217 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000016218 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000016219 case $host_cpu in
16220 hppa*64*)
16221 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16222 ;;
16223 ia64*)
cristyda16f162011-02-19 23:52:17 +000016224 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000016225 ;;
16226 *)
cristyda16f162011-02-19 23:52:17 +000016227 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 +000016228 ;;
16229 esac
16230 else
16231 case $host_cpu in
16232 hppa*64*)
16233 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16234 ;;
16235 ia64*)
16236 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16237 ;;
16238 *)
cristy0c60a692010-11-04 01:09:47 +000016239
16240 # Older versions of the 11.00 compiler do not understand -b yet
16241 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16243$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016244if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016245 $as_echo_n "(cached) " >&6
16246else
16247 lt_cv_prog_compiler__b=no
16248 save_LDFLAGS="$LDFLAGS"
16249 LDFLAGS="$LDFLAGS -b"
16250 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16251 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16252 # The linker can only warn and ignore the option if not recognized
16253 # So say no if there are warnings
16254 if test -s conftest.err; then
16255 # Append any errors to the config.log.
16256 cat conftest.err 1>&5
16257 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16258 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16259 if diff conftest.exp conftest.er2 >/dev/null; then
16260 lt_cv_prog_compiler__b=yes
16261 fi
16262 else
16263 lt_cv_prog_compiler__b=yes
16264 fi
16265 fi
16266 $RM -r conftest*
16267 LDFLAGS="$save_LDFLAGS"
16268
16269fi
16270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16271$as_echo "$lt_cv_prog_compiler__b" >&6; }
16272
16273if test x"$lt_cv_prog_compiler__b" = xyes; then
16274 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16275else
16276 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16277fi
16278
cristy73bd4a52010-10-05 11:24:23 +000016279 ;;
16280 esac
16281 fi
16282 if test "$with_gnu_ld" = no; then
16283 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16284 hardcode_libdir_separator=:
16285
16286 case $host_cpu in
16287 hppa*64*|ia64*)
16288 hardcode_direct=no
16289 hardcode_shlibpath_var=no
16290 ;;
16291 *)
16292 hardcode_direct=yes
16293 hardcode_direct_absolute=yes
16294 export_dynamic_flag_spec='${wl}-E'
16295
16296 # hardcode_minus_L: Not really in the search PATH,
16297 # but as the default location of the library.
16298 hardcode_minus_L=yes
16299 ;;
16300 esac
16301 fi
16302 ;;
16303
16304 irix5* | irix6* | nonstopux*)
16305 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000016306 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 +000016307 # Try to use the -exported_symbol ld option, if it does not
16308 # work, assume that -exports_file does not work either and
16309 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000016310 # This should be the same for all languages, so no per-tag cache variable.
16311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
16312$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
16313if ${lt_cv_irix_exported_symbol+:} false; then :
16314 $as_echo_n "(cached) " >&6
16315else
16316 save_LDFLAGS="$LDFLAGS"
16317 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016319/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000016320int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000016321_ACEOF
16322if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000016323 lt_cv_irix_exported_symbol=yes
16324else
16325 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000016326fi
16327rm -f core conftest.err conftest.$ac_objext \
16328 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000016329 LDFLAGS="$save_LDFLAGS"
16330fi
16331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
16332$as_echo "$lt_cv_irix_exported_symbol" >&6; }
16333 if test "$lt_cv_irix_exported_symbol" = yes; then
16334 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'
16335 fi
cristy73bd4a52010-10-05 11:24:23 +000016336 else
cristy0c60a692010-11-04 01:09:47 +000016337 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'
16338 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 +000016339 fi
16340 archive_cmds_need_lc='no'
16341 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16342 hardcode_libdir_separator=:
16343 inherit_rpath=yes
16344 link_all_deplibs=yes
16345 ;;
16346
16347 netbsd*)
16348 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16349 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16350 else
16351 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16352 fi
16353 hardcode_libdir_flag_spec='-R$libdir'
16354 hardcode_direct=yes
16355 hardcode_shlibpath_var=no
16356 ;;
16357
16358 newsos6)
16359 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16360 hardcode_direct=yes
16361 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16362 hardcode_libdir_separator=:
16363 hardcode_shlibpath_var=no
16364 ;;
16365
16366 *nto* | *qnx*)
16367 ;;
16368
16369 openbsd*)
16370 if test -f /usr/libexec/ld.so; then
16371 hardcode_direct=yes
16372 hardcode_shlibpath_var=no
16373 hardcode_direct_absolute=yes
16374 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16375 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16376 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16377 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16378 export_dynamic_flag_spec='${wl}-E'
16379 else
16380 case $host_os in
16381 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16382 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16383 hardcode_libdir_flag_spec='-R$libdir'
16384 ;;
16385 *)
16386 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16387 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16388 ;;
16389 esac
16390 fi
16391 else
16392 ld_shlibs=no
16393 fi
16394 ;;
16395
16396 os2*)
16397 hardcode_libdir_flag_spec='-L$libdir'
16398 hardcode_minus_L=yes
16399 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000016400 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 +000016401 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16402 ;;
16403
16404 osf3*)
16405 if test "$GCC" = yes; then
16406 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000016407 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 +000016408 else
16409 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000016410 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 +000016411 fi
16412 archive_cmds_need_lc='no'
16413 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16414 hardcode_libdir_separator=:
16415 ;;
16416
16417 osf4* | osf5*) # as osf3* with the addition of -msym flag
16418 if test "$GCC" = yes; then
16419 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000016420 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 +000016421 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16422 else
16423 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000016424 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 +000016425 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 +000016426 $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 +000016427
16428 # Both c and cxx compiler support -rpath directly
16429 hardcode_libdir_flag_spec='-rpath $libdir'
16430 fi
16431 archive_cmds_need_lc='no'
16432 hardcode_libdir_separator=:
16433 ;;
16434
16435 solaris*)
16436 no_undefined_flag=' -z defs'
16437 if test "$GCC" = yes; then
16438 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000016439 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 +000016440 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 +000016441 $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 +000016442 else
16443 case `$CC -V 2>&1` in
16444 *"Compilers 5.0"*)
16445 wlarc=''
16446 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16447 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16448 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16449 ;;
16450 *)
16451 wlarc='${wl}'
16452 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16453 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16454 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16455 ;;
16456 esac
16457 fi
16458 hardcode_libdir_flag_spec='-R$libdir'
16459 hardcode_shlibpath_var=no
16460 case $host_os in
16461 solaris2.[0-5] | solaris2.[0-5].*) ;;
16462 *)
16463 # The compiler driver will combine and reorder linker options,
16464 # but understands `-z linker_flag'. GCC discards it without `$wl',
16465 # but is careful enough not to reorder.
16466 # Supported since Solaris 2.6 (maybe 2.5.1?)
16467 if test "$GCC" = yes; then
16468 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16469 else
16470 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16471 fi
16472 ;;
16473 esac
16474 link_all_deplibs=yes
16475 ;;
16476
16477 sunos4*)
16478 if test "x$host_vendor" = xsequent; then
16479 # Use $CC to link under sequent, because it throws in some extra .o
16480 # files that make .init and .fini sections work.
16481 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16482 else
16483 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16484 fi
16485 hardcode_libdir_flag_spec='-L$libdir'
16486 hardcode_direct=yes
16487 hardcode_minus_L=yes
16488 hardcode_shlibpath_var=no
16489 ;;
16490
16491 sysv4)
16492 case $host_vendor in
16493 sni)
16494 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16495 hardcode_direct=yes # is this really true???
16496 ;;
16497 siemens)
16498 ## LD is ld it makes a PLAMLIB
16499 ## CC just makes a GrossModule.
16500 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16501 reload_cmds='$CC -r -o $output$reload_objs'
16502 hardcode_direct=no
16503 ;;
16504 motorola)
16505 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16506 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16507 ;;
16508 esac
16509 runpath_var='LD_RUN_PATH'
16510 hardcode_shlibpath_var=no
16511 ;;
16512
16513 sysv4.3*)
16514 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16515 hardcode_shlibpath_var=no
16516 export_dynamic_flag_spec='-Bexport'
16517 ;;
16518
16519 sysv4*MP*)
16520 if test -d /usr/nec; then
16521 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16522 hardcode_shlibpath_var=no
16523 runpath_var=LD_RUN_PATH
16524 hardcode_runpath_var=yes
16525 ld_shlibs=yes
16526 fi
16527 ;;
16528
16529 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16530 no_undefined_flag='${wl}-z,text'
16531 archive_cmds_need_lc=no
16532 hardcode_shlibpath_var=no
16533 runpath_var='LD_RUN_PATH'
16534
16535 if test "$GCC" = yes; then
16536 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16537 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16538 else
16539 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16540 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16541 fi
16542 ;;
16543
16544 sysv5* | sco3.2v5* | sco5v6*)
16545 # Note: We can NOT use -z defs as we might desire, because we do not
16546 # link with -lc, and that would cause any symbols used from libc to
16547 # always be unresolved, which means just about no library would
16548 # ever link correctly. If we're not using GNU ld we use -z text
16549 # though, which does catch some bad symbols but isn't as heavy-handed
16550 # as -z defs.
16551 no_undefined_flag='${wl}-z,text'
16552 allow_undefined_flag='${wl}-z,nodefs'
16553 archive_cmds_need_lc=no
16554 hardcode_shlibpath_var=no
16555 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16556 hardcode_libdir_separator=':'
16557 link_all_deplibs=yes
16558 export_dynamic_flag_spec='${wl}-Bexport'
16559 runpath_var='LD_RUN_PATH'
16560
16561 if test "$GCC" = yes; then
16562 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16563 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16564 else
16565 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16566 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16567 fi
16568 ;;
16569
16570 uts4*)
16571 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16572 hardcode_libdir_flag_spec='-L$libdir'
16573 hardcode_shlibpath_var=no
16574 ;;
16575
16576 *)
16577 ld_shlibs=no
16578 ;;
16579 esac
16580
16581 if test x$host_vendor = xsni; then
16582 case $host in
16583 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16584 export_dynamic_flag_spec='${wl}-Blargedynsym'
16585 ;;
16586 esac
16587 fi
16588 fi
16589
16590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16591$as_echo "$ld_shlibs" >&6; }
16592test "$ld_shlibs" = no && can_build_shared=no
16593
16594with_gnu_ld=$with_gnu_ld
16595
16596
16597
16598
16599
16600
16601
16602
16603
16604
16605
16606
16607
16608
16609
16610#
16611# Do we need to explicitly link libc?
16612#
16613case "x$archive_cmds_need_lc" in
16614x|xyes)
16615 # Assume -lc should be added
16616 archive_cmds_need_lc=yes
16617
16618 if test "$enable_shared" = yes && test "$GCC" = yes; then
16619 case $archive_cmds in
16620 *'~'*)
16621 # FIXME: we may have to deal with multi-command sequences.
16622 ;;
16623 '$CC '*)
16624 # Test whether the compiler implicitly links with -lc since on some
16625 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16626 # to ld, don't add -lc before -lgcc.
16627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16628$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016629if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016630 $as_echo_n "(cached) " >&6
16631else
16632 $RM conftest*
16633 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016634
cristy0c60a692010-11-04 01:09:47 +000016635 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000016636 (eval $ac_compile) 2>&5
16637 ac_status=$?
16638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16639 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000016640 soname=conftest
16641 lib=conftest
16642 libobjs=conftest.$ac_objext
16643 deplibs=
16644 wl=$lt_prog_compiler_wl
16645 pic_flag=$lt_prog_compiler_pic
16646 compiler_flags=-v
16647 linker_flags=-v
16648 verstring=
16649 output_objdir=.
16650 libname=conftest
16651 lt_save_allow_undefined_flag=$allow_undefined_flag
16652 allow_undefined_flag=
16653 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 +000016654 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16655 ac_status=$?
16656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16657 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000016658 then
16659 lt_cv_archive_cmds_need_lc=no
16660 else
16661 lt_cv_archive_cmds_need_lc=yes
16662 fi
16663 allow_undefined_flag=$lt_save_allow_undefined_flag
16664 else
16665 cat conftest.err 1>&5
16666 fi
16667 $RM conftest*
16668
16669fi
16670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16671$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16672 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000016673 ;;
16674 esac
16675 fi
16676 ;;
16677esac
16678
16679
16680
16681
16682
16683
16684
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759
16760
16761
16762
16763
16764
16765
16766
16767
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798
16799
16800
16801
16802
16803
16804
16805
16806
16807
16808
16809
16810
16811
16812
16813
16814
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827
16828
16829
cristy73bd4a52010-10-05 11:24:23 +000016830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16831$as_echo_n "checking dynamic linker characteristics... " >&6; }
16832
16833if test "$GCC" = yes; then
16834 case $host_os in
16835 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16836 *) lt_awk_arg="/^libraries:/" ;;
16837 esac
cristy0c60a692010-11-04 01:09:47 +000016838 case $host_os in
16839 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16840 *) lt_sed_strip_eq="s,=/,/,g" ;;
16841 esac
16842 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16843 case $lt_search_path_spec in
16844 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000016845 # if the path contains ";" then we assume it to be the separator
16846 # otherwise default to the standard path separator (i.e. ":") - it is
16847 # assumed that no part of a normal pathname contains ";" but that should
16848 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000016849 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16850 ;;
16851 *)
16852 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16853 ;;
16854 esac
cristy73bd4a52010-10-05 11:24:23 +000016855 # Ok, now we have the path, separated by spaces, we can step through it
16856 # and add multilib dir if necessary.
16857 lt_tmp_lt_search_path_spec=
16858 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16859 for lt_sys_path in $lt_search_path_spec; do
16860 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16861 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16862 else
16863 test -d "$lt_sys_path" && \
16864 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16865 fi
16866 done
cristy0c60a692010-11-04 01:09:47 +000016867 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000016868BEGIN {RS=" "; FS="/|\n";} {
16869 lt_foo="";
16870 lt_count=0;
16871 for (lt_i = NF; lt_i > 0; lt_i--) {
16872 if ($lt_i != "" && $lt_i != ".") {
16873 if ($lt_i == "..") {
16874 lt_count++;
16875 } else {
16876 if (lt_count == 0) {
16877 lt_foo="/" $lt_i lt_foo;
16878 } else {
16879 lt_count--;
16880 }
16881 }
16882 }
16883 }
16884 if (lt_foo != "") { lt_freq[lt_foo]++; }
16885 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16886}'`
cristy0c60a692010-11-04 01:09:47 +000016887 # AWK program above erroneously prepends '/' to C:/dos/paths
16888 # for these hosts.
16889 case $host_os in
16890 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16891 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16892 esac
16893 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000016894else
16895 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16896fi
16897library_names_spec=
16898libname_spec='lib$name'
16899soname_spec=
16900shrext_cmds=".so"
16901postinstall_cmds=
16902postuninstall_cmds=
16903finish_cmds=
16904finish_eval=
16905shlibpath_var=
16906shlibpath_overrides_runpath=unknown
16907version_type=none
16908dynamic_linker="$host_os ld.so"
16909sys_lib_dlsearch_path_spec="/lib /usr/lib"
16910need_lib_prefix=unknown
16911hardcode_into_libs=no
16912
16913# when you set need_version to no, make sure it does not cause -set_version
16914# flags to be left without arguments
16915need_version=unknown
16916
16917case $host_os in
16918aix3*)
cristy99bd5232011-12-07 14:38:20 +000016919 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016920 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16921 shlibpath_var=LIBPATH
16922
16923 # AIX 3 has no versioning support, so we append a major version to the name.
16924 soname_spec='${libname}${release}${shared_ext}$major'
16925 ;;
16926
16927aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000016928 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016929 need_lib_prefix=no
16930 need_version=no
16931 hardcode_into_libs=yes
16932 if test "$host_cpu" = ia64; then
16933 # AIX 5 supports IA64
16934 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16935 shlibpath_var=LD_LIBRARY_PATH
16936 else
16937 # With GCC up to 2.95.x, collect2 would create an import file
16938 # for dependence libraries. The import file would start with
16939 # the line `#! .'. This would cause the generated library to
16940 # depend on `.', always an invalid library. This was fixed in
16941 # development snapshots of GCC prior to 3.0.
16942 case $host_os in
16943 aix4 | aix4.[01] | aix4.[01].*)
16944 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16945 echo ' yes '
16946 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16947 :
16948 else
16949 can_build_shared=no
16950 fi
16951 ;;
16952 esac
16953 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16954 # soname into executable. Probably we can add versioning support to
16955 # collect2, so additional links can be useful in future.
16956 if test "$aix_use_runtimelinking" = yes; then
16957 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16958 # instead of lib<name>.a to let people know that these are not
16959 # typical AIX shared libraries.
16960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16961 else
16962 # We preserve .a as extension for shared libraries through AIX4.2
16963 # and later when we are not doing run time linking.
16964 library_names_spec='${libname}${release}.a $libname.a'
16965 soname_spec='${libname}${release}${shared_ext}$major'
16966 fi
16967 shlibpath_var=LIBPATH
16968 fi
16969 ;;
16970
16971amigaos*)
16972 case $host_cpu in
16973 powerpc)
16974 # Since July 2007 AmigaOS4 officially supports .so libraries.
16975 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16977 ;;
16978 m68k)
16979 library_names_spec='$libname.ixlibrary $libname.a'
16980 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000016981 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 +000016982 ;;
16983 esac
16984 ;;
16985
16986beos*)
16987 library_names_spec='${libname}${shared_ext}'
16988 dynamic_linker="$host_os ld.so"
16989 shlibpath_var=LIBRARY_PATH
16990 ;;
16991
16992bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000016993 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016994 need_version=no
16995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16996 soname_spec='${libname}${release}${shared_ext}$major'
16997 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16998 shlibpath_var=LD_LIBRARY_PATH
16999 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17000 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17001 # the default ld.so.conf also contains /usr/contrib/lib and
17002 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17003 # libtool to hard-code these into programs
17004 ;;
17005
17006cygwin* | mingw* | pw32* | cegcc*)
17007 version_type=windows
17008 shrext_cmds=".dll"
17009 need_version=no
17010 need_lib_prefix=no
17011
cristyda16f162011-02-19 23:52:17 +000017012 case $GCC,$cc_basename in
17013 yes,*)
17014 # gcc
cristy73bd4a52010-10-05 11:24:23 +000017015 library_names_spec='$libname.dll.a'
17016 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17017 postinstall_cmds='base_file=`basename \${file}`~
17018 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17019 dldir=$destdir/`dirname \$dlpath`~
17020 test -d \$dldir || mkdir -p \$dldir~
17021 $install_prog $dir/$dlname \$dldir/$dlname~
17022 chmod a+x \$dldir/$dlname~
17023 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17024 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17025 fi'
17026 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17027 dlpath=$dir/\$dldll~
17028 $RM \$dlpath'
17029 shlibpath_overrides_runpath=yes
17030
17031 case $host_os in
17032 cygwin*)
17033 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17034 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000017035
17036 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000017037 ;;
17038 mingw* | cegcc*)
17039 # MinGW DLLs use traditional 'lib' prefix
17040 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000017041 ;;
17042 pw32*)
17043 # pw32 DLLs use 'pw' prefix rather than 'lib'
17044 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17045 ;;
17046 esac
cristyda16f162011-02-19 23:52:17 +000017047 dynamic_linker='Win32 ld.exe'
17048 ;;
17049
17050 *,cl*)
17051 # Native MSVC
17052 libname_spec='$name'
17053 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17054 library_names_spec='${libname}.dll.lib'
17055
17056 case $build_os in
17057 mingw*)
17058 sys_lib_search_path_spec=
17059 lt_save_ifs=$IFS
17060 IFS=';'
17061 for lt_path in $LIB
17062 do
17063 IFS=$lt_save_ifs
17064 # Let DOS variable expansion print the short 8.3 style file name.
17065 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17066 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17067 done
17068 IFS=$lt_save_ifs
17069 # Convert to MSYS style.
17070 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17071 ;;
17072 cygwin*)
17073 # Convert to unix form, then to dos form, then back to unix form
17074 # but this time dos style (no spaces!) so that the unix form looks
17075 # like /cygdrive/c/PROGRA~1:/cygdr...
17076 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17077 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17078 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17079 ;;
17080 *)
17081 sys_lib_search_path_spec="$LIB"
17082 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17083 # It is most probably a Windows format PATH.
17084 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17085 else
17086 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17087 fi
17088 # FIXME: find the short name or the path components, as spaces are
17089 # common. (e.g. "Program Files" -> "PROGRA~1")
17090 ;;
17091 esac
17092
17093 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17094 postinstall_cmds='base_file=`basename \${file}`~
17095 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17096 dldir=$destdir/`dirname \$dlpath`~
17097 test -d \$dldir || mkdir -p \$dldir~
17098 $install_prog $dir/$dlname \$dldir/$dlname'
17099 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17100 dlpath=$dir/\$dldll~
17101 $RM \$dlpath'
17102 shlibpath_overrides_runpath=yes
17103 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000017104 ;;
17105
17106 *)
cristyda16f162011-02-19 23:52:17 +000017107 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000017108 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000017109 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000017110 ;;
17111 esac
cristy73bd4a52010-10-05 11:24:23 +000017112 # FIXME: first we should search . and the directory the executable is in
17113 shlibpath_var=PATH
17114 ;;
17115
17116darwin* | rhapsody*)
17117 dynamic_linker="$host_os dyld"
17118 version_type=darwin
17119 need_lib_prefix=no
17120 need_version=no
17121 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17122 soname_spec='${libname}${release}${major}$shared_ext'
17123 shlibpath_overrides_runpath=yes
17124 shlibpath_var=DYLD_LIBRARY_PATH
17125 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17126
17127 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17128 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17129 ;;
17130
17131dgux*)
cristy99bd5232011-12-07 14:38:20 +000017132 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017133 need_lib_prefix=no
17134 need_version=no
17135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17136 soname_spec='${libname}${release}${shared_ext}$major'
17137 shlibpath_var=LD_LIBRARY_PATH
17138 ;;
17139
cristy73bd4a52010-10-05 11:24:23 +000017140freebsd* | dragonfly*)
17141 # DragonFly does not have aout. When/if they implement a new
17142 # versioning mechanism, adjust this.
17143 if test -x /usr/bin/objformat; then
17144 objformat=`/usr/bin/objformat`
17145 else
17146 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000017147 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000017148 *) objformat=elf ;;
17149 esac
17150 fi
17151 version_type=freebsd-$objformat
17152 case $version_type in
17153 freebsd-elf*)
17154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17155 need_version=no
17156 need_lib_prefix=no
17157 ;;
17158 freebsd-*)
17159 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17160 need_version=yes
17161 ;;
17162 esac
17163 shlibpath_var=LD_LIBRARY_PATH
17164 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000017165 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000017166 shlibpath_overrides_runpath=yes
17167 ;;
17168 freebsd3.[01]* | freebsdelf3.[01]*)
17169 shlibpath_overrides_runpath=yes
17170 hardcode_into_libs=yes
17171 ;;
17172 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17173 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17174 shlibpath_overrides_runpath=no
17175 hardcode_into_libs=yes
17176 ;;
17177 *) # from 4.6 on, and DragonFly
17178 shlibpath_overrides_runpath=yes
17179 hardcode_into_libs=yes
17180 ;;
17181 esac
17182 ;;
17183
17184gnu*)
cristy99bd5232011-12-07 14:38:20 +000017185 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017186 need_lib_prefix=no
17187 need_version=no
17188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17189 soname_spec='${libname}${release}${shared_ext}$major'
17190 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000017191 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000017192 hardcode_into_libs=yes
17193 ;;
17194
cristy0c60a692010-11-04 01:09:47 +000017195haiku*)
cristy99bd5232011-12-07 14:38:20 +000017196 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000017197 need_lib_prefix=no
17198 need_version=no
17199 dynamic_linker="$host_os runtime_loader"
17200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17201 soname_spec='${libname}${release}${shared_ext}$major'
17202 shlibpath_var=LIBRARY_PATH
17203 shlibpath_overrides_runpath=yes
17204 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17205 hardcode_into_libs=yes
17206 ;;
17207
cristy73bd4a52010-10-05 11:24:23 +000017208hpux9* | hpux10* | hpux11*)
17209 # Give a soname corresponding to the major version so that dld.sl refuses to
17210 # link against other versions.
17211 version_type=sunos
17212 need_lib_prefix=no
17213 need_version=no
17214 case $host_cpu in
17215 ia64*)
17216 shrext_cmds='.so'
17217 hardcode_into_libs=yes
17218 dynamic_linker="$host_os dld.so"
17219 shlibpath_var=LD_LIBRARY_PATH
17220 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17222 soname_spec='${libname}${release}${shared_ext}$major'
17223 if test "X$HPUX_IA64_MODE" = X32; then
17224 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17225 else
17226 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17227 fi
17228 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17229 ;;
17230 hppa*64*)
17231 shrext_cmds='.sl'
17232 hardcode_into_libs=yes
17233 dynamic_linker="$host_os dld.sl"
17234 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17235 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17237 soname_spec='${libname}${release}${shared_ext}$major'
17238 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17239 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17240 ;;
17241 *)
17242 shrext_cmds='.sl'
17243 dynamic_linker="$host_os dld.sl"
17244 shlibpath_var=SHLIB_PATH
17245 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17247 soname_spec='${libname}${release}${shared_ext}$major'
17248 ;;
17249 esac
cristy0c60a692010-11-04 01:09:47 +000017250 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000017251 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000017252 # or fails outright, so override atomically:
17253 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000017254 ;;
17255
17256interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000017257 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017258 need_lib_prefix=no
17259 need_version=no
17260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17261 soname_spec='${libname}${release}${shared_ext}$major'
17262 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17263 shlibpath_var=LD_LIBRARY_PATH
17264 shlibpath_overrides_runpath=no
17265 hardcode_into_libs=yes
17266 ;;
17267
17268irix5* | irix6* | nonstopux*)
17269 case $host_os in
17270 nonstopux*) version_type=nonstopux ;;
17271 *)
17272 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000017273 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017274 else
17275 version_type=irix
17276 fi ;;
17277 esac
17278 need_lib_prefix=no
17279 need_version=no
17280 soname_spec='${libname}${release}${shared_ext}$major'
17281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17282 case $host_os in
17283 irix5* | nonstopux*)
17284 libsuff= shlibsuff=
17285 ;;
17286 *)
17287 case $LD in # libtool.m4 will add one of these switches to LD
17288 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17289 libsuff= shlibsuff= libmagic=32-bit;;
17290 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17291 libsuff=32 shlibsuff=N32 libmagic=N32;;
17292 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17293 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17294 *) libsuff= shlibsuff= libmagic=never-match;;
17295 esac
17296 ;;
17297 esac
17298 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17299 shlibpath_overrides_runpath=no
17300 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17301 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17302 hardcode_into_libs=yes
17303 ;;
17304
17305# No shared lib support for Linux oldld, aout, or coff.
17306linux*oldld* | linux*aout* | linux*coff*)
17307 dynamic_linker=no
17308 ;;
17309
cristy99bd5232011-12-07 14:38:20 +000017310# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000017311linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000017312 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017313 need_lib_prefix=no
17314 need_version=no
17315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17316 soname_spec='${libname}${release}${shared_ext}$major'
17317 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17318 shlibpath_var=LD_LIBRARY_PATH
17319 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000017320
cristy73bd4a52010-10-05 11:24:23 +000017321 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000017322 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000017323 $as_echo_n "(cached) " >&6
17324else
17325 lt_cv_shlibpath_overrides_runpath=no
17326 save_LDFLAGS=$LDFLAGS
17327 save_libdir=$libdir
17328 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17329 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017331/* end confdefs.h. */
17332
17333int
17334main ()
17335{
17336
17337 ;
17338 return 0;
17339}
17340_ACEOF
17341if ac_fn_c_try_link "$LINENO"; then :
17342 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000017343 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000017344fi
17345fi
17346rm -f core conftest.err conftest.$ac_objext \
17347 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017348 LDFLAGS=$save_LDFLAGS
17349 libdir=$save_libdir
17350
17351fi
17352
17353 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000017354
17355 # This implies no fast_install, which is unacceptable.
17356 # Some rework will be needed to allow for fast_install
17357 # before this can be enabled.
17358 hardcode_into_libs=yes
17359
17360 # Add ABI-specific directories to the system library path.
17361 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
17362
17363 # Append ld.so.conf contents to the search path
17364 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000017365 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 +000017366 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000017367
cristy73bd4a52010-10-05 11:24:23 +000017368 fi
17369
17370 # We used to test for /lib/ld.so.1 and disable shared libraries on
17371 # powerpc, because MkLinux only supported shared libraries with the
17372 # GNU dynamic linker. Since this was broken with cross compilers,
17373 # most powerpc-linux boxes support dynamic linking these days and
17374 # people can always --disable-shared, the test was removed, and we
17375 # assume the GNU/Linux dynamic linker is in use.
17376 dynamic_linker='GNU/Linux ld.so'
17377 ;;
17378
17379netbsd*)
17380 version_type=sunos
17381 need_lib_prefix=no
17382 need_version=no
17383 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17385 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17386 dynamic_linker='NetBSD (a.out) ld.so'
17387 else
17388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17389 soname_spec='${libname}${release}${shared_ext}$major'
17390 dynamic_linker='NetBSD ld.elf_so'
17391 fi
17392 shlibpath_var=LD_LIBRARY_PATH
17393 shlibpath_overrides_runpath=yes
17394 hardcode_into_libs=yes
17395 ;;
17396
17397newsos6)
cristy99bd5232011-12-07 14:38:20 +000017398 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17400 shlibpath_var=LD_LIBRARY_PATH
17401 shlibpath_overrides_runpath=yes
17402 ;;
17403
17404*nto* | *qnx*)
17405 version_type=qnx
17406 need_lib_prefix=no
17407 need_version=no
17408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17409 soname_spec='${libname}${release}${shared_ext}$major'
17410 shlibpath_var=LD_LIBRARY_PATH
17411 shlibpath_overrides_runpath=no
17412 hardcode_into_libs=yes
17413 dynamic_linker='ldqnx.so'
17414 ;;
17415
17416openbsd*)
17417 version_type=sunos
17418 sys_lib_dlsearch_path_spec="/usr/lib"
17419 need_lib_prefix=no
17420 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17421 case $host_os in
17422 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17423 *) need_version=no ;;
17424 esac
17425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17426 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17427 shlibpath_var=LD_LIBRARY_PATH
17428 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17429 case $host_os in
17430 openbsd2.[89] | openbsd2.[89].*)
17431 shlibpath_overrides_runpath=no
17432 ;;
17433 *)
17434 shlibpath_overrides_runpath=yes
17435 ;;
17436 esac
17437 else
17438 shlibpath_overrides_runpath=yes
17439 fi
17440 ;;
17441
17442os2*)
17443 libname_spec='$name'
17444 shrext_cmds=".dll"
17445 need_lib_prefix=no
17446 library_names_spec='$libname${shared_ext} $libname.a'
17447 dynamic_linker='OS/2 ld.exe'
17448 shlibpath_var=LIBPATH
17449 ;;
17450
17451osf3* | osf4* | osf5*)
17452 version_type=osf
17453 need_lib_prefix=no
17454 need_version=no
17455 soname_spec='${libname}${release}${shared_ext}$major'
17456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17457 shlibpath_var=LD_LIBRARY_PATH
17458 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17459 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17460 ;;
17461
17462rdos*)
17463 dynamic_linker=no
17464 ;;
17465
17466solaris*)
cristy99bd5232011-12-07 14:38:20 +000017467 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017468 need_lib_prefix=no
17469 need_version=no
17470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17471 soname_spec='${libname}${release}${shared_ext}$major'
17472 shlibpath_var=LD_LIBRARY_PATH
17473 shlibpath_overrides_runpath=yes
17474 hardcode_into_libs=yes
17475 # ldd complains unless libraries are executable
17476 postinstall_cmds='chmod +x $lib'
17477 ;;
17478
17479sunos4*)
17480 version_type=sunos
17481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17482 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17483 shlibpath_var=LD_LIBRARY_PATH
17484 shlibpath_overrides_runpath=yes
17485 if test "$with_gnu_ld" = yes; then
17486 need_lib_prefix=no
17487 fi
17488 need_version=yes
17489 ;;
17490
17491sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000017492 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17494 soname_spec='${libname}${release}${shared_ext}$major'
17495 shlibpath_var=LD_LIBRARY_PATH
17496 case $host_vendor in
17497 sni)
17498 shlibpath_overrides_runpath=no
17499 need_lib_prefix=no
17500 runpath_var=LD_RUN_PATH
17501 ;;
17502 siemens)
17503 need_lib_prefix=no
17504 ;;
17505 motorola)
17506 need_lib_prefix=no
17507 need_version=no
17508 shlibpath_overrides_runpath=no
17509 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17510 ;;
17511 esac
17512 ;;
17513
17514sysv4*MP*)
17515 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000017516 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017517 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17518 soname_spec='$libname${shared_ext}.$major'
17519 shlibpath_var=LD_LIBRARY_PATH
17520 fi
17521 ;;
17522
17523sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17524 version_type=freebsd-elf
17525 need_lib_prefix=no
17526 need_version=no
17527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17528 soname_spec='${libname}${release}${shared_ext}$major'
17529 shlibpath_var=LD_LIBRARY_PATH
17530 shlibpath_overrides_runpath=yes
17531 hardcode_into_libs=yes
17532 if test "$with_gnu_ld" = yes; then
17533 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17534 else
17535 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17536 case $host_os in
17537 sco3.2v5*)
17538 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17539 ;;
17540 esac
17541 fi
17542 sys_lib_dlsearch_path_spec='/usr/lib'
17543 ;;
17544
17545tpf*)
17546 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000017547 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017548 need_lib_prefix=no
17549 need_version=no
17550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17551 shlibpath_var=LD_LIBRARY_PATH
17552 shlibpath_overrides_runpath=no
17553 hardcode_into_libs=yes
17554 ;;
17555
17556uts4*)
cristy99bd5232011-12-07 14:38:20 +000017557 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17559 soname_spec='${libname}${release}${shared_ext}$major'
17560 shlibpath_var=LD_LIBRARY_PATH
17561 ;;
17562
17563*)
17564 dynamic_linker=no
17565 ;;
17566esac
17567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17568$as_echo "$dynamic_linker" >&6; }
17569test "$dynamic_linker" = no && can_build_shared=no
17570
17571variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17572if test "$GCC" = yes; then
17573 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17574fi
17575
17576if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17577 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17578fi
17579if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17580 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17581fi
17582
17583
17584
17585
17586
17587
17588
17589
17590
17591
17592
17593
17594
17595
17596
17597
17598
17599
17600
17601
17602
17603
17604
17605
17606
17607
17608
17609
17610
17611
17612
17613
17614
17615
17616
17617
17618
17619
17620
17621
17622
17623
17624
17625
17626
17627
17628
17629
17630
17631
17632
17633
17634
17635
17636
17637
17638
17639
17640
17641
17642
17643
17644
17645
17646
17647
17648
17649
17650
17651
17652
17653
17654
17655
17656
17657
17658
17659
17660
17661
17662
17663
17664
17665
17666
17667
17668
cristy0c60a692010-11-04 01:09:47 +000017669
17670
17671
17672
17673
cristy73bd4a52010-10-05 11:24:23 +000017674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17675$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17676hardcode_action=
17677if test -n "$hardcode_libdir_flag_spec" ||
17678 test -n "$runpath_var" ||
17679 test "X$hardcode_automatic" = "Xyes" ; then
17680
17681 # We can hardcode non-existent directories.
17682 if test "$hardcode_direct" != no &&
17683 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17684 # have to relink, otherwise we might link with an installed library
17685 # when we should be linking with a yet-to-be-installed one
17686 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17687 test "$hardcode_minus_L" != no; then
17688 # Linking always hardcodes the temporary library directory.
17689 hardcode_action=relink
17690 else
17691 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17692 hardcode_action=immediate
17693 fi
17694else
17695 # We cannot hardcode anything, or else we can only hardcode existing
17696 # directories.
17697 hardcode_action=unsupported
17698fi
17699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17700$as_echo "$hardcode_action" >&6; }
17701
17702if test "$hardcode_action" = relink ||
17703 test "$inherit_rpath" = yes; then
17704 # Fast installation is not supported
17705 enable_fast_install=no
17706elif test "$shlibpath_overrides_runpath" = yes ||
17707 test "$enable_shared" = no; then
17708 # Fast installation is not necessary
17709 enable_fast_install=needless
17710fi
17711
17712
17713
17714
17715
17716
17717 if test "x$enable_dlopen" != xyes; then
17718 enable_dlopen=unknown
17719 enable_dlopen_self=unknown
17720 enable_dlopen_self_static=unknown
17721else
17722 lt_cv_dlopen=no
17723 lt_cv_dlopen_libs=
17724
17725 case $host_os in
17726 beos*)
17727 lt_cv_dlopen="load_add_on"
17728 lt_cv_dlopen_libs=
17729 lt_cv_dlopen_self=yes
17730 ;;
17731
17732 mingw* | pw32* | cegcc*)
17733 lt_cv_dlopen="LoadLibrary"
17734 lt_cv_dlopen_libs=
17735 ;;
17736
17737 cygwin*)
17738 lt_cv_dlopen="dlopen"
17739 lt_cv_dlopen_libs=
17740 ;;
17741
17742 darwin*)
17743 # if libdl is installed we need to link against it
17744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17745$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017746if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017747 $as_echo_n "(cached) " >&6
17748else
17749 ac_check_lib_save_LIBS=$LIBS
17750LIBS="-ldl $LIBS"
17751cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17752/* end confdefs.h. */
17753
17754/* Override any GCC internal prototype to avoid an error.
17755 Use char because int might match the return type of a GCC
17756 builtin and then its argument prototype would still apply. */
17757#ifdef __cplusplus
17758extern "C"
17759#endif
17760char dlopen ();
17761int
17762main ()
17763{
17764return dlopen ();
17765 ;
17766 return 0;
17767}
17768_ACEOF
17769if ac_fn_c_try_link "$LINENO"; then :
17770 ac_cv_lib_dl_dlopen=yes
17771else
17772 ac_cv_lib_dl_dlopen=no
17773fi
17774rm -f core conftest.err conftest.$ac_objext \
17775 conftest$ac_exeext conftest.$ac_ext
17776LIBS=$ac_check_lib_save_LIBS
17777fi
17778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17779$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017780if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017781 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17782else
17783
17784 lt_cv_dlopen="dyld"
17785 lt_cv_dlopen_libs=
17786 lt_cv_dlopen_self=yes
17787
17788fi
17789
17790 ;;
17791
17792 *)
17793 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000017794if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017795 lt_cv_dlopen="shl_load"
17796else
17797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17798$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017799if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017800 $as_echo_n "(cached) " >&6
17801else
17802 ac_check_lib_save_LIBS=$LIBS
17803LIBS="-ldld $LIBS"
17804cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17805/* end confdefs.h. */
17806
17807/* Override any GCC internal prototype to avoid an error.
17808 Use char because int might match the return type of a GCC
17809 builtin and then its argument prototype would still apply. */
17810#ifdef __cplusplus
17811extern "C"
17812#endif
17813char shl_load ();
17814int
17815main ()
17816{
17817return shl_load ();
17818 ;
17819 return 0;
17820}
17821_ACEOF
17822if ac_fn_c_try_link "$LINENO"; then :
17823 ac_cv_lib_dld_shl_load=yes
17824else
17825 ac_cv_lib_dld_shl_load=no
17826fi
17827rm -f core conftest.err conftest.$ac_objext \
17828 conftest$ac_exeext conftest.$ac_ext
17829LIBS=$ac_check_lib_save_LIBS
17830fi
17831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17832$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000017833if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017834 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17835else
17836 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000017837if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017838 lt_cv_dlopen="dlopen"
17839else
17840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17841$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017842if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017843 $as_echo_n "(cached) " >&6
17844else
17845 ac_check_lib_save_LIBS=$LIBS
17846LIBS="-ldl $LIBS"
17847cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17848/* end confdefs.h. */
17849
17850/* Override any GCC internal prototype to avoid an error.
17851 Use char because int might match the return type of a GCC
17852 builtin and then its argument prototype would still apply. */
17853#ifdef __cplusplus
17854extern "C"
17855#endif
17856char dlopen ();
17857int
17858main ()
17859{
17860return dlopen ();
17861 ;
17862 return 0;
17863}
17864_ACEOF
17865if ac_fn_c_try_link "$LINENO"; then :
17866 ac_cv_lib_dl_dlopen=yes
17867else
17868 ac_cv_lib_dl_dlopen=no
17869fi
17870rm -f core conftest.err conftest.$ac_objext \
17871 conftest$ac_exeext conftest.$ac_ext
17872LIBS=$ac_check_lib_save_LIBS
17873fi
17874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17875$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017876if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017877 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17878else
17879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17880$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017881if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017882 $as_echo_n "(cached) " >&6
17883else
17884 ac_check_lib_save_LIBS=$LIBS
17885LIBS="-lsvld $LIBS"
17886cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17887/* end confdefs.h. */
17888
17889/* Override any GCC internal prototype to avoid an error.
17890 Use char because int might match the return type of a GCC
17891 builtin and then its argument prototype would still apply. */
17892#ifdef __cplusplus
17893extern "C"
17894#endif
17895char dlopen ();
17896int
17897main ()
17898{
17899return dlopen ();
17900 ;
17901 return 0;
17902}
17903_ACEOF
17904if ac_fn_c_try_link "$LINENO"; then :
17905 ac_cv_lib_svld_dlopen=yes
17906else
17907 ac_cv_lib_svld_dlopen=no
17908fi
17909rm -f core conftest.err conftest.$ac_objext \
17910 conftest$ac_exeext conftest.$ac_ext
17911LIBS=$ac_check_lib_save_LIBS
17912fi
17913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17914$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017915if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017916 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17917else
17918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17919$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017920if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017921 $as_echo_n "(cached) " >&6
17922else
17923 ac_check_lib_save_LIBS=$LIBS
17924LIBS="-ldld $LIBS"
17925cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17926/* end confdefs.h. */
17927
17928/* Override any GCC internal prototype to avoid an error.
17929 Use char because int might match the return type of a GCC
17930 builtin and then its argument prototype would still apply. */
17931#ifdef __cplusplus
17932extern "C"
17933#endif
17934char dld_link ();
17935int
17936main ()
17937{
17938return dld_link ();
17939 ;
17940 return 0;
17941}
17942_ACEOF
17943if ac_fn_c_try_link "$LINENO"; then :
17944 ac_cv_lib_dld_dld_link=yes
17945else
17946 ac_cv_lib_dld_dld_link=no
17947fi
17948rm -f core conftest.err conftest.$ac_objext \
17949 conftest$ac_exeext conftest.$ac_ext
17950LIBS=$ac_check_lib_save_LIBS
17951fi
17952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17953$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000017954if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017955 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17956fi
17957
17958
17959fi
17960
17961
17962fi
17963
17964
17965fi
17966
17967
17968fi
17969
17970
17971fi
17972
17973 ;;
17974 esac
17975
17976 if test "x$lt_cv_dlopen" != xno; then
17977 enable_dlopen=yes
17978 else
17979 enable_dlopen=no
17980 fi
17981
17982 case $lt_cv_dlopen in
17983 dlopen)
17984 save_CPPFLAGS="$CPPFLAGS"
17985 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17986
17987 save_LDFLAGS="$LDFLAGS"
17988 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17989
17990 save_LIBS="$LIBS"
17991 LIBS="$lt_cv_dlopen_libs $LIBS"
17992
17993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17994$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017995if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017996 $as_echo_n "(cached) " >&6
17997else
17998 if test "$cross_compiling" = yes; then :
17999 lt_cv_dlopen_self=cross
18000else
18001 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18002 lt_status=$lt_dlunknown
18003 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000018004#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000018005#include "confdefs.h"
18006
18007#if HAVE_DLFCN_H
18008#include <dlfcn.h>
18009#endif
18010
18011#include <stdio.h>
18012
18013#ifdef RTLD_GLOBAL
18014# define LT_DLGLOBAL RTLD_GLOBAL
18015#else
18016# ifdef DL_GLOBAL
18017# define LT_DLGLOBAL DL_GLOBAL
18018# else
18019# define LT_DLGLOBAL 0
18020# endif
18021#endif
18022
18023/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18024 find out it does not work in some platform. */
18025#ifndef LT_DLLAZY_OR_NOW
18026# ifdef RTLD_LAZY
18027# define LT_DLLAZY_OR_NOW RTLD_LAZY
18028# else
18029# ifdef DL_LAZY
18030# define LT_DLLAZY_OR_NOW DL_LAZY
18031# else
18032# ifdef RTLD_NOW
18033# define LT_DLLAZY_OR_NOW RTLD_NOW
18034# else
18035# ifdef DL_NOW
18036# define LT_DLLAZY_OR_NOW DL_NOW
18037# else
18038# define LT_DLLAZY_OR_NOW 0
18039# endif
18040# endif
18041# endif
18042# endif
18043#endif
18044
cristy0c60a692010-11-04 01:09:47 +000018045/* When -fvisbility=hidden is used, assume the code has been annotated
18046 correspondingly for the symbols needed. */
18047#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000018048int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000018049#endif
18050
cristyda16f162011-02-19 23:52:17 +000018051int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000018052int main ()
18053{
18054 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18055 int status = $lt_dlunknown;
18056
18057 if (self)
18058 {
18059 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000018060 else
18061 {
18062 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18063 else puts (dlerror ());
18064 }
cristy73bd4a52010-10-05 11:24:23 +000018065 /* dlclose (self); */
18066 }
18067 else
18068 puts (dlerror ());
18069
18070 return status;
18071}
18072_LT_EOF
18073 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18074 (eval $ac_link) 2>&5
18075 ac_status=$?
18076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18077 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18078 (./conftest; exit; ) >&5 2>/dev/null
18079 lt_status=$?
18080 case x$lt_status in
18081 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18082 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18083 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18084 esac
18085 else :
18086 # compilation failed
18087 lt_cv_dlopen_self=no
18088 fi
18089fi
18090rm -fr conftest*
18091
18092
18093fi
18094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18095$as_echo "$lt_cv_dlopen_self" >&6; }
18096
18097 if test "x$lt_cv_dlopen_self" = xyes; then
18098 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18100$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018101if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018102 $as_echo_n "(cached) " >&6
18103else
18104 if test "$cross_compiling" = yes; then :
18105 lt_cv_dlopen_self_static=cross
18106else
18107 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18108 lt_status=$lt_dlunknown
18109 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000018110#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000018111#include "confdefs.h"
18112
18113#if HAVE_DLFCN_H
18114#include <dlfcn.h>
18115#endif
18116
18117#include <stdio.h>
18118
18119#ifdef RTLD_GLOBAL
18120# define LT_DLGLOBAL RTLD_GLOBAL
18121#else
18122# ifdef DL_GLOBAL
18123# define LT_DLGLOBAL DL_GLOBAL
18124# else
18125# define LT_DLGLOBAL 0
18126# endif
18127#endif
18128
18129/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18130 find out it does not work in some platform. */
18131#ifndef LT_DLLAZY_OR_NOW
18132# ifdef RTLD_LAZY
18133# define LT_DLLAZY_OR_NOW RTLD_LAZY
18134# else
18135# ifdef DL_LAZY
18136# define LT_DLLAZY_OR_NOW DL_LAZY
18137# else
18138# ifdef RTLD_NOW
18139# define LT_DLLAZY_OR_NOW RTLD_NOW
18140# else
18141# ifdef DL_NOW
18142# define LT_DLLAZY_OR_NOW DL_NOW
18143# else
18144# define LT_DLLAZY_OR_NOW 0
18145# endif
18146# endif
18147# endif
18148# endif
18149#endif
18150
cristy0c60a692010-11-04 01:09:47 +000018151/* When -fvisbility=hidden is used, assume the code has been annotated
18152 correspondingly for the symbols needed. */
18153#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000018154int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000018155#endif
18156
cristyda16f162011-02-19 23:52:17 +000018157int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000018158int main ()
18159{
18160 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18161 int status = $lt_dlunknown;
18162
18163 if (self)
18164 {
18165 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000018166 else
18167 {
18168 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18169 else puts (dlerror ());
18170 }
cristy73bd4a52010-10-05 11:24:23 +000018171 /* dlclose (self); */
18172 }
18173 else
18174 puts (dlerror ());
18175
18176 return status;
18177}
18178_LT_EOF
18179 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18180 (eval $ac_link) 2>&5
18181 ac_status=$?
18182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18183 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18184 (./conftest; exit; ) >&5 2>/dev/null
18185 lt_status=$?
18186 case x$lt_status in
18187 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18188 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18189 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18190 esac
18191 else :
18192 # compilation failed
18193 lt_cv_dlopen_self_static=no
18194 fi
18195fi
18196rm -fr conftest*
18197
18198
18199fi
18200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18201$as_echo "$lt_cv_dlopen_self_static" >&6; }
18202 fi
18203
18204 CPPFLAGS="$save_CPPFLAGS"
18205 LDFLAGS="$save_LDFLAGS"
18206 LIBS="$save_LIBS"
18207 ;;
18208 esac
18209
18210 case $lt_cv_dlopen_self in
18211 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18212 *) enable_dlopen_self=unknown ;;
18213 esac
18214
18215 case $lt_cv_dlopen_self_static in
18216 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18217 *) enable_dlopen_self_static=unknown ;;
18218 esac
18219fi
18220
18221
18222
18223
18224
18225
18226
18227
18228
18229
18230
18231
18232
18233
18234
18235
18236
18237striplib=
18238old_striplib=
18239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18240$as_echo_n "checking whether stripping libraries is possible... " >&6; }
18241if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18242 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18243 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18245$as_echo "yes" >&6; }
18246else
18247# FIXME - insert some real tests, host_os isn't really good enough
18248 case $host_os in
18249 darwin*)
18250 if test -n "$STRIP" ; then
18251 striplib="$STRIP -x"
18252 old_striplib="$STRIP -S"
18253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18254$as_echo "yes" >&6; }
18255 else
18256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18257$as_echo "no" >&6; }
18258 fi
18259 ;;
18260 *)
18261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18262$as_echo "no" >&6; }
18263 ;;
18264 esac
18265fi
18266
18267
18268
18269
18270
18271
18272
18273
18274
18275
18276
18277
18278 # Report which library types will actually be built
18279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18280$as_echo_n "checking if libtool supports shared libraries... " >&6; }
18281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18282$as_echo "$can_build_shared" >&6; }
18283
18284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18285$as_echo_n "checking whether to build shared libraries... " >&6; }
18286 test "$can_build_shared" = "no" && enable_shared=no
18287
18288 # On AIX, shared libraries and static libraries use the same namespace, and
18289 # are all built from PIC.
18290 case $host_os in
18291 aix3*)
18292 test "$enable_shared" = yes && enable_static=no
18293 if test -n "$RANLIB"; then
18294 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18295 postinstall_cmds='$RANLIB $lib'
18296 fi
18297 ;;
18298
18299 aix[4-9]*)
18300 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18301 test "$enable_shared" = yes && enable_static=no
18302 fi
18303 ;;
18304 esac
18305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18306$as_echo "$enable_shared" >&6; }
18307
18308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18309$as_echo_n "checking whether to build static libraries... " >&6; }
18310 # Make sure either enable_shared or enable_static is yes.
18311 test "$enable_shared" = yes || enable_static=yes
18312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18313$as_echo "$enable_static" >&6; }
18314
18315
18316
18317
18318fi
18319ac_ext=c
18320ac_cpp='$CPP $CPPFLAGS'
18321ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18322ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18323ac_compiler_gnu=$ac_cv_c_compiler_gnu
18324
18325CC="$lt_save_CC"
18326
cristy0c60a692010-11-04 01:09:47 +000018327 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18328 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18329 (test "X$CXX" != "Xg++"))) ; then
18330 ac_ext=cpp
18331ac_cpp='$CXXCPP $CPPFLAGS'
18332ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18333ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18334ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18336$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18337if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000018338 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000018339 $as_echo_n "(cached) " >&6
18340else
18341 # Double quotes because CXXCPP needs to be expanded
18342 for CXXCPP in "$CXX -E" "/lib/cpp"
18343 do
18344 ac_preproc_ok=false
18345for ac_cxx_preproc_warn_flag in '' yes
18346do
18347 # Use a header file that comes with gcc, so configuring glibc
18348 # with a fresh cross-compiler works.
18349 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18350 # <limits.h> exists even on freestanding compilers.
18351 # On the NeXT, cc -E runs the code through the compiler's parser,
18352 # not just through cpp. "Syntax error" is here to catch this case.
18353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18354/* end confdefs.h. */
18355#ifdef __STDC__
18356# include <limits.h>
18357#else
18358# include <assert.h>
18359#endif
18360 Syntax error
18361_ACEOF
18362if ac_fn_cxx_try_cpp "$LINENO"; then :
18363
18364else
18365 # Broken: fails on valid input.
18366continue
18367fi
cristyda16f162011-02-19 23:52:17 +000018368rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018369
18370 # OK, works on sane cases. Now check whether nonexistent headers
18371 # can be detected and how.
18372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18373/* end confdefs.h. */
18374#include <ac_nonexistent.h>
18375_ACEOF
18376if ac_fn_cxx_try_cpp "$LINENO"; then :
18377 # Broken: success on invalid input.
18378continue
18379else
18380 # Passes both tests.
18381ac_preproc_ok=:
18382break
18383fi
cristyda16f162011-02-19 23:52:17 +000018384rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018385
18386done
18387# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000018388rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018389if $ac_preproc_ok; then :
18390 break
18391fi
18392
18393 done
18394 ac_cv_prog_CXXCPP=$CXXCPP
18395
18396fi
18397 CXXCPP=$ac_cv_prog_CXXCPP
18398else
18399 ac_cv_prog_CXXCPP=$CXXCPP
18400fi
18401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18402$as_echo "$CXXCPP" >&6; }
18403ac_preproc_ok=false
18404for ac_cxx_preproc_warn_flag in '' yes
18405do
18406 # Use a header file that comes with gcc, so configuring glibc
18407 # with a fresh cross-compiler works.
18408 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18409 # <limits.h> exists even on freestanding compilers.
18410 # On the NeXT, cc -E runs the code through the compiler's parser,
18411 # not just through cpp. "Syntax error" is here to catch this case.
18412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18413/* end confdefs.h. */
18414#ifdef __STDC__
18415# include <limits.h>
18416#else
18417# include <assert.h>
18418#endif
18419 Syntax error
18420_ACEOF
18421if ac_fn_cxx_try_cpp "$LINENO"; then :
18422
18423else
18424 # Broken: fails on valid input.
18425continue
18426fi
cristyda16f162011-02-19 23:52:17 +000018427rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018428
18429 # OK, works on sane cases. Now check whether nonexistent headers
18430 # can be detected and how.
18431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18432/* end confdefs.h. */
18433#include <ac_nonexistent.h>
18434_ACEOF
18435if ac_fn_cxx_try_cpp "$LINENO"; then :
18436 # Broken: success on invalid input.
18437continue
18438else
18439 # Passes both tests.
18440ac_preproc_ok=:
18441break
18442fi
cristyda16f162011-02-19 23:52:17 +000018443rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018444
18445done
18446# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000018447rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018448if $ac_preproc_ok; then :
18449
18450else
18451 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18452$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18453as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
18454See \`config.log' for more details" "$LINENO" 5; }
18455fi
18456
18457ac_ext=c
18458ac_cpp='$CPP $CPPFLAGS'
18459ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18460ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18461ac_compiler_gnu=$ac_cv_c_compiler_gnu
18462
18463else
18464 _lt_caught_CXX_error=yes
18465fi
cristy73bd4a52010-10-05 11:24:23 +000018466
18467ac_ext=cpp
18468ac_cpp='$CXXCPP $CPPFLAGS'
18469ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18470ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18471ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18472
18473archive_cmds_need_lc_CXX=no
18474allow_undefined_flag_CXX=
18475always_export_symbols_CXX=no
18476archive_expsym_cmds_CXX=
18477compiler_needs_object_CXX=no
18478export_dynamic_flag_spec_CXX=
18479hardcode_direct_CXX=no
18480hardcode_direct_absolute_CXX=no
18481hardcode_libdir_flag_spec_CXX=
cristy73bd4a52010-10-05 11:24:23 +000018482hardcode_libdir_separator_CXX=
18483hardcode_minus_L_CXX=no
18484hardcode_shlibpath_var_CXX=unsupported
18485hardcode_automatic_CXX=no
18486inherit_rpath_CXX=no
18487module_cmds_CXX=
18488module_expsym_cmds_CXX=
18489link_all_deplibs_CXX=unknown
18490old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000018491reload_flag_CXX=$reload_flag
18492reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000018493no_undefined_flag_CXX=
18494whole_archive_flag_spec_CXX=
18495enable_shared_with_static_runtimes_CXX=no
18496
18497# Source file extension for C++ test sources.
18498ac_ext=cpp
18499
18500# Object file extension for compiled C++ test sources.
18501objext=o
18502objext_CXX=$objext
18503
18504# No sense in running all these tests if we already determined that
18505# the CXX compiler isn't working. Some variables (like enable_shared)
18506# are currently assumed to apply to all compilers on this platform,
18507# and will be corrupted by setting them based on a non-working compiler.
18508if test "$_lt_caught_CXX_error" != yes; then
18509 # Code to be used in simple compile tests
18510 lt_simple_compile_test_code="int some_variable = 0;"
18511
18512 # Code to be used in simple link tests
18513 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18514
18515 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18516
18517
18518
18519
18520
18521
18522# If no C compiler was specified, use CC.
18523LTCC=${LTCC-"$CC"}
18524
18525# If no C compiler flags were specified, use CFLAGS.
18526LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18527
18528# Allow CC to be a program name with arguments.
18529compiler=$CC
18530
18531
18532 # save warnings/boilerplate of simple test code
18533 ac_outfile=conftest.$ac_objext
18534echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18535eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18536_lt_compiler_boilerplate=`cat conftest.err`
18537$RM conftest*
18538
18539 ac_outfile=conftest.$ac_objext
18540echo "$lt_simple_link_test_code" >conftest.$ac_ext
18541eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18542_lt_linker_boilerplate=`cat conftest.err`
18543$RM -r conftest*
18544
18545
18546 # Allow CC to be a program name with arguments.
18547 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000018548 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018549 lt_save_LD=$LD
18550 lt_save_GCC=$GCC
18551 GCC=$GXX
18552 lt_save_with_gnu_ld=$with_gnu_ld
18553 lt_save_path_LD=$lt_cv_path_LD
18554 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18555 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18556 else
18557 $as_unset lt_cv_prog_gnu_ld
18558 fi
18559 if test -n "${lt_cv_path_LDCXX+set}"; then
18560 lt_cv_path_LD=$lt_cv_path_LDCXX
18561 else
18562 $as_unset lt_cv_path_LD
18563 fi
18564 test -z "${LDCXX+set}" || LD=$LDCXX
18565 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000018566 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018567 compiler=$CC
18568 compiler_CXX=$CC
18569 for cc_temp in $compiler""; do
18570 case $cc_temp in
18571 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18572 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18573 \-*) ;;
18574 *) break;;
18575 esac
18576done
cristy0c60a692010-11-04 01:09:47 +000018577cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000018578
18579
18580 if test -n "$compiler"; then
18581 # We don't want -fno-exception when compiling C++ code, so set the
18582 # no_builtin_flag separately
18583 if test "$GXX" = yes; then
18584 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18585 else
18586 lt_prog_compiler_no_builtin_flag_CXX=
18587 fi
18588
18589 if test "$GXX" = yes; then
18590 # Set up default GNU C++ configuration
18591
18592
18593
18594# Check whether --with-gnu-ld was given.
18595if test "${with_gnu_ld+set}" = set; then :
18596 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18597else
18598 with_gnu_ld=no
18599fi
18600
18601ac_prog=ld
18602if test "$GCC" = yes; then
18603 # Check if gcc -print-prog-name=ld gives a path.
18604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18605$as_echo_n "checking for ld used by $CC... " >&6; }
18606 case $host in
18607 *-*-mingw*)
18608 # gcc leaves a trailing carriage return which upsets mingw
18609 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18610 *)
18611 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18612 esac
18613 case $ac_prog in
18614 # Accept absolute paths.
18615 [\\/]* | ?:[\\/]*)
18616 re_direlt='/[^/][^/]*/\.\./'
18617 # Canonicalize the pathname of ld
18618 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18619 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18620 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18621 done
18622 test -z "$LD" && LD="$ac_prog"
18623 ;;
18624 "")
18625 # If it fails, then pretend we aren't using GCC.
18626 ac_prog=ld
18627 ;;
18628 *)
18629 # If it is relative, then search for the first ld in PATH.
18630 with_gnu_ld=unknown
18631 ;;
18632 esac
18633elif test "$with_gnu_ld" = yes; then
18634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18635$as_echo_n "checking for GNU ld... " >&6; }
18636else
18637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18638$as_echo_n "checking for non-GNU ld... " >&6; }
18639fi
cristyda16f162011-02-19 23:52:17 +000018640if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018641 $as_echo_n "(cached) " >&6
18642else
18643 if test -z "$LD"; then
18644 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18645 for ac_dir in $PATH; do
18646 IFS="$lt_save_ifs"
18647 test -z "$ac_dir" && ac_dir=.
18648 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18649 lt_cv_path_LD="$ac_dir/$ac_prog"
18650 # Check to see if the program is GNU ld. I'd rather use --version,
18651 # but apparently some variants of GNU ld only accept -v.
18652 # Break only if it was the GNU/non-GNU ld that we prefer.
18653 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18654 *GNU* | *'with BFD'*)
18655 test "$with_gnu_ld" != no && break
18656 ;;
18657 *)
18658 test "$with_gnu_ld" != yes && break
18659 ;;
18660 esac
18661 fi
18662 done
18663 IFS="$lt_save_ifs"
18664else
18665 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18666fi
18667fi
18668
18669LD="$lt_cv_path_LD"
18670if test -n "$LD"; then
18671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18672$as_echo "$LD" >&6; }
18673else
18674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18675$as_echo "no" >&6; }
18676fi
cristy98dddb52010-11-04 00:30:15 +000018677test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000018678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18679$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018680if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018681 $as_echo_n "(cached) " >&6
18682else
18683 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18684case `$LD -v 2>&1 </dev/null` in
18685*GNU* | *'with BFD'*)
18686 lt_cv_prog_gnu_ld=yes
18687 ;;
18688*)
18689 lt_cv_prog_gnu_ld=no
18690 ;;
18691esac
18692fi
18693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18694$as_echo "$lt_cv_prog_gnu_ld" >&6; }
18695with_gnu_ld=$lt_cv_prog_gnu_ld
18696
18697
18698
18699
18700
18701
18702
18703 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18704 # archiving commands below assume that GNU ld is being used.
18705 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000018706 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18707 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 +000018708
18709 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18710 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18711
18712 # If archive_cmds runs LD, not CC, wlarc should be empty
18713 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18714 # investigate it a little bit more. (MM)
18715 wlarc='${wl}'
18716
18717 # ancient GNU ld didn't support --whole-archive et. al.
18718 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18719 $GREP 'no-whole-archive' > /dev/null; then
18720 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18721 else
18722 whole_archive_flag_spec_CXX=
18723 fi
18724 else
18725 with_gnu_ld=no
18726 wlarc=
18727
18728 # A generic and very simple default shared library creation
18729 # command for GNU C++ for the case where it uses the native
18730 # linker, instead of GNU ld. If possible, this setting should
18731 # overridden to take advantage of the native linker features on
18732 # the platform it is being used on.
18733 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18734 fi
18735
18736 # Commands to make compiler produce verbose output that lists
18737 # what "hidden" libraries, object files and flags are used when
18738 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018739 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018740
18741 else
18742 GXX=no
18743 with_gnu_ld=no
18744 wlarc=
18745 fi
18746
18747 # PORTME: fill in a description of your system's C++ link characteristics
18748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18749$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18750 ld_shlibs_CXX=yes
18751 case $host_os in
18752 aix3*)
18753 # FIXME: insert proper C++ library support
18754 ld_shlibs_CXX=no
18755 ;;
18756 aix[4-9]*)
18757 if test "$host_cpu" = ia64; then
18758 # On IA64, the linker does run time linking by default, so we don't
18759 # have to do anything special.
18760 aix_use_runtimelinking=no
18761 exp_sym_flag='-Bexport'
18762 no_entry_flag=""
18763 else
18764 aix_use_runtimelinking=no
18765
18766 # Test if we are trying to use run time linking or normal
18767 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18768 # need to do runtime linking.
18769 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18770 for ld_flag in $LDFLAGS; do
18771 case $ld_flag in
18772 *-brtl*)
18773 aix_use_runtimelinking=yes
18774 break
18775 ;;
18776 esac
18777 done
18778 ;;
18779 esac
18780
18781 exp_sym_flag='-bexport'
18782 no_entry_flag='-bnoentry'
18783 fi
18784
18785 # When large executables or shared objects are built, AIX ld can
18786 # have problems creating the table of contents. If linking a library
18787 # or program results in "error TOC overflow" add -mminimal-toc to
18788 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18789 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18790
18791 archive_cmds_CXX=''
18792 hardcode_direct_CXX=yes
18793 hardcode_direct_absolute_CXX=yes
18794 hardcode_libdir_separator_CXX=':'
18795 link_all_deplibs_CXX=yes
18796 file_list_spec_CXX='${wl}-f,'
18797
18798 if test "$GXX" = yes; then
18799 case $host_os in aix4.[012]|aix4.[012].*)
18800 # We only want to do this on AIX 4.2 and lower, the check
18801 # below for broken collect2 doesn't work under 4.3+
18802 collect2name=`${CC} -print-prog-name=collect2`
18803 if test -f "$collect2name" &&
18804 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18805 then
18806 # We have reworked collect2
18807 :
18808 else
18809 # We have old collect2
18810 hardcode_direct_CXX=unsupported
18811 # It fails to find uninstalled libraries when the uninstalled
18812 # path is not listed in the libpath. Setting hardcode_minus_L
18813 # to unsupported forces relinking
18814 hardcode_minus_L_CXX=yes
18815 hardcode_libdir_flag_spec_CXX='-L$libdir'
18816 hardcode_libdir_separator_CXX=
18817 fi
18818 esac
18819 shared_flag='-shared'
18820 if test "$aix_use_runtimelinking" = yes; then
18821 shared_flag="$shared_flag "'${wl}-G'
18822 fi
18823 else
18824 # not using gcc
18825 if test "$host_cpu" = ia64; then
18826 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18827 # chokes on -Wl,-G. The following line is correct:
18828 shared_flag='-G'
18829 else
18830 if test "$aix_use_runtimelinking" = yes; then
18831 shared_flag='${wl}-G'
18832 else
18833 shared_flag='${wl}-bM:SRE'
18834 fi
18835 fi
18836 fi
18837
18838 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18839 # It seems that -bexpall does not export symbols beginning with
18840 # underscore (_), so it is better to generate a list of symbols to
18841 # export.
18842 always_export_symbols_CXX=yes
18843 if test "$aix_use_runtimelinking" = yes; then
18844 # Warning - without using the other runtime loading flags (-brtl),
18845 # -berok will link without error, but may produce a broken library.
18846 allow_undefined_flag_CXX='-berok'
18847 # Determine the default libpath from the value encoded in an empty
18848 # executable.
cristyda16f162011-02-19 23:52:17 +000018849 if test "${lt_cv_aix_libpath+set}" = set; then
18850 aix_libpath=$lt_cv_aix_libpath
18851else
18852 if ${lt_cv_aix_libpath__CXX+:} false; then :
18853 $as_echo_n "(cached) " >&6
18854else
18855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018856/* end confdefs.h. */
18857
18858int
18859main ()
18860{
18861
18862 ;
18863 return 0;
18864}
18865_ACEOF
18866if ac_fn_cxx_try_link "$LINENO"; then :
18867
cristyda16f162011-02-19 23:52:17 +000018868 lt_aix_libpath_sed='
18869 /Import File Strings/,/^$/ {
18870 /^0/ {
18871 s/^0 *\([^ ]*\) *$/\1/
18872 p
18873 }
18874 }'
18875 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18876 # Check for a 64-bit object if we didn't find anything.
18877 if test -z "$lt_cv_aix_libpath__CXX"; then
18878 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18879 fi
cristy73bd4a52010-10-05 11:24:23 +000018880fi
18881rm -f core conftest.err conftest.$ac_objext \
18882 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018883 if test -z "$lt_cv_aix_libpath__CXX"; then
18884 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18885 fi
18886
18887fi
18888
18889 aix_libpath=$lt_cv_aix_libpath__CXX
18890fi
cristy73bd4a52010-10-05 11:24:23 +000018891
18892 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18893
cristy0c60a692010-11-04 01:09:47 +000018894 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 +000018895 else
18896 if test "$host_cpu" = ia64; then
18897 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18898 allow_undefined_flag_CXX="-z nodefs"
18899 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"
18900 else
18901 # Determine the default libpath from the value encoded in an
18902 # empty executable.
cristyda16f162011-02-19 23:52:17 +000018903 if test "${lt_cv_aix_libpath+set}" = set; then
18904 aix_libpath=$lt_cv_aix_libpath
18905else
18906 if ${lt_cv_aix_libpath__CXX+:} false; then :
18907 $as_echo_n "(cached) " >&6
18908else
18909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018910/* end confdefs.h. */
18911
18912int
18913main ()
18914{
18915
18916 ;
18917 return 0;
18918}
18919_ACEOF
18920if ac_fn_cxx_try_link "$LINENO"; then :
18921
cristyda16f162011-02-19 23:52:17 +000018922 lt_aix_libpath_sed='
18923 /Import File Strings/,/^$/ {
18924 /^0/ {
18925 s/^0 *\([^ ]*\) *$/\1/
18926 p
18927 }
18928 }'
18929 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18930 # Check for a 64-bit object if we didn't find anything.
18931 if test -z "$lt_cv_aix_libpath__CXX"; then
18932 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18933 fi
cristy73bd4a52010-10-05 11:24:23 +000018934fi
18935rm -f core conftest.err conftest.$ac_objext \
18936 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018937 if test -z "$lt_cv_aix_libpath__CXX"; then
18938 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18939 fi
18940
18941fi
18942
18943 aix_libpath=$lt_cv_aix_libpath__CXX
18944fi
cristy73bd4a52010-10-05 11:24:23 +000018945
18946 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18947 # Warning - without using the other run time loading flags,
18948 # -berok will link without error, but may produce a broken library.
18949 no_undefined_flag_CXX=' ${wl}-bernotok'
18950 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000018951 if test "$with_gnu_ld" = yes; then
18952 # We only use this code for GNU lds that support --whole-archive.
18953 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18954 else
18955 # Exported symbols can be pulled into shared objects from archives
18956 whole_archive_flag_spec_CXX='$convenience'
18957 fi
cristy73bd4a52010-10-05 11:24:23 +000018958 archive_cmds_need_lc_CXX=yes
18959 # This is similar to how AIX traditionally builds its shared
18960 # libraries.
18961 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'
18962 fi
18963 fi
18964 ;;
18965
18966 beos*)
18967 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18968 allow_undefined_flag_CXX=unsupported
18969 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18970 # support --undefined. This deserves some investigation. FIXME
18971 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18972 else
18973 ld_shlibs_CXX=no
18974 fi
18975 ;;
18976
18977 chorus*)
18978 case $cc_basename in
18979 *)
18980 # FIXME: insert proper C++ library support
18981 ld_shlibs_CXX=no
18982 ;;
18983 esac
18984 ;;
18985
18986 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000018987 case $GXX,$cc_basename in
18988 ,cl* | no,cl*)
18989 # Native MSVC
18990 # hardcode_libdir_flag_spec is actually meaningless, as there is
18991 # no search path for DLLs.
18992 hardcode_libdir_flag_spec_CXX=' '
18993 allow_undefined_flag_CXX=unsupported
18994 always_export_symbols_CXX=yes
18995 file_list_spec_CXX='@'
18996 # Tell ltmain to make .lib files, not .a files.
18997 libext=lib
18998 # Tell ltmain to make .dll files, not .so files.
18999 shrext_cmds=".dll"
19000 # FIXME: Setting linknames here is a bad hack.
19001 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
19002 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19003 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
19004 else
19005 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
19006 fi~
19007 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
19008 linknames='
19009 # The linker will not automatically build a static lib if we build a DLL.
19010 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
19011 enable_shared_with_static_runtimes_CXX=yes
19012 # Don't use ranlib
19013 old_postinstall_cmds_CXX='chmod 644 $oldlib'
19014 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
19015 lt_tool_outputfile="@TOOL_OUTPUT@"~
19016 case $lt_outputfile in
19017 *.exe|*.EXE) ;;
19018 *)
19019 lt_outputfile="$lt_outputfile.exe"
19020 lt_tool_outputfile="$lt_tool_outputfile.exe"
19021 ;;
19022 esac~
19023 func_to_tool_file "$lt_outputfile"~
19024 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
19025 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
19026 $RM "$lt_outputfile.manifest";
19027 fi'
19028 ;;
19029 *)
19030 # g++
19031 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19032 # as there is no search path for DLLs.
19033 hardcode_libdir_flag_spec_CXX='-L$libdir'
19034 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19035 allow_undefined_flag_CXX=unsupported
19036 always_export_symbols_CXX=no
19037 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000019038
cristyda16f162011-02-19 23:52:17 +000019039 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19040 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'
19041 # If the export-symbols file already is a .def file (1st line
19042 # is EXPORTS), use it as is; otherwise, prepend...
19043 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19044 cp $export_symbols $output_objdir/$soname.def;
19045 else
19046 echo EXPORTS > $output_objdir/$soname.def;
19047 cat $export_symbols >> $output_objdir/$soname.def;
19048 fi~
19049 $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'
19050 else
19051 ld_shlibs_CXX=no
19052 fi
19053 ;;
19054 esac
19055 ;;
cristy73bd4a52010-10-05 11:24:23 +000019056 darwin* | rhapsody*)
19057
19058
19059 archive_cmds_need_lc_CXX=no
19060 hardcode_direct_CXX=no
19061 hardcode_automatic_CXX=yes
19062 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000019063 if test "$lt_cv_ld_force_load" = "yes"; then
19064 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 +000019065
cristy0c60a692010-11-04 01:09:47 +000019066 else
19067 whole_archive_flag_spec_CXX=''
19068 fi
cristy73bd4a52010-10-05 11:24:23 +000019069 link_all_deplibs_CXX=yes
19070 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19071 case $cc_basename in
19072 ifort*) _lt_dar_can_shared=yes ;;
19073 *) _lt_dar_can_shared=$GCC ;;
19074 esac
19075 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000019076 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000019077 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}"
19078 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19079 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}"
19080 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}"
19081 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19082 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}"
19083 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}"
19084 fi
19085
19086 else
19087 ld_shlibs_CXX=no
19088 fi
19089
19090 ;;
19091
19092 dgux*)
19093 case $cc_basename in
19094 ec++*)
19095 # FIXME: insert proper C++ library support
19096 ld_shlibs_CXX=no
19097 ;;
19098 ghcx*)
19099 # Green Hills C++ Compiler
19100 # FIXME: insert proper C++ library support
19101 ld_shlibs_CXX=no
19102 ;;
19103 *)
19104 # FIXME: insert proper C++ library support
19105 ld_shlibs_CXX=no
19106 ;;
19107 esac
19108 ;;
19109
cristy99bd5232011-12-07 14:38:20 +000019110 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000019111 # C++ shared libraries reported to be fairly broken before
19112 # switch to ELF
19113 ld_shlibs_CXX=no
19114 ;;
19115
19116 freebsd-elf*)
19117 archive_cmds_need_lc_CXX=no
19118 ;;
19119
19120 freebsd* | dragonfly*)
19121 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19122 # conventions
19123 ld_shlibs_CXX=yes
19124 ;;
19125
19126 gnu*)
19127 ;;
19128
cristy0c60a692010-11-04 01:09:47 +000019129 haiku*)
19130 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19131 link_all_deplibs_CXX=yes
19132 ;;
19133
cristy73bd4a52010-10-05 11:24:23 +000019134 hpux9*)
19135 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19136 hardcode_libdir_separator_CXX=:
19137 export_dynamic_flag_spec_CXX='${wl}-E'
19138 hardcode_direct_CXX=yes
19139 hardcode_minus_L_CXX=yes # Not in the search PATH,
19140 # but as the default
19141 # location of the library.
19142
19143 case $cc_basename in
19144 CC*)
19145 # FIXME: insert proper C++ library support
19146 ld_shlibs_CXX=no
19147 ;;
19148 aCC*)
19149 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'
19150 # Commands to make compiler produce verbose output that lists
19151 # what "hidden" libraries, object files and flags are used when
19152 # linking a shared library.
19153 #
19154 # There doesn't appear to be a way to prevent this compiler from
19155 # explicitly linking system object files so we need to strip them
19156 # from the output so that they don't get included in the library
19157 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000019158 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 +000019159 ;;
19160 *)
19161 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000019162 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 +000019163 else
19164 # FIXME: insert proper C++ library support
19165 ld_shlibs_CXX=no
19166 fi
19167 ;;
19168 esac
19169 ;;
19170
19171 hpux10*|hpux11*)
19172 if test $with_gnu_ld = no; then
19173 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19174 hardcode_libdir_separator_CXX=:
19175
19176 case $host_cpu in
19177 hppa*64*|ia64*)
19178 ;;
19179 *)
19180 export_dynamic_flag_spec_CXX='${wl}-E'
19181 ;;
19182 esac
19183 fi
19184 case $host_cpu in
19185 hppa*64*|ia64*)
19186 hardcode_direct_CXX=no
19187 hardcode_shlibpath_var_CXX=no
19188 ;;
19189 *)
19190 hardcode_direct_CXX=yes
19191 hardcode_direct_absolute_CXX=yes
19192 hardcode_minus_L_CXX=yes # Not in the search PATH,
19193 # but as the default
19194 # location of the library.
19195 ;;
19196 esac
19197
19198 case $cc_basename in
19199 CC*)
19200 # FIXME: insert proper C++ library support
19201 ld_shlibs_CXX=no
19202 ;;
19203 aCC*)
19204 case $host_cpu in
19205 hppa*64*)
19206 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19207 ;;
19208 ia64*)
19209 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19210 ;;
19211 *)
19212 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19213 ;;
19214 esac
19215 # Commands to make compiler produce verbose output that lists
19216 # what "hidden" libraries, object files and flags are used when
19217 # linking a shared library.
19218 #
19219 # There doesn't appear to be a way to prevent this compiler from
19220 # explicitly linking system object files so we need to strip them
19221 # from the output so that they don't get included in the library
19222 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000019223 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 +000019224 ;;
19225 *)
19226 if test "$GXX" = yes; then
19227 if test $with_gnu_ld = no; then
19228 case $host_cpu in
19229 hppa*64*)
19230 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19231 ;;
19232 ia64*)
cristyda16f162011-02-19 23:52:17 +000019233 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 +000019234 ;;
19235 *)
cristyda16f162011-02-19 23:52:17 +000019236 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 +000019237 ;;
19238 esac
19239 fi
19240 else
19241 # FIXME: insert proper C++ library support
19242 ld_shlibs_CXX=no
19243 fi
19244 ;;
19245 esac
19246 ;;
19247
19248 interix[3-9]*)
19249 hardcode_direct_CXX=no
19250 hardcode_shlibpath_var_CXX=no
19251 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19252 export_dynamic_flag_spec_CXX='${wl}-E'
19253 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19254 # Instead, shared libraries are loaded at an image base (0x10000000 by
19255 # default) and relocated if they conflict, which is a slow very memory
19256 # consuming and fragmenting process. To avoid this, we pick a random,
19257 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19258 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19259 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'
19260 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'
19261 ;;
19262 irix5* | irix6*)
19263 case $cc_basename in
19264 CC*)
19265 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000019266 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 +000019267
19268 # Archives containing C++ object files must be created using
19269 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19270 # necessary to make sure instantiated templates are included
19271 # in the archive.
19272 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19273 ;;
19274 *)
19275 if test "$GXX" = yes; then
19276 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000019277 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 +000019278 else
cristyda16f162011-02-19 23:52:17 +000019279 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 +000019280 fi
19281 fi
19282 link_all_deplibs_CXX=yes
19283 ;;
19284 esac
19285 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19286 hardcode_libdir_separator_CXX=:
19287 inherit_rpath_CXX=yes
19288 ;;
19289
cristy0c60a692010-11-04 01:09:47 +000019290 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019291 case $cc_basename in
19292 KCC*)
19293 # Kuck and Associates, Inc. (KAI) C++ Compiler
19294
19295 # KCC will only create a shared library if the output file
19296 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19297 # to its proper name (with version) after linking.
19298 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'
19299 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'
19300 # Commands to make compiler produce verbose output that lists
19301 # what "hidden" libraries, object files and flags are used when
19302 # linking a shared library.
19303 #
19304 # There doesn't appear to be a way to prevent this compiler from
19305 # explicitly linking system object files so we need to strip them
19306 # from the output so that they don't get included in the library
19307 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000019308 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 +000019309
19310 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19311 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19312
19313 # Archives containing C++ object files must be created using
19314 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19315 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19316 ;;
19317 icpc* | ecpc* )
19318 # Intel C++
19319 with_gnu_ld=yes
19320 # version 8.0 and above of icpc choke on multiply defined symbols
19321 # if we add $predep_objects and $postdep_objects, however 7.1 and
19322 # earlier do not add the objects themselves.
19323 case `$CC -V 2>&1` in
19324 *"Version 7."*)
19325 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19326 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'
19327 ;;
19328 *) # Version 8.0 or newer
19329 tmp_idyn=
19330 case $host_cpu in
19331 ia64*) tmp_idyn=' -i_dynamic';;
19332 esac
19333 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19334 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'
19335 ;;
19336 esac
19337 archive_cmds_need_lc_CXX=no
19338 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19339 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19340 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19341 ;;
19342 pgCC* | pgcpp*)
19343 # Portland Group C++ compiler
19344 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000019345 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000019346 prelink_cmds_CXX='tpldir=Template.dir~
19347 rm -rf $tpldir~
19348 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000019349 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000019350 old_archive_cmds_CXX='tpldir=Template.dir~
19351 rm -rf $tpldir~
19352 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000019353 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000019354 $RANLIB $oldlib'
19355 archive_cmds_CXX='tpldir=Template.dir~
19356 rm -rf $tpldir~
19357 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000019358 $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 +000019359 archive_expsym_cmds_CXX='tpldir=Template.dir~
19360 rm -rf $tpldir~
19361 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000019362 $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 +000019363 ;;
cristy0c60a692010-11-04 01:09:47 +000019364 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000019365 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19366 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'
19367 ;;
19368 esac
19369
19370 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19371 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000019372 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 +000019373 ;;
19374 cxx*)
19375 # Compaq C++
19376 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19377 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'
19378
19379 runpath_var=LD_RUN_PATH
19380 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19381 hardcode_libdir_separator_CXX=:
19382
19383 # Commands to make compiler produce verbose output that lists
19384 # what "hidden" libraries, object files and flags are used when
19385 # linking a shared library.
19386 #
19387 # There doesn't appear to be a way to prevent this compiler from
19388 # explicitly linking system object files so we need to strip them
19389 # from the output so that they don't get included in the library
19390 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000019391 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 +000019392 ;;
cristy0c60a692010-11-04 01:09:47 +000019393 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000019394 # IBM XL 8.0 on PPC, with GNU ld
19395 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19396 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19397 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19398 if test "x$supports_anon_versioning" = xyes; then
19399 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19400 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19401 echo "local: *; };" >> $output_objdir/$libname.ver~
19402 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19403 fi
19404 ;;
19405 *)
19406 case `$CC -V 2>&1 | sed 5q` in
19407 *Sun\ C*)
19408 # Sun C++ 5.9
19409 no_undefined_flag_CXX=' -zdefs'
19410 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19411 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'
19412 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000019413 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 +000019414 compiler_needs_object_CXX=yes
19415
19416 # Not sure whether something based on
19417 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19418 # would be better.
cristy0c60a692010-11-04 01:09:47 +000019419 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000019420
19421 # Archives containing C++ object files must be created using
19422 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19423 # necessary to make sure instantiated templates are included
19424 # in the archive.
19425 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19426 ;;
19427 esac
19428 ;;
19429 esac
19430 ;;
19431
19432 lynxos*)
19433 # FIXME: insert proper C++ library support
19434 ld_shlibs_CXX=no
19435 ;;
19436
19437 m88k*)
19438 # FIXME: insert proper C++ library support
19439 ld_shlibs_CXX=no
19440 ;;
19441
19442 mvs*)
19443 case $cc_basename in
19444 cxx*)
19445 # FIXME: insert proper C++ library support
19446 ld_shlibs_CXX=no
19447 ;;
19448 *)
19449 # FIXME: insert proper C++ library support
19450 ld_shlibs_CXX=no
19451 ;;
19452 esac
19453 ;;
19454
19455 netbsd*)
19456 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19457 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19458 wlarc=
19459 hardcode_libdir_flag_spec_CXX='-R$libdir'
19460 hardcode_direct_CXX=yes
19461 hardcode_shlibpath_var_CXX=no
19462 fi
19463 # Workaround some broken pre-1.5 toolchains
19464 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19465 ;;
19466
19467 *nto* | *qnx*)
19468 ld_shlibs_CXX=yes
19469 ;;
19470
19471 openbsd2*)
19472 # C++ shared libraries are fairly broken
19473 ld_shlibs_CXX=no
19474 ;;
19475
19476 openbsd*)
19477 if test -f /usr/libexec/ld.so; then
19478 hardcode_direct_CXX=yes
19479 hardcode_shlibpath_var_CXX=no
19480 hardcode_direct_absolute_CXX=yes
19481 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19482 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19483 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19484 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19485 export_dynamic_flag_spec_CXX='${wl}-E'
19486 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19487 fi
cristy0c60a692010-11-04 01:09:47 +000019488 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000019489 else
19490 ld_shlibs_CXX=no
19491 fi
19492 ;;
19493
19494 osf3* | osf4* | osf5*)
19495 case $cc_basename in
19496 KCC*)
19497 # Kuck and Associates, Inc. (KAI) C++ Compiler
19498
19499 # KCC will only create a shared library if the output file
19500 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19501 # to its proper name (with version) after linking.
19502 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'
19503
19504 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19505 hardcode_libdir_separator_CXX=:
19506
19507 # Archives containing C++ object files must be created using
19508 # the KAI C++ compiler.
19509 case $host in
19510 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19511 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19512 esac
19513 ;;
19514 RCC*)
19515 # Rational C++ 2.4.1
19516 # FIXME: insert proper C++ library support
19517 ld_shlibs_CXX=no
19518 ;;
19519 cxx*)
19520 case $host in
19521 osf3*)
19522 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000019523 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 +000019524 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19525 ;;
19526 *)
19527 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000019528 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 +000019529 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19530 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000019531 $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 +000019532 $RM $lib.exp'
19533 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19534 ;;
19535 esac
19536
19537 hardcode_libdir_separator_CXX=:
19538
19539 # Commands to make compiler produce verbose output that lists
19540 # what "hidden" libraries, object files and flags are used when
19541 # linking a shared library.
19542 #
19543 # There doesn't appear to be a way to prevent this compiler from
19544 # explicitly linking system object files so we need to strip them
19545 # from the output so that they don't get included in the library
19546 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000019547 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 +000019548 ;;
19549 *)
19550 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19551 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19552 case $host in
19553 osf3*)
cristy0c60a692010-11-04 01:09:47 +000019554 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 +000019555 ;;
19556 *)
cristyda16f162011-02-19 23:52:17 +000019557 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 +000019558 ;;
19559 esac
19560
19561 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19562 hardcode_libdir_separator_CXX=:
19563
19564 # Commands to make compiler produce verbose output that lists
19565 # what "hidden" libraries, object files and flags are used when
19566 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019567 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019568
19569 else
19570 # FIXME: insert proper C++ library support
19571 ld_shlibs_CXX=no
19572 fi
19573 ;;
19574 esac
19575 ;;
19576
19577 psos*)
19578 # FIXME: insert proper C++ library support
19579 ld_shlibs_CXX=no
19580 ;;
19581
19582 sunos4*)
19583 case $cc_basename in
19584 CC*)
19585 # Sun C++ 4.x
19586 # FIXME: insert proper C++ library support
19587 ld_shlibs_CXX=no
19588 ;;
19589 lcc*)
19590 # Lucid
19591 # FIXME: insert proper C++ library support
19592 ld_shlibs_CXX=no
19593 ;;
19594 *)
19595 # FIXME: insert proper C++ library support
19596 ld_shlibs_CXX=no
19597 ;;
19598 esac
19599 ;;
19600
19601 solaris*)
19602 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019603 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019604 # Sun C++ 4.2, 5.x and Centerline C++
19605 archive_cmds_need_lc_CXX=yes
19606 no_undefined_flag_CXX=' -zdefs'
19607 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19608 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19609 $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'
19610
19611 hardcode_libdir_flag_spec_CXX='-R$libdir'
19612 hardcode_shlibpath_var_CXX=no
19613 case $host_os in
19614 solaris2.[0-5] | solaris2.[0-5].*) ;;
19615 *)
19616 # The compiler driver will combine and reorder linker options,
19617 # but understands `-z linker_flag'.
19618 # Supported since Solaris 2.6 (maybe 2.5.1?)
19619 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19620 ;;
19621 esac
19622 link_all_deplibs_CXX=yes
19623
cristy0c60a692010-11-04 01:09:47 +000019624 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000019625
19626 # Archives containing C++ object files must be created using
19627 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19628 # necessary to make sure instantiated templates are included
19629 # in the archive.
19630 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19631 ;;
19632 gcx*)
19633 # Green Hills C++ Compiler
19634 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19635
19636 # The C++ compiler must be used to create the archive.
19637 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19638 ;;
19639 *)
19640 # GNU C++ compiler with Solaris linker
19641 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19642 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19643 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000019644 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 +000019645 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 +000019646 $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 +000019647
19648 # Commands to make compiler produce verbose output that lists
19649 # what "hidden" libraries, object files and flags are used when
19650 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019651 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019652 else
19653 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19654 # platform.
19655 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19656 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19657 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19658
19659 # Commands to make compiler produce verbose output that lists
19660 # what "hidden" libraries, object files and flags are used when
19661 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019662 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019663 fi
19664
19665 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19666 case $host_os in
19667 solaris2.[0-5] | solaris2.[0-5].*) ;;
19668 *)
19669 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19670 ;;
19671 esac
19672 fi
19673 ;;
19674 esac
19675 ;;
19676
19677 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19678 no_undefined_flag_CXX='${wl}-z,text'
19679 archive_cmds_need_lc_CXX=no
19680 hardcode_shlibpath_var_CXX=no
19681 runpath_var='LD_RUN_PATH'
19682
19683 case $cc_basename in
19684 CC*)
19685 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19686 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19687 ;;
19688 *)
19689 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19690 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19691 ;;
19692 esac
19693 ;;
19694
19695 sysv5* | sco3.2v5* | sco5v6*)
19696 # Note: We can NOT use -z defs as we might desire, because we do not
19697 # link with -lc, and that would cause any symbols used from libc to
19698 # always be unresolved, which means just about no library would
19699 # ever link correctly. If we're not using GNU ld we use -z text
19700 # though, which does catch some bad symbols but isn't as heavy-handed
19701 # as -z defs.
19702 no_undefined_flag_CXX='${wl}-z,text'
19703 allow_undefined_flag_CXX='${wl}-z,nodefs'
19704 archive_cmds_need_lc_CXX=no
19705 hardcode_shlibpath_var_CXX=no
19706 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19707 hardcode_libdir_separator_CXX=':'
19708 link_all_deplibs_CXX=yes
19709 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19710 runpath_var='LD_RUN_PATH'
19711
19712 case $cc_basename in
19713 CC*)
19714 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19715 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 +000019716 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19717 '"$old_archive_cmds_CXX"
19718 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19719 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000019720 ;;
19721 *)
19722 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19723 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19724 ;;
19725 esac
19726 ;;
19727
19728 tandem*)
19729 case $cc_basename in
19730 NCC*)
19731 # NonStop-UX NCC 3.20
19732 # FIXME: insert proper C++ library support
19733 ld_shlibs_CXX=no
19734 ;;
19735 *)
19736 # FIXME: insert proper C++ library support
19737 ld_shlibs_CXX=no
19738 ;;
19739 esac
19740 ;;
19741
19742 vxworks*)
19743 # FIXME: insert proper C++ library support
19744 ld_shlibs_CXX=no
19745 ;;
19746
19747 *)
19748 # FIXME: insert proper C++ library support
19749 ld_shlibs_CXX=no
19750 ;;
19751 esac
19752
19753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19754$as_echo "$ld_shlibs_CXX" >&6; }
19755 test "$ld_shlibs_CXX" = no && can_build_shared=no
19756
19757 GCC_CXX="$GXX"
19758 LD_CXX="$LD"
19759
19760 ## CAVEAT EMPTOR:
19761 ## There is no encapsulation within the following macros, do not change
19762 ## the running order or otherwise move them around unless you know exactly
19763 ## what you are doing...
19764 # Dependencies to place before and after the object being linked:
19765predep_objects_CXX=
19766postdep_objects_CXX=
19767predeps_CXX=
19768postdeps_CXX=
19769compiler_lib_search_path_CXX=
19770
19771cat > conftest.$ac_ext <<_LT_EOF
19772class Foo
19773{
19774public:
19775 Foo (void) { a = 0; }
19776private:
19777 int a;
19778};
19779_LT_EOF
19780
cristyda16f162011-02-19 23:52:17 +000019781
19782_lt_libdeps_save_CFLAGS=$CFLAGS
19783case "$CC $CFLAGS " in #(
19784*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
19785*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
cristy99bd5232011-12-07 14:38:20 +000019786*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
cristyda16f162011-02-19 23:52:17 +000019787esac
19788
cristy73bd4a52010-10-05 11:24:23 +000019789if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19790 (eval $ac_compile) 2>&5
19791 ac_status=$?
19792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19793 test $ac_status = 0; }; then
19794 # Parse the compiler output and extract the necessary
19795 # objects, libraries and library flags.
19796
19797 # Sentinel used to keep track of whether or not we are before
19798 # the conftest object file.
19799 pre_test_object_deps_done=no
19800
19801 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000019802 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000019803
19804 -L* | -R* | -l*)
19805 # Some compilers place space between "-{L,R}" and the path.
19806 # Remove the space.
19807 if test $p = "-L" ||
19808 test $p = "-R"; then
19809 prev=$p
19810 continue
cristy73bd4a52010-10-05 11:24:23 +000019811 fi
19812
cristyda16f162011-02-19 23:52:17 +000019813 # Expand the sysroot to ease extracting the directories later.
19814 if test -z "$prev"; then
19815 case $p in
19816 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
19817 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
19818 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
19819 esac
19820 fi
19821 case $p in
19822 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
19823 esac
cristy73bd4a52010-10-05 11:24:23 +000019824 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000019825 case ${prev} in
19826 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000019827 # Internal compiler library paths should come after those
19828 # provided the user. The postdeps already come after the
19829 # user supplied libs so there is no need to process them.
19830 if test -z "$compiler_lib_search_path_CXX"; then
19831 compiler_lib_search_path_CXX="${prev}${p}"
19832 else
19833 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19834 fi
19835 ;;
19836 # The "-l" case would never come before the object being
19837 # linked, so don't bother handling this case.
19838 esac
19839 else
19840 if test -z "$postdeps_CXX"; then
19841 postdeps_CXX="${prev}${p}"
19842 else
19843 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19844 fi
19845 fi
cristyda16f162011-02-19 23:52:17 +000019846 prev=
cristy73bd4a52010-10-05 11:24:23 +000019847 ;;
19848
cristyda16f162011-02-19 23:52:17 +000019849 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000019850 *.$objext)
19851 # This assumes that the test object file only shows up
19852 # once in the compiler output.
19853 if test "$p" = "conftest.$objext"; then
19854 pre_test_object_deps_done=yes
19855 continue
19856 fi
19857
19858 if test "$pre_test_object_deps_done" = no; then
19859 if test -z "$predep_objects_CXX"; then
19860 predep_objects_CXX="$p"
19861 else
19862 predep_objects_CXX="$predep_objects_CXX $p"
19863 fi
19864 else
19865 if test -z "$postdep_objects_CXX"; then
19866 postdep_objects_CXX="$p"
19867 else
19868 postdep_objects_CXX="$postdep_objects_CXX $p"
19869 fi
19870 fi
19871 ;;
19872
19873 *) ;; # Ignore the rest.
19874
19875 esac
19876 done
19877
19878 # Clean up.
19879 rm -f a.out a.exe
19880else
19881 echo "libtool.m4: error: problem compiling CXX test program"
19882fi
19883
19884$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000019885CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000019886
19887# PORTME: override above test on systems where it is broken
19888case $host_os in
19889interix[3-9]*)
19890 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19891 # hack all around it, let's just trust "g++" to DTRT.
19892 predep_objects_CXX=
19893 postdep_objects_CXX=
19894 postdeps_CXX=
19895 ;;
19896
19897linux*)
19898 case `$CC -V 2>&1 | sed 5q` in
19899 *Sun\ C*)
19900 # Sun C++ 5.9
19901
19902 # The more standards-conforming stlport4 library is
19903 # incompatible with the Cstd library. Avoid specifying
19904 # it if it's in CXXFLAGS. Ignore libCrun as
19905 # -library=stlport4 depends on it.
19906 case " $CXX $CXXFLAGS " in
19907 *" -library=stlport4 "*)
19908 solaris_use_stlport4=yes
19909 ;;
19910 esac
19911
19912 if test "$solaris_use_stlport4" != yes; then
19913 postdeps_CXX='-library=Cstd -library=Crun'
19914 fi
19915 ;;
19916 esac
19917 ;;
19918
19919solaris*)
19920 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019921 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019922 # The more standards-conforming stlport4 library is
19923 # incompatible with the Cstd library. Avoid specifying
19924 # it if it's in CXXFLAGS. Ignore libCrun as
19925 # -library=stlport4 depends on it.
19926 case " $CXX $CXXFLAGS " in
19927 *" -library=stlport4 "*)
19928 solaris_use_stlport4=yes
19929 ;;
19930 esac
19931
19932 # Adding this requires a known-good setup of shared libraries for
19933 # Sun compiler versions before 5.6, else PIC objects from an old
19934 # archive will be linked into the output, leading to subtle bugs.
19935 if test "$solaris_use_stlport4" != yes; then
19936 postdeps_CXX='-library=Cstd -library=Crun'
19937 fi
19938 ;;
19939 esac
19940 ;;
19941esac
19942
19943
19944case " $postdeps_CXX " in
19945*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19946esac
19947 compiler_lib_search_dirs_CXX=
19948if test -n "${compiler_lib_search_path_CXX}"; then
19949 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19950fi
19951
19952
19953
19954
19955
19956
19957
19958
19959
19960
19961
19962
19963
19964
19965
19966
19967
19968
19969
19970
19971
19972
19973
19974
19975
19976
19977
19978
19979
19980
19981
19982 lt_prog_compiler_wl_CXX=
19983lt_prog_compiler_pic_CXX=
19984lt_prog_compiler_static_CXX=
19985
cristy73bd4a52010-10-05 11:24:23 +000019986
19987 # C++ specific cases for pic, static, wl, etc.
19988 if test "$GXX" = yes; then
19989 lt_prog_compiler_wl_CXX='-Wl,'
19990 lt_prog_compiler_static_CXX='-static'
19991
19992 case $host_os in
19993 aix*)
19994 # All AIX code is PIC.
19995 if test "$host_cpu" = ia64; then
19996 # AIX 5 now supports IA64 processor
19997 lt_prog_compiler_static_CXX='-Bstatic'
19998 fi
19999 ;;
20000
20001 amigaos*)
20002 case $host_cpu in
20003 powerpc)
20004 # see comment about AmigaOS4 .so support
20005 lt_prog_compiler_pic_CXX='-fPIC'
20006 ;;
20007 m68k)
20008 # FIXME: we need at least 68020 code to build shared libraries, but
20009 # adding the `-m68020' flag to GCC prevents building anything better,
20010 # like `-m68040'.
20011 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20012 ;;
20013 esac
20014 ;;
20015
20016 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20017 # PIC is the default for these OSes.
20018 ;;
20019 mingw* | cygwin* | os2* | pw32* | cegcc*)
20020 # This hack is so that the source file can tell whether it is being
20021 # built for inclusion in a dll (and should export symbols for example).
20022 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20023 # (--disable-auto-import) libraries
20024 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20025 ;;
20026 darwin* | rhapsody*)
20027 # PIC is the default on this platform
20028 # Common symbols not allowed in MH_DYLIB files
20029 lt_prog_compiler_pic_CXX='-fno-common'
20030 ;;
20031 *djgpp*)
20032 # DJGPP does not support shared libraries at all
20033 lt_prog_compiler_pic_CXX=
20034 ;;
cristy0c60a692010-11-04 01:09:47 +000020035 haiku*)
20036 # PIC is the default for Haiku.
20037 # The "-static" flag exists, but is broken.
20038 lt_prog_compiler_static_CXX=
20039 ;;
cristy73bd4a52010-10-05 11:24:23 +000020040 interix[3-9]*)
20041 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20042 # Instead, we relocate shared libraries at runtime.
20043 ;;
20044 sysv4*MP*)
20045 if test -d /usr/nec; then
20046 lt_prog_compiler_pic_CXX=-Kconform_pic
20047 fi
20048 ;;
20049 hpux*)
20050 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20051 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20052 # sets the default TLS model and affects inlining.
20053 case $host_cpu in
20054 hppa*64*)
20055 ;;
20056 *)
20057 lt_prog_compiler_pic_CXX='-fPIC'
20058 ;;
20059 esac
20060 ;;
20061 *qnx* | *nto*)
20062 # QNX uses GNU C++, but need to define -shared option too, otherwise
20063 # it will coredump.
20064 lt_prog_compiler_pic_CXX='-fPIC -shared'
20065 ;;
20066 *)
20067 lt_prog_compiler_pic_CXX='-fPIC'
20068 ;;
20069 esac
20070 else
20071 case $host_os in
20072 aix[4-9]*)
20073 # All AIX code is PIC.
20074 if test "$host_cpu" = ia64; then
20075 # AIX 5 now supports IA64 processor
20076 lt_prog_compiler_static_CXX='-Bstatic'
20077 else
20078 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20079 fi
20080 ;;
20081 chorus*)
20082 case $cc_basename in
20083 cxch68*)
20084 # Green Hills C++ Compiler
20085 # _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"
20086 ;;
20087 esac
20088 ;;
cristyda16f162011-02-19 23:52:17 +000020089 mingw* | cygwin* | os2* | pw32* | cegcc*)
20090 # This hack is so that the source file can tell whether it is being
20091 # built for inclusion in a dll (and should export symbols for example).
20092 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20093 ;;
cristy73bd4a52010-10-05 11:24:23 +000020094 dgux*)
20095 case $cc_basename in
20096 ec++*)
20097 lt_prog_compiler_pic_CXX='-KPIC'
20098 ;;
20099 ghcx*)
20100 # Green Hills C++ Compiler
20101 lt_prog_compiler_pic_CXX='-pic'
20102 ;;
20103 *)
20104 ;;
20105 esac
20106 ;;
20107 freebsd* | dragonfly*)
20108 # FreeBSD uses GNU C++
20109 ;;
20110 hpux9* | hpux10* | hpux11*)
20111 case $cc_basename in
20112 CC*)
20113 lt_prog_compiler_wl_CXX='-Wl,'
20114 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20115 if test "$host_cpu" != ia64; then
20116 lt_prog_compiler_pic_CXX='+Z'
20117 fi
20118 ;;
20119 aCC*)
20120 lt_prog_compiler_wl_CXX='-Wl,'
20121 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20122 case $host_cpu in
20123 hppa*64*|ia64*)
20124 # +Z the default
20125 ;;
20126 *)
20127 lt_prog_compiler_pic_CXX='+Z'
20128 ;;
20129 esac
20130 ;;
20131 *)
20132 ;;
20133 esac
20134 ;;
20135 interix*)
20136 # This is c89, which is MS Visual C++ (no shared libs)
20137 # Anyone wants to do a port?
20138 ;;
20139 irix5* | irix6* | nonstopux*)
20140 case $cc_basename in
20141 CC*)
20142 lt_prog_compiler_wl_CXX='-Wl,'
20143 lt_prog_compiler_static_CXX='-non_shared'
20144 # CC pic flag -KPIC is the default.
20145 ;;
20146 *)
20147 ;;
20148 esac
20149 ;;
cristy0c60a692010-11-04 01:09:47 +000020150 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000020151 case $cc_basename in
20152 KCC*)
20153 # KAI C++ Compiler
20154 lt_prog_compiler_wl_CXX='--backend -Wl,'
20155 lt_prog_compiler_pic_CXX='-fPIC'
20156 ;;
20157 ecpc* )
20158 # old Intel C++ for x86_64 which still supported -KPIC.
20159 lt_prog_compiler_wl_CXX='-Wl,'
20160 lt_prog_compiler_pic_CXX='-KPIC'
20161 lt_prog_compiler_static_CXX='-static'
20162 ;;
20163 icpc* )
20164 # Intel C++, used to be incompatible with GCC.
20165 # ICC 10 doesn't accept -KPIC any more.
20166 lt_prog_compiler_wl_CXX='-Wl,'
20167 lt_prog_compiler_pic_CXX='-fPIC'
20168 lt_prog_compiler_static_CXX='-static'
20169 ;;
20170 pgCC* | pgcpp*)
20171 # Portland Group C++ compiler
20172 lt_prog_compiler_wl_CXX='-Wl,'
20173 lt_prog_compiler_pic_CXX='-fpic'
20174 lt_prog_compiler_static_CXX='-Bstatic'
20175 ;;
20176 cxx*)
20177 # Compaq C++
20178 # Make sure the PIC flag is empty. It appears that all Alpha
20179 # Linux and Compaq Tru64 Unix objects are PIC.
20180 lt_prog_compiler_pic_CXX=
20181 lt_prog_compiler_static_CXX='-non_shared'
20182 ;;
cristy0c60a692010-11-04 01:09:47 +000020183 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20184 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000020185 lt_prog_compiler_wl_CXX='-Wl,'
20186 lt_prog_compiler_pic_CXX='-qpic'
20187 lt_prog_compiler_static_CXX='-qstaticlink'
20188 ;;
20189 *)
20190 case `$CC -V 2>&1 | sed 5q` in
20191 *Sun\ C*)
20192 # Sun C++ 5.9
20193 lt_prog_compiler_pic_CXX='-KPIC'
20194 lt_prog_compiler_static_CXX='-Bstatic'
20195 lt_prog_compiler_wl_CXX='-Qoption ld '
20196 ;;
20197 esac
20198 ;;
20199 esac
20200 ;;
20201 lynxos*)
20202 ;;
20203 m88k*)
20204 ;;
20205 mvs*)
20206 case $cc_basename in
20207 cxx*)
20208 lt_prog_compiler_pic_CXX='-W c,exportall'
20209 ;;
20210 *)
20211 ;;
20212 esac
20213 ;;
20214 netbsd*)
20215 ;;
20216 *qnx* | *nto*)
20217 # QNX uses GNU C++, but need to define -shared option too, otherwise
20218 # it will coredump.
20219 lt_prog_compiler_pic_CXX='-fPIC -shared'
20220 ;;
20221 osf3* | osf4* | osf5*)
20222 case $cc_basename in
20223 KCC*)
20224 lt_prog_compiler_wl_CXX='--backend -Wl,'
20225 ;;
20226 RCC*)
20227 # Rational C++ 2.4.1
20228 lt_prog_compiler_pic_CXX='-pic'
20229 ;;
20230 cxx*)
20231 # Digital/Compaq C++
20232 lt_prog_compiler_wl_CXX='-Wl,'
20233 # Make sure the PIC flag is empty. It appears that all Alpha
20234 # Linux and Compaq Tru64 Unix objects are PIC.
20235 lt_prog_compiler_pic_CXX=
20236 lt_prog_compiler_static_CXX='-non_shared'
20237 ;;
20238 *)
20239 ;;
20240 esac
20241 ;;
20242 psos*)
20243 ;;
20244 solaris*)
20245 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000020246 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000020247 # Sun C++ 4.2, 5.x and Centerline C++
20248 lt_prog_compiler_pic_CXX='-KPIC'
20249 lt_prog_compiler_static_CXX='-Bstatic'
20250 lt_prog_compiler_wl_CXX='-Qoption ld '
20251 ;;
20252 gcx*)
20253 # Green Hills C++ Compiler
20254 lt_prog_compiler_pic_CXX='-PIC'
20255 ;;
20256 *)
20257 ;;
20258 esac
20259 ;;
20260 sunos4*)
20261 case $cc_basename in
20262 CC*)
20263 # Sun C++ 4.x
20264 lt_prog_compiler_pic_CXX='-pic'
20265 lt_prog_compiler_static_CXX='-Bstatic'
20266 ;;
20267 lcc*)
20268 # Lucid
20269 lt_prog_compiler_pic_CXX='-pic'
20270 ;;
20271 *)
20272 ;;
20273 esac
20274 ;;
20275 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20276 case $cc_basename in
20277 CC*)
20278 lt_prog_compiler_wl_CXX='-Wl,'
20279 lt_prog_compiler_pic_CXX='-KPIC'
20280 lt_prog_compiler_static_CXX='-Bstatic'
20281 ;;
20282 esac
20283 ;;
20284 tandem*)
20285 case $cc_basename in
20286 NCC*)
20287 # NonStop-UX NCC 3.20
20288 lt_prog_compiler_pic_CXX='-KPIC'
20289 ;;
20290 *)
20291 ;;
20292 esac
20293 ;;
20294 vxworks*)
20295 ;;
20296 *)
20297 lt_prog_compiler_can_build_shared_CXX=no
20298 ;;
20299 esac
20300 fi
20301
20302case $host_os in
20303 # For platforms which do not support PIC, -DPIC is meaningless:
20304 *djgpp*)
20305 lt_prog_compiler_pic_CXX=
20306 ;;
20307 *)
20308 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20309 ;;
20310esac
cristy73bd4a52010-10-05 11:24:23 +000020311
cristyda16f162011-02-19 23:52:17 +000020312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20313$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20314if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
20315 $as_echo_n "(cached) " >&6
20316else
20317 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
20318fi
20319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
20320$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
20321lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000020322
20323#
20324# Check to make sure the PIC flag actually works.
20325#
20326if test -n "$lt_prog_compiler_pic_CXX"; then
20327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20328$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020329if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020330 $as_echo_n "(cached) " >&6
20331else
20332 lt_cv_prog_compiler_pic_works_CXX=no
20333 ac_outfile=conftest.$ac_objext
20334 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20335 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20336 # Insert the option either (1) after the last *FLAGS variable, or
20337 # (2) before a word containing "conftest.", or (3) at the end.
20338 # Note that $ac_compile itself does not contain backslashes and begins
20339 # with a dollar sign (not a hyphen), so the echo should work correctly.
20340 # The option is referenced via a variable to avoid confusing sed.
20341 lt_compile=`echo "$ac_compile" | $SED \
20342 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20343 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20344 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000020345 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000020346 (eval "$lt_compile" 2>conftest.err)
20347 ac_status=$?
20348 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000020349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000020350 if (exit $ac_status) && test -s "$ac_outfile"; then
20351 # The compiler can only warn and ignore the option if not recognized
20352 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000020353 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020354 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20355 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20356 lt_cv_prog_compiler_pic_works_CXX=yes
20357 fi
20358 fi
20359 $RM conftest*
20360
20361fi
20362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20363$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20364
20365if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20366 case $lt_prog_compiler_pic_CXX in
20367 "" | " "*) ;;
20368 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20369 esac
20370else
20371 lt_prog_compiler_pic_CXX=
20372 lt_prog_compiler_can_build_shared_CXX=no
20373fi
20374
20375fi
20376
20377
20378
cristyda16f162011-02-19 23:52:17 +000020379
20380
cristy73bd4a52010-10-05 11:24:23 +000020381#
20382# Check to make sure the static flag actually works.
20383#
20384wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20386$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020387if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020388 $as_echo_n "(cached) " >&6
20389else
20390 lt_cv_prog_compiler_static_works_CXX=no
20391 save_LDFLAGS="$LDFLAGS"
20392 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20393 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20394 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20395 # The linker can only warn and ignore the option if not recognized
20396 # So say no if there are warnings
20397 if test -s conftest.err; then
20398 # Append any errors to the config.log.
20399 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000020400 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020401 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20402 if diff conftest.exp conftest.er2 >/dev/null; then
20403 lt_cv_prog_compiler_static_works_CXX=yes
20404 fi
20405 else
20406 lt_cv_prog_compiler_static_works_CXX=yes
20407 fi
20408 fi
20409 $RM -r conftest*
20410 LDFLAGS="$save_LDFLAGS"
20411
20412fi
20413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20414$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20415
20416if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20417 :
20418else
20419 lt_prog_compiler_static_CXX=
20420fi
20421
20422
20423
20424
20425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20426$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020427if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020428 $as_echo_n "(cached) " >&6
20429else
20430 lt_cv_prog_compiler_c_o_CXX=no
20431 $RM -r conftest 2>/dev/null
20432 mkdir conftest
20433 cd conftest
20434 mkdir out
20435 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20436
20437 lt_compiler_flag="-o out/conftest2.$ac_objext"
20438 # Insert the option either (1) after the last *FLAGS variable, or
20439 # (2) before a word containing "conftest.", or (3) at the end.
20440 # Note that $ac_compile itself does not contain backslashes and begins
20441 # with a dollar sign (not a hyphen), so the echo should work correctly.
20442 lt_compile=`echo "$ac_compile" | $SED \
20443 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20444 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20445 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000020446 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000020447 (eval "$lt_compile" 2>out/conftest.err)
20448 ac_status=$?
20449 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000020450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000020451 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20452 then
20453 # The compiler can only warn and ignore the option if not recognized
20454 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000020455 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020456 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20457 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20458 lt_cv_prog_compiler_c_o_CXX=yes
20459 fi
20460 fi
20461 chmod u+w . 2>&5
20462 $RM conftest*
20463 # SGI C++ compiler will create directory out/ii_files/ for
20464 # template instantiation
20465 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20466 $RM out/* && rmdir out
20467 cd ..
20468 $RM -r conftest
20469 $RM conftest*
20470
20471fi
20472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20473$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20474
20475
20476
20477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20478$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020479if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020480 $as_echo_n "(cached) " >&6
20481else
20482 lt_cv_prog_compiler_c_o_CXX=no
20483 $RM -r conftest 2>/dev/null
20484 mkdir conftest
20485 cd conftest
20486 mkdir out
20487 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20488
20489 lt_compiler_flag="-o out/conftest2.$ac_objext"
20490 # Insert the option either (1) after the last *FLAGS variable, or
20491 # (2) before a word containing "conftest.", or (3) at the end.
20492 # Note that $ac_compile itself does not contain backslashes and begins
20493 # with a dollar sign (not a hyphen), so the echo should work correctly.
20494 lt_compile=`echo "$ac_compile" | $SED \
20495 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20496 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20497 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000020498 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000020499 (eval "$lt_compile" 2>out/conftest.err)
20500 ac_status=$?
20501 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000020502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000020503 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20504 then
20505 # The compiler can only warn and ignore the option if not recognized
20506 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000020507 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020508 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20509 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20510 lt_cv_prog_compiler_c_o_CXX=yes
20511 fi
20512 fi
20513 chmod u+w . 2>&5
20514 $RM conftest*
20515 # SGI C++ compiler will create directory out/ii_files/ for
20516 # template instantiation
20517 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20518 $RM out/* && rmdir out
20519 cd ..
20520 $RM -r conftest
20521 $RM conftest*
20522
20523fi
20524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20525$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20526
20527
20528
20529
20530hard_links="nottested"
20531if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20532 # do not overwrite the value of need_locks provided by the user
20533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20534$as_echo_n "checking if we can lock with hard links... " >&6; }
20535 hard_links=yes
20536 $RM conftest*
20537 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20538 touch conftest.a
20539 ln conftest.a conftest.b 2>&5 || hard_links=no
20540 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20542$as_echo "$hard_links" >&6; }
20543 if test "$hard_links" = no; then
20544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20545$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20546 need_locks=warn
20547 fi
20548else
20549 need_locks=no
20550fi
20551
20552
20553
20554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20555$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20556
20557 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000020558 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000020559 case $host_os in
20560 aix[4-9]*)
20561 # If we're using GNU nm, then we don't want the "-C" option.
20562 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000020563 # Also, AIX nm treats weak defined symbols like other global defined
20564 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000020565 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000020566 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 +000020567 else
20568 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'
20569 fi
20570 ;;
20571 pw32*)
20572 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000020573 ;;
cristy73bd4a52010-10-05 11:24:23 +000020574 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000020575 case $cc_basename in
cristy99bd5232011-12-07 14:38:20 +000020576 cl*)
20577 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
20578 ;;
cristyda16f162011-02-19 23:52:17 +000020579 *)
20580 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'
20581 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
20582 ;;
20583 esac
20584 ;;
cristy73bd4a52010-10-05 11:24:23 +000020585 *)
20586 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000020587 ;;
cristy73bd4a52010-10-05 11:24:23 +000020588 esac
cristy73bd4a52010-10-05 11:24:23 +000020589
20590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20591$as_echo "$ld_shlibs_CXX" >&6; }
20592test "$ld_shlibs_CXX" = no && can_build_shared=no
20593
20594with_gnu_ld_CXX=$with_gnu_ld
20595
20596
20597
20598
20599
20600
20601#
20602# Do we need to explicitly link libc?
20603#
20604case "x$archive_cmds_need_lc_CXX" in
20605x|xyes)
20606 # Assume -lc should be added
20607 archive_cmds_need_lc_CXX=yes
20608
20609 if test "$enable_shared" = yes && test "$GCC" = yes; then
20610 case $archive_cmds_CXX in
20611 *'~'*)
20612 # FIXME: we may have to deal with multi-command sequences.
20613 ;;
20614 '$CC '*)
20615 # Test whether the compiler implicitly links with -lc since on some
20616 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20617 # to ld, don't add -lc before -lgcc.
20618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20619$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020620if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000020621 $as_echo_n "(cached) " >&6
20622else
20623 $RM conftest*
20624 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000020625
cristy0c60a692010-11-04 01:09:47 +000020626 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000020627 (eval $ac_compile) 2>&5
20628 ac_status=$?
20629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20630 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000020631 soname=conftest
20632 lib=conftest
20633 libobjs=conftest.$ac_objext
20634 deplibs=
20635 wl=$lt_prog_compiler_wl_CXX
20636 pic_flag=$lt_prog_compiler_pic_CXX
20637 compiler_flags=-v
20638 linker_flags=-v
20639 verstring=
20640 output_objdir=.
20641 libname=conftest
20642 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20643 allow_undefined_flag_CXX=
20644 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 +000020645 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20646 ac_status=$?
20647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20648 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000020649 then
20650 lt_cv_archive_cmds_need_lc_CXX=no
20651 else
20652 lt_cv_archive_cmds_need_lc_CXX=yes
20653 fi
20654 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20655 else
20656 cat conftest.err 1>&5
20657 fi
20658 $RM conftest*
20659
20660fi
20661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20662$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20663 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000020664 ;;
20665 esac
20666 fi
20667 ;;
20668esac
20669
20670
20671
20672
20673
20674
20675
20676
20677
20678
20679
20680
20681
20682
20683
20684
20685
20686
20687
20688
20689
20690
20691
20692
20693
20694
20695
20696
20697
20698
20699
20700
20701
20702
20703
20704
20705
20706
20707
20708
20709
20710
20711
20712
20713
20714
20715
20716
20717
20718
20719
20720
20721
20722
20723
20724
20725
20726
20727
20728
20729
20730
cristy73bd4a52010-10-05 11:24:23 +000020731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20732$as_echo_n "checking dynamic linker characteristics... " >&6; }
20733
20734library_names_spec=
20735libname_spec='lib$name'
20736soname_spec=
20737shrext_cmds=".so"
20738postinstall_cmds=
20739postuninstall_cmds=
20740finish_cmds=
20741finish_eval=
20742shlibpath_var=
20743shlibpath_overrides_runpath=unknown
20744version_type=none
20745dynamic_linker="$host_os ld.so"
20746sys_lib_dlsearch_path_spec="/lib /usr/lib"
20747need_lib_prefix=unknown
20748hardcode_into_libs=no
20749
20750# when you set need_version to no, make sure it does not cause -set_version
20751# flags to be left without arguments
20752need_version=unknown
20753
20754case $host_os in
20755aix3*)
cristy99bd5232011-12-07 14:38:20 +000020756 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020757 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20758 shlibpath_var=LIBPATH
20759
20760 # AIX 3 has no versioning support, so we append a major version to the name.
20761 soname_spec='${libname}${release}${shared_ext}$major'
20762 ;;
20763
20764aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000020765 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020766 need_lib_prefix=no
20767 need_version=no
20768 hardcode_into_libs=yes
20769 if test "$host_cpu" = ia64; then
20770 # AIX 5 supports IA64
20771 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20772 shlibpath_var=LD_LIBRARY_PATH
20773 else
20774 # With GCC up to 2.95.x, collect2 would create an import file
20775 # for dependence libraries. The import file would start with
20776 # the line `#! .'. This would cause the generated library to
20777 # depend on `.', always an invalid library. This was fixed in
20778 # development snapshots of GCC prior to 3.0.
20779 case $host_os in
20780 aix4 | aix4.[01] | aix4.[01].*)
20781 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20782 echo ' yes '
20783 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20784 :
20785 else
20786 can_build_shared=no
20787 fi
20788 ;;
20789 esac
20790 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20791 # soname into executable. Probably we can add versioning support to
20792 # collect2, so additional links can be useful in future.
20793 if test "$aix_use_runtimelinking" = yes; then
20794 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20795 # instead of lib<name>.a to let people know that these are not
20796 # typical AIX shared libraries.
20797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20798 else
20799 # We preserve .a as extension for shared libraries through AIX4.2
20800 # and later when we are not doing run time linking.
20801 library_names_spec='${libname}${release}.a $libname.a'
20802 soname_spec='${libname}${release}${shared_ext}$major'
20803 fi
20804 shlibpath_var=LIBPATH
20805 fi
20806 ;;
20807
20808amigaos*)
20809 case $host_cpu in
20810 powerpc)
20811 # Since July 2007 AmigaOS4 officially supports .so libraries.
20812 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20814 ;;
20815 m68k)
20816 library_names_spec='$libname.ixlibrary $libname.a'
20817 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000020818 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 +000020819 ;;
20820 esac
20821 ;;
20822
20823beos*)
20824 library_names_spec='${libname}${shared_ext}'
20825 dynamic_linker="$host_os ld.so"
20826 shlibpath_var=LIBRARY_PATH
20827 ;;
20828
20829bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000020830 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020831 need_version=no
20832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20833 soname_spec='${libname}${release}${shared_ext}$major'
20834 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20835 shlibpath_var=LD_LIBRARY_PATH
20836 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20837 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20838 # the default ld.so.conf also contains /usr/contrib/lib and
20839 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20840 # libtool to hard-code these into programs
20841 ;;
20842
20843cygwin* | mingw* | pw32* | cegcc*)
20844 version_type=windows
20845 shrext_cmds=".dll"
20846 need_version=no
20847 need_lib_prefix=no
20848
cristyda16f162011-02-19 23:52:17 +000020849 case $GCC,$cc_basename in
20850 yes,*)
20851 # gcc
cristy73bd4a52010-10-05 11:24:23 +000020852 library_names_spec='$libname.dll.a'
20853 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20854 postinstall_cmds='base_file=`basename \${file}`~
20855 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20856 dldir=$destdir/`dirname \$dlpath`~
20857 test -d \$dldir || mkdir -p \$dldir~
20858 $install_prog $dir/$dlname \$dldir/$dlname~
20859 chmod a+x \$dldir/$dlname~
20860 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20861 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20862 fi'
20863 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20864 dlpath=$dir/\$dldll~
20865 $RM \$dlpath'
20866 shlibpath_overrides_runpath=yes
20867
20868 case $host_os in
20869 cygwin*)
20870 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20871 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000020872
cristy73bd4a52010-10-05 11:24:23 +000020873 ;;
20874 mingw* | cegcc*)
20875 # MinGW DLLs use traditional 'lib' prefix
20876 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000020877 ;;
20878 pw32*)
20879 # pw32 DLLs use 'pw' prefix rather than 'lib'
20880 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20881 ;;
20882 esac
cristyda16f162011-02-19 23:52:17 +000020883 dynamic_linker='Win32 ld.exe'
20884 ;;
20885
20886 *,cl*)
20887 # Native MSVC
20888 libname_spec='$name'
20889 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20890 library_names_spec='${libname}.dll.lib'
20891
20892 case $build_os in
20893 mingw*)
20894 sys_lib_search_path_spec=
20895 lt_save_ifs=$IFS
20896 IFS=';'
20897 for lt_path in $LIB
20898 do
20899 IFS=$lt_save_ifs
20900 # Let DOS variable expansion print the short 8.3 style file name.
20901 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
20902 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
20903 done
20904 IFS=$lt_save_ifs
20905 # Convert to MSYS style.
20906 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
20907 ;;
20908 cygwin*)
20909 # Convert to unix form, then to dos form, then back to unix form
20910 # but this time dos style (no spaces!) so that the unix form looks
20911 # like /cygdrive/c/PROGRA~1:/cygdr...
20912 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
20913 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
20914 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20915 ;;
20916 *)
20917 sys_lib_search_path_spec="$LIB"
20918 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
20919 # It is most probably a Windows format PATH.
20920 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20921 else
20922 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20923 fi
20924 # FIXME: find the short name or the path components, as spaces are
20925 # common. (e.g. "Program Files" -> "PROGRA~1")
20926 ;;
20927 esac
20928
20929 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20930 postinstall_cmds='base_file=`basename \${file}`~
20931 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20932 dldir=$destdir/`dirname \$dlpath`~
20933 test -d \$dldir || mkdir -p \$dldir~
20934 $install_prog $dir/$dlname \$dldir/$dlname'
20935 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20936 dlpath=$dir/\$dldll~
20937 $RM \$dlpath'
20938 shlibpath_overrides_runpath=yes
20939 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000020940 ;;
20941
20942 *)
cristyda16f162011-02-19 23:52:17 +000020943 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000020944 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000020945 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000020946 ;;
20947 esac
cristy73bd4a52010-10-05 11:24:23 +000020948 # FIXME: first we should search . and the directory the executable is in
20949 shlibpath_var=PATH
20950 ;;
20951
20952darwin* | rhapsody*)
20953 dynamic_linker="$host_os dyld"
20954 version_type=darwin
20955 need_lib_prefix=no
20956 need_version=no
20957 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20958 soname_spec='${libname}${release}${major}$shared_ext'
20959 shlibpath_overrides_runpath=yes
20960 shlibpath_var=DYLD_LIBRARY_PATH
20961 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20962
20963 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20964 ;;
20965
20966dgux*)
cristy99bd5232011-12-07 14:38:20 +000020967 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020968 need_lib_prefix=no
20969 need_version=no
20970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20971 soname_spec='${libname}${release}${shared_ext}$major'
20972 shlibpath_var=LD_LIBRARY_PATH
20973 ;;
20974
cristy73bd4a52010-10-05 11:24:23 +000020975freebsd* | dragonfly*)
20976 # DragonFly does not have aout. When/if they implement a new
20977 # versioning mechanism, adjust this.
20978 if test -x /usr/bin/objformat; then
20979 objformat=`/usr/bin/objformat`
20980 else
20981 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020982 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000020983 *) objformat=elf ;;
20984 esac
20985 fi
20986 version_type=freebsd-$objformat
20987 case $version_type in
20988 freebsd-elf*)
20989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20990 need_version=no
20991 need_lib_prefix=no
20992 ;;
20993 freebsd-*)
20994 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20995 need_version=yes
20996 ;;
20997 esac
20998 shlibpath_var=LD_LIBRARY_PATH
20999 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000021000 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000021001 shlibpath_overrides_runpath=yes
21002 ;;
21003 freebsd3.[01]* | freebsdelf3.[01]*)
21004 shlibpath_overrides_runpath=yes
21005 hardcode_into_libs=yes
21006 ;;
21007 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21008 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21009 shlibpath_overrides_runpath=no
21010 hardcode_into_libs=yes
21011 ;;
21012 *) # from 4.6 on, and DragonFly
21013 shlibpath_overrides_runpath=yes
21014 hardcode_into_libs=yes
21015 ;;
21016 esac
21017 ;;
21018
21019gnu*)
cristy99bd5232011-12-07 14:38:20 +000021020 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021021 need_lib_prefix=no
21022 need_version=no
21023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21024 soname_spec='${libname}${release}${shared_ext}$major'
21025 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000021026 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000021027 hardcode_into_libs=yes
21028 ;;
21029
cristy0c60a692010-11-04 01:09:47 +000021030haiku*)
cristy99bd5232011-12-07 14:38:20 +000021031 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000021032 need_lib_prefix=no
21033 need_version=no
21034 dynamic_linker="$host_os runtime_loader"
21035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21036 soname_spec='${libname}${release}${shared_ext}$major'
21037 shlibpath_var=LIBRARY_PATH
21038 shlibpath_overrides_runpath=yes
21039 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
21040 hardcode_into_libs=yes
21041 ;;
21042
cristy73bd4a52010-10-05 11:24:23 +000021043hpux9* | hpux10* | hpux11*)
21044 # Give a soname corresponding to the major version so that dld.sl refuses to
21045 # link against other versions.
21046 version_type=sunos
21047 need_lib_prefix=no
21048 need_version=no
21049 case $host_cpu in
21050 ia64*)
21051 shrext_cmds='.so'
21052 hardcode_into_libs=yes
21053 dynamic_linker="$host_os dld.so"
21054 shlibpath_var=LD_LIBRARY_PATH
21055 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21057 soname_spec='${libname}${release}${shared_ext}$major'
21058 if test "X$HPUX_IA64_MODE" = X32; then
21059 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21060 else
21061 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21062 fi
21063 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21064 ;;
21065 hppa*64*)
21066 shrext_cmds='.sl'
21067 hardcode_into_libs=yes
21068 dynamic_linker="$host_os dld.sl"
21069 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21070 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21072 soname_spec='${libname}${release}${shared_ext}$major'
21073 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21074 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21075 ;;
21076 *)
21077 shrext_cmds='.sl'
21078 dynamic_linker="$host_os dld.sl"
21079 shlibpath_var=SHLIB_PATH
21080 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21082 soname_spec='${libname}${release}${shared_ext}$major'
21083 ;;
21084 esac
cristy0c60a692010-11-04 01:09:47 +000021085 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000021086 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000021087 # or fails outright, so override atomically:
21088 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000021089 ;;
21090
21091interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000021092 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021093 need_lib_prefix=no
21094 need_version=no
21095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21096 soname_spec='${libname}${release}${shared_ext}$major'
21097 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21098 shlibpath_var=LD_LIBRARY_PATH
21099 shlibpath_overrides_runpath=no
21100 hardcode_into_libs=yes
21101 ;;
21102
21103irix5* | irix6* | nonstopux*)
21104 case $host_os in
21105 nonstopux*) version_type=nonstopux ;;
21106 *)
21107 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000021108 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021109 else
21110 version_type=irix
21111 fi ;;
21112 esac
21113 need_lib_prefix=no
21114 need_version=no
21115 soname_spec='${libname}${release}${shared_ext}$major'
21116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21117 case $host_os in
21118 irix5* | nonstopux*)
21119 libsuff= shlibsuff=
21120 ;;
21121 *)
21122 case $LD in # libtool.m4 will add one of these switches to LD
21123 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21124 libsuff= shlibsuff= libmagic=32-bit;;
21125 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21126 libsuff=32 shlibsuff=N32 libmagic=N32;;
21127 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21128 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21129 *) libsuff= shlibsuff= libmagic=never-match;;
21130 esac
21131 ;;
21132 esac
21133 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21134 shlibpath_overrides_runpath=no
21135 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21136 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21137 hardcode_into_libs=yes
21138 ;;
21139
21140# No shared lib support for Linux oldld, aout, or coff.
21141linux*oldld* | linux*aout* | linux*coff*)
21142 dynamic_linker=no
21143 ;;
21144
cristy99bd5232011-12-07 14:38:20 +000021145# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000021146linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000021147 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021148 need_lib_prefix=no
21149 need_version=no
21150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21151 soname_spec='${libname}${release}${shared_ext}$major'
21152 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21153 shlibpath_var=LD_LIBRARY_PATH
21154 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000021155
cristy73bd4a52010-10-05 11:24:23 +000021156 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000021157 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000021158 $as_echo_n "(cached) " >&6
21159else
21160 lt_cv_shlibpath_overrides_runpath=no
21161 save_LDFLAGS=$LDFLAGS
21162 save_libdir=$libdir
21163 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21164 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000021166/* end confdefs.h. */
21167
21168int
21169main ()
21170{
21171
21172 ;
21173 return 0;
21174}
21175_ACEOF
21176if ac_fn_cxx_try_link "$LINENO"; then :
21177 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000021178 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000021179fi
21180fi
21181rm -f core conftest.err conftest.$ac_objext \
21182 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000021183 LDFLAGS=$save_LDFLAGS
21184 libdir=$save_libdir
21185
21186fi
21187
21188 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000021189
21190 # This implies no fast_install, which is unacceptable.
21191 # Some rework will be needed to allow for fast_install
21192 # before this can be enabled.
21193 hardcode_into_libs=yes
21194
21195 # Add ABI-specific directories to the system library path.
21196 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
21197
21198 # Append ld.so.conf contents to the search path
21199 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000021200 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 +000021201 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000021202
cristy73bd4a52010-10-05 11:24:23 +000021203 fi
21204
21205 # We used to test for /lib/ld.so.1 and disable shared libraries on
21206 # powerpc, because MkLinux only supported shared libraries with the
21207 # GNU dynamic linker. Since this was broken with cross compilers,
21208 # most powerpc-linux boxes support dynamic linking these days and
21209 # people can always --disable-shared, the test was removed, and we
21210 # assume the GNU/Linux dynamic linker is in use.
21211 dynamic_linker='GNU/Linux ld.so'
21212 ;;
21213
21214netbsd*)
21215 version_type=sunos
21216 need_lib_prefix=no
21217 need_version=no
21218 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21220 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21221 dynamic_linker='NetBSD (a.out) ld.so'
21222 else
21223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21224 soname_spec='${libname}${release}${shared_ext}$major'
21225 dynamic_linker='NetBSD ld.elf_so'
21226 fi
21227 shlibpath_var=LD_LIBRARY_PATH
21228 shlibpath_overrides_runpath=yes
21229 hardcode_into_libs=yes
21230 ;;
21231
21232newsos6)
cristy99bd5232011-12-07 14:38:20 +000021233 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21235 shlibpath_var=LD_LIBRARY_PATH
21236 shlibpath_overrides_runpath=yes
21237 ;;
21238
21239*nto* | *qnx*)
21240 version_type=qnx
21241 need_lib_prefix=no
21242 need_version=no
21243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21244 soname_spec='${libname}${release}${shared_ext}$major'
21245 shlibpath_var=LD_LIBRARY_PATH
21246 shlibpath_overrides_runpath=no
21247 hardcode_into_libs=yes
21248 dynamic_linker='ldqnx.so'
21249 ;;
21250
21251openbsd*)
21252 version_type=sunos
21253 sys_lib_dlsearch_path_spec="/usr/lib"
21254 need_lib_prefix=no
21255 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21256 case $host_os in
21257 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21258 *) need_version=no ;;
21259 esac
21260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21261 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21262 shlibpath_var=LD_LIBRARY_PATH
21263 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21264 case $host_os in
21265 openbsd2.[89] | openbsd2.[89].*)
21266 shlibpath_overrides_runpath=no
21267 ;;
21268 *)
21269 shlibpath_overrides_runpath=yes
21270 ;;
21271 esac
21272 else
21273 shlibpath_overrides_runpath=yes
21274 fi
21275 ;;
21276
21277os2*)
21278 libname_spec='$name'
21279 shrext_cmds=".dll"
21280 need_lib_prefix=no
21281 library_names_spec='$libname${shared_ext} $libname.a'
21282 dynamic_linker='OS/2 ld.exe'
21283 shlibpath_var=LIBPATH
21284 ;;
21285
21286osf3* | osf4* | osf5*)
21287 version_type=osf
21288 need_lib_prefix=no
21289 need_version=no
21290 soname_spec='${libname}${release}${shared_ext}$major'
21291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21292 shlibpath_var=LD_LIBRARY_PATH
21293 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21294 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21295 ;;
21296
21297rdos*)
21298 dynamic_linker=no
21299 ;;
21300
21301solaris*)
cristy99bd5232011-12-07 14:38:20 +000021302 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021303 need_lib_prefix=no
21304 need_version=no
21305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21306 soname_spec='${libname}${release}${shared_ext}$major'
21307 shlibpath_var=LD_LIBRARY_PATH
21308 shlibpath_overrides_runpath=yes
21309 hardcode_into_libs=yes
21310 # ldd complains unless libraries are executable
21311 postinstall_cmds='chmod +x $lib'
21312 ;;
21313
21314sunos4*)
21315 version_type=sunos
21316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21317 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21318 shlibpath_var=LD_LIBRARY_PATH
21319 shlibpath_overrides_runpath=yes
21320 if test "$with_gnu_ld" = yes; then
21321 need_lib_prefix=no
21322 fi
21323 need_version=yes
21324 ;;
21325
21326sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000021327 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21329 soname_spec='${libname}${release}${shared_ext}$major'
21330 shlibpath_var=LD_LIBRARY_PATH
21331 case $host_vendor in
21332 sni)
21333 shlibpath_overrides_runpath=no
21334 need_lib_prefix=no
21335 runpath_var=LD_RUN_PATH
21336 ;;
21337 siemens)
21338 need_lib_prefix=no
21339 ;;
21340 motorola)
21341 need_lib_prefix=no
21342 need_version=no
21343 shlibpath_overrides_runpath=no
21344 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21345 ;;
21346 esac
21347 ;;
21348
21349sysv4*MP*)
21350 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000021351 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021352 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21353 soname_spec='$libname${shared_ext}.$major'
21354 shlibpath_var=LD_LIBRARY_PATH
21355 fi
21356 ;;
21357
21358sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21359 version_type=freebsd-elf
21360 need_lib_prefix=no
21361 need_version=no
21362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21363 soname_spec='${libname}${release}${shared_ext}$major'
21364 shlibpath_var=LD_LIBRARY_PATH
21365 shlibpath_overrides_runpath=yes
21366 hardcode_into_libs=yes
21367 if test "$with_gnu_ld" = yes; then
21368 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21369 else
21370 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21371 case $host_os in
21372 sco3.2v5*)
21373 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21374 ;;
21375 esac
21376 fi
21377 sys_lib_dlsearch_path_spec='/usr/lib'
21378 ;;
21379
21380tpf*)
21381 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000021382 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021383 need_lib_prefix=no
21384 need_version=no
21385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21386 shlibpath_var=LD_LIBRARY_PATH
21387 shlibpath_overrides_runpath=no
21388 hardcode_into_libs=yes
21389 ;;
21390
21391uts4*)
cristy99bd5232011-12-07 14:38:20 +000021392 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21394 soname_spec='${libname}${release}${shared_ext}$major'
21395 shlibpath_var=LD_LIBRARY_PATH
21396 ;;
21397
21398*)
21399 dynamic_linker=no
21400 ;;
21401esac
21402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21403$as_echo "$dynamic_linker" >&6; }
21404test "$dynamic_linker" = no && can_build_shared=no
21405
21406variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21407if test "$GCC" = yes; then
21408 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21409fi
21410
21411if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21412 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21413fi
21414if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21415 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21416fi
21417
21418
21419
21420
21421
21422
21423
21424
21425
21426
21427
21428
21429
21430
21431
21432
21433
21434
21435
21436
21437
21438
21439
21440
21441
21442
21443
21444
21445
21446
21447
21448
21449
21450
21451
21452
cristy0c60a692010-11-04 01:09:47 +000021453
21454
cristy73bd4a52010-10-05 11:24:23 +000021455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21456$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21457hardcode_action_CXX=
21458if test -n "$hardcode_libdir_flag_spec_CXX" ||
21459 test -n "$runpath_var_CXX" ||
21460 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21461
21462 # We can hardcode non-existent directories.
21463 if test "$hardcode_direct_CXX" != no &&
21464 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21465 # have to relink, otherwise we might link with an installed library
21466 # when we should be linking with a yet-to-be-installed one
21467 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21468 test "$hardcode_minus_L_CXX" != no; then
21469 # Linking always hardcodes the temporary library directory.
21470 hardcode_action_CXX=relink
21471 else
21472 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21473 hardcode_action_CXX=immediate
21474 fi
21475else
21476 # We cannot hardcode anything, or else we can only hardcode existing
21477 # directories.
21478 hardcode_action_CXX=unsupported
21479fi
21480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21481$as_echo "$hardcode_action_CXX" >&6; }
21482
21483if test "$hardcode_action_CXX" = relink ||
21484 test "$inherit_rpath_CXX" = yes; then
21485 # Fast installation is not supported
21486 enable_fast_install=no
21487elif test "$shlibpath_overrides_runpath" = yes ||
21488 test "$enable_shared" = no; then
21489 # Fast installation is not necessary
21490 enable_fast_install=needless
21491fi
21492
21493
21494
21495
21496
21497
21498
21499 fi # test -n "$compiler"
21500
21501 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000021502 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000021503 LDCXX=$LD
21504 LD=$lt_save_LD
21505 GCC=$lt_save_GCC
21506 with_gnu_ld=$lt_save_with_gnu_ld
21507 lt_cv_path_LDCXX=$lt_cv_path_LD
21508 lt_cv_path_LD=$lt_save_path_LD
21509 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21510 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21511fi # test "$_lt_caught_CXX_error" != yes
21512
21513ac_ext=c
21514ac_cpp='$CPP $CPPFLAGS'
21515ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21516ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21517ac_compiler_gnu=$ac_cv_c_compiler_gnu
21518
21519
21520
21521
21522
21523
21524
21525
21526
21527
21528
21529
21530
cristy99bd5232011-12-07 14:38:20 +000021531
21532
cristy73bd4a52010-10-05 11:24:23 +000021533 ac_config_commands="$ac_config_commands libtool"
21534
21535
21536
21537
21538# Only expand once:
21539
21540
21541
cristy3ed852e2009-09-05 21:47:34 +000021542
21543
cristy3ed852e2009-09-05 21:47:34 +000021544# Check to see if building shared libraries
21545libtool_build_shared_libs='no'
21546if test "$enable_shared" = 'yes'; then
21547 libtool_build_shared_libs='yes'
21548fi
21549
21550# Check to see if building static libraries
21551libtool_build_static_libs='no'
21552if test "$enable_static" = 'yes'; then
21553 libtool_build_static_libs='yes'
21554fi
21555
cristy73bd4a52010-10-05 11:24:23 +000021556 if test "${libtool_build_shared_libs}" = 'yes'; then
21557 WITH_SHARED_LIBS_TRUE=
21558 WITH_SHARED_LIBS_FALSE='#'
21559else
21560 WITH_SHARED_LIBS_TRUE='#'
21561 WITH_SHARED_LIBS_FALSE=
21562fi
21563
cristy3ed852e2009-09-05 21:47:34 +000021564#
21565# Enable support for building loadable modules
21566#
cristyaf4cbf32012-10-16 23:47:41 +000021567build_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000021568
21569# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000021570if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021571 withval=$with_modules; with_modules=$withval
21572else
cristy5a1cefd2010-01-06 20:42:35 +000021573 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000021574fi
21575
21576
21577# Only allow building loadable modules if we are building shared libraries
21578if test "$with_modules" != 'no' ; then
21579 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000021580 { $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 +000021581$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
cristyc6722092012-10-14 00:19:31 +000021582 build_modules='no'
21583 else
21584 build_modules='yes'
21585 fi
cristy3ed852e2009-09-05 21:47:34 +000021586fi
cristyc6722092012-10-14 00:19:31 +000021587if test "$build_modules" != 'no' ; then
cristy3ed852e2009-09-05 21:47:34 +000021588
cristy8b350f62009-11-15 23:12:43 +000021589$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021590
cristyfa161182012-12-19 15:45:28 +000021591 MAGICK_FEATURES="$MAGICK_FEATURES Modules"
cristy3ed852e2009-09-05 21:47:34 +000021592fi
cristyc6722092012-10-14 00:19:31 +000021593 if test "$build_modules" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +000021594 WITH_MODULES_TRUE=
21595 WITH_MODULES_FALSE='#'
21596else
21597 WITH_MODULES_TRUE='#'
21598 WITH_MODULES_FALSE=
21599fi
21600
cristy3ed852e2009-09-05 21:47:34 +000021601
cristy3ed852e2009-09-05 21:47:34 +000021602# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000021603# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000021604# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000021605if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021606 enableval=$enable_delegate_build; enable_delegate_build=$enableval
21607else
21608 enable_delegate_build='no'
21609fi
21610
21611
21612# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000021613if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021614 enableval=$enable_deprecated; enable_deprecated=$enableval
21615else
21616 enable_deprecated='no'
21617fi
21618
21619
21620if test "$enable_deprecated" = 'yes'; then
21621
cristy8b350f62009-11-15 23:12:43 +000021622$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021623
21624else
21625 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
21626fi
21627
21628# Build a version of ImageMagick which operates uninstalled.
21629# Used to build distributions located via MAGICK_HOME / executable path
21630# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000021631if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021632 enableval=$enable_installed; enable_installed=$enableval
21633else
21634 enable_installed='yes'
21635fi
21636
21637
21638if test "$enable_installed" = 'yes'; then
21639
cristy8b350f62009-11-15 23:12:43 +000021640$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021641
21642else
21643 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
21644fi
21645
21646# Permit enciphering and deciphering image pixels.
21647# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000021648if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021649 enableval=$enable_cipher; enable_cipher=$enableval
21650else
21651 enable_cipher='yes'
21652fi
21653
21654
21655if test "$enable_cipher" = 'yes'; then
21656
cristy8b350f62009-11-15 23:12:43 +000021657$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021658
cristy0f6fc2d2015-05-30 00:49:11 +000021659 MAGICK_FEATURES="Cipher $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021660fi
21661
cristy6e3607c2011-09-13 13:59:17 +000021662# Build a zero-configuration version of ImageMagick.
21663# Check whether --enable-zero-configuration was given.
21664if test "${enable_zero_configuration+set}" = set; then :
21665 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
cristy3ed852e2009-09-05 21:47:34 +000021666else
cristy6e3607c2011-09-13 13:59:17 +000021667 enable_zero_configuration='no'
cristy3ed852e2009-09-05 21:47:34 +000021668fi
21669
21670
cristy6e3607c2011-09-13 13:59:17 +000021671if test "$enable_zero_configuration" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021672
cristy6e3607c2011-09-13 13:59:17 +000021673$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021674
cristy0f6fc2d2015-05-30 00:49:11 +000021675 MAGICK_FEATURES="Zero-configuration $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021676fi
21677
21678# Build a high dynamic range version of ImageMagick.
21679# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000021680if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021681 enableval=$enable_hdri; enable_hdri=$enableval
21682else
cristy191c0b72012-08-12 16:29:52 +000021683 enable_hdri='yes'
cristy3ed852e2009-09-05 21:47:34 +000021684fi
21685
21686
21687MAGICK_HDRI=""
21688if test "$enable_hdri" = 'yes'; then
21689 MAGICK_HDRI="HDRI"
cristye52f12f2012-12-31 15:32:36 +000021690 magick_hdri_enable='1';
cristyfd9dcd42010-08-08 18:07:02 +000021691 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristye52f12f2012-12-31 15:32:36 +000021692else
21693 magick_hdri_enable='0'
cristy3ed852e2009-09-05 21:47:34 +000021694fi
21695
cristye52f12f2012-12-31 15:32:36 +000021696cat >>confdefs.h <<_ACEOF
21697#define HDRI_ENABLE_OBSOLETE_IN_H $magick_hdri_enable
21698_ACEOF
21699
21700MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
21701CFLAGS="$CFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristy72062382012-12-31 16:49:52 +000021702CPPFLAGS="$CPPFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristye52f12f2012-12-31 15:32:36 +000021703
cristy3ed852e2009-09-05 21:47:34 +000021704# Build a version of ImageMagick with assert statements.
21705# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000021706if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021707 enableval=$enable_assert; enable_assert=$enableval
21708else
21709 enable_assert='yes'
21710fi
21711
21712
21713if test "$enable_assert" = 'no'; then
21714
cristy8b350f62009-11-15 23:12:43 +000021715$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021716
21717fi
21718
cristya448bd22011-10-14 12:38:13 +000021719# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
cristy73bd4a52010-10-05 11:24:23 +000021720
21721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
21722$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21723 # Check whether --enable-maintainer-mode was given.
21724if test "${enable_maintainer_mode+set}" = set; then :
21725 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21726else
21727 USE_MAINTAINER_MODE=no
21728fi
21729
21730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
21731$as_echo "$USE_MAINTAINER_MODE" >&6; }
21732 if test $USE_MAINTAINER_MODE = yes; then
21733 MAINTAINER_MODE_TRUE=
21734 MAINTAINER_MODE_FALSE='#'
21735else
21736 MAINTAINER_MODE_TRUE='#'
21737 MAINTAINER_MODE_FALSE=
21738fi
21739
21740 MAINT=$MAINTAINER_MODE_TRUE
21741
21742
cristy3ed852e2009-09-05 21:47:34 +000021743
cristy944e51f2013-04-16 18:45:02 +000021744# Enable hugepages support
21745# Check whether --enable-hugepages was given.
21746if test "${enable_hugepages+set}" = set; then :
21747 enableval=$enable_hugepages; enable_hugepages=$enableval
21748else
21749 enable_hugepages='no'
21750fi
21751
21752
cristy3ed852e2009-09-05 21:47:34 +000021753# Enable ccmalloc memory debugging support
21754# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000021755if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021756 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
21757else
21758 enable_ccmalloc='no'
21759fi
21760
21761
21762# Enable Electric Fence memory debugging support
21763# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000021764if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021765 enableval=$enable_efence; enable_efence=$enableval
21766else
21767 enable_efence='no'
21768fi
21769
21770
21771# Enable prof-based profiling support
21772# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000021773if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021774 enableval=$enable_prof; enable_prof=$enableval
21775else
21776 enable_prof='no'
21777fi
21778
21779
21780# Enable gprof-based profiling support
21781# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000021782if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021783 enableval=$enable_gprof; enable_gprof=$enableval
21784else
21785 enable_gprof='no'
21786fi
21787
21788
21789# Enable gcov-based profiling support
21790# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000021791if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021792 enableval=$enable_gcov; enable_gcov=$enableval
21793else
21794 enable_gcov='no'
21795fi
21796
21797
21798enable_profiling='no'
21799if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21800 enable_profiling='yes'
21801 if test "$libtool_build_shared_libs" = 'yes'; then
21802 echo "Warning: Can not profile code using shared libraries"
21803 fi
21804fi
21805
21806# Magick API method prefix
21807
21808# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000021809if test "${with_method_prefix+set}" = set; then :
cristyfc3d0222012-02-07 15:05:57 +000021810 withval=$with_method_prefix; with_method_prefix=$withval
cristy3ed852e2009-09-05 21:47:34 +000021811else
cristyfc3d0222012-02-07 15:05:57 +000021812 with_method_prefix='no'
cristy3ed852e2009-09-05 21:47:34 +000021813fi
21814
21815
cristyfc3d0222012-02-07 15:05:57 +000021816if test "$with_method_prefix" != 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000021817
21818cat >>confdefs.h <<_ACEOF
21819#define NAMESPACE_PREFIX $with_method_prefix
21820_ACEOF
21821
cristyfc3d0222012-02-07 15:05:57 +000021822 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix "
cristy3ed852e2009-09-05 21:47:34 +000021823fi
21824
cristy71d8c202012-03-20 17:05:01 +000021825# Enable legacy support (default no)
21826# Check whether --enable-legacy-support was given.
21827if test "${enable_legacy_support+set}" = set; then :
21828 enableval=$enable_legacy_support; with_legacy_support=$enableval
21829else
21830 with_legacy_support='no'
21831fi
21832
21833 if test "$with_legacy_support" != 'no'; then
21834 LEGACY_SUPPORT_TRUE=
21835 LEGACY_SUPPORT_FALSE='#'
21836else
21837 LEGACY_SUPPORT_TRUE='#'
21838 LEGACY_SUPPORT_FALSE=
21839fi
21840
21841
cristy3ed852e2009-09-05 21:47:34 +000021842# Number of bits in a Quantum
21843
21844# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000021845if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021846 withval=$with_quantum_depth; with_quantum_depth=$withval
21847else
21848 with_quantum_depth=16
21849fi
21850
21851
21852if test "$with_quantum_depth" != '8'; then
21853 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21854fi
21855
21856case "${with_quantum_depth}" in
21857 8 ) ;;
21858 16 ) ;;
21859 32 ) ;;
21860 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000021861 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021862esac
21863QUANTUM_DEPTH="$with_quantum_depth"
21864
21865cat >>confdefs.h <<_ACEOF
cristye52f12f2012-12-31 15:32:36 +000021866#define QUANTUM_DEPTH_OBSOLETE_IN_H $QUANTUM_DEPTH
cristy3ed852e2009-09-05 21:47:34 +000021867_ACEOF
21868
cristya371edf2013-02-06 13:42:17 +000021869MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristye52f12f2012-12-31 15:32:36 +000021870CFLAGS="$CFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy72062382012-12-31 16:49:52 +000021871CPPFLAGS="$CPPFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy3ed852e2009-09-05 21:47:34 +000021872
cristy01ff9f32012-12-01 18:15:29 +000021873# define a lib suffix for abi purpose
cristy7a26abd2012-12-03 00:18:59 +000021874MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}"
cristye386d192012-12-01 21:05:20 +000021875if test "$enable_hdri" = 'yes'; then
cristy7a26abd2012-12-03 00:18:59 +000021876 MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}${MAGICK_HDRI}"
cristye386d192012-12-01 21:05:20 +000021877fi
cristy01ff9f32012-12-01 18:15:29 +000021878
21879
cristy3ed852e2009-09-05 21:47:34 +000021880# Set pixel cache threshold
21881
21882# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000021883if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021884 withval=$with_cache; with_cache=$withval
21885else
21886 with_cache=''
21887fi
21888
21889
21890if test "$with_cache" != ''; then
21891
21892cat >>confdefs.h <<_ACEOF
21893#define PixelCacheThreshold $with_cache
21894_ACEOF
21895
21896 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21897fi
21898
21899# Disable/Enable support for full delegate paths
21900
21901# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000021902if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021903 withval=$with_frozenpaths; with_frozenpaths=$withval
21904else
21905 with_frozenpaths='no'
21906fi
21907
21908
21909# Enable build/install of Magick++
21910
21911# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000021912if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021913 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21914else
21915 with_magick_plus_plus='yes'
21916fi
21917
21918
cristy3a75f062012-09-08 23:29:40 +000021919# Encode the this name into the shared library.
21920
21921# Check whether --with-package-release-name was given.
21922if test "${with_package_release_name+set}" = set; then :
21923 withval=$with_package_release_name; MAGICK_LT_RELEASE_OPTS="-release $withval"
21924fi
21925
21926
21927
cristy3ed852e2009-09-05 21:47:34 +000021928# Disable build/install of PerlMagick.
21929
21930# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000021931if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021932 withval=$with_perl; with_perl=$withval
21933else
cristyb5f4e2f2010-04-25 00:49:11 +000021934 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000021935fi
21936
21937
21938# Options to pass when configuring PerlMagick
21939
21940# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000021941if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000021942 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000021943fi
21944
21945
cristy3ed852e2009-09-05 21:47:34 +000021946
cristy3b0097d2014-11-04 15:34:47 +000021947# Enable jemalloc, object-caching memory allocation library.
21948
21949# Check whether --with-jemalloc was given.
21950if test "${with_jemalloc+set}" = set; then :
21951 withval=$with_jemalloc; with_jemalloc=$withval
21952else
21953 with_jemalloc='no'
21954fi
21955
21956if test "$with_jemalloc" != 'yes' ; then
21957 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jemalloc=$with_jemalloc "
21958fi
21959
cristy3ed852e2009-09-05 21:47:34 +000021960# Enable umem, object-caching memory allocation library.
21961
21962# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000021963if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021964 withval=$with_umem; with_umem=$withval
21965else
21966 with_umem='no'
21967fi
21968
21969if test "$with_umem" != 'yes' ; then
21970 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21971fi
21972
21973#
21974# Specify path to shared libstdc++ if not in normal location
21975#
21976
21977# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000021978if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021979 withval=$with_libstdc; with_libstdc=$withval
21980else
21981 with_libstdc=''
21982fi
21983
21984
21985if test "$with_libstdc" != ''; then
21986 if test -d "$with_libstdc"; then
21987 LIBSTDCLDFLAGS="-L$with_libstdc"
21988 fi
21989fi
21990
21991
21992# Does gcc required -traditional?
21993if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000021994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021995$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021996if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021997 $as_echo_n "(cached) " >&6
21998else
21999 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000022000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022001/* end confdefs.h. */
22002#include <sgtty.h>
22003Autoconf TIOCGETP
22004_ACEOF
22005if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022006 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022007 ac_cv_prog_gcc_traditional=yes
22008else
22009 ac_cv_prog_gcc_traditional=no
22010fi
22011rm -f conftest*
22012
22013
22014 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000022015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022016/* end confdefs.h. */
22017#include <termio.h>
22018Autoconf TCGETA
22019_ACEOF
22020if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022021 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022022 ac_cv_prog_gcc_traditional=yes
22023fi
22024rm -f conftest*
22025
22026 fi
22027fi
cristy8b350f62009-11-15 23:12:43 +000022028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000022029$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
22030 if test $ac_cv_prog_gcc_traditional = yes; then
22031 CC="$CC -traditional"
22032 fi
22033fi
22034
22035
22036########
22037#
22038# Set defines required to build DLLs and modules using MinGW
22039#
22040########
22041# These options are set for multi-thread DLL module build
22042# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
22043# module: _DLL
22044# executable/Magick++: _DLL _MAGICKMOD_
22045MODULE_EXTRA_CPPFLAGS=''
22046LIBRARY_EXTRA_CPPFLAGS=''
22047if test "${native_win32_build}" = 'yes'; then
22048 if test "${libtool_build_shared_libs}" = 'yes'; then
22049 CPPFLAGS="$CPPFLAGS -D_DLL"
22050 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
22051 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
22052 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
cristyc6722092012-10-14 00:19:31 +000022053 if test "$build_modules" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000022054 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
22055 else
22056 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
22057 fi
22058 else
22059 CPPFLAGS="$CPPFLAGS -D_LIB"
22060 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
22061 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
22062 fi
22063 if test "$with_threads" = 'yes'; then
22064 CPPFLAGS="$CPPFLAGS -D_MT"
22065 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
22066 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
22067 fi
22068fi
22069
22070
22071
22072# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000022073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000022074$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022075if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022076 $as_echo_n "(cached) " >&6
22077else
cristy8b350f62009-11-15 23:12:43 +000022078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022079/* end confdefs.h. */
22080#include <stdlib.h>
22081#include <stdarg.h>
22082#include <string.h>
22083#include <float.h>
22084
22085int
22086main ()
22087{
22088
22089 ;
22090 return 0;
22091}
22092_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022093if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022094 ac_cv_header_stdc=yes
22095else
cristy8b350f62009-11-15 23:12:43 +000022096 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000022097fi
cristy3ed852e2009-09-05 21:47:34 +000022098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22099
22100if test $ac_cv_header_stdc = yes; then
22101 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000022102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022103/* end confdefs.h. */
22104#include <string.h>
22105
22106_ACEOF
22107if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022108 $EGREP "memchr" >/dev/null 2>&1; then :
22109
cristy3ed852e2009-09-05 21:47:34 +000022110else
22111 ac_cv_header_stdc=no
22112fi
22113rm -f conftest*
22114
22115fi
22116
22117if test $ac_cv_header_stdc = yes; then
22118 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000022119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022120/* end confdefs.h. */
22121#include <stdlib.h>
22122
22123_ACEOF
22124if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022125 $EGREP "free" >/dev/null 2>&1; then :
22126
cristy3ed852e2009-09-05 21:47:34 +000022127else
22128 ac_cv_header_stdc=no
22129fi
22130rm -f conftest*
22131
22132fi
22133
22134if test $ac_cv_header_stdc = yes; then
22135 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000022136 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022137 :
22138else
cristy8b350f62009-11-15 23:12:43 +000022139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022140/* end confdefs.h. */
22141#include <ctype.h>
22142#include <stdlib.h>
22143#if ((' ' & 0x0FF) == 0x020)
22144# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22145# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22146#else
22147# define ISLOWER(c) \
22148 (('a' <= (c) && (c) <= 'i') \
22149 || ('j' <= (c) && (c) <= 'r') \
22150 || ('s' <= (c) && (c) <= 'z'))
22151# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22152#endif
22153
22154#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22155int
22156main ()
22157{
22158 int i;
22159 for (i = 0; i < 256; i++)
22160 if (XOR (islower (i), ISLOWER (i))
22161 || toupper (i) != TOUPPER (i))
22162 return 2;
22163 return 0;
22164}
22165_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022166if ac_fn_c_try_run "$LINENO"; then :
22167
cristy3ed852e2009-09-05 21:47:34 +000022168else
cristy8b350f62009-11-15 23:12:43 +000022169 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000022170fi
cristy8b350f62009-11-15 23:12:43 +000022171rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22172 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022173fi
22174
cristy3ed852e2009-09-05 21:47:34 +000022175fi
22176fi
cristy8b350f62009-11-15 23:12:43 +000022177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000022178$as_echo "$ac_cv_header_stdc" >&6; }
22179if test $ac_cv_header_stdc = yes; then
22180
cristy8b350f62009-11-15 23:12:43 +000022181$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022182
22183fi
22184
22185if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000022186 { $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 +000022187 header files. Compilation cannot proceed. Please install the ANSI C
22188 headers and rerun this script." >&5
22189$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
22190 header files. Compilation cannot proceed. Please install the ANSI C
22191 headers and rerun this script." >&2;};
22192fi
cristya0b81c32010-01-22 02:54:33 +000022193
22194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
22195$as_echo_n "checking whether to enable assertions... " >&6; }
22196 # Check whether --enable-assert was given.
22197if test "${enable_assert+set}" = set; then :
22198 enableval=$enable_assert; ac_enable_assert=$enableval
22199 if test "x$enableval" = xno; then :
22200
22201$as_echo "#define NDEBUG 1" >>confdefs.h
22202
22203elif test "x$enableval" != xyes; then :
22204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
22205$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
22206 ac_enable_assert=yes
22207fi
22208else
22209 ac_enable_assert=yes
22210fi
22211
22212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
22213$as_echo "$ac_enable_assert" >&6; }
22214
cristy3ed852e2009-09-05 21:47:34 +000022215ac_header_dirent=no
22216for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22217 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000022218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000022219$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022220if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022221 $as_echo_n "(cached) " >&6
22222else
cristy8b350f62009-11-15 23:12:43 +000022223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022224/* end confdefs.h. */
22225#include <sys/types.h>
22226#include <$ac_hdr>
22227
22228int
22229main ()
22230{
22231if ((DIR *) 0)
22232return 0;
22233 ;
22234 return 0;
22235}
22236_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022237if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022238 eval "$as_ac_Header=yes"
22239else
cristy8b350f62009-11-15 23:12:43 +000022240 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000022241fi
cristy3ed852e2009-09-05 21:47:34 +000022242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22243fi
cristy8b350f62009-11-15 23:12:43 +000022244eval ac_res=\$$as_ac_Header
22245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000022246$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000022247if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022248 cat >>confdefs.h <<_ACEOF
22249#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22250_ACEOF
22251
22252ac_header_dirent=$ac_hdr; break
22253fi
22254
22255done
22256# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22257if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000022258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022259$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022260if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022261 $as_echo_n "(cached) " >&6
22262else
22263 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000022264cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022265/* end confdefs.h. */
22266
22267/* Override any GCC internal prototype to avoid an error.
22268 Use char because int might match the return type of a GCC
22269 builtin and then its argument prototype would still apply. */
22270#ifdef __cplusplus
22271extern "C"
22272#endif
22273char opendir ();
22274int
22275main ()
22276{
22277return opendir ();
22278 ;
22279 return 0;
22280}
22281_ACEOF
22282for ac_lib in '' dir; do
22283 if test -z "$ac_lib"; then
22284 ac_res="none required"
22285 else
22286 ac_res=-l$ac_lib
22287 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22288 fi
cristy8b350f62009-11-15 23:12:43 +000022289 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022290 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000022291fi
cristy8b350f62009-11-15 23:12:43 +000022292rm -f core conftest.err conftest.$ac_objext \
22293 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000022294 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022295 break
22296fi
22297done
cristyda16f162011-02-19 23:52:17 +000022298if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000022299
cristy3ed852e2009-09-05 21:47:34 +000022300else
22301 ac_cv_search_opendir=no
22302fi
22303rm conftest.$ac_ext
22304LIBS=$ac_func_search_save_LIBS
22305fi
cristy8b350f62009-11-15 23:12:43 +000022306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022307$as_echo "$ac_cv_search_opendir" >&6; }
22308ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000022309if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000022310 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22311
22312fi
22313
22314else
cristy8b350f62009-11-15 23:12:43 +000022315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022316$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022317if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022318 $as_echo_n "(cached) " >&6
22319else
22320 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000022321cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022322/* end confdefs.h. */
22323
22324/* Override any GCC internal prototype to avoid an error.
22325 Use char because int might match the return type of a GCC
22326 builtin and then its argument prototype would still apply. */
22327#ifdef __cplusplus
22328extern "C"
22329#endif
22330char opendir ();
22331int
22332main ()
22333{
22334return opendir ();
22335 ;
22336 return 0;
22337}
22338_ACEOF
22339for ac_lib in '' x; do
22340 if test -z "$ac_lib"; then
22341 ac_res="none required"
22342 else
22343 ac_res=-l$ac_lib
22344 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22345 fi
cristy8b350f62009-11-15 23:12:43 +000022346 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022347 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000022348fi
cristy8b350f62009-11-15 23:12:43 +000022349rm -f core conftest.err conftest.$ac_objext \
22350 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000022351 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022352 break
22353fi
22354done
cristyda16f162011-02-19 23:52:17 +000022355if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000022356
cristy3ed852e2009-09-05 21:47:34 +000022357else
22358 ac_cv_search_opendir=no
22359fi
22360rm conftest.$ac_ext
22361LIBS=$ac_func_search_save_LIBS
22362fi
cristy8b350f62009-11-15 23:12:43 +000022363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022364$as_echo "$ac_cv_search_opendir" >&6; }
22365ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000022366if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000022367 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22368
22369fi
22370
22371fi
22372
22373
22374# Check additional headers
cristy66988ab2015-05-30 17:20:38 +000022375for 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/sendfile.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 +000022376do :
22377 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22378ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000022379if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022380 cat >>confdefs.h <<_ACEOF
22381#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22382_ACEOF
22383
22384fi
22385
22386done
22387
22388
22389########
22390#
22391# Checks for typedefs, structures, and compiler characteristics.
22392#
22393########
22394
cristy8b350f62009-11-15 23:12:43 +000022395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000022396$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022397if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022398 $as_echo_n "(cached) " >&6
22399else
cristy8b350f62009-11-15 23:12:43 +000022400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022401/* end confdefs.h. */
22402
cristy14fefe52012-05-21 00:59:18 +000022403 #include <stdbool.h>
22404 #ifndef bool
22405 "error: bool is not defined"
22406 #endif
22407 #ifndef false
22408 "error: false is not defined"
22409 #endif
22410 #if false
22411 "error: false is not 0"
22412 #endif
22413 #ifndef true
22414 "error: true is not defined"
22415 #endif
22416 #if true != 1
22417 "error: true is not 1"
22418 #endif
22419 #ifndef __bool_true_false_are_defined
22420 "error: __bool_true_false_are_defined is not defined"
22421 #endif
cristy3ed852e2009-09-05 21:47:34 +000022422
cristy14fefe52012-05-21 00:59:18 +000022423 struct s { _Bool s: 1; _Bool t; } s;
cristy3ed852e2009-09-05 21:47:34 +000022424
cristy14fefe52012-05-21 00:59:18 +000022425 char a[true == 1 ? 1 : -1];
22426 char b[false == 0 ? 1 : -1];
22427 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
22428 char d[(bool) 0.5 == true ? 1 : -1];
22429 /* See body of main program for 'e'. */
22430 char f[(_Bool) 0.0 == false ? 1 : -1];
22431 char g[true];
22432 char h[sizeof (_Bool)];
22433 char i[sizeof s.t];
22434 enum { j = false, k = true, l = false * true, m = true * 256 };
22435 /* The following fails for
22436 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
22437 _Bool n[m];
22438 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
22439 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
22440 /* Catch a bug in an HP-UX C compiler. See
22441 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
22442 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
22443 */
22444 _Bool q = true;
22445 _Bool *pq = &q;
cristy3ed852e2009-09-05 21:47:34 +000022446
22447int
22448main ()
22449{
22450
cristy14fefe52012-05-21 00:59:18 +000022451 bool e = &s;
22452 *pq |= q;
22453 *pq |= ! q;
22454 /* Refer to every declared value, to avoid compiler optimizations. */
22455 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
22456 + !m + !n + !o + !p + !q + !pq);
cristy3ed852e2009-09-05 21:47:34 +000022457
22458 ;
22459 return 0;
22460}
22461_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022462if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022463 ac_cv_header_stdbool_h=yes
22464else
cristy8b350f62009-11-15 23:12:43 +000022465 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000022466fi
cristy3ed852e2009-09-05 21:47:34 +000022467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22468fi
cristy8b350f62009-11-15 23:12:43 +000022469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000022470$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy14fefe52012-05-21 00:59:18 +000022471 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000022472if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000022473
22474cat >>confdefs.h <<_ACEOF
22475#define HAVE__BOOL 1
22476_ACEOF
22477
22478
22479fi
22480
cristy14fefe52012-05-21 00:59:18 +000022481
cristy3ed852e2009-09-05 21:47:34 +000022482if test $ac_cv_header_stdbool_h = yes; then
22483
cristy8b350f62009-11-15 23:12:43 +000022484$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022485
22486fi
22487
cristy8b350f62009-11-15 23:12:43 +000022488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022489$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022490if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022491 $as_echo_n "(cached) " >&6
22492else
cristy8b350f62009-11-15 23:12:43 +000022493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022494/* end confdefs.h. */
22495
22496int
22497main ()
22498{
22499
22500volatile int x;
22501int * volatile y = (int *) 0;
22502return !x && !y;
22503 ;
22504 return 0;
22505}
22506_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022507if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022508 ac_cv_c_volatile=yes
22509else
cristy8b350f62009-11-15 23:12:43 +000022510 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000022511fi
cristy3ed852e2009-09-05 21:47:34 +000022512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22513fi
cristy8b350f62009-11-15 23:12:43 +000022514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022515$as_echo "$ac_cv_c_volatile" >&6; }
22516if test $ac_cv_c_volatile = no; then
22517
cristy8b350f62009-11-15 23:12:43 +000022518$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022519
22520fi
22521
cristy8b350f62009-11-15 23:12:43 +000022522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000022523$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022524if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022525 $as_echo_n "(cached) " >&6
22526else
cristy8b350f62009-11-15 23:12:43 +000022527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022528/* end confdefs.h. */
22529#define x(y) #y
22530
22531char *s = x(teststring);
22532_ACEOF
22533if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022534 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022535 ac_cv_c_stringize=no
22536else
22537 ac_cv_c_stringize=yes
22538fi
22539rm -f conftest*
22540
22541fi
cristy8b350f62009-11-15 23:12:43 +000022542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000022543$as_echo "$ac_cv_c_stringize" >&6; }
22544if test $ac_cv_c_stringize = yes; then
22545
cristy8b350f62009-11-15 23:12:43 +000022546$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022547
22548fi
22549
cristy8b350f62009-11-15 23:12:43 +000022550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022551$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022552if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022553 $as_echo_n "(cached) " >&6
22554else
cristy8b350f62009-11-15 23:12:43 +000022555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022556/* end confdefs.h. */
22557#include <sys/types.h>
22558#include <sys/stat.h>
22559
22560#if defined S_ISBLK && defined S_IFDIR
22561extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22562#endif
22563
22564#if defined S_ISBLK && defined S_IFCHR
22565extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22566#endif
22567
22568#if defined S_ISLNK && defined S_IFREG
22569extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22570#endif
22571
22572#if defined S_ISSOCK && defined S_IFREG
22573extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22574#endif
22575
22576_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022577if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022578 ac_cv_header_stat_broken=no
22579else
cristy8b350f62009-11-15 23:12:43 +000022580 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000022581fi
cristy3ed852e2009-09-05 21:47:34 +000022582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22583fi
cristy8b350f62009-11-15 23:12:43 +000022584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022585$as_echo "$ac_cv_header_stat_broken" >&6; }
22586if test $ac_cv_header_stat_broken = yes; then
22587
cristy8b350f62009-11-15 23:12:43 +000022588$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022589
22590fi
22591
cristy8b350f62009-11-15 23:12:43 +000022592{ $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 +000022593$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022594if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022595 $as_echo_n "(cached) " >&6
22596else
cristy8b350f62009-11-15 23:12:43 +000022597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022598/* end confdefs.h. */
22599#include <sys/types.h>
22600#include <sys/time.h>
22601#include <time.h>
22602
22603int
22604main ()
22605{
22606if ((struct tm *) 0)
22607return 0;
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_header_time=yes
22614else
cristy8b350f62009-11-15 23:12:43 +000022615 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000022616fi
cristy3ed852e2009-09-05 21:47:34 +000022617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22618fi
cristy8b350f62009-11-15 23:12:43 +000022619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000022620$as_echo "$ac_cv_header_time" >&6; }
22621if test $ac_cv_header_time = yes; then
22622
cristy8b350f62009-11-15 23:12:43 +000022623$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022624
22625fi
22626
cristy8b350f62009-11-15 23:12:43 +000022627{ $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 +000022628$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022629if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022630 $as_echo_n "(cached) " >&6
22631else
cristy8b350f62009-11-15 23:12:43 +000022632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022633/* end confdefs.h. */
22634#include <sys/types.h>
22635#include <time.h>
22636
22637int
22638main ()
22639{
22640struct tm tm;
22641 int *p = &tm.tm_sec;
22642 return !p;
22643 ;
22644 return 0;
22645}
22646_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022647if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022648 ac_cv_struct_tm=time.h
22649else
cristy8b350f62009-11-15 23:12:43 +000022650 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000022651fi
cristy3ed852e2009-09-05 21:47:34 +000022652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22653fi
cristy8b350f62009-11-15 23:12:43 +000022654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000022655$as_echo "$ac_cv_struct_tm" >&6; }
22656if test $ac_cv_struct_tm = sys/time.h; then
22657
cristy8b350f62009-11-15 23:12:43 +000022658$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022659
22660fi
22661
cristy92703d82010-04-26 00:18:18 +000022662ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
22663#include <$ac_cv_struct_tm>
22664
22665"
cristyda16f162011-02-19 23:52:17 +000022666if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022667
22668cat >>confdefs.h <<_ACEOF
22669#define HAVE_STRUCT_TM_TM_ZONE 1
22670_ACEOF
22671
22672
22673fi
22674
22675if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22676
22677$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
22678
22679else
22680 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
22681"
cristyda16f162011-02-19 23:52:17 +000022682if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022683 ac_have_decl=1
22684else
22685 ac_have_decl=0
22686fi
22687
22688cat >>confdefs.h <<_ACEOF
22689#define HAVE_DECL_TZNAME $ac_have_decl
22690_ACEOF
22691
22692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
22693$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022694if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000022695 $as_echo_n "(cached) " >&6
22696else
22697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22698/* end confdefs.h. */
22699#include <time.h>
22700#if !HAVE_DECL_TZNAME
22701extern char *tzname[];
22702#endif
22703
22704int
22705main ()
22706{
22707return tzname[0][0];
22708 ;
22709 return 0;
22710}
22711_ACEOF
22712if ac_fn_c_try_link "$LINENO"; then :
22713 ac_cv_var_tzname=yes
22714else
22715 ac_cv_var_tzname=no
22716fi
22717rm -f core conftest.err conftest.$ac_objext \
22718 conftest$ac_exeext conftest.$ac_ext
22719fi
22720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22721$as_echo "$ac_cv_var_tzname" >&6; }
22722 if test $ac_cv_var_tzname = yes; then
22723
22724$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
22725
22726 fi
22727fi
22728
cristy8b350f62009-11-15 23:12:43 +000022729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000022730$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022731if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022732 $as_echo_n "(cached) " >&6
22733else
22734 echo '#! /bin/cat
22735exit 69
22736' >conftest
22737chmod u+x conftest
22738(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
22739if test $? -ne 69; then
22740 ac_cv_sys_interpreter=yes
22741else
22742 ac_cv_sys_interpreter=no
22743fi
22744rm -f conftest
22745fi
cristy8b350f62009-11-15 23:12:43 +000022746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000022747$as_echo "$ac_cv_sys_interpreter" >&6; }
22748interpval=$ac_cv_sys_interpreter
22749
22750
cristye80f9cb2013-01-09 01:09:31 +000022751#
22752# Checks for language qualifiers and semantics.
22753#
22754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
22755$as_echo_n "checking whether char is unsigned... " >&6; }
22756if ${ac_cv_c_char_unsigned+:} false; then :
22757 $as_echo_n "(cached) " >&6
22758else
22759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22760/* end confdefs.h. */
22761$ac_includes_default
22762int
22763main ()
22764{
22765static int test_array [1 - 2 * !(((char) -1) < 0)];
22766test_array [0] = 0;
22767return test_array [0];
22768
22769 ;
22770 return 0;
22771}
22772_ACEOF
22773if ac_fn_c_try_compile "$LINENO"; then :
22774 ac_cv_c_char_unsigned=no
22775else
22776 ac_cv_c_char_unsigned=yes
22777fi
22778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22779fi
22780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
22781$as_echo "$ac_cv_c_char_unsigned" >&6; }
22782if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
22783 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
22784
22785fi
22786
22787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
22788$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
22789if ${ac_cv_c_const+:} false; then :
22790 $as_echo_n "(cached) " >&6
22791else
22792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22793/* end confdefs.h. */
22794
22795int
22796main ()
22797{
22798
22799#ifndef __cplusplus
22800 /* Ultrix mips cc rejects this sort of thing. */
22801 typedef int charset[2];
22802 const charset cs = { 0, 0 };
22803 /* SunOS 4.1.1 cc rejects this. */
22804 char const *const *pcpcc;
22805 char **ppc;
22806 /* NEC SVR4.0.2 mips cc rejects this. */
22807 struct point {int x, y;};
22808 static struct point const zero = {0,0};
22809 /* AIX XL C 1.02.0.0 rejects this.
22810 It does not let you subtract one const X* pointer from another in
22811 an arm of an if-expression whose if-part is not a constant
22812 expression */
22813 const char *g = "string";
22814 pcpcc = &g + (g ? g-g : 0);
22815 /* HPUX 7.0 cc rejects these. */
22816 ++pcpcc;
22817 ppc = (char**) pcpcc;
22818 pcpcc = (char const *const *) ppc;
22819 { /* SCO 3.2v4 cc rejects this sort of thing. */
22820 char tx;
22821 char *t = &tx;
22822 char const *s = 0 ? (char *) 0 : (char const *) 0;
22823
22824 *t++ = 0;
22825 if (s) return 0;
22826 }
22827 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22828 int x[] = {25, 17};
22829 const int *foo = &x[0];
22830 ++foo;
22831 }
22832 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22833 typedef const int *iptr;
22834 iptr p = 0;
22835 ++p;
22836 }
22837 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
22838 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22839 struct s { int j; const int *ap[3]; } bx;
22840 struct s *b = &bx; b->j = 5;
22841 }
22842 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22843 const int foo = 10;
22844 if (!foo) return 0;
22845 }
22846 return !cs[0] && !zero.x;
22847#endif
22848
22849 ;
22850 return 0;
22851}
22852_ACEOF
22853if ac_fn_c_try_compile "$LINENO"; then :
22854 ac_cv_c_const=yes
22855else
22856 ac_cv_c_const=no
22857fi
22858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22859fi
22860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
22861$as_echo "$ac_cv_c_const" >&6; }
22862if test $ac_cv_c_const = no; then
22863
22864$as_echo "#define const /**/" >>confdefs.h
22865
22866fi
22867
cristy8b350f62009-11-15 23:12:43 +000022868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022869$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022870if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022871 $as_echo_n "(cached) " >&6
22872else
22873 ac_cv_c_inline=no
22874for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000022875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022876/* end confdefs.h. */
22877#ifndef __cplusplus
22878typedef int foo_t;
22879static $ac_kw foo_t static_foo () {return 0; }
22880$ac_kw foo_t foo () {return 0; }
22881#endif
22882
22883_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022884if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022885 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022886fi
cristy3ed852e2009-09-05 21:47:34 +000022887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22888 test "$ac_cv_c_inline" != no && break
22889done
22890
22891fi
cristy8b350f62009-11-15 23:12:43 +000022892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022893$as_echo "$ac_cv_c_inline" >&6; }
22894
cristy3ed852e2009-09-05 21:47:34 +000022895case $ac_cv_c_inline in
22896 inline | yes) ;;
22897 *)
22898 case $ac_cv_c_inline in
22899 no) ac_val=;;
22900 *) ac_val=$ac_cv_c_inline;;
22901 esac
22902 cat >>confdefs.h <<_ACEOF
22903#ifndef __cplusplus
22904#define inline $ac_val
22905#endif
22906_ACEOF
22907 ;;
22908esac
22909
cristy8b350f62009-11-15 23:12:43 +000022910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000022911$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022912if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022913 $as_echo_n "(cached) " >&6
22914else
22915 ac_cv_c_restrict=no
22916 # The order here caters to the fact that C++ does not require restrict.
22917 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000022918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022919/* end confdefs.h. */
22920typedef int * int_ptr;
22921 int foo (int_ptr $ac_kw ip) {
22922 return ip[0];
22923 }
22924int
22925main ()
22926{
22927int s[1];
22928 int * $ac_kw t = s;
22929 t[0] = 0;
22930 return foo(t)
22931 ;
22932 return 0;
22933}
22934_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022935if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022936 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022937fi
cristy3ed852e2009-09-05 21:47:34 +000022938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22939 test "$ac_cv_c_restrict" != no && break
22940 done
22941
22942fi
cristy8b350f62009-11-15 23:12:43 +000022943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000022944$as_echo "$ac_cv_c_restrict" >&6; }
22945
cristy3ed852e2009-09-05 21:47:34 +000022946 case $ac_cv_c_restrict in
22947 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000022948 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022949 ;;
22950 *) cat >>confdefs.h <<_ACEOF
22951#define restrict $ac_cv_c_restrict
22952_ACEOF
22953 ;;
22954 esac
22955
cristye80f9cb2013-01-09 01:09:31 +000022956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
22957$as_echo_n "checking for working volatile... " >&6; }
22958if ${ac_cv_c_volatile+:} false; then :
22959 $as_echo_n "(cached) " >&6
22960else
22961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22962/* end confdefs.h. */
22963
22964int
22965main ()
22966{
22967
22968volatile int x;
22969int * volatile y = (int *) 0;
22970return !x && !y;
22971 ;
22972 return 0;
22973}
22974_ACEOF
22975if ac_fn_c_try_compile "$LINENO"; then :
22976 ac_cv_c_volatile=yes
22977else
22978 ac_cv_c_volatile=no
22979fi
22980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22981fi
22982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
22983$as_echo "$ac_cv_c_volatile" >&6; }
22984if test $ac_cv_c_volatile = no; then
22985
22986$as_echo "#define volatile /**/" >>confdefs.h
22987
22988fi
22989
cristy3ed852e2009-09-05 21:47:34 +000022990
22991# If words are stored with the most significant byte first (like
22992# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000022993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022994$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022995if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022996 $as_echo_n "(cached) " >&6
22997else
22998 ac_cv_c_bigendian=unknown
22999 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000023000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023001/* end confdefs.h. */
23002#ifndef __APPLE_CC__
23003 not a universal capable compiler
23004 #endif
23005 typedef int dummy;
23006
23007_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023008if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023009
23010 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000023011 # there are at least two -arch flags with different values.
23012 ac_arch=
23013 ac_prev=
23014 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
23015 if test -n "$ac_prev"; then
23016 case $ac_word in
23017 i?86 | x86_64 | ppc | ppc64)
23018 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
23019 ac_arch=$ac_word
23020 else
23021 ac_cv_c_bigendian=universal
23022 break
23023 fi
23024 ;;
23025 esac
23026 ac_prev=
23027 elif test "x$ac_word" = "x-arch"; then
23028 ac_prev=arch
23029 fi
23030 done
cristy3ed852e2009-09-05 21:47:34 +000023031fi
cristy3ed852e2009-09-05 21:47:34 +000023032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23033 if test $ac_cv_c_bigendian = unknown; then
23034 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000023035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023036/* end confdefs.h. */
23037#include <sys/types.h>
23038 #include <sys/param.h>
23039
23040int
23041main ()
23042{
23043#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
23044 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
23045 && LITTLE_ENDIAN)
23046 bogus endian macros
23047 #endif
23048
23049 ;
23050 return 0;
23051}
23052_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023053if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023054 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000023055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023056/* end confdefs.h. */
23057#include <sys/types.h>
23058 #include <sys/param.h>
23059
23060int
23061main ()
23062{
23063#if BYTE_ORDER != BIG_ENDIAN
23064 not big endian
23065 #endif
23066
23067 ;
23068 return 0;
23069}
23070_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023071if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023072 ac_cv_c_bigendian=yes
23073else
cristy8b350f62009-11-15 23:12:43 +000023074 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000023075fi
cristy3ed852e2009-09-05 21:47:34 +000023076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023077fi
cristy3ed852e2009-09-05 21:47:34 +000023078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23079 fi
23080 if test $ac_cv_c_bigendian = unknown; then
23081 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000023082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023083/* end confdefs.h. */
23084#include <limits.h>
23085
23086int
23087main ()
23088{
23089#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23090 bogus endian macros
23091 #endif
23092
23093 ;
23094 return 0;
23095}
23096_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023097if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023098 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000023099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023100/* end confdefs.h. */
23101#include <limits.h>
23102
23103int
23104main ()
23105{
23106#ifndef _BIG_ENDIAN
23107 not big endian
23108 #endif
23109
23110 ;
23111 return 0;
23112}
23113_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023114if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023115 ac_cv_c_bigendian=yes
23116else
cristy8b350f62009-11-15 23:12:43 +000023117 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000023118fi
cristy3ed852e2009-09-05 21:47:34 +000023119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023120fi
cristy3ed852e2009-09-05 21:47:34 +000023121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23122 fi
23123 if test $ac_cv_c_bigendian = unknown; then
23124 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000023125 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023126 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000023127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023128/* end confdefs.h. */
23129short int ascii_mm[] =
23130 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23131 short int ascii_ii[] =
23132 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23133 int use_ascii (int i) {
23134 return ascii_mm[i] + ascii_ii[i];
23135 }
23136 short int ebcdic_ii[] =
23137 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23138 short int ebcdic_mm[] =
23139 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23140 int use_ebcdic (int i) {
23141 return ebcdic_mm[i] + ebcdic_ii[i];
23142 }
23143 extern int foo;
23144
23145int
23146main ()
23147{
23148return use_ascii (foo) == use_ebcdic (foo);
23149 ;
23150 return 0;
23151}
23152_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023153if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023154 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23155 ac_cv_c_bigendian=yes
23156 fi
23157 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23158 if test "$ac_cv_c_bigendian" = unknown; then
23159 ac_cv_c_bigendian=no
23160 else
23161 # finding both strings is unlikely to happen, but who knows?
23162 ac_cv_c_bigendian=unknown
23163 fi
23164 fi
cristy3ed852e2009-09-05 21:47:34 +000023165fi
cristy3ed852e2009-09-05 21:47:34 +000023166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23167else
cristy8b350f62009-11-15 23:12:43 +000023168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023169/* end confdefs.h. */
23170$ac_includes_default
23171int
23172main ()
23173{
23174
23175 /* Are we little or big endian? From Harbison&Steele. */
23176 union
23177 {
23178 long int l;
23179 char c[sizeof (long int)];
23180 } u;
23181 u.l = 1;
23182 return u.c[sizeof (long int) - 1] == 1;
23183
23184 ;
23185 return 0;
23186}
23187_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023188if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023189 ac_cv_c_bigendian=no
23190else
cristy8b350f62009-11-15 23:12:43 +000023191 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000023192fi
cristy8b350f62009-11-15 23:12:43 +000023193rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23194 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023195fi
23196
cristy3ed852e2009-09-05 21:47:34 +000023197 fi
23198fi
cristy8b350f62009-11-15 23:12:43 +000023199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000023200$as_echo "$ac_cv_c_bigendian" >&6; }
23201 case $ac_cv_c_bigendian in #(
23202 yes)
cristy8b350f62009-11-15 23:12:43 +000023203 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023204;; #(
23205 no)
23206 ;; #(
23207 universal)
23208
cristy8b350f62009-11-15 23:12:43 +000023209$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023210
23211 ;; #(
23212 *)
cristy98dddb52010-11-04 00:30:15 +000023213 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000023214 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000023215 esac
23216
23217
cristy501c8042011-05-26 17:46:28 +000023218# Define to a suitable type, if standard headers do not define it.
23219ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
23220case $ac_cv_c_int8_t in #(
23221 no|yes) ;; #(
23222 *)
cristy3ed852e2009-09-05 21:47:34 +000023223
23224cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000023225#define int8_t $ac_cv_c_int8_t
23226_ACEOF
23227;;
23228esac
23229
23230ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
23231case $ac_cv_c_int16_t in #(
23232 no|yes) ;; #(
23233 *)
23234
23235cat >>confdefs.h <<_ACEOF
23236#define int16_t $ac_cv_c_int16_t
23237_ACEOF
23238;;
23239esac
23240
23241ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
23242case $ac_cv_c_int32_t in #(
23243 no|yes) ;; #(
23244 *)
23245
23246cat >>confdefs.h <<_ACEOF
23247#define int32_t $ac_cv_c_int32_t
23248_ACEOF
23249;;
23250esac
23251
23252ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
23253case $ac_cv_c_int64_t in #(
23254 no|yes) ;; #(
23255 *)
23256
23257cat >>confdefs.h <<_ACEOF
23258#define int64_t $ac_cv_c_int64_t
23259_ACEOF
23260;;
23261esac
23262
23263
cristy045228a2013-06-23 11:00:16 +000023264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23265$as_echo_n "checking for unsigned long long int... " >&6; }
23266if ${ac_cv_type_unsigned_long_long_int+:} false; then :
cristy501c8042011-05-26 17:46:28 +000023267 $as_echo_n "(cached) " >&6
23268else
cristy045228a2013-06-23 11:00:16 +000023269 ac_cv_type_unsigned_long_long_int=yes
23270 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
23271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000023272/* end confdefs.h. */
23273
23274 /* For now, do not test the preprocessor; as of 2007 there are too many
cristy5ed9c6e2013-07-14 21:20:31 +000023275 implementations with broken preprocessors. Perhaps this can
23276 be revisited in 2012. In the meantime, code should not expect
23277 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000023278 /* Test literals. */
23279 long long int ll = 9223372036854775807ll;
23280 long long int nll = -9223372036854775807LL;
23281 unsigned long long int ull = 18446744073709551615ULL;
23282 /* Test constant expressions. */
23283 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristy5ed9c6e2013-07-14 21:20:31 +000023284 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023285 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristy5ed9c6e2013-07-14 21:20:31 +000023286 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023287 int i = 63;
23288int
23289main ()
23290{
23291/* Test availability of runtime routines for shift and division. */
23292 long long int llmax = 9223372036854775807ll;
23293 unsigned long long int ullmax = 18446744073709551615ull;
23294 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristy5ed9c6e2013-07-14 21:20:31 +000023295 | (llmax / ll) | (llmax % ll)
23296 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23297 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000023298 ;
23299 return 0;
23300}
23301
23302_ACEOF
23303if ac_fn_c_try_link "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023304
23305else
23306 ac_cv_type_unsigned_long_long_int=no
23307fi
23308rm -f core conftest.err conftest.$ac_objext \
23309 conftest$ac_exeext conftest.$ac_ext
23310 fi
23311fi
23312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23313$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23314 if test $ac_cv_type_unsigned_long_long_int = yes; then
23315
23316$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23317
23318 fi
23319
23320
23321
23322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
23323$as_echo_n "checking for long long int... " >&6; }
23324if ${ac_cv_type_long_long_int+:} false; then :
23325 $as_echo_n "(cached) " >&6
23326else
cristy501c8042011-05-26 17:46:28 +000023327 ac_cv_type_long_long_int=yes
cristy045228a2013-06-23 11:00:16 +000023328 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
cristy5ed9c6e2013-07-14 21:20:31 +000023329 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
23330 if test $ac_cv_type_long_long_int = yes; then
23331 if test "$cross_compiling" = yes; then :
cristy045228a2013-06-23 11:00:16 +000023332 :
cristy501c8042011-05-26 17:46:28 +000023333else
23334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23335/* end confdefs.h. */
23336#include <limits.h>
cristy5ed9c6e2013-07-14 21:20:31 +000023337 #ifndef LLONG_MAX
23338 # define HALF \
23339 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
23340 # define LLONG_MAX (HALF - 1 + HALF)
23341 #endif
cristy501c8042011-05-26 17:46:28 +000023342int
23343main ()
23344{
23345long long int n = 1;
cristy5ed9c6e2013-07-14 21:20:31 +000023346 int i;
23347 for (i = 0; ; i++)
23348 {
23349 long long int m = n << i;
23350 if (m >> i != n)
23351 return 1;
23352 if (LLONG_MAX / 2 < m)
23353 break;
23354 }
23355 return 0;
cristy501c8042011-05-26 17:46:28 +000023356 ;
23357 return 0;
23358}
23359_ACEOF
23360if ac_fn_c_try_run "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023361
cristy501c8042011-05-26 17:46:28 +000023362else
23363 ac_cv_type_long_long_int=no
23364fi
23365rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23366 conftest.$ac_objext conftest.beam conftest.$ac_ext
23367fi
23368
cristy5ed9c6e2013-07-14 21:20:31 +000023369 fi
cristy045228a2013-06-23 11:00:16 +000023370 fi
cristy501c8042011-05-26 17:46:28 +000023371fi
23372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23373$as_echo "$ac_cv_type_long_long_int" >&6; }
23374 if test $ac_cv_type_long_long_int = yes; then
23375
23376$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23377
23378 fi
23379
23380
23381
23382 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
23383if test "x$ac_cv_type_intmax_t" = xyes; then :
23384
23385$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
23386
23387else
23388 test $ac_cv_type_long_long_int = yes \
23389 && ac_type='long long int' \
23390 || ac_type='long int'
23391
23392cat >>confdefs.h <<_ACEOF
23393#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000023394_ACEOF
23395
23396fi
23397
23398
cristy501c8042011-05-26 17:46:28 +000023399
23400 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
23401if test "x$ac_cv_type_intptr_t" = xyes; then :
23402
23403$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023404
cristy3ed852e2009-09-05 21:47:34 +000023405else
cristy501c8042011-05-26 17:46:28 +000023406 for ac_type in 'int' 'long int' 'long long int'; do
23407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23408/* end confdefs.h. */
23409$ac_includes_default
23410int
23411main ()
23412{
23413static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000023414test_array [0] = 0;
23415return test_array [0];
cristy501c8042011-05-26 17:46:28 +000023416
23417 ;
23418 return 0;
23419}
23420_ACEOF
23421if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023422
23423cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000023424#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000023425_ACEOF
23426
cristy501c8042011-05-26 17:46:28 +000023427 ac_type=
23428fi
23429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23430 test -z "$ac_type" && break
23431 done
cristy3ed852e2009-09-05 21:47:34 +000023432fi
23433
23434
cristy3ed852e2009-09-05 21:47:34 +000023435
cristy501c8042011-05-26 17:46:28 +000023436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
23437$as_echo_n "checking for long double... " >&6; }
23438if ${ac_cv_type_long_double+:} false; then :
23439 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000023440else
cristy501c8042011-05-26 17:46:28 +000023441 if test "$GCC" = yes; then
23442 ac_cv_type_long_double=yes
23443 else
23444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23445/* end confdefs.h. */
23446/* The Stardent Vistra knows sizeof (long double), but does
23447 not support it. */
23448 long double foo = 0.0L;
23449int
23450main ()
23451{
23452static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
23453 sizeof (double) <= sizeof (long double))];
cristy14fefe52012-05-21 00:59:18 +000023454test_array [0] = 0;
23455return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023456
cristy501c8042011-05-26 17:46:28 +000023457 ;
23458 return 0;
23459}
cristy3ed852e2009-09-05 21:47:34 +000023460_ACEOF
cristy501c8042011-05-26 17:46:28 +000023461if ac_fn_c_try_compile "$LINENO"; then :
23462 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000023463else
cristy501c8042011-05-26 17:46:28 +000023464 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000023465fi
cristy501c8042011-05-26 17:46:28 +000023466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23467 fi
cristy3ed852e2009-09-05 21:47:34 +000023468fi
cristy501c8042011-05-26 17:46:28 +000023469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
23470$as_echo "$ac_cv_type_long_double" >&6; }
23471 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023472
cristy501c8042011-05-26 17:46:28 +000023473$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023474
cristy501c8042011-05-26 17:46:28 +000023475 fi
23476
cristy3ed852e2009-09-05 21:47:34 +000023477
cristy8b350f62009-11-15 23:12:43 +000023478 { $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 +000023479$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023480if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023481 $as_echo_n "(cached) " >&6
23482else
cristy8b350f62009-11-15 23:12:43 +000023483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023484/* end confdefs.h. */
23485#include <float.h>
23486 long double const a[] =
23487 {
23488 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
23489 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
23490 };
23491 long double
23492 f (long double x)
23493 {
23494 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
23495 + (x ? f (x) : 'c'));
23496 }
23497
23498int
23499main ()
23500{
23501static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
23502 + (DBL_MANT_DIG < LDBL_MANT_DIG)
23503 - (LDBL_MAX_EXP < DBL_MAX_EXP)
23504 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
23505 && (int) LDBL_EPSILON == 0
23506 )];
cristy14fefe52012-05-21 00:59:18 +000023507test_array [0] = 0;
23508return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023509
23510 ;
23511 return 0;
23512}
23513_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023514if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023515 ac_cv_type_long_double_wider=yes
23516else
cristy8b350f62009-11-15 23:12:43 +000023517 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000023518fi
cristy3ed852e2009-09-05 21:47:34 +000023519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23520fi
cristy8b350f62009-11-15 23:12:43 +000023521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000023522$as_echo "$ac_cv_type_long_double_wider" >&6; }
23523 if test $ac_cv_type_long_double_wider = yes; then
23524
cristy8b350f62009-11-15 23:12:43 +000023525$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023526
23527 fi
23528
23529
cristy045228a2013-06-23 11:00:16 +000023530
cristy501c8042011-05-26 17:46:28 +000023531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
23532$as_echo_n "checking for long long int... " >&6; }
23533if ${ac_cv_type_long_long_int+:} false; then :
23534 $as_echo_n "(cached) " >&6
23535else
cristy501c8042011-05-26 17:46:28 +000023536 ac_cv_type_long_long_int=yes
cristy045228a2013-06-23 11:00:16 +000023537 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
cristy5ed9c6e2013-07-14 21:20:31 +000023538 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
23539 if test $ac_cv_type_long_long_int = yes; then
23540 if test "$cross_compiling" = yes; then :
cristy045228a2013-06-23 11:00:16 +000023541 :
cristy501c8042011-05-26 17:46:28 +000023542else
23543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23544/* end confdefs.h. */
23545#include <limits.h>
cristy5ed9c6e2013-07-14 21:20:31 +000023546 #ifndef LLONG_MAX
23547 # define HALF \
23548 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
23549 # define LLONG_MAX (HALF - 1 + HALF)
23550 #endif
cristy501c8042011-05-26 17:46:28 +000023551int
23552main ()
23553{
23554long long int n = 1;
cristy5ed9c6e2013-07-14 21:20:31 +000023555 int i;
23556 for (i = 0; ; i++)
23557 {
23558 long long int m = n << i;
23559 if (m >> i != n)
23560 return 1;
23561 if (LLONG_MAX / 2 < m)
23562 break;
23563 }
23564 return 0;
cristy501c8042011-05-26 17:46:28 +000023565 ;
23566 return 0;
23567}
23568_ACEOF
23569if ac_fn_c_try_run "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023570
cristy501c8042011-05-26 17:46:28 +000023571else
23572 ac_cv_type_long_long_int=no
23573fi
23574rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23575 conftest.$ac_objext conftest.beam conftest.$ac_ext
23576fi
23577
cristy5ed9c6e2013-07-14 21:20:31 +000023578 fi
cristy045228a2013-06-23 11:00:16 +000023579 fi
cristy501c8042011-05-26 17:46:28 +000023580fi
23581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23582$as_echo "$ac_cv_type_long_long_int" >&6; }
23583 if test $ac_cv_type_long_long_int = yes; then
23584
23585$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23586
23587 fi
23588
23589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
23590$as_echo_n "checking for mbstate_t... " >&6; }
23591if ${ac_cv_type_mbstate_t+:} false; then :
23592 $as_echo_n "(cached) " >&6
23593else
23594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23595/* end confdefs.h. */
23596$ac_includes_default
23597# include <wchar.h>
23598int
23599main ()
23600{
23601mbstate_t x; return sizeof x;
23602 ;
23603 return 0;
23604}
23605_ACEOF
23606if ac_fn_c_try_compile "$LINENO"; then :
23607 ac_cv_type_mbstate_t=yes
23608else
23609 ac_cv_type_mbstate_t=no
23610fi
23611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23612fi
23613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
23614$as_echo "$ac_cv_type_mbstate_t" >&6; }
23615 if test $ac_cv_type_mbstate_t = yes; then
23616
23617$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
23618
23619 else
23620
23621$as_echo "#define mbstate_t int" >>confdefs.h
23622
23623 fi
23624ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
23625if test "x$ac_cv_type_mode_t" = xyes; then :
23626
23627else
23628
23629cat >>confdefs.h <<_ACEOF
23630#define mode_t int
23631_ACEOF
23632
23633fi
23634
23635ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
23636if test "x$ac_cv_type_off_t" = xyes; then :
23637
23638else
23639
23640cat >>confdefs.h <<_ACEOF
23641#define off_t long int
23642_ACEOF
23643
23644fi
23645
23646ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
23647if test "x$ac_cv_type_pid_t" = xyes; then :
23648
23649else
23650
23651cat >>confdefs.h <<_ACEOF
23652#define pid_t int
23653_ACEOF
23654
23655fi
23656
23657ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
23658if test "x$ac_cv_type_size_t" = xyes; then :
23659
23660else
23661
23662cat >>confdefs.h <<_ACEOF
23663#define size_t unsigned int
23664_ACEOF
23665
23666fi
23667
23668ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23669if test "x$ac_cv_type_ssize_t" = xyes; then :
23670
23671else
23672
23673cat >>confdefs.h <<_ACEOF
23674#define ssize_t int
23675_ACEOF
23676
23677fi
23678
23679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
23680$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
23681if ${ac_cv_type_uid_t+:} false; then :
23682 $as_echo_n "(cached) " >&6
23683else
23684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23685/* end confdefs.h. */
23686#include <sys/types.h>
23687
23688_ACEOF
23689if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23690 $EGREP "uid_t" >/dev/null 2>&1; then :
23691 ac_cv_type_uid_t=yes
23692else
23693 ac_cv_type_uid_t=no
23694fi
23695rm -f conftest*
23696
23697fi
23698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
23699$as_echo "$ac_cv_type_uid_t" >&6; }
23700if test $ac_cv_type_uid_t = no; then
23701
23702$as_echo "#define uid_t int" >>confdefs.h
23703
23704
23705$as_echo "#define gid_t int" >>confdefs.h
23706
23707fi
23708
23709ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
23710case $ac_cv_c_uint8_t in #(
23711 no|yes) ;; #(
23712 *)
23713
23714$as_echo "#define _UINT8_T 1" >>confdefs.h
23715
23716
23717cat >>confdefs.h <<_ACEOF
23718#define uint8_t $ac_cv_c_uint8_t
23719_ACEOF
23720;;
23721 esac
23722
23723ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
23724case $ac_cv_c_uint16_t in #(
23725 no|yes) ;; #(
23726 *)
23727
23728
23729cat >>confdefs.h <<_ACEOF
23730#define uint16_t $ac_cv_c_uint16_t
23731_ACEOF
23732;;
23733 esac
23734
23735ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
23736case $ac_cv_c_uint32_t in #(
23737 no|yes) ;; #(
23738 *)
23739
23740$as_echo "#define _UINT32_T 1" >>confdefs.h
23741
23742
23743cat >>confdefs.h <<_ACEOF
23744#define uint32_t $ac_cv_c_uint32_t
23745_ACEOF
23746;;
23747 esac
23748
23749ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
23750case $ac_cv_c_uint64_t in #(
23751 no|yes) ;; #(
23752 *)
23753
23754$as_echo "#define _UINT64_T 1" >>confdefs.h
23755
23756
23757cat >>confdefs.h <<_ACEOF
23758#define uint64_t $ac_cv_c_uint64_t
23759_ACEOF
23760;;
23761 esac
23762
23763
cristy501c8042011-05-26 17:46:28 +000023764
23765 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
23766if test "x$ac_cv_type_uintmax_t" = xyes; then :
23767
23768$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
23769
23770else
23771 test $ac_cv_type_unsigned_long_long_int = yes \
23772 && ac_type='unsigned long long int' \
23773 || ac_type='unsigned long int'
23774
23775cat >>confdefs.h <<_ACEOF
23776#define uintmax_t $ac_type
23777_ACEOF
23778
23779fi
23780
23781
23782
23783 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23784if test "x$ac_cv_type_uintptr_t" = xyes; then :
23785
23786$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
23787
23788else
23789 for ac_type in 'unsigned int' 'unsigned long int' \
23790 'unsigned long long int'; do
23791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23792/* end confdefs.h. */
23793$ac_includes_default
23794int
23795main ()
23796{
23797static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000023798test_array [0] = 0;
23799return test_array [0];
cristy501c8042011-05-26 17:46:28 +000023800
23801 ;
23802 return 0;
23803}
23804_ACEOF
23805if ac_fn_c_try_compile "$LINENO"; then :
23806
23807cat >>confdefs.h <<_ACEOF
23808#define uintptr_t $ac_type
23809_ACEOF
23810
23811 ac_type=
23812fi
23813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23814 test -z "$ac_type" && break
23815 done
23816fi
23817
23818
23819
23820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23821$as_echo_n "checking for unsigned long long int... " >&6; }
23822if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23823 $as_echo_n "(cached) " >&6
23824else
cristy045228a2013-06-23 11:00:16 +000023825 ac_cv_type_unsigned_long_long_int=yes
23826 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
23827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000023828/* end confdefs.h. */
23829
23830 /* For now, do not test the preprocessor; as of 2007 there are too many
cristy5ed9c6e2013-07-14 21:20:31 +000023831 implementations with broken preprocessors. Perhaps this can
23832 be revisited in 2012. In the meantime, code should not expect
23833 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000023834 /* Test literals. */
23835 long long int ll = 9223372036854775807ll;
23836 long long int nll = -9223372036854775807LL;
23837 unsigned long long int ull = 18446744073709551615ULL;
23838 /* Test constant expressions. */
23839 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristy5ed9c6e2013-07-14 21:20:31 +000023840 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023841 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristy5ed9c6e2013-07-14 21:20:31 +000023842 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023843 int i = 63;
23844int
23845main ()
23846{
23847/* Test availability of runtime routines for shift and division. */
23848 long long int llmax = 9223372036854775807ll;
23849 unsigned long long int ullmax = 18446744073709551615ull;
23850 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristy5ed9c6e2013-07-14 21:20:31 +000023851 | (llmax / ll) | (llmax % ll)
23852 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23853 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000023854 ;
23855 return 0;
23856}
23857
23858_ACEOF
23859if ac_fn_c_try_link "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023860
cristy501c8042011-05-26 17:46:28 +000023861else
23862 ac_cv_type_unsigned_long_long_int=no
23863fi
23864rm -f core conftest.err conftest.$ac_objext \
23865 conftest$ac_exeext conftest.$ac_ext
cristy045228a2013-06-23 11:00:16 +000023866 fi
cristy501c8042011-05-26 17:46:28 +000023867fi
23868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23869$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23870 if test $ac_cv_type_unsigned_long_long_int = yes; then
23871
23872$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23873
23874 fi
23875
23876
cristy708922a2015-05-17 02:33:56 +000023877ac_fn_c_check_type "$LINENO" "locale_t" "ac_cv_type_locale_t" "#include <xlocale.h>
23878"
cristy98beafc2015-05-14 19:55:55 +000023879if test "x$ac_cv_type_locale_t" = xyes; then :
23880
23881cat >>confdefs.h <<_ACEOF
23882#define HAVE_LOCALE_T 1
23883_ACEOF
23884
23885
23886fi
23887
23888
cristyfec31822013-05-23 12:32:12 +000023889# Float_t and double_t are intended to be the the most efficient type.
23890ac_fn_c_check_type "$LINENO" "float_t" "ac_cv_type_float_t" "#include <math.h>
23891"
23892if test "x$ac_cv_type_float_t" = xyes; then :
23893
23894cat >>confdefs.h <<_ACEOF
23895#define HAVE_FLOAT_T 1
23896_ACEOF
23897
23898
23899fi
23900
23901ac_fn_c_check_type "$LINENO" "double_t" "ac_cv_type_double_t" "#include <math.h>
23902"
23903if test "x$ac_cv_type_double_t" = xyes; then :
23904
23905cat >>confdefs.h <<_ACEOF
23906#define HAVE_DOUBLE_T 1
23907_ACEOF
23908
23909
23910fi
23911
23912# The cast to long int works around a bug in the HP C Compiler
23913# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23914# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23915# This bug is HP SR number 8606223364.
23916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float_t" >&5
23917$as_echo_n "checking size of float_t... " >&6; }
23918if ${ac_cv_sizeof_float_t+:} false; then :
23919 $as_echo_n "(cached) " >&6
23920else
23921 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float_t))" "ac_cv_sizeof_float_t" "#include <math.h>
23922"; then :
23923
23924else
23925 if test "$ac_cv_type_float_t" = yes; then
23926 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23927$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23928as_fn_error 77 "cannot compute sizeof (float_t)
23929See \`config.log' for more details" "$LINENO" 5; }
23930 else
23931 ac_cv_sizeof_float_t=0
23932 fi
23933fi
23934
23935fi
23936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float_t" >&5
23937$as_echo "$ac_cv_sizeof_float_t" >&6; }
23938
23939
23940
23941cat >>confdefs.h <<_ACEOF
23942#define SIZEOF_FLOAT_T $ac_cv_sizeof_float_t
23943_ACEOF
23944
23945
23946# The cast to long int works around a bug in the HP C Compiler
23947# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23948# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23949# This bug is HP SR number 8606223364.
23950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double_t" >&5
23951$as_echo_n "checking size of double_t... " >&6; }
23952if ${ac_cv_sizeof_double_t+:} false; then :
23953 $as_echo_n "(cached) " >&6
23954else
23955 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double_t))" "ac_cv_sizeof_double_t" "#include <math.h>
23956"; then :
23957
23958else
23959 if test "$ac_cv_type_double_t" = yes; then
23960 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23961$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23962as_fn_error 77 "cannot compute sizeof (double_t)
23963See \`config.log' for more details" "$LINENO" 5; }
23964 else
23965 ac_cv_sizeof_double_t=0
23966 fi
23967fi
23968
23969fi
23970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double_t" >&5
23971$as_echo "$ac_cv_sizeof_double_t" >&6; }
23972
23973
23974
23975cat >>confdefs.h <<_ACEOF
23976#define SIZEOF_DOUBLE_T $ac_cv_sizeof_double_t
23977_ACEOF
23978
23979
23980
cristy9b86f202012-11-28 21:55:35 +000023981# Get size of float, double and long double for comparaison.
23982# The cast to long int works around a bug in the HP C Compiler
23983# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23984# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23985# This bug is HP SR number 8606223364.
23986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
23987$as_echo_n "checking size of float... " >&6; }
23988if ${ac_cv_sizeof_float+:} false; then :
23989 $as_echo_n "(cached) " >&6
23990else
23991 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
23992
23993else
23994 if test "$ac_cv_type_float" = yes; then
23995 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23996$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23997as_fn_error 77 "cannot compute sizeof (float)
23998See \`config.log' for more details" "$LINENO" 5; }
23999 else
24000 ac_cv_sizeof_float=0
24001 fi
24002fi
24003
24004fi
24005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
24006$as_echo "$ac_cv_sizeof_float" >&6; }
24007
24008
24009
24010cat >>confdefs.h <<_ACEOF
24011#define SIZEOF_FLOAT $ac_cv_sizeof_float
24012_ACEOF
24013
24014
24015# The cast to long int works around a bug in the HP C Compiler
24016# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24017# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24018# This bug is HP SR number 8606223364.
24019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
24020$as_echo_n "checking size of double... " >&6; }
24021if ${ac_cv_sizeof_double+:} false; then :
24022 $as_echo_n "(cached) " >&6
24023else
24024 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
24025
24026else
24027 if test "$ac_cv_type_double" = yes; then
24028 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24029$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24030as_fn_error 77 "cannot compute sizeof (double)
24031See \`config.log' for more details" "$LINENO" 5; }
24032 else
24033 ac_cv_sizeof_double=0
24034 fi
24035fi
24036
24037fi
24038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
24039$as_echo "$ac_cv_sizeof_double" >&6; }
24040
24041
24042
24043cat >>confdefs.h <<_ACEOF
24044#define SIZEOF_DOUBLE $ac_cv_sizeof_double
24045_ACEOF
24046
24047
cristy9e2b6242014-03-25 11:49:41 +000024048# The cast to long int works around a bug in the HP C Compiler
cristyfec31822013-05-23 12:32:12 +000024049# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24050# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24051# This bug is HP SR number 8606223364.
24052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
24053$as_echo_n "checking size of long double... " >&6; }
24054if ${ac_cv_sizeof_long_double+:} false; then :
24055 $as_echo_n "(cached) " >&6
24056else
24057 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
24058
24059else
24060 if test "$ac_cv_type_long_double" = yes; then
24061 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24062$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24063as_fn_error 77 "cannot compute sizeof (long double)
24064See \`config.log' for more details" "$LINENO" 5; }
24065 else
24066 ac_cv_sizeof_long_double=0
24067 fi
24068fi
24069
24070fi
24071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
24072$as_echo "$ac_cv_sizeof_long_double" >&6; }
24073
24074
24075
24076cat >>confdefs.h <<_ACEOF
24077#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
24078_ACEOF
24079
24080
cristyf0cf9a22012-10-24 12:05:01 +000024081
cristy3ed852e2009-09-05 21:47:34 +000024082# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
24083# The cast to long int works around a bug in the HP C Compiler
24084# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24085# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24086# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000024088$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024089if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024090 $as_echo_n "(cached) " >&6
24091else
cristy8b350f62009-11-15 23:12:43 +000024092 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 +000024093
cristy3ed852e2009-09-05 21:47:34 +000024094else
cristy8b350f62009-11-15 23:12:43 +000024095 if test "$ac_cv_type_signed_short" = yes; then
24096 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024097$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024098as_fn_error 77 "cannot compute sizeof (signed short)
24099See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024100 else
24101 ac_cv_sizeof_signed_short=0
24102 fi
24103fi
cristy8b350f62009-11-15 23:12:43 +000024104
cristy3ed852e2009-09-05 21:47:34 +000024105fi
cristy8b350f62009-11-15 23:12:43 +000024106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000024107$as_echo "$ac_cv_sizeof_signed_short" >&6; }
24108
24109
24110
24111cat >>confdefs.h <<_ACEOF
24112#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
24113_ACEOF
24114
24115
24116
24117# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
24118# The cast to long int works around a bug in the HP C Compiler
24119# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24120# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24121# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000024123$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024124if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024125 $as_echo_n "(cached) " >&6
24126else
cristy8b350f62009-11-15 23:12:43 +000024127 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 +000024128
cristy3ed852e2009-09-05 21:47:34 +000024129else
cristy8b350f62009-11-15 23:12:43 +000024130 if test "$ac_cv_type_unsigned_short" = yes; then
24131 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024132$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024133as_fn_error 77 "cannot compute sizeof (unsigned short)
24134See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024135 else
24136 ac_cv_sizeof_unsigned_short=0
24137 fi
24138fi
cristy8b350f62009-11-15 23:12:43 +000024139
cristy3ed852e2009-09-05 21:47:34 +000024140fi
cristy8b350f62009-11-15 23:12:43 +000024141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000024142$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
24143
24144
24145
24146cat >>confdefs.h <<_ACEOF
24147#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
24148_ACEOF
24149
24150
24151
24152# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
24153# The cast to long int works around a bug in the HP C Compiler
24154# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24155# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24156# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024158$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024159if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024160 $as_echo_n "(cached) " >&6
24161else
cristy8b350f62009-11-15 23:12:43 +000024162 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 +000024163
cristy3ed852e2009-09-05 21:47:34 +000024164else
cristy8b350f62009-11-15 23:12:43 +000024165 if test "$ac_cv_type_signed_int" = yes; then
24166 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024167$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024168as_fn_error 77 "cannot compute sizeof (signed int)
24169See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024170 else
24171 ac_cv_sizeof_signed_int=0
24172 fi
24173fi
cristy8b350f62009-11-15 23:12:43 +000024174
cristy3ed852e2009-09-05 21:47:34 +000024175fi
cristy8b350f62009-11-15 23:12:43 +000024176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024177$as_echo "$ac_cv_sizeof_signed_int" >&6; }
24178
24179
24180
24181cat >>confdefs.h <<_ACEOF
24182#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
24183_ACEOF
24184
24185
24186
24187# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
24188# The cast to long int works around a bug in the HP C Compiler
24189# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24190# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24191# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024193$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024194if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024195 $as_echo_n "(cached) " >&6
24196else
cristy8b350f62009-11-15 23:12:43 +000024197 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 +000024198
cristy3ed852e2009-09-05 21:47:34 +000024199else
cristy8b350f62009-11-15 23:12:43 +000024200 if test "$ac_cv_type_unsigned_int" = yes; then
24201 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024202$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024203as_fn_error 77 "cannot compute sizeof (unsigned int)
24204See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024205 else
24206 ac_cv_sizeof_unsigned_int=0
24207 fi
24208fi
cristy8b350f62009-11-15 23:12:43 +000024209
cristy3ed852e2009-09-05 21:47:34 +000024210fi
cristy8b350f62009-11-15 23:12:43 +000024211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024212$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
24213
24214
24215
24216cat >>confdefs.h <<_ACEOF
24217#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
24218_ACEOF
24219
24220
24221
24222# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
24223# The cast to long int works around a bug in the HP C Compiler
24224# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24225# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24226# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024228$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024229if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024230 $as_echo_n "(cached) " >&6
24231else
cristy8b350f62009-11-15 23:12:43 +000024232 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 +000024233
cristy3ed852e2009-09-05 21:47:34 +000024234else
cristy8b350f62009-11-15 23:12:43 +000024235 if test "$ac_cv_type_signed_long" = yes; then
24236 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024237$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024238as_fn_error 77 "cannot compute sizeof (signed long)
24239See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024240 else
24241 ac_cv_sizeof_signed_long=0
24242 fi
24243fi
cristy8b350f62009-11-15 23:12:43 +000024244
cristy3ed852e2009-09-05 21:47:34 +000024245fi
cristy8b350f62009-11-15 23:12:43 +000024246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024247$as_echo "$ac_cv_sizeof_signed_long" >&6; }
24248
24249
24250
24251cat >>confdefs.h <<_ACEOF
24252#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
24253_ACEOF
24254
24255
24256
24257# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
24258# The cast to long int works around a bug in the HP C Compiler
24259# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24260# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24261# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024263$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024264if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024265 $as_echo_n "(cached) " >&6
24266else
cristy8b350f62009-11-15 23:12:43 +000024267 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 +000024268
cristy3ed852e2009-09-05 21:47:34 +000024269else
cristy8b350f62009-11-15 23:12:43 +000024270 if test "$ac_cv_type_unsigned_long" = yes; then
24271 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024272$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024273as_fn_error 77 "cannot compute sizeof (unsigned long)
24274See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024275 else
24276 ac_cv_sizeof_unsigned_long=0
24277 fi
24278fi
cristy8b350f62009-11-15 23:12:43 +000024279
cristy3ed852e2009-09-05 21:47:34 +000024280fi
cristy8b350f62009-11-15 23:12:43 +000024281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024282$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
24283
24284
24285
24286cat >>confdefs.h <<_ACEOF
24287#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
24288_ACEOF
24289
24290
24291
24292# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
24293# 'signed long long' is not supported then the value defined is zero.
24294# The cast to long int works around a bug in the HP C Compiler
24295# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24296# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24297# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024299$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024300if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024301 $as_echo_n "(cached) " >&6
24302else
cristy8b350f62009-11-15 23:12:43 +000024303 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long long))" "ac_cv_sizeof_signed_long_long" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +000024304
cristy3ed852e2009-09-05 21:47:34 +000024305else
cristy8b350f62009-11-15 23:12:43 +000024306 if test "$ac_cv_type_signed_long_long" = yes; then
24307 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024308$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024309as_fn_error 77 "cannot compute sizeof (signed long long)
24310See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024311 else
24312 ac_cv_sizeof_signed_long_long=0
24313 fi
24314fi
cristy8b350f62009-11-15 23:12:43 +000024315
cristy3ed852e2009-09-05 21:47:34 +000024316fi
cristy8b350f62009-11-15 23:12:43 +000024317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024318$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
24319
24320
24321
24322cat >>confdefs.h <<_ACEOF
24323#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
24324_ACEOF
24325
24326
24327
24328# Obtain size of a 'unsigned long long' and define as
24329# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
24330# supported then the value defined is zero.
24331# The cast to long int works around a bug in the HP C Compiler
24332# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24333# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24334# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024336$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024337if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024338 $as_echo_n "(cached) " >&6
24339else
cristy8b350f62009-11-15 23:12:43 +000024340 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 +000024341
cristy3ed852e2009-09-05 21:47:34 +000024342else
cristy8b350f62009-11-15 23:12:43 +000024343 if test "$ac_cv_type_unsigned_long_long" = yes; then
24344 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024345$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024346as_fn_error 77 "cannot compute sizeof (unsigned long long)
24347See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024348 else
24349 ac_cv_sizeof_unsigned_long_long=0
24350 fi
24351fi
cristy8b350f62009-11-15 23:12:43 +000024352
cristy3ed852e2009-09-05 21:47:34 +000024353fi
cristy8b350f62009-11-15 23:12:43 +000024354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024355$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
24356
24357
24358
24359cat >>confdefs.h <<_ACEOF
24360#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
24361_ACEOF
24362
24363
24364
cristyfec31822013-05-23 12:32:12 +000024365# Obtain size of off_t and define as SIZEOF_OFF_T
24366# The cast to long int works around a bug in the HP C Compiler
24367# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24368# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24369# This bug is HP SR number 8606223364.
24370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
24371$as_echo_n "checking size of off_t... " >&6; }
24372if ${ac_cv_sizeof_off_t+:} false; then :
24373 $as_echo_n "(cached) " >&6
24374else
24375 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
24376
24377else
24378 if test "$ac_cv_type_off_t" = yes; then
24379 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24380$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24381as_fn_error 77 "cannot compute sizeof (off_t)
24382See \`config.log' for more details" "$LINENO" 5; }
24383 else
24384 ac_cv_sizeof_off_t=0
24385 fi
24386fi
24387
24388fi
24389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
24390$as_echo "$ac_cv_sizeof_off_t" >&6; }
24391
24392
24393
24394cat >>confdefs.h <<_ACEOF
24395#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
24396_ACEOF
24397
24398
24399
24400# Obtain size of size_t and define as SIZEOF_SIZE_T
24401# The cast to long int works around a bug in the HP C Compiler
24402# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24403# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24404# This bug is HP SR number 8606223364.
24405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
24406$as_echo_n "checking size of size_t... " >&6; }
24407if ${ac_cv_sizeof_size_t+:} false; then :
24408 $as_echo_n "(cached) " >&6
24409else
24410 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
24411
24412else
24413 if test "$ac_cv_type_size_t" = yes; then
24414 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24415$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24416as_fn_error 77 "cannot compute sizeof (size_t)
24417See \`config.log' for more details" "$LINENO" 5; }
24418 else
24419 ac_cv_sizeof_size_t=0
24420 fi
24421fi
24422
24423fi
24424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
24425$as_echo "$ac_cv_sizeof_size_t" >&6; }
24426
24427
24428
24429cat >>confdefs.h <<_ACEOF
24430#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
24431_ACEOF
24432
24433
24434
24435# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
24436# The cast to long int works around a bug in the HP C Compiler
24437# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24438# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24439# This bug is HP SR number 8606223364.
24440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
24441$as_echo_n "checking size of ssize_t... " >&6; }
24442if ${ac_cv_sizeof_ssize_t+:} false; then :
24443 $as_echo_n "(cached) " >&6
24444else
24445 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
24446
24447else
24448 if test "$ac_cv_type_ssize_t" = yes; then
24449 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24450$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24451as_fn_error 77 "cannot compute sizeof (ssize_t)
24452See \`config.log' for more details" "$LINENO" 5; }
24453 else
24454 ac_cv_sizeof_ssize_t=0
24455 fi
24456fi
24457
24458fi
24459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
24460$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
24461
24462
24463
24464cat >>confdefs.h <<_ACEOF
24465#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
24466_ACEOF
24467
24468
24469
cristy3ed852e2009-09-05 21:47:34 +000024470# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
24471# The cast to long int works around a bug in the HP C Compiler
24472# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24473# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24474# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000024476$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024477if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024478 $as_echo_n "(cached) " >&6
24479else
cristy8b350f62009-11-15 23:12:43 +000024480 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 +000024481
cristy3ed852e2009-09-05 21:47:34 +000024482else
cristy8b350f62009-11-15 23:12:43 +000024483 if test "$ac_cv_type_unsigned_intp" = yes; then
24484 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024485$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024486as_fn_error 77 "cannot compute sizeof (unsigned int*)
24487See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024488 else
24489 ac_cv_sizeof_unsigned_intp=0
24490 fi
24491fi
cristy8b350f62009-11-15 23:12:43 +000024492
cristy3ed852e2009-09-05 21:47:34 +000024493fi
cristy8b350f62009-11-15 23:12:43 +000024494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024495$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
24496
24497
24498
24499cat >>confdefs.h <<_ACEOF
24500#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
24501_ACEOF
24502
24503
24504
24505#
24506# Compute sized types for current CPU and compiler options.
24507#
24508
cristy8b350f62009-11-15 23:12:43 +000024509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024510$as_echo_n "checking for signed 8-bit type... " >&6; }
24511INT8_T='signed char'
cristyad38abe2012-12-23 23:03:21 +000024512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
24513$as_echo "$INT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024514
24515
cristy8b350f62009-11-15 23:12:43 +000024516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024517$as_echo_n "checking for unsigned 8-bit type... " >&6; }
24518UINT8_T='unsigned char'
cristyad38abe2012-12-23 23:03:21 +000024519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
24520$as_echo "$UINT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024521
24522
cristy8b350f62009-11-15 23:12:43 +000024523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024524$as_echo_n "checking for signed 16-bit type... " >&6; }
24525INT16_T='signed short'
cristyad38abe2012-12-23 23:03:21 +000024526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
24527$as_echo "$INT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024528
24529
cristy8b350f62009-11-15 23:12:43 +000024530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024531$as_echo_n "checking for unsigned 16-bit type... " >&6; }
24532UINT16_T='unsigned short'
cristyad38abe2012-12-23 23:03:21 +000024533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
24534$as_echo "$UINT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024535
24536
cristy8b350f62009-11-15 23:12:43 +000024537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024538$as_echo_n "checking for signed 32-bit type... " >&6; }
24539INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024540INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024541if test $ac_cv_sizeof_signed_int -eq 4; then
24542 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000024543 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000024544elif test $ac_cv_sizeof_signed_long -eq 4; then
24545 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000024546 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024547fi
cristyad38abe2012-12-23 23:03:21 +000024548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
24549$as_echo "$INT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024550
24551
cristy6d5e20f2011-04-25 13:48:54 +000024552
cristy8b350f62009-11-15 23:12:43 +000024553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024554$as_echo_n "checking for unsigned 32-bit type... " >&6; }
24555UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024556UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024557if test $ac_cv_sizeof_unsigned_int -eq 4; then
24558 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000024559 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000024560elif test $ac_cv_sizeof_unsigned_long -eq 4; then
24561 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024562 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024563fi
cristyad38abe2012-12-23 23:03:21 +000024564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
24565$as_echo "$UINT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024566
24567
cristy6d5e20f2011-04-25 13:48:54 +000024568
cristy8b350f62009-11-15 23:12:43 +000024569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024570$as_echo_n "checking for signed 64-bit type... " >&6; }
24571INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024572INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024573if test $ac_cv_sizeof_signed_long -eq 8; then
24574 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000024575 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024576elif test $ac_cv_sizeof_signed_long_long -eq 8; then
24577 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000024578 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024579fi
cristy3a99dcf2011-12-17 01:29:40 +000024580case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000024581 mingw* )
24582 INT64_F='"I64"'
24583 ;;
24584esac
cristyad38abe2012-12-23 23:03:21 +000024585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
24586$as_echo "$INT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024587
24588
cristy6d5e20f2011-04-25 13:48:54 +000024589
cristy8b350f62009-11-15 23:12:43 +000024590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024591$as_echo_n "checking for unsigned 64-bit type... " >&6; }
24592UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024593UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024594if test $ac_cv_sizeof_unsigned_long -eq 8; then
24595 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024596 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024597elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
24598 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000024599 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024600fi
cristy3a99dcf2011-12-17 01:29:40 +000024601case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000024602 mingw* )
24603 UINT64_F='"I64"'
24604 ;;
24605esac
cristyad38abe2012-12-23 23:03:21 +000024606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
24607$as_echo "$UINT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024608
24609
cristy6d5e20f2011-04-25 13:48:54 +000024610
cristy8b350f62009-11-15 23:12:43 +000024611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024612$as_echo_n "checking for unsigned maximum type... " >&6; }
24613UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024614UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024615if test "$UINT64_T" != 'none'; then
24616 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000024617 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000024618elif test "$UINT32_T" != 'none'; then
24619 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000024620 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000024621fi
cristyad38abe2012-12-23 23:03:21 +000024622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
24623$as_echo "$UINTMAX_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024624
24625
cristy6d5e20f2011-04-25 13:48:54 +000024626
cristy8b350f62009-11-15 23:12:43 +000024627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024628$as_echo_n "checking for pointer difference type... " >&6; }
24629UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024630UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024631if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
24632 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024633 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024634elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
24635 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000024636 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024637fi
cristyad38abe2012-12-23 23:03:21 +000024638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
24639$as_echo "$UINTPTR_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024640
24641
cristy6d5e20f2011-04-25 13:48:54 +000024642
cristy8b350f62009-11-15 23:12:43 +000024643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024644$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024645cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024646/* end confdefs.h. */
24647
24648int
24649main ()
24650{
24651{ const char *func = __func__; return(func != 0 ? 0 : 1); }
24652 ;
24653 return 0;
24654}
24655_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024656if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000024657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24658$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024659else
cristyad38abe2012-12-23 23:03:21 +000024660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24661$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024663$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024665/* end confdefs.h. */
24666
24667int
24668main ()
24669{
24670{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
24671 ;
24672 return 0;
24673}
24674_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024675if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000024676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24677$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024678
cristy8b350f62009-11-15 23:12:43 +000024679$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024680
24681else
cristyad38abe2012-12-23 23:03:21 +000024682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24683$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024684
cristy8b350f62009-11-15 23:12:43 +000024685$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024686
24687fi
cristy3ed852e2009-09-05 21:47:34 +000024688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24689fi
cristy3ed852e2009-09-05 21:47:34 +000024690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24691
24692########
24693#
24694# Check for functions
24695#
24696########
cristy8b350f62009-11-15 23:12:43 +000024697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024698$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024699if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024700 $as_echo_n "(cached) " >&6
24701else
cristy8b350f62009-11-15 23:12:43 +000024702 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024703 ac_cv_func_closedir_void=yes
24704else
cristy8b350f62009-11-15 23:12:43 +000024705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024706/* end confdefs.h. */
24707$ac_includes_default
24708#include <$ac_header_dirent>
24709#ifndef __cplusplus
24710int closedir ();
24711#endif
24712
24713int
24714main ()
24715{
24716return closedir (opendir (".")) != 0;
24717 ;
24718 return 0;
24719}
24720_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024721if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024722 ac_cv_func_closedir_void=no
24723else
cristy8b350f62009-11-15 23:12:43 +000024724 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000024725fi
cristy8b350f62009-11-15 23:12:43 +000024726rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24727 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024728fi
24729
cristy3ed852e2009-09-05 21:47:34 +000024730fi
cristy8b350f62009-11-15 23:12:43 +000024731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024732$as_echo "$ac_cv_func_closedir_void" >&6; }
24733if test $ac_cv_func_closedir_void = yes; then
24734
cristy8b350f62009-11-15 23:12:43 +000024735$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024736
24737fi
24738
cristycd4c5312009-11-22 01:19:08 +000024739
24740
24741
24742 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000024743do :
24744 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000024745ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24746"
cristy98dddb52010-11-04 00:30:15 +000024747if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024748 cat >>confdefs.h <<_ACEOF
24749#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24750_ACEOF
24751
24752fi
24753
24754done
24755
cristycd4c5312009-11-22 01:19:08 +000024756
24757
24758
24759
24760
24761
24762
cristy3ed852e2009-09-05 21:47:34 +000024763for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000024764do :
24765 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024766if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024767 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024768#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000024769_ACEOF
24770
24771fi
24772done
24773
cristy8b350f62009-11-15 23:12:43 +000024774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000024775$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024776if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024777 $as_echo_n "(cached) " >&6
24778else
cristy8b350f62009-11-15 23:12:43 +000024779 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024780 ac_cv_func_mmap_fixed_mapped=no
24781else
cristy8b350f62009-11-15 23:12:43 +000024782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024783/* end confdefs.h. */
24784$ac_includes_default
24785/* malloc might have been renamed as rpl_malloc. */
24786#undef malloc
24787
24788/* Thanks to Mike Haertel and Jim Avera for this test.
24789 Here is a matrix of mmap possibilities:
24790 mmap private not fixed
24791 mmap private fixed at somewhere currently unmapped
24792 mmap private fixed at somewhere already mapped
24793 mmap shared not fixed
24794 mmap shared fixed at somewhere currently unmapped
24795 mmap shared fixed at somewhere already mapped
24796 For private mappings, we should verify that changes cannot be read()
24797 back from the file, nor mmap's back from the file at a different
24798 address. (There have been systems where private was not correctly
24799 implemented like the infamous i386 svr4.0, and systems where the
24800 VM page cache was not coherent with the file system buffer cache
24801 like early versions of FreeBSD and possibly contemporary NetBSD.)
24802 For shared mappings, we should conversely verify that changes get
24803 propagated back to all the places they're supposed to be.
24804
24805 Grep wants private fixed already mapped.
24806 The main things grep needs to know about mmap are:
24807 * does it exist and is it safe to write into the mmap'd area
24808 * how to use it (BSD variants) */
24809
24810#include <fcntl.h>
24811#include <sys/mman.h>
24812
24813#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24814char *malloc ();
24815#endif
24816
24817/* This mess was copied from the GNU getpagesize.h. */
24818#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000024819# ifdef _SC_PAGESIZE
24820# define getpagesize() sysconf(_SC_PAGESIZE)
24821# else /* no _SC_PAGESIZE */
24822# ifdef HAVE_SYS_PARAM_H
24823# include <sys/param.h>
24824# ifdef EXEC_PAGESIZE
24825# define getpagesize() EXEC_PAGESIZE
24826# else /* no EXEC_PAGESIZE */
24827# ifdef NBPG
24828# define getpagesize() NBPG * CLSIZE
24829# ifndef CLSIZE
24830# define CLSIZE 1
24831# endif /* no CLSIZE */
24832# else /* no NBPG */
24833# ifdef NBPC
24834# define getpagesize() NBPC
24835# else /* no NBPC */
24836# ifdef PAGESIZE
24837# define getpagesize() PAGESIZE
24838# endif /* PAGESIZE */
24839# endif /* no NBPC */
24840# endif /* no NBPG */
24841# endif /* no EXEC_PAGESIZE */
24842# else /* no HAVE_SYS_PARAM_H */
24843# define getpagesize() 8192 /* punt totally */
24844# endif /* no HAVE_SYS_PARAM_H */
24845# endif /* no _SC_PAGESIZE */
24846
24847#endif /* no HAVE_GETPAGESIZE */
24848
24849int
24850main ()
24851{
24852 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000024853 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000024854 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000024855 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000024856
24857 pagesize = getpagesize ();
24858
24859 /* First, make a file with some known garbage in it. */
24860 data = (char *) malloc (pagesize);
24861 if (!data)
24862 return 1;
24863 for (i = 0; i < pagesize; ++i)
24864 *(data + i) = rand ();
24865 umask (0);
24866 fd = creat ("conftest.mmap", 0600);
24867 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024868 return 2;
cristy3ed852e2009-09-05 21:47:34 +000024869 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024870 return 3;
cristy3ed852e2009-09-05 21:47:34 +000024871 close (fd);
24872
cristycd4c5312009-11-22 01:19:08 +000024873 /* Next, check that the tail of a page is zero-filled. File must have
24874 non-zero length, otherwise we risk SIGBUS for entire page. */
24875 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24876 if (fd2 < 0)
24877 return 4;
cristyc54f5d42009-11-27 21:36:31 +000024878 cdata2 = "";
24879 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000024880 return 5;
cristyc54f5d42009-11-27 21:36:31 +000024881 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000024882 if (data2 == MAP_FAILED)
24883 return 6;
24884 for (i = 0; i < pagesize; ++i)
24885 if (*(data2 + i))
24886 return 7;
24887 close (fd2);
24888 if (munmap (data2, pagesize))
24889 return 8;
24890
cristy3ed852e2009-09-05 21:47:34 +000024891 /* Next, try to mmap the file at a fixed address which already has
24892 something else allocated at it. If we can, also make sure that
24893 we see the same garbage. */
24894 fd = open ("conftest.mmap", O_RDWR);
24895 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024896 return 9;
cristy3ed852e2009-09-05 21:47:34 +000024897 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24898 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000024899 return 10;
cristy3ed852e2009-09-05 21:47:34 +000024900 for (i = 0; i < pagesize; ++i)
24901 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000024902 return 11;
cristy3ed852e2009-09-05 21:47:34 +000024903
24904 /* Finally, make sure that changes to the mapped area do not
24905 percolate back to the file as seen by read(). (This is a bug on
24906 some variants of i386 svr4.0.) */
24907 for (i = 0; i < pagesize; ++i)
24908 *(data2 + i) = *(data2 + i) + 1;
24909 data3 = (char *) malloc (pagesize);
24910 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000024911 return 12;
cristy3ed852e2009-09-05 21:47:34 +000024912 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024913 return 13;
cristy3ed852e2009-09-05 21:47:34 +000024914 for (i = 0; i < pagesize; ++i)
24915 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000024916 return 14;
cristy3ed852e2009-09-05 21:47:34 +000024917 close (fd);
24918 return 0;
24919}
24920_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024921if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024922 ac_cv_func_mmap_fixed_mapped=yes
24923else
cristy8b350f62009-11-15 23:12:43 +000024924 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000024925fi
cristy8b350f62009-11-15 23:12:43 +000024926rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24927 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024928fi
24929
cristy3ed852e2009-09-05 21:47:34 +000024930fi
cristy8b350f62009-11-15 23:12:43 +000024931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000024932$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24933if test $ac_cv_func_mmap_fixed_mapped = yes; then
24934
cristy8b350f62009-11-15 23:12:43 +000024935$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024936
24937fi
cristycd4c5312009-11-22 01:19:08 +000024938rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000024939
cristy3ed852e2009-09-05 21:47:34 +000024940for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000024941do :
24942 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000024943if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024944 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024945#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000024946_ACEOF
24947
24948fi
24949
24950done
24951
cristy3ed852e2009-09-05 21:47:34 +000024952for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000024953do :
24954 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24955ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024956if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024957 cat >>confdefs.h <<_ACEOF
24958#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24959_ACEOF
24960
24961fi
24962done
24963
24964if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024966$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024967if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024968 $as_echo_n "(cached) " >&6
24969else
cristy8b350f62009-11-15 23:12:43 +000024970 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024971 ac_cv_func_fork_works=cross
24972else
cristy8b350f62009-11-15 23:12:43 +000024973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024974/* end confdefs.h. */
24975$ac_includes_default
24976int
24977main ()
24978{
24979
24980 /* By Ruediger Kuhlmann. */
24981 return fork () < 0;
24982
24983 ;
24984 return 0;
24985}
24986_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024987if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024988 ac_cv_func_fork_works=yes
24989else
cristy8b350f62009-11-15 23:12:43 +000024990 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024991fi
cristy8b350f62009-11-15 23:12:43 +000024992rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24993 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024994fi
24995
cristy3ed852e2009-09-05 21:47:34 +000024996fi
cristy8b350f62009-11-15 23:12:43 +000024997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024998$as_echo "$ac_cv_func_fork_works" >&6; }
24999
25000else
25001 ac_cv_func_fork_works=$ac_cv_func_fork
25002fi
25003if test "x$ac_cv_func_fork_works" = xcross; then
25004 case $host in
25005 *-*-amigaos* | *-*-msdosdjgpp*)
25006 # Override, as these systems have only a dummy fork() stub
25007 ac_cv_func_fork_works=no
25008 ;;
25009 *)
25010 ac_cv_func_fork_works=yes
25011 ;;
25012 esac
cristy8b350f62009-11-15 23:12:43 +000025013 { $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 +000025014$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25015fi
25016ac_cv_func_vfork_works=$ac_cv_func_vfork
25017if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000025018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000025019$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025020if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025021 $as_echo_n "(cached) " >&6
25022else
cristy8b350f62009-11-15 23:12:43 +000025023 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025024 ac_cv_func_vfork_works=cross
25025else
cristy8b350f62009-11-15 23:12:43 +000025026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025027/* end confdefs.h. */
25028/* Thanks to Paul Eggert for this test. */
25029$ac_includes_default
25030#include <sys/wait.h>
25031#ifdef HAVE_VFORK_H
25032# include <vfork.h>
25033#endif
25034/* On some sparc systems, changes by the child to local and incoming
25035 argument registers are propagated back to the parent. The compiler
25036 is told about this with #include <vfork.h>, but some compilers
25037 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25038 static variable whose address is put into a register that is
25039 clobbered by the vfork. */
25040static void
25041#ifdef __cplusplus
25042sparc_address_test (int arg)
25043# else
25044sparc_address_test (arg) int arg;
25045#endif
25046{
25047 static pid_t child;
25048 if (!child) {
25049 child = vfork ();
25050 if (child < 0) {
25051 perror ("vfork");
25052 _exit(2);
25053 }
25054 if (!child) {
25055 arg = getpid();
25056 write(-1, "", 0);
25057 _exit (arg);
25058 }
25059 }
25060}
25061
25062int
25063main ()
25064{
25065 pid_t parent = getpid ();
25066 pid_t child;
25067
25068 sparc_address_test (0);
25069
25070 child = vfork ();
25071
25072 if (child == 0) {
25073 /* Here is another test for sparc vfork register problems. This
25074 test uses lots of local variables, at least as many local
25075 variables as main has allocated so far including compiler
25076 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25077 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25078 reuse the register of parent for one of the local variables,
25079 since it will think that parent can't possibly be used any more
25080 in this routine. Assigning to the local variable will thus
25081 munge parent in the parent process. */
25082 pid_t
25083 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25084 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25085 /* Convince the compiler that p..p7 are live; otherwise, it might
25086 use the same hardware register for all 8 local variables. */
25087 if (p != p1 || p != p2 || p != p3 || p != p4
25088 || p != p5 || p != p6 || p != p7)
25089 _exit(1);
25090
25091 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25092 from child file descriptors. If the child closes a descriptor
25093 before it execs or exits, this munges the parent's descriptor
25094 as well. Test for this by closing stdout in the child. */
25095 _exit(close(fileno(stdout)) != 0);
25096 } else {
25097 int status;
25098 struct stat st;
25099
25100 while (wait(&status) != child)
25101 ;
25102 return (
25103 /* Was there some problem with vforking? */
25104 child < 0
25105
25106 /* Did the child fail? (This shouldn't happen.) */
25107 || status
25108
25109 /* Did the vfork/compiler bug occur? */
25110 || parent != getpid()
25111
25112 /* Did the file descriptor bug occur? */
25113 || fstat(fileno(stdout), &st) != 0
25114 );
25115 }
25116}
25117_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025118if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025119 ac_cv_func_vfork_works=yes
25120else
cristy8b350f62009-11-15 23:12:43 +000025121 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000025122fi
cristy8b350f62009-11-15 23:12:43 +000025123rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25124 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025125fi
25126
cristy3ed852e2009-09-05 21:47:34 +000025127fi
cristy8b350f62009-11-15 23:12:43 +000025128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000025129$as_echo "$ac_cv_func_vfork_works" >&6; }
25130
25131fi;
25132if test "x$ac_cv_func_fork_works" = xcross; then
25133 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000025134 { $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 +000025135$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25136fi
25137
25138if test "x$ac_cv_func_vfork_works" = xyes; then
25139
cristy8b350f62009-11-15 23:12:43 +000025140$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025141
25142else
25143
cristy8b350f62009-11-15 23:12:43 +000025144$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025145
25146fi
25147if test "x$ac_cv_func_fork_works" = xyes; then
25148
cristy8b350f62009-11-15 23:12:43 +000025149$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025150
25151fi
25152
cristy8b350f62009-11-15 23:12:43 +000025153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025154$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025155if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025156 $as_echo_n "(cached) " >&6
25157else
cristy8b350f62009-11-15 23:12:43 +000025158 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025159 ac_cv_func_memcmp_working=no
25160else
cristy8b350f62009-11-15 23:12:43 +000025161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025162/* end confdefs.h. */
25163$ac_includes_default
25164int
25165main ()
25166{
25167
25168 /* Some versions of memcmp are not 8-bit clean. */
25169 char c0 = '\100', c1 = '\200', c2 = '\201';
25170 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
25171 return 1;
25172
25173 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
25174 or more and with at least one buffer not starting on a 4-byte boundary.
25175 William Lewis provided this test program. */
25176 {
25177 char foo[21];
25178 char bar[21];
25179 int i;
25180 for (i = 0; i < 4; i++)
25181 {
25182 char *a = foo + i;
25183 char *b = bar + i;
25184 strcpy (a, "--------01111111");
25185 strcpy (b, "--------10000000");
25186 if (memcmp (a, b, 16) >= 0)
25187 return 1;
25188 }
25189 return 0;
25190 }
25191
25192 ;
25193 return 0;
25194}
25195_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025196if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025197 ac_cv_func_memcmp_working=yes
25198else
cristy8b350f62009-11-15 23:12:43 +000025199 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000025200fi
cristy8b350f62009-11-15 23:12:43 +000025201rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25202 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025203fi
25204
cristy3ed852e2009-09-05 21:47:34 +000025205fi
cristy8b350f62009-11-15 23:12:43 +000025206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000025207$as_echo "$ac_cv_func_memcmp_working" >&6; }
25208test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
25209 *" memcmp.$ac_objext "* ) ;;
25210 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
25211 ;;
25212esac
25213
25214
cristy3ed852e2009-09-05 21:47:34 +000025215for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000025216do :
25217 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25218ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000025219if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025220 cat >>confdefs.h <<_ACEOF
25221#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25222_ACEOF
25223
25224fi
25225
25226done
25227
cristy8b350f62009-11-15 23:12:43 +000025228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000025229$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025230if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025231 $as_echo_n "(cached) " >&6
25232else
25233 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
25234 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
25235 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000025236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025237/* end confdefs.h. */
25238$ac_includes_default
25239#ifdef HAVE_SYS_SELECT_H
25240# include <sys/select.h>
25241#endif
25242#ifdef HAVE_SYS_SOCKET_H
25243# include <sys/socket.h>
25244#endif
25245
25246int
25247main ()
25248{
25249extern int select ($ac_arg1,
25250 $ac_arg234, $ac_arg234, $ac_arg234,
25251 $ac_arg5);
25252 ;
25253 return 0;
25254}
25255_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025256if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025257 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000025258fi
cristy3ed852e2009-09-05 21:47:34 +000025259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25260 done
25261 done
25262done
25263# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000025264: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000025265
25266fi
cristy8b350f62009-11-15 23:12:43 +000025267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000025268$as_echo "$ac_cv_func_select_args" >&6; }
25269ac_save_IFS=$IFS; IFS=','
25270set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
25271IFS=$ac_save_IFS
25272shift
25273
25274cat >>confdefs.h <<_ACEOF
25275#define SELECT_TYPE_ARG1 $1
25276_ACEOF
25277
25278
25279cat >>confdefs.h <<_ACEOF
25280#define SELECT_TYPE_ARG234 ($2)
25281_ACEOF
25282
25283
25284cat >>confdefs.h <<_ACEOF
25285#define SELECT_TYPE_ARG5 ($3)
25286_ACEOF
25287
25288rm -f conftest*
25289
cristyda16f162011-02-19 23:52:17 +000025290if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025291 $as_echo_n "(cached) " >&6
25292else
25293 ac_cv_func_setvbuf_reversed=no
25294fi
25295
25296
cristy8b350f62009-11-15 23:12:43 +000025297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000025298$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025299if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025300 $as_echo_n "(cached) " >&6
25301else
cristy8b350f62009-11-15 23:12:43 +000025302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025303/* end confdefs.h. */
25304#include <sys/types.h>
25305#include <signal.h>
25306
25307int
25308main ()
25309{
25310return *(signal (0, 0)) (0) == 1;
25311 ;
25312 return 0;
25313}
25314_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025315if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025316 ac_cv_type_signal=int
25317else
cristy8b350f62009-11-15 23:12:43 +000025318 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000025319fi
cristy3ed852e2009-09-05 21:47:34 +000025320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25321fi
cristy8b350f62009-11-15 23:12:43 +000025322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000025323$as_echo "$ac_cv_type_signal" >&6; }
25324
25325cat >>confdefs.h <<_ACEOF
25326#define RETSIGTYPE $ac_cv_type_signal
25327_ACEOF
25328
25329
cristy8b350f62009-11-15 23:12:43 +000025330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000025331$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025332if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025333 $as_echo_n "(cached) " >&6
25334else
cristy8b350f62009-11-15 23:12:43 +000025335 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025336 ac_cv_func_strtod=no
25337else
cristy8b350f62009-11-15 23:12:43 +000025338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025339/* end confdefs.h. */
25340
25341$ac_includes_default
25342#ifndef strtod
25343double strtod ();
25344#endif
25345int
25346main()
25347{
25348 {
25349 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
25350 char *string = " +69";
25351 char *term;
25352 double value;
25353 value = strtod (string, &term);
25354 if (value != 69 || term != (string + 4))
25355 return 1;
25356 }
25357
25358 {
25359 /* Under Solaris 2.4, strtod returns the wrong value for the
25360 terminating character under some conditions. */
25361 char *string = "NaN";
25362 char *term;
25363 strtod (string, &term);
25364 if (term != string && *(term - 1) == 0)
25365 return 1;
25366 }
25367 return 0;
25368}
25369
25370_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025371if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025372 ac_cv_func_strtod=yes
25373else
cristy8b350f62009-11-15 23:12:43 +000025374 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000025375fi
cristy8b350f62009-11-15 23:12:43 +000025376rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25377 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025378fi
25379
cristy3ed852e2009-09-05 21:47:34 +000025380fi
cristy8b350f62009-11-15 23:12:43 +000025381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000025382$as_echo "$ac_cv_func_strtod" >&6; }
25383if test $ac_cv_func_strtod = no; then
25384 case " $LIBOBJS " in
25385 *" strtod.$ac_objext "* ) ;;
25386 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
25387 ;;
25388esac
25389
cristy8b350f62009-11-15 23:12:43 +000025390ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000025391if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025392
cristy3ed852e2009-09-05 21:47:34 +000025393fi
25394
cristy3ed852e2009-09-05 21:47:34 +000025395if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000025396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000025397$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025398if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025399 $as_echo_n "(cached) " >&6
25400else
25401 ac_check_lib_save_LIBS=$LIBS
25402LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025403cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025404/* end confdefs.h. */
25405
25406/* Override any GCC internal prototype to avoid an error.
25407 Use char because int might match the return type of a GCC
25408 builtin and then its argument prototype would still apply. */
25409#ifdef __cplusplus
25410extern "C"
25411#endif
25412char pow ();
25413int
25414main ()
25415{
25416return pow ();
25417 ;
25418 return 0;
25419}
25420_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025421if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025422 ac_cv_lib_m_pow=yes
25423else
cristy8b350f62009-11-15 23:12:43 +000025424 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000025425fi
cristy8b350f62009-11-15 23:12:43 +000025426rm -f core conftest.err conftest.$ac_objext \
25427 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025428LIBS=$ac_check_lib_save_LIBS
25429fi
cristy8b350f62009-11-15 23:12:43 +000025430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000025431$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000025432if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025433 POW_LIB=-lm
25434else
cristy8b350f62009-11-15 23:12:43 +000025435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000025436$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
25437fi
25438
25439fi
25440
25441fi
25442
cristy7d4a1d62011-10-13 15:54:12 +000025443ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
25444if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
25445 ac_have_decl=1
25446else
25447 ac_have_decl=0
25448fi
25449
25450cat >>confdefs.h <<_ACEOF
25451#define HAVE_DECL_STRERROR_R $ac_have_decl
25452_ACEOF
25453
25454for ac_func in strerror_r
25455do :
25456 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
25457if test "x$ac_cv_func_strerror_r" = xyes; then :
25458 cat >>confdefs.h <<_ACEOF
25459#define HAVE_STRERROR_R 1
25460_ACEOF
25461
25462fi
25463done
25464
25465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
25466$as_echo_n "checking whether strerror_r returns char *... " >&6; }
25467if ${ac_cv_func_strerror_r_char_p+:} false; then :
25468 $as_echo_n "(cached) " >&6
25469else
25470
25471 ac_cv_func_strerror_r_char_p=no
25472 if test $ac_cv_have_decl_strerror_r = yes; then
25473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25474/* end confdefs.h. */
25475$ac_includes_default
25476int
25477main ()
25478{
25479
25480 char buf[100];
25481 char x = *strerror_r (0, buf, sizeof buf);
25482 char *p = strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000025483 return !p || x;
cristy7d4a1d62011-10-13 15:54:12 +000025484
25485 ;
25486 return 0;
25487}
25488_ACEOF
25489if ac_fn_c_try_compile "$LINENO"; then :
25490 ac_cv_func_strerror_r_char_p=yes
25491fi
25492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25493 else
25494 # strerror_r is not declared. Choose between
25495 # systems that have relatively inaccessible declarations for the
25496 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
25497 # former has a strerror_r that returns char*, while the latter
25498 # has a strerror_r that returns `int'.
25499 # This test should segfault on the DEC system.
25500 if test "$cross_compiling" = yes; then :
25501 :
25502else
25503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25504/* end confdefs.h. */
25505$ac_includes_default
25506 extern char *strerror_r ();
25507int
25508main ()
25509{
25510char buf[100];
25511 char x = *strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000025512 return ! isalpha (x);
cristy7d4a1d62011-10-13 15:54:12 +000025513 ;
25514 return 0;
25515}
25516_ACEOF
25517if ac_fn_c_try_run "$LINENO"; then :
25518 ac_cv_func_strerror_r_char_p=yes
25519fi
25520rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25521 conftest.$ac_objext conftest.beam conftest.$ac_ext
25522fi
25523
25524 fi
25525
25526fi
25527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
25528$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
25529if test $ac_cv_func_strerror_r_char_p = yes; then
25530
25531$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
25532
25533fi
25534
cristy3ed852e2009-09-05 21:47:34 +000025535for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000025536do :
25537 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000025538if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025539 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025540#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000025541_ACEOF
25542
cristy8b350f62009-11-15 23:12:43 +000025543ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000025544if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025545
cristy8b350f62009-11-15 23:12:43 +000025546$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025547
25548fi
25549
25550fi
25551done
25552
25553
25554
cristy161b9262010-03-20 19:34:32 +000025555#
25556# Find math library
25557#
25558MATH_LIBS=''
25559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
25560$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025561if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000025562 $as_echo_n "(cached) " >&6
25563else
25564 ac_check_lib_save_LIBS=$LIBS
25565LIBS="-lm $LIBS"
25566cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25567/* end confdefs.h. */
25568
25569/* Override any GCC internal prototype to avoid an error.
25570 Use char because int might match the return type of a GCC
25571 builtin and then its argument prototype would still apply. */
25572#ifdef __cplusplus
25573extern "C"
25574#endif
25575char sqrt ();
25576int
25577main ()
25578{
25579return sqrt ();
25580 ;
25581 return 0;
25582}
25583_ACEOF
25584if ac_fn_c_try_link "$LINENO"; then :
25585 ac_cv_lib_m_sqrt=yes
25586else
25587 ac_cv_lib_m_sqrt=no
25588fi
25589rm -f core conftest.err conftest.$ac_objext \
25590 conftest$ac_exeext conftest.$ac_ext
25591LIBS=$ac_check_lib_save_LIBS
25592fi
25593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
25594$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000025595if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000025596 MATH_LIBS="-lm"
25597fi
25598
25599LIBS="$MATH_LIBS $LIBS"
25600
25601
cristy85572162013-01-04 19:19:32 +000025602#
25603# Find socket library
25604#
cristy8a5d7f42013-01-06 15:24:33 +000025605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
25606$as_echo_n "checking for library containing gethostbyname... " >&6; }
25607if ${ac_cv_search_gethostbyname+:} false; then :
25608 $as_echo_n "(cached) " >&6
25609else
25610 ac_func_search_save_LIBS=$LIBS
25611cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25612/* end confdefs.h. */
25613
25614/* Override any GCC internal prototype to avoid an error.
25615 Use char because int might match the return type of a GCC
25616 builtin and then its argument prototype would still apply. */
25617#ifdef __cplusplus
25618extern "C"
25619#endif
25620char gethostbyname ();
25621int
25622main ()
25623{
25624return gethostbyname ();
25625 ;
25626 return 0;
25627}
25628_ACEOF
25629for ac_lib in '' resolv nsl; do
25630 if test -z "$ac_lib"; then
25631 ac_res="none required"
25632 else
25633 ac_res=-l$ac_lib
25634 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25635 fi
25636 if ac_fn_c_try_link "$LINENO"; then :
25637 ac_cv_search_gethostbyname=$ac_res
25638fi
25639rm -f core conftest.err conftest.$ac_objext \
25640 conftest$ac_exeext
25641 if ${ac_cv_search_gethostbyname+:} false; then :
25642 break
25643fi
25644done
25645if ${ac_cv_search_gethostbyname+:} false; then :
25646
25647else
25648 ac_cv_search_gethostbyname=no
25649fi
25650rm conftest.$ac_ext
25651LIBS=$ac_func_search_save_LIBS
25652fi
25653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
25654$as_echo "$ac_cv_search_gethostbyname" >&6; }
25655ac_res=$ac_cv_search_gethostbyname
25656if test "$ac_res" != no; then :
25657 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25658
25659fi
25660
cristy85572162013-01-04 19:19:32 +000025661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
25662$as_echo_n "checking for library containing socket... " >&6; }
25663if ${ac_cv_search_socket+:} false; then :
25664 $as_echo_n "(cached) " >&6
25665else
25666 ac_func_search_save_LIBS=$LIBS
25667cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25668/* end confdefs.h. */
25669
25670/* Override any GCC internal prototype to avoid an error.
25671 Use char because int might match the return type of a GCC
25672 builtin and then its argument prototype would still apply. */
25673#ifdef __cplusplus
25674extern "C"
25675#endif
25676char socket ();
25677int
25678main ()
25679{
25680return socket ();
25681 ;
25682 return 0;
25683}
25684_ACEOF
25685for ac_lib in '' socket; do
25686 if test -z "$ac_lib"; then
25687 ac_res="none required"
25688 else
25689 ac_res=-l$ac_lib
25690 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25691 fi
25692 if ac_fn_c_try_link "$LINENO"; then :
25693 ac_cv_search_socket=$ac_res
25694fi
25695rm -f core conftest.err conftest.$ac_objext \
25696 conftest$ac_exeext
25697 if ${ac_cv_search_socket+:} false; then :
25698 break
25699fi
25700done
25701if ${ac_cv_search_socket+:} false; then :
25702
25703else
25704 ac_cv_search_socket=no
25705fi
25706rm conftest.$ac_ext
25707LIBS=$ac_func_search_save_LIBS
25708fi
25709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
25710$as_echo "$ac_cv_search_socket" >&6; }
25711ac_res=$ac_cv_search_socket
25712if test "$ac_res" != no; then :
25713 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25714
cristy85572162013-01-04 19:19:32 +000025715
cristy8a5d7f42013-01-06 15:24:33 +000025716$as_echo "#define HAVE_SOCKET 1" >>confdefs.h
cristy85572162013-01-04 19:19:32 +000025717
cristy03f187e2013-01-24 00:22:19 +000025718 MAGICK_FEATURES="DPC $MAGICK_FEATURES"
cristy85572162013-01-04 19:19:32 +000025719
25720fi
25721
25722
cristya29f2b82015-05-30 14:10:30 +000025723for 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 sendfile 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 +000025724do :
25725 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25726ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025727if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025728 cat >>confdefs.h <<_ACEOF
25729#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25730_ACEOF
25731
25732fi
25733done
25734
25735
cristye43a45e2009-09-28 14:49:00 +000025736#
25737# Check for clock_gettime().
25738#
cristy8b350f62009-11-15 23:12:43 +000025739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025740$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025741if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025742 $as_echo_n "(cached) " >&6
25743else
25744 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000025745cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025746/* end confdefs.h. */
25747
25748/* Override any GCC internal prototype to avoid an error.
25749 Use char because int might match the return type of a GCC
25750 builtin and then its argument prototype would still apply. */
25751#ifdef __cplusplus
25752extern "C"
25753#endif
25754char clock_gettime ();
25755int
25756main ()
25757{
25758return clock_gettime ();
25759 ;
25760 return 0;
25761}
25762_ACEOF
25763for ac_lib in '' rt; do
25764 if test -z "$ac_lib"; then
25765 ac_res="none required"
25766 else
25767 ac_res=-l$ac_lib
25768 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25769 fi
cristy8b350f62009-11-15 23:12:43 +000025770 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025771 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000025772fi
cristy8b350f62009-11-15 23:12:43 +000025773rm -f core conftest.err conftest.$ac_objext \
25774 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000025775 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025776 break
25777fi
25778done
cristyda16f162011-02-19 23:52:17 +000025779if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000025780
cristye43a45e2009-09-28 14:49:00 +000025781else
25782 ac_cv_search_clock_gettime=no
25783fi
25784rm conftest.$ac_ext
25785LIBS=$ac_func_search_save_LIBS
25786fi
cristy8b350f62009-11-15 23:12:43 +000025787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025788$as_echo "$ac_cv_search_clock_gettime" >&6; }
25789ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000025790if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000025791 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25792
25793
cristy8b350f62009-11-15 23:12:43 +000025794$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025795
cristy8b350f62009-11-15 23:12:43 +000025796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000025797$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025799/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000025800
25801 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000025802int
25803main ()
25804{
25805clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000025806 ;
25807 return 0;
25808}
25809_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025810if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025811
cristyad38abe2012-12-23 23:03:21 +000025812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25813$as_echo "yes" >&6; }
cristye43a45e2009-09-28 14:49:00 +000025814
cristy8b350f62009-11-15 23:12:43 +000025815$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025816
25817
25818else
cristyad38abe2012-12-23 23:03:21 +000025819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25820$as_echo "no" >&6; }
cristye43a45e2009-09-28 14:49:00 +000025821
25822fi
cristye43a45e2009-09-28 14:49:00 +000025823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25824
25825else
25826
cristy8b350f62009-11-15 23:12:43 +000025827 for ac_func in gettimeofday ftime
25828do :
25829 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25830ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025831if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000025832 cat >>confdefs.h <<_ACEOF
25833#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25834_ACEOF
25835 break
25836fi
25837done
25838
25839
25840
25841fi
25842
25843
cristy3ed852e2009-09-05 21:47:34 +000025844########
25845#
25846# Check for function prototypes
25847#
25848########
25849
cristy8b350f62009-11-15 23:12:43 +000025850ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000025851#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025852"
cristyda16f162011-02-19 23:52:17 +000025853if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025854 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025855else
cristy8b350f62009-11-15 23:12:43 +000025856 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025857fi
25858
cristy3ed852e2009-09-05 21:47:34 +000025859cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025860#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025861_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025862ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000025863#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025864"
cristyda16f162011-02-19 23:52:17 +000025865if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025866 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025867else
cristy8b350f62009-11-15 23:12:43 +000025868 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025869fi
25870
cristy3ed852e2009-09-05 21:47:34 +000025871cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025872#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025873_ACEOF
25874
25875
cristy8b350f62009-11-15 23:12:43 +000025876ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000025877#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000025878"
cristyda16f162011-02-19 23:52:17 +000025879if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025880 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025881else
cristy8b350f62009-11-15 23:12:43 +000025882 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025883fi
25884
cristy3ed852e2009-09-05 21:47:34 +000025885cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025886#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025887_ACEOF
25888
25889
cristy8b350f62009-11-15 23:12:43 +000025890ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000025891#include <stdio.h>
25892#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000025893"
cristyda16f162011-02-19 23:52:17 +000025894if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025895 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025896else
cristy8b350f62009-11-15 23:12:43 +000025897 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025898fi
25899
cristy3ed852e2009-09-05 21:47:34 +000025900cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025901#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025902_ACEOF
25903
25904
cristy3ed852e2009-09-05 21:47:34 +000025905########
25906#
25907# C++ Support Tests (For Magick++)
25908#
25909########
25910have_magick_plus_plus='no'
25911if test "$with_magick_plus_plus" = 'yes'; then
25912 OLIBS="$LIBS"
25913 LIBS=''
25914 ac_ext=cpp
25915ac_cpp='$CXXCPP $CPPFLAGS'
25916ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25917ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25918ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25919
25920
25921 # Full set of headers used...
25922 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
25923 # functional iomanip iosfwd iostream iterator list string strstream utility
25924 ac_ext=cpp
25925ac_cpp='$CXXCPP $CPPFLAGS'
25926ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25927ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25928ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25929
25930 ac_ext=cpp
25931ac_cpp='$CXXCPP $CPPFLAGS'
25932ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25933ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25934ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25935if test -z "$CXX"; then
25936 if test -n "$CCC"; then
25937 CXX=$CCC
25938 else
25939 if test -n "$ac_tool_prefix"; then
25940 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25941 do
25942 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25943set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025945$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025946if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025947 $as_echo_n "(cached) " >&6
25948else
25949 if test -n "$CXX"; then
25950 ac_cv_prog_CXX="$CXX" # Let the user override the test.
25951else
25952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25953for as_dir in $PATH
25954do
25955 IFS=$as_save_IFS
25956 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025957 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025959 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025961 break 2
25962 fi
25963done
cristy8b350f62009-11-15 23:12:43 +000025964 done
cristy3ed852e2009-09-05 21:47:34 +000025965IFS=$as_save_IFS
25966
25967fi
25968fi
25969CXX=$ac_cv_prog_CXX
25970if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025972$as_echo "$CXX" >&6; }
25973else
cristy8b350f62009-11-15 23:12:43 +000025974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025975$as_echo "no" >&6; }
25976fi
25977
25978
25979 test -n "$CXX" && break
25980 done
25981fi
25982if test -z "$CXX"; then
25983 ac_ct_CXX=$CXX
25984 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25985do
25986 # Extract the first word of "$ac_prog", so it can be a program name with args.
25987set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025989$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025990if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025991 $as_echo_n "(cached) " >&6
25992else
25993 if test -n "$ac_ct_CXX"; then
25994 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
25995else
25996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25997for as_dir in $PATH
25998do
25999 IFS=$as_save_IFS
26000 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026001 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000026002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000026003 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000026004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026005 break 2
26006 fi
26007done
cristy8b350f62009-11-15 23:12:43 +000026008 done
cristy3ed852e2009-09-05 21:47:34 +000026009IFS=$as_save_IFS
26010
26011fi
26012fi
26013ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
26014if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000026015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000026016$as_echo "$ac_ct_CXX" >&6; }
26017else
cristy8b350f62009-11-15 23:12:43 +000026018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026019$as_echo "no" >&6; }
26020fi
26021
26022
26023 test -n "$ac_ct_CXX" && break
26024done
26025
26026 if test "x$ac_ct_CXX" = x; then
26027 CXX="g++"
26028 else
26029 case $cross_compiling:$ac_tool_warned in
26030yes:)
cristy8b350f62009-11-15 23:12:43 +000026031{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000026032$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26033ac_tool_warned=yes ;;
26034esac
26035 CXX=$ac_ct_CXX
26036 fi
26037fi
26038
26039 fi
26040fi
26041# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000026042$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000026043set X $ac_compile
26044ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000026045for ac_option in --version -v -V -qversion; do
26046 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000026047case "(($ac_try" in
26048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26049 *) ac_try_echo=$ac_try;;
26050esac
cristy8b350f62009-11-15 23:12:43 +000026051eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
26052$as_echo "$ac_try_echo"; } >&5
26053 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000026054 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026055 if test -s conftest.err; then
26056 sed '10a\
26057... rest of stderr output deleted ...
26058 10q' conftest.err >conftest.er1
26059 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000026060 fi
cristycd4c5312009-11-22 01:19:08 +000026061 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000026062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26063 test $ac_status = 0; }
26064done
cristy3ed852e2009-09-05 21:47:34 +000026065
cristy8b350f62009-11-15 23:12:43 +000026066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000026067$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026068if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026069 $as_echo_n "(cached) " >&6
26070else
cristy8b350f62009-11-15 23:12:43 +000026071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026072/* end confdefs.h. */
26073
26074int
26075main ()
26076{
26077#ifndef __GNUC__
26078 choke me
26079#endif
26080
26081 ;
26082 return 0;
26083}
26084_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026085if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026086 ac_compiler_gnu=yes
26087else
cristy8b350f62009-11-15 23:12:43 +000026088 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000026089fi
cristy3ed852e2009-09-05 21:47:34 +000026090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26091ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
26092
26093fi
cristy8b350f62009-11-15 23:12:43 +000026094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000026095$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
26096if test $ac_compiler_gnu = yes; then
26097 GXX=yes
26098else
26099 GXX=
26100fi
26101ac_test_CXXFLAGS=${CXXFLAGS+set}
26102ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000026103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000026104$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026105if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026106 $as_echo_n "(cached) " >&6
26107else
26108 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
26109 ac_cxx_werror_flag=yes
26110 ac_cv_prog_cxx_g=no
26111 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000026112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026113/* end confdefs.h. */
26114
26115int
26116main ()
26117{
26118
26119 ;
26120 return 0;
26121}
26122_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026123if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026124 ac_cv_prog_cxx_g=yes
26125else
cristy8b350f62009-11-15 23:12:43 +000026126 CXXFLAGS=""
26127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026128/* end confdefs.h. */
26129
26130int
26131main ()
26132{
26133
26134 ;
26135 return 0;
26136}
26137_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026138if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026139
cristy8b350f62009-11-15 23:12:43 +000026140else
26141 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000026142 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000026143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026144/* end confdefs.h. */
26145
26146int
26147main ()
26148{
26149
26150 ;
26151 return 0;
26152}
26153_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026154if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026155 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000026156fi
cristy3ed852e2009-09-05 21:47:34 +000026157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26158fi
cristy3ed852e2009-09-05 21:47:34 +000026159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26160fi
cristy3ed852e2009-09-05 21:47:34 +000026161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26162 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
26163fi
cristy8b350f62009-11-15 23:12:43 +000026164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000026165$as_echo "$ac_cv_prog_cxx_g" >&6; }
26166if test "$ac_test_CXXFLAGS" = set; then
26167 CXXFLAGS=$ac_save_CXXFLAGS
26168elif test $ac_cv_prog_cxx_g = yes; then
26169 if test "$GXX" = yes; then
26170 CXXFLAGS="-g -O2"
26171 else
26172 CXXFLAGS="-g"
26173 fi
26174else
26175 if test "$GXX" = yes; then
26176 CXXFLAGS="-O2"
26177 else
26178 CXXFLAGS=
26179 fi
26180fi
26181ac_ext=cpp
26182ac_cpp='$CXXCPP $CPPFLAGS'
26183ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26184ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26185ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26186
cristy73bd4a52010-10-05 11:24:23 +000026187depcc="$CXX" am_compiler_list=
26188
26189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
26190$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026191if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026192 $as_echo_n "(cached) " >&6
26193else
26194 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
26195 # We make a subdir and do the tests there. Otherwise we can end up
26196 # making bogus files that we don't know about and never remove. For
26197 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +000026198 # making a dummy file named 'D' -- because '-MD' means "put the output
26199 # in D".
cristy7247bba2012-02-05 16:37:27 +000026200 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +000026201 mkdir conftest.dir
26202 # Copy depcomp to subdir because otherwise we won't find it if we're
26203 # using a relative directory.
26204 cp "$am_depcomp" conftest.dir
26205 cd conftest.dir
26206 # We will build objects and dependencies in a subdirectory because
26207 # it helps to detect inapplicable dependency modes. For instance
26208 # both Tru64's cc and ICC support -MD to output dependencies as a
26209 # side effect of compilation, but ICC will put the dependencies in
26210 # the current directory while Tru64 will put them in the object
26211 # directory.
26212 mkdir sub
26213
26214 am_cv_CXX_dependencies_compiler_type=none
26215 if test "$am_compiler_list" = ""; then
26216 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
26217 fi
26218 am__universal=false
26219 case " $depcc " in #(
26220 *\ -arch\ *\ -arch\ *) am__universal=true ;;
26221 esac
26222
26223 for depmode in $am_compiler_list; do
26224 # Setup a source with many dependencies, because some compilers
26225 # like to wrap large dependency lists on column 80 (with \), and
26226 # we should not choose a depcomp mode which is confused by this.
26227 #
26228 # We need to recreate these files for each test, as the compiler may
26229 # overwrite some of them when testing with obscure command lines.
26230 # This happens at least with the AIX C compiler.
26231 : > sub/conftest.c
26232 for i in 1 2 3 4 5 6; do
26233 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +000026234 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
26235 # Solaris 10 /bin/sh.
26236 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +000026237 done
26238 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
26239
cristyc0890a62012-07-19 00:18:20 +000026240 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +000026241 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +000026242 # handle '-M -o', and we need to detect this. Also, some Intel
26243 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +000026244 am__obj=sub/conftest.${OBJEXT-o}
26245 am__minus_obj="-o $am__obj"
26246 case $depmode in
26247 gcc)
26248 # This depmode causes a compiler race in universal mode.
26249 test "$am__universal" = false || continue
26250 ;;
26251 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +000026252 # After this tag, mechanisms are not by side-effect, so they'll
26253 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +000026254 if test "x$enable_dependency_tracking" = xyes; then
26255 continue
26256 else
26257 break
26258 fi
26259 ;;
cristy7247bba2012-02-05 16:37:27 +000026260 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +000026261 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +000026262 # not run yet. These depmodes are late enough in the game, and
26263 # so weak that their functioning should not be impacted.
26264 am__obj=conftest.${OBJEXT-o}
26265 am__minus_obj=
26266 ;;
26267 none) break ;;
26268 esac
26269 if depmode=$depmode \
26270 source=sub/conftest.c object=$am__obj \
26271 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
26272 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
26273 >/dev/null 2>conftest.err &&
26274 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
26275 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
26276 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
26277 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
26278 # icc doesn't choke on unknown options, it will just issue warnings
26279 # or remarks (even with -Werror). So we grep stderr for any message
26280 # that says an option was ignored or not supported.
26281 # When given -MP, icc 7.0 and 7.1 complain thusly:
26282 # icc: Command line warning: ignoring option '-M'; no argument required
26283 # The diagnosis changed in icc 8.0:
26284 # icc: Command line remark: option '-MP' not supported
26285 if (grep 'ignoring option' conftest.err ||
26286 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
26287 am_cv_CXX_dependencies_compiler_type=$depmode
26288 break
26289 fi
26290 fi
26291 done
26292
26293 cd ..
26294 rm -rf conftest.dir
26295else
26296 am_cv_CXX_dependencies_compiler_type=none
26297fi
26298
26299fi
26300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
26301$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
26302CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
26303
26304 if
26305 test "x$enable_dependency_tracking" != xno \
26306 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
26307 am__fastdepCXX_TRUE=
26308 am__fastdepCXX_FALSE='#'
26309else
26310 am__fastdepCXX_TRUE='#'
26311 am__fastdepCXX_FALSE=
26312fi
26313
26314
cristy146497a2015-05-17 22:46:16 +000026315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
cristy73bd4a52010-10-05 11:24:23 +000026316$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026317if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026318 $as_echo_n "(cached) " >&6
26319else
cristy146497a2015-05-17 22:46:16 +000026320 ac_ext=cpp
cristy73bd4a52010-10-05 11:24:23 +000026321ac_cpp='$CXXCPP $CPPFLAGS'
26322ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26323ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26324ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26325
cristy146497a2015-05-17 22:46:16 +000026326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000026327/* end confdefs.h. */
cristy146497a2015-05-17 22:46:16 +000026328 int f(int x){return 1;}
26329 int f(char x){return 1;}
26330 int f(bool x){return 1;}
cristy73bd4a52010-10-05 11:24:23 +000026331int
26332main ()
26333{
26334bool b = true; return f(b);
26335 ;
26336 return 0;
26337}
26338_ACEOF
26339if ac_fn_cxx_try_compile "$LINENO"; then :
26340 ax_cv_cxx_bool=yes
26341else
26342 ax_cv_cxx_bool=no
26343fi
26344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy146497a2015-05-17 22:46:16 +000026345 ac_ext=cpp
cristy73bd4a52010-10-05 11:24:23 +000026346ac_cpp='$CXXCPP $CPPFLAGS'
26347ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26348ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26349ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26350
26351
26352fi
26353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
26354$as_echo "$ax_cv_cxx_bool" >&6; }
cristy146497a2015-05-17 22:46:16 +000026355 if test "X$ax_cv_cxx_bool" = Xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000026356
26357$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
26358
26359fi
26360
26361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
26362$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026363if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026364 $as_echo_n "(cached) " >&6
26365else
cristy17491be2014-06-24 01:10:53 +000026366 ac_ext=cpp
cristy73bd4a52010-10-05 11:24:23 +000026367ac_cpp='$CXXCPP $CPPFLAGS'
26368ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26369ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26370ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26371
26372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26373/* end confdefs.h. */
26374namespace Outer { namespace Inner { int i = 0; }}
cristy17491be2014-06-24 01:10:53 +000026375 using namespace Outer::Inner; int foo(void) { return i;}
cristy73bd4a52010-10-05 11:24:23 +000026376_ACEOF
26377if ac_fn_cxx_try_compile "$LINENO"; then :
26378 ax_cv_cxx_namespaces=yes
26379else
26380 ax_cv_cxx_namespaces=no
26381fi
26382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26383 ac_ext=cpp
26384ac_cpp='$CXXCPP $CPPFLAGS'
26385ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26386ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26387ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26388
26389
26390fi
26391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
26392$as_echo "$ax_cv_cxx_namespaces" >&6; }
26393if test "$ax_cv_cxx_namespaces" = yes; then
26394
26395$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
26396
26397fi
26398
26399
26400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
26401$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026402if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026403 $as_echo_n "(cached) " >&6
26404else
26405
26406 ac_ext=cpp
26407ac_cpp='$CXXCPP $CPPFLAGS'
26408ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26409ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26410ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26411
26412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26413/* end confdefs.h. */
26414#include <iostream>
26415 std::istream& is = std::cin;
26416int
26417main ()
26418{
26419
26420 ;
26421 return 0;
26422}
26423_ACEOF
26424if ac_fn_cxx_try_compile "$LINENO"; then :
26425 ax_cv_cxx_have_std_namespace=yes
26426else
26427 ax_cv_cxx_have_std_namespace=no
26428fi
26429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26430 ac_ext=cpp
26431ac_cpp='$CXXCPP $CPPFLAGS'
26432ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26433ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26434ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26435
26436
26437fi
26438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
26439$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
26440 if test "$ax_cv_cxx_have_std_namespace" = yes; then
26441
26442$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
26443
26444 fi
26445
26446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
26447$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026448if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026449 $as_echo_n "(cached) " >&6
26450else
26451
26452
26453 ac_ext=cpp
26454ac_cpp='$CXXCPP $CPPFLAGS'
26455ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26456ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26457ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26458
26459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26460/* end confdefs.h. */
26461#include <iostream>
26462#include <map>
26463#include <iomanip>
26464#include <cmath>
26465#ifdef HAVE_NAMESPACES
26466using namespace std;
26467#endif
26468int
26469main ()
26470{
26471return 0;
26472 ;
26473 return 0;
26474}
26475_ACEOF
26476if ac_fn_cxx_try_compile "$LINENO"; then :
26477 ac_cv_cxx_have_std_libs=yes
26478else
26479 ac_cv_cxx_have_std_libs=no
26480fi
26481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26482 ac_ext=cpp
26483ac_cpp='$CXXCPP $CPPFLAGS'
26484ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26485ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26486ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26487
26488
26489fi
26490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
26491$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
26492if test "$ac_cv_cxx_have_std_libs" = yes; then
26493
26494$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
26495
26496fi
26497
cristy3ed852e2009-09-05 21:47:34 +000026498
26499 OPENMP_CXXFLAGS=
26500 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000026501if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026502 enableval=$enable_openmp;
26503fi
26504
26505 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000026506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
26507$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026508if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026509 $as_echo_n "(cached) " >&6
26510else
cristy8b350f62009-11-15 23:12:43 +000026511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26512/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026513
26514#ifndef _OPENMP
26515 choke me
26516#endif
26517#include <omp.h>
26518int main () { return omp_get_num_threads (); }
26519
26520_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026521if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026522 ac_cv_prog_cxx_openmp='none needed'
26523else
cristy8b350f62009-11-15 23:12:43 +000026524 ac_cv_prog_cxx_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +000026525 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
26526 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +000026527 ac_save_CXXFLAGS=$CXXFLAGS
26528 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000026529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26530/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026531
26532#ifndef _OPENMP
26533 choke me
26534#endif
26535#include <omp.h>
26536int main () { return omp_get_num_threads (); }
26537
26538_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026539if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026540 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000026541fi
cristy8b350f62009-11-15 23:12:43 +000026542rm -f core conftest.err conftest.$ac_objext \
26543 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026544 CXXFLAGS=$ac_save_CXXFLAGS
26545 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
26546 break
26547 fi
26548 done
26549fi
cristy8b350f62009-11-15 23:12:43 +000026550rm -f core conftest.err conftest.$ac_objext \
26551 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026552fi
cristy8b350f62009-11-15 23:12:43 +000026553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026554$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
26555 case $ac_cv_prog_cxx_openmp in #(
26556 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000026557 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000026558 *)
cristy8b350f62009-11-15 23:12:43 +000026559 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000026560 esac
26561 fi
26562
26563
26564 ac_ext=c
26565ac_cpp='$CPP $CPPFLAGS'
26566ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26567ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26568ac_compiler_gnu=$ac_cv_c_compiler_gnu
26569
26570
cristy8b350f62009-11-15 23:12:43 +000026571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000026572$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
26573 if \
cristy964cb7f2010-04-25 23:18:00 +000026574 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026575 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000026576 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026577 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000026578 have_magick_plus_plus='yes'
26579 else
26580 have_magick_plus_plus='no (failed tests)'
26581 fi
cristyad38abe2012-12-23 23:03:21 +000026582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
26583$as_echo "$have_magick_plus_plus" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026584 LIBS="$OLIBS"
26585fi
cristy73bd4a52010-10-05 11:24:23 +000026586 if test "$have_magick_plus_plus" = 'yes'; then
26587 WITH_MAGICK_PLUS_PLUS_TRUE=
26588 WITH_MAGICK_PLUS_PLUS_FALSE='#'
26589else
26590 WITH_MAGICK_PLUS_PLUS_TRUE='#'
26591 WITH_MAGICK_PLUS_PLUS_FALSE=
26592fi
26593
cristy3ed852e2009-09-05 21:47:34 +000026594
26595# Only check for delegate libraries in subdirectories if requested.
26596if test "$enable_delegate_build" != 'no'; then
26597 # Check for delegate sub-directories and add -I & -L options as required.
26598 # This presumes that delegates are installed as detailed in the ImageMagick
26599 # README. If delegates are installed in a standard location where the
26600 # compiler will automatically find them then these options should not be
26601 # required.
26602
26603 #
26604 # Most delegates have includes in the same directory as the library, but not all...
26605 #
26606 # Includes
cristy834307f2015-01-25 00:43:41 +000026607 for dir in bzlib fftw fpx gslib/src jp2 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 +000026608 if test -d "$builddir/$dir"; then
26609 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
26610 else
26611 if test -d "$srcdirfull/$dir"; then
26612 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
26613 fi
26614 fi
26615 done
26616
26617 # Libraries
cristy834307f2015-01-25 00:43:41 +000026618 for dir in bzlib fftw fpx gslib/src 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 +000026619 if test -d "$builddir/$dir/.libs"; then
26620 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
26621 else
26622 if test -d "$srcdirfull/$dir/.libs"; then
26623 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
26624 fi
26625 fi
26626 if test -d "$builddir/$dir"; then
26627 LDFLAGS="$LDFLAGS -L$builddir/$dir"
26628 else
26629 if test -d "$srcdirfull/$dir"; then
26630 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
26631 fi
26632 fi
26633 done
26634fi
26635
26636# Assume that delegate headers reside under same directory as ImageMagick
26637# installation prefix.
cristybdabdd62013-03-04 17:43:36 +000026638MAGICK_CPPFLAGS="-I$INCLUDE_DIR/${PACKAGE_NAME}-$MAGICK_MAJOR_VERSION $MAGICK_CPPFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000026639
26640#
26641# Find the X11 RGB database
26642#
cristy8b350f62009-11-15 23:12:43 +000026643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000026644$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026645if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026646 $as_echo_n "(cached) " >&6
26647else
26648 # Look for the header file in a standard set of common directories.
26649# Check X11 before X11Rn because it is often a symlink to the current release.
26650 for ac_dir in \
26651 /lib/usr/lib/X11 \
26652 /usr/X11/lib \
26653 /usr/X11R4/lib \
26654 /usr/X11R5/lib \
26655 /usr/X11R6/lib \
26656 /usr/X11R7/lib \
26657 /usr/X386/lib \
26658 /usr/XFree86/lib/X11 \
26659 /usr/athena/lib \
26660 /usr/lib \
26661 /usr/lib/X11 \
26662 /usr/lib/X11R4 \
26663 /usr/lib/X11R5 \
26664 /usr/lib/X11R6 \
26665 /usr/lib/X11R7 \
26666 /usr/local/X11/lib \
26667 /usr/local/X11R4/lib \
26668 /usr/local/X11R5/lib \
26669 /usr/local/X11R6/lib \
26670 /usr/local/lib \
26671 /usr/local/lib/X11 \
26672 /usr/local/lib/X11R4 \
26673 /usr/local/lib/X11R5 \
26674 /usr/local/lib/X11R6 \
26675 /usr/local/lib/X11R7 \
26676 /usr/local/x11r5/lib \
26677 /usr/lpp/Xamples/lib \
26678 /usr/openwin/lib \
26679 /usr/openwin/share/lib \
26680 /usr/unsupported/lib \
26681 /usr/x386/lib \
26682 ; do
26683 if test -f "$ac_dir/X11/rgb.txt"; then
26684 im_cv_x_configure="$ac_dir/X11/"
26685 break
26686 elif test -f "$ac_dir/rgb.txt"; then
26687 im_cv_x_configure="$ac_dir/"
26688 break
26689 fi
26690
26691 done
26692fi
cristy8b350f62009-11-15 23:12:43 +000026693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000026694$as_echo "$im_cv_x_configure" >&6; }
26695X11_CONFIGURE_PATH="$im_cv_x_configure"
26696case "${build_os}" in
26697 mingw* )
26698 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
26699 ;;
26700esac
26701
26702cat >>confdefs.h <<_ACEOF
26703#define X11_CONFIGURE_PATH "$X11ConfigurePath"
26704_ACEOF
26705
26706
26707#
26708# Find OpenMP library
26709#
26710GOMP_LIBS=''
26711if test "$enable_openmp" != 'no'; then
26712 if test "${GCC}" = "yes"; then
cristy18307f12011-12-30 01:20:16 +000026713 # Open64 (passes for GCC but uses different OpenMP implementation)
26714 if test "x$GOMP_LIBS" = x ; then
26715 if $CC --version 2>&1 | grep Open64 > /dev/null ; then
26716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5
26717$as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; }
26718if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then :
26719 $as_echo_n "(cached) " >&6
26720else
26721 ac_check_lib_save_LIBS=$LIBS
26722LIBS="-lopenmp $LIBS"
26723cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26724/* end confdefs.h. */
26725
26726/* Override any GCC internal prototype to avoid an error.
26727 Use char because int might match the return type of a GCC
26728 builtin and then its argument prototype would still apply. */
26729#ifdef __cplusplus
26730extern "C"
26731#endif
26732char omp_get_num_procs ();
26733int
26734main ()
26735{
26736return omp_get_num_procs ();
26737 ;
26738 return 0;
26739}
26740_ACEOF
26741if ac_fn_c_try_link "$LINENO"; then :
26742 ac_cv_lib_openmp_omp_get_num_procs=yes
26743else
26744 ac_cv_lib_openmp_omp_get_num_procs=no
26745fi
26746rm -f core conftest.err conftest.$ac_objext \
26747 conftest$ac_exeext conftest.$ac_ext
26748LIBS=$ac_check_lib_save_LIBS
26749fi
26750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5
26751$as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; }
26752if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then :
26753 GOMP_LIBS="-lopenmp"
26754fi
26755
26756 fi
26757 fi
26758 # GCC
26759 if test "x$GOMP_LIBS" = x ; then
26760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026761$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026762if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026763 $as_echo_n "(cached) " >&6
26764else
26765 ac_check_lib_save_LIBS=$LIBS
26766LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026767cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026768/* end confdefs.h. */
26769
26770/* Override any GCC internal prototype to avoid an error.
26771 Use char because int might match the return type of a GCC
26772 builtin and then its argument prototype would still apply. */
26773#ifdef __cplusplus
26774extern "C"
26775#endif
26776char GOMP_parallel_start ();
26777int
26778main ()
26779{
26780return GOMP_parallel_start ();
26781 ;
26782 return 0;
26783}
26784_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026785if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026786 ac_cv_lib_gomp_GOMP_parallel_start=yes
26787else
cristy8b350f62009-11-15 23:12:43 +000026788 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000026789fi
cristy8b350f62009-11-15 23:12:43 +000026790rm -f core conftest.err conftest.$ac_objext \
26791 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026792LIBS=$ac_check_lib_save_LIBS
26793fi
cristy8b350f62009-11-15 23:12:43 +000026794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000026795$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000026796if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026797 GOMP_LIBS="-lgomp"
26798fi
cristy18307f12011-12-30 01:20:16 +000026799
26800 fi
cristy3ed852e2009-09-05 21:47:34 +000026801 else
cristy18307f12011-12-30 01:20:16 +000026802 # Sun CC
26803 if test "x$GOMP_LIBS" = x ; then
26804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026805$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026806if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026807 $as_echo_n "(cached) " >&6
26808else
26809 ac_check_lib_save_LIBS=$LIBS
26810LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026811cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026812/* end confdefs.h. */
26813
26814/* Override any GCC internal prototype to avoid an error.
26815 Use char because int might match the return type of a GCC
26816 builtin and then its argument prototype would still apply. */
26817#ifdef __cplusplus
26818extern "C"
26819#endif
26820char sunw_mp_register_warn ();
26821int
26822main ()
26823{
26824return sunw_mp_register_warn ();
26825 ;
26826 return 0;
26827}
26828_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026829if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026830 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
26831else
cristy8b350f62009-11-15 23:12:43 +000026832 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000026833fi
cristy8b350f62009-11-15 23:12:43 +000026834rm -f core conftest.err conftest.$ac_objext \
26835 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026836LIBS=$ac_check_lib_save_LIBS
26837fi
cristy8b350f62009-11-15 23:12:43 +000026838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000026839$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000026840if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026841 GOMP_LIBS="-lmtsk"
26842fi
cristy18307f12011-12-30 01:20:16 +000026843
26844 fi
26845 # AIX xlc
26846 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026848$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026849if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026850 $as_echo_n "(cached) " >&6
26851else
26852 ac_check_lib_save_LIBS=$LIBS
26853LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026854cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026855/* end confdefs.h. */
26856
26857/* Override any GCC internal prototype to avoid an error.
26858 Use char because int might match the return type of a GCC
26859 builtin and then its argument prototype would still apply. */
26860#ifdef __cplusplus
26861extern "C"
26862#endif
26863char _xlsmpFlush ();
26864int
26865main ()
26866{
26867return _xlsmpFlush ();
26868 ;
26869 return 0;
26870}
26871_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026872if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026873 ac_cv_lib_xlsmp__xlsmpFlush=yes
26874else
cristy8b350f62009-11-15 23:12:43 +000026875 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000026876fi
cristy8b350f62009-11-15 23:12:43 +000026877rm -f core conftest.err conftest.$ac_objext \
26878 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026879LIBS=$ac_check_lib_save_LIBS
26880fi
cristy8b350f62009-11-15 23:12:43 +000026881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000026882$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000026883if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026884 GOMP_LIBS="-lxlsmp"
26885fi
cristy18307f12011-12-30 01:20:16 +000026886
26887 fi
26888 # SGI IRIX 6.5 MIPSpro C/C++
26889 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026891$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026892if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026893 $as_echo_n "(cached) " >&6
26894else
26895 ac_check_lib_save_LIBS=$LIBS
26896LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026897cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026898/* end confdefs.h. */
26899
26900/* Override any GCC internal prototype to avoid an error.
26901 Use char because int might match the return type of a GCC
26902 builtin and then its argument prototype would still apply. */
26903#ifdef __cplusplus
26904extern "C"
26905#endif
26906char mp_destroy ();
26907int
26908main ()
26909{
26910return mp_destroy ();
26911 ;
26912 return 0;
26913}
26914_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026915if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026916 ac_cv_lib_mp_mp_destroy=yes
26917else
cristy8b350f62009-11-15 23:12:43 +000026918 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000026919fi
cristy8b350f62009-11-15 23:12:43 +000026920rm -f core conftest.err conftest.$ac_objext \
26921 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026922LIBS=$ac_check_lib_save_LIBS
26923fi
cristy8b350f62009-11-15 23:12:43 +000026924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000026925$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000026926if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026927 GOMP_LIBS="-lmp"
26928fi
cristy18307f12011-12-30 01:20:16 +000026929
26930 fi
cristy3ed852e2009-09-05 21:47:34 +000026931 fi
26932 LIBS="$GOMP_LIBS $LIBS"
26933fi
26934
26935
cristy12ac8192014-11-04 13:59:13 +000026936#
cristy3b0097d2014-11-04 15:34:47 +000026937# Check for jemalloc.
cristy12ac8192014-11-04 13:59:13 +000026938#
cristy3b0097d2014-11-04 15:34:47 +000026939have_jemalloc='no'
26940JEMALLOC_LIBS=''
26941if test "$with_jemalloc" != 'no'; then
26942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JEMALLOC support " >&5
26943$as_echo_n "checking for JEMALLOC support ... " >&6; }
26944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26945$as_echo "" >&6; }
26946 failed=0
26947 passed=0
26948 ac_fn_c_check_header_mongrel "$LINENO" "jemalloc/jemalloc.h" "ac_cv_header_jemalloc_jemalloc_h" "$ac_includes_default"
26949if test "x$ac_cv_header_jemalloc_jemalloc_h" = xyes; then :
cristy22007ae2014-11-04 15:59:22 +000026950 passed=`expr $passed + 1`
26951else
26952 failed=`expr $failed + 1`
cristy12ac8192014-11-04 13:59:13 +000026953fi
26954
26955
cristy3b0097d2014-11-04 15:34:47 +000026956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc_stats_print in -ljemalloc" >&5
26957$as_echo_n "checking for malloc_stats_print in -ljemalloc... " >&6; }
26958if ${ac_cv_lib_jemalloc_malloc_stats_print+:} false; then :
cristy12ac8192014-11-04 13:59:13 +000026959 $as_echo_n "(cached) " >&6
26960else
26961 ac_check_lib_save_LIBS=$LIBS
26962LIBS="-ljemalloc $LIBS"
26963cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26964/* end confdefs.h. */
26965
26966/* Override any GCC internal prototype to avoid an error.
26967 Use char because int might match the return type of a GCC
26968 builtin and then its argument prototype would still apply. */
26969#ifdef __cplusplus
26970extern "C"
26971#endif
cristy3b0097d2014-11-04 15:34:47 +000026972char malloc_stats_print ();
cristy12ac8192014-11-04 13:59:13 +000026973int
26974main ()
26975{
cristy3b0097d2014-11-04 15:34:47 +000026976return malloc_stats_print ();
cristy12ac8192014-11-04 13:59:13 +000026977 ;
26978 return 0;
26979}
26980_ACEOF
26981if ac_fn_c_try_link "$LINENO"; then :
cristy3b0097d2014-11-04 15:34:47 +000026982 ac_cv_lib_jemalloc_malloc_stats_print=yes
cristy12ac8192014-11-04 13:59:13 +000026983else
cristy3b0097d2014-11-04 15:34:47 +000026984 ac_cv_lib_jemalloc_malloc_stats_print=no
cristy12ac8192014-11-04 13:59:13 +000026985fi
26986rm -f core conftest.err conftest.$ac_objext \
26987 conftest$ac_exeext conftest.$ac_ext
26988LIBS=$ac_check_lib_save_LIBS
26989fi
cristy3b0097d2014-11-04 15:34:47 +000026990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jemalloc_malloc_stats_print" >&5
26991$as_echo "$ac_cv_lib_jemalloc_malloc_stats_print" >&6; }
26992if test "x$ac_cv_lib_jemalloc_malloc_stats_print" = xyes; then :
cristy22007ae2014-11-04 15:59:22 +000026993 passed=`expr $passed + 1`
26994else
26995 failed=`expr $failed + 1`
cristy12ac8192014-11-04 13:59:13 +000026996fi
26997
cristy3b0097d2014-11-04 15:34:47 +000026998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jemalloc memory allocation library is complete" >&5
26999$as_echo_n "checking if jemalloc memory allocation library is complete... " >&6; }
27000 if test $passed -gt 0; then
27001 if test $failed -gt 0; then
27002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27003$as_echo "no -- some components failed test" >&6; }
27004 have_jemalloc='no (failed tests)'
27005 else
27006 JEMALLOC_LIBS='-ljemalloc'
27007 LIBS="$JEMALLOC_LIBS $LIBS"
cristy12ac8192014-11-04 13:59:13 +000027008
cristy3b0097d2014-11-04 15:34:47 +000027009$as_echo "#define HasJEMALLOC 1" >>confdefs.h
cristy12ac8192014-11-04 13:59:13 +000027010
cristy3b0097d2014-11-04 15:34:47 +000027011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27012$as_echo "yes" >&6; }
27013 have_jemalloc='yes'
27014 fi
cristy12ac8192014-11-04 13:59:13 +000027015 else
cristy3b0097d2014-11-04 15:34:47 +000027016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27017$as_echo "no" >&6; }
cristy12ac8192014-11-04 13:59:13 +000027018 fi
27019fi
cristy3b0097d2014-11-04 15:34:47 +000027020 if test "$have_jemalloc" = 'yes'; then
27021 HasJEMALLOC_TRUE=
27022 HasJEMALLOC_FALSE='#'
27023else
27024 HasJEMALLOC_TRUE='#'
27025 HasJEMALLOC_FALSE=
cristy12ac8192014-11-04 13:59:13 +000027026fi
27027
cristy3b0097d2014-11-04 15:34:47 +000027028
27029
cristy3ed852e2009-09-05 21:47:34 +000027030#
27031# Check for umem.
27032#
27033have_umem='no'
27034UMEM_LIBS=''
27035if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000027037$as_echo_n "checking for UMEM support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27039$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027040 failed=0
27041 passed=0
cristy8b350f62009-11-15 23:12:43 +000027042 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027043if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027044 passed=`expr $passed + 1`
27045else
27046 failed=`expr $failed + 1`
27047fi
27048
27049
cristy8b350f62009-11-15 23:12:43 +000027050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000027051$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027052if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027053 $as_echo_n "(cached) " >&6
27054else
27055 ac_check_lib_save_LIBS=$LIBS
27056LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027057cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027058/* end confdefs.h. */
27059
27060/* Override any GCC internal prototype to avoid an error.
27061 Use char because int might match the return type of a GCC
27062 builtin and then its argument prototype would still apply. */
27063#ifdef __cplusplus
27064extern "C"
27065#endif
27066char umem_alloc ();
27067int
27068main ()
27069{
27070return umem_alloc ();
27071 ;
27072 return 0;
27073}
27074_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027075if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027076 ac_cv_lib_umem_umem_alloc=yes
27077else
cristy8b350f62009-11-15 23:12:43 +000027078 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000027079fi
cristy8b350f62009-11-15 23:12:43 +000027080rm -f core conftest.err conftest.$ac_objext \
27081 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027082LIBS=$ac_check_lib_save_LIBS
27083fi
cristy8b350f62009-11-15 23:12:43 +000027084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027085$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000027086if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027087 passed=`expr $passed + 1`
27088else
27089 failed=`expr $failed + 1`
27090fi
27091
cristy8b350f62009-11-15 23:12:43 +000027092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000027093$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027094if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027095 $as_echo_n "(cached) " >&6
27096else
27097 ac_check_lib_save_LIBS=$LIBS
27098LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027099cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027100/* end confdefs.h. */
27101
27102/* Override any GCC internal prototype to avoid an error.
27103 Use char because int might match the return type of a GCC
27104 builtin and then its argument prototype would still apply. */
27105#ifdef __cplusplus
27106extern "C"
27107#endif
27108char umem_free ();
27109int
27110main ()
27111{
27112return umem_free ();
27113 ;
27114 return 0;
27115}
27116_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027117if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027118 ac_cv_lib_umem_umem_free=yes
27119else
cristy8b350f62009-11-15 23:12:43 +000027120 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000027121fi
cristy8b350f62009-11-15 23:12:43 +000027122rm -f core conftest.err conftest.$ac_objext \
27123 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027124LIBS=$ac_check_lib_save_LIBS
27125fi
cristy8b350f62009-11-15 23:12:43 +000027126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000027127$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000027128if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027129 passed=`expr $passed + 1`
27130else
27131 failed=`expr $failed + 1`
27132fi
27133
cristy8b350f62009-11-15 23:12:43 +000027134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027135$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
27136 if test $passed -gt 0; then
27137 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000027138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27139$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027140 have_umem='no (failed tests)'
27141 else
27142 UMEM_LIBS='-lumem'
27143 LIBS="$UMEM_LIBS $LIBS"
27144
cristy8b350f62009-11-15 23:12:43 +000027145$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027146
cristyad38abe2012-12-23 23:03:21 +000027147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27148$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027149 have_umem='yes'
27150 fi
27151 else
cristyad38abe2012-12-23 23:03:21 +000027152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27153$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027154 fi
27155fi
cristy73bd4a52010-10-05 11:24:23 +000027156 if test "$have_umem" = 'yes'; then
27157 HasUMEM_TRUE=
27158 HasUMEM_FALSE='#'
27159else
27160 HasUMEM_TRUE='#'
27161 HasUMEM_FALSE=
27162fi
27163
cristy3ed852e2009-09-05 21:47:34 +000027164
27165
27166#
27167# Add support for ccmalloc memory debugging library if requested
27168#
27169have_ccmalloc='no'
27170CCMALLOC_LIBS=''
27171if test "$enable_ccmalloc" = 'yes'; then
27172 # Extract the first word of "ccmalloc", so it can be a program name with args.
27173set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000027174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000027175$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027176if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027177 $as_echo_n "(cached) " >&6
27178else
27179 case $CCMALLOCDelegate in
27180 [\\/]* | ?:[\\/]*)
27181 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
27182 ;;
27183 *)
27184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27185for as_dir in $PATH
27186do
27187 IFS=$as_save_IFS
27188 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000027189 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000027190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000027191 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000027192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027193 break 2
27194 fi
27195done
cristy8b350f62009-11-15 23:12:43 +000027196 done
cristy3ed852e2009-09-05 21:47:34 +000027197IFS=$as_save_IFS
27198
27199 ;;
27200esac
27201fi
27202CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
27203if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000027204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027205$as_echo "$CCMALLOCDelegate" >&6; }
27206else
cristy8b350f62009-11-15 23:12:43 +000027207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027208$as_echo "no" >&6; }
27209fi
27210
27211
27212 if test -n "$CCMALLOCDelegate"; then
27213 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
27214 OLIBS="$LIBS"
27215 # Assume that gcc is used with ccmalloc.
27216 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000027217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027218$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027219if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027220 $as_echo_n "(cached) " >&6
27221else
27222 ac_check_lib_save_LIBS=$LIBS
27223LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027224cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027225/* end confdefs.h. */
27226
27227/* Override any GCC internal prototype to avoid an error.
27228 Use char because int might match the return type of a GCC
27229 builtin and then its argument prototype would still apply. */
27230#ifdef __cplusplus
27231extern "C"
27232#endif
27233char ccmalloc_malloc ();
27234int
27235main ()
27236{
27237return ccmalloc_malloc ();
27238 ;
27239 return 0;
27240}
27241_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027242if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027243 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
27244else
cristy8b350f62009-11-15 23:12:43 +000027245 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000027246fi
cristy8b350f62009-11-15 23:12:43 +000027247rm -f core conftest.err conftest.$ac_objext \
27248 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027249LIBS=$ac_check_lib_save_LIBS
27250fi
cristy8b350f62009-11-15 23:12:43 +000027251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027252$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000027253if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027254 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
27255fi
27256
27257 if test -n "$CCMALLOC_LIBS"; then
27258 LIBS="$OLIBS"
27259 LIBS="$LIBS $CCMALLOC_LIBS"
27260 have_ccmalloc='yes'
27261 else
27262 LIBS="$OLIBS"
27263 fi
27264 fi
27265fi
27266
27267#
cristy944e51f2013-04-16 18:45:02 +000027268# Add support for 'huge pages' if requested
27269#
27270if test "x$enable_hugepages" != "xno"; then :
27271
27272
27273$as_echo "#define HAVE_HUGEPAGES 1" >>confdefs.h
27274
27275
27276fi
27277
27278#
cristy3ed852e2009-09-05 21:47:34 +000027279# Add support for efence memory debugging library if requested
27280#
27281if test "$enable_efence" = 'yes'; then
27282 EFENCE_LIBS='-lefence'
27283 LIBS="$EFENCE_LIBS $LIBS"
27284fi
27285
cristy3ed852e2009-09-05 21:47:34 +000027286
27287#
27288# Check for BZLIB
27289#
27290
27291
27292# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000027293if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027294 withval=$with_bzlib; with_bzlib=$withval
27295else
27296 with_bzlib='yes'
27297fi
27298
27299
27300if test "$with_bzlib" != 'yes'; then
27301 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
27302fi
27303
27304have_bzlib='no'
27305if test "$with_bzlib" != 'no'; then
27306 BZLIB_LIBS=''
cristyad38abe2012-12-23 23:03:21 +000027307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27308$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000027310$as_echo_n "checking for BZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27312$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027313 failed=0
27314 passed=0
27315 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000027316 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027317if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027318 passed=`expr $passed + 1`
27319else
27320 failed=`expr $failed + 1`
27321fi
27322
27323
cristy8b350f62009-11-15 23:12:43 +000027324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027325$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027326if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027327 $as_echo_n "(cached) " >&6
27328else
27329 ac_check_lib_save_LIBS=$LIBS
27330LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027331cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027332/* end confdefs.h. */
27333
27334/* Override any GCC internal prototype to avoid an error.
27335 Use char because int might match the return type of a GCC
27336 builtin and then its argument prototype would still apply. */
27337#ifdef __cplusplus
27338extern "C"
27339#endif
27340char BZ2_bzDecompress ();
27341int
27342main ()
27343{
27344return BZ2_bzDecompress ();
27345 ;
27346 return 0;
27347}
27348_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027349if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027350 ac_cv_lib_bz2_BZ2_bzDecompress=yes
27351else
cristy8b350f62009-11-15 23:12:43 +000027352 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000027353fi
cristy8b350f62009-11-15 23:12:43 +000027354rm -f core conftest.err conftest.$ac_objext \
27355 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027356LIBS=$ac_check_lib_save_LIBS
27357fi
cristy8b350f62009-11-15 23:12:43 +000027358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027359$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027360if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027361 found_libbz=`expr $found_libbz + 1`
27362fi
27363
27364 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027366$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027367if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027368 $as_echo_n "(cached) " >&6
27369else
27370 ac_check_lib_save_LIBS=$LIBS
27371LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027372cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027373/* end confdefs.h. */
27374
27375/* Override any GCC internal prototype to avoid an error.
27376 Use char because int might match the return type of a GCC
27377 builtin and then its argument prototype would still apply. */
27378#ifdef __cplusplus
27379extern "C"
27380#endif
27381char _imp__BZ2_decompress ();
27382int
27383main ()
27384{
27385return _imp__BZ2_decompress ();
27386 ;
27387 return 0;
27388}
27389_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027390if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027391 ac_cv_lib_bz2__imp__BZ2_decompress=yes
27392else
cristy8b350f62009-11-15 23:12:43 +000027393 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000027394fi
cristy8b350f62009-11-15 23:12:43 +000027395rm -f core conftest.err conftest.$ac_objext \
27396 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027397LIBS=$ac_check_lib_save_LIBS
27398fi
cristy8b350f62009-11-15 23:12:43 +000027399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027400$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027401if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027402 found_libbz=`expr $found_libbz + 1`
27403fi
27404
27405 fi
27406 if test $found_libbz -gt 0; then
27407 passed=`expr $passed + 1`
27408 else
27409 failed=`expr $failed + 1`
27410 fi
cristy8b350f62009-11-15 23:12:43 +000027411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027412$as_echo_n "checking if BZLIB package is complete... " >&6; }
27413 if test $passed -gt 0; then
27414 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000027415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27416$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027417 have_bzlib='no (failed tests)'
27418 else
27419 BZLIB_LIBS='-lbz2'
27420 LIBS="$BZLIB_LIBS $LIBS"
27421
cristy8b350f62009-11-15 23:12:43 +000027422$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027423
cristyad38abe2012-12-23 23:03:21 +000027424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27425$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027426 have_bzlib='yes'
27427 fi
27428 else
cristyad38abe2012-12-23 23:03:21 +000027429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27430$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027431 fi
27432fi
cristy73bd4a52010-10-05 11:24:23 +000027433 if test "$have_bzlib" = 'yes'; then
27434 BZLIB_DELEGATE_TRUE=
27435 BZLIB_DELEGATE_FALSE='#'
27436else
27437 BZLIB_DELEGATE_TRUE='#'
27438 BZLIB_DELEGATE_FALSE=
27439fi
27440
cristy3ed852e2009-09-05 21:47:34 +000027441
27442
27443#
27444# Find the X11 include and library directories.
27445#
27446IPC_LIBS=''
27447X11_LIBS=''
27448XEXT_LIBS=''
27449XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000027450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000027451$as_echo_n "checking for X... " >&6; }
27452
27453
27454# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000027455if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000027456 withval=$with_x;
27457fi
27458
27459# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
27460if test "x$with_x" = xno; then
27461 # The user explicitly disabled X.
27462 have_x=disabled
27463else
27464 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000027465 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000027466 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000027467 $as_echo_n "(cached) " >&6
27468else
27469 # One or both of the vars are not set, and there is no cached value.
27470ac_x_includes=no ac_x_libraries=no
27471rm -f -r conftest.dir
27472if mkdir conftest.dir; then
27473 cd conftest.dir
27474 cat >Imakefile <<'_ACEOF'
27475incroot:
27476 @echo incroot='${INCROOT}'
27477usrlibdir:
27478 @echo usrlibdir='${USRLIBDIR}'
27479libdir:
27480 @echo libdir='${LIBDIR}'
27481_ACEOF
27482 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000027483 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000027484 for ac_var in incroot usrlibdir libdir; do
27485 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
27486 done
27487 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
27488 for ac_extension in a so sl dylib la dll; do
27489 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
27490 test -f "$ac_im_libdir/libX11.$ac_extension"; then
27491 ac_im_usrlibdir=$ac_im_libdir; break
27492 fi
27493 done
27494 # Screen out bogus values from the imake configuration. They are
27495 # bogus both because they are the default anyway, and because
27496 # using them would break gcc on systems where it needs fixed includes.
27497 case $ac_im_incroot in
27498 /usr/include) ac_x_includes= ;;
27499 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
27500 esac
27501 case $ac_im_usrlibdir in
27502 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
27503 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
27504 esac
27505 fi
27506 cd ..
27507 rm -f -r conftest.dir
27508fi
27509
27510# Standard set of common directories for X headers.
27511# Check X11 before X11Rn because it is often a symlink to the current release.
27512ac_x_header_dirs='
27513/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000027514/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027515/usr/X11R6/include
27516/usr/X11R5/include
27517/usr/X11R4/include
27518
27519/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000027520/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027521/usr/include/X11R6
27522/usr/include/X11R5
27523/usr/include/X11R4
27524
27525/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000027526/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027527/usr/local/X11R6/include
27528/usr/local/X11R5/include
27529/usr/local/X11R4/include
27530
27531/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000027532/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027533/usr/local/include/X11R6
27534/usr/local/include/X11R5
27535/usr/local/include/X11R4
27536
27537/usr/X386/include
27538/usr/x386/include
27539/usr/XFree86/include/X11
27540
27541/usr/include
27542/usr/local/include
27543/usr/unsupported/include
27544/usr/athena/include
27545/usr/local/x11r5/include
27546/usr/lpp/Xamples/include
27547
27548/usr/openwin/include
27549/usr/openwin/share/include'
27550
27551if test "$ac_x_includes" = no; then
27552 # Guess where to find include files, by looking for Xlib.h.
27553 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000027554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027555/* end confdefs.h. */
27556#include <X11/Xlib.h>
27557_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027558if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027559 # We can compile using X headers with no special include directory.
27560ac_x_includes=
27561else
cristyc7083c12009-10-14 03:16:55 +000027562 for ac_dir in $ac_x_header_dirs; do
27563 if test -r "$ac_dir/X11/Xlib.h"; then
27564 ac_x_includes=$ac_dir
27565 break
27566 fi
27567done
27568fi
cristyda16f162011-02-19 23:52:17 +000027569rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027570fi # $ac_x_includes = no
27571
27572if test "$ac_x_libraries" = no; then
27573 # Check for the libraries.
27574 # See if we find them without any special options.
27575 # Don't add to $LIBS permanently.
27576 ac_save_LIBS=$LIBS
27577 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027579/* end confdefs.h. */
27580#include <X11/Xlib.h>
27581int
27582main ()
27583{
27584XrmInitialize ()
27585 ;
27586 return 0;
27587}
27588_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027589if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027590 LIBS=$ac_save_LIBS
27591# We can link X programs with no special library path.
27592ac_x_libraries=
27593else
cristy8b350f62009-11-15 23:12:43 +000027594 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000027595for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
27596do
27597 # Don't even attempt the hair of trying to link an X program!
27598 for ac_extension in a so sl dylib la dll; do
27599 if test -r "$ac_dir/libX11.$ac_extension"; then
27600 ac_x_libraries=$ac_dir
27601 break 2
27602 fi
27603 done
27604done
27605fi
cristy8b350f62009-11-15 23:12:43 +000027606rm -f core conftest.err conftest.$ac_objext \
27607 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027608fi # $ac_x_libraries = no
27609
27610case $ac_x_includes,$ac_x_libraries in #(
27611 no,* | *,no | *\'*)
27612 # Didn't find X, or a directory has "'" in its name.
27613 ac_cv_have_x="have_x=no";; #(
27614 *)
27615 # Record where we found X for the cache.
27616 ac_cv_have_x="have_x=yes\
27617 ac_x_includes='$ac_x_includes'\
27618 ac_x_libraries='$ac_x_libraries'"
27619esac
27620fi
27621;; #(
27622 *) have_x=yes;;
27623 esac
27624 eval "$ac_cv_have_x"
27625fi # $with_x != no
27626
27627if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000027628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000027629$as_echo "$have_x" >&6; }
27630 no_x=yes
27631else
27632 # If each of the values was on the command line, it overrides each guess.
27633 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
27634 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
27635 # Update the cache value to reflect the command line values.
27636 ac_cv_have_x="have_x=yes\
27637 ac_x_includes='$x_includes'\
27638 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000027639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000027640$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
27641fi
27642
cristy3ed852e2009-09-05 21:47:34 +000027643if test "$no_x" = yes; then
27644 # Not all programs may use this symbol, but it does not hurt to define it.
27645
cristy8b350f62009-11-15 23:12:43 +000027646$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027647
27648 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
27649else
27650 if test -n "$x_includes"; then
27651 X_CFLAGS="$X_CFLAGS -I$x_includes"
27652 fi
27653
27654 # It would also be nice to do this for all -L options, not just this one.
27655 if test -n "$x_libraries"; then
27656 X_LIBS="$X_LIBS -L$x_libraries"
27657 # For Solaris; some versions of Sun CC require a space after -R and
27658 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000027659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000027660$as_echo_n "checking whether -R must be followed by a space... " >&6; }
27661 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
27662 ac_xsave_c_werror_flag=$ac_c_werror_flag
27663 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000027664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027665/* end confdefs.h. */
27666
27667int
27668main ()
27669{
27670
27671 ;
27672 return 0;
27673}
27674_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027675if ac_fn_c_try_link "$LINENO"; then :
27676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027677$as_echo "no" >&6; }
27678 X_LIBS="$X_LIBS -R$x_libraries"
27679else
cristy8b350f62009-11-15 23:12:43 +000027680 LIBS="$ac_xsave_LIBS -R $x_libraries"
27681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027682/* end confdefs.h. */
27683
27684int
27685main ()
27686{
27687
27688 ;
27689 return 0;
27690}
27691_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027692if ac_fn_c_try_link "$LINENO"; then :
27693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027694$as_echo "yes" >&6; }
27695 X_LIBS="$X_LIBS -R $x_libraries"
27696else
cristy8b350f62009-11-15 23:12:43 +000027697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000027698$as_echo "neither works" >&6; }
27699fi
cristy8b350f62009-11-15 23:12:43 +000027700rm -f core conftest.err conftest.$ac_objext \
27701 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027702fi
cristy8b350f62009-11-15 23:12:43 +000027703rm -f core conftest.err conftest.$ac_objext \
27704 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027705 ac_c_werror_flag=$ac_xsave_c_werror_flag
27706 LIBS=$ac_xsave_LIBS
27707 fi
27708
27709 # Check for system-dependent libraries X programs must link with.
27710 # Do this before checking for the system-independent R6 libraries
27711 # (-lICE), since we may need -lsocket or whatever for X linking.
27712
27713 if test "$ISC" = yes; then
27714 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
27715 else
27716 # Martyn Johnson says this is needed for Ultrix, if the X
27717 # libraries were built with DECnet support. And Karl Berry says
27718 # the Alpha needs dnet_stub (dnet does not exist).
27719 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000027720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027721/* end confdefs.h. */
27722
27723/* Override any GCC internal prototype to avoid an error.
27724 Use char because int might match the return type of a GCC
27725 builtin and then its argument prototype would still apply. */
27726#ifdef __cplusplus
27727extern "C"
27728#endif
27729char XOpenDisplay ();
27730int
27731main ()
27732{
27733return XOpenDisplay ();
27734 ;
27735 return 0;
27736}
27737_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027738if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027739
cristy8b350f62009-11-15 23:12:43 +000027740else
27741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000027742$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027743if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027744 $as_echo_n "(cached) " >&6
27745else
27746 ac_check_lib_save_LIBS=$LIBS
27747LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027748cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027749/* end confdefs.h. */
27750
27751/* Override any GCC internal prototype to avoid an error.
27752 Use char because int might match the return type of a GCC
27753 builtin and then its argument prototype would still apply. */
27754#ifdef __cplusplus
27755extern "C"
27756#endif
27757char dnet_ntoa ();
27758int
27759main ()
27760{
27761return dnet_ntoa ();
27762 ;
27763 return 0;
27764}
27765_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027766if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027767 ac_cv_lib_dnet_dnet_ntoa=yes
27768else
cristy8b350f62009-11-15 23:12:43 +000027769 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027770fi
cristy8b350f62009-11-15 23:12:43 +000027771rm -f core conftest.err conftest.$ac_objext \
27772 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027773LIBS=$ac_check_lib_save_LIBS
27774fi
cristy8b350f62009-11-15 23:12:43 +000027775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027776$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027777if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027778 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27779fi
27780
27781 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000027782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000027783$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027784if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027785 $as_echo_n "(cached) " >&6
27786else
27787 ac_check_lib_save_LIBS=$LIBS
27788LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027789cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027790/* end confdefs.h. */
27791
27792/* Override any GCC internal prototype to avoid an error.
27793 Use char because int might match the return type of a GCC
27794 builtin and then its argument prototype would still apply. */
27795#ifdef __cplusplus
27796extern "C"
27797#endif
27798char dnet_ntoa ();
27799int
27800main ()
27801{
27802return dnet_ntoa ();
27803 ;
27804 return 0;
27805}
27806_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027807if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027808 ac_cv_lib_dnet_stub_dnet_ntoa=yes
27809else
cristy8b350f62009-11-15 23:12:43 +000027810 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027811fi
cristy8b350f62009-11-15 23:12:43 +000027812rm -f core conftest.err conftest.$ac_objext \
27813 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027814LIBS=$ac_check_lib_save_LIBS
27815fi
cristy8b350f62009-11-15 23:12:43 +000027816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027817$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027818if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027819 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27820fi
27821
27822 fi
27823fi
cristy8b350f62009-11-15 23:12:43 +000027824rm -f core conftest.err conftest.$ac_objext \
27825 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027826 LIBS="$ac_xsave_LIBS"
27827
27828 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27829 # to get the SysV transport functions.
27830 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27831 # needs -lnsl.
27832 # The nsl library prevents programs from opening the X display
27833 # on Irix 5.2, according to T.E. Dickey.
27834 # The functions gethostbyname, getservbyname, and inet_addr are
27835 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000027836 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000027837if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027838
cristy3ed852e2009-09-05 21:47:34 +000027839fi
27840
cristy3ed852e2009-09-05 21:47:34 +000027841 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027843$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027844if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027845 $as_echo_n "(cached) " >&6
27846else
27847 ac_check_lib_save_LIBS=$LIBS
27848LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027849cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027850/* end confdefs.h. */
27851
27852/* Override any GCC internal prototype to avoid an error.
27853 Use char because int might match the return type of a GCC
27854 builtin and then its argument prototype would still apply. */
27855#ifdef __cplusplus
27856extern "C"
27857#endif
27858char gethostbyname ();
27859int
27860main ()
27861{
27862return gethostbyname ();
27863 ;
27864 return 0;
27865}
27866_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027867if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027868 ac_cv_lib_nsl_gethostbyname=yes
27869else
cristy8b350f62009-11-15 23:12:43 +000027870 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027871fi
cristy8b350f62009-11-15 23:12:43 +000027872rm -f core conftest.err conftest.$ac_objext \
27873 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027874LIBS=$ac_check_lib_save_LIBS
27875fi
cristy8b350f62009-11-15 23:12:43 +000027876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027877$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027878if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027879 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27880fi
27881
27882 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000027884$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027885if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027886 $as_echo_n "(cached) " >&6
27887else
27888 ac_check_lib_save_LIBS=$LIBS
27889LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027890cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027891/* end confdefs.h. */
27892
27893/* Override any GCC internal prototype to avoid an error.
27894 Use char because int might match the return type of a GCC
27895 builtin and then its argument prototype would still apply. */
27896#ifdef __cplusplus
27897extern "C"
27898#endif
27899char gethostbyname ();
27900int
27901main ()
27902{
27903return gethostbyname ();
27904 ;
27905 return 0;
27906}
27907_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027908if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027909 ac_cv_lib_bsd_gethostbyname=yes
27910else
cristy8b350f62009-11-15 23:12:43 +000027911 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027912fi
cristy8b350f62009-11-15 23:12:43 +000027913rm -f core conftest.err conftest.$ac_objext \
27914 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027915LIBS=$ac_check_lib_save_LIBS
27916fi
cristy8b350f62009-11-15 23:12:43 +000027917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027918$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027919if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027920 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27921fi
27922
27923 fi
27924 fi
27925
27926 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27927 # socket/setsockopt and other routines are undefined under SCO ODT
27928 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27929 # on later versions), says Simon Leinen: it contains gethostby*
27930 # variants that don't use the name server (or something). -lsocket
27931 # must be given before -lnsl if both are needed. We assume that
27932 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000027933 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000027934if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027935
cristy3ed852e2009-09-05 21:47:34 +000027936fi
27937
cristy3ed852e2009-09-05 21:47:34 +000027938 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000027939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000027940$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027941if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027942 $as_echo_n "(cached) " >&6
27943else
27944 ac_check_lib_save_LIBS=$LIBS
27945LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027946cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027947/* end confdefs.h. */
27948
27949/* Override any GCC internal prototype to avoid an error.
27950 Use char because int might match the return type of a GCC
27951 builtin and then its argument prototype would still apply. */
27952#ifdef __cplusplus
27953extern "C"
27954#endif
27955char connect ();
27956int
27957main ()
27958{
27959return connect ();
27960 ;
27961 return 0;
27962}
27963_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027964if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027965 ac_cv_lib_socket_connect=yes
27966else
cristy8b350f62009-11-15 23:12:43 +000027967 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000027968fi
cristy8b350f62009-11-15 23:12:43 +000027969rm -f core conftest.err conftest.$ac_objext \
27970 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027971LIBS=$ac_check_lib_save_LIBS
27972fi
cristy8b350f62009-11-15 23:12:43 +000027973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000027974$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000027975if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027976 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27977fi
27978
27979 fi
27980
27981 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000027982 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000027983if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027984
cristy3ed852e2009-09-05 21:47:34 +000027985fi
27986
cristy3ed852e2009-09-05 21:47:34 +000027987 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000027988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000027989$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027990if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027991 $as_echo_n "(cached) " >&6
27992else
27993 ac_check_lib_save_LIBS=$LIBS
27994LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027995cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027996/* end confdefs.h. */
27997
27998/* Override any GCC internal prototype to avoid an error.
27999 Use char because int might match the return type of a GCC
28000 builtin and then its argument prototype would still apply. */
28001#ifdef __cplusplus
28002extern "C"
28003#endif
28004char remove ();
28005int
28006main ()
28007{
28008return remove ();
28009 ;
28010 return 0;
28011}
28012_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028013if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028014 ac_cv_lib_posix_remove=yes
28015else
cristy8b350f62009-11-15 23:12:43 +000028016 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000028017fi
cristy8b350f62009-11-15 23:12:43 +000028018rm -f core conftest.err conftest.$ac_objext \
28019 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028020LIBS=$ac_check_lib_save_LIBS
28021fi
cristy8b350f62009-11-15 23:12:43 +000028022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000028023$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000028024if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028025 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
28026fi
28027
28028 fi
28029
28030 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000028031 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000028032if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028033
cristy3ed852e2009-09-05 21:47:34 +000028034fi
28035
cristy3ed852e2009-09-05 21:47:34 +000028036 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000028037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000028038$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028039if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028040 $as_echo_n "(cached) " >&6
28041else
28042 ac_check_lib_save_LIBS=$LIBS
28043LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028044cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028045/* end confdefs.h. */
28046
28047/* Override any GCC internal prototype to avoid an error.
28048 Use char because int might match the return type of a GCC
28049 builtin and then its argument prototype would still apply. */
28050#ifdef __cplusplus
28051extern "C"
28052#endif
28053char shmat ();
28054int
28055main ()
28056{
28057return shmat ();
28058 ;
28059 return 0;
28060}
28061_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028062if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028063 ac_cv_lib_ipc_shmat=yes
28064else
cristy8b350f62009-11-15 23:12:43 +000028065 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000028066fi
cristy8b350f62009-11-15 23:12:43 +000028067rm -f core conftest.err conftest.$ac_objext \
28068 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028069LIBS=$ac_check_lib_save_LIBS
28070fi
cristy8b350f62009-11-15 23:12:43 +000028071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000028072$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000028073if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028074 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
28075fi
28076
28077 fi
28078 fi
28079
28080 # Check for libraries that X11R6 Xt/Xaw programs need.
28081 ac_save_LDFLAGS=$LDFLAGS
28082 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
28083 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
28084 # check for ICE first), but we must link in the order -lSM -lICE or
28085 # we get undefined symbols. So assume we have SM if we have ICE.
28086 # These have to be linked with before -lX11, unlike the other
28087 # libraries we check for below, so use a different variable.
28088 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000028089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000028090$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028091if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028092 $as_echo_n "(cached) " >&6
28093else
28094 ac_check_lib_save_LIBS=$LIBS
28095LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028096cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028097/* end confdefs.h. */
28098
28099/* Override any GCC internal prototype to avoid an error.
28100 Use char because int might match the return type of a GCC
28101 builtin and then its argument prototype would still apply. */
28102#ifdef __cplusplus
28103extern "C"
28104#endif
28105char IceConnectionNumber ();
28106int
28107main ()
28108{
28109return IceConnectionNumber ();
28110 ;
28111 return 0;
28112}
28113_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028114if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028115 ac_cv_lib_ICE_IceConnectionNumber=yes
28116else
cristy8b350f62009-11-15 23:12:43 +000028117 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000028118fi
cristy8b350f62009-11-15 23:12:43 +000028119rm -f core conftest.err conftest.$ac_objext \
28120 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028121LIBS=$ac_check_lib_save_LIBS
28122fi
cristy8b350f62009-11-15 23:12:43 +000028123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000028124$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000028125if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028126 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
28127fi
28128
28129 LDFLAGS=$ac_save_LDFLAGS
28130
28131fi
28132
28133if test "$no_x" != 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000028134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28135$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000028137$as_echo_n "checking for X11... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28139$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028140 LDFLAGS="$LDFLAGS $X_LIBS"
28141 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
28142 LIBS="$X11_LIBS $LIBS"
28143 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
28144
28145
cristy8b350f62009-11-15 23:12:43 +000028146$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028147
28148 #
28149 # Check for X11 shared memory extension
28150 #
28151 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000028152 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000028153if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028154 have_shmctl='yes'
28155fi
28156
28157 if test "$have_shmctl" != 'yes'; then
28158 PERSIST_LIBS=$LIBS
28159 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000028160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028161/* end confdefs.h. */
28162
28163/* Override any GCC internal prototype to avoid an error.
28164 Use char because int might match the return type of a GCC
28165 builtin and then its argument prototype would still apply. */
28166#ifdef __cplusplus
28167extern "C"
28168#endif
28169char shmctl ();
28170int
28171main ()
28172{
28173return shmctl ();
28174 ;
28175 return 0;
28176}
28177_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028178if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028179 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000028180fi
cristy8b350f62009-11-15 23:12:43 +000028181rm -f core conftest.err conftest.$ac_objext \
28182 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028183 LIBS=$PERSIST_LIBS
28184 fi
28185
28186 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028188$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028189if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028190 $as_echo_n "(cached) " >&6
28191else
28192 ac_check_lib_save_LIBS=$LIBS
28193LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028194cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028195/* end confdefs.h. */
28196
28197/* Override any GCC internal prototype to avoid an error.
28198 Use char because int might match the return type of a GCC
28199 builtin and then its argument prototype would still apply. */
28200#ifdef __cplusplus
28201extern "C"
28202#endif
28203char XShmAttach ();
28204int
28205main ()
28206{
28207return XShmAttach ();
28208 ;
28209 return 0;
28210}
28211_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028212if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028213 ac_cv_lib_Xext_XShmAttach=yes
28214else
cristy8b350f62009-11-15 23:12:43 +000028215 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000028216fi
cristy8b350f62009-11-15 23:12:43 +000028217rm -f core conftest.err conftest.$ac_objext \
28218 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028219LIBS=$ac_check_lib_save_LIBS
28220fi
cristy8b350f62009-11-15 23:12:43 +000028221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000028222$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000028223if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028224 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000028225$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028226
28227fi
28228
28229 fi
28230
28231 #
28232 # Check for X11 shape extension
28233 #
cristy8b350f62009-11-15 23:12:43 +000028234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028235$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028236if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028237 $as_echo_n "(cached) " >&6
28238else
28239 ac_check_lib_save_LIBS=$LIBS
28240LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028241cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028242/* end confdefs.h. */
28243
28244/* Override any GCC internal prototype to avoid an error.
28245 Use char because int might match the return type of a GCC
28246 builtin and then its argument prototype would still apply. */
28247#ifdef __cplusplus
28248extern "C"
28249#endif
28250char XShapeCombineMask ();
28251int
28252main ()
28253{
28254return XShapeCombineMask ();
28255 ;
28256 return 0;
28257}
28258_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028259if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028260 ac_cv_lib_Xext_XShapeCombineMask=yes
28261else
cristy8b350f62009-11-15 23:12:43 +000028262 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000028263fi
cristy8b350f62009-11-15 23:12:43 +000028264rm -f core conftest.err conftest.$ac_objext \
28265 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028266LIBS=$ac_check_lib_save_LIBS
28267fi
cristy8b350f62009-11-15 23:12:43 +000028268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000028269$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000028270if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028271 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000028272$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028273
28274fi
28275
cristy8b350f62009-11-15 23:12:43 +000028276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000028277$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028278if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028279 $as_echo_n "(cached) " >&6
28280else
28281 ac_check_lib_save_LIBS=$LIBS
28282LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028283cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028284/* end confdefs.h. */
28285
28286/* Override any GCC internal prototype to avoid an error.
28287 Use char because int might match the return type of a GCC
28288 builtin and then its argument prototype would still apply. */
28289#ifdef __cplusplus
28290extern "C"
28291#endif
28292char XtSetEventDispatcher ();
28293int
28294main ()
28295{
28296return XtSetEventDispatcher ();
28297 ;
28298 return 0;
28299}
28300_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028301if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028302 ac_cv_lib_Xt_XtSetEventDispatcher=yes
28303else
cristy8b350f62009-11-15 23:12:43 +000028304 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000028305fi
cristy8b350f62009-11-15 23:12:43 +000028306rm -f core conftest.err conftest.$ac_objext \
28307 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028308LIBS=$ac_check_lib_save_LIBS
28309fi
cristy8b350f62009-11-15 23:12:43 +000028310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000028311$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000028312if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028313 XT_LIBS='-lXt'
28314fi
28315
28316 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
28317fi
28318if test "$no_x" != 'yes'; then
28319 have_x='yes'
28320else
28321 have_x='no'
28322fi
cristy73bd4a52010-10-05 11:24:23 +000028323 if test "$have_x" = 'yes'; then
28324 X11_DELEGATE_TRUE=
28325 X11_DELEGATE_FALSE='#'
28326else
28327 X11_DELEGATE_TRUE='#'
28328 X11_DELEGATE_FALSE=
28329fi
28330
cristy3ed852e2009-09-05 21:47:34 +000028331
28332
28333
28334
28335#
28336# Check for ZLIB
28337#
28338
28339# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000028340if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028341 withval=$with_zlib; with_zlib=$withval
28342else
28343 with_zlib='yes'
28344fi
28345
28346
28347if test "$with_zlib" != 'yes'; then
28348 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
28349fi
28350
28351have_zlib='no'
28352ZLIB_LIBS=''
28353if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28355$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000028357$as_echo_n "checking for ZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28359$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028360 ZLIB_LIBS=''
28361 failed=0
28362 passed=0
cristy8b350f62009-11-15 23:12:43 +000028363 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028364if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028365 passed=`expr $passed + 1`
28366else
28367 failed=`expr $failed + 1`
28368fi
28369
28370
cristy8b350f62009-11-15 23:12:43 +000028371 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028372if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028373 passed=`expr $passed + 1`
28374else
28375 failed=`expr $failed + 1`
28376fi
28377
28378
cristy8b350f62009-11-15 23:12:43 +000028379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028380$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028381if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028382 $as_echo_n "(cached) " >&6
28383else
28384 ac_check_lib_save_LIBS=$LIBS
28385LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028386cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028387/* end confdefs.h. */
28388
28389/* Override any GCC internal prototype to avoid an error.
28390 Use char because int might match the return type of a GCC
28391 builtin and then its argument prototype would still apply. */
28392#ifdef __cplusplus
28393extern "C"
28394#endif
28395char compress ();
28396int
28397main ()
28398{
28399return compress ();
28400 ;
28401 return 0;
28402}
28403_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028404if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028405 ac_cv_lib_z_compress=yes
28406else
cristy8b350f62009-11-15 23:12:43 +000028407 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000028408fi
cristy8b350f62009-11-15 23:12:43 +000028409rm -f core conftest.err conftest.$ac_objext \
28410 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028411LIBS=$ac_check_lib_save_LIBS
28412fi
cristy8b350f62009-11-15 23:12:43 +000028413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000028414$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000028415if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028416 passed=`expr $passed + 1`
28417else
28418 failed=`expr $failed + 1`
28419fi
28420
cristy8b350f62009-11-15 23:12:43 +000028421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028422$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028423if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028424 $as_echo_n "(cached) " >&6
28425else
28426 ac_check_lib_save_LIBS=$LIBS
28427LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028428cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028429/* end confdefs.h. */
28430
28431/* Override any GCC internal prototype to avoid an error.
28432 Use char because int might match the return type of a GCC
28433 builtin and then its argument prototype would still apply. */
28434#ifdef __cplusplus
28435extern "C"
28436#endif
28437char uncompress ();
28438int
28439main ()
28440{
28441return uncompress ();
28442 ;
28443 return 0;
28444}
28445_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028446if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028447 ac_cv_lib_z_uncompress=yes
28448else
cristy8b350f62009-11-15 23:12:43 +000028449 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000028450fi
cristy8b350f62009-11-15 23:12:43 +000028451rm -f core conftest.err conftest.$ac_objext \
28452 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028453LIBS=$ac_check_lib_save_LIBS
28454fi
cristy8b350f62009-11-15 23:12:43 +000028455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000028456$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000028457if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028458 passed=`expr $passed + 1`
28459else
28460 failed=`expr $failed + 1`
28461fi
28462
cristy8b350f62009-11-15 23:12:43 +000028463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028464$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028465if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028466 $as_echo_n "(cached) " >&6
28467else
28468 ac_check_lib_save_LIBS=$LIBS
28469LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028470cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028471/* end confdefs.h. */
28472
28473/* Override any GCC internal prototype to avoid an error.
28474 Use char because int might match the return type of a GCC
28475 builtin and then its argument prototype would still apply. */
28476#ifdef __cplusplus
28477extern "C"
28478#endif
28479char deflate ();
28480int
28481main ()
28482{
28483return deflate ();
28484 ;
28485 return 0;
28486}
28487_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028488if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028489 ac_cv_lib_z_deflate=yes
28490else
cristy8b350f62009-11-15 23:12:43 +000028491 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000028492fi
cristy8b350f62009-11-15 23:12:43 +000028493rm -f core conftest.err conftest.$ac_objext \
28494 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028495LIBS=$ac_check_lib_save_LIBS
28496fi
cristy8b350f62009-11-15 23:12:43 +000028497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028498$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000028499if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028500 passed=`expr $passed + 1`
28501else
28502 failed=`expr $failed + 1`
28503fi
28504
cristy8b350f62009-11-15 23:12:43 +000028505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028506$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028507if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028508 $as_echo_n "(cached) " >&6
28509else
28510 ac_check_lib_save_LIBS=$LIBS
28511LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028512cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028513/* end confdefs.h. */
28514
28515/* Override any GCC internal prototype to avoid an error.
28516 Use char because int might match the return type of a GCC
28517 builtin and then its argument prototype would still apply. */
28518#ifdef __cplusplus
28519extern "C"
28520#endif
28521char inflate ();
28522int
28523main ()
28524{
28525return inflate ();
28526 ;
28527 return 0;
28528}
28529_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028530if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028531 ac_cv_lib_z_inflate=yes
28532else
cristy8b350f62009-11-15 23:12:43 +000028533 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000028534fi
cristy8b350f62009-11-15 23:12:43 +000028535rm -f core conftest.err conftest.$ac_objext \
28536 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028537LIBS=$ac_check_lib_save_LIBS
28538fi
cristy8b350f62009-11-15 23:12:43 +000028539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028540$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000028541if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028542 passed=`expr $passed + 1`
28543else
28544 failed=`expr $failed + 1`
28545fi
28546
cristy8b350f62009-11-15 23:12:43 +000028547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028548$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028549if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028550 $as_echo_n "(cached) " >&6
28551else
28552 ac_check_lib_save_LIBS=$LIBS
28553LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028554cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028555/* end confdefs.h. */
28556
28557/* Override any GCC internal prototype to avoid an error.
28558 Use char because int might match the return type of a GCC
28559 builtin and then its argument prototype would still apply. */
28560#ifdef __cplusplus
28561extern "C"
28562#endif
28563char gzseek ();
28564int
28565main ()
28566{
28567return gzseek ();
28568 ;
28569 return 0;
28570}
28571_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028572if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028573 ac_cv_lib_z_gzseek=yes
28574else
cristy8b350f62009-11-15 23:12:43 +000028575 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000028576fi
cristy8b350f62009-11-15 23:12:43 +000028577rm -f core conftest.err conftest.$ac_objext \
28578 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028579LIBS=$ac_check_lib_save_LIBS
28580fi
cristy8b350f62009-11-15 23:12:43 +000028581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000028582$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000028583if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028584 passed=`expr $passed + 1`
28585else
28586 failed=`expr $failed + 1`
28587fi
28588
cristy8b350f62009-11-15 23:12:43 +000028589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028590$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028591if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028592 $as_echo_n "(cached) " >&6
28593else
28594 ac_check_lib_save_LIBS=$LIBS
28595LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028596cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028597/* end confdefs.h. */
28598
28599/* Override any GCC internal prototype to avoid an error.
28600 Use char because int might match the return type of a GCC
28601 builtin and then its argument prototype would still apply. */
28602#ifdef __cplusplus
28603extern "C"
28604#endif
28605char gztell ();
28606int
28607main ()
28608{
28609return gztell ();
28610 ;
28611 return 0;
28612}
28613_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028614if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028615 ac_cv_lib_z_gztell=yes
28616else
cristy8b350f62009-11-15 23:12:43 +000028617 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000028618fi
cristy8b350f62009-11-15 23:12:43 +000028619rm -f core conftest.err conftest.$ac_objext \
28620 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028621LIBS=$ac_check_lib_save_LIBS
28622fi
cristy8b350f62009-11-15 23:12:43 +000028623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000028624$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000028625if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028626 passed=`expr $passed + 1`
28627else
28628 failed=`expr $failed + 1`
28629fi
28630
cristy8b350f62009-11-15 23:12:43 +000028631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028632$as_echo_n "checking if ZLIB package is complete... " >&6; }
28633 if test $passed -gt 0; then
28634 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28636$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028637 have_zlib='no (failed tests)'
28638 else
28639 ZLIB_LIBS='-lz'
28640 LIBS="$ZLIB_LIBS $LIBS"
28641
cristy8b350f62009-11-15 23:12:43 +000028642$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028643
cristyad38abe2012-12-23 23:03:21 +000028644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28645$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028646 have_zlib='yes'
28647 fi
28648 else
cristyad38abe2012-12-23 23:03:21 +000028649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28650$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028651 fi
28652fi
cristy73bd4a52010-10-05 11:24:23 +000028653 if test "$have_zlib" = 'yes'; then
28654 ZLIB_DELEGATE_TRUE=
28655 ZLIB_DELEGATE_FALSE='#'
28656else
28657 ZLIB_DELEGATE_TRUE='#'
28658 ZLIB_DELEGATE_FALSE=
28659fi
28660
cristy3ed852e2009-09-05 21:47:34 +000028661
28662
cristy5eef09f2012-10-16 12:08:28 +000028663# whether modules are built or not.
28664with_ltdl='yes'
28665have_ltdl='no'
28666LTDL_LIBS=''
28667if test "$build_modules" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000028668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28669$as_echo "-------------------------------------------------------------" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000028670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libltdl" >&5
28671$as_echo_n "checking for libltdl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28673$as_echo "" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000028674 failed=0
28675 passed=0
28676 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
28677if test "x$ac_cv_header_ltdl_h" = xyes; then :
28678 passed=`expr $passed + 1`
28679else
28680 failed=`expr $failed + 1`
28681fi
28682
28683
28684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
28685$as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
28686if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then :
28687 $as_echo_n "(cached) " >&6
28688else
28689 ac_check_lib_save_LIBS=$LIBS
28690LIBS="-lltdl $LIBS"
28691cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28692/* end confdefs.h. */
28693
28694/* Override any GCC internal prototype to avoid an error.
28695 Use char because int might match the return type of a GCC
28696 builtin and then its argument prototype would still apply. */
28697#ifdef __cplusplus
28698extern "C"
28699#endif
28700char lt_dlinit ();
28701int
28702main ()
28703{
28704return lt_dlinit ();
28705 ;
28706 return 0;
28707}
28708_ACEOF
28709if ac_fn_c_try_link "$LINENO"; then :
28710 ac_cv_lib_ltdl_lt_dlinit=yes
28711else
28712 ac_cv_lib_ltdl_lt_dlinit=no
28713fi
28714rm -f core conftest.err conftest.$ac_objext \
28715 conftest$ac_exeext conftest.$ac_ext
28716LIBS=$ac_check_lib_save_LIBS
28717fi
28718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
28719$as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
28720if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then :
28721 passed=`expr $passed + 1`
28722else
28723 failed=`expr $failed + 1`
28724fi
28725
28726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libltdl package is complete" >&5
28727$as_echo_n "checking if libltdl package is complete... " >&6; }
28728 if test $passed -gt 0 ; then
28729 if test $failed -gt 0 ; then
28730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28731$as_echo "no -- some components failed test" >&6; }
28732 have_ltdl='no (failed tests)'
28733 else
28734 LTDL_LIBS='-lltdl'
28735 LIBS="$LTDL_LIBS $LIBS"
28736
28737$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
28738
28739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28740$as_echo "yes" >&6; }
28741 have_ltdl='yes'
28742 fi
28743 else
28744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28745$as_echo "no" >&6; }
28746 fi
cristyaf4cbf32012-10-16 23:47:41 +000028747 if test "$have_ltdl" != 'yes' ; then
28748 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28749$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28750as_fn_error 1 "libltdl is required for modules build
28751See \`config.log' for more details" "$LINENO" 5; }
28752 fi
cristy5eef09f2012-10-16 12:08:28 +000028753fi
28754 if test "$have_ltdl" != 'no'; then
28755 WITH_LTDL_TRUE=
28756 WITH_LTDL_FALSE='#'
28757else
28758 WITH_LTDL_TRUE='#'
28759 WITH_LTDL_FALSE=
28760fi
28761
28762
cristy3ed852e2009-09-05 21:47:34 +000028763#
28764# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
28765#
28766LIB_DL=''
28767if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000028769$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028770if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028771 $as_echo_n "(cached) " >&6
28772else
28773 ac_check_lib_save_LIBS=$LIBS
28774LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028775cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028776/* end confdefs.h. */
28777
28778/* Override any GCC internal prototype to avoid an error.
28779 Use char because int might match the return type of a GCC
28780 builtin and then its argument prototype would still apply. */
28781#ifdef __cplusplus
28782extern "C"
28783#endif
28784char dlopen ();
28785int
28786main ()
28787{
28788return dlopen ();
28789 ;
28790 return 0;
28791}
28792_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028793if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028794 ac_cv_lib_dl_dlopen=yes
28795else
cristy8b350f62009-11-15 23:12:43 +000028796 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000028797fi
cristy8b350f62009-11-15 23:12:43 +000028798rm -f core conftest.err conftest.$ac_objext \
28799 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028800LIBS=$ac_check_lib_save_LIBS
28801fi
cristy8b350f62009-11-15 23:12:43 +000028802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028803$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000028804if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028805 LIB_DL='-ldl'
28806fi
28807
28808 LIBS="$LIB_DL $LIBS"
28809fi
28810
28811
28812
28813#
cristy5a3dc992014-12-05 19:50:04 +000028814# Set Apple font directory.
28815#
28816
28817# Check whether --with-apple-font-dir was given.
28818if test "${with_apple_font_dir+set}" = set; then :
28819 withval=$with_apple_font_dir; with_apple_font_dir=$withval
28820else
28821 with_apple_font_dir='default'
28822fi
28823
28824
28825if test "$with_apple_font_dir" != 'default'; then
28826 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-apple-font-dir=$with_apple_font_dir "
28827fi
28828
28829
28830#
cristy3ed852e2009-09-05 21:47:34 +000028831# Check for Autotrace delegate library.
28832#
28833
28834# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000028835if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028836 withval=$with_autotrace; with_autotrace=$withval
28837else
28838 with_autotrace='no'
28839fi
28840
28841
28842if test "$with_autotrace" != 'yes'; then
28843 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
28844fi
28845
28846have_autotrace='no'
28847AUTOTRACE_CFLAGS=""
28848AUTOTRACE_LIBS=""
28849AUTOTRACE_PKG=""
28850if test "x$with_autotrace" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000028851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28852$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028853
28854pkg_failed=no
28855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
28856$as_echo_n "checking for AUTOTRACE... " >&6; }
28857
28858if test -n "$AUTOTRACE_CFLAGS"; then
28859 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
28860 elif test -n "$PKG_CONFIG"; then
28861 if test -n "$PKG_CONFIG" && \
28862 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28863 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28864 ac_status=$?
28865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28866 test $ac_status = 0; }; then
28867 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000028868 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000028869else
28870 pkg_failed=yes
28871fi
28872 else
28873 pkg_failed=untried
28874fi
28875if test -n "$AUTOTRACE_LIBS"; then
28876 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
28877 elif test -n "$PKG_CONFIG"; then
28878 if test -n "$PKG_CONFIG" && \
28879 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28880 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28881 ac_status=$?
28882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28883 test $ac_status = 0; }; then
28884 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000028885 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000028886else
28887 pkg_failed=yes
28888fi
28889 else
28890 pkg_failed=untried
28891fi
28892
28893
28894
28895if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000028896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28897$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028898
28899if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28900 _pkg_short_errors_supported=yes
28901else
28902 _pkg_short_errors_supported=no
28903fi
28904 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000028905 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "autotrace >= 0.31.1" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000028906 else
cristy146497a2015-05-17 22:46:16 +000028907 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "autotrace >= 0.31.1" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000028908 fi
28909 # Put the nasty error message in config.log where it belongs
28910 echo "$AUTOTRACE_PKG_ERRORS" >&5
28911
cristy146497a2015-05-17 22:46:16 +000028912 have_autotrace=no
cristy73bd4a52010-10-05 11:24:23 +000028913elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000028914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28915$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028916 have_autotrace=no
28917else
28918 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
28919 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
28920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28921$as_echo "yes" >&6; }
28922 have_autotrace=yes
28923fi
cristyad38abe2012-12-23 23:03:21 +000028924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28925$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028926fi
28927
28928if test "$have_autotrace" = 'yes'; then
28929 failed=0
28930
cristy8b350f62009-11-15 23:12:43 +000028931$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028932
cristyc6722092012-10-14 00:19:31 +000028933 if test "$build_modules" = 'no'; then
cristyfa161182012-12-19 15:45:28 +000028934 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000028935 fi
28936fi
28937
cristy73bd4a52010-10-05 11:24:23 +000028938 if test "$have_autotrace" = 'yes'; then
28939 AUTOTRACE_DELEGATE_TRUE=
28940 AUTOTRACE_DELEGATE_FALSE='#'
28941else
28942 AUTOTRACE_DELEGATE_TRUE='#'
28943 AUTOTRACE_DELEGATE_FALSE=
28944fi
28945
cristy3ed852e2009-09-05 21:47:34 +000028946
28947
28948
28949
28950#
28951# Check for Display Postscript delegate library.
28952#
28953
28954# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000028955if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028956 withval=$with_dps; with_dps=$withval
28957else
28958 with_dps='yes'
28959fi
28960
28961
28962if test "$with_dps" != 'yes'; then
28963 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
28964fi
28965
28966have_dps='no'
28967DPS_LIBS=''
28968if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28970$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000028972$as_echo_n "checking for DPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28974$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028975 failed=0
28976 passed=0
28977 PERSIST_CPPFLAGS="$CPPFLAGS"
28978 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000028979 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 +000028980if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028981 passed=`expr $passed + 1`
28982else
28983 failed=`expr $failed + 1`
28984fi
28985
28986
28987 # DPS issues:
28988 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
28989 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
28990 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
28991 # ImageMagick itself doesn't use -lXt.
28992 have_libdps='no'
28993 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000028994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028995$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028996if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028997 $as_echo_n "(cached) " >&6
28998else
28999 ac_check_lib_save_LIBS=$LIBS
29000LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029001cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029002/* end confdefs.h. */
29003
29004/* Override any GCC internal prototype to avoid an error.
29005 Use char because int might match the return type of a GCC
29006 builtin and then its argument prototype would still apply. */
29007#ifdef __cplusplus
29008extern "C"
29009#endif
29010char DPSInitialize ();
29011int
29012main ()
29013{
29014return DPSInitialize ();
29015 ;
29016 return 0;
29017}
29018_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029019if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029020 ac_cv_lib_dps_DPSInitialize=yes
29021else
cristy8b350f62009-11-15 23:12:43 +000029022 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000029023fi
cristy8b350f62009-11-15 23:12:43 +000029024rm -f core conftest.err conftest.$ac_objext \
29025 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029026LIBS=$ac_check_lib_save_LIBS
29027fi
cristy8b350f62009-11-15 23:12:43 +000029028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000029029$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000029030if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029031 have_libdps='yes'
29032else
29033 have_libdps='no'
29034fi
29035
29036 if test "$have_libdps" != 'yes'; then
29037 # Unset cache variable so we can try again.
29038 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000029039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000029040$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029041if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029042 $as_echo_n "(cached) " >&6
29043else
29044 ac_check_lib_save_LIBS=$LIBS
29045LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029046cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029047/* end confdefs.h. */
29048
29049/* Override any GCC internal prototype to avoid an error.
29050 Use char because int might match the return type of a GCC
29051 builtin and then its argument prototype would still apply. */
29052#ifdef __cplusplus
29053extern "C"
29054#endif
29055char DPSInitialize ();
29056int
29057main ()
29058{
29059return DPSInitialize ();
29060 ;
29061 return 0;
29062}
29063_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029064if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029065 ac_cv_lib_dps_DPSInitialize=yes
29066else
cristy8b350f62009-11-15 23:12:43 +000029067 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000029068fi
cristy8b350f62009-11-15 23:12:43 +000029069rm -f core conftest.err conftest.$ac_objext \
29070 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029071LIBS=$ac_check_lib_save_LIBS
29072fi
cristy8b350f62009-11-15 23:12:43 +000029073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000029074$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000029075if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029076 have_libdps='yes'
29077else
29078 have_libdps='no'
29079fi
29080
29081 if test "$have_libdps" = 'yes'; then
29082 LIBDPS_XT='-lXt'
29083 fi
29084 fi
29085 if test "$have_libdps" = 'yes'; then
29086 passed=`expr $passed + 1`
29087 else
29088 failed=`expr $failed + 1`
29089 fi
cristy8b350f62009-11-15 23:12:43 +000029090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000029091$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029092if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029093 $as_echo_n "(cached) " >&6
29094else
29095 ac_check_lib_save_LIBS=$LIBS
29096LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029097cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029098/* end confdefs.h. */
29099
29100/* Override any GCC internal prototype to avoid an error.
29101 Use char because int might match the return type of a GCC
29102 builtin and then its argument prototype would still apply. */
29103#ifdef __cplusplus
29104extern "C"
29105#endif
29106char XDPSPixelsPerPoint ();
29107int
29108main ()
29109{
29110return XDPSPixelsPerPoint ();
29111 ;
29112 return 0;
29113}
29114_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029115if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029116 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
29117else
cristy8b350f62009-11-15 23:12:43 +000029118 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000029119fi
cristy8b350f62009-11-15 23:12:43 +000029120rm -f core conftest.err conftest.$ac_objext \
29121 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029122LIBS=$ac_check_lib_save_LIBS
29123fi
cristy8b350f62009-11-15 23:12:43 +000029124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000029125$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000029126if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029127 passed=`expr $passed + 1`
29128else
29129 failed=`expr $failed + 1`
29130fi
29131
cristy8b350f62009-11-15 23:12:43 +000029132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029133$as_echo_n "checking if DPS package is complete... " >&6; }
29134 if test $passed -gt 0; then
29135 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29137$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029138 have_dps='no (failed tests)'
29139 CPPFLAGS="$PERSIST_CPPFLAGS"
29140 else
29141 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
29142 LIBS="$DPS_LIBS $LIBS"
29143
cristy8b350f62009-11-15 23:12:43 +000029144$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029145
cristyad38abe2012-12-23 23:03:21 +000029146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29147$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029148 have_dps='yes'
29149 fi
29150 else
cristyad38abe2012-12-23 23:03:21 +000029151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29152$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029153 CPPFLAGS=$PERSIST_CPPFLAGS
29154 fi
29155fi
cristy73bd4a52010-10-05 11:24:23 +000029156 if test "$have_dps" = 'yes'; then
29157 DPS_DELEGATE_TRUE=
29158 DPS_DELEGATE_FALSE='#'
29159else
29160 DPS_DELEGATE_TRUE='#'
29161 DPS_DELEGATE_FALSE=
29162fi
29163
cristy3ed852e2009-09-05 21:47:34 +000029164
29165
29166
29167#
cristy430a7312010-01-21 20:44:04 +000029168# Set DejaVu font directory.
29169#
29170
29171# Check whether --with-dejavu-font-dir was given.
29172if test "${with_dejavu_font_dir+set}" = set; then :
29173 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
29174else
29175 with_dejavu_font_dir='default'
29176fi
29177
29178
29179if test "$with_dejavu_font_dir" != 'default'; then
29180 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
29181fi
29182
29183
29184#
cristy3ed852e2009-09-05 21:47:34 +000029185# Check for FFTW delegate library.
29186#
29187
29188# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000029189if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029190 withval=$with_fftw; with_fftw=$withval
29191else
29192 with_fftw='yes'
29193fi
29194
29195
29196if test "$with_fftw" != 'yes'; then
29197 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
29198fi
29199
cristy81beccd2011-10-03 18:17:24 +000029200have_fftw='no'
29201FFTW_LIBS=''
29202if test "$with_fftw" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29204$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000029205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
29206$as_echo_n "checking for FFTW... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29208$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000029209 failed=0
29210 passed=0
29211 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
29212if test "x$ac_cv_header_fftw3_h" = xyes; then :
29213 passed=`expr $passed + 1`
29214else
29215 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029216fi
29217
cristy81beccd2011-10-03 18:17:24 +000029218
29219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
29220$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
29221if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
29222 $as_echo_n "(cached) " >&6
29223else
29224 ac_check_lib_save_LIBS=$LIBS
29225LIBS="-lfftw3 $LIBS"
29226cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29227/* end confdefs.h. */
29228
29229/* Override any GCC internal prototype to avoid an error.
29230 Use char because int might match the return type of a GCC
29231 builtin and then its argument prototype would still apply. */
29232#ifdef __cplusplus
29233extern "C"
29234#endif
29235char fftw_execute ();
29236int
29237main ()
29238{
29239return fftw_execute ();
29240 ;
29241 return 0;
29242}
29243_ACEOF
29244if ac_fn_c_try_link "$LINENO"; then :
29245 ac_cv_lib_fftw3_fftw_execute=yes
29246else
29247 ac_cv_lib_fftw3_fftw_execute=no
29248fi
29249rm -f core conftest.err conftest.$ac_objext \
29250 conftest$ac_exeext conftest.$ac_ext
29251LIBS=$ac_check_lib_save_LIBS
29252fi
29253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
29254$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
29255if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
29256 passed=`expr $passed + 1`
29257else
29258 failed=`expr $failed + 1`
29259fi
29260
29261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
29262$as_echo_n "checking if FFTW package is complete... " >&6; }
29263 if test $passed -gt 0; then
29264 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29266$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000029267 have_fftw='no (failed tests)'
29268 else
29269 FFTW_LIBS='-lfftw3'
29270 LIBS="$FFTW_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000029271
cristy8b350f62009-11-15 23:12:43 +000029272$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029273
cristyad38abe2012-12-23 23:03:21 +000029274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29275$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000029276 have_fftw='yes'
29277 fi
29278 else
cristyad38abe2012-12-23 23:03:21 +000029279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29280$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029281 fi
29282fi
cristy73bd4a52010-10-05 11:24:23 +000029283 if test "$have_fftw" = 'yes'; then
29284 FFTW_DELEGATE_TRUE=
29285 FFTW_DELEGATE_FALSE='#'
29286else
29287 FFTW_DELEGATE_TRUE='#'
29288 FFTW_DELEGATE_FALSE=
29289fi
29290
cristy3ed852e2009-09-05 21:47:34 +000029291
29292
29293
29294#
29295# Check for FlashPIX delegate library.
29296#
29297
29298# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000029299if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029300 withval=$with_fpx; with_fpx=$withval
29301else
29302 with_fpx='yes'
29303fi
29304
29305
29306if test "$with_fpx" != 'yes'; then
29307 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
29308fi
29309
29310have_fpx='no'
29311FPX_LIBS=''
29312if test "$with_fpx" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29314$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000029316$as_echo_n "checking for FlashPIX... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29318$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029319 failed=0
29320 passed=0
29321 ac_ext=cpp
29322ac_cpp='$CXXCPP $CPPFLAGS'
29323ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29324ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29325ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29326
29327
cristy8b350f62009-11-15 23:12:43 +000029328ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029329if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029330 passed=`expr $passed + 1`
29331else
29332 failed=`expr $failed + 1`
29333fi
29334
29335
cristy8b350f62009-11-15 23:12:43 +000029336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000029337$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029338if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029339 $as_echo_n "(cached) " >&6
29340else
29341 ac_check_lib_save_LIBS=$LIBS
29342LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029343cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029344/* end confdefs.h. */
29345
29346/* Override any GCC internal prototype to avoid an error.
29347 Use char because int might match the return type of a GCC
29348 builtin and then its argument prototype would still apply. */
29349#ifdef __cplusplus
29350extern "C"
29351#endif
29352char FPX_OpenImageByFilename ();
29353int
29354main ()
29355{
29356return FPX_OpenImageByFilename ();
29357 ;
29358 return 0;
29359}
29360_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029361if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029362 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
29363else
cristy8b350f62009-11-15 23:12:43 +000029364 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000029365fi
cristy8b350f62009-11-15 23:12:43 +000029366rm -f core conftest.err conftest.$ac_objext \
29367 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029368LIBS=$ac_check_lib_save_LIBS
29369fi
cristy8b350f62009-11-15 23:12:43 +000029370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000029371$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000029372if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029373 passed=`expr $passed + 1`
29374else
29375 failed=`expr $failed + 1`
29376fi
29377
29378 ac_ext=c
29379ac_cpp='$CPP $CPPFLAGS'
29380ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29381ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29382ac_compiler_gnu=$ac_cv_c_compiler_gnu
29383
cristy8b350f62009-11-15 23:12:43 +000029384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029385$as_echo_n "checking if FlashPIX package is complete... " >&6; }
29386 if test $passed -gt 0; then
29387 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29389$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029390 have_fpx='no (failed tests)'
29391 else
29392 FPX_LIBS='-lfpx'
29393
cristy8b350f62009-11-15 23:12:43 +000029394$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029395
cristyad38abe2012-12-23 23:03:21 +000029396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29397$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029398 have_fpx='yes'
29399 PERLMAINCC="$CXX"
29400 fi
29401 else
cristyad38abe2012-12-23 23:03:21 +000029402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29403$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029404 fi
29405fi
cristy73bd4a52010-10-05 11:24:23 +000029406 if test "$have_fpx" = 'yes'; then
29407 FPX_DELEGATE_TRUE=
29408 FPX_DELEGATE_FALSE='#'
29409else
29410 FPX_DELEGATE_TRUE='#'
29411 FPX_DELEGATE_FALSE=
29412fi
29413
cristy3ed852e2009-09-05 21:47:34 +000029414
cristy853d9902014-08-21 18:50:43 +000029415
29416
29417#
29418# Check for DJVU delegate library.
29419#
29420
29421# Check whether --with-djvu was given.
29422if test "${with_djvu+set}" = set; then :
29423 withval=$with_djvu; with_djvu=$withval
29424else
29425 with_djvu='yes'
29426fi
29427
29428
29429if test "$with_djvu" != 'yes'; then
29430 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
29431fi
29432
29433have_djvu='no'
29434DJVU_LIBS=''
29435if test "$with_djvu" != 'no'; then
29436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29437$as_echo "-------------------------------------------------------------" >&6; }
29438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
29439$as_echo_n "checking for DJVU... " >&6; }
29440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29441$as_echo "" >&6; }
29442 failed=0
29443 passed=0
29444 ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
29445if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
29446 passed=`expr $passed + 1`
29447else
29448 failed=`expr $failed + 1`
29449fi
29450
29451
29452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
29453$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
29454if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
29455 $as_echo_n "(cached) " >&6
29456else
29457 ac_check_lib_save_LIBS=$LIBS
29458LIBS="-ldjvulibre $LIBS"
29459cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29460/* end confdefs.h. */
29461
29462/* Override any GCC internal prototype to avoid an error.
29463 Use char because int might match the return type of a GCC
29464 builtin and then its argument prototype would still apply. */
29465#ifdef __cplusplus
29466extern "C"
29467#endif
29468char ddjvu_context_create ();
29469int
29470main ()
29471{
29472return ddjvu_context_create ();
29473 ;
29474 return 0;
29475}
29476_ACEOF
29477if ac_fn_c_try_link "$LINENO"; then :
29478 ac_cv_lib_djvulibre_ddjvu_context_create=yes
29479else
29480 ac_cv_lib_djvulibre_ddjvu_context_create=no
29481fi
29482rm -f core conftest.err conftest.$ac_objext \
29483 conftest$ac_exeext conftest.$ac_ext
29484LIBS=$ac_check_lib_save_LIBS
29485fi
29486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
29487$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
29488if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
29489 passed=`expr $passed + 1`
29490else
29491 failed=`expr $failed + 1`
29492fi
29493
29494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
29495$as_echo_n "checking if DJVU package is complete... " >&6; }
29496 if test $passed -gt 0; then
29497 if test $failed -gt 0; then
29498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29499$as_echo "no -- some components failed test" >&6; }
29500 have_djvu='no (failed tests)'
29501 else
29502 DJVU_LIBS='-ldjvulibre'
29503 LIBS="$DJVU_LIBS $LIBS"
29504
29505$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
29506
29507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29508$as_echo "yes" >&6; }
29509 have_djvu='yes'
29510 fi
29511 else
29512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29513$as_echo "no" >&6; }
29514 fi
29515fi
29516 if test "$have_djvu" = 'yes'; then
29517 DJVU_DELEGATE_TRUE=
29518 DJVU_DELEGATE_FALSE='#'
29519else
29520 DJVU_DELEGATE_TRUE='#'
29521 DJVU_DELEGATE_FALSE=
29522fi
29523
29524
cristy3ed852e2009-09-05 21:47:34 +000029525
29526
29527#
29528# Check for fontconfig delegate library.
29529#
29530
29531# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000029532if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029533 withval=$with_fontconfig; with_fontconfig=$withval
29534else
cristyfc3d0222012-02-07 15:05:57 +000029535 with_fontconfig='yes'
cristy3ed852e2009-09-05 21:47:34 +000029536fi
29537
29538
29539if test "$with_fontconfig" != 'yes'; then
29540 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
29541fi
29542
29543have_fontconfig='no'
29544FONTCONFIG_CFLAGS=""
29545FONTCONFIG_LIBS=""
29546FONTCONFIG_PKG=""
29547if test "x$with_fontconfig" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29549$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029550
29551pkg_failed=no
29552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
29553$as_echo_n "checking for FONTCONFIG... " >&6; }
29554
29555if test -n "$FONTCONFIG_CFLAGS"; then
29556 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
29557 elif test -n "$PKG_CONFIG"; then
29558 if test -n "$PKG_CONFIG" && \
29559 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29560 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29561 ac_status=$?
29562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29563 test $ac_status = 0; }; then
29564 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000029565 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000029566else
29567 pkg_failed=yes
29568fi
29569 else
29570 pkg_failed=untried
29571fi
29572if test -n "$FONTCONFIG_LIBS"; then
29573 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
29574 elif test -n "$PKG_CONFIG"; then
29575 if test -n "$PKG_CONFIG" && \
29576 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29577 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29578 ac_status=$?
29579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29580 test $ac_status = 0; }; then
29581 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000029582 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000029583else
29584 pkg_failed=yes
29585fi
29586 else
29587 pkg_failed=untried
29588fi
29589
29590
29591
29592if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000029593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29594$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029595
29596if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29597 _pkg_short_errors_supported=yes
29598else
29599 _pkg_short_errors_supported=no
29600fi
29601 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000029602 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fontconfig >= 2.1.0" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000029603 else
cristy146497a2015-05-17 22:46:16 +000029604 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fontconfig >= 2.1.0" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000029605 fi
29606 # Put the nasty error message in config.log where it belongs
29607 echo "$FONTCONFIG_PKG_ERRORS" >&5
29608
cristy146497a2015-05-17 22:46:16 +000029609 have_fontconfig=no
cristy73bd4a52010-10-05 11:24:23 +000029610elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000029611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29612$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029613 have_fontconfig=no
29614else
29615 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
29616 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
29617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29618$as_echo "yes" >&6; }
29619 have_fontconfig=yes
29620fi
cristyad38abe2012-12-23 23:03:21 +000029621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29622$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029623fi
29624
29625if test "$have_fontconfig" = 'yes'; then
29626
cristy8b350f62009-11-15 23:12:43 +000029627$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029628
cristyc6722092012-10-14 00:19:31 +000029629 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000029630 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000029631 fi
cristy3ed852e2009-09-05 21:47:34 +000029632fi
29633
cristy73bd4a52010-10-05 11:24:23 +000029634 if test "$have_fontconfig" = 'yes'; then
29635 FONTCONFIG_DELEGATE_TRUE=
29636 FONTCONFIG_DELEGATE_FALSE='#'
29637else
29638 FONTCONFIG_DELEGATE_TRUE='#'
29639 FONTCONFIG_DELEGATE_FALSE=
29640fi
29641
cristy3ed852e2009-09-05 21:47:34 +000029642
29643
29644
29645
29646#
cristy03f187e2013-01-24 00:22:19 +000029647# Check for the Freetype delegate library.
cristy3ed852e2009-09-05 21:47:34 +000029648#
29649
29650# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000029651if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029652 withval=$with_freetype; with_freetype=$withval
29653else
29654 with_freetype='yes'
29655fi
29656
29657
cristy3ed852e2009-09-05 21:47:34 +000029658if test "$with_freetype" != 'yes'; then
29659 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
29660fi
29661
cristy81beccd2011-10-03 18:17:24 +000029662have_freetype='no'
cristy03f187e2013-01-24 00:22:19 +000029663FREETYPE_CFLAGS=""
29664FREETYPE_LIBS=""
29665FREETYPE_PKG=""
29666if test "x$with_freetype" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29668$as_echo "-------------------------------------------------------------" >&6; }
cristy03f187e2013-01-24 00:22:19 +000029669
29670pkg_failed=no
29671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
29672$as_echo_n "checking for FREETYPE... " >&6; }
29673
29674if test -n "$FREETYPE_CFLAGS"; then
29675 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
29676 elif test -n "$PKG_CONFIG"; then
29677 if test -n "$PKG_CONFIG" && \
29678 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
29679 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
29680 ac_status=$?
29681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29682 test $ac_status = 0; }; then
29683 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000029684 test "x$?" != "x0" && pkg_failed=yes
cristy03f187e2013-01-24 00:22:19 +000029685else
29686 pkg_failed=yes
29687fi
29688 else
29689 pkg_failed=untried
29690fi
29691if test -n "$FREETYPE_LIBS"; then
29692 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
29693 elif test -n "$PKG_CONFIG"; then
29694 if test -n "$PKG_CONFIG" && \
29695 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
29696 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
29697 ac_status=$?
29698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29699 test $ac_status = 0; }; then
29700 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000029701 test "x$?" != "x0" && pkg_failed=yes
cristy03f187e2013-01-24 00:22:19 +000029702else
29703 pkg_failed=yes
29704fi
29705 else
29706 pkg_failed=untried
29707fi
29708
29709
29710
29711if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000029712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29713$as_echo "no" >&6; }
cristy03f187e2013-01-24 00:22:19 +000029714
29715if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29716 _pkg_short_errors_supported=yes
29717else
29718 _pkg_short_errors_supported=no
29719fi
29720 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000029721 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "freetype2" 2>&1`
cristy03f187e2013-01-24 00:22:19 +000029722 else
cristy146497a2015-05-17 22:46:16 +000029723 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "freetype2" 2>&1`
cristy03f187e2013-01-24 00:22:19 +000029724 fi
29725 # Put the nasty error message in config.log where it belongs
29726 echo "$FREETYPE_PKG_ERRORS" >&5
29727
cristy146497a2015-05-17 22:46:16 +000029728 have_freetype=no
cristy03f187e2013-01-24 00:22:19 +000029729elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000029730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29731$as_echo "no" >&6; }
cristy03f187e2013-01-24 00:22:19 +000029732 have_freetype=no
29733else
29734 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
29735 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
29736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29737$as_echo "yes" >&6; }
29738 have_freetype=yes
29739fi
cristyad38abe2012-12-23 23:03:21 +000029740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29741$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029742fi
29743
cristy03f187e2013-01-24 00:22:19 +000029744if test "$have_freetype" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029745
cristy8b350f62009-11-15 23:12:43 +000029746$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029747
cristy03f187e2013-01-24 00:22:19 +000029748 CFLAGS="$FREETYPE_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000029749fi
cristy03f187e2013-01-24 00:22:19 +000029750
cristy73bd4a52010-10-05 11:24:23 +000029751 if test "$have_freetype" = 'yes'; then
29752 FREETYPE_DELEGATE_TRUE=
29753 FREETYPE_DELEGATE_FALSE='#'
29754else
29755 FREETYPE_DELEGATE_TRUE='#'
29756 FREETYPE_DELEGATE_FALSE=
29757fi
29758
cristy3ed852e2009-09-05 21:47:34 +000029759
29760
29761
cristy03f187e2013-01-24 00:22:19 +000029762
cristy3ed852e2009-09-05 21:47:34 +000029763#
29764# Check for Ghostscript library or framework.
29765#
29766# Test for iapi.h & test for gsapi_new_instance in -lgs
29767# or -framework Ghostscript
29768
29769
29770# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000029771if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029772 withval=$with_gslib; with_gslib=$withval
29773else
29774 with_gslib='no'
29775fi
29776
29777
cristyb7931f12009-09-25 10:22:21 +000029778gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000029779if test "$with_gslib" != 'yes'; then
29780 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
29781fi
29782
29783have_gslib='no'
29784GS_LIBS=''
29785if test "$with_gslib" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29787$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000029789$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29791$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000029792 framework=0
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" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029796if test "x$ac_cv_header_ghostscript_iapi_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 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 +000029804if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029805 passed=`expr $passed + 1`
29806else
29807 failed=`expr $failed + 1`
29808fi
29809
29810
cristy73bd4a52010-10-05 11:24:23 +000029811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
29812$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029813if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000029814 $as_echo_n "(cached) " >&6
29815else
29816 ac_check_framework_save_LIBS=$LIBS
29817LIBS="-framework Ghostscript $LIBS"
29818cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29819/* end confdefs.h. */
29820
29821/* Override any GCC internal prototype to avoid an error.
29822 Use char because int might match the return type of a GCC
29823 builtin and then its argument prototype would still apply. */
29824#ifdef __cplusplus
29825extern "C"
29826#endif
29827char gsapi_new_instance ();
29828int
29829main ()
29830{
29831return gsapi_new_instance ();
29832 ;
29833 return 0;
29834}
29835_ACEOF
29836if ac_fn_c_try_link "$LINENO"; then :
29837 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
29838else
29839 ac_cv_framework_Ghostscript_gsapi_new_instance=no
29840fi
29841rm -f core conftest.err conftest.$ac_objext \
29842 conftest$ac_exeext conftest.$ac_ext
29843LIBS=$ac_check_framework_save_LIBS
29844fi
29845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
29846$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
29847if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
29848 framework=`expr $framework + 1`
29849else
29850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029851$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029852if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029853 $as_echo_n "(cached) " >&6
29854else
29855 ac_check_lib_save_LIBS=$LIBS
29856LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029857cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029858/* end confdefs.h. */
29859
29860/* Override any GCC internal prototype to avoid an error.
29861 Use char because int might match the return type of a GCC
29862 builtin and then its argument prototype would still apply. */
29863#ifdef __cplusplus
29864extern "C"
29865#endif
29866char gsapi_new_instance ();
29867int
29868main ()
29869{
29870return gsapi_new_instance ();
29871 ;
29872 return 0;
29873}
29874_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029875if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029876 ac_cv_lib_gs_gsapi_new_instance=yes
29877else
cristy8b350f62009-11-15 23:12:43 +000029878 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000029879fi
cristy8b350f62009-11-15 23:12:43 +000029880rm -f core conftest.err conftest.$ac_objext \
29881 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029882LIBS=$ac_check_lib_save_LIBS
29883fi
cristy8b350f62009-11-15 23:12:43 +000029884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000029885$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000029886if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029887 passed=`expr $passed + 1`
29888else
29889 failed=`expr $failed + 1`
29890fi
cristy73bd4a52010-10-05 11:24:23 +000029891
29892fi
cristy8b350f62009-11-15 23:12:43 +000029893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029894$as_echo_n "checking if Ghostscript package is complete... " >&6; }
29895 if test $passed -gt 0; then
29896 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29898$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029899 have_gslib='no (failed tests)'
29900 else
29901 if test $framework -gt 0; then
29902 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000029903 gslib_framework='yes'
cristyad38abe2012-12-23 23:03:21 +000029904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
29905$as_echo "yes, using framework." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029906 else
cristyad38abe2012-12-23 23:03:21 +000029907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
29908$as_echo "yes, using library." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029909 GS_LIBS='-lgs'
29910 fi
29911 LIBS="$GS_LIBS $LIBS"
29912
cristy8b350f62009-11-15 23:12:43 +000029913$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029914
29915 have_gslib='yes'
29916 fi
29917 else
cristyad38abe2012-12-23 23:03:21 +000029918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29919$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029920 fi
29921fi
cristy73bd4a52010-10-05 11:24:23 +000029922 if test "$have_gslib" = 'yes'; then
29923 GS_DELEGATE_TRUE=
29924 GS_DELEGATE_FALSE='#'
29925else
29926 GS_DELEGATE_TRUE='#'
29927 GS_DELEGATE_FALSE=
29928fi
29929
cristy3ed852e2009-09-05 21:47:34 +000029930
29931
29932# Set default font search path
29933
29934# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000029935if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029936 withval=$with_fontpath; with_fontpath=$withval
29937else
29938 with_fontpath=''
29939fi
29940
29941
29942if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
29943 with_fontpath=''
29944else
29945
29946cat >>confdefs.h <<_ACEOF
29947#define MAGICK_FONT_PATH "$with_fontpath"
29948_ACEOF
29949
29950fi
29951if test "$with_fontpath=" != ''; then
29952 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
29953fi
29954
29955# Set Ghostscript font directory
29956
29957# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029958if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029959 withval=$with_gs_font_dir; with_gs_font_dir=$withval
29960else
29961 with_gs_font_dir='default'
29962fi
29963
29964
29965if test "$with_gs_font_dir" != 'default'; then
29966 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
29967fi
29968
29969
29970#
29971# Check for GVC delegate library.
29972#
29973
29974# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000029975if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029976 withval=$with_gvc; with_gvc=$withval
29977else
cristy1b70dc82012-07-01 23:15:05 +000029978 with_gvc='no'
cristy3ed852e2009-09-05 21:47:34 +000029979fi
29980
29981
29982if test "$with_gvc" != 'yes'; then
29983 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
29984fi
29985
29986GVC_PKG=""
29987if test "x$with_gvc" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29989$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029990
29991pkg_failed=no
29992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
29993$as_echo_n "checking for GVC... " >&6; }
29994
29995if test -n "$GVC_CFLAGS"; then
29996 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
29997 elif test -n "$PKG_CONFIG"; then
29998 if test -n "$PKG_CONFIG" && \
29999 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
30000 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
30001 ac_status=$?
30002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30003 test $ac_status = 0; }; then
30004 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030005 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000030006else
30007 pkg_failed=yes
30008fi
30009 else
30010 pkg_failed=untried
30011fi
30012if test -n "$GVC_LIBS"; then
30013 pkg_cv_GVC_LIBS="$GVC_LIBS"
30014 elif test -n "$PKG_CONFIG"; then
30015 if test -n "$PKG_CONFIG" && \
30016 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
30017 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
30018 ac_status=$?
30019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30020 test $ac_status = 0; }; then
30021 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030022 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000030023else
30024 pkg_failed=yes
30025fi
30026 else
30027 pkg_failed=untried
30028fi
30029
30030
30031
30032if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000030033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30034$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030035
30036if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30037 _pkg_short_errors_supported=yes
30038else
30039 _pkg_short_errors_supported=no
30040fi
30041 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000030042 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libgvc >= 2.9.0" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000030043 else
cristy146497a2015-05-17 22:46:16 +000030044 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libgvc >= 2.9.0" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000030045 fi
30046 # Put the nasty error message in config.log where it belongs
30047 echo "$GVC_PKG_ERRORS" >&5
30048
cristy146497a2015-05-17 22:46:16 +000030049 have_gvc=no
cristy73bd4a52010-10-05 11:24:23 +000030050elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000030051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30052$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030053 have_gvc=no
30054else
30055 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
30056 GVC_LIBS=$pkg_cv_GVC_LIBS
30057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30058$as_echo "yes" >&6; }
30059 have_gvc=yes
30060fi
cristyad38abe2012-12-23 23:03:21 +000030061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30062$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030063fi
30064
30065if test "$have_gvc" = 'yes'; then
30066
cristy8b350f62009-11-15 23:12:43 +000030067$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030068
cristyc6722092012-10-14 00:19:31 +000030069 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000030070 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
30071 fi
30072fi
30073
cristy73bd4a52010-10-05 11:24:23 +000030074 if test "$have_gvc" = 'yes'; then
30075 GVC_DELEGATE_TRUE=
30076 GVC_DELEGATE_FALSE='#'
30077else
30078 GVC_DELEGATE_TRUE='#'
30079 GVC_DELEGATE_FALSE=
30080fi
30081
cristy3ed852e2009-09-05 21:47:34 +000030082
30083
30084
30085
30086#
30087# Check for JBIG delegate library.
30088#
30089
30090
30091# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000030092if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030093 withval=$with_jbig; with_jbig=$withval
30094else
30095 with_jbig='yes'
30096fi
30097
30098
30099have_jbig='no'
30100JBIG_LIBS=''
30101if test "$with_jbig" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000030102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30103$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000030105$as_echo_n "checking for JBIG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30107$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030108 failed=0
30109 passed=0
cristy8b350f62009-11-15 23:12:43 +000030110 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030111if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030112 passed=`expr $passed + 1`
30113else
30114 failed=`expr $failed + 1`
30115fi
30116
30117
cristy8b350f62009-11-15 23:12:43 +000030118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000030119$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030120if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030121 $as_echo_n "(cached) " >&6
30122else
30123 ac_check_lib_save_LIBS=$LIBS
30124LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030125cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030126/* end confdefs.h. */
30127
30128/* Override any GCC internal prototype to avoid an error.
30129 Use char because int might match the return type of a GCC
30130 builtin and then its argument prototype would still apply. */
30131#ifdef __cplusplus
30132extern "C"
30133#endif
30134char jbg_dec_init ();
30135int
30136main ()
30137{
30138return jbg_dec_init ();
30139 ;
30140 return 0;
30141}
30142_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030143if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030144 ac_cv_lib_jbig_jbg_dec_init=yes
30145else
cristy8b350f62009-11-15 23:12:43 +000030146 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000030147fi
cristy8b350f62009-11-15 23:12:43 +000030148rm -f core conftest.err conftest.$ac_objext \
30149 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030150LIBS=$ac_check_lib_save_LIBS
30151fi
cristy8b350f62009-11-15 23:12:43 +000030152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000030153$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000030154if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030155 passed=`expr $passed + 1`
30156else
30157 failed=`expr $failed + 1`
30158fi
30159
cristy8b350f62009-11-15 23:12:43 +000030160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030161$as_echo_n "checking if JBIG package is complete... " >&6; }
30162 if test $passed -gt 0; then
30163 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30165$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030166 have_jbig='no (failed tests)'
30167 else
30168 JBIG_LIBS='-ljbig'
30169 LIBS="$JBIG_LIBS $LIBS"
30170
cristy8b350f62009-11-15 23:12:43 +000030171$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030172
cristyad38abe2012-12-23 23:03:21 +000030173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30174$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030175 have_jbig='yes'
30176 fi
30177 else
cristyad38abe2012-12-23 23:03:21 +000030178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30179$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030180 fi
30181fi
cristy73bd4a52010-10-05 11:24:23 +000030182 if test "$have_jbig" = 'yes'; then
30183 JBIG_DELEGATE_TRUE=
30184 JBIG_DELEGATE_FALSE='#'
30185else
30186 JBIG_DELEGATE_TRUE='#'
30187 JBIG_DELEGATE_FALSE=
30188fi
30189
cristy3ed852e2009-09-05 21:47:34 +000030190
30191
30192
30193#
30194# Check for JPEG delegate library.
30195#
30196
30197# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000030198if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030199 withval=$with_jpeg; with_jpeg=$withval
30200else
30201 with_jpeg='yes'
30202fi
30203
30204
30205if test "$with_jpeg" != 'yes'; then
30206 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
30207fi
30208
30209have_jpeg='no'
30210JPEG_LIBS=''
30211if test "$with_jpeg" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000030212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30213$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000030215$as_echo_n "checking for JPEG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30217$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030218 failed=0
30219 passed=0
cristy8b350f62009-11-15 23:12:43 +000030220 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030221if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030222 passed=`expr $passed + 1`
30223else
30224 failed=`expr $failed + 1`
30225fi
30226
30227
cristy8b350f62009-11-15 23:12:43 +000030228 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030229if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030230 passed=`expr $passed + 1`
30231else
30232 failed=`expr $failed + 1`
30233fi
30234
30235
cristy8b350f62009-11-15 23:12:43 +000030236 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030237if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030238 passed=`expr $passed + 1`
30239else
30240 failed=`expr $failed + 1`
30241fi
30242
30243
cristy8b350f62009-11-15 23:12:43 +000030244 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030245if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030246 passed=`expr $passed + 1`
30247else
30248 failed=`expr $failed + 1`
30249fi
30250
30251
cristy8b350f62009-11-15 23:12:43 +000030252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000030253$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030254if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030255 $as_echo_n "(cached) " >&6
30256else
30257 ac_check_lib_save_LIBS=$LIBS
30258LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030259cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030260/* end confdefs.h. */
30261
30262/* Override any GCC internal prototype to avoid an error.
30263 Use char because int might match the return type of a GCC
30264 builtin and then its argument prototype would still apply. */
30265#ifdef __cplusplus
30266extern "C"
30267#endif
30268char jpeg_read_header ();
30269int
30270main ()
30271{
30272return jpeg_read_header ();
30273 ;
30274 return 0;
30275}
30276_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030277if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030278 ac_cv_lib_jpeg_jpeg_read_header=yes
30279else
cristy8b350f62009-11-15 23:12:43 +000030280 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000030281fi
cristy8b350f62009-11-15 23:12:43 +000030282rm -f core conftest.err conftest.$ac_objext \
30283 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030284LIBS=$ac_check_lib_save_LIBS
30285fi
cristy8b350f62009-11-15 23:12:43 +000030286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000030287$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000030288if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030289 passed=`expr $passed + 1`
30290else
30291 failed=`expr $failed + 1`
30292fi
30293
30294
30295# Test for compatible JPEG library
30296if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000030297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000030298$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030299if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030300 $as_echo_n "(cached) " >&6
30301else
cristy8b350f62009-11-15 23:12:43 +000030302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030303/* end confdefs.h. */
30304#include <stdio.h>
30305#include <stdlib.h>
30306#include <jpeglib.h>
30307
30308int
30309main ()
30310{
30311
30312#if JPEG_LIB_VERSION < 62
30313#error IJG JPEG library must be version 6b or newer!
30314#endif
30315return 0;
30316
30317 ;
30318 return 0;
30319}
30320_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030321if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030322 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
30323else
cristy8b350f62009-11-15 23:12:43 +000030324 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030325fi
cristy3ed852e2009-09-05 21:47:34 +000030326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30327fi
cristy8b350f62009-11-15 23:12:43 +000030328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000030329$as_echo "$ac_cv_jpeg_version_ok" >&6; }
30330fi
cristy8b350f62009-11-15 23:12:43 +000030331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030332$as_echo_n "checking if JPEG package is complete... " >&6; }
30333 if test $passed -gt 0; then
30334 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30336$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030337 have_jpeg='no (failed tests)'
30338 else
30339 JPEG_LIBS='-ljpeg'
30340 LIBS="$JPEG_LIBS $LIBS"
30341
cristy8b350f62009-11-15 23:12:43 +000030342$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030343
cristyad38abe2012-12-23 23:03:21 +000030344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30345$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030346 have_jpeg='yes'
30347 fi
30348 else
cristyad38abe2012-12-23 23:03:21 +000030349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30350$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030351 fi
30352fi
cristy73bd4a52010-10-05 11:24:23 +000030353 if test "$have_jpeg" = 'yes'; then
30354 JPEG_DELEGATE_TRUE=
30355 JPEG_DELEGATE_FALSE='#'
30356else
30357 JPEG_DELEGATE_TRUE='#'
30358 JPEG_DELEGATE_FALSE=
30359fi
30360
cristy3ed852e2009-09-05 21:47:34 +000030361
30362
30363
30364#
cristy3ed852e2009-09-05 21:47:34 +000030365# Check for LCMS delegate library.
30366#
cristy71203402010-06-18 13:12:03 +000030367# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000030368
30369# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000030370if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030371 withval=$with_lcms; with_lcms=$withval
30372else
30373 with_lcms='yes'
30374fi
30375
cristy71203402010-06-18 13:12:03 +000030376if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000030377 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
30378fi
30379
cristy71203402010-06-18 13:12:03 +000030380# Disable LCMS2.
30381
30382# Check whether --with-lcms2 was given.
30383if test "${with_lcms2+set}" = set; then :
30384 withval=$with_lcms2; with_lcms2=$withval
30385else
30386 with_lcms2='yes'
30387fi
30388
30389if test "$with_lcms2" != 'yes' ; then
30390 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
30391fi
30392
30393have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000030394LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000030395if test "$with_lcms2" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000030396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30397$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000030398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
30399$as_echo_n "checking for LCMS v2... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30401$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030402 failed=0
30403 passed=0
30404 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000030405
30406 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000030407 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030408if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030409 have_lcms_header='yes'
30410fi
30411
30412
30413 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000030414
30415$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
30416
cristy71203402010-06-18 13:12:03 +000030417 passed=`expr $passed + 1`
30418 fi
30419
30420 # Check for <lcms2/lcms2.h)
30421 if test "$have_lcms_header" != 'yes'; then
30422 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 +000030423if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030424 have_lcms_header='yes'
30425fi
30426
30427
cristy71203402010-06-18 13:12:03 +000030428 if test "$have_lcms_header" = 'yes'; then
30429 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000030430
cristy71203402010-06-18 13:12:03 +000030431$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000030432
cristy71203402010-06-18 13:12:03 +000030433 fi
cristyd09bcf92010-03-25 03:04:45 +000030434 fi
cristy71203402010-06-18 13:12:03 +000030435
30436 # Failed to find lcms header?
30437 if test "$have_lcms_header" != 'yes'; then
30438 failed=`expr $failed + 1`
30439 fi
30440
30441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
30442$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030443if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000030444 $as_echo_n "(cached) " >&6
30445else
30446 ac_check_lib_save_LIBS=$LIBS
30447LIBS="-llcms2 $LIBS"
30448cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30449/* end confdefs.h. */
30450
30451/* Override any GCC internal prototype to avoid an error.
30452 Use char because int might match the return type of a GCC
30453 builtin and then its argument prototype would still apply. */
30454#ifdef __cplusplus
30455extern "C"
30456#endif
cristy71203402010-06-18 13:12:03 +000030457char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000030458int
30459main ()
30460{
cristy71203402010-06-18 13:12:03 +000030461return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000030462 ;
30463 return 0;
30464}
30465_ACEOF
30466if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030467 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000030468else
cristy71203402010-06-18 13:12:03 +000030469 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000030470fi
30471rm -f core conftest.err conftest.$ac_objext \
30472 conftest$ac_exeext conftest.$ac_ext
30473LIBS=$ac_check_lib_save_LIBS
30474fi
cristy71203402010-06-18 13:12:03 +000030475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
30476$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030477if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030478 passed=`expr $passed + 1`
30479else
30480 failed=`expr $failed + 1`
30481fi
30482
cristy71203402010-06-18 13:12:03 +000030483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
30484$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000030485 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030486 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30488$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000030489 have_lcms2='no (failed tests)'
30490 else
30491 LCMS_LIBS='-llcms2'
30492 LIBS="$LCMS_LIBS $LIBS"
cristyad38abe2012-12-23 23:03:21 +000030493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30494$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000030495 have_lcms2='yes'
30496 fi
cristyd09bcf92010-03-25 03:04:45 +000030497 else
cristyad38abe2012-12-23 23:03:21 +000030498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30499$as_echo "no" >&6; }
cristyd09bcf92010-03-25 03:04:45 +000030500 fi
30501fi
30502
cristy71203402010-06-18 13:12:03 +000030503#
30504# Check for LCMS v1 (1.11 or later)
30505#
30506if test $have_lcms2 = 'yes'; then
30507 with_lcms='no'
30508fi
30509
30510have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000030511if test "$with_lcms" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000030512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30513$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000030514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
30515$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30517$as_echo "" >&6; }
cristyd09bcf92010-03-25 03:04:45 +000030518 failed=0
30519 passed=0
30520 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000030521
30522 # Check for <lcms.h>
30523 if test "$have_lcms_header" != 'yes'; then
30524 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030525if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030526 have_lcms_header='yes'
30527fi
30528
30529
cristy71203402010-06-18 13:12:03 +000030530 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000030531 passed=`expr $passed + 1`
30532
cristy8b350f62009-11-15 23:12:43 +000030533$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030534
cristy71203402010-06-18 13:12:03 +000030535 fi
30536 fi
30537
30538 # Check for <lcms/lcms.h>
30539 if test "$have_lcms_header" != 'yes'; then
30540 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 +000030541if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030542 have_lcms_header='yes'
30543fi
30544
30545
cristy71203402010-06-18 13:12:03 +000030546 if test "$have_lcms_header" = 'yes'; then
30547 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030548
cristy8b350f62009-11-15 23:12:43 +000030549$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030550
cristy71203402010-06-18 13:12:03 +000030551 fi
cristy3ed852e2009-09-05 21:47:34 +000030552 fi
cristy71203402010-06-18 13:12:03 +000030553
30554 # Failed to find lcms header?
30555 if test "$have_lcms_header" != 'yes'; then
30556 failed=`expr $failed + 1`
30557 fi
30558
30559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
30560$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030561if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030562 $as_echo_n "(cached) " >&6
30563else
30564 ac_check_lib_save_LIBS=$LIBS
30565LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030566cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030567/* end confdefs.h. */
30568
30569/* Override any GCC internal prototype to avoid an error.
30570 Use char because int might match the return type of a GCC
30571 builtin and then its argument prototype would still apply. */
30572#ifdef __cplusplus
30573extern "C"
30574#endif
cristy71203402010-06-18 13:12:03 +000030575char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030576int
30577main ()
30578{
cristy71203402010-06-18 13:12:03 +000030579return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030580 ;
30581 return 0;
30582}
30583_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030584if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030585 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000030586else
cristy71203402010-06-18 13:12:03 +000030587 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000030588fi
cristy8b350f62009-11-15 23:12:43 +000030589rm -f core conftest.err conftest.$ac_objext \
30590 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030591LIBS=$ac_check_lib_save_LIBS
30592fi
cristy71203402010-06-18 13:12:03 +000030593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
30594$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030595if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030596 passed=`expr $passed + 1`
30597else
30598 failed=`expr $failed + 1`
30599fi
30600
cristy8b350f62009-11-15 23:12:43 +000030601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030602$as_echo_n "checking if LCMS package is complete... " >&6; }
30603 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030604 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30606$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000030607 have_lcms='no (failed tests)'
30608 else
30609 LCMS_LIBS='-llcms'
30610 LIBS="$LCMS_LIBS $LIBS"
cristyad38abe2012-12-23 23:03:21 +000030611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30612$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000030613 have_lcms='yes'
30614 fi
cristy3ed852e2009-09-05 21:47:34 +000030615 else
cristyad38abe2012-12-23 23:03:21 +000030616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30617$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030618 fi
30619fi
cristy71203402010-06-18 13:12:03 +000030620
cristy73bd4a52010-10-05 11:24:23 +000030621 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30622 LCMS_DELEGATE_TRUE=
30623 LCMS_DELEGATE_FALSE='#'
30624else
30625 LCMS_DELEGATE_TRUE='#'
30626 LCMS_DELEGATE_FALSE=
30627fi
30628
cristy71203402010-06-18 13:12:03 +000030629if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30630
30631$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
30632
30633fi
30634
cristy3ed852e2009-09-05 21:47:34 +000030635
30636
30637
30638#
cristy99db3872014-01-01 15:11:34 +000030639# Check for the OpenJP2 delegate library.
30640#
30641
30642# Check whether --with-openjp2 was given.
30643if test "${with_openjp2+set}" = set; then :
30644 withval=$with_openjp2; with_openjp2=$withval
30645else
30646 with_openjp2='yes'
30647fi
30648
30649
30650if test "$with_openjp2" != 'yes'; then
30651 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openjp2=$with_openjp2 "
30652fi
30653
30654have_openjp2='no'
30655LIBOPENJP2_CFLAGS=""
30656LIBOPENJP2_LIBS=""
30657LIBOPENJP2_PKG=""
30658if test "x$with_openjp2" = "xyes"; then
30659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30660$as_echo "-------------------------------------------------------------" >&6; }
30661
30662pkg_failed=no
30663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBOPENJP2" >&5
30664$as_echo_n "checking for LIBOPENJP2... " >&6; }
30665
30666if test -n "$LIBOPENJP2_CFLAGS"; then
30667 pkg_cv_LIBOPENJP2_CFLAGS="$LIBOPENJP2_CFLAGS"
30668 elif test -n "$PKG_CONFIG"; then
30669 if test -n "$PKG_CONFIG" && \
cristybc964932014-05-08 21:45:03 +000030670 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenjp2 >= 2.1.0\""; } >&5
30671 ($PKG_CONFIG --exists --print-errors "libopenjp2 >= 2.1.0") 2>&5
cristy99db3872014-01-01 15:11:34 +000030672 ac_status=$?
30673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30674 test $ac_status = 0; }; then
cristybc964932014-05-08 21:45:03 +000030675 pkg_cv_LIBOPENJP2_CFLAGS=`$PKG_CONFIG --cflags "libopenjp2 >= 2.1.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030676 test "x$?" != "x0" && pkg_failed=yes
cristy99db3872014-01-01 15:11:34 +000030677else
30678 pkg_failed=yes
30679fi
30680 else
30681 pkg_failed=untried
30682fi
30683if test -n "$LIBOPENJP2_LIBS"; then
30684 pkg_cv_LIBOPENJP2_LIBS="$LIBOPENJP2_LIBS"
30685 elif test -n "$PKG_CONFIG"; then
30686 if test -n "$PKG_CONFIG" && \
cristybc964932014-05-08 21:45:03 +000030687 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenjp2 >= 2.1.0\""; } >&5
30688 ($PKG_CONFIG --exists --print-errors "libopenjp2 >= 2.1.0") 2>&5
cristy99db3872014-01-01 15:11:34 +000030689 ac_status=$?
30690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30691 test $ac_status = 0; }; then
cristybc964932014-05-08 21:45:03 +000030692 pkg_cv_LIBOPENJP2_LIBS=`$PKG_CONFIG --libs "libopenjp2 >= 2.1.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030693 test "x$?" != "x0" && pkg_failed=yes
cristy99db3872014-01-01 15:11:34 +000030694else
30695 pkg_failed=yes
30696fi
30697 else
30698 pkg_failed=untried
30699fi
30700
30701
30702
30703if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000030704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30705$as_echo "no" >&6; }
cristy99db3872014-01-01 15:11:34 +000030706
30707if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30708 _pkg_short_errors_supported=yes
30709else
30710 _pkg_short_errors_supported=no
30711fi
30712 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000030713 LIBOPENJP2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libopenjp2 >= 2.1.0" 2>&1`
cristy99db3872014-01-01 15:11:34 +000030714 else
cristy146497a2015-05-17 22:46:16 +000030715 LIBOPENJP2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libopenjp2 >= 2.1.0" 2>&1`
cristy99db3872014-01-01 15:11:34 +000030716 fi
30717 # Put the nasty error message in config.log where it belongs
30718 echo "$LIBOPENJP2_PKG_ERRORS" >&5
30719
cristy146497a2015-05-17 22:46:16 +000030720 have_openjp2=no
cristy99db3872014-01-01 15:11:34 +000030721elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000030722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30723$as_echo "no" >&6; }
cristy99db3872014-01-01 15:11:34 +000030724 have_openjp2=no
30725else
30726 LIBOPENJP2_CFLAGS=$pkg_cv_LIBOPENJP2_CFLAGS
30727 LIBOPENJP2_LIBS=$pkg_cv_LIBOPENJP2_LIBS
30728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30729$as_echo "yes" >&6; }
30730 have_openjp2=yes
30731fi
30732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30733$as_echo "" >&6; }
30734fi
30735
30736if test "$have_openjp2" = 'yes'; then
30737
30738$as_echo "#define LIBOPENJP2_DELEGATE 1" >>confdefs.h
30739
30740 if test "$build_modules" = 'no'; then
30741 CFLAGS="$LIBOPENJP2_CFLAGS $CFLAGS"
30742 fi
30743fi
30744
30745 if test "$have_openjp2" = 'yes'; then
30746 LIBOPENJP2_DELEGATE_TRUE=
30747 LIBOPENJP2_DELEGATE_FALSE='#'
30748else
30749 LIBOPENJP2_DELEGATE_TRUE='#'
30750 LIBOPENJP2_DELEGATE_FALSE=
30751fi
30752
30753
30754
30755
30756
30757
30758#
cristy3ed852e2009-09-05 21:47:34 +000030759# Check for the LQR (Liquid Rescale) delegate library.
30760#
30761
30762# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000030763if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030764 withval=$with_lqr; with_lqr=$withval
30765else
30766 with_lqr='yes'
30767fi
30768
30769
30770if test "$with_lqr" != 'yes'; then
30771 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
30772fi
30773
30774have_lqr='no'
30775LQR_CFLAGS=""
30776LQR_LIBS=""
30777LQR_PKG=""
30778if test "x$with_lqr" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30780$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030781
30782pkg_failed=no
30783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
30784$as_echo_n "checking for LQR... " >&6; }
30785
30786if test -n "$LQR_CFLAGS"; then
30787 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
30788 elif test -n "$PKG_CONFIG"; then
30789 if test -n "$PKG_CONFIG" && \
30790 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30791 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30792 ac_status=$?
30793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30794 test $ac_status = 0; }; then
30795 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030796 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000030797else
30798 pkg_failed=yes
30799fi
30800 else
30801 pkg_failed=untried
30802fi
30803if test -n "$LQR_LIBS"; then
30804 pkg_cv_LQR_LIBS="$LQR_LIBS"
30805 elif test -n "$PKG_CONFIG"; then
30806 if test -n "$PKG_CONFIG" && \
30807 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30808 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30809 ac_status=$?
30810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30811 test $ac_status = 0; }; then
30812 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030813 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000030814else
30815 pkg_failed=yes
30816fi
30817 else
30818 pkg_failed=untried
30819fi
30820
30821
30822
30823if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000030824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30825$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030826
30827if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30828 _pkg_short_errors_supported=yes
30829else
30830 _pkg_short_errors_supported=no
30831fi
30832 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000030833 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lqr-1 >= 0.1.0" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000030834 else
cristy146497a2015-05-17 22:46:16 +000030835 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lqr-1 >= 0.1.0" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000030836 fi
30837 # Put the nasty error message in config.log where it belongs
30838 echo "$LQR_PKG_ERRORS" >&5
30839
cristy146497a2015-05-17 22:46:16 +000030840 have_lqr=no
cristy73bd4a52010-10-05 11:24:23 +000030841elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000030842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30843$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030844 have_lqr=no
30845else
30846 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
30847 LQR_LIBS=$pkg_cv_LQR_LIBS
30848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30849$as_echo "yes" >&6; }
30850 have_lqr=yes
30851fi
cristyad38abe2012-12-23 23:03:21 +000030852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30853$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030854fi
30855
30856if test "$have_lqr" = 'yes'; then
30857
cristy8b350f62009-11-15 23:12:43 +000030858$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030859
30860 CFLAGS="$LQR_CFLAGS $CFLAGS"
30861fi
30862
cristy73bd4a52010-10-05 11:24:23 +000030863 if test "$have_lqr" = 'yes'; then
30864 LQR_DELEGATE_TRUE=
30865 LQR_DELEGATE_FALSE='#'
30866else
30867 LQR_DELEGATE_TRUE='#'
30868 LQR_DELEGATE_FALSE=
30869fi
30870
cristy3ed852e2009-09-05 21:47:34 +000030871
30872
30873
30874
cristy81beccd2011-10-03 18:17:24 +000030875# Disable LZMA (lzma library)
cristyfbb0ef02010-12-19 02:32:11 +000030876
30877# Check whether --with-lzma was given.
30878if test "${with_lzma+set}" = set; then :
30879 withval=$with_lzma; with_lzma=$withval
30880else
30881 with_lzma='yes'
30882fi
30883
cristy81beccd2011-10-03 18:17:24 +000030884if test "$with_lzma" != 'yes' ; then
cristyfbb0ef02010-12-19 02:32:11 +000030885 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
30886fi
30887
cristyb94e5002011-11-14 13:20:10 +000030888LZMA_PKG=""
30889if test "x$with_lzma" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30891$as_echo "-------------------------------------------------------------" >&6; }
cristyb94e5002011-11-14 13:20:10 +000030892
30893pkg_failed=no
30894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
cristyfbb0ef02010-12-19 02:32:11 +000030895$as_echo_n "checking for LZMA... " >&6; }
cristyb94e5002011-11-14 13:20:10 +000030896
30897if test -n "$LZMA_CFLAGS"; then
30898 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
30899 elif test -n "$PKG_CONFIG"; then
30900 if test -n "$PKG_CONFIG" && \
30901 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30902 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30903 ac_status=$?
30904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30905 test $ac_status = 0; }; then
30906 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030907 test "x$?" != "x0" && pkg_failed=yes
cristyb94e5002011-11-14 13:20:10 +000030908else
30909 pkg_failed=yes
30910fi
30911 else
30912 pkg_failed=untried
30913fi
30914if test -n "$LZMA_LIBS"; then
30915 pkg_cv_LZMA_LIBS="$LZMA_LIBS"
30916 elif test -n "$PKG_CONFIG"; then
30917 if test -n "$PKG_CONFIG" && \
30918 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30919 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30920 ac_status=$?
30921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30922 test $ac_status = 0; }; then
30923 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030924 test "x$?" != "x0" && pkg_failed=yes
cristyb94e5002011-11-14 13:20:10 +000030925else
30926 pkg_failed=yes
30927fi
30928 else
30929 pkg_failed=untried
30930fi
30931
30932
30933
30934if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000030935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30936$as_echo "no" >&6; }
cristyb94e5002011-11-14 13:20:10 +000030937
30938if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30939 _pkg_short_errors_supported=yes
30940else
30941 _pkg_short_errors_supported=no
30942fi
30943 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000030944 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "liblzma >= 2.9.0" 2>&1`
cristyb94e5002011-11-14 13:20:10 +000030945 else
cristy146497a2015-05-17 22:46:16 +000030946 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "liblzma >= 2.9.0" 2>&1`
cristyb94e5002011-11-14 13:20:10 +000030947 fi
30948 # Put the nasty error message in config.log where it belongs
30949 echo "$LZMA_PKG_ERRORS" >&5
30950
cristy146497a2015-05-17 22:46:16 +000030951 have_lzma=no
cristyb94e5002011-11-14 13:20:10 +000030952elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000030953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30954$as_echo "no" >&6; }
cristyb94e5002011-11-14 13:20:10 +000030955 have_lzma=no
30956else
30957 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
30958 LZMA_LIBS=$pkg_cv_LZMA_LIBS
30959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30960$as_echo "yes" >&6; }
30961 have_lzma=yes
30962fi
cristyad38abe2012-12-23 23:03:21 +000030963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30964$as_echo "" >&6; }
cristyfbb0ef02010-12-19 02:32:11 +000030965fi
30966
cristyb94e5002011-11-14 13:20:10 +000030967if test "$have_lzma" = 'yes'; then
cristyfbb0ef02010-12-19 02:32:11 +000030968
30969$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
30970
cristyc6722092012-10-14 00:19:31 +000030971 if test "$build_modules" = 'no'; then
cristyb94e5002011-11-14 13:20:10 +000030972 CPPFLAGS="$LZMA_CFLAGS $CPPFLAGS"
cristyfbb0ef02010-12-19 02:32:11 +000030973 fi
cristyfbb0ef02010-12-19 02:32:11 +000030974fi
cristyb94e5002011-11-14 13:20:10 +000030975
cristyfbb0ef02010-12-19 02:32:11 +000030976 if test "$have_lzma" = 'yes'; then
30977 LZMA_DELEGATE_TRUE=
30978 LZMA_DELEGATE_FALSE='#'
30979else
30980 LZMA_DELEGATE_TRUE='#'
30981 LZMA_DELEGATE_FALSE=
30982fi
30983
30984
30985
30986
cristyb94e5002011-11-14 13:20:10 +000030987
cristy3ed852e2009-09-05 21:47:34 +000030988#
30989# Check for the OpenEXR delegate library.
30990#
30991
30992# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000030993if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030994 withval=$with_openexr; with_openexr=$withval
30995else
30996 with_openexr='yes'
30997fi
30998
30999
31000if test "$with_openexr" != 'yes'; then
31001 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
31002fi
31003
31004have_openexr='no'
31005OPENEXR_CFLAGS=""
31006OPENEXR_LIBS=""
31007OPENEXR_PKG=""
31008if test "x$with_openexr" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000031009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31010$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031011
31012pkg_failed=no
31013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
31014$as_echo_n "checking for OPENEXR... " >&6; }
31015
31016if test -n "$OPENEXR_CFLAGS"; then
31017 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
31018 elif test -n "$PKG_CONFIG"; then
31019 if test -n "$PKG_CONFIG" && \
31020 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
31021 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
31022 ac_status=$?
31023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31024 test $ac_status = 0; }; then
31025 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000031026 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000031027else
31028 pkg_failed=yes
31029fi
31030 else
31031 pkg_failed=untried
31032fi
31033if test -n "$OPENEXR_LIBS"; then
31034 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
31035 elif test -n "$PKG_CONFIG"; then
31036 if test -n "$PKG_CONFIG" && \
31037 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
31038 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
31039 ac_status=$?
31040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31041 test $ac_status = 0; }; then
31042 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000031043 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000031044else
31045 pkg_failed=yes
31046fi
31047 else
31048 pkg_failed=untried
31049fi
31050
31051
31052
31053if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000031054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31055$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031056
31057if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31058 _pkg_short_errors_supported=yes
31059else
31060 _pkg_short_errors_supported=no
31061fi
31062 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000031063 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "OpenEXR >= 1.0.6" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000031064 else
cristy146497a2015-05-17 22:46:16 +000031065 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "OpenEXR >= 1.0.6" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000031066 fi
31067 # Put the nasty error message in config.log where it belongs
31068 echo "$OPENEXR_PKG_ERRORS" >&5
31069
cristy146497a2015-05-17 22:46:16 +000031070 have_openexr=no
cristy73bd4a52010-10-05 11:24:23 +000031071elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000031072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31073$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031074 have_openexr=no
31075else
31076 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
31077 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
31078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31079$as_echo "yes" >&6; }
31080 have_openexr=yes
31081fi
cristyad38abe2012-12-23 23:03:21 +000031082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31083$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031084fi
31085
31086if test "$have_openexr" = 'yes'; then
31087
cristy8b350f62009-11-15 23:12:43 +000031088$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031089
cristyc6722092012-10-14 00:19:31 +000031090 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031091 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
31092 fi
31093fi
31094
cristy73bd4a52010-10-05 11:24:23 +000031095 if test "$have_openexr" = 'yes'; then
31096 OPENEXR_DELEGATE_TRUE=
31097 OPENEXR_DELEGATE_FALSE='#'
31098else
31099 OPENEXR_DELEGATE_TRUE='#'
31100 OPENEXR_DELEGATE_FALSE=
31101fi
31102
cristy3ed852e2009-09-05 21:47:34 +000031103
31104
31105
31106
31107#
cristy41cbe8a2011-10-27 01:35:18 +000031108# Check for PANGO delegate library.
31109#
31110
31111# Check whether --with-pango was given.
31112if test "${with_pango+set}" = set; then :
31113 withval=$with_pango; with_pango=$withval
31114else
cristyfc3d0222012-02-07 15:05:57 +000031115 with_pango='yes'
cristy41cbe8a2011-10-27 01:35:18 +000031116fi
31117
31118
31119if test "$with_pango" != 'yes'; then
31120 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
31121fi
31122
31123have_pango='no'
cristya054b762012-03-26 23:16:00 +000031124have_pangocairo='no'
cristy41cbe8a2011-10-27 01:35:18 +000031125PANGO_CFLAGS=""
31126PANGO_LIBS=""
31127PANGO_PKG=""
31128if test "x$with_pango" = "xyes"; then
31129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31130$as_echo "-------------------------------------------------------------" >&6; }
31131
31132pkg_failed=no
31133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
31134$as_echo_n "checking for PANGO... " >&6; }
31135
31136if test -n "$PANGO_CFLAGS"; then
31137 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
31138 elif test -n "$PKG_CONFIG"; then
31139 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000031140 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
31141 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000031142 ac_status=$?
31143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31144 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000031145 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangocairo >= 1.28.1" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000031146 test "x$?" != "x0" && pkg_failed=yes
cristy41cbe8a2011-10-27 01:35:18 +000031147else
31148 pkg_failed=yes
31149fi
31150 else
31151 pkg_failed=untried
31152fi
31153if test -n "$PANGO_LIBS"; then
31154 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
31155 elif test -n "$PKG_CONFIG"; then
31156 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000031157 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
31158 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000031159 ac_status=$?
31160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31161 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000031162 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangocairo >= 1.28.1" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000031163 test "x$?" != "x0" && pkg_failed=yes
cristy41cbe8a2011-10-27 01:35:18 +000031164else
31165 pkg_failed=yes
31166fi
31167 else
31168 pkg_failed=untried
31169fi
31170
31171
31172
31173if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000031174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31175$as_echo "no" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000031176
31177if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31178 _pkg_short_errors_supported=yes
31179else
31180 _pkg_short_errors_supported=no
31181fi
31182 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000031183 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000031184 else
cristy146497a2015-05-17 22:46:16 +000031185 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000031186 fi
31187 # Put the nasty error message in config.log where it belongs
31188 echo "$PANGO_PKG_ERRORS" >&5
31189
cristy146497a2015-05-17 22:46:16 +000031190 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000031191elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000031192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31193$as_echo "no" >&6; }
cristya054b762012-03-26 23:16:00 +000031194 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000031195else
31196 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
31197 PANGO_LIBS=$pkg_cv_PANGO_LIBS
31198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31199$as_echo "yes" >&6; }
cristya054b762012-03-26 23:16:00 +000031200 have_pangocairo=yes
cristy41cbe8a2011-10-27 01:35:18 +000031201fi
31202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31203$as_echo "" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000031204
31205pkg_failed=no
31206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
31207$as_echo_n "checking for PANGO... " >&6; }
31208
31209if test -n "$PANGO_CFLAGS"; then
31210 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
31211 elif test -n "$PKG_CONFIG"; then
31212 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000031213 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
31214 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000031215 ac_status=$?
31216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31217 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000031218 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000031219 test "x$?" != "x0" && pkg_failed=yes
cristy7dc48ed2011-10-28 14:11:43 +000031220else
31221 pkg_failed=yes
31222fi
31223 else
31224 pkg_failed=untried
31225fi
31226if test -n "$PANGO_LIBS"; then
31227 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
31228 elif test -n "$PKG_CONFIG"; then
31229 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000031230 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
31231 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000031232 ac_status=$?
31233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31234 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000031235 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000031236 test "x$?" != "x0" && pkg_failed=yes
cristy7dc48ed2011-10-28 14:11:43 +000031237else
31238 pkg_failed=yes
31239fi
31240 else
31241 pkg_failed=untried
31242fi
31243
31244
31245
31246if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000031247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31248$as_echo "no" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000031249
31250if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31251 _pkg_short_errors_supported=yes
31252else
31253 _pkg_short_errors_supported=no
31254fi
31255 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000031256 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000031257 else
cristy146497a2015-05-17 22:46:16 +000031258 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000031259 fi
31260 # Put the nasty error message in config.log where it belongs
31261 echo "$PANGO_PKG_ERRORS" >&5
31262
cristy146497a2015-05-17 22:46:16 +000031263 have_pango=no
cristy7dc48ed2011-10-28 14:11:43 +000031264elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000031265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31266$as_echo "no" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000031267 have_pango=no
31268else
31269 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
31270 PANGO_LIBS=$pkg_cv_PANGO_LIBS
31271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31272$as_echo "yes" >&6; }
31273 have_pango=yes
31274fi
31275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31276$as_echo "" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000031277fi
31278
31279if test "$have_pango" = 'yes'; then
31280
31281$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
31282
cristyc6722092012-10-14 00:19:31 +000031283 if test "$build_modules" = 'no'; then
cristy41cbe8a2011-10-27 01:35:18 +000031284 CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS"
31285 fi
31286fi
31287
cristya054b762012-03-26 23:16:00 +000031288if test "$have_pangocairo" = 'yes'; then
cristy41cbe8a2011-10-27 01:35:18 +000031289
cristya054b762012-03-26 23:16:00 +000031290$as_echo "#define PANGOCAIRO_DELEGATE 1" >>confdefs.h
cristy41cbe8a2011-10-27 01:35:18 +000031291
cristyc6722092012-10-14 00:19:31 +000031292 if test "$build_modules" = 'no'; then
cristya054b762012-03-26 23:16:00 +000031293 CPPFLAGS="$PANGOCAIRO_CFLAGS $CPPFLAGS"
cristy41cbe8a2011-10-27 01:35:18 +000031294 fi
31295fi
31296
31297 if test "$have_pango" = 'yes'; then
31298 PANGO_DELEGATE_TRUE=
31299 PANGO_DELEGATE_FALSE='#'
31300else
31301 PANGO_DELEGATE_TRUE='#'
31302 PANGO_DELEGATE_FALSE=
31303fi
31304
cristya054b762012-03-26 23:16:00 +000031305 if test "$have_pangocairo" = 'yes'; then
31306 PANGOCAIRO_DELEGATE_TRUE=
31307 PANGOCAIRO_DELEGATE_FALSE='#'
cristy41cbe8a2011-10-27 01:35:18 +000031308else
cristya054b762012-03-26 23:16:00 +000031309 PANGOCAIRO_DELEGATE_TRUE='#'
31310 PANGOCAIRO_DELEGATE_FALSE=
cristy41cbe8a2011-10-27 01:35:18 +000031311fi
31312
31313
31314
31315
31316
31317#
cristy3ed852e2009-09-05 21:47:34 +000031318# Check for PNG delegate library.
31319#
31320
31321# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000031322if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031323 withval=$with_png; with_png=$withval
31324else
31325 with_png='yes'
31326fi
31327
31328
31329if test "$with_png" != 'yes'; then
31330 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
31331fi
31332
cristy81beccd2011-10-03 18:17:24 +000031333have_png='no'
31334PNG_LIBS=''
31335
31336if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000031337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31338$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
31340$as_echo_n "checking for PNG support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31342$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031343 failed=0
31344 passed=0
31345 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
31346if test "x$ac_cv_header_png_h" = xyes; then :
31347 passed=`expr $passed + 1`
31348else
31349 failed=`expr $failed + 1`
cristy64877302011-08-23 19:10:31 +000031350fi
31351
cristy81beccd2011-10-03 18:17:24 +000031352
31353
31354 if test $passed -gt 0; then
glennrp3fc1c212013-01-10 01:52:32 +000031355 for var in 7 6 5 4 2 '' ; do
cristy0615f0e2011-10-12 11:36:46 +000031356 if test "$have_png" = 'no' ; then
31357 if test "x${var}" = 'x' ; then
cristy81beccd2011-10-03 18:17:24 +000031358 pnglib='png'
31359 else
31360 pnglib="png1${var}"
31361 fi
31362
31363# Test for compatible LIBPNG library
31364 failed=0
31365 passed=0
cristy0615f0e2011-10-12 11:36:46 +000031366 if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then
cristy81beccd2011-10-03 18:17:24 +000031367 if test "${pnglib}" != 'png' ; then
31368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
31369$as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
31370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31371/* end confdefs.h. */
31372#include <stdio.h>
31373#include <stdlib.h>
31374#include <png.h>
31375
31376int
31377main ()
31378{
31379
31380#if PNG_LIBPNG_VER_MINOR != ${var}
31381#error LIBPNG library must be version 1${var}!
31382Kaboom, Kaboom
31383#endif
31384return 0;
31385
31386 ;
31387 return 0;
31388}
31389_ACEOF
31390if ac_fn_c_try_compile "$LINENO"; then :
31391 ac_cv_libpng_ok='yes'
31392else
31393 ac_cv_libpng_ok='no'
31394fi
31395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31396 if test "$ac_cv_libpng_ok" = 'yes' ; then
31397 passed=`expr $passed + 1`
cristyad38abe2012-12-23 23:03:21 +000031398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31399$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031400 else
31401 failed=`expr $failed + 1`
cristyad38abe2012-12-23 23:03:21 +000031402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31403$as_echo "no" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031404 fi
31405 else
31406 passed=`expr $passed + 1`
cristyad38abe2012-12-23 23:03:21 +000031407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31408$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031409 fi
31410 fi
31411
31412 if test $passed -gt 0 -a $failed -le 0; then
cristy03f187e2013-01-24 00:22:19 +000031413 if test "1${var}" = '17' ; then
31414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng17" >&5
31415$as_echo_n "checking for png_get_io_ptr in -lpng17... " >&6; }
31416if ${ac_cv_lib_png17_png_get_io_ptr+:} false; then :
31417 $as_echo_n "(cached) " >&6
31418else
31419 ac_check_lib_save_LIBS=$LIBS
31420LIBS="-lpng17 $LIBS"
31421cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31422/* end confdefs.h. */
31423
31424/* Override any GCC internal prototype to avoid an error.
31425 Use char because int might match the return type of a GCC
31426 builtin and then its argument prototype would still apply. */
31427#ifdef __cplusplus
31428extern "C"
31429#endif
31430char png_get_io_ptr ();
31431int
31432main ()
31433{
31434return png_get_io_ptr ();
31435 ;
31436 return 0;
31437}
31438_ACEOF
31439if ac_fn_c_try_link "$LINENO"; then :
31440 ac_cv_lib_png17_png_get_io_ptr=yes
31441else
31442 ac_cv_lib_png17_png_get_io_ptr=no
31443fi
31444rm -f core conftest.err conftest.$ac_objext \
31445 conftest$ac_exeext conftest.$ac_ext
31446LIBS=$ac_check_lib_save_LIBS
31447fi
31448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png17_png_get_io_ptr" >&5
31449$as_echo "$ac_cv_lib_png17_png_get_io_ptr" >&6; }
31450if test "x$ac_cv_lib_png17_png_get_io_ptr" = xyes; then :
31451 passed=`expr $passed + 1`
31452else
31453 failed=`expr $failed + 1`
31454fi
31455
31456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng17" >&5
31457$as_echo_n "checking for png_longjmp in -lpng17... " >&6; }
31458if ${ac_cv_lib_png17_png_longjmp+:} false; then :
31459 $as_echo_n "(cached) " >&6
31460else
31461 ac_check_lib_save_LIBS=$LIBS
31462LIBS="-lpng17 $LIBS"
31463cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31464/* end confdefs.h. */
31465
31466/* Override any GCC internal prototype to avoid an error.
31467 Use char because int might match the return type of a GCC
31468 builtin and then its argument prototype would still apply. */
31469#ifdef __cplusplus
31470extern "C"
31471#endif
31472char png_longjmp ();
31473int
31474main ()
31475{
31476return png_longjmp ();
31477 ;
31478 return 0;
31479}
31480_ACEOF
31481if ac_fn_c_try_link "$LINENO"; then :
31482 ac_cv_lib_png17_png_longjmp=yes
31483else
31484 ac_cv_lib_png17_png_longjmp=no
31485fi
31486rm -f core conftest.err conftest.$ac_objext \
31487 conftest$ac_exeext conftest.$ac_ext
31488LIBS=$ac_check_lib_save_LIBS
31489fi
31490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png17_png_longjmp" >&5
31491$as_echo "$ac_cv_lib_png17_png_longjmp" >&6; }
31492if test "x$ac_cv_lib_png17_png_longjmp" = xyes; then :
31493 passed=`expr $passed + 1`
31494else
31495 failed=`expr $failed + 1`
31496fi
31497
31498 fi
31499 if test "1${var}" = '16' ; then
31500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng16" >&5
31501$as_echo_n "checking for png_get_io_ptr in -lpng16... " >&6; }
31502if ${ac_cv_lib_png16_png_get_io_ptr+:} false; then :
31503 $as_echo_n "(cached) " >&6
31504else
31505 ac_check_lib_save_LIBS=$LIBS
31506LIBS="-lpng16 $LIBS"
31507cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31508/* end confdefs.h. */
31509
31510/* Override any GCC internal prototype to avoid an error.
31511 Use char because int might match the return type of a GCC
31512 builtin and then its argument prototype would still apply. */
31513#ifdef __cplusplus
31514extern "C"
31515#endif
31516char png_get_io_ptr ();
31517int
31518main ()
31519{
31520return png_get_io_ptr ();
31521 ;
31522 return 0;
31523}
31524_ACEOF
31525if ac_fn_c_try_link "$LINENO"; then :
31526 ac_cv_lib_png16_png_get_io_ptr=yes
31527else
31528 ac_cv_lib_png16_png_get_io_ptr=no
31529fi
31530rm -f core conftest.err conftest.$ac_objext \
31531 conftest$ac_exeext conftest.$ac_ext
31532LIBS=$ac_check_lib_save_LIBS
31533fi
31534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png16_png_get_io_ptr" >&5
31535$as_echo "$ac_cv_lib_png16_png_get_io_ptr" >&6; }
31536if test "x$ac_cv_lib_png16_png_get_io_ptr" = xyes; then :
31537 passed=`expr $passed + 1`
31538else
31539 failed=`expr $failed + 1`
31540fi
31541
31542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng16" >&5
31543$as_echo_n "checking for png_longjmp in -lpng16... " >&6; }
31544if ${ac_cv_lib_png16_png_longjmp+:} false; then :
31545 $as_echo_n "(cached) " >&6
31546else
31547 ac_check_lib_save_LIBS=$LIBS
31548LIBS="-lpng16 $LIBS"
31549cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31550/* end confdefs.h. */
31551
31552/* Override any GCC internal prototype to avoid an error.
31553 Use char because int might match the return type of a GCC
31554 builtin and then its argument prototype would still apply. */
31555#ifdef __cplusplus
31556extern "C"
31557#endif
31558char png_longjmp ();
31559int
31560main ()
31561{
31562return png_longjmp ();
31563 ;
31564 return 0;
31565}
31566_ACEOF
31567if ac_fn_c_try_link "$LINENO"; then :
31568 ac_cv_lib_png16_png_longjmp=yes
31569else
31570 ac_cv_lib_png16_png_longjmp=no
31571fi
31572rm -f core conftest.err conftest.$ac_objext \
31573 conftest$ac_exeext conftest.$ac_ext
31574LIBS=$ac_check_lib_save_LIBS
31575fi
31576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png16_png_longjmp" >&5
31577$as_echo "$ac_cv_lib_png16_png_longjmp" >&6; }
31578if test "x$ac_cv_lib_png16_png_longjmp" = xyes; then :
31579 passed=`expr $passed + 1`
31580else
31581 failed=`expr $failed + 1`
31582fi
31583
31584 fi
cristy81beccd2011-10-03 18:17:24 +000031585 if test "1${var}" = '15' ; then
31586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
31587$as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
31588if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
31589 $as_echo_n "(cached) " >&6
31590else
31591 ac_check_lib_save_LIBS=$LIBS
31592LIBS="-lpng15 $LIBS"
31593cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31594/* end confdefs.h. */
31595
31596/* Override any GCC internal prototype to avoid an error.
31597 Use char because int might match the return type of a GCC
31598 builtin and then its argument prototype would still apply. */
31599#ifdef __cplusplus
31600extern "C"
31601#endif
31602char png_get_io_ptr ();
31603int
31604main ()
31605{
31606return png_get_io_ptr ();
31607 ;
31608 return 0;
31609}
31610_ACEOF
31611if ac_fn_c_try_link "$LINENO"; then :
31612 ac_cv_lib_png15_png_get_io_ptr=yes
31613else
31614 ac_cv_lib_png15_png_get_io_ptr=no
31615fi
31616rm -f core conftest.err conftest.$ac_objext \
31617 conftest$ac_exeext conftest.$ac_ext
31618LIBS=$ac_check_lib_save_LIBS
31619fi
31620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
31621$as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
31622if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
31623 passed=`expr $passed + 1`
31624else
31625 failed=`expr $failed + 1`
31626fi
31627
31628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
31629$as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
31630if ${ac_cv_lib_png15_png_longjmp+:} false; then :
31631 $as_echo_n "(cached) " >&6
31632else
31633 ac_check_lib_save_LIBS=$LIBS
31634LIBS="-lpng15 $LIBS"
31635cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31636/* end confdefs.h. */
31637
31638/* Override any GCC internal prototype to avoid an error.
31639 Use char because int might match the return type of a GCC
31640 builtin and then its argument prototype would still apply. */
31641#ifdef __cplusplus
31642extern "C"
31643#endif
31644char png_longjmp ();
31645int
31646main ()
31647{
31648return png_longjmp ();
31649 ;
31650 return 0;
31651}
31652_ACEOF
31653if ac_fn_c_try_link "$LINENO"; then :
31654 ac_cv_lib_png15_png_longjmp=yes
31655else
31656 ac_cv_lib_png15_png_longjmp=no
31657fi
31658rm -f core conftest.err conftest.$ac_objext \
31659 conftest$ac_exeext conftest.$ac_ext
31660LIBS=$ac_check_lib_save_LIBS
31661fi
31662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
31663$as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
31664if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
31665 passed=`expr $passed + 1`
31666else
31667 failed=`expr $failed + 1`
31668fi
31669
31670 fi
31671 if test "1${var}" = '14' ; then
31672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
31673$as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
31674if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
31675 $as_echo_n "(cached) " >&6
31676else
31677 ac_check_lib_save_LIBS=$LIBS
31678LIBS="-lpng14 $LIBS"
31679cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31680/* end confdefs.h. */
31681
31682/* Override any GCC internal prototype to avoid an error.
31683 Use char because int might match the return type of a GCC
31684 builtin and then its argument prototype would still apply. */
31685#ifdef __cplusplus
31686extern "C"
31687#endif
31688char png_get_io_ptr ();
31689int
31690main ()
31691{
31692return png_get_io_ptr ();
31693 ;
31694 return 0;
31695}
31696_ACEOF
31697if ac_fn_c_try_link "$LINENO"; then :
31698 ac_cv_lib_png14_png_get_io_ptr=yes
31699else
31700 ac_cv_lib_png14_png_get_io_ptr=no
31701fi
31702rm -f core conftest.err conftest.$ac_objext \
31703 conftest$ac_exeext conftest.$ac_ext
31704LIBS=$ac_check_lib_save_LIBS
31705fi
31706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
31707$as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
31708if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
31709 passed=`expr $passed + 1`
31710else
31711 failed=`expr $failed + 1`
31712fi
31713
31714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
31715$as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
31716if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
31717 $as_echo_n "(cached) " >&6
31718else
31719 ac_check_lib_save_LIBS=$LIBS
31720LIBS="-lpng14 $LIBS"
31721cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31722/* end confdefs.h. */
31723
31724/* Override any GCC internal prototype to avoid an error.
31725 Use char because int might match the return type of a GCC
31726 builtin and then its argument prototype would still apply. */
31727#ifdef __cplusplus
31728extern "C"
31729#endif
31730char png_get_io_state ();
31731int
31732main ()
31733{
31734return png_get_io_state ();
31735 ;
31736 return 0;
31737}
31738_ACEOF
31739if ac_fn_c_try_link "$LINENO"; then :
31740 ac_cv_lib_png14_png_get_io_state=yes
31741else
31742 ac_cv_lib_png14_png_get_io_state=no
31743fi
31744rm -f core conftest.err conftest.$ac_objext \
31745 conftest$ac_exeext conftest.$ac_ext
31746LIBS=$ac_check_lib_save_LIBS
31747fi
31748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
31749$as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
31750if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
31751 passed=`expr $passed + 1`
31752else
31753 failed=`expr $failed + 1`
31754fi
31755
31756 fi
31757 if test "1${var}" = '12' ; then
31758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
31759$as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
31760if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
31761 $as_echo_n "(cached) " >&6
31762else
31763 ac_check_lib_save_LIBS=$LIBS
31764LIBS="-lpng12 $LIBS"
31765cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31766/* end confdefs.h. */
31767
31768/* Override any GCC internal prototype to avoid an error.
31769 Use char because int might match the return type of a GCC
31770 builtin and then its argument prototype would still apply. */
31771#ifdef __cplusplus
31772extern "C"
31773#endif
31774char png_get_io_ptr ();
31775int
31776main ()
31777{
31778return png_get_io_ptr ();
31779 ;
31780 return 0;
31781}
31782_ACEOF
31783if ac_fn_c_try_link "$LINENO"; then :
31784 ac_cv_lib_png12_png_get_io_ptr=yes
31785else
31786 ac_cv_lib_png12_png_get_io_ptr=no
31787fi
31788rm -f core conftest.err conftest.$ac_objext \
31789 conftest$ac_exeext conftest.$ac_ext
31790LIBS=$ac_check_lib_save_LIBS
31791fi
31792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
31793$as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
31794if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
31795 passed=`expr $passed + 1`
31796else
31797 failed=`expr $failed + 1`
31798fi
31799
31800 fi
31801 if test "1${var}" = '1' ; then
31802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
31803$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
31804if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
31805 $as_echo_n "(cached) " >&6
31806else
31807 ac_check_lib_save_LIBS=$LIBS
31808LIBS="-lpng $LIBS"
31809cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31810/* end confdefs.h. */
31811
31812/* Override any GCC internal prototype to avoid an error.
31813 Use char because int might match the return type of a GCC
31814 builtin and then its argument prototype would still apply. */
31815#ifdef __cplusplus
31816extern "C"
31817#endif
31818char png_get_io_ptr ();
31819int
31820main ()
31821{
31822return png_get_io_ptr ();
31823 ;
31824 return 0;
31825}
31826_ACEOF
31827if ac_fn_c_try_link "$LINENO"; then :
31828 ac_cv_lib_png_png_get_io_ptr=yes
31829else
31830 ac_cv_lib_png_png_get_io_ptr=no
31831fi
31832rm -f core conftest.err conftest.$ac_objext \
31833 conftest$ac_exeext conftest.$ac_ext
31834LIBS=$ac_check_lib_save_LIBS
31835fi
31836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
31837$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
31838if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
31839 passed=`expr $passed + 1`
31840else
31841 failed=`expr $failed + 1`
31842fi
31843
31844 fi
31845 if test $passed -gt 0 -a $failed -le 0 ; then
31846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
31847$as_echo_n "checking if ${pnglib} package is complete... " >&6; }
31848 if test $passed -gt 0 ; then
31849 if test $failed -gt 0 ; then
cristyad38abe2012-12-23 23:03:21 +000031850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31851$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031852 have_png='no (failed tests)'
31853 else
31854 PNG_LIBS="-l${pnglib}"
31855 LIBS="$PNG_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031856
cristy8b350f62009-11-15 23:12:43 +000031857$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031858
cristyad38abe2012-12-23 23:03:21 +000031859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31860$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031861 have_png='yes'
31862 fi
31863 fi
31864 fi
31865 fi
31866 fi
31867 done
31868 fi
cristy3ed852e2009-09-05 21:47:34 +000031869fi
cristy64877302011-08-23 19:10:31 +000031870
cristy73bd4a52010-10-05 11:24:23 +000031871 if test "$have_png" = 'yes'; then
31872 PNG_DELEGATE_TRUE=
31873 PNG_DELEGATE_FALSE='#'
31874else
31875 PNG_DELEGATE_TRUE='#'
31876 PNG_DELEGATE_FALSE=
31877fi
31878
cristy3ed852e2009-09-05 21:47:34 +000031879
cristy50d3f5c2011-09-10 20:09:06 +000031880
cristy3ed852e2009-09-05 21:47:34 +000031881
31882
31883#
31884# Check for RSVG delegate library.
31885#
31886
31887# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000031888if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031889 withval=$with_rsvg; with_rsvg=$withval
31890else
cristy1164d5f2012-08-15 00:58:25 +000031891 with_rsvg='no'
cristy3ed852e2009-09-05 21:47:34 +000031892fi
31893
31894
31895if test "$with_rsvg" != 'yes'; then
31896 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
31897fi
31898
31899have_rsvg='no'
31900have_cairo='no'
31901RSVG_CFLAGS=""
31902RSVG_LIBS=""
31903RSVG_PKG=""
31904if test "x$with_rsvg" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000031905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31906$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031907
31908pkg_failed=no
31909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
31910$as_echo_n "checking for RSVG... " >&6; }
31911
31912if test -n "$RSVG_CFLAGS"; then
31913 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
31914 elif test -n "$PKG_CONFIG"; then
31915 if test -n "$PKG_CONFIG" && \
31916 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31917 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31918 ac_status=$?
31919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31920 test $ac_status = 0; }; then
31921 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000031922 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000031923else
31924 pkg_failed=yes
31925fi
31926 else
31927 pkg_failed=untried
31928fi
31929if test -n "$RSVG_LIBS"; then
31930 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
31931 elif test -n "$PKG_CONFIG"; then
31932 if test -n "$PKG_CONFIG" && \
31933 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31934 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31935 ac_status=$?
31936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31937 test $ac_status = 0; }; then
31938 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000031939 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000031940else
31941 pkg_failed=yes
31942fi
31943 else
31944 pkg_failed=untried
31945fi
31946
31947
31948
31949if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000031950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31951$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031952
31953if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31954 _pkg_short_errors_supported=yes
31955else
31956 _pkg_short_errors_supported=no
31957fi
31958 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000031959 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "librsvg-2.0 >= 2.9.0" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000031960 else
cristy146497a2015-05-17 22:46:16 +000031961 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "librsvg-2.0 >= 2.9.0" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000031962 fi
31963 # Put the nasty error message in config.log where it belongs
31964 echo "$RSVG_PKG_ERRORS" >&5
31965
cristy146497a2015-05-17 22:46:16 +000031966 have_rsvg=no
cristy73bd4a52010-10-05 11:24:23 +000031967elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000031968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31969$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031970 have_rsvg=no
31971else
31972 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
31973 RSVG_LIBS=$pkg_cv_RSVG_LIBS
31974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31975$as_echo "yes" >&6; }
31976 have_rsvg=yes
31977fi
cristyad38abe2012-12-23 23:03:21 +000031978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31979$as_echo "" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031980
31981pkg_failed=no
31982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
31983$as_echo_n "checking for CAIRO_SVG... " >&6; }
31984
31985if test -n "$CAIRO_SVG_CFLAGS"; then
31986 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
31987 elif test -n "$PKG_CONFIG"; then
31988 if test -n "$PKG_CONFIG" && \
31989 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31990 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31991 ac_status=$?
31992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31993 test $ac_status = 0; }; then
31994 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000031995 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000031996else
31997 pkg_failed=yes
31998fi
31999 else
32000 pkg_failed=untried
32001fi
32002if test -n "$CAIRO_SVG_LIBS"; then
32003 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
32004 elif test -n "$PKG_CONFIG"; then
32005 if test -n "$PKG_CONFIG" && \
32006 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
32007 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
32008 ac_status=$?
32009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32010 test $ac_status = 0; }; then
32011 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000032012 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000032013else
32014 pkg_failed=yes
32015fi
32016 else
32017 pkg_failed=untried
32018fi
32019
32020
32021
32022if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000032023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32024$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000032025
32026if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32027 _pkg_short_errors_supported=yes
32028else
32029 _pkg_short_errors_supported=no
32030fi
32031 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000032032 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo-svg" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000032033 else
cristy146497a2015-05-17 22:46:16 +000032034 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo-svg" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000032035 fi
32036 # Put the nasty error message in config.log where it belongs
32037 echo "$CAIRO_SVG_PKG_ERRORS" >&5
32038
cristy146497a2015-05-17 22:46:16 +000032039 have_cairo=no
cristy73bd4a52010-10-05 11:24:23 +000032040elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000032041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32042$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000032043 have_cairo=no
32044else
32045 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
32046 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
32047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32048$as_echo "yes" >&6; }
32049 have_cairo=yes
32050fi
cristyad38abe2012-12-23 23:03:21 +000032051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32052$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032053fi
32054
32055if test "$have_rsvg" = 'yes'; then
32056
cristy8b350f62009-11-15 23:12:43 +000032057$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032058
cristyc6722092012-10-14 00:19:31 +000032059 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000032060 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
32061 fi
32062fi
32063
32064if test "$have_cairo" = 'yes'; then
32065
cristy8b350f62009-11-15 23:12:43 +000032066$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032067
cristyc6722092012-10-14 00:19:31 +000032068 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000032069 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
32070 fi
32071fi
32072
cristy73bd4a52010-10-05 11:24:23 +000032073 if test "$have_rsvg" = 'yes'; then
32074 RSVG_DELEGATE_TRUE=
32075 RSVG_DELEGATE_FALSE='#'
32076else
32077 RSVG_DELEGATE_TRUE='#'
32078 RSVG_DELEGATE_FALSE=
32079fi
32080
32081 if test "$have_cairo" = 'yes'; then
32082 CAIRO_DELEGATE_TRUE=
32083 CAIRO_DELEGATE_FALSE='#'
32084else
32085 CAIRO_DELEGATE_TRUE='#'
32086 CAIRO_DELEGATE_FALSE=
32087fi
32088
cristy3ed852e2009-09-05 21:47:34 +000032089
32090
32091
32092
32093#
32094# Check for TIFF delegate library.
32095#
32096
32097# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000032098if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032099 withval=$with_tiff; with_tiff=$withval
32100else
32101 with_tiff='yes'
32102fi
32103
32104
32105if test "$with_tiff" != 'yes'; then
32106 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
32107fi
32108
32109have_tiff='no'
32110TIFF_LIBS=''
32111if test "$with_tiff" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000032112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32113$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000032115$as_echo_n "checking for TIFF... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32117$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032118 failed=0
32119 passed=0
cristy8b350f62009-11-15 23:12:43 +000032120 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000032121if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032122 passed=`expr $passed + 1`
32123else
32124 failed=`expr $failed + 1`
32125fi
32126
32127
cristy8b350f62009-11-15 23:12:43 +000032128 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000032129if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032130 passed=`expr $passed + 1`
32131else
32132 failed=`expr $failed + 1`
32133fi
32134
32135
cristy8b350f62009-11-15 23:12:43 +000032136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000032137$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032138if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032139 $as_echo_n "(cached) " >&6
32140else
32141 ac_check_lib_save_LIBS=$LIBS
32142LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032143cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032144/* end confdefs.h. */
32145
32146/* Override any GCC internal prototype to avoid an error.
32147 Use char because int might match the return type of a GCC
32148 builtin and then its argument prototype would still apply. */
32149#ifdef __cplusplus
32150extern "C"
32151#endif
32152char TIFFOpen ();
32153int
32154main ()
32155{
32156return TIFFOpen ();
32157 ;
32158 return 0;
32159}
32160_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032161if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032162 ac_cv_lib_tiff_TIFFOpen=yes
32163else
cristy8b350f62009-11-15 23:12:43 +000032164 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000032165fi
cristy8b350f62009-11-15 23:12:43 +000032166rm -f core conftest.err conftest.$ac_objext \
32167 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032168LIBS=$ac_check_lib_save_LIBS
32169fi
cristy8b350f62009-11-15 23:12:43 +000032170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000032171$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000032172if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032173 passed=`expr $passed + 1`
32174else
32175 failed=`expr $failed + 1`
32176fi
32177
cristy8b350f62009-11-15 23:12:43 +000032178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000032179$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032180if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032181 $as_echo_n "(cached) " >&6
32182else
32183 ac_check_lib_save_LIBS=$LIBS
32184LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032185cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032186/* end confdefs.h. */
32187
32188/* Override any GCC internal prototype to avoid an error.
32189 Use char because int might match the return type of a GCC
32190 builtin and then its argument prototype would still apply. */
32191#ifdef __cplusplus
32192extern "C"
32193#endif
32194char TIFFClientOpen ();
32195int
32196main ()
32197{
32198return TIFFClientOpen ();
32199 ;
32200 return 0;
32201}
32202_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032203if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032204 ac_cv_lib_tiff_TIFFClientOpen=yes
32205else
cristy8b350f62009-11-15 23:12:43 +000032206 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000032207fi
cristy8b350f62009-11-15 23:12:43 +000032208rm -f core conftest.err conftest.$ac_objext \
32209 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032210LIBS=$ac_check_lib_save_LIBS
32211fi
cristy8b350f62009-11-15 23:12:43 +000032212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000032213$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000032214if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032215 passed=`expr $passed + 1`
32216else
32217 failed=`expr $failed + 1`
32218fi
32219
cristy8b350f62009-11-15 23:12:43 +000032220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000032221$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032222if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032223 $as_echo_n "(cached) " >&6
32224else
32225 ac_check_lib_save_LIBS=$LIBS
32226LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032227cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032228/* end confdefs.h. */
32229
32230/* Override any GCC internal prototype to avoid an error.
32231 Use char because int might match the return type of a GCC
32232 builtin and then its argument prototype would still apply. */
32233#ifdef __cplusplus
32234extern "C"
32235#endif
32236char TIFFIsByteSwapped ();
32237int
32238main ()
32239{
32240return TIFFIsByteSwapped ();
32241 ;
32242 return 0;
32243}
32244_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032245if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032246 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
32247else
cristy8b350f62009-11-15 23:12:43 +000032248 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000032249fi
cristy8b350f62009-11-15 23:12:43 +000032250rm -f core conftest.err conftest.$ac_objext \
32251 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032252LIBS=$ac_check_lib_save_LIBS
32253fi
cristy8b350f62009-11-15 23:12:43 +000032254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000032255$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000032256if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032257 passed=`expr $passed + 1`
32258else
32259 failed=`expr $failed + 1`
32260fi
32261
cristy8b350f62009-11-15 23:12:43 +000032262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000032263$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032264if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032265 $as_echo_n "(cached) " >&6
32266else
32267 ac_check_lib_save_LIBS=$LIBS
32268LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032269cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032270/* end confdefs.h. */
32271
32272/* Override any GCC internal prototype to avoid an error.
32273 Use char because int might match the return type of a GCC
32274 builtin and then its argument prototype would still apply. */
32275#ifdef __cplusplus
32276extern "C"
32277#endif
32278char TIFFReadRGBATile ();
32279int
32280main ()
32281{
32282return TIFFReadRGBATile ();
32283 ;
32284 return 0;
32285}
32286_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032287if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032288 ac_cv_lib_tiff_TIFFReadRGBATile=yes
32289else
cristy8b350f62009-11-15 23:12:43 +000032290 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000032291fi
cristy8b350f62009-11-15 23:12:43 +000032292rm -f core conftest.err conftest.$ac_objext \
32293 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032294LIBS=$ac_check_lib_save_LIBS
32295fi
cristy8b350f62009-11-15 23:12:43 +000032296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000032297$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000032298if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032299 passed=`expr $passed + 1`
32300else
32301 failed=`expr $failed + 1`
32302fi
32303
cristy8b350f62009-11-15 23:12:43 +000032304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000032305$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032306if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032307 $as_echo_n "(cached) " >&6
32308else
32309 ac_check_lib_save_LIBS=$LIBS
32310LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032311cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032312/* end confdefs.h. */
32313
32314/* Override any GCC internal prototype to avoid an error.
32315 Use char because int might match the return type of a GCC
32316 builtin and then its argument prototype would still apply. */
32317#ifdef __cplusplus
32318extern "C"
32319#endif
32320char TIFFReadRGBAStrip ();
32321int
32322main ()
32323{
32324return TIFFReadRGBAStrip ();
32325 ;
32326 return 0;
32327}
32328_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032329if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032330 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
32331else
cristy8b350f62009-11-15 23:12:43 +000032332 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000032333fi
cristy8b350f62009-11-15 23:12:43 +000032334rm -f core conftest.err conftest.$ac_objext \
32335 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032336LIBS=$ac_check_lib_save_LIBS
32337fi
cristy8b350f62009-11-15 23:12:43 +000032338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000032339$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000032340if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032341 passed=`expr $passed + 1`
32342else
32343 failed=`expr $failed + 1`
32344fi
32345
cristy8b350f62009-11-15 23:12:43 +000032346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000032347$as_echo_n "checking if TIFF package is complete... " >&6; }
32348 if test $passed -gt 0; then
32349 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000032350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32351$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032352 have_tiff='no (failed tests)'
32353 else
32354 TIFF_LIBS='-ltiff'
32355 LIBS="$TIFF_LIBS $LIBS"
32356
cristy8b350f62009-11-15 23:12:43 +000032357$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032358
cristyad38abe2012-12-23 23:03:21 +000032359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32360$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032361 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000032362 for ac_header in tiffconf.h
32363do :
32364 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000032365if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032366 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032367#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000032368_ACEOF
32369
32370fi
32371
32372done
32373
cristy8b350f62009-11-15 23:12:43 +000032374 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3f590e52011-11-14 14:29:44 +000032375 TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \
32376 TIFFSetTagExtender TIFFSetWarningHandlerExt \
32377 TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000032378do :
32379 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
32380ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000032381if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000032382 cat >>confdefs.h <<_ACEOF
32383#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
32384_ACEOF
32385
32386fi
32387done
32388
32389 fi
32390 else
cristyad38abe2012-12-23 23:03:21 +000032391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32392$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032393 fi
32394fi
cristy73bd4a52010-10-05 11:24:23 +000032395 if test "$have_tiff" = 'yes'; then
32396 TIFF_DELEGATE_TRUE=
32397 TIFF_DELEGATE_FALSE='#'
32398else
32399 TIFF_DELEGATE_TRUE='#'
32400 TIFF_DELEGATE_FALSE=
32401fi
32402
cristy3ed852e2009-09-05 21:47:34 +000032403
32404
32405
32406#
cristyb1860752011-03-14 00:27:46 +000032407# Check for WEBP delegate library.
32408#
32409
32410# Check whether --with-webp was given.
32411if test "${with_webp+set}" = set; then :
32412 withval=$with_webp; with_webp=$withval
32413else
32414 with_webp='yes'
32415fi
32416
32417
32418if test "$with_webp" != 'yes'; then
32419 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
32420fi
32421
32422have_webp='no'
32423WEBP_LIBS=''
32424if test "$with_webp" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000032425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32426$as_echo "-------------------------------------------------------------" >&6; }
cristyb1860752011-03-14 00:27:46 +000032427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
32428$as_echo_n "checking for WEBP... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32430$as_echo "" >&6; }
cristyb1860752011-03-14 00:27:46 +000032431 failed=0
32432 passed=0
32433 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
32434if test "x$ac_cv_header_webp_decode_h" = xyes; then :
32435 passed=`expr $passed + 1`
32436else
32437 failed=`expr $failed + 1`
32438fi
32439
32440
cristy6d670312013-03-22 23:23:01 +000032441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPPictureInitInternal in -lwebp" >&5
32442$as_echo_n "checking for WebPPictureInitInternal in -lwebp... " >&6; }
32443if ${ac_cv_lib_webp_WebPPictureInitInternal+:} false; then :
cristyb1860752011-03-14 00:27:46 +000032444 $as_echo_n "(cached) " >&6
32445else
32446 ac_check_lib_save_LIBS=$LIBS
32447LIBS="-lwebp $LIBS"
32448cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32449/* end confdefs.h. */
32450
32451/* Override any GCC internal prototype to avoid an error.
32452 Use char because int might match the return type of a GCC
32453 builtin and then its argument prototype would still apply. */
32454#ifdef __cplusplus
32455extern "C"
32456#endif
cristy6d670312013-03-22 23:23:01 +000032457char WebPPictureInitInternal ();
cristyb1860752011-03-14 00:27:46 +000032458int
32459main ()
32460{
cristy6d670312013-03-22 23:23:01 +000032461return WebPPictureInitInternal ();
cristyb1860752011-03-14 00:27:46 +000032462 ;
32463 return 0;
32464}
32465_ACEOF
32466if ac_fn_c_try_link "$LINENO"; then :
cristy6d670312013-03-22 23:23:01 +000032467 ac_cv_lib_webp_WebPPictureInitInternal=yes
cristyb1860752011-03-14 00:27:46 +000032468else
cristy6d670312013-03-22 23:23:01 +000032469 ac_cv_lib_webp_WebPPictureInitInternal=no
cristyb1860752011-03-14 00:27:46 +000032470fi
32471rm -f core conftest.err conftest.$ac_objext \
32472 conftest$ac_exeext conftest.$ac_ext
32473LIBS=$ac_check_lib_save_LIBS
32474fi
cristy6d670312013-03-22 23:23:01 +000032475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPPictureInitInternal" >&5
32476$as_echo "$ac_cv_lib_webp_WebPPictureInitInternal" >&6; }
32477if test "x$ac_cv_lib_webp_WebPPictureInitInternal" = xyes; then :
cristyb1860752011-03-14 00:27:46 +000032478 passed=`expr $passed + 1`
32479else
32480 failed=`expr $failed + 1`
32481fi
32482
32483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
32484$as_echo_n "checking if WEBP package is complete... " >&6; }
32485 if test $passed -gt 0; then
32486 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000032487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32488$as_echo "no -- some components failed test" >&6; }
cristyb1860752011-03-14 00:27:46 +000032489 have_webp='no (failed tests)'
32490 else
32491 WEBP_LIBS='-lwebp'
32492 LIBS="$WEBP_LIBS $LIBS"
32493
32494$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
32495
cristyad38abe2012-12-23 23:03:21 +000032496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32497$as_echo "yes" >&6; }
cristyb1860752011-03-14 00:27:46 +000032498 have_webp='yes'
32499 fi
32500 else
cristyad38abe2012-12-23 23:03:21 +000032501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32502$as_echo "no" >&6; }
cristyb1860752011-03-14 00:27:46 +000032503 fi
32504fi
32505 if test "$have_webp" = 'yes'; then
32506 WEBP_DELEGATE_TRUE=
32507 WEBP_DELEGATE_FALSE='#'
32508else
32509 WEBP_DELEGATE_TRUE='#'
32510 WEBP_DELEGATE_FALSE=
32511fi
32512
32513
32514
32515
32516#
cristy3ed852e2009-09-05 21:47:34 +000032517# Set Windows font directory.
32518#
32519
32520# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000032521if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032522 withval=$with_windows_font_dir; with_windows_font_dir=$withval
32523else
cristy5a3dc992014-12-05 19:50:04 +000032524 with_windows_font_dir='default'
cristy3ed852e2009-09-05 21:47:34 +000032525fi
32526
cristy5a3dc992014-12-05 19:50:04 +000032527
32528if test "$with_windows_font_dir" != 'default'; then
cristy3ed852e2009-09-05 21:47:34 +000032529 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
32530fi
32531
32532
32533#
32534# Check for WMF delegate library.
32535#
32536
32537# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000032538if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032539 withval=$with_wmf; with_wmf=$withval
32540else
cristyfc3d0222012-02-07 15:05:57 +000032541 with_wmf='no'
cristy3ed852e2009-09-05 21:47:34 +000032542fi
32543
32544
32545if test "$with_wmf" != 'yes'; then
32546 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
32547fi
32548
32549have_wmf='no'
32550WMF_LIBS=''
cristy03f7cf92011-12-15 01:40:41 +000032551WMF_LIBS_DEPS=''
32552OLIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032553if test "$with_wmf" != 'no'; then
cristy03f7cf92011-12-15 01:40:41 +000032554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32555$as_echo "-------------------------------------------------------------" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000032557$as_echo_n "checking for WMF... " >&6; }
cristy03f7cf92011-12-15 01:40:41 +000032558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32559$as_echo "" >&6; }
32560 have_libwmf='no'
32561 have_libwmflite='no'
32562 have_libwmf_ipa_h='no'
32563
32564 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
32565"
32566if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then :
32567 have_libwmf_ipa_h='yes'
cristy3ed852e2009-09-05 21:47:34 +000032568fi
32569
32570
cristy03f7cf92011-12-15 01:40:41 +000032571 if test "$have_libwmf_ipa_h" = 'yes'; then
32572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
32573$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
32574if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032575 $as_echo_n "(cached) " >&6
32576else
32577 ac_check_lib_save_LIBS=$LIBS
cristy03f7cf92011-12-15 01:40:41 +000032578LIBS="-lwmflite $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032579cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032580/* end confdefs.h. */
32581
32582/* Override any GCC internal prototype to avoid an error.
32583 Use char because int might match the return type of a GCC
32584 builtin and then its argument prototype would still apply. */
32585#ifdef __cplusplus
32586extern "C"
32587#endif
cristy03f7cf92011-12-15 01:40:41 +000032588char wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000032589int
32590main ()
32591{
cristy03f7cf92011-12-15 01:40:41 +000032592return wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000032593 ;
32594 return 0;
32595}
32596_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032597if ac_fn_c_try_link "$LINENO"; then :
cristy03f7cf92011-12-15 01:40:41 +000032598 ac_cv_lib_wmflite_wmf_lite_create=yes
cristy3ed852e2009-09-05 21:47:34 +000032599else
cristy03f7cf92011-12-15 01:40:41 +000032600 ac_cv_lib_wmflite_wmf_lite_create=no
cristy3ed852e2009-09-05 21:47:34 +000032601fi
cristy8b350f62009-11-15 23:12:43 +000032602rm -f core conftest.err conftest.$ac_objext \
32603 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032604LIBS=$ac_check_lib_save_LIBS
32605fi
cristy03f7cf92011-12-15 01:40:41 +000032606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
32607$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
32608if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then :
32609 have_libwmflite='yes'
cristy9243a2d2011-08-22 17:32:32 +000032610fi
32611
cristy03f7cf92011-12-15 01:40:41 +000032612 if test "$have_libwmflite" = 'yes'; then
32613
32614$as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
32615
32616 WMF_LIBS='-lwmflite'
glennrp33e524b2011-08-24 17:41:57 +000032617 LIBS="$WMF_LIBS $LIBS"
cristy03f7cf92011-12-15 01:40:41 +000032618 have_wmf='yes'
32619 else
32620 WMF_LIBS_DEPS=''
32621 WMF_CONFIG_LIBS=`libwmf-config --libs`
32622 for lib in xml2 expat freetype jpeg png z; do
32623 testlib="-l${lib}"
32624 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
32625 done
32626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
32627$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
32628if ${ac_cv_lib_wmf_wmf_api_create+:} false; then :
32629 $as_echo_n "(cached) " >&6
32630else
32631 ac_check_lib_save_LIBS=$LIBS
32632LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
32633cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32634/* end confdefs.h. */
32635
32636/* Override any GCC internal prototype to avoid an error.
32637 Use char because int might match the return type of a GCC
32638 builtin and then its argument prototype would still apply. */
32639#ifdef __cplusplus
32640extern "C"
32641#endif
32642char wmf_api_create ();
32643int
32644main ()
32645{
32646return wmf_api_create ();
32647 ;
32648 return 0;
32649}
32650_ACEOF
32651if ac_fn_c_try_link "$LINENO"; then :
32652 ac_cv_lib_wmf_wmf_api_create=yes
32653else
32654 ac_cv_lib_wmf_wmf_api_create=no
32655fi
32656rm -f core conftest.err conftest.$ac_objext \
32657 conftest$ac_exeext conftest.$ac_ext
32658LIBS=$ac_check_lib_save_LIBS
32659fi
32660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
32661$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
32662if test "x$ac_cv_lib_wmf_wmf_api_create" = xyes; then :
32663 have_libwmf='yes'
32664fi
32665
32666 if test "$have_libwmf" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032667
cristy8b350f62009-11-15 23:12:43 +000032668$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032669
cristy03f7cf92011-12-15 01:40:41 +000032670 WMF_LIBS='-lwmf'
32671 LIBS="$WMF_LIBS $LIBS"
32672 have_wmf='yes'
32673 else
32674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32675$as_echo "no -- some components failed test" >&6; }
32676 have_wmf='no (failed tests)'
32677 have_wmflite='no (failed tests)'
32678 LIBS="$OLIBS"
32679 WMF_LIBS=''
32680 fi
glennrp33e524b2011-08-24 17:41:57 +000032681 fi
cristy03f7cf92011-12-15 01:40:41 +000032682 fi
32683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
32684$as_echo_n "checking if WMF package is complete... " >&6; }
32685 if test "$have_wmf" = 'yes'; then
32686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32687$as_echo "yes" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032688 else
cristy03f7cf92011-12-15 01:40:41 +000032689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32690$as_echo "no" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032691 fi
cristy3ed852e2009-09-05 21:47:34 +000032692fi
cristy73bd4a52010-10-05 11:24:23 +000032693 if test "$have_wmf" = 'yes'; then
32694 WMF_DELEGATE_TRUE=
32695 WMF_DELEGATE_FALSE='#'
32696else
32697 WMF_DELEGATE_TRUE='#'
32698 WMF_DELEGATE_FALSE=
32699fi
32700
cristy3ed852e2009-09-05 21:47:34 +000032701
32702
32703
cristy81beccd2011-10-03 18:17:24 +000032704
32705
cristy3ed852e2009-09-05 21:47:34 +000032706#
32707# Check for XML delegate library.
32708#
32709
32710# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000032711if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032712 withval=$with_xml; with_xml=$withval
32713else
cristyfc3d0222012-02-07 15:05:57 +000032714 with_xml='yes'
cristy3ed852e2009-09-05 21:47:34 +000032715fi
32716
32717
cristy81beccd2011-10-03 18:17:24 +000032718if test "$with_xml" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000032719 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
32720fi
32721
cristy81beccd2011-10-03 18:17:24 +000032722have_xml='no'
32723XML_LIBS=''
32724if test "$with_xml" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000032725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32726$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
32728$as_echo_n "checking for XML... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32730$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032731 PERSIST_LDFLAGS=$LDFLAGS
32732 PERSIST_CPPFLAGS=$CPPFLAGS
32733 xml2_config=''
32734 # Extract the first word of "xml2-config", so it can be a program name with args.
32735set dummy xml2-config; ac_word=$2
32736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32737$as_echo_n "checking for $ac_word... " >&6; }
32738if ${ac_cv_path_xml2_config+:} false; then :
32739 $as_echo_n "(cached) " >&6
32740else
32741 case $xml2_config in
32742 [\\/]* | ?:[\\/]*)
32743 ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path.
32744 ;;
32745 *)
32746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32747for as_dir in $PATH
32748do
32749 IFS=$as_save_IFS
32750 test -z "$as_dir" && as_dir=.
32751 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy81beccd2011-10-03 18:17:24 +000032753 ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext"
32754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32755 break 2
32756 fi
32757done
32758 done
32759IFS=$as_save_IFS
32760
32761 ;;
32762esac
32763fi
32764xml2_config=$ac_cv_path_xml2_config
32765if test -n "$xml2_config"; then
32766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
32767$as_echo "$xml2_config" >&6; }
32768else
32769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32770$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032771fi
32772
cristy81beccd2011-10-03 18:17:24 +000032773 if test -n "$xml2_config"; then
32774 # Debian installs libxml headers under /usr/include/libxml2/libxml with
32775 # the shared library installed under /usr/lib, whereas the package
32776 # installs itself under $prefix/libxml and $prefix/lib.
cristy4a069772014-10-05 19:26:36 +000032777 xml2_prefix=`${xml2_config} --prefix`
cristy81beccd2011-10-03 18:17:24 +000032778 if test -d "${xml2_prefix}/include/libxml2"; then
32779 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
32780 fi
32781 if test "${xml2_prefix}" != '/usr'; then
32782 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
32783 fi
32784 fi
32785 failed=0
32786 passed=0
32787 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
32788if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
32789 passed=`expr $passed + 1`
32790else
32791 failed=`expr $failed + 1`
32792fi
32793
32794
32795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5
32796$as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; }
32797if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then :
32798 $as_echo_n "(cached) " >&6
32799else
32800 ac_check_lib_save_LIBS=$LIBS
32801LIBS="-lxml2 $LIBS"
32802cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32803/* end confdefs.h. */
32804
32805/* Override any GCC internal prototype to avoid an error.
32806 Use char because int might match the return type of a GCC
32807 builtin and then its argument prototype would still apply. */
32808#ifdef __cplusplus
32809extern "C"
32810#endif
32811char xmlSAXVersion ();
32812int
32813main ()
32814{
32815return xmlSAXVersion ();
32816 ;
32817 return 0;
32818}
32819_ACEOF
32820if ac_fn_c_try_link "$LINENO"; then :
32821 ac_cv_lib_xml2_xmlSAXVersion=yes
32822else
32823 ac_cv_lib_xml2_xmlSAXVersion=no
32824fi
32825rm -f core conftest.err conftest.$ac_objext \
32826 conftest$ac_exeext conftest.$ac_ext
32827LIBS=$ac_check_lib_save_LIBS
32828fi
32829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5
32830$as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; }
32831if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then :
32832 passed=`expr $passed + 1`
32833else
32834 failed=`expr $failed + 1`
32835fi
32836
32837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5
32838$as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; }
32839if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then :
32840 $as_echo_n "(cached) " >&6
32841else
32842 ac_check_lib_save_LIBS=$LIBS
32843LIBS="-lxml2 $LIBS"
32844cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32845/* end confdefs.h. */
32846
32847/* Override any GCC internal prototype to avoid an error.
32848 Use char because int might match the return type of a GCC
32849 builtin and then its argument prototype would still apply. */
32850#ifdef __cplusplus
32851extern "C"
32852#endif
32853char xmlParseChunk ();
32854int
32855main ()
32856{
32857return xmlParseChunk ();
32858 ;
32859 return 0;
32860}
32861_ACEOF
32862if ac_fn_c_try_link "$LINENO"; then :
32863 ac_cv_lib_xml2_xmlParseChunk=yes
32864else
32865 ac_cv_lib_xml2_xmlParseChunk=no
32866fi
32867rm -f core conftest.err conftest.$ac_objext \
32868 conftest$ac_exeext conftest.$ac_ext
32869LIBS=$ac_check_lib_save_LIBS
32870fi
32871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5
32872$as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; }
32873if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then :
32874 passed=`expr $passed + 1`
32875else
32876 failed=`expr $failed + 1`
32877fi
32878
32879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5
32880$as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; }
32881if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then :
32882 $as_echo_n "(cached) " >&6
32883else
32884 ac_check_lib_save_LIBS=$LIBS
32885LIBS="-lxml2 $LIBS"
32886cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32887/* end confdefs.h. */
32888
32889/* Override any GCC internal prototype to avoid an error.
32890 Use char because int might match the return type of a GCC
32891 builtin and then its argument prototype would still apply. */
32892#ifdef __cplusplus
32893extern "C"
32894#endif
32895char xmlCreatePushParserCtxt ();
32896int
32897main ()
32898{
32899return xmlCreatePushParserCtxt ();
32900 ;
32901 return 0;
32902}
32903_ACEOF
32904if ac_fn_c_try_link "$LINENO"; then :
32905 ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes
32906else
32907 ac_cv_lib_xml2_xmlCreatePushParserCtxt=no
32908fi
32909rm -f core conftest.err conftest.$ac_objext \
32910 conftest$ac_exeext conftest.$ac_ext
32911LIBS=$ac_check_lib_save_LIBS
32912fi
32913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5
32914$as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; }
32915if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then :
32916 passed=`expr $passed + 1`
32917else
32918 failed=`expr $failed + 1`
32919fi
32920
32921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
32922$as_echo_n "checking if XML package is complete... " >&6; }
32923 if test $passed -gt 0; then
32924 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000032925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32926$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032927 have_xml='no (failed tests)'
32928 LDFLAGS="$PERSIST_LDFLAGS"
32929 CPPFLAGS="$PERSIST_CPPFLAGS"
32930 else
32931 XML_LIBS='-lxml2'
32932 LIBS="$XML_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032933
cristy8b350f62009-11-15 23:12:43 +000032934$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032935
cristyad38abe2012-12-23 23:03:21 +000032936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32937$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032938 have_xml='yes'
32939 fi
32940 else
cristyad38abe2012-12-23 23:03:21 +000032941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32942$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032943 fi
32944fi
cristy73bd4a52010-10-05 11:24:23 +000032945 if test "$have_xml" = 'yes'; then
32946 XML_DELEGATE_TRUE=
32947 XML_DELEGATE_FALSE='#'
32948else
32949 XML_DELEGATE_TRUE='#'
32950 XML_DELEGATE_FALSE=
32951fi
32952
cristy3ed852e2009-09-05 21:47:34 +000032953
32954
32955
32956# Substitute compiler name to build/link PerlMagick
32957#
32958
32959
32960#
32961# Configure install Paths
32962#
cristy7def36a2011-10-28 19:04:41 +000032963
cristy2a11bef2011-10-28 18:33:11 +000032964# Path to ImageMagick header files
cristybdabdd62013-03-04 17:43:36 +000032965INCLUDE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristye52f12f2012-12-31 15:32:36 +000032966INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}"
32967DEFINE_INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}/"
cristy2a11bef2011-10-28 18:33:11 +000032968case "${build_os}" in
32969 mingw* )
32970 DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
32971 ;;
32972esac
32973
32974cat >>confdefs.h <<_ACEOF
32975#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH"
32976_ACEOF
32977
32978
cristy3ed852e2009-09-05 21:47:34 +000032979
cristye52f12f2012-12-31 15:32:36 +000032980# Path to ImageMagick header files (arch part)
32981INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
32982DEFINE_INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
32983case "${build_os}" in
32984 mingw* )
32985 DEFINE_INCLUDEARCH_PATH=`$WinPathScript "$DEFINE_INCLUDEARCH_PATH" 1`
32986 ;;
32987esac
32988
32989cat >>confdefs.h <<_ACEOF
32990#define INCLUDEARCH_PATH "$DEFINE_INCLUDE_PATH"
32991_ACEOF
32992
32993
32994
cristy3ed852e2009-09-05 21:47:34 +000032995# Subdirectory under lib to place ImageMagick lib files
32996LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
32997
32998cat >>confdefs.h <<_ACEOF
32999#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
33000_ACEOF
33001
33002
33003# Path to ImageMagick bin directory
33004EXECUTABLE_PATH="${BIN_DIR}"
33005DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
33006case "${build_os}" in
33007 mingw* )
33008 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
33009 ;;
33010esac
33011
33012cat >>confdefs.h <<_ACEOF
33013#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
33014_ACEOF
33015
33016
33017
33018# Path to ImageMagick lib
33019LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
33020DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
33021case "${build_os}" in
33022 mingw* )
33023 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
33024 ;;
33025esac
33026
33027cat >>confdefs.h <<_ACEOF
33028#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
33029_ACEOF
33030
33031
33032
cristy3ed852e2009-09-05 21:47:34 +000033033#
cristy8d0ff762013-03-10 20:33:28 +000033034# path to local binaries
33035if test "x$LIB_BIN_BASEDIRNAME" = "x"; then
33036 LIB_BIN_BASEDIRNAME="bin"
33037fi
33038
33039cat >>confdefs.h <<_ACEOF
33040#define LIB_BIN_BASEDIRNAME "$LIB_BIN_BASEDIRNAME"
33041_ACEOF
33042
33043
33044
33045if test "x$LIB_BIN_DIR" = "x"; then
33046 LIB_BIN_DIR=${LIB_BIN_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
33047fi
33048
33049
33050LIB_BIN_DIR_RELATIVE_PATH=$LIB_BIN_DIR
33051
33052LIB_BIN_DIR_PATH="${LIBRARY_PATH}/${LIB_BIN_DIR_RELATIVE_PATH}"
33053
33054
33055#
cristy01ff9f32012-12-01 18:15:29 +000033056# path to modules lib
33057if test "x$MODULES_BASEDIRNAME" = "x"; then
33058 MODULES_BASEDIRNAME="modules"
33059fi
cristy3ed852e2009-09-05 21:47:34 +000033060
33061cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000033062#define MODULES_BASEDIRNAME "$MODULES_BASEDIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000033063_ACEOF
33064
cristy01ff9f32012-12-01 18:15:29 +000033065
33066
33067if test "x$MODULES_DIRNAME" = "x"; then
cristy4bdbd342012-12-03 18:41:18 +000033068 MODULES_DIRNAME=${MODULES_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
33069else
cristy3ed852e2009-09-05 21:47:34 +000033070
33071cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000033072#define MODULES_DIRNAME "$MODULES_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000033073_ACEOF
33074
cristycf4a3c22012-12-02 21:47:25 +000033075fi
cristy01ff9f32012-12-01 18:15:29 +000033076
33077
cristy371d4812012-12-01 19:48:10 +000033078MODULES_RELATIVE_PATH="${MODULES_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000033079
33080MODULES_PATH="${LIBRARY_PATH}/${MODULES_RELATIVE_PATH}"
33081
33082
33083#
33084# path to coders lib
33085if test "x$CODER_DIRNAME" = "x"; then
33086 CODER_DIRNAME="coders"
33087fi
33088
33089cat >>confdefs.h <<_ACEOF
33090#define CODER_DIRNAME "$CODER_DIRNAME"
33091_ACEOF
33092
33093
33094
cristy371d4812012-12-01 19:48:10 +000033095CODER_RELATIVE_PATH="${CODER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000033096CODER_PATH="${MODULES_PATH}/${CODER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000033097
33098
33099#
33100# Subdirectory under lib to place ImageMagick filter module files
cristy01ff9f32012-12-01 18:15:29 +000033101#
33102# path to coders lib
33103if test "x$FILTER_DIRNAME" = "x"; then
33104 FILTER_DIRNAME="filters"
33105fi
cristy3ed852e2009-09-05 21:47:34 +000033106
33107cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000033108#define FILTER_DIRNAME "$FILTER_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000033109_ACEOF
33110
cristy3ed852e2009-09-05 21:47:34 +000033111
cristy3ed852e2009-09-05 21:47:34 +000033112
cristy371d4812012-12-01 19:48:10 +000033113FILTER_RELATIVE_PATH="${FILTER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000033114FILTER_PATH="${MODULES_PATH}/${FILTER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000033115
33116
33117#
33118# Path to ImageMagick documentation files
cristybdabdd62013-03-04 17:43:36 +000033119DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristyd55889c2011-03-27 00:50:24 +000033120DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
33121DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000033122case "${build_os}" in
33123 mingw* )
33124 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
33125 ;;
33126esac
33127
33128cat >>confdefs.h <<_ACEOF
33129#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
33130_ACEOF
33131
33132
33133
cristydd17feb2014-03-05 02:06:32 +000033134#
33135# Enable/Disable documentation
33136# Check whether --enable-docs was given.
33137if test "${enable_docs+set}" = set; then :
33138 enableval=$enable_docs; wantdocs=$enableval
33139else
cristy02272312014-03-07 00:55:25 +000033140 wantdocs=yes
cristydd17feb2014-03-05 02:06:32 +000033141fi
33142
cristy02272312014-03-07 00:55:25 +000033143 if test "$wantdocs" = "yes"; then
cristydd17feb2014-03-05 02:06:32 +000033144 INSTALL_DOC_TRUE=
33145 INSTALL_DOC_FALSE='#'
33146else
33147 INSTALL_DOC_TRUE='#'
33148 INSTALL_DOC_FALSE=
33149fi
33150
33151
cristy2a11bef2011-10-28 18:33:11 +000033152# Subdirectory to place architecture-dependent configuration files
cristybdabdd62013-03-04 17:43:36 +000033153CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristy45dbd322011-03-27 16:40:38 +000033154
33155cat >>confdefs.h <<_ACEOF
33156#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
33157_ACEOF
33158
cristy7def36a2011-10-28 19:04:41 +000033159CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
cristy45dbd322011-03-27 16:40:38 +000033160DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
33161case "${build_os}" in
33162 mingw* )
33163 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
33164 ;;
33165esac
33166
33167cat >>confdefs.h <<_ACEOF
33168#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
33169_ACEOF
33170
33171
33172
cristy2a11bef2011-10-28 18:33:11 +000033173# Subdirectory to place architecture-independent configuration files
cristybdabdd62013-03-04 17:43:36 +000033174SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristy3ed852e2009-09-05 21:47:34 +000033175
33176cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000033177#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000033178_ACEOF
33179
cristy670aa3c2011-11-03 00:54:00 +000033180SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
cristy4f820712011-04-01 12:35:43 +000033181DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000033182case "${build_os}" in
33183 mingw* )
cristy4f820712011-04-01 12:35:43 +000033184 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000033185 ;;
33186esac
33187
33188cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000033189#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000033190_ACEOF
33191
33192
33193
cristy54378032012-12-04 15:52:20 +000033194#
33195# Subdirectory to place architecture-dependent configuration files.
33196if test "x$SHAREARCH_BASEDIRNAME" = "x"; then
33197 SHAREARCH_BASEDIRNAME="config"
33198fi
cristy670aa3c2011-11-03 00:54:00 +000033199
33200cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000033201#define SHAREARCH_BASEDIRNAME "$SHAREARCH_BASEDIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000033202_ACEOF
33203
cristy54378032012-12-04 15:52:20 +000033204
33205
33206if test "x$SHAREARCH_DIRNAME" = "x"; then
33207 SHAREARCH_DIRNAME=${SHAREARCH_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
33208else
cristy670aa3c2011-11-03 00:54:00 +000033209
33210cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000033211#define SHAREARCH_DIRNAME "$SHAREARCH_DIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000033212_ACEOF
33213
cristy54378032012-12-04 15:52:20 +000033214fi
33215
33216
33217SHAREARCH_RELATIVE_PATH="${SHAREARCH_DIRNAME}"
33218
33219SHAREARCH_PATH="${LIBRARY_PATH}/${SHAREARCH_RELATIVE_PATH}"
cristy670aa3c2011-11-03 00:54:00 +000033220
33221
cristy3ed852e2009-09-05 21:47:34 +000033222#
33223# program_transform_name is formed for use in a Makefile, so create a
33224# modified version for use in a shell script.
33225configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
33226
33227# Default delegate definitions
cristyad38abe2012-12-23 23:03:21 +000033228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
33229$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000033230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000033231$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000033232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
33233$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000033234AutotraceDecodeDelegateDefault='autotrace'
cristy16b412d2014-12-15 11:09:48 +000033235BPGDecodeDelegateDefault='bpgdec'
33236BPGEncodeDelegateDefault='bpgenc'
cristy3d7f8062009-09-24 20:45:35 +000033237BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000033238BZIPDelegateDefault='bzip2'
33239BrowseDelegateDefault='xdg-open'
cristy3ed852e2009-09-05 21:47:34 +000033240CatDelegateDefault='cat'
33241DNGDecodeDelegateDefault='ufraw-batch'
cristy66f238e2014-05-16 12:21:48 +000033242DOCDecodeDelegateDefault='soffice'
cristy3ed852e2009-09-05 21:47:34 +000033243GVCDecodeDelegateDefault='dot'
33244DVIDecodeDelegateDefault='dvips'
33245EchoDelegateDefault='echo'
33246EditorDelegateDefault='xterm'
cristy3ed852e2009-09-05 21:47:34 +000033247ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
33248DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
33249MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
33250GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000033251HPGLDecodeDelegateDefault='hp2xx'
33252HTMLDecodeDelegateDefault='html2ps'
33253ILBMDecodeDelegateDefault='ilbmtoppm'
33254ILBMEncodeDelegateDefault='ppmtoilbm'
cristy71f53d52013-04-27 13:33:59 +000033255JXRDecodeDelegateDefault='JxrDecApp'
33256JXREncodeDelegateDefault='JxrEncApp'
cristy3ed852e2009-09-05 21:47:34 +000033257LPDelegateDefault='lp'
33258LPRDelegateDefault='lpr'
cristy3ed852e2009-09-05 21:47:34 +000033259LaunchDelegateDefault='gimp'
33260MANDelegateDefault='groff'
cristy81ab5af2013-10-06 18:28:39 +000033261MPEGDecodeDelegateDefault='avconv'
33262MPEGEncodeDelegateDefault='avconv'
cristy935c86e2010-06-05 23:50:07 +000033263MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000033264MVDelegateDefault='mv'
33265PCLDelegateDefault='pcl6'
33266PGPDecodeDelegateDefault='pgpv'
33267POVDelegateDefault='povray'
33268if test "$native_win32_build" = 'yes'; then
33269 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000033270elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000033271 PSDelegateDefault='gsc'
33272else
33273 PSDelegateDefault='gs'
33274fi
33275RLEEncodeDelegateDefault='rawtorle'
33276RMDelegateDefault='rm'
cristy5281e322012-02-09 21:12:45 +000033277RSVGDecodeDelegateDefault='rsvg-convert'
cristy3ed852e2009-09-05 21:47:34 +000033278SCANDecodeDelegateDefault='scanimage'
cristyec6934f2012-08-14 18:38:40 +000033279SVGDecodeDelegateDefault='inkscape'
cristy3ed852e2009-09-05 21:47:34 +000033280TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000033281UniconvertorDelegateDefault='uniconvertor'
cristy86e86092013-08-04 17:43:57 +000033282WebPDecodeDelegateDefault='dwebp'
33283WebPEncodeDelegateDefault='cwebp'
cristy3ed852e2009-09-05 21:47:34 +000033284WMFDecodeDelegateDefault='wmf2eps'
33285WWWDecodeDelegateDefault='curl'
33286XPSDelegateDefault='gxps'
33287ZipDelegateDefault='gzip'
33288
33289# Search for delegates
33290# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
33291set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033293$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033294if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033295 $as_echo_n "(cached) " >&6
33296else
33297 case $AutotraceDecodeDelegate in
33298 [\\/]* | ?:[\\/]*)
33299 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
33300 ;;
33301 *)
33302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33303for as_dir in $PATH
33304do
33305 IFS=$as_save_IFS
33306 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033307 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033309 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033311 break 2
33312 fi
33313done
cristy8b350f62009-11-15 23:12:43 +000033314 done
cristy3ed852e2009-09-05 21:47:34 +000033315IFS=$as_save_IFS
33316
33317 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
33318 ;;
33319esac
33320fi
33321AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
33322if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033324$as_echo "$AutotraceDecodeDelegate" >&6; }
33325else
cristy8b350f62009-11-15 23:12:43 +000033326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033327$as_echo "no" >&6; }
33328fi
33329
33330
cristy16b412d2014-12-15 11:09:48 +000033331# Extract the first word of ""$BGPDecodeDelegateDefault"", so it can be a program name with args.
33332set dummy "$BGPDecodeDelegateDefault"; ac_word=$2
33333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33334$as_echo_n "checking for $ac_word... " >&6; }
33335if ${ac_cv_path_BGPDecodeDelegate+:} false; then :
33336 $as_echo_n "(cached) " >&6
33337else
33338 case $BGPDecodeDelegate in
33339 [\\/]* | ?:[\\/]*)
33340 ac_cv_path_BGPDecodeDelegate="$BGPDecodeDelegate" # Let the user override the test with a path.
33341 ;;
33342 *)
33343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33344for as_dir in $PATH
33345do
33346 IFS=$as_save_IFS
33347 test -z "$as_dir" && as_dir=.
33348 for ac_exec_ext in '' $ac_executable_extensions; do
33349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33350 ac_cv_path_BGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33352 break 2
33353 fi
33354done
33355 done
33356IFS=$as_save_IFS
33357
33358 test -z "$ac_cv_path_BGPDecodeDelegate" && ac_cv_path_BGPDecodeDelegate=""$BGPDecodeDelegateDefault""
33359 ;;
33360esac
33361fi
33362BGPDecodeDelegate=$ac_cv_path_BGPDecodeDelegate
33363if test -n "$BGPDecodeDelegate"; then
33364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BGPDecodeDelegate" >&5
33365$as_echo "$BGPDecodeDelegate" >&6; }
33366else
33367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33368$as_echo "no" >&6; }
33369fi
33370
33371
33372# Extract the first word of ""$BGPEncodeDelegateDefault"", so it can be a program name with args.
33373set dummy "$BGPEncodeDelegateDefault"; ac_word=$2
33374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33375$as_echo_n "checking for $ac_word... " >&6; }
33376if ${ac_cv_path_BGPEncodeDelegate+:} false; then :
33377 $as_echo_n "(cached) " >&6
33378else
33379 case $BGPEncodeDelegate in
33380 [\\/]* | ?:[\\/]*)
33381 ac_cv_path_BGPEncodeDelegate="$BGPEncodeDelegate" # Let the user override the test with a path.
33382 ;;
33383 *)
33384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33385for as_dir in $PATH
33386do
33387 IFS=$as_save_IFS
33388 test -z "$as_dir" && as_dir=.
33389 for ac_exec_ext in '' $ac_executable_extensions; do
33390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33391 ac_cv_path_BGPEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33393 break 2
33394 fi
33395done
33396 done
33397IFS=$as_save_IFS
33398
33399 test -z "$ac_cv_path_BGPEncodeDelegate" && ac_cv_path_BGPEncodeDelegate=""$BGPEncodeDelegateDefault""
33400 ;;
33401esac
33402fi
33403BGPEncodeDelegate=$ac_cv_path_BGPEncodeDelegate
33404if test -n "$BGPEncodeDelegate"; then
33405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BGPEncodeDelegate" >&5
33406$as_echo "$BGPEncodeDelegate" >&6; }
33407else
33408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33409$as_echo "no" >&6; }
33410fi
33411
33412
cristy3ed852e2009-09-05 21:47:34 +000033413# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
33414set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033416$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033417if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033418 $as_echo_n "(cached) " >&6
33419else
33420 case $BlenderDecodeDelegate in
33421 [\\/]* | ?:[\\/]*)
33422 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
33423 ;;
33424 *)
33425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33426for as_dir in $PATH
33427do
33428 IFS=$as_save_IFS
33429 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033430 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033432 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033434 break 2
33435 fi
33436done
cristy8b350f62009-11-15 23:12:43 +000033437 done
cristy3ed852e2009-09-05 21:47:34 +000033438IFS=$as_save_IFS
33439
33440 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
33441 ;;
33442esac
33443fi
33444BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
33445if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033447$as_echo "$BlenderDecodeDelegate" >&6; }
33448else
cristy8b350f62009-11-15 23:12:43 +000033449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033450$as_echo "no" >&6; }
33451fi
33452
33453
33454# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
33455set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033457$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033458if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033459 $as_echo_n "(cached) " >&6
33460else
33461 case $BZIPDelegate in
33462 [\\/]* | ?:[\\/]*)
33463 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
33464 ;;
33465 *)
33466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33467for as_dir in $PATH
33468do
33469 IFS=$as_save_IFS
33470 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033471 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033473 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033475 break 2
33476 fi
33477done
cristy8b350f62009-11-15 23:12:43 +000033478 done
cristy3ed852e2009-09-05 21:47:34 +000033479IFS=$as_save_IFS
33480
33481 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
33482 ;;
33483esac
33484fi
33485BZIPDelegate=$ac_cv_path_BZIPDelegate
33486if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033488$as_echo "$BZIPDelegate" >&6; }
33489else
cristy8b350f62009-11-15 23:12:43 +000033490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033491$as_echo "no" >&6; }
33492fi
33493
33494
cristyc59f0e72012-08-27 12:59:33 +000033495for ac_prog in "$BrowseDelegateDefault" google-chrome firefox konqueror mozilla lynx
33496do
33497 # Extract the first word of "$ac_prog", so it can be a program name with args.
33498set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033500$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033501if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033502 $as_echo_n "(cached) " >&6
33503else
33504 case $BrowseDelegate in
33505 [\\/]* | ?:[\\/]*)
33506 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
33507 ;;
33508 *)
33509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33510for as_dir in $PATH
33511do
33512 IFS=$as_save_IFS
33513 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033514 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033516 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033518 break 2
33519 fi
33520done
cristy8b350f62009-11-15 23:12:43 +000033521 done
cristy3ed852e2009-09-05 21:47:34 +000033522IFS=$as_save_IFS
33523
cristy3ed852e2009-09-05 21:47:34 +000033524 ;;
33525esac
33526fi
33527BrowseDelegate=$ac_cv_path_BrowseDelegate
33528if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033530$as_echo "$BrowseDelegate" >&6; }
33531else
cristy8b350f62009-11-15 23:12:43 +000033532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033533$as_echo "no" >&6; }
33534fi
33535
33536
cristyc59f0e72012-08-27 12:59:33 +000033537 test -n "$BrowseDelegate" && break
33538done
33539test -n "$BrowseDelegate" || BrowseDelegate=""$BrowseDelegateDefault""
33540
cristy3ed852e2009-09-05 21:47:34 +000033541# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
33542set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033544$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033545if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033546 $as_echo_n "(cached) " >&6
33547else
33548 case $CatDelegate in
33549 [\\/]* | ?:[\\/]*)
33550 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
33551 ;;
33552 *)
33553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33554for as_dir in $PATH
33555do
33556 IFS=$as_save_IFS
33557 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033558 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033560 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033562 break 2
33563 fi
33564done
cristy8b350f62009-11-15 23:12:43 +000033565 done
cristy3ed852e2009-09-05 21:47:34 +000033566IFS=$as_save_IFS
33567
33568 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
33569 ;;
33570esac
33571fi
33572CatDelegate=$ac_cv_path_CatDelegate
33573if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033575$as_echo "$CatDelegate" >&6; }
33576else
cristy8b350f62009-11-15 23:12:43 +000033577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033578$as_echo "no" >&6; }
33579fi
33580
33581
33582# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
33583set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033585$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033586if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033587 $as_echo_n "(cached) " >&6
33588else
33589 case $DNGDecodeDelegate in
33590 [\\/]* | ?:[\\/]*)
33591 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
33592 ;;
33593 *)
33594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33595for as_dir in $PATH
33596do
33597 IFS=$as_save_IFS
33598 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033599 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033601 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033603 break 2
33604 fi
33605done
cristy8b350f62009-11-15 23:12:43 +000033606 done
cristy3ed852e2009-09-05 21:47:34 +000033607IFS=$as_save_IFS
33608
33609 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
33610 ;;
33611esac
33612fi
33613DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
33614if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033616$as_echo "$DNGDecodeDelegate" >&6; }
33617else
cristy8b350f62009-11-15 23:12:43 +000033618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033619$as_echo "no" >&6; }
33620fi
33621
33622
cristy66f238e2014-05-16 12:21:48 +000033623# Extract the first word of ""$DOCDecodeDelegateDefault"", so it can be a program name with args.
33624set dummy "$DOCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033626$as_echo_n "checking for $ac_word... " >&6; }
cristy66f238e2014-05-16 12:21:48 +000033627if ${ac_cv_path_DOCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033628 $as_echo_n "(cached) " >&6
33629else
cristy66f238e2014-05-16 12:21:48 +000033630 case $DOCDecodeDelegate in
cristy3ed852e2009-09-05 21:47:34 +000033631 [\\/]* | ?:[\\/]*)
cristy66f238e2014-05-16 12:21:48 +000033632 ac_cv_path_DOCDecodeDelegate="$DOCDecodeDelegate" # Let the user override the test with a path.
cristy3ed852e2009-09-05 21:47:34 +000033633 ;;
33634 *)
33635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33636for as_dir in $PATH
33637do
33638 IFS=$as_save_IFS
33639 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033640 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy66f238e2014-05-16 12:21:48 +000033642 ac_cv_path_DOCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033644 break 2
33645 fi
33646done
cristy8b350f62009-11-15 23:12:43 +000033647 done
cristy3ed852e2009-09-05 21:47:34 +000033648IFS=$as_save_IFS
33649
cristy66f238e2014-05-16 12:21:48 +000033650 test -z "$ac_cv_path_DOCDecodeDelegate" && ac_cv_path_DOCDecodeDelegate=""$DOCDecodeDelegateDefault""
cristy3ed852e2009-09-05 21:47:34 +000033651 ;;
33652esac
33653fi
cristy66f238e2014-05-16 12:21:48 +000033654DOCDecodeDelegate=$ac_cv_path_DOCDecodeDelegate
33655if test -n "$DOCDecodeDelegate"; then
33656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOCDecodeDelegate" >&5
33657$as_echo "$DOCDecodeDelegate" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000033658else
cristy8b350f62009-11-15 23:12:43 +000033659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033660$as_echo "no" >&6; }
33661fi
33662
33663
33664# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
33665set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033667$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033668if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033669 $as_echo_n "(cached) " >&6
33670else
33671 case $DVIDecodeDelegate in
33672 [\\/]* | ?:[\\/]*)
33673 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
33674 ;;
33675 *)
33676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33677for as_dir in $PATH
33678do
33679 IFS=$as_save_IFS
33680 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033681 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033683 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033685 break 2
33686 fi
33687done
cristy8b350f62009-11-15 23:12:43 +000033688 done
cristy3ed852e2009-09-05 21:47:34 +000033689IFS=$as_save_IFS
33690
33691 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
33692 ;;
33693esac
33694fi
33695DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
33696if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033698$as_echo "$DVIDecodeDelegate" >&6; }
33699else
cristy8b350f62009-11-15 23:12:43 +000033700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033701$as_echo "no" >&6; }
33702fi
33703
33704
cristy3ed852e2009-09-05 21:47:34 +000033705# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
33706set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033708$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033709if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033710 $as_echo_n "(cached) " >&6
33711else
33712 case $ConvertDelegate in
33713 [\\/]* | ?:[\\/]*)
33714 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
33715 ;;
33716 *)
33717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33718for as_dir in $PATH
33719do
33720 IFS=$as_save_IFS
33721 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033722 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033724 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033726 break 2
33727 fi
33728done
cristy8b350f62009-11-15 23:12:43 +000033729 done
cristy3ed852e2009-09-05 21:47:34 +000033730IFS=$as_save_IFS
33731
33732 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
33733 ;;
33734esac
33735fi
33736ConvertDelegate=$ac_cv_path_ConvertDelegate
33737if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033739$as_echo "$ConvertDelegate" >&6; }
33740else
cristy8b350f62009-11-15 23:12:43 +000033741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033742$as_echo "no" >&6; }
33743fi
33744
33745
33746# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
33747set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033749$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033750if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033751 $as_echo_n "(cached) " >&6
33752else
33753 case $DisplayDelegate in
33754 [\\/]* | ?:[\\/]*)
33755 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
33756 ;;
33757 *)
33758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33759for as_dir in $PATH
33760do
33761 IFS=$as_save_IFS
33762 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033763 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033765 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033767 break 2
33768 fi
33769done
cristy8b350f62009-11-15 23:12:43 +000033770 done
cristy3ed852e2009-09-05 21:47:34 +000033771IFS=$as_save_IFS
33772
33773 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
33774 ;;
33775esac
33776fi
33777DisplayDelegate=$ac_cv_path_DisplayDelegate
33778if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033780$as_echo "$DisplayDelegate" >&6; }
33781else
cristy8b350f62009-11-15 23:12:43 +000033782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033783$as_echo "no" >&6; }
33784fi
33785
33786
cristy66f238e2014-05-16 12:21:48 +000033787# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
33788set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033790$as_echo_n "checking for $ac_word... " >&6; }
cristy66f238e2014-05-16 12:21:48 +000033791if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033792 $as_echo_n "(cached) " >&6
33793else
cristy66f238e2014-05-16 12:21:48 +000033794 case $EchoDelegate in
cristy3ed852e2009-09-05 21:47:34 +000033795 [\\/]* | ?:[\\/]*)
cristy66f238e2014-05-16 12:21:48 +000033796 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
cristy3ed852e2009-09-05 21:47:34 +000033797 ;;
33798 *)
33799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33800for as_dir in $PATH
33801do
33802 IFS=$as_save_IFS
33803 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033804 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy66f238e2014-05-16 12:21:48 +000033806 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033808 break 2
33809 fi
33810done
cristy8b350f62009-11-15 23:12:43 +000033811 done
cristy3ed852e2009-09-05 21:47:34 +000033812IFS=$as_save_IFS
33813
cristy66f238e2014-05-16 12:21:48 +000033814 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
cristy3ed852e2009-09-05 21:47:34 +000033815 ;;
33816esac
33817fi
cristy66f238e2014-05-16 12:21:48 +000033818EchoDelegate=$ac_cv_path_EchoDelegate
33819if test -n "$EchoDelegate"; then
33820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
33821$as_echo "$EchoDelegate" >&6; }
33822else
33823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33824$as_echo "no" >&6; }
33825fi
33826
33827
33828# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
33829set dummy "$EditorDelegateDefault"; ac_word=$2
33830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33831$as_echo_n "checking for $ac_word... " >&6; }
33832if ${ac_cv_path_EditorDelegate+:} false; then :
33833 $as_echo_n "(cached) " >&6
33834else
33835 case $EditorDelegate in
33836 [\\/]* | ?:[\\/]*)
33837 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
33838 ;;
33839 *)
33840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33841for as_dir in $PATH
33842do
33843 IFS=$as_save_IFS
33844 test -z "$as_dir" && as_dir=.
33845 for ac_exec_ext in '' $ac_executable_extensions; do
33846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33847 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
33848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33849 break 2
33850 fi
33851done
33852 done
33853IFS=$as_save_IFS
33854
33855 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
33856 ;;
33857esac
33858fi
33859EditorDelegate=$ac_cv_path_EditorDelegate
33860if test -n "$EditorDelegate"; then
33861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
33862$as_echo "$EditorDelegate" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000033863else
cristy8b350f62009-11-15 23:12:43 +000033864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033865$as_echo "no" >&6; }
33866fi
33867
33868
33869# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
33870set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033872$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033873if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033874 $as_echo_n "(cached) " >&6
33875else
33876 case $GnuplotDecodeDelegate in
33877 [\\/]* | ?:[\\/]*)
33878 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
33879 ;;
33880 *)
33881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33882for as_dir in $PATH
33883do
33884 IFS=$as_save_IFS
33885 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033886 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033888 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033890 break 2
33891 fi
33892done
cristy8b350f62009-11-15 23:12:43 +000033893 done
cristy3ed852e2009-09-05 21:47:34 +000033894IFS=$as_save_IFS
33895
33896 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
33897 ;;
33898esac
33899fi
33900GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
33901if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033903$as_echo "$GnuplotDecodeDelegate" >&6; }
33904else
cristy8b350f62009-11-15 23:12:43 +000033905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033906$as_echo "no" >&6; }
33907fi
33908
33909
cristy66f238e2014-05-16 12:21:48 +000033910# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
33911set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
33912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33913$as_echo_n "checking for $ac_word... " >&6; }
33914if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
33915 $as_echo_n "(cached) " >&6
33916else
33917 case $GVCDecodeDelegate in
33918 [\\/]* | ?:[\\/]*)
33919 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
33920 ;;
33921 *)
33922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33923for as_dir in $PATH
33924do
33925 IFS=$as_save_IFS
33926 test -z "$as_dir" && as_dir=.
33927 for ac_exec_ext in '' $ac_executable_extensions; do
33928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33929 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33931 break 2
33932 fi
33933done
33934 done
33935IFS=$as_save_IFS
33936
33937 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
33938 ;;
33939esac
33940fi
33941GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
33942if test -n "$GVCDecodeDelegate"; then
33943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
33944$as_echo "$GVCDecodeDelegate" >&6; }
33945else
33946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33947$as_echo "no" >&6; }
33948fi
33949
33950
cristy3ed852e2009-09-05 21:47:34 +000033951# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
33952set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033954$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033955if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033956 $as_echo_n "(cached) " >&6
33957else
33958 case $HPGLDecodeDelegate in
33959 [\\/]* | ?:[\\/]*)
33960 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
33961 ;;
33962 *)
33963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33964for as_dir in $PATH
33965do
33966 IFS=$as_save_IFS
33967 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033968 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033970 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033972 break 2
33973 fi
33974done
cristy8b350f62009-11-15 23:12:43 +000033975 done
cristy3ed852e2009-09-05 21:47:34 +000033976IFS=$as_save_IFS
33977
33978 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
33979 ;;
33980esac
33981fi
33982HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
33983if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033985$as_echo "$HPGLDecodeDelegate" >&6; }
33986else
cristy8b350f62009-11-15 23:12:43 +000033987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033988$as_echo "no" >&6; }
33989fi
33990
33991
33992# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
33993set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033995$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033996if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033997 $as_echo_n "(cached) " >&6
33998else
33999 case $HTMLDecodeDelegate in
34000 [\\/]* | ?:[\\/]*)
34001 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
34002 ;;
34003 *)
34004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34005for as_dir in $PATH
34006do
34007 IFS=$as_save_IFS
34008 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034009 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034011 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034013 break 2
34014 fi
34015done
cristy8b350f62009-11-15 23:12:43 +000034016 done
cristy3ed852e2009-09-05 21:47:34 +000034017IFS=$as_save_IFS
34018
34019 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
34020 ;;
34021esac
34022fi
34023HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
34024if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034026$as_echo "$HTMLDecodeDelegate" >&6; }
34027else
cristy8b350f62009-11-15 23:12:43 +000034028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034029$as_echo "no" >&6; }
34030fi
34031
34032
34033# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
34034set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034036$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034037if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034038 $as_echo_n "(cached) " >&6
34039else
34040 case $ILBMDecodeDelegate in
34041 [\\/]* | ?:[\\/]*)
34042 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
34043 ;;
34044 *)
34045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34046for as_dir in $PATH
34047do
34048 IFS=$as_save_IFS
34049 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034050 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034052 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034054 break 2
34055 fi
34056done
cristy8b350f62009-11-15 23:12:43 +000034057 done
cristy3ed852e2009-09-05 21:47:34 +000034058IFS=$as_save_IFS
34059
34060 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
34061 ;;
34062esac
34063fi
34064ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
34065if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034067$as_echo "$ILBMDecodeDelegate" >&6; }
34068else
cristy8b350f62009-11-15 23:12:43 +000034069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034070$as_echo "no" >&6; }
34071fi
34072
34073
34074# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
34075set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034077$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034078if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034079 $as_echo_n "(cached) " >&6
34080else
34081 case $ILBMEncodeDelegate in
34082 [\\/]* | ?:[\\/]*)
34083 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
34084 ;;
34085 *)
34086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34087for as_dir in $PATH
34088do
34089 IFS=$as_save_IFS
34090 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034091 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034093 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034095 break 2
34096 fi
34097done
cristy8b350f62009-11-15 23:12:43 +000034098 done
cristy3ed852e2009-09-05 21:47:34 +000034099IFS=$as_save_IFS
34100
34101 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
34102 ;;
34103esac
34104fi
34105ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
34106if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034108$as_echo "$ILBMEncodeDelegate" >&6; }
34109else
cristy8b350f62009-11-15 23:12:43 +000034110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034111$as_echo "no" >&6; }
34112fi
34113
34114
cristy71f53d52013-04-27 13:33:59 +000034115# Extract the first word of ""$JXRDecodeDelegateDefault"", so it can be a program name with args.
34116set dummy "$JXRDecodeDelegateDefault"; ac_word=$2
34117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34118$as_echo_n "checking for $ac_word... " >&6; }
34119if ${ac_cv_path_JXRDecodeDelegate+:} false; then :
34120 $as_echo_n "(cached) " >&6
34121else
34122 case $JXRDecodeDelegate in
34123 [\\/]* | ?:[\\/]*)
34124 ac_cv_path_JXRDecodeDelegate="$JXRDecodeDelegate" # Let the user override the test with a path.
34125 ;;
34126 *)
34127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34128for as_dir in $PATH
34129do
34130 IFS=$as_save_IFS
34131 test -z "$as_dir" && as_dir=.
34132 for ac_exec_ext in '' $ac_executable_extensions; do
34133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34134 ac_cv_path_JXRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34136 break 2
34137 fi
34138done
34139 done
34140IFS=$as_save_IFS
34141
34142 test -z "$ac_cv_path_JXRDecodeDelegate" && ac_cv_path_JXRDecodeDelegate=""$JXRDecodeDelegateDefault""
34143 ;;
34144esac
34145fi
34146JXRDecodeDelegate=$ac_cv_path_JXRDecodeDelegate
34147if test -n "$JXRDecodeDelegate"; then
34148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXRDecodeDelegate" >&5
34149$as_echo "$JXRDecodeDelegate" >&6; }
34150else
34151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34152$as_echo "no" >&6; }
34153fi
34154
34155
34156# Extract the first word of ""$JXREncodeDelegateDefault"", so it can be a program name with args.
34157set dummy "$JXREncodeDelegateDefault"; ac_word=$2
34158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34159$as_echo_n "checking for $ac_word... " >&6; }
34160if ${ac_cv_path_JXREncodeDelegate+:} false; then :
34161 $as_echo_n "(cached) " >&6
34162else
34163 case $JXREncodeDelegate in
34164 [\\/]* | ?:[\\/]*)
34165 ac_cv_path_JXREncodeDelegate="$JXREncodeDelegate" # Let the user override the test with a path.
34166 ;;
34167 *)
34168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34169for as_dir in $PATH
34170do
34171 IFS=$as_save_IFS
34172 test -z "$as_dir" && as_dir=.
34173 for ac_exec_ext in '' $ac_executable_extensions; do
34174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34175 ac_cv_path_JXREncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34177 break 2
34178 fi
34179done
34180 done
34181IFS=$as_save_IFS
34182
34183 test -z "$ac_cv_path_JXREncodeDelegate" && ac_cv_path_JXREncodeDelegate=""$JXREncodeDelegateDefault""
34184 ;;
34185esac
34186fi
34187JXREncodeDelegate=$ac_cv_path_JXREncodeDelegate
34188if test -n "$JXREncodeDelegate"; then
34189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXREncodeDelegate" >&5
34190$as_echo "$JXREncodeDelegate" >&6; }
34191else
34192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34193$as_echo "no" >&6; }
34194fi
34195
34196
cristy3ed852e2009-09-05 21:47:34 +000034197# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
34198set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034200$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034201if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034202 $as_echo_n "(cached) " >&6
34203else
34204 case $LPDelegate in
34205 [\\/]* | ?:[\\/]*)
34206 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
34207 ;;
34208 *)
34209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34210for as_dir in $PATH
34211do
34212 IFS=$as_save_IFS
34213 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034214 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034216 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034218 break 2
34219 fi
34220done
cristy8b350f62009-11-15 23:12:43 +000034221 done
cristy3ed852e2009-09-05 21:47:34 +000034222IFS=$as_save_IFS
34223
34224 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
34225 ;;
34226esac
34227fi
34228LPDelegate=$ac_cv_path_LPDelegate
34229if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034231$as_echo "$LPDelegate" >&6; }
34232else
cristy8b350f62009-11-15 23:12:43 +000034233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034234$as_echo "no" >&6; }
34235fi
34236
34237
34238# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
34239set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034241$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034242if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034243 $as_echo_n "(cached) " >&6
34244else
34245 case $LPRDelegate in
34246 [\\/]* | ?:[\\/]*)
34247 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
34248 ;;
34249 *)
34250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34251for as_dir in $PATH
34252do
34253 IFS=$as_save_IFS
34254 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034255 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034257 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034259 break 2
34260 fi
34261done
cristy8b350f62009-11-15 23:12:43 +000034262 done
cristy3ed852e2009-09-05 21:47:34 +000034263IFS=$as_save_IFS
34264
34265 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
34266 ;;
34267esac
34268fi
34269LPRDelegate=$ac_cv_path_LPRDelegate
34270if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034272$as_echo "$LPRDelegate" >&6; }
34273else
cristy8b350f62009-11-15 23:12:43 +000034274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034275$as_echo "no" >&6; }
34276fi
34277
34278
cristy3ed852e2009-09-05 21:47:34 +000034279# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
34280set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034282$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034283if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034284 $as_echo_n "(cached) " >&6
34285else
34286 case $LaunchDelegate in
34287 [\\/]* | ?:[\\/]*)
34288 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
34289 ;;
34290 *)
34291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34292for as_dir in $PATH
34293do
34294 IFS=$as_save_IFS
34295 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034296 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034298 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034300 break 2
34301 fi
34302done
cristy8b350f62009-11-15 23:12:43 +000034303 done
cristy3ed852e2009-09-05 21:47:34 +000034304IFS=$as_save_IFS
34305
34306 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
34307 ;;
34308esac
34309fi
34310LaunchDelegate=$ac_cv_path_LaunchDelegate
34311if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034313$as_echo "$LaunchDelegate" >&6; }
34314else
cristy8b350f62009-11-15 23:12:43 +000034315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034316$as_echo "no" >&6; }
34317fi
34318
34319
34320# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
34321set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034323$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034324if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034325 $as_echo_n "(cached) " >&6
34326else
34327 case $MANDelegate in
34328 [\\/]* | ?:[\\/]*)
34329 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
34330 ;;
34331 *)
34332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34333for as_dir in $PATH
34334do
34335 IFS=$as_save_IFS
34336 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034337 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034339 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034341 break 2
34342 fi
34343done
cristy8b350f62009-11-15 23:12:43 +000034344 done
cristy3ed852e2009-09-05 21:47:34 +000034345IFS=$as_save_IFS
34346
34347 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
34348 ;;
34349esac
34350fi
34351MANDelegate=$ac_cv_path_MANDelegate
34352if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034354$as_echo "$MANDelegate" >&6; }
34355else
cristy8b350f62009-11-15 23:12:43 +000034356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034357$as_echo "no" >&6; }
34358fi
34359
34360
cristy66f238e2014-05-16 12:21:48 +000034361# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
34362set dummy "$MogrifyDelegateDefault"; ac_word=$2
34363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34364$as_echo_n "checking for $ac_word... " >&6; }
34365if ${ac_cv_path_MogrifyDelegate+:} false; then :
34366 $as_echo_n "(cached) " >&6
34367else
34368 case $MogrifyDelegate in
34369 [\\/]* | ?:[\\/]*)
34370 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
34371 ;;
34372 *)
34373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34374for as_dir in $PATH
34375do
34376 IFS=$as_save_IFS
34377 test -z "$as_dir" && as_dir=.
34378 for ac_exec_ext in '' $ac_executable_extensions; do
34379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34380 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
34381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34382 break 2
34383 fi
34384done
34385 done
34386IFS=$as_save_IFS
34387
34388 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
34389 ;;
34390esac
34391fi
34392MogrifyDelegate=$ac_cv_path_MogrifyDelegate
34393if test -n "$MogrifyDelegate"; then
34394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
34395$as_echo "$MogrifyDelegate" >&6; }
34396else
34397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34398$as_echo "no" >&6; }
34399fi
34400
34401
cristy3ed852e2009-09-05 21:47:34 +000034402# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
34403set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034405$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034406if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034407 $as_echo_n "(cached) " >&6
34408else
34409 case $MPEGDecodeDelegate in
34410 [\\/]* | ?:[\\/]*)
34411 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
34412 ;;
34413 *)
34414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34415for as_dir in $PATH
34416do
34417 IFS=$as_save_IFS
34418 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034419 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034421 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034423 break 2
34424 fi
34425done
cristy8b350f62009-11-15 23:12:43 +000034426 done
cristy3ed852e2009-09-05 21:47:34 +000034427IFS=$as_save_IFS
34428
34429 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
34430 ;;
34431esac
34432fi
34433MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
34434if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034436$as_echo "$MPEGDecodeDelegate" >&6; }
34437else
cristy8b350f62009-11-15 23:12:43 +000034438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034439$as_echo "no" >&6; }
34440fi
34441
34442
cristy058d15f2014-08-21 18:53:03 +000034443if test "$MPEGDecodeDelegate" = "$MPEGDecodeDelegateDefault" ; then
cristy81ab5af2013-10-06 18:28:39 +000034444 MPEGDecodeDelegateDefault='ffmpeg'
34445 # Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
34446set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
34447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34448$as_echo_n "checking for $ac_word... " >&6; }
34449if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
34450 $as_echo_n "(cached) " >&6
34451else
34452 case $MPEGDecodeDelegate in
34453 [\\/]* | ?:[\\/]*)
34454 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
34455 ;;
34456 *)
34457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34458for as_dir in $PATH
34459do
34460 IFS=$as_save_IFS
34461 test -z "$as_dir" && as_dir=.
34462 for ac_exec_ext in '' $ac_executable_extensions; do
34463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34464 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34466 break 2
34467 fi
34468done
34469 done
34470IFS=$as_save_IFS
34471
34472 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
34473 ;;
34474esac
34475fi
34476MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
34477if test -n "$MPEGDecodeDelegate"; then
34478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
34479$as_echo "$MPEGDecodeDelegate" >&6; }
34480else
34481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34482$as_echo "no" >&6; }
34483fi
34484
34485
34486fi;
cristy3ed852e2009-09-05 21:47:34 +000034487# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
34488set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034490$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034491if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034492 $as_echo_n "(cached) " >&6
34493else
34494 case $MPEGEncodeDelegate in
34495 [\\/]* | ?:[\\/]*)
34496 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
34497 ;;
34498 *)
34499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34500for as_dir in $PATH
34501do
34502 IFS=$as_save_IFS
34503 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034504 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034506 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034508 break 2
34509 fi
34510done
cristy8b350f62009-11-15 23:12:43 +000034511 done
cristy3ed852e2009-09-05 21:47:34 +000034512IFS=$as_save_IFS
34513
34514 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
34515 ;;
34516esac
34517fi
34518MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
34519if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034521$as_echo "$MPEGEncodeDelegate" >&6; }
34522else
cristy8b350f62009-11-15 23:12:43 +000034523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034524$as_echo "no" >&6; }
34525fi
34526
34527
cristy058d15f2014-08-21 18:53:03 +000034528if test "$MPEGEncodeDelegate" = "$MPEGEncodeDelegateDefault" ; then
cristy81ab5af2013-10-06 18:28:39 +000034529 MPEGEncodeDelegateDefault='ffmpeg'
34530 # Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
34531set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
34532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34533$as_echo_n "checking for $ac_word... " >&6; }
34534if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
34535 $as_echo_n "(cached) " >&6
34536else
34537 case $MPEGEncodeDelegate in
34538 [\\/]* | ?:[\\/]*)
34539 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
34540 ;;
34541 *)
34542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34543for as_dir in $PATH
34544do
34545 IFS=$as_save_IFS
34546 test -z "$as_dir" && as_dir=.
34547 for ac_exec_ext in '' $ac_executable_extensions; do
34548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34549 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34551 break 2
34552 fi
34553done
34554 done
34555IFS=$as_save_IFS
34556
34557 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
34558 ;;
34559esac
34560fi
34561MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
34562if test -n "$MPEGEncodeDelegate"; then
34563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
34564$as_echo "$MPEGEncodeDelegate" >&6; }
34565else
34566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34567$as_echo "no" >&6; }
34568fi
34569
34570
34571fi;
cristy935c86e2010-06-05 23:50:07 +000034572# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
34573set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
34574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34575$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034576if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000034577 $as_echo_n "(cached) " >&6
34578else
34579 case $MrSIDDecodeDelegate in
34580 [\\/]* | ?:[\\/]*)
34581 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
34582 ;;
34583 *)
34584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34585for as_dir in $PATH
34586do
34587 IFS=$as_save_IFS
34588 test -z "$as_dir" && as_dir=.
34589 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy935c86e2010-06-05 23:50:07 +000034591 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34593 break 2
34594 fi
34595done
34596 done
34597IFS=$as_save_IFS
34598
34599 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
34600 ;;
34601esac
34602fi
34603MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
34604if test -n "$MrSIDDecodeDelegate"; then
34605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
34606$as_echo "$MrSIDDecodeDelegate" >&6; }
34607else
34608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34609$as_echo "no" >&6; }
34610fi
34611
34612
cristy3ed852e2009-09-05 21:47:34 +000034613# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
34614set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034616$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034617if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034618 $as_echo_n "(cached) " >&6
34619else
34620 case $MVDelegate in
34621 [\\/]* | ?:[\\/]*)
34622 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
34623 ;;
34624 *)
34625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34626for as_dir in $PATH
34627do
34628 IFS=$as_save_IFS
34629 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034630 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034632 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034634 break 2
34635 fi
34636done
cristy8b350f62009-11-15 23:12:43 +000034637 done
cristy3ed852e2009-09-05 21:47:34 +000034638IFS=$as_save_IFS
34639
34640 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
34641 ;;
34642esac
34643fi
34644MVDelegate=$ac_cv_path_MVDelegate
34645if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034647$as_echo "$MVDelegate" >&6; }
34648else
cristy8b350f62009-11-15 23:12:43 +000034649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034650$as_echo "no" >&6; }
34651fi
34652
34653
34654# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
34655set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034657$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034658if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034659 $as_echo_n "(cached) " >&6
34660else
34661 case $PCLDelegate in
34662 [\\/]* | ?:[\\/]*)
34663 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
34664 ;;
34665 *)
34666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34667for as_dir in $PATH
34668do
34669 IFS=$as_save_IFS
34670 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034671 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034673 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034675 break 2
34676 fi
34677done
cristy8b350f62009-11-15 23:12:43 +000034678 done
cristy3ed852e2009-09-05 21:47:34 +000034679IFS=$as_save_IFS
34680
34681 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
34682 ;;
34683esac
34684fi
34685PCLDelegate=$ac_cv_path_PCLDelegate
34686if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034688$as_echo "$PCLDelegate" >&6; }
34689else
cristy8b350f62009-11-15 23:12:43 +000034690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034691$as_echo "no" >&6; }
34692fi
34693
34694
34695# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
34696set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034698$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034699if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034700 $as_echo_n "(cached) " >&6
34701else
34702 case $PGPDecodeDelegate in
34703 [\\/]* | ?:[\\/]*)
34704 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
34705 ;;
34706 *)
34707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34708for as_dir in $PATH
34709do
34710 IFS=$as_save_IFS
34711 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034712 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034714 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034716 break 2
34717 fi
34718done
cristy8b350f62009-11-15 23:12:43 +000034719 done
cristy3ed852e2009-09-05 21:47:34 +000034720IFS=$as_save_IFS
34721
34722 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
34723 ;;
34724esac
34725fi
34726PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
34727if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034729$as_echo "$PGPDecodeDelegate" >&6; }
34730else
cristy8b350f62009-11-15 23:12:43 +000034731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034732$as_echo "no" >&6; }
34733fi
34734
34735
34736# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
34737set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034739$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034740if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034741 $as_echo_n "(cached) " >&6
34742else
34743 case $POVDelegate in
34744 [\\/]* | ?:[\\/]*)
34745 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
34746 ;;
34747 *)
34748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34749for as_dir in $PATH
34750do
34751 IFS=$as_save_IFS
34752 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034753 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034755 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034757 break 2
34758 fi
34759done
cristy8b350f62009-11-15 23:12:43 +000034760 done
cristy3ed852e2009-09-05 21:47:34 +000034761IFS=$as_save_IFS
34762
34763 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
34764 ;;
34765esac
34766fi
34767POVDelegate=$ac_cv_path_POVDelegate
34768if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034770$as_echo "$POVDelegate" >&6; }
34771else
cristy8b350f62009-11-15 23:12:43 +000034772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034773$as_echo "no" >&6; }
34774fi
34775
34776
34777for ac_prog in gsx gsc "$PSDelegateDefault"
34778do
34779 # Extract the first word of "$ac_prog", so it can be a program name with args.
34780set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034782$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034783if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034784 $as_echo_n "(cached) " >&6
34785else
34786 case $PSDelegate in
34787 [\\/]* | ?:[\\/]*)
34788 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
34789 ;;
34790 *)
34791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34792for as_dir in $PATH
34793do
34794 IFS=$as_save_IFS
34795 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034796 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034798 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034800 break 2
34801 fi
34802done
cristy8b350f62009-11-15 23:12:43 +000034803 done
cristy3ed852e2009-09-05 21:47:34 +000034804IFS=$as_save_IFS
34805
34806 ;;
34807esac
34808fi
34809PSDelegate=$ac_cv_path_PSDelegate
34810if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034812$as_echo "$PSDelegate" >&6; }
34813else
cristy8b350f62009-11-15 23:12:43 +000034814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034815$as_echo "no" >&6; }
34816fi
34817
34818
34819 test -n "$PSDelegate" && break
34820done
34821test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
34822
34823# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
34824set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034826$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034827if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034828 $as_echo_n "(cached) " >&6
34829else
34830 case $RLEEncodeDelegate in
34831 [\\/]* | ?:[\\/]*)
34832 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
34833 ;;
34834 *)
34835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34836for as_dir in $PATH
34837do
34838 IFS=$as_save_IFS
34839 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034840 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034842 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034844 break 2
34845 fi
34846done
cristy8b350f62009-11-15 23:12:43 +000034847 done
cristy3ed852e2009-09-05 21:47:34 +000034848IFS=$as_save_IFS
34849
34850 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
34851 ;;
34852esac
34853fi
34854RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
34855if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034857$as_echo "$RLEEncodeDelegate" >&6; }
34858else
cristy8b350f62009-11-15 23:12:43 +000034859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034860$as_echo "no" >&6; }
34861fi
34862
34863
34864# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
34865set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034867$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034868if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034869 $as_echo_n "(cached) " >&6
34870else
34871 case $RMDelegate in
34872 [\\/]* | ?:[\\/]*)
34873 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
34874 ;;
34875 *)
34876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34877for as_dir in $PATH
34878do
34879 IFS=$as_save_IFS
34880 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034881 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034883 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034885 break 2
34886 fi
34887done
cristy8b350f62009-11-15 23:12:43 +000034888 done
cristy3ed852e2009-09-05 21:47:34 +000034889IFS=$as_save_IFS
34890
34891 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
34892 ;;
34893esac
34894fi
34895RMDelegate=$ac_cv_path_RMDelegate
34896if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034898$as_echo "$RMDelegate" >&6; }
34899else
cristy8b350f62009-11-15 23:12:43 +000034900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034901$as_echo "no" >&6; }
34902fi
34903
34904
cristy4689cf02010-02-17 21:15:45 +000034905# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
34906set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
34907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34908$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034909if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000034910 $as_echo_n "(cached) " >&6
34911else
34912 case $RSVGDecodeDelegate in
34913 [\\/]* | ?:[\\/]*)
34914 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
34915 ;;
34916 *)
34917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34918for as_dir in $PATH
34919do
34920 IFS=$as_save_IFS
34921 test -z "$as_dir" && as_dir=.
34922 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy4689cf02010-02-17 21:15:45 +000034924 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34926 break 2
34927 fi
34928done
34929 done
34930IFS=$as_save_IFS
34931
34932 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
34933 ;;
34934esac
34935fi
34936RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
34937if test -n "$RSVGDecodeDelegate"; then
34938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
34939$as_echo "$RSVGDecodeDelegate" >&6; }
34940else
34941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34942$as_echo "no" >&6; }
34943fi
34944
34945
cristy3ed852e2009-09-05 21:47:34 +000034946# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
34947set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034949$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034950if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034951 $as_echo_n "(cached) " >&6
34952else
34953 case $SCANDecodeDelegate in
34954 [\\/]* | ?:[\\/]*)
34955 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
34956 ;;
34957 *)
34958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34959for as_dir in $PATH
34960do
34961 IFS=$as_save_IFS
34962 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034963 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034965 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034967 break 2
34968 fi
34969done
cristy8b350f62009-11-15 23:12:43 +000034970 done
cristy3ed852e2009-09-05 21:47:34 +000034971IFS=$as_save_IFS
34972
34973 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
34974 ;;
34975esac
34976fi
34977SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
34978if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034980$as_echo "$SCANDecodeDelegate" >&6; }
34981else
cristy8b350f62009-11-15 23:12:43 +000034982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034983$as_echo "no" >&6; }
34984fi
34985
34986
cristyec6934f2012-08-14 18:38:40 +000034987# Extract the first word of ""$SVGDecodeDelegateDefault"", so it can be a program name with args.
34988set dummy "$SVGDecodeDelegateDefault"; ac_word=$2
34989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34990$as_echo_n "checking for $ac_word... " >&6; }
34991if ${ac_cv_path_SVGDecodeDelegate+:} false; then :
34992 $as_echo_n "(cached) " >&6
34993else
34994 case $SVGDecodeDelegate in
34995 [\\/]* | ?:[\\/]*)
34996 ac_cv_path_SVGDecodeDelegate="$SVGDecodeDelegate" # Let the user override the test with a path.
34997 ;;
34998 *)
34999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35000for as_dir in $PATH
35001do
35002 IFS=$as_save_IFS
35003 test -z "$as_dir" && as_dir=.
35004 for ac_exec_ext in '' $ac_executable_extensions; do
35005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35006 ac_cv_path_SVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
35007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35008 break 2
35009 fi
35010done
35011 done
35012IFS=$as_save_IFS
35013
35014 test -z "$ac_cv_path_SVGDecodeDelegate" && ac_cv_path_SVGDecodeDelegate=""$SVGDecodeDelegateDefault""
35015 ;;
35016esac
35017fi
35018SVGDecodeDelegate=$ac_cv_path_SVGDecodeDelegate
35019if test -n "$SVGDecodeDelegate"; then
35020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVGDecodeDelegate" >&5
35021$as_echo "$SVGDecodeDelegate" >&6; }
35022else
35023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35024$as_echo "no" >&6; }
35025fi
35026
35027
cristy3ed852e2009-09-05 21:47:34 +000035028# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
35029set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035031$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035032if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035033 $as_echo_n "(cached) " >&6
35034else
35035 case $TXTDelegate in
35036 [\\/]* | ?:[\\/]*)
35037 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
35038 ;;
35039 *)
35040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35041for as_dir in $PATH
35042do
35043 IFS=$as_save_IFS
35044 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035045 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035047 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035049 break 2
35050 fi
35051done
cristy8b350f62009-11-15 23:12:43 +000035052 done
cristy3ed852e2009-09-05 21:47:34 +000035053IFS=$as_save_IFS
35054
35055 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
35056 ;;
35057esac
35058fi
35059TXTDelegate=$ac_cv_path_TXTDelegate
35060if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000035061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000035062$as_echo "$TXTDelegate" >&6; }
35063else
cristy8b350f62009-11-15 23:12:43 +000035064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035065$as_echo "no" >&6; }
35066fi
35067
35068
cristy5ac9ac82010-07-29 13:24:24 +000035069# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
35070set dummy "$UniconvertorDelegateDefault"; ac_word=$2
35071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35072$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035073if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000035074 $as_echo_n "(cached) " >&6
35075else
35076 case $UniconvertorDelegate in
35077 [\\/]* | ?:[\\/]*)
35078 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
35079 ;;
35080 *)
35081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35082for as_dir in $PATH
35083do
35084 IFS=$as_save_IFS
35085 test -z "$as_dir" && as_dir=.
35086 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy5ac9ac82010-07-29 13:24:24 +000035088 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
35089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35090 break 2
35091 fi
35092done
35093 done
35094IFS=$as_save_IFS
35095
35096 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
35097 ;;
35098esac
35099fi
35100UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
35101if test -n "$UniconvertorDelegate"; then
35102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
35103$as_echo "$UniconvertorDelegate" >&6; }
35104else
35105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35106$as_echo "no" >&6; }
35107fi
35108
35109
cristy86e86092013-08-04 17:43:57 +000035110# Extract the first word of ""$WebPDecodeDelegateDefault"", so it can be a program name with args.
35111set dummy "$WebPDecodeDelegateDefault"; ac_word=$2
35112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35113$as_echo_n "checking for $ac_word... " >&6; }
35114if ${ac_cv_path_WebPDecodeDelegate+:} false; then :
35115 $as_echo_n "(cached) " >&6
35116else
35117 case $WebPDecodeDelegate in
35118 [\\/]* | ?:[\\/]*)
35119 ac_cv_path_WebPDecodeDelegate="$WebPDecodeDelegate" # Let the user override the test with a path.
35120 ;;
35121 *)
35122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35123for as_dir in $PATH
35124do
35125 IFS=$as_save_IFS
35126 test -z "$as_dir" && as_dir=.
35127 for ac_exec_ext in '' $ac_executable_extensions; do
35128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35129 ac_cv_path_WebPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
35130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35131 break 2
35132 fi
35133done
35134 done
35135IFS=$as_save_IFS
35136
35137 test -z "$ac_cv_path_WebPDecodeDelegate" && ac_cv_path_WebPDecodeDelegate=""$WebPDecodeDelegateDefault""
35138 ;;
35139esac
35140fi
35141WebPDecodeDelegate=$ac_cv_path_WebPDecodeDelegate
35142if test -n "$WebPDecodeDelegate"; then
35143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WebPDecodeDelegate" >&5
35144$as_echo "$WebPDecodeDelegate" >&6; }
35145else
35146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35147$as_echo "no" >&6; }
35148fi
35149
35150
35151# Extract the first word of ""$WebPEncodeDelegateDefault"", so it can be a program name with args.
35152set dummy "$WebPEncodeDelegateDefault"; ac_word=$2
35153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35154$as_echo_n "checking for $ac_word... " >&6; }
35155if ${ac_cv_path_WebPEncodeDelegate+:} false; then :
35156 $as_echo_n "(cached) " >&6
35157else
35158 case $WebPEncodeDelegate in
35159 [\\/]* | ?:[\\/]*)
35160 ac_cv_path_WebPEncodeDelegate="$WebPEncodeDelegate" # Let the user override the test with a path.
35161 ;;
35162 *)
35163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35164for as_dir in $PATH
35165do
35166 IFS=$as_save_IFS
35167 test -z "$as_dir" && as_dir=.
35168 for ac_exec_ext in '' $ac_executable_extensions; do
35169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35170 ac_cv_path_WebPEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
35171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35172 break 2
35173 fi
35174done
35175 done
35176IFS=$as_save_IFS
35177
35178 test -z "$ac_cv_path_WebPEncodeDelegate" && ac_cv_path_WebPEncodeDelegate=""$WebPEncodeDelegateDefault""
35179 ;;
35180esac
35181fi
35182WebPEncodeDelegate=$ac_cv_path_WebPEncodeDelegate
35183if test -n "$WebPEncodeDelegate"; then
35184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WebPEncodeDelegate" >&5
35185$as_echo "$WebPEncodeDelegate" >&6; }
35186else
35187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35188$as_echo "no" >&6; }
35189fi
35190
35191
cristy3ed852e2009-09-05 21:47:34 +000035192# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
35193set dummy "$WMFDecodeDelegateDefault"; 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_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035197 $as_echo_n "(cached) " >&6
35198else
35199 case $WMFDecodeDelegate in
35200 [\\/]* | ?:[\\/]*)
35201 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
35202 ;;
35203 *)
35204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35205for as_dir in $PATH
35206do
35207 IFS=$as_save_IFS
35208 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035209 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035211 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035213 break 2
35214 fi
35215done
cristy8b350f62009-11-15 23:12:43 +000035216 done
cristy3ed852e2009-09-05 21:47:34 +000035217IFS=$as_save_IFS
35218
35219 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
35220 ;;
35221esac
35222fi
35223WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
35224if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000035225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000035226$as_echo "$WMFDecodeDelegate" >&6; }
35227else
cristy8b350f62009-11-15 23:12:43 +000035228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035229$as_echo "no" >&6; }
35230fi
35231
35232
35233# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
35234set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035236$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035237if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035238 $as_echo_n "(cached) " >&6
35239else
35240 case $WWWDecodeDelegate in
35241 [\\/]* | ?:[\\/]*)
35242 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
35243 ;;
35244 *)
35245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35246for as_dir in $PATH
35247do
35248 IFS=$as_save_IFS
35249 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035250 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035252 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035254 break 2
35255 fi
35256done
cristy8b350f62009-11-15 23:12:43 +000035257 done
cristy3ed852e2009-09-05 21:47:34 +000035258IFS=$as_save_IFS
35259
35260 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
35261 ;;
35262esac
35263fi
35264WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
35265if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000035266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000035267$as_echo "$WWWDecodeDelegate" >&6; }
35268else
cristy8b350f62009-11-15 23:12:43 +000035269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035270$as_echo "no" >&6; }
35271fi
35272
35273
35274# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
35275set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035277$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035278if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035279 $as_echo_n "(cached) " >&6
35280else
35281 case $XPSDelegate in
35282 [\\/]* | ?:[\\/]*)
35283 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
35284 ;;
35285 *)
35286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35287for as_dir in $PATH
35288do
35289 IFS=$as_save_IFS
35290 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035291 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035293 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035295 break 2
35296 fi
35297done
cristy8b350f62009-11-15 23:12:43 +000035298 done
cristy3ed852e2009-09-05 21:47:34 +000035299IFS=$as_save_IFS
35300
35301 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
35302 ;;
35303esac
35304fi
35305XPSDelegate=$ac_cv_path_XPSDelegate
35306if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000035307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000035308$as_echo "$XPSDelegate" >&6; }
35309else
cristy8b350f62009-11-15 23:12:43 +000035310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035311$as_echo "no" >&6; }
35312fi
35313
35314
35315# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
35316set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035318$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035319if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035320 $as_echo_n "(cached) " >&6
35321else
35322 case $ZipDelegate in
35323 [\\/]* | ?:[\\/]*)
35324 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
35325 ;;
35326 *)
35327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35328for as_dir in $PATH
35329do
35330 IFS=$as_save_IFS
35331 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035332 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035334 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035336 break 2
35337 fi
35338done
cristy8b350f62009-11-15 23:12:43 +000035339 done
cristy3ed852e2009-09-05 21:47:34 +000035340IFS=$as_save_IFS
35341
35342 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
35343 ;;
35344esac
35345fi
35346ZipDelegate=$ac_cv_path_ZipDelegate
35347if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000035348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000035349$as_echo "$ZipDelegate" >&6; }
35350else
cristy8b350f62009-11-15 23:12:43 +000035351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035352$as_echo "no" >&6; }
35353fi
35354
35355
35356
35357# Prefer lpr to lp; lp needs options tacked on.
35358if test "$LPRDelegate" != no; then
35359 PrintDelegate="$LPRDelegate"
35360else
35361 PrintDelegate="$LPDelegate -c -s"
35362fi
35363
35364
35365# Installed ImageMagick utiltity paths
35366ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
35367DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
35368MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
35369
35370# Set delegate booleans
cristy81ab5af2013-10-06 18:28:39 +000035371have_avconv='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_avconv='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000035372have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
35373have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
35374have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000035375have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000035376have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
35377have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000035378have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
35379
35380#
35381# Test for font directories
35382#
35383type_include_files=''
35384
cristy5a3dc992014-12-05 19:50:04 +000035385 Apple fonts.
35386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Apple fonts directory" >&5
35387$as_echo_n "checking for Apple fonts directory... " >&6; }
35388apple_font_dir=''
35389if test "${with_apple_font_dir}" != 'default'; then
35390 apple_font_dir="${with_apple_font_dir}/"
35391else
35392 for font_dir in '/Library/Fonts/'; do
35393 if test -f "${font_dir}Arial.ttf"; then
35394 apple_font_dir="${font_dir}"
35395 break 1
35396 fi
35397 done
35398fi
35399if test "${apple_font_dir}x" != 'x'; then
35400 type_include_files="${type_include_files} "'<include file="type-apple.xml" />'
35401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apple_font_dir" >&5
35402$as_echo "$apple_font_dir" >&6; }
35403else
35404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
35405$as_echo "not found!" >&6; };
35406fi
35407
35408
cristy430a7312010-01-21 20:44:04 +000035409# Dejavu fonts.
35410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
35411$as_echo_n "checking for Dejavu fonts directory... " >&6; }
35412dejavu_font_dir=''
35413if test "${with_dejavu_font_dir}" != 'default'; then
35414 dejavu_font_dir="${with_dejavu_font_dir}/"
35415else
35416 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
35417 if test -f "${font_dir}DejaVuSerif.ttf"; then
35418 dejavu_font_dir="${font_dir}"
35419 break 1
35420 fi
35421 done
35422fi
35423if test "${dejavu_font_dir}x" != 'x'; then
35424 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
cristyad38abe2012-12-23 23:03:21 +000035425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
35426$as_echo "$dejavu_font_dir" >&6; }
cristy430a7312010-01-21 20:44:04 +000035427else
cristyad38abe2012-12-23 23:03:21 +000035428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
35429$as_echo "not found!" >&6; };
cristy430a7312010-01-21 20:44:04 +000035430fi
35431
35432
cristy3ed852e2009-09-05 21:47:34 +000035433# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000035434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000035435$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
35436ghostscript_font_dir=''
35437if test "${with_gs_font_dir}" != 'default'; then
35438 ghostscript_font_dir="${with_gs_font_dir}/"
35439else
35440 if test "${native_win32_build}" = 'yes'; then
35441 # Native Windows Build
35442 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
35443 if test -f "${font_dir}a010013l.pfb"; then
35444 ghostscript_font_dir="$font_dir"
35445 break 1
35446 fi
35447 done
35448 if test "${PSDelegate}" != 'gswin32c'; then
35449 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
35450 fi
35451 else
35452 # Linux / Mac OS X / Unix Build
35453 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
35454 if test -f "${font_dir}a010013l.pfb"; then
35455 ghostscript_font_dir="${font_dir}"
35456 break 1
35457 fi
35458 done
35459 if test "${ghostscript_font_dir}x" = 'x'; then
35460 if test "$PSDelegate" != 'gs'; then
35461 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
35462 fi
35463 fi
35464 fi
35465fi
35466if test "${ghostscript_font_dir}x" != 'x'; then
35467 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristyad38abe2012-12-23 23:03:21 +000035468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
35469$as_echo "$ghostscript_font_dir" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035470else
cristyad38abe2012-12-23 23:03:21 +000035471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
35472$as_echo "not found!" >&6; };
cristy3ed852e2009-09-05 21:47:34 +000035473fi
35474
35475case "${build_os}" in
35476 mingw* )
35477 PSDelegate=`$WinPathScript "$PSDelegate" 1`
35478 ;;
35479esac
35480
cristy5a3dc992014-12-05 19:50:04 +000035481# Windows fonts.
35482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows fonts directory" >&5
35483$as_echo_n "checking for Windows fonts directory... " >&6; }
35484windows_font_dir=''
35485if test "${with_windows_font_dir}" != 'default'; then
35486 windows_font_dir="${with_windows_font_dir}/"
35487else
35488 for font_dir in '/usr/X11R6/lib/X11/fonts/truetype/' '/usr/X11R7/lib/X11/fonts/truetype/' '/usr/share/fonts/msttcore/'; do
35489 if test -f "${font_dir}arial.ttf"; then
35490 windows_font_dir="${font_dir}"
35491 break 1
35492 fi
35493 done
35494fi
35495if test "${windows_font_dir}x" != 'x'; then
35496 type_include_files="${type_include_files} "'<include file="type-windows.xml" />'
35497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $windows_font_dir" >&5
35498$as_echo "$windows_font_dir" >&6; }
35499else
35500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
35501$as_echo "not found!" >&6; };
35502fi
35503
35504
cristy3ed852e2009-09-05 21:47:34 +000035505
35506
35507#
35508# Handle case where user doesn't want frozen paths
35509#
35510if test "$with_frozenpaths" != 'yes'; then
35511 # Re-set delegate definitions to default (no paths)
35512 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy16b412d2014-12-15 11:09:48 +000035513 BGPDecodeDelegate="$BGPDecodeDelegateDefault"
35514 BGPEncodeDelegate="$BGPEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035515 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
35516 BZIPDelegate="$BZIPDelegateDefault"
35517 BrowseDelegate="$BrowseDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035518 CatDelegate="$CatDelegateDefault"
35519 ConvertDelegate="$ConvertDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000035520 DisplayDelegate="$DisplayDelegateDefault"
35521 DNGDecodeDelegate="$DNGDecodeDelegateDefault"
cristy66f238e2014-05-16 12:21:48 +000035522 DOCDecodeDelegate="$DOCDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035523 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
35524 EchoDelegate="$EchoDelegateDefault"
35525 EditorDelegate="$EditorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035526 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000035527 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035528 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
35529 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
35530 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
35531 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000035532 JXRDecodeDelegate="$JXRDecodeDelegateDefault"
35533 JXREncodeDelegate="$JXREncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035534 LPDelegate="$LPDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035535 LaunchDelegate="$LaunchDelegateDefault"
35536 MANDelegate="$MANDelegateDefault"
35537 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
35538 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035539 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000035540 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
35541 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035542 PCLDelegate="$PCLDelegateDefault"
35543 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
35544 POVDelegate="$POVDelegateDefault"
35545 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035546 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
35547 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000035548 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035549 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
cristyec6934f2012-08-14 18:38:40 +000035550 SVGDecodeDelegate="$SVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035551 ShowImageDelegate="$ShowImageDelegateDefault"
35552 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000035553 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy86e86092013-08-04 17:43:57 +000035554 WebPDecodeDelegate="$WebPDecodeDelegateDefault"
35555 WebPEncodeDelegate="$WebPEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035556 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
35557 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
35558 XPSDelegate="$XPSDelegateDefault"
35559 ZipDelegate="$ZipDelegateDefault"
35560fi
35561
35562# Delegate substitutions
35563
35564
35565
35566
35567
35568
35569
35570
35571
35572
35573
35574
35575
35576
35577
35578
35579
35580
35581
35582
35583
35584
35585
35586
35587
35588
35589
35590
35591
35592
35593
35594
35595
35596
35597
35598
35599
35600
35601
35602
cristy71f53d52013-04-27 13:33:59 +000035603
35604
cristy16b412d2014-12-15 11:09:48 +000035605
35606
cristy3ed852e2009-09-05 21:47:34 +000035607#
35608# RPM support.
35609#
35610RPM=''
35611for ac_prog in gnutar gtar tar
35612do
35613 # Extract the first word of "$ac_prog", so it can be a program name with args.
35614set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035616$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035617if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035618 $as_echo_n "(cached) " >&6
35619else
35620 if test -n "$TAR"; then
35621 ac_cv_prog_TAR="$TAR" # Let the user override the test.
35622else
35623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35624for as_dir in $PATH
35625do
35626 IFS=$as_save_IFS
35627 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035628 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035630 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035632 break 2
35633 fi
35634done
cristy8b350f62009-11-15 23:12:43 +000035635 done
cristy3ed852e2009-09-05 21:47:34 +000035636IFS=$as_save_IFS
35637
35638fi
35639fi
35640TAR=$ac_cv_prog_TAR
35641if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000035642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000035643$as_echo "$TAR" >&6; }
35644else
cristy8b350f62009-11-15 23:12:43 +000035645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035646$as_echo "no" >&6; }
35647fi
35648
35649
35650 test -n "$TAR" && break
35651done
35652
35653for ac_prog in perl
35654do
35655 # Extract the first word of "$ac_prog", so it can be a program name with args.
35656set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035658$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035659if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035660 $as_echo_n "(cached) " >&6
35661else
35662 if test -n "$PERL"; then
35663 ac_cv_prog_PERL="$PERL" # Let the user override the test.
35664else
35665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35666for as_dir in $PATH
35667do
35668 IFS=$as_save_IFS
35669 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035670 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035672 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035674 break 2
35675 fi
35676done
cristy8b350f62009-11-15 23:12:43 +000035677 done
cristy3ed852e2009-09-05 21:47:34 +000035678IFS=$as_save_IFS
35679
35680fi
35681fi
35682PERL=$ac_cv_prog_PERL
35683if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000035684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035685$as_echo "$PERL" >&6; }
35686else
cristy8b350f62009-11-15 23:12:43 +000035687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035688$as_echo "no" >&6; }
35689fi
35690
35691
35692 test -n "$PERL" && break
35693done
35694
35695for ac_prog in rpmbuild rpm
35696do
35697 # Extract the first word of "$ac_prog", so it can be a program name with args.
35698set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035700$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035701if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035702 $as_echo_n "(cached) " >&6
35703else
35704 if test -n "$RPM"; then
35705 ac_cv_prog_RPM="$RPM" # Let the user override the test.
35706else
35707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35708for as_dir in $PATH
35709do
35710 IFS=$as_save_IFS
35711 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035712 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035714 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035716 break 2
35717 fi
35718done
cristy8b350f62009-11-15 23:12:43 +000035719 done
cristy3ed852e2009-09-05 21:47:34 +000035720IFS=$as_save_IFS
35721
35722fi
35723fi
35724RPM=$ac_cv_prog_RPM
35725if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000035726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000035727$as_echo "$RPM" >&6; }
35728else
cristy8b350f62009-11-15 23:12:43 +000035729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035730$as_echo "no" >&6; }
35731fi
35732
35733
35734 test -n "$RPM" && break
35735done
35736
35737
cristy73bd4a52010-10-05 11:24:23 +000035738ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
35739
35740
35741AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
35742
35743
35744AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
35745
35746
35747AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
35748
35749
35750 if test "x$RPM" != "x" ; then
35751 RPM_DELEGATE_TRUE=
35752 RPM_DELEGATE_FALSE='#'
35753else
35754 RPM_DELEGATE_TRUE='#'
35755 RPM_DELEGATE_FALSE=
35756fi
35757
cristy3ed852e2009-09-05 21:47:34 +000035758
35759#
35760# 7ZIP support (http://p7zip.sourceforge.net/)
35761#
35762P7ZIP=''
35763for ac_prog in 7za
35764do
35765 # Extract the first word of "$ac_prog", so it can be a program name with args.
35766set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035768$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035769if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035770 $as_echo_n "(cached) " >&6
35771else
35772 if test -n "$P7ZIP"; then
35773 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
35774else
35775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35776for as_dir in $PATH
35777do
35778 IFS=$as_save_IFS
35779 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035780 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035782 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035784 break 2
35785 fi
35786done
cristy8b350f62009-11-15 23:12:43 +000035787 done
cristy3ed852e2009-09-05 21:47:34 +000035788IFS=$as_save_IFS
35789
35790fi
35791fi
35792P7ZIP=$ac_cv_prog_P7ZIP
35793if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000035794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000035795$as_echo "$P7ZIP" >&6; }
35796else
cristy8b350f62009-11-15 23:12:43 +000035797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035798$as_echo "no" >&6; }
35799fi
35800
35801
35802 test -n "$P7ZIP" && break
35803done
35804
35805
cristy73bd4a52010-10-05 11:24:23 +000035806 if test "x$P7ZIP" != "x" ; then
35807 P7ZIP_DELEGATE_TRUE=
35808 P7ZIP_DELEGATE_FALSE='#'
35809else
35810 P7ZIP_DELEGATE_TRUE='#'
35811 P7ZIP_DELEGATE_FALSE=
35812fi
35813
cristy3ed852e2009-09-05 21:47:34 +000035814
35815#
35816# ZIP support (http://www.info-zip.org/Zip.html)
35817#
35818ZIP=''
35819for ac_prog in zip
35820do
35821 # Extract the first word of "$ac_prog", so it can be a program name with args.
35822set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035824$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035825if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035826 $as_echo_n "(cached) " >&6
35827else
35828 if test -n "$ZIP"; then
35829 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
35830else
35831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35832for as_dir in $PATH
35833do
35834 IFS=$as_save_IFS
35835 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035836 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035838 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035840 break 2
35841 fi
35842done
cristy8b350f62009-11-15 23:12:43 +000035843 done
cristy3ed852e2009-09-05 21:47:34 +000035844IFS=$as_save_IFS
35845
35846fi
35847fi
35848ZIP=$ac_cv_prog_ZIP
35849if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000035850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000035851$as_echo "$ZIP" >&6; }
35852else
cristy8b350f62009-11-15 23:12:43 +000035853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035854$as_echo "no" >&6; }
35855fi
35856
35857
35858 test -n "$ZIP" && break
35859done
35860
35861
cristy73bd4a52010-10-05 11:24:23 +000035862 if test "x$ZIP" != "x" ; then
35863 ZIP_DELEGATE_TRUE=
35864 ZIP_DELEGATE_FALSE='#'
35865else
35866 ZIP_DELEGATE_TRUE='#'
35867 ZIP_DELEGATE_FALSE=
35868fi
35869
cristy3ed852e2009-09-05 21:47:34 +000035870
35871#
35872# GhostPCL related configuration.
35873#
35874PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000035875PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000035876PCLMonoDevice=pbmraw
35877if test -z "$PCLVersion"; then
35878 PCLVersion='unknown'
35879fi
35880if test $have_pcl = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35882$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035884$as_echo_n "checking for PCL... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35886$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035887 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000035888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035889$as_echo_n "checking for pcl color device... " >&6; }
35890 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35891 :
35892 else
35893 PCLColorDevice=ppmraw
35894 fi
cristyad38abe2012-12-23 23:03:21 +000035895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
35896$as_echo "$PCLColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035897
35898 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035900$as_echo_n "checking for pcl CMYK device... " >&6; }
35901 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35902 :
35903 else
35904 PCLCMYKDevice=$PCLColorDevice
35905 fi
cristyad38abe2012-12-23 23:03:21 +000035906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
35907$as_echo "$PCLCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035908
35909 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035911$as_echo_n "checking for pcl mono device... " >&6; }
35912 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35913 :
35914 else
35915 PCLMonoDevice=$PCLColorDevice
35916 fi
cristyad38abe2012-12-23 23:03:21 +000035917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
35918$as_echo "$PCLMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035919fi
35920
35921
35922
35923
35924
35925
35926#
35927# GhostXPS related configuration.
35928#
35929XPSColorDevice=ppmraw
35930XPSCMYKDevice=bmpsep8
35931XPSMonoDevice=pbmraw
35932if test -z "$XPSVersion"; then
35933 XPSVersion='unknown'
35934fi
35935if test $have_xps = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35937$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000035939$as_echo_n "checking for XPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35941$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035942 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035944$as_echo_n "checking for xps color device... " >&6; }
35945 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35946 :
35947 else
35948 XPSColorDevice=ppmraw
35949 fi
cristyad38abe2012-12-23 23:03:21 +000035950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
35951$as_echo "$XPSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035952
35953 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035955$as_echo_n "checking for xps CMYK device... " >&6; }
35956 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35957 :
35958 else
35959 XPSCMYKDevice=$XPSColorDevice
35960 fi
cristyad38abe2012-12-23 23:03:21 +000035961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
35962$as_echo "$XPSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035963
35964 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035966$as_echo_n "checking for xps mono device... " >&6; }
35967 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35968 :
35969 else
35970 XPSMonoDevice=$XPSColorDevice
35971 fi
cristyad38abe2012-12-23 23:03:21 +000035972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
35973$as_echo "$XPSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035974fi
35975
35976
35977
35978
35979
35980
35981#
35982# Ghostscript related configuration.
35983#
cristya97426c2011-02-04 01:41:27 +000035984GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000035985GSColorDevice=pnmraw
35986GSCMYKDevice=pam
35987GSMonoDevice=pbmraw
35988GSPDFDevice=pdfwrite
cristyb096ea52013-10-26 20:56:38 +000035989GSPSDevice=ps2write
cristya5b91e72015-01-07 15:39:36 +000035990GSEPSDevice=eps2write
cristy3ed852e2009-09-05 21:47:34 +000035991GSVersion='unknown'
35992if test $have_gs = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35994$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000035996$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35998$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000036000$as_echo_n "checking for Ghostscript version... " >&6; }
36001 if GSVersion=`$PSDelegate --version`; then
36002 :
36003 else
36004 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
36005 fi
cristyad38abe2012-12-23 23:03:21 +000036006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
36007$as_echo "$GSVersion" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000036008
36009 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000036010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000036011$as_echo_n "checking for gs alpha device... " >&6; }
36012 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
36013 :
36014 else
36015 GSAlphaDevice=pnmraw
36016 fi
cristyad38abe2012-12-23 23:03:21 +000036017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
36018$as_echo "$GSAlphaDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000036019
36020 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000036021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000036022$as_echo_n "checking for gs color device... " >&6; }
36023 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
36024 :
36025 else
36026 GSColorDevice=pnmraw
36027 fi
cristyad38abe2012-12-23 23:03:21 +000036028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
36029$as_echo "$GSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000036030
36031 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000036032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000036033$as_echo_n "checking for gs CMYK device... " >&6; }
36034 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
36035 :
36036 else
36037 GSCMYKDevice=bmpsep8
36038 fi
cristyad38abe2012-12-23 23:03:21 +000036039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
36040$as_echo "$GSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000036041
36042 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000036043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000036044$as_echo_n "checking for gs mono device... " >&6; }
36045 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
36046 :
36047 else
36048 GSMonoDevice=$GSColorDevice
36049 fi
cristyad38abe2012-12-23 23:03:21 +000036050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
36051$as_echo "$GSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000036052
36053 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000036054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000036055$as_echo_n "checking for gs PDF writing device... " >&6; }
36056 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
36057 :
36058 else
36059 GSPDFDevice=nodevice
36060 fi
cristyad38abe2012-12-23 23:03:21 +000036061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
36062$as_echo "$GSPDFDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000036063
36064 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000036065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000036066$as_echo_n "checking for gs PS writing device... " >&6; }
36067 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
36068 :
36069 else
cristy15308162015-01-09 23:43:12 +000036070 GSPSDevice=pswrite
cristy3ed852e2009-09-05 21:47:34 +000036071 fi
cristyad38abe2012-12-23 23:03:21 +000036072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
36073$as_echo "$GSPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000036074
36075 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000036076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000036077$as_echo_n "checking for gs EPS writing device... " >&6; }
36078 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
36079 :
36080 else
cristy15308162015-01-09 23:43:12 +000036081 GSEPSDevice=epswrite
cristy3ed852e2009-09-05 21:47:34 +000036082 fi
cristyad38abe2012-12-23 23:03:21 +000036083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
36084$as_echo "$GSEPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000036085fi
36086
36087
36088
36089
36090
36091
36092
36093
36094
36095
36096#
36097# PerlMagick-related configuration
36098#
36099
36100# Look for PERL if PerlMagick requested
36101# If name/path of desired PERL interpreter is specified, look for that one first
36102have_perl='no'
36103if test "$with_perl" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000036104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
36105$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000036106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000036107$as_echo_n "checking for Perl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000036108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
36109$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000036110 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000036111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000036112$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000036113if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000036114 $as_echo_n "(cached) " >&6
36115else
36116 ac_cv_path_PERL="$with_perl"
36117fi
cristy8b350f62009-11-15 23:12:43 +000036118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000036119$as_echo "$ac_cv_path_PERL" >&6; };
36120 PERL=$ac_cv_path_PERL
36121 have_perl="$ac_cv_path_PERL"
36122 else
36123 for ac_prog in perl perl5
36124do
36125 # Extract the first word of "$ac_prog", so it can be a program name with args.
36126set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000036127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000036128$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000036129if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000036130 $as_echo_n "(cached) " >&6
36131else
36132 case $PERL in
36133 [\\/]* | ?:[\\/]*)
36134 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
36135 ;;
36136 *)
36137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36138for as_dir in $PATH
36139do
36140 IFS=$as_save_IFS
36141 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000036142 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000036143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000036144 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000036145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000036146 break 2
36147 fi
36148done
cristy8b350f62009-11-15 23:12:43 +000036149 done
cristy3ed852e2009-09-05 21:47:34 +000036150IFS=$as_save_IFS
36151
36152 ;;
36153esac
36154fi
36155PERL=$ac_cv_path_PERL
36156if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000036157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000036158$as_echo "$PERL" >&6; }
36159else
cristy8b350f62009-11-15 23:12:43 +000036160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000036161$as_echo "no" >&6; }
36162fi
36163
36164
36165 test -n "$PERL" && break
36166done
36167 if test "$ac_cv_path_PERL"; then
36168 have_perl="$ac_cv_path_PERL"
36169 fi
36170 fi
36171fi
36172
cristy949301e2010-01-06 01:38:40 +000036173if test "$with_perl" != 'yes' ; then
36174 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
36175fi
36176
36177PERL_SUPPORTS_DESTDIR='no'
36178
cristy3ed852e2009-09-05 21:47:34 +000036179with_perl_static='no'
36180with_perl_dynamic='no'
36181if test "$have_perl" != 'no'; then
36182 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
36183 with_perl_static='yes'
36184 fi
36185 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
36186 with_perl_dynamic='yes'
36187 fi
36188 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000036189
36190
36191
36192
36193 if test -n "$PERL"; then :
36194
36195 ax_perl_version="5.8.1"
36196
36197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
36198$as_echo_n "checking for perl version... " >&6; }
36199
cristy17491be2014-06-24 01:10:53 +000036200 perl_version=`$PERL --version 2>&1 \
36201 | $SED -n -e '/This is perl/b inspect
36202b
36203: inspect
36204s/.* (\{0,1\}v\([0-9]*\.[0-9]*\.[0-9]*\))\{0,1\} .*/\1/;p'`
cristy73bd4a52010-10-05 11:24:23 +000036205
36206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
36207$as_echo "$perl_version" >&6; }
36208
36209 PERL_VERSION=$perl_version
36210
36211
36212
36213
36214
36215 # Used to indicate true or false condition
36216 ax_compare_version=false
36217
36218 # Convert the two version strings to be compared into a format that
36219 # allows a simple string comparison. The end result is that a version
36220 # string of the form 1.12.5-r617 will be converted to the form
36221 # 0001001200050617. In other words, each number is zero padded to four
36222 # digits, and non digits are removed.
36223
36224 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
36225 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
36226 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
36227 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
36228 -e 's/[^0-9]//g'`
36229
36230
36231 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
36232 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
36233 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
36234 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
36235 -e 's/[^0-9]//g'`
36236
36237
36238 ax_compare_version=`echo "x$ax_compare_version_A
36239x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
36240
36241
36242
36243 if test "$ax_compare_version" = "true" ; then
36244
36245 :
36246 PERL_SUPPORTS_DESTDIR='yes'
36247
36248 else
36249 :
36250 PERL_SUPPORTS_DESTDIR='no'
36251
36252 fi
36253
36254
36255else
36256
36257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
36258$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
36259 PERL_SUPPORTS_DESTDIR='no'
36260
cristy3ed852e2009-09-05 21:47:34 +000036261fi
cristy73bd4a52010-10-05 11:24:23 +000036262
36263fi
36264 if test "$have_perl" != 'no'; then
36265 WITH_PERL_TRUE=
36266 WITH_PERL_FALSE='#'
36267else
36268 WITH_PERL_TRUE='#'
36269 WITH_PERL_FALSE=
36270fi
36271
36272 if test $with_perl_static = 'yes'; then
36273 WITH_PERL_STATIC_TRUE=
36274 WITH_PERL_STATIC_FALSE='#'
36275else
36276 WITH_PERL_STATIC_TRUE='#'
36277 WITH_PERL_STATIC_FALSE=
36278fi
36279
36280 if test $with_perl_dynamic = 'yes'; then
36281 WITH_PERL_DYNAMIC_TRUE=
36282 WITH_PERL_DYNAMIC_FALSE='#'
36283else
36284 WITH_PERL_DYNAMIC_TRUE='#'
36285 WITH_PERL_DYNAMIC_FALSE=
36286fi
36287
cristy3ed852e2009-09-05 21:47:34 +000036288
36289
36290# Determine path to pick up MagickCore library from for use with building PerlMagick
36291MAGICKCORE_PATH="${LIB_DIR}"
36292if test $with_perl_static = 'yes'; then
36293 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
36294 libtool_objdir=$objdir
36295
36296 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000036297 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000036298fi
36299
36300
cristy2a3eb392012-12-17 13:39:20 +000036301# Create a simple string containing format names for all delegate libraries.
cristy422d5502012-12-22 22:20:57 +000036302MAGICK_DELEGATES=''
cristy2a3eb392012-12-17 13:39:20 +000036303if test "$have_autotrace" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036304 MAGICK_DELEGATES="$MAGICK_DELEGATES autotrace"
cristy3ed852e2009-09-05 21:47:34 +000036305fi
cristy2a3eb392012-12-17 13:39:20 +000036306if test "$have_bzlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036307 MAGICK_DELEGATES="$MAGICK_DELEGATES bzlib"
cristy2a3eb392012-12-17 13:39:20 +000036308fi
36309if test "$have_dps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036310 MAGICK_DELEGATES="$MAGICK_DELEGATES dps"
cristy2a3eb392012-12-17 13:39:20 +000036311fi
36312if test "$have_djvu" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036313 MAGICK_DELEGATES="$MAGICK_DELEGATES djvu"
cristy2a3eb392012-12-17 13:39:20 +000036314fi
cristy81ab5af2013-10-06 18:28:39 +000036315if test "$have_avconv" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036316 MAGICK_DELEGATES="$MAGICK_DELEGATES mpeg"
cristy2a3eb392012-12-17 13:39:20 +000036317fi
36318if test "$have_fftw" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036319 MAGICK_DELEGATES="$MAGICK_DELEGATES fftw"
cristy2a3eb392012-12-17 13:39:20 +000036320fi
cristy2a3eb392012-12-17 13:39:20 +000036321if test "$have_fpx" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036322 MAGICK_DELEGATES="$MAGICK_DELEGATES fpx"
cristy2a3eb392012-12-17 13:39:20 +000036323fi
36324if test "$have_fontconfig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036325 MAGICK_DELEGATES="$MAGICK_DELEGATES fontconfig"
cristy2a3eb392012-12-17 13:39:20 +000036326fi
36327if test "$have_freetype" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036328 MAGICK_DELEGATES="$MAGICK_DELEGATES freetype"
cristy2a3eb392012-12-17 13:39:20 +000036329fi
36330if test "$have_gslib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036331 MAGICK_DELEGATES="$MAGICK_DELEGATES gslib"
cristy2a3eb392012-12-17 13:39:20 +000036332fi
36333if test "$have_jbig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036334 MAGICK_DELEGATES="$MAGICK_DELEGATES jbig"
cristy2a3eb392012-12-17 13:39:20 +000036335fi
36336if test "$have_png$have_jpeg" = 'yesyes' ; then
cristy422d5502012-12-22 22:20:57 +000036337 MAGICK_DELEGATES="$MAGICK_DELEGATES jng"
cristy2a3eb392012-12-17 13:39:20 +000036338fi
36339if test "$have_jp2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036340 MAGICK_DELEGATES="$MAGICK_DELEGATES jp2"
cristy2a3eb392012-12-17 13:39:20 +000036341fi
36342if test "$have_jpeg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036343 MAGICK_DELEGATES="$MAGICK_DELEGATES jpeg"
cristy2a3eb392012-12-17 13:39:20 +000036344fi
36345if test "$have_lcms" = 'yes' || test "$have_lcms2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036346 MAGICK_DELEGATES="$MAGICK_DELEGATES lcms"
cristy2a3eb392012-12-17 13:39:20 +000036347fi
36348if test "$have_lqr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036349 MAGICK_DELEGATES="$MAGICK_DELEGATES lqr"
cristy2a3eb392012-12-17 13:39:20 +000036350fi
36351if test "$have_lzma" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036352 MAGICK_DELEGATES="$MAGICK_DELEGATES lzma"
cristy2a3eb392012-12-17 13:39:20 +000036353fi
36354if test "$have_openexr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036355 MAGICK_DELEGATES="$MAGICK_DELEGATES openexr"
cristy2a3eb392012-12-17 13:39:20 +000036356fi
cristy99db3872014-01-01 15:11:34 +000036357if test "$have_openjp2" = 'yes' ; then
36358 MAGICK_DELEGATES="$MAGICK_DELEGATES openjp2"
cristy3fe09452014-01-01 12:29:14 +000036359fi
cristy2a3eb392012-12-17 13:39:20 +000036360if test "$have_pango" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036361 MAGICK_DELEGATES="$MAGICK_DELEGATES pango"
cristy2a3eb392012-12-17 13:39:20 +000036362fi
36363if test "$have_png" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036364 MAGICK_DELEGATES="$MAGICK_DELEGATES png"
cristy2a3eb392012-12-17 13:39:20 +000036365fi
36366have_ps='no'
36367if test "$have_dps" = 'yes' || \
36368 test "$have_gs" = 'yes' || \
36369 test "${native_win32_build}" = 'yes' ; then
36370 have_ps='yes'
36371fi
36372if test "$have_ps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036373 MAGICK_DELEGATES="$MAGICK_DELEGATES ps"
cristy2a3eb392012-12-17 13:39:20 +000036374fi
cristy2a3eb392012-12-17 13:39:20 +000036375if test "$have_ra_ppm" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036376 MAGICK_DELEGATES="$MAGICK_DELEGATES rad"
cristy2a3eb392012-12-17 13:39:20 +000036377fi
36378if test "$have_rsvg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036379 MAGICK_DELEGATES="$MAGICK_DELEGATES rsvg"
cristy2a3eb392012-12-17 13:39:20 +000036380fi
36381if test "$have_tiff" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036382 MAGICK_DELEGATES="$MAGICK_DELEGATES tiff"
cristy2a3eb392012-12-17 13:39:20 +000036383fi
36384if test "$have_ttf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036385 MAGICK_DELEGATES="$MAGICK_DELEGATES ttf"
cristy2a3eb392012-12-17 13:39:20 +000036386fi
cristy3b640ed2013-07-29 00:27:59 +000036387if test "$have_webp" = 'yes' ; then
36388 MAGICK_DELEGATES="$MAGICK_DELEGATES webp"
36389fi
cristy2a3eb392012-12-17 13:39:20 +000036390if test "$have_wmf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036391 MAGICK_DELEGATES="$MAGICK_DELEGATES wmf"
cristy2a3eb392012-12-17 13:39:20 +000036392fi
36393if test "$have_x" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036394 MAGICK_DELEGATES="$MAGICK_DELEGATES x"
cristy2a3eb392012-12-17 13:39:20 +000036395fi
36396if test "$have_xml" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036397 MAGICK_DELEGATES="$MAGICK_DELEGATES xml"
cristy2a3eb392012-12-17 13:39:20 +000036398fi
36399if test "$have_zlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036400 MAGICK_DELEGATES="$MAGICK_DELEGATES zlib"
cristy2a3eb392012-12-17 13:39:20 +000036401fi
cristyead532a2015-06-05 00:49:30 +000036402
cristy2a3eb392012-12-17 13:39:20 +000036403# Remove extraneous spaces from output variables (asthetic)
cristy422d5502012-12-22 22:20:57 +000036404MAGICK_DELEGATES=`echo $MAGICK_DELEGATES | sed -e 's/ */ /g'`
cristy2a3eb392012-12-17 13:39:20 +000036405MAGICK_FEATURES=`echo $MAGICK_FEATURES | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000036406
36407
cristyfa161182012-12-19 15:45:28 +000036408
cristy3ed852e2009-09-05 21:47:34 +000036409#
36410# Handle special compiler flags
36411#
36412
36413# Add '-p' if prof source profiling support enabled
36414if test "$enable_prof" = 'yes'; then
36415 CFLAGS="-p $CFLAGS"
36416 CXXFLAGS="-p $CXXFLAGS"
36417 LDFLAGS="-p $LDFLAGS"
36418fi
36419
36420# Add '-pg' if gprof source profiling support enabled
36421if test "$enable_gprof" = 'yes'; then
36422 CFLAGS="-pg $CFLAGS"
36423 CXXFLAGS="-pg $CXXFLAGS"
36424 LDFLAGS="-pg $LDFLAGS"
36425fi
36426
36427# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
36428# This is a gcc-specific feature
36429if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000036430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000036431$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000036432if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000036433 $as_echo_n "(cached) " >&6
36434else
36435 ac_check_lib_save_LIBS=$LIBS
36436LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000036437cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000036438/* end confdefs.h. */
36439
36440/* Override any GCC internal prototype to avoid an error.
36441 Use char because int might match the return type of a GCC
36442 builtin and then its argument prototype would still apply. */
36443#ifdef __cplusplus
36444extern "C"
36445#endif
36446char _gcov_init ();
36447int
36448main ()
36449{
36450return _gcov_init ();
36451 ;
36452 return 0;
36453}
36454_ACEOF
cristy8b350f62009-11-15 23:12:43 +000036455if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000036456 ac_cv_lib_gcov__gcov_init=yes
36457else
cristy8b350f62009-11-15 23:12:43 +000036458 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000036459fi
cristy8b350f62009-11-15 23:12:43 +000036460rm -f core conftest.err conftest.$ac_objext \
36461 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000036462LIBS=$ac_check_lib_save_LIBS
36463fi
cristy8b350f62009-11-15 23:12:43 +000036464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000036465$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000036466if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000036467 cat >>confdefs.h <<_ACEOF
36468#define HAVE_LIBGCOV 1
36469_ACEOF
36470
36471 LIBS="-lgcov $LIBS"
36472
36473fi
36474
cristy8b350f62009-11-15 23:12:43 +000036475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000036476$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000036477if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000036478 $as_echo_n "(cached) " >&6
36479else
36480 ac_check_lib_save_LIBS=$LIBS
36481LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000036482cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000036483/* end confdefs.h. */
36484
36485/* Override any GCC internal prototype to avoid an error.
36486 Use char because int might match the return type of a GCC
36487 builtin and then its argument prototype would still apply. */
36488#ifdef __cplusplus
36489extern "C"
36490#endif
36491char __gcov_init ();
36492int
36493main ()
36494{
36495return __gcov_init ();
36496 ;
36497 return 0;
36498}
36499_ACEOF
cristy8b350f62009-11-15 23:12:43 +000036500if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000036501 ac_cv_lib_gcov___gcov_init=yes
36502else
cristy8b350f62009-11-15 23:12:43 +000036503 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000036504fi
cristy8b350f62009-11-15 23:12:43 +000036505rm -f core conftest.err conftest.$ac_objext \
36506 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000036507LIBS=$ac_check_lib_save_LIBS
36508fi
cristy8b350f62009-11-15 23:12:43 +000036509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000036510$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000036511if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000036512 cat >>confdefs.h <<_ACEOF
36513#define HAVE_LIBGCOV 1
36514_ACEOF
36515
36516 LIBS="-lgcov $LIBS"
36517
36518fi
36519
36520 case "$target_os" in
36521 darwin*)
36522 OSX_GCOV_LDFLAG="-Wl,-single_module"
36523 ;;
36524 *)
36525 OSX_GCOV_LDFLAG=""
36526 ;;
36527 esac
36528
36529 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
36530 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
36531 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
36532fi
36533
36534#
36535# Build library dependency list for libMagickCore
36536#
36537
cristyc6722092012-10-14 00:19:31 +000036538if test "$build_modules" != 'no'; then
cristy3b0097d2014-11-04 15:34:47 +000036539 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 $JEMALLOC_LIBS $THREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000036540else
cristyd5e1d162015-05-30 21:15:43 +000036541 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 $LIBOPENJP2_LIBS $PANGO_LIBS $RSVG_LIBS $XML_LIBS $GVC_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $GOMP_LIBS $CL_LIBS $UMEM_LIBS $JEMALLOC_LIBS $THREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000036542fi
36543
36544
36545#
cristyead532a2015-06-05 00:49:30 +000036546# Sanitize output variables (asthetic).
cristy3ed852e2009-09-05 21:47:34 +000036547#
cristyead532a2015-06-05 00:49:30 +000036548for variable in CC CFLAGS CPPFLAGS CXXFLAGS LDFLAGS MAGICK_DEP_LIBS TESTED_LIBS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS; do
36549 sanitize=''
36550 eval value=$`echo $variable`
36551 for component in $value
36552 do
36553 unique=yes
36554 for test_component in $sanitize
36555 do
36556 if test $component = $test_component; then
36557 unique=no
36558 break
36559 fi
36560 done
36561 if test $unique = yes; then
36562 sanitize="$sanitize $component"
36563 fi
36564 done
36565 sanitize=`echo $sanitize | sed -e 's/^ *//g'`
36566 eval ${variable}=\${sanitize}
36567done
cristy3ed852e2009-09-05 21:47:34 +000036568
36569# Pass only user-provided LIBS as "global" libraries
36570LIBS=$USER_LIBS
36571
36572#AC_SUBST(CPPFLAGS)
36573
36574#AC_SUBST(LDFLAGS)
36575#AC_SUBST(X_PRE_LIBS)
36576#AC_SUBST(X_LIBS)
36577#AC_SUBST(X_EXTRA_LIBS)
36578
36579MAGICK_CFLAGS=$CFLAGS
36580MAGICK_CXXFLAGS="$CXXFLAGS"
36581MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
36582MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
36583MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
cristy31b9e072013-10-17 15:02:53 +000036584MAGICK_LIBS="$MAGICK_DEP_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000036585
36586
36587
36588
36589
36590
36591
36592
36593# Set configured scripts to executable.
36594ac_config_commands="$ac_config_commands default"
36595
cristy2bd4b6e2012-07-22 15:29:11 +000036596ac_config_commands="$ac_config_commands magick.sh.in"
36597
cristy3ed852e2009-09-05 21:47:34 +000036598ac_config_commands="$ac_config_commands MagickCore-config.in"
36599
cristy3ed852e2009-09-05 21:47:34 +000036600ac_config_commands="$ac_config_commands MagickWand-config.in"
36601
cristy3ed852e2009-09-05 21:47:34 +000036602ac_config_commands="$ac_config_commands Magick++-config.in"
36603
36604ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
36605
36606
cristyad38abe2012-12-23 23:03:21 +000036607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
36608$as_echo "-------------------------------------------------------------" >&6; }
36609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
36610$as_echo "Update ImageMagick configuration" >&6; }
cristy9af1cbf2014-12-28 22:03:09 +000036611
36612rm -f magick-version
36613
36614result_dejavu_font_dir='none'
36615if test "${dejavu_font_dir}x" != 'x'; then
36616 result_dejavu_font_dir=$dejavu_font_dir
36617fi
36618
36619result_ghostscript_font_dir='none'
36620if test "${ghostscript_font_dir}x" != 'x'; then
36621 result_ghostscript_font_dir=$ghostscript_font_dir
36622fi
36623
36624result_windows_font_dir='none'
36625if test "${windows_font_dir}x" != 'x'; then
36626 result_windows_font_dir=${windows_font_dir}
36627fi
36628
36629# ==============================================================================
36630# Generate build environment
36631# ==============================================================================
36632ac_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-apple.xml 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"
36633
cristy3ed852e2009-09-05 21:47:34 +000036634cat >confcache <<\_ACEOF
36635# This file is a shell script that caches the results of configure
36636# tests run on this system so they can be shared between configure
36637# scripts and configure runs, see configure's option --config-cache.
36638# It is not useful on other systems. If it contains results you don't
36639# want to keep, you may remove or edit it.
36640#
36641# config.status only pays attention to the cache file if you give it
36642# the --recheck option to rerun configure.
36643#
36644# `ac_cv_env_foo' variables (set or unset) will be overridden when
36645# loading this file, other *unset* `ac_cv_foo' will be assigned the
36646# following values.
36647
36648_ACEOF
36649
36650# The following way of writing the cache mishandles newlines in values,
36651# but we know of no workaround that is simple, portable, and efficient.
36652# So, we kill variables containing newlines.
36653# Ultrix sh set writes to stderr and can't be redirected directly,
36654# and sets the high bit in the cache file unless we assign to the vars.
36655(
36656 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
36657 eval ac_val=\$$ac_var
36658 case $ac_val in #(
36659 *${as_nl}*)
36660 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000036661 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000036662$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
36663 esac
36664 case $ac_var in #(
36665 _ | IFS | as_nl) ;; #(
36666 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000036667 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000036668 esac ;;
36669 esac
36670 done
36671
36672 (set) 2>&1 |
36673 case $as_nl`(ac_space=' '; set) 2>&1` in #(
36674 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000036675 # `set' does not quote correctly, so add quotes: double-quote
36676 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000036677 sed -n \
36678 "s/'/'\\\\''/g;
36679 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
36680 ;; #(
36681 *)
36682 # `set' quotes correctly as required by POSIX, so do not add quotes.
36683 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
36684 ;;
36685 esac |
36686 sort
36687) |
36688 sed '
36689 /^ac_cv_env_/b end
36690 t clear
36691 :clear
36692 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
36693 t end
36694 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
36695 :end' >>confcache
36696if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
36697 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000036698 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000036699 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000036700$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000036701 if test ! -f "$cache_file" || test -h "$cache_file"; then
36702 cat confcache >"$cache_file"
36703 else
36704 case $cache_file in #(
36705 */* | ?:*)
36706 mv -f confcache "$cache_file"$$ &&
36707 mv -f "$cache_file"$$ "$cache_file" ;; #(
36708 *)
36709 mv -f confcache "$cache_file" ;;
36710 esac
36711 fi
36712 fi
cristy3ed852e2009-09-05 21:47:34 +000036713 else
cristy8b350f62009-11-15 23:12:43 +000036714 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000036715$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
36716 fi
36717fi
36718rm -f confcache
36719
36720test "x$prefix" = xNONE && prefix=$ac_default_prefix
36721# Let make expand exec_prefix.
36722test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
36723
36724DEFS=-DHAVE_CONFIG_H
36725
36726ac_libobjs=
36727ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000036728U=
cristy3ed852e2009-09-05 21:47:34 +000036729for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
36730 # 1. Remove the extension, and $U if already installed.
36731 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
36732 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
36733 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
36734 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000036735 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
36736 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000036737done
36738LIBOBJS=$ac_libobjs
36739
36740LTLIBOBJS=$ac_ltlibobjs
36741
36742
cristyc0890a62012-07-19 00:18:20 +000036743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
36744$as_echo_n "checking that generated files are newer than configure... " >&6; }
36745 if test -n "$am_sleep_pid"; then
36746 # Hide warnings about reused PIDs.
36747 wait $am_sleep_pid 2>/dev/null
36748 fi
36749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
36750$as_echo "done" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000036751 if test -n "$EXEEXT"; then
36752 am__EXEEXT_TRUE=
36753 am__EXEEXT_FALSE='#'
36754else
36755 am__EXEEXT_TRUE='#'
36756 am__EXEEXT_FALSE=
36757fi
cristy3ed852e2009-09-05 21:47:34 +000036758
cristy9af1cbf2014-12-28 22:03:09 +000036759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
36760$as_echo_n "checking that generated files are newer than configure... " >&6; }
36761 if test -n "$am_sleep_pid"; then
36762 # Hide warnings about reused PIDs.
36763 wait $am_sleep_pid 2>/dev/null
36764 fi
36765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
36766$as_echo "done" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000036767if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036768 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036769Usually this means the macro was only invoked conditionally." "$LINENO" 5
36770fi
36771if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036772 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036773Usually this means the macro was only invoked conditionally." "$LINENO" 5
36774fi
36775if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036776 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036777Usually this means the macro was only invoked conditionally." "$LINENO" 5
36778fi
36779if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036780 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036781Usually this means the macro was only invoked conditionally." "$LINENO" 5
36782fi
cristy9b86f202012-11-28 21:55:35 +000036783if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
36784 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
36785Usually this means the macro was only invoked conditionally." "$LINENO" 5
36786fi
cristy73bd4a52010-10-05 11:24:23 +000036787if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036788 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036789Usually this means the macro was only invoked conditionally." "$LINENO" 5
36790fi
36791if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036792 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036793Usually this means the macro was only invoked conditionally." "$LINENO" 5
36794fi
36795if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036796 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036797Usually this means the macro was only invoked conditionally." "$LINENO" 5
36798fi
36799if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036800 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036801Usually this means the macro was only invoked conditionally." "$LINENO" 5
36802fi
cristy73bd4a52010-10-05 11:24:23 +000036803if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036804 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036805Usually this means the macro was only invoked conditionally." "$LINENO" 5
36806fi
36807if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036808 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036809Usually this means the macro was only invoked conditionally." "$LINENO" 5
36810fi
cristy73bd4a52010-10-05 11:24:23 +000036811if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036812 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036813Usually this means the macro was only invoked conditionally." "$LINENO" 5
36814fi
cristy71d8c202012-03-20 17:05:01 +000036815if test -z "${LEGACY_SUPPORT_TRUE}" && test -z "${LEGACY_SUPPORT_FALSE}"; then
36816 as_fn_error $? "conditional \"LEGACY_SUPPORT\" was never defined.
36817Usually this means the macro was only invoked conditionally." "$LINENO" 5
36818fi
cristy73bd4a52010-10-05 11:24:23 +000036819
36820if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036821 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036822Usually this means the macro was only invoked conditionally." "$LINENO" 5
36823fi
36824if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036825 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036826Usually this means the macro was only invoked conditionally." "$LINENO" 5
36827fi
cristy3b0097d2014-11-04 15:34:47 +000036828if test -z "${HasJEMALLOC_TRUE}" && test -z "${HasJEMALLOC_FALSE}"; then
36829 as_fn_error $? "conditional \"HasJEMALLOC\" was never defined.
36830Usually this means the macro was only invoked conditionally." "$LINENO" 5
36831fi
cristy73bd4a52010-10-05 11:24:23 +000036832if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036833 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036834Usually this means the macro was only invoked conditionally." "$LINENO" 5
36835fi
36836if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036837 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036838Usually this means the macro was only invoked conditionally." "$LINENO" 5
36839fi
36840if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036841 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036842Usually this means the macro was only invoked conditionally." "$LINENO" 5
36843fi
36844if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036845 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036846Usually this means the macro was only invoked conditionally." "$LINENO" 5
36847fi
cristy5eef09f2012-10-16 12:08:28 +000036848if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
36849 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
36850Usually this means the macro was only invoked conditionally." "$LINENO" 5
36851fi
cristy73bd4a52010-10-05 11:24:23 +000036852if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036853 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036854Usually this means the macro was only invoked conditionally." "$LINENO" 5
36855fi
36856if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036857 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036858Usually this means the macro was only invoked conditionally." "$LINENO" 5
36859fi
cristy73bd4a52010-10-05 11:24:23 +000036860if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036861 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036862Usually this means the macro was only invoked conditionally." "$LINENO" 5
36863fi
36864if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036865 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036866Usually this means the macro was only invoked conditionally." "$LINENO" 5
36867fi
cristy853d9902014-08-21 18:50:43 +000036868if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
36869 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
36870Usually this means the macro was only invoked conditionally." "$LINENO" 5
36871fi
cristy73bd4a52010-10-05 11:24:23 +000036872if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036873 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036874Usually this means the macro was only invoked conditionally." "$LINENO" 5
36875fi
36876if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036877 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036878Usually this means the macro was only invoked conditionally." "$LINENO" 5
36879fi
36880if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036881 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036882Usually this means the macro was only invoked conditionally." "$LINENO" 5
36883fi
36884if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036885 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036886Usually this means the macro was only invoked conditionally." "$LINENO" 5
36887fi
36888if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036889 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036890Usually this means the macro was only invoked conditionally." "$LINENO" 5
36891fi
36892if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036893 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036894Usually this means the macro was only invoked conditionally." "$LINENO" 5
36895fi
cristy73bd4a52010-10-05 11:24:23 +000036896if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036897 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036898Usually this means the macro was only invoked conditionally." "$LINENO" 5
36899fi
cristy99db3872014-01-01 15:11:34 +000036900if test -z "${LIBOPENJP2_DELEGATE_TRUE}" && test -z "${LIBOPENJP2_DELEGATE_FALSE}"; then
36901 as_fn_error $? "conditional \"LIBOPENJP2_DELEGATE\" was never defined.
36902Usually this means the macro was only invoked conditionally." "$LINENO" 5
36903fi
cristy73bd4a52010-10-05 11:24:23 +000036904if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036905 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036906Usually this means the macro was only invoked conditionally." "$LINENO" 5
36907fi
cristyfbb0ef02010-12-19 02:32:11 +000036908if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
36909 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
36910Usually this means the macro was only invoked conditionally." "$LINENO" 5
36911fi
cristy73bd4a52010-10-05 11:24:23 +000036912if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036913 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036914Usually this means the macro was only invoked conditionally." "$LINENO" 5
36915fi
cristy41cbe8a2011-10-27 01:35:18 +000036916if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
36917 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
36918Usually this means the macro was only invoked conditionally." "$LINENO" 5
36919fi
cristya054b762012-03-26 23:16:00 +000036920if test -z "${PANGOCAIRO_DELEGATE_TRUE}" && test -z "${PANGOCAIRO_DELEGATE_FALSE}"; then
36921 as_fn_error $? "conditional \"PANGOCAIRO_DELEGATE\" was never defined.
cristy41cbe8a2011-10-27 01:35:18 +000036922Usually this means the macro was only invoked conditionally." "$LINENO" 5
36923fi
cristy73bd4a52010-10-05 11:24:23 +000036924if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036925 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036926Usually this means the macro was only invoked conditionally." "$LINENO" 5
36927fi
36928if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036929 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036930Usually this means the macro was only invoked conditionally." "$LINENO" 5
36931fi
36932if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036933 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036934Usually this means the macro was only invoked conditionally." "$LINENO" 5
36935fi
36936if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036937 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036938Usually this means the macro was only invoked conditionally." "$LINENO" 5
36939fi
cristyb1860752011-03-14 00:27:46 +000036940if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
36941 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
36942Usually this means the macro was only invoked conditionally." "$LINENO" 5
36943fi
cristy73bd4a52010-10-05 11:24:23 +000036944if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036945 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036946Usually this means the macro was only invoked conditionally." "$LINENO" 5
36947fi
36948if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036949 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036950Usually this means the macro was only invoked conditionally." "$LINENO" 5
36951fi
cristydd17feb2014-03-05 02:06:32 +000036952if test -z "${INSTALL_DOC_TRUE}" && test -z "${INSTALL_DOC_FALSE}"; then
36953 as_fn_error $? "conditional \"INSTALL_DOC\" was never defined.
36954Usually this means the macro was only invoked conditionally." "$LINENO" 5
36955fi
cristy73bd4a52010-10-05 11:24:23 +000036956if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036957 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036958Usually this means the macro was only invoked conditionally." "$LINENO" 5
36959fi
36960if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036961 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036962Usually this means the macro was only invoked conditionally." "$LINENO" 5
36963fi
36964if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036965 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036966Usually this means the macro was only invoked conditionally." "$LINENO" 5
36967fi
36968if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036969 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036970Usually this means the macro was only invoked conditionally." "$LINENO" 5
36971fi
36972if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036973 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036974Usually this means the macro was only invoked conditionally." "$LINENO" 5
36975fi
36976if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036977 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036978Usually this means the macro was only invoked conditionally." "$LINENO" 5
36979fi
cristy3ed852e2009-09-05 21:47:34 +000036980
cristyda16f162011-02-19 23:52:17 +000036981: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000036982ac_write_fail=0
36983ac_clean_files_save=$ac_clean_files
36984ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000036985{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000036986$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000036987as_write_fail=0
36988cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036989#! $SHELL
36990# Generated by $as_me.
36991# Run this file to recreate the current configuration.
36992# Compiler output produced by configure, useful for debugging
36993# configure, is in config.log if it exists.
36994
36995debug=false
36996ac_cs_recheck=false
36997ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000036998
cristy8b350f62009-11-15 23:12:43 +000036999SHELL=\${CONFIG_SHELL-$SHELL}
37000export SHELL
37001_ASEOF
37002cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
37003## -------------------- ##
37004## M4sh Initialization. ##
37005## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000037006
37007# Be more Bourne compatible
37008DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000037009if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000037010 emulate sh
37011 NULLCMD=:
37012 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
37013 # is contrary to our usage. Disable this feature.
37014 alias -g '${1+"$@"}'='"$@"'
37015 setopt NO_GLOB_SUBST
37016else
cristy8b350f62009-11-15 23:12:43 +000037017 case `(set -o) 2>/dev/null` in #(
37018 *posix*) :
37019 set -o posix ;; #(
37020 *) :
37021 ;;
cristy3ed852e2009-09-05 21:47:34 +000037022esac
cristy3ed852e2009-09-05 21:47:34 +000037023fi
37024
37025
cristy3ed852e2009-09-05 21:47:34 +000037026as_nl='
37027'
37028export as_nl
37029# Printing a long string crashes Solaris 7 /usr/bin/printf.
37030as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
37031as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
37032as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000037033# Prefer a ksh shell builtin over an external printf program on Solaris,
37034# but without wasting forks for bash or zsh.
37035if test -z "$BASH_VERSION$ZSH_VERSION" \
37036 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
37037 as_echo='print -r --'
37038 as_echo_n='print -rn --'
37039elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000037040 as_echo='printf %s\n'
37041 as_echo_n='printf %s'
37042else
37043 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
37044 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
37045 as_echo_n='/usr/ucb/echo -n'
37046 else
37047 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
37048 as_echo_n_body='eval
37049 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000037050 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000037051 *"$as_nl"*)
37052 expr "X$arg" : "X\\(.*\\)$as_nl";
37053 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
37054 esac;
37055 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
37056 '
37057 export as_echo_n_body
37058 as_echo_n='sh -c $as_echo_n_body as_echo'
37059 fi
37060 export as_echo_body
37061 as_echo='sh -c $as_echo_body as_echo'
37062fi
37063
37064# The user is always right.
37065if test "${PATH_SEPARATOR+set}" != set; then
37066 PATH_SEPARATOR=:
37067 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
37068 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
37069 PATH_SEPARATOR=';'
37070 }
37071fi
37072
cristy3ed852e2009-09-05 21:47:34 +000037073
37074# IFS
37075# We need space, tab and new line, in precisely that order. Quoting is
37076# there to prevent editors from complaining about space-tab.
37077# (If _AS_PATH_WALK were called with IFS unset, it would disable word
37078# splitting by setting IFS to empty value.)
37079IFS=" "" $as_nl"
37080
37081# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000037082as_myself=
cristy8b350f62009-11-15 23:12:43 +000037083case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000037084 *[\\/]* ) as_myself=$0 ;;
37085 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37086for as_dir in $PATH
37087do
37088 IFS=$as_save_IFS
37089 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000037090 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
37091 done
cristy3ed852e2009-09-05 21:47:34 +000037092IFS=$as_save_IFS
37093
37094 ;;
37095esac
37096# We did not find ourselves, most probably we were run as `sh COMMAND'
37097# in which case we are not to be found in the path.
37098if test "x$as_myself" = x; then
37099 as_myself=$0
37100fi
37101if test ! -f "$as_myself"; then
37102 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000037103 exit 1
cristy3ed852e2009-09-05 21:47:34 +000037104fi
37105
cristy8b350f62009-11-15 23:12:43 +000037106# Unset variables that we do not need and which cause bugs (e.g. in
37107# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
37108# suppresses any "Segmentation fault" message there. '((' could
37109# trigger a bug in pdksh 5.2.14.
37110for as_var in BASH_ENV ENV MAIL MAILPATH
37111do eval test x\${$as_var+set} = xset \
37112 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000037113done
37114PS1='$ '
37115PS2='> '
37116PS4='+ '
37117
37118# NLS nuisances.
37119LC_ALL=C
37120export LC_ALL
37121LANGUAGE=C
37122export LANGUAGE
37123
cristy8b350f62009-11-15 23:12:43 +000037124# CDPATH.
37125(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
37126
37127
cristy98dddb52010-11-04 00:30:15 +000037128# as_fn_error STATUS ERROR [LINENO LOG_FD]
37129# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000037130# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
37131# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000037132# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000037133as_fn_error ()
37134{
cristy98dddb52010-11-04 00:30:15 +000037135 as_status=$1; test $as_status -eq 0 && as_status=1
37136 if test "$4"; then
37137 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
37138 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000037139 fi
cristy98dddb52010-11-04 00:30:15 +000037140 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000037141 as_fn_exit $as_status
37142} # as_fn_error
37143
37144
37145# as_fn_set_status STATUS
37146# -----------------------
37147# Set $? to STATUS, without forking.
37148as_fn_set_status ()
37149{
37150 return $1
37151} # as_fn_set_status
37152
37153# as_fn_exit STATUS
37154# -----------------
37155# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
37156as_fn_exit ()
37157{
37158 set +e
37159 as_fn_set_status $1
37160 exit $1
37161} # as_fn_exit
37162
37163# as_fn_unset VAR
37164# ---------------
37165# Portably unset VAR.
37166as_fn_unset ()
37167{
37168 { eval $1=; unset $1;}
37169}
37170as_unset=as_fn_unset
37171# as_fn_append VAR VALUE
37172# ----------------------
37173# Append the text in VALUE to the end of the definition contained in VAR. Take
37174# advantage of any shell optimizations that allow amortized linear growth over
37175# repeated appends, instead of the typical quadratic growth present in naive
37176# implementations.
37177if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
37178 eval 'as_fn_append ()
37179 {
37180 eval $1+=\$2
37181 }'
37182else
37183 as_fn_append ()
37184 {
37185 eval $1=\$$1\$2
37186 }
37187fi # as_fn_append
37188
37189# as_fn_arith ARG...
37190# ------------------
37191# Perform arithmetic evaluation on the ARGs, and store the result in the
37192# global $as_val. Take advantage of shells that can avoid forks. The arguments
37193# must be portable across $(()) and expr.
37194if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
37195 eval 'as_fn_arith ()
37196 {
37197 as_val=$(( $* ))
37198 }'
37199else
37200 as_fn_arith ()
37201 {
37202 as_val=`expr "$@" || test $? -eq 1`
37203 }
37204fi # as_fn_arith
37205
37206
cristy3ed852e2009-09-05 21:47:34 +000037207if expr a : '\(a\)' >/dev/null 2>&1 &&
37208 test "X`expr 00001 : '.*\(...\)'`" = X001; then
37209 as_expr=expr
37210else
37211 as_expr=false
37212fi
37213
37214if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
37215 as_basename=basename
37216else
37217 as_basename=false
37218fi
37219
cristy8b350f62009-11-15 23:12:43 +000037220if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
37221 as_dirname=dirname
37222else
37223 as_dirname=false
37224fi
cristy3ed852e2009-09-05 21:47:34 +000037225
cristy3ed852e2009-09-05 21:47:34 +000037226as_me=`$as_basename -- "$0" ||
37227$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
37228 X"$0" : 'X\(//\)$' \| \
37229 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
37230$as_echo X/"$0" |
37231 sed '/^.*\/\([^/][^/]*\)\/*$/{
37232 s//\1/
37233 q
37234 }
37235 /^X\/\(\/\/\)$/{
37236 s//\1/
37237 q
37238 }
37239 /^X\/\(\/\).*/{
37240 s//\1/
37241 q
37242 }
37243 s/.*/./; q'`
37244
cristy8b350f62009-11-15 23:12:43 +000037245# Avoid depending upon Character Ranges.
37246as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37247as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37248as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37249as_cr_digits='0123456789'
37250as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000037251
37252ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000037253case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000037254-n*)
cristy8b350f62009-11-15 23:12:43 +000037255 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000037256 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000037257 xy) ECHO_C='\c';;
37258 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
37259 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000037260 esac;;
37261*)
37262 ECHO_N='-n';;
37263esac
cristy3ed852e2009-09-05 21:47:34 +000037264
37265rm -f conf$$ conf$$.exe conf$$.file
37266if test -d conf$$.dir; then
37267 rm -f conf$$.dir/conf$$.file
37268else
37269 rm -f conf$$.dir
37270 mkdir conf$$.dir 2>/dev/null
37271fi
37272if (echo >conf$$.file) 2>/dev/null; then
37273 if ln -s conf$$.file conf$$ 2>/dev/null; then
37274 as_ln_s='ln -s'
37275 # ... but there are two gotchas:
37276 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
37277 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cristy14fefe52012-05-21 00:59:18 +000037278 # In both cases, we have to default to `cp -pR'.
cristy3ed852e2009-09-05 21:47:34 +000037279 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cristy14fefe52012-05-21 00:59:18 +000037280 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000037281 elif ln conf$$.file conf$$ 2>/dev/null; then
37282 as_ln_s=ln
37283 else
cristy14fefe52012-05-21 00:59:18 +000037284 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000037285 fi
37286else
cristy14fefe52012-05-21 00:59:18 +000037287 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000037288fi
37289rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
37290rmdir conf$$.dir 2>/dev/null
37291
cristy8b350f62009-11-15 23:12:43 +000037292
37293# as_fn_mkdir_p
37294# -------------
37295# Create "$as_dir" as a directory, including parents if necessary.
37296as_fn_mkdir_p ()
37297{
37298
37299 case $as_dir in #(
37300 -*) as_dir=./$as_dir;;
37301 esac
37302 test -d "$as_dir" || eval $as_mkdir_p || {
37303 as_dirs=
37304 while :; do
37305 case $as_dir in #(
37306 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
37307 *) as_qdir=$as_dir;;
37308 esac
37309 as_dirs="'$as_qdir' $as_dirs"
37310 as_dir=`$as_dirname -- "$as_dir" ||
37311$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37312 X"$as_dir" : 'X\(//\)[^/]' \| \
37313 X"$as_dir" : 'X\(//\)$' \| \
37314 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
37315$as_echo X"$as_dir" |
37316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37317 s//\1/
37318 q
37319 }
37320 /^X\(\/\/\)[^/].*/{
37321 s//\1/
37322 q
37323 }
37324 /^X\(\/\/\)$/{
37325 s//\1/
37326 q
37327 }
37328 /^X\(\/\).*/{
37329 s//\1/
37330 q
37331 }
37332 s/.*/./; q'`
37333 test -d "$as_dir" && break
37334 done
37335 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000037336 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000037337
37338
37339} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000037340if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000037341 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000037342else
37343 test -d ./-p && rmdir ./-p
37344 as_mkdir_p=false
37345fi
37346
cristy14fefe52012-05-21 00:59:18 +000037347
37348# as_fn_executable_p FILE
37349# -----------------------
37350# Test if FILE is an executable regular file.
37351as_fn_executable_p ()
37352{
37353 test -f "$1" && test -x "$1"
37354} # as_fn_executable_p
37355as_test_x='test -x'
37356as_executable_p=as_fn_executable_p
cristy3ed852e2009-09-05 21:47:34 +000037357
37358# Sed expression to map a string onto a valid CPP name.
37359as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
37360
37361# Sed expression to map a string onto a valid variable name.
37362as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
37363
37364
37365exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000037366## ----------------------------------- ##
37367## Main body of $CONFIG_STATUS script. ##
37368## ----------------------------------- ##
37369_ASEOF
37370test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000037371
cristy8b350f62009-11-15 23:12:43 +000037372cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37373# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000037374# report actual input values of CONFIG_FILES etc. instead of their
37375# values after options handling.
37376ac_log="
cristy29eb34e2011-10-16 00:46:08 +000037377This file was extended by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +000037378generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000037379
37380 CONFIG_FILES = $CONFIG_FILES
37381 CONFIG_HEADERS = $CONFIG_HEADERS
37382 CONFIG_LINKS = $CONFIG_LINKS
37383 CONFIG_COMMANDS = $CONFIG_COMMANDS
37384 $ $0 $@
37385
37386on `(hostname || uname -n) 2>/dev/null | sed 1q`
37387"
37388
37389_ACEOF
37390
37391case $ac_config_files in *"
37392"*) set x $ac_config_files; shift; ac_config_files=$*;;
37393esac
37394
37395case $ac_config_headers in *"
37396"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
37397esac
37398
37399
37400cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37401# Files that config.status was made for.
37402config_files="$ac_config_files"
37403config_headers="$ac_config_headers"
37404config_commands="$ac_config_commands"
37405
37406_ACEOF
37407
37408cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37409ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000037410\`$as_me' instantiates files and other configuration actions
37411from templates according to the current configuration. Unless the files
37412and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000037413
cristy8b350f62009-11-15 23:12:43 +000037414Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000037415
37416 -h, --help print this help, then exit
37417 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000037418 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000037419 -q, --quiet, --silent
37420 do not print progress messages
37421 -d, --debug don't remove temporary files
37422 --recheck update $as_me by reconfiguring in the same conditions
37423 --file=FILE[:TEMPLATE]
37424 instantiate the configuration file FILE
37425 --header=FILE[:TEMPLATE]
37426 instantiate the configuration header FILE
37427
37428Configuration files:
37429$config_files
37430
37431Configuration headers:
37432$config_headers
37433
37434Configuration commands:
37435$config_commands
37436
cristy8b350f62009-11-15 23:12:43 +000037437Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000037438
37439_ACEOF
37440cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000037441ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000037442ac_cs_version="\\
cristy29eb34e2011-10-16 00:46:08 +000037443ImageMagick config.status 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +000037444configured by $0, generated by GNU Autoconf 2.69,
cristycd4c5312009-11-22 01:19:08 +000037445 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000037446
cristy14fefe52012-05-21 00:59:18 +000037447Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000037448This config.status script is free software; the Free Software Foundation
37449gives unlimited permission to copy, distribute and modify it."
37450
37451ac_pwd='$ac_pwd'
37452srcdir='$srcdir'
37453INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000037454MKDIR_P='$MKDIR_P'
37455AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000037456test -n "\$AWK" || AWK=awk
37457_ACEOF
37458
37459cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37460# The default lists apply if the user does not specify any file.
37461ac_need_defaults=:
37462while test $# != 0
37463do
37464 case $1 in
cristyda16f162011-02-19 23:52:17 +000037465 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000037466 ac_option=`expr "X$1" : 'X\([^=]*\)='`
37467 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
37468 ac_shift=:
37469 ;;
cristyda16f162011-02-19 23:52:17 +000037470 --*=)
37471 ac_option=`expr "X$1" : 'X\([^=]*\)='`
37472 ac_optarg=
37473 ac_shift=:
37474 ;;
cristy3ed852e2009-09-05 21:47:34 +000037475 *)
37476 ac_option=$1
37477 ac_optarg=$2
37478 ac_shift=shift
37479 ;;
37480 esac
37481
37482 case $ac_option in
37483 # Handling of the options.
37484 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
37485 ac_cs_recheck=: ;;
37486 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
37487 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000037488 --config | --confi | --conf | --con | --co | --c )
37489 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000037490 --debug | --debu | --deb | --de | --d | -d )
37491 debug=: ;;
37492 --file | --fil | --fi | --f )
37493 $ac_shift
37494 case $ac_optarg in
37495 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000037496 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000037497 esac
cristy8b350f62009-11-15 23:12:43 +000037498 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000037499 ac_need_defaults=false;;
37500 --header | --heade | --head | --hea )
37501 $ac_shift
37502 case $ac_optarg in
37503 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
37504 esac
cristy8b350f62009-11-15 23:12:43 +000037505 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000037506 ac_need_defaults=false;;
37507 --he | --h)
37508 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000037509 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000037510Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000037511 --help | --hel | -h )
37512 $as_echo "$ac_cs_usage"; exit ;;
37513 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
37514 | -silent | --silent | --silen | --sile | --sil | --si | --s)
37515 ac_cs_silent=: ;;
37516
37517 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000037518 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000037519Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000037520
cristy8b350f62009-11-15 23:12:43 +000037521 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000037522 ac_need_defaults=false ;;
37523
37524 esac
37525 shift
37526done
37527
37528ac_configure_extra_args=
37529
37530if $ac_cs_silent; then
37531 exec 6>/dev/null
37532 ac_configure_extra_args="$ac_configure_extra_args --silent"
37533fi
37534
37535_ACEOF
37536cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37537if \$ac_cs_recheck; then
cristy14fefe52012-05-21 00:59:18 +000037538 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
cristy3ed852e2009-09-05 21:47:34 +000037539 shift
37540 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
37541 CONFIG_SHELL='$SHELL'
37542 export CONFIG_SHELL
37543 exec "\$@"
37544fi
37545
37546_ACEOF
37547cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37548exec 5>>config.log
37549{
37550 echo
37551 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
37552## Running $as_me. ##
37553_ASBOX
37554 $as_echo "$ac_log"
37555} >&5
37556
37557_ACEOF
37558cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000037559#
37560# INIT-COMMANDS
37561#
37562PACKAGE="$PACKAGE"
37563AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
37564
37565
37566# The HP-UX ksh and POSIX shell print the target directory to stdout
37567# if CDPATH is set.
37568(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
37569
37570sed_quote_subst='$sed_quote_subst'
37571double_quote_subst='$double_quote_subst'
37572delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000037573SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
37574Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
37575GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
37576EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
37577FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
37578SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
37579ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
37580LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
37581macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
37582macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
37583AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
37584DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
37585OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
37586enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
37587enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
37588pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
37589enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
cristy99bd5232011-12-07 14:38:20 +000037590PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037591host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
37592host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
37593host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
37594build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
37595build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
37596build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
37597NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
37598LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
37599max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
37600ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
37601exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
37602lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
37603lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
37604lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037605lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
37606lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037607reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
37608reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
37609deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
37610file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037611file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
37612want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
37613sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037614AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
37615AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037616archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037617STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
37618RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
37619old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
37620old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
37621old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
37622lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
37623CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
37624CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
37625compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
37626GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
37627lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
37628lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
37629lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
37630lt_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 +000037631nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
37632lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037633objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
37634MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
37635lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037636lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037637lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037638lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
37639lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
37640need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037641MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037642DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
37643NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
37644LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
37645OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
37646OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
37647libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
37648shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
37649extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
37650archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
37651enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
37652export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
37653whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
37654compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
37655old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
37656old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
37657archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
37658archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
37659module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
37660module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
37661with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
37662allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
37663no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
37664hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037665hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
37666hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
37667hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
37668hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
37669hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
37670hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
37671inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
37672link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037673always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
37674export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
37675exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
37676include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
37677prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037678postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037679file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
37680variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
37681need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
37682need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
37683version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
37684runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
37685shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
37686shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
37687libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
37688library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
37689soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
37690install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
37691postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
37692postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
37693finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
37694finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
37695hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
37696sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
37697sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
37698hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
37699enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
37700enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
37701enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
37702old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
37703striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
37704compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
37705predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
37706postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
37707predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
37708postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
37709compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
37710LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
37711reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
37712reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37713old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37714compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
37715GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
37716lt_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 +000037717lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037718lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037719lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
37720lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
37721archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
37722enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
37723export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
37724whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
37725compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
37726old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37727old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37728archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37729archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37730module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37731module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37732with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
37733allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
37734no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
37735hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037736hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
37737hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
37738hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
37739hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
37740hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
37741hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
37742inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
37743link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037744always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
37745export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37746exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
37747include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
37748prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037749postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037750file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
37751hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
37752compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
37753predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
37754postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
37755predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
37756postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
37757compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000037758
37759LTCC='$LTCC'
37760LTCFLAGS='$LTCFLAGS'
37761compiler='$compiler_DEFAULT'
37762
cristy0c60a692010-11-04 01:09:47 +000037763# A function that is used when there is no print builtin or printf.
37764func_fallback_echo ()
37765{
37766 eval 'cat <<_LTECHO_EOF
37767\$1
37768_LTECHO_EOF'
37769}
37770
cristy73bd4a52010-10-05 11:24:23 +000037771# Quote evaled strings.
37772for var in SED \
37773GREP \
37774EGREP \
37775FGREP \
cristy0c60a692010-11-04 01:09:47 +000037776SHELL \
37777ECHO \
cristy73bd4a52010-10-05 11:24:23 +000037778LD \
cristy0c60a692010-11-04 01:09:47 +000037779AS \
37780DLLTOOL \
37781OBJDUMP \
cristy99bd5232011-12-07 14:38:20 +000037782PATH_SEPARATOR \
cristy73bd4a52010-10-05 11:24:23 +000037783NM \
37784LN_S \
37785lt_SP2NL \
37786lt_NL2SP \
37787reload_flag \
37788deplibs_check_method \
37789file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000037790file_magic_glob \
37791want_nocaseglob \
37792sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000037793AR \
37794AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000037795archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000037796STRIP \
37797RANLIB \
37798CC \
37799CFLAGS \
37800compiler \
37801lt_cv_sys_global_symbol_pipe \
37802lt_cv_sys_global_symbol_to_cdecl \
37803lt_cv_sys_global_symbol_to_c_name_address \
37804lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000037805nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000037806lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000037807lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000037808lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000037809lt_prog_compiler_static \
37810lt_cv_prog_compiler_c_o \
37811need_locks \
cristyda16f162011-02-19 23:52:17 +000037812MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000037813DSYMUTIL \
37814NMEDIT \
37815LIPO \
37816OTOOL \
37817OTOOL64 \
37818shrext_cmds \
37819export_dynamic_flag_spec \
37820whole_archive_flag_spec \
37821compiler_needs_object \
37822with_gnu_ld \
37823allow_undefined_flag \
37824no_undefined_flag \
37825hardcode_libdir_flag_spec \
cristy73bd4a52010-10-05 11:24:23 +000037826hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000037827exclude_expsyms \
37828include_expsyms \
37829file_list_spec \
37830variables_saved_for_relink \
37831libname_spec \
37832library_names_spec \
37833soname_spec \
cristy0c60a692010-11-04 01:09:47 +000037834install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000037835finish_eval \
37836old_striplib \
37837striplib \
37838compiler_lib_search_dirs \
37839predep_objects \
37840postdep_objects \
37841predeps \
37842postdeps \
37843compiler_lib_search_path \
37844LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000037845reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037846compiler_CXX \
37847lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037848lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000037849lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037850lt_prog_compiler_static_CXX \
37851lt_cv_prog_compiler_c_o_CXX \
37852export_dynamic_flag_spec_CXX \
37853whole_archive_flag_spec_CXX \
37854compiler_needs_object_CXX \
37855with_gnu_ld_CXX \
37856allow_undefined_flag_CXX \
37857no_undefined_flag_CXX \
37858hardcode_libdir_flag_spec_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037859hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037860exclude_expsyms_CXX \
37861include_expsyms_CXX \
37862file_list_spec_CXX \
37863compiler_lib_search_dirs_CXX \
37864predep_objects_CXX \
37865postdep_objects_CXX \
37866predeps_CXX \
37867postdeps_CXX \
37868compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000037869 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000037870 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000037871 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000037872 ;;
37873 *)
37874 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37875 ;;
37876 esac
37877done
37878
37879# Double-quote double-evaled strings.
37880for var in reload_cmds \
37881old_postinstall_cmds \
37882old_postuninstall_cmds \
37883old_archive_cmds \
37884extract_expsyms_cmds \
37885old_archive_from_new_cmds \
37886old_archive_from_expsyms_cmds \
37887archive_cmds \
37888archive_expsym_cmds \
37889module_cmds \
37890module_expsym_cmds \
37891export_symbols_cmds \
37892prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000037893postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000037894postinstall_cmds \
37895postuninstall_cmds \
37896finish_cmds \
37897sys_lib_search_path_spec \
37898sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000037899reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037900old_archive_cmds_CXX \
37901old_archive_from_new_cmds_CXX \
37902old_archive_from_expsyms_cmds_CXX \
37903archive_cmds_CXX \
37904archive_expsym_cmds_CXX \
37905module_cmds_CXX \
37906module_expsym_cmds_CXX \
37907export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000037908prelink_cmds_CXX \
37909postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000037910 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000037911 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000037912 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000037913 ;;
37914 *)
37915 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37916 ;;
37917 esac
37918done
37919
cristy73bd4a52010-10-05 11:24:23 +000037920ac_aux_dir='$ac_aux_dir'
37921xsi_shell='$xsi_shell'
37922lt_shell_append='$lt_shell_append'
37923
37924# See if we are running on zsh, and set the options which allow our
37925# commands through without removal of \ escapes INIT.
37926if test -n "\${ZSH_VERSION+set}" ; then
37927 setopt NO_GLOB_SUBST
37928fi
37929
37930
37931 PACKAGE='$PACKAGE'
37932 VERSION='$VERSION'
37933 TIMESTAMP='$TIMESTAMP'
37934 RM='$RM'
37935 ofile='$ofile'
37936
37937
37938
37939
37940
37941
cristy3ed852e2009-09-05 21:47:34 +000037942_ACEOF
37943
37944cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37945
37946# Handling of arguments.
37947for ac_config_target in $ac_config_targets
37948do
37949 case $ac_config_target in
37950 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy01ff9f32012-12-01 18:15:29 +000037951 "MagickCore/magick-baseconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-baseconfig.h" ;;
cristy9af1cbf2014-12-28 22:03:09 +000037952 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
37953 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
37954 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
37955 "magick.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS magick.sh.in" ;;
37956 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
37957 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
37958 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
37959 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
cristy305c5dd2012-09-13 00:30:13 +000037960 "common.shi") CONFIG_FILES="$CONFIG_FILES common.shi" ;;
cristy3ed852e2009-09-05 21:47:34 +000037961 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
37962 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
37963 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
37964 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
37965 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy2df32802012-09-17 01:15:28 +000037966 "config/Magick++.dox") CONFIG_FILES="$CONFIG_FILES config/Magick++.dox" ;;
cristy5a3dc992014-12-05 19:50:04 +000037967 "config/type-apple.xml") CONFIG_FILES="$CONFIG_FILES config/type-apple.xml" ;;
cristy430a7312010-01-21 20:44:04 +000037968 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000037969 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
37970 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
37971 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
37972 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
37973 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000037974 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000037975 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000037976 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
37977 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
37978 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000037979 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
37980 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
cristy3ed852e2009-09-05 21:47:34 +000037981 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
cristy8d0ff762013-03-10 20:33:28 +000037982 "PerlMagick/default/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Magick.pm" ;;
cristy3e049f82013-02-13 13:26:53 +000037983 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
cristy8d0ff762013-03-10 20:33:28 +000037984 "PerlMagick/default/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Makefile.PL" ;;
cristycf0cbcc2013-02-13 23:32:58 +000037985 "PerlMagick/quantum/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/Makefile.PL" ;;
37986 "PerlMagick/quantum/quantum.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.pm" ;;
37987 "PerlMagick/quantum/quantum.xs") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.xs" ;;
37988 "PerlMagick/quantum/typemap") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/typemap" ;;
cristy3ed852e2009-09-05 21:47:34 +000037989 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
37990 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
37991 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
37992 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
37993 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
37994 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
37995 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
37996 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
37997 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
37998 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
37999 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
38000 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000038001 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
38002 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000038003
cristy98dddb52010-11-04 00:30:15 +000038004 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000038005 esac
38006done
38007
38008
38009# If the user did not use the arguments to specify the items to instantiate,
38010# then the envvar interface is used. Set only those that are not.
38011# We use the long form for the default assignment because of an extremely
38012# bizarre bug on SunOS 4.1.3.
38013if $ac_need_defaults; then
38014 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
38015 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
38016 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
38017fi
38018
38019# Have a temporary directory for convenience. Make it in the build tree
38020# simply because there is no reason against having it here, and in addition,
38021# creating and moving files from /tmp can sometimes cause problems.
38022# Hook for its removal unless debugging.
38023# Note that there is a small window in which the directory will not be cleaned:
38024# after its creation but before its name has been assigned to `$tmp'.
38025$debug ||
38026{
cristyda16f162011-02-19 23:52:17 +000038027 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000038028 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000038029 : "${ac_tmp:=$tmp}"
38030 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000038031' 0
cristy8b350f62009-11-15 23:12:43 +000038032 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000038033}
38034# Create a (secure) tmp directory for tmp files.
38035
38036{
38037 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000038038 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000038039} ||
38040{
38041 tmp=./conf$$-$RANDOM
38042 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000038043} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000038044ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000038045
38046# Set up the scripts for CONFIG_FILES section.
38047# No need to generate them if there are no CONFIG_FILES.
38048# This happens for instance with `./config.status config.h'.
38049if test -n "$CONFIG_FILES"; then
38050
38051
cristy8b350f62009-11-15 23:12:43 +000038052ac_cr=`echo X | tr X '\015'`
38053# On cygwin, bash can eat \r inside `` if the user requested igncr.
38054# But we know of no other shell where ac_cr would be empty at this
38055# point, so we can use a bashism as a fallback.
38056if test "x$ac_cr" = x; then
38057 eval ac_cr=\$\'\\r\'
38058fi
cristy3ed852e2009-09-05 21:47:34 +000038059ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
38060if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000038061 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000038062else
38063 ac_cs_awk_cr=$ac_cr
38064fi
38065
cristyda16f162011-02-19 23:52:17 +000038066echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000038067_ACEOF
38068
38069
38070{
38071 echo "cat >conf$$subs.awk <<_ACEOF" &&
38072 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
38073 echo "_ACEOF"
38074} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000038075 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
38076ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000038077ac_delim='%!_!# '
38078for ac_last_try in false false false false false :; do
38079 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000038080 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038081
38082 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
38083 if test $ac_delim_n = $ac_delim_num; then
38084 break
38085 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000038086 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038087 else
38088 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
38089 fi
38090done
38091rm -f conf$$subs.sh
38092
38093cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000038094cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000038095_ACEOF
38096sed -n '
38097h
38098s/^/S["/; s/!.*/"]=/
38099p
38100g
38101s/^[^!]*!//
38102:repl
38103t repl
38104s/'"$ac_delim"'$//
38105t delim
38106:nl
38107h
cristycd4c5312009-11-22 01:19:08 +000038108s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000038109t more1
38110s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
38111p
38112n
38113b repl
38114:more1
38115s/["\\]/\\&/g; s/^/"/; s/$/"\\/
38116p
38117g
38118s/.\{148\}//
38119t nl
38120:delim
38121h
cristycd4c5312009-11-22 01:19:08 +000038122s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000038123t more2
38124s/["\\]/\\&/g; s/^/"/; s/$/"/
38125p
38126b
38127:more2
38128s/["\\]/\\&/g; s/^/"/; s/$/"\\/
38129p
38130g
38131s/.\{148\}//
38132t delim
38133' <conf$$subs.awk | sed '
38134/^[^""]/{
38135 N
38136 s/\n//
38137}
38138' >>$CONFIG_STATUS || ac_write_fail=1
38139rm -f conf$$subs.awk
38140cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38141_ACAWK
cristyda16f162011-02-19 23:52:17 +000038142cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000038143 for (key in S) S_is_set[key] = 1
38144 FS = ""
38145
38146}
38147{
38148 line = $ 0
38149 nfields = split(line, field, "@")
38150 substed = 0
38151 len = length(field[1])
38152 for (i = 2; i < nfields; i++) {
38153 key = field[i]
38154 keylen = length(key)
38155 if (S_is_set[key]) {
38156 value = S[key]
38157 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
38158 len += length(value) + length(field[++i])
38159 substed = 1
38160 } else
38161 len += 1 + keylen
38162 }
38163
38164 print line
38165}
38166
38167_ACAWK
38168_ACEOF
38169cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38170if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
38171 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
38172else
38173 cat
cristyda16f162011-02-19 23:52:17 +000038174fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000038175 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038176_ACEOF
38177
cristy98dddb52010-11-04 00:30:15 +000038178# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
38179# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000038180# trailing colons and then remove the whole line if VPATH becomes empty
38181# (actually we leave an empty line to preserve line numbers).
38182if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000038183 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
38184h
38185s///
38186s/^/:/
38187s/[ ]*$/:/
38188s/:\$(srcdir):/:/g
38189s/:\${srcdir}:/:/g
38190s/:@srcdir@:/:/g
38191s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000038192s/:*$//
cristy98dddb52010-11-04 00:30:15 +000038193x
38194s/\(=[ ]*\).*/\1/
38195G
38196s/\n//
cristy3ed852e2009-09-05 21:47:34 +000038197s/^[^=]*=[ ]*$//
38198}'
38199fi
38200
38201cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38202fi # test -n "$CONFIG_FILES"
38203
38204# Set up the scripts for CONFIG_HEADERS section.
38205# No need to generate them if there are no CONFIG_HEADERS.
38206# This happens for instance with `./config.status Makefile'.
38207if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000038208cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000038209BEGIN {
38210_ACEOF
38211
38212# Transform confdefs.h into an awk script `defines.awk', embedded as
38213# here-document in config.status, that substitutes the proper values into
38214# config.h.in to produce config.h.
38215
38216# Create a delimiter string that does not exist in confdefs.h, to ease
38217# handling of long lines.
38218ac_delim='%!_!# '
38219for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000038220 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
38221 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000038222 break
38223 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000038224 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038225 else
38226 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
38227 fi
38228done
38229
38230# For the awk script, D is an array of macro values keyed by name,
38231# likewise P contains macro parameters if any. Preserve backslash
38232# newline sequences.
38233
38234ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
38235sed -n '
38236s/.\{148\}/&'"$ac_delim"'/g
38237t rset
38238:rset
38239s/^[ ]*#[ ]*define[ ][ ]*/ /
38240t def
38241d
38242:def
38243s/\\$//
38244t bsnl
38245s/["\\]/\\&/g
38246s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
38247D["\1"]=" \3"/p
38248s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
38249d
38250:bsnl
38251s/["\\]/\\&/g
38252s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
38253D["\1"]=" \3\\\\\\n"\\/p
38254t cont
38255s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
38256t cont
38257d
38258:cont
38259n
38260s/.\{148\}/&'"$ac_delim"'/g
38261t clear
38262:clear
38263s/\\$//
38264t bsnlc
38265s/["\\]/\\&/g; s/^/"/; s/$/"/p
38266d
38267:bsnlc
38268s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
38269b cont
38270' <confdefs.h | sed '
38271s/'"$ac_delim"'/"\\\
38272"/g' >>$CONFIG_STATUS || ac_write_fail=1
38273
38274cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38275 for (key in D) D_is_set[key] = 1
38276 FS = ""
38277}
38278/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
38279 line = \$ 0
38280 split(line, arg, " ")
38281 if (arg[1] == "#") {
38282 defundef = arg[2]
38283 mac1 = arg[3]
38284 } else {
38285 defundef = substr(arg[1], 2)
38286 mac1 = arg[2]
38287 }
38288 split(mac1, mac2, "(") #)
38289 macro = mac2[1]
38290 prefix = substr(line, 1, index(line, defundef) - 1)
38291 if (D_is_set[macro]) {
38292 # Preserve the white space surrounding the "#".
38293 print prefix "define", macro P[macro] D[macro]
38294 next
38295 } else {
38296 # Replace #undef with comments. This is necessary, for example,
38297 # in the case of _POSIX_SOURCE, which is predefined and required
38298 # on some systems where configure will not decide to define it.
38299 if (defundef == "undef") {
38300 print "/*", prefix defundef, macro, "*/"
38301 next
38302 }
38303 }
38304}
38305{ print }
38306_ACAWK
38307_ACEOF
38308cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000038309 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038310fi # test -n "$CONFIG_HEADERS"
38311
38312
38313eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
38314shift
38315for ac_tag
38316do
38317 case $ac_tag in
38318 :[FHLC]) ac_mode=$ac_tag; continue;;
38319 esac
38320 case $ac_mode$ac_tag in
38321 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000038322 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000038323 :[FH]-) ac_tag=-:-;;
38324 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
38325 esac
38326 ac_save_IFS=$IFS
38327 IFS=:
38328 set x $ac_tag
38329 IFS=$ac_save_IFS
38330 shift
38331 ac_file=$1
38332 shift
38333
38334 case $ac_mode in
38335 :L) ac_source=$1;;
38336 :[FH])
38337 ac_file_inputs=
38338 for ac_f
38339 do
38340 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000038341 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000038342 *) # Look for the file first in the build tree, then in the source tree
38343 # (if the path is not absolute). The absolute path cannot be DOS-style,
38344 # because $ac_f cannot contain `:'.
38345 test -f "$ac_f" ||
38346 case $ac_f in
38347 [\\/$]*) false;;
38348 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
38349 esac ||
cristy98dddb52010-11-04 00:30:15 +000038350 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000038351 esac
38352 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000038353 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000038354 done
38355
38356 # Let's still pretend it is `configure' which instantiates (i.e., don't
38357 # use $as_me), people would be surprised to read:
38358 # /* config.h. Generated by config.status. */
38359 configure_input='Generated from '`
38360 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
38361 `' by configure.'
38362 if test x"$ac_file" != x-; then
38363 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000038364 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000038365$as_echo "$as_me: creating $ac_file" >&6;}
38366 fi
38367 # Neutralize special characters interpreted by sed in replacement strings.
38368 case $configure_input in #(
38369 *\&* | *\|* | *\\* )
38370 ac_sed_conf_input=`$as_echo "$configure_input" |
38371 sed 's/[\\\\&|]/\\\\&/g'`;; #(
38372 *) ac_sed_conf_input=$configure_input;;
38373 esac
38374
38375 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000038376 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000038377 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000038378 esac
38379 ;;
38380 esac
38381
38382 ac_dir=`$as_dirname -- "$ac_file" ||
38383$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38384 X"$ac_file" : 'X\(//\)[^/]' \| \
38385 X"$ac_file" : 'X\(//\)$' \| \
38386 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
38387$as_echo X"$ac_file" |
38388 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38389 s//\1/
38390 q
38391 }
38392 /^X\(\/\/\)[^/].*/{
38393 s//\1/
38394 q
38395 }
38396 /^X\(\/\/\)$/{
38397 s//\1/
38398 q
38399 }
38400 /^X\(\/\).*/{
38401 s//\1/
38402 q
38403 }
38404 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000038405 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000038406 ac_builddir=.
38407
38408case "$ac_dir" in
38409.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
38410*)
38411 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
38412 # A ".." for each directory in $ac_dir_suffix.
38413 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
38414 case $ac_top_builddir_sub in
38415 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
38416 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
38417 esac ;;
38418esac
38419ac_abs_top_builddir=$ac_pwd
38420ac_abs_builddir=$ac_pwd$ac_dir_suffix
38421# for backward compatibility:
38422ac_top_builddir=$ac_top_build_prefix
38423
38424case $srcdir in
38425 .) # We are building in place.
38426 ac_srcdir=.
38427 ac_top_srcdir=$ac_top_builddir_sub
38428 ac_abs_top_srcdir=$ac_pwd ;;
38429 [\\/]* | ?:[\\/]* ) # Absolute name.
38430 ac_srcdir=$srcdir$ac_dir_suffix;
38431 ac_top_srcdir=$srcdir
38432 ac_abs_top_srcdir=$srcdir ;;
38433 *) # Relative name.
38434 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
38435 ac_top_srcdir=$ac_top_build_prefix$srcdir
38436 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
38437esac
38438ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
38439
38440
38441 case $ac_mode in
38442 :F)
38443 #
38444 # CONFIG_FILE
38445 #
38446
38447 case $INSTALL in
38448 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
38449 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
38450 esac
cristy73bd4a52010-10-05 11:24:23 +000038451 ac_MKDIR_P=$MKDIR_P
38452 case $MKDIR_P in
38453 [\\/$]* | ?:[\\/]* ) ;;
38454 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
38455 esac
cristy3ed852e2009-09-05 21:47:34 +000038456_ACEOF
38457
38458cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38459# If the template does not know about datarootdir, expand it.
38460# FIXME: This hack should be removed a few years after 2.60.
38461ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000038462ac_sed_dataroot='
38463/datarootdir/ {
38464 p
38465 q
38466}
38467/@datadir@/p
38468/@docdir@/p
38469/@infodir@/p
38470/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000038471/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000038472case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
38473*datarootdir*) ac_datarootdir_seen=yes;;
38474*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000038475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000038476$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
38477_ACEOF
38478cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38479 ac_datarootdir_hack='
38480 s&@datadir@&$datadir&g
38481 s&@docdir@&$docdir&g
38482 s&@infodir@&$infodir&g
38483 s&@localedir@&$localedir&g
38484 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000038485 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000038486esac
38487_ACEOF
38488
38489# Neutralize VPATH when `$srcdir' = `.'.
38490# Shell code in configure.ac might set extrasub.
38491# FIXME: do we really want to maintain this feature?
38492cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38493ac_sed_extra="$ac_vpsub
38494$extrasub
38495_ACEOF
38496cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38497:t
38498/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
38499s|@configure_input@|$ac_sed_conf_input|;t t
38500s&@top_builddir@&$ac_top_builddir_sub&;t t
38501s&@top_build_prefix@&$ac_top_build_prefix&;t t
38502s&@srcdir@&$ac_srcdir&;t t
38503s&@abs_srcdir@&$ac_abs_srcdir&;t t
38504s&@top_srcdir@&$ac_top_srcdir&;t t
38505s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
38506s&@builddir@&$ac_builddir&;t t
38507s&@abs_builddir@&$ac_abs_builddir&;t t
38508s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
38509s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000038510s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000038511$ac_datarootdir_hack
38512"
cristyda16f162011-02-19 23:52:17 +000038513eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
38514 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038515
38516test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000038517 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
38518 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
38519 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000038520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000038521which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000038522$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000038523which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000038524
cristyda16f162011-02-19 23:52:17 +000038525 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000038526 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000038527 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
38528 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000038529 esac \
cristy98dddb52010-11-04 00:30:15 +000038530 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038531 ;;
38532 :H)
38533 #
38534 # CONFIG_HEADER
38535 #
38536 if test x"$ac_file" != x-; then
38537 {
38538 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000038539 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
38540 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000038541 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000038542 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000038543 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000038544$as_echo "$as_me: $ac_file is unchanged" >&6;}
38545 else
38546 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000038547 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000038548 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038549 fi
38550 else
38551 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000038552 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000038553 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038554 fi
cristy73bd4a52010-10-05 11:24:23 +000038555# Compute "$ac_file"'s index in $config_headers.
38556_am_arg="$ac_file"
38557_am_stamp_count=1
38558for _am_header in $config_headers :; do
38559 case $_am_header in
38560 $_am_arg | $_am_arg:* )
38561 break ;;
38562 * )
38563 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
38564 esac
38565done
38566echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
38567$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38568 X"$_am_arg" : 'X\(//\)[^/]' \| \
38569 X"$_am_arg" : 'X\(//\)$' \| \
38570 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
38571$as_echo X"$_am_arg" |
38572 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38573 s//\1/
38574 q
38575 }
38576 /^X\(\/\/\)[^/].*/{
38577 s//\1/
38578 q
38579 }
38580 /^X\(\/\/\)$/{
38581 s//\1/
38582 q
38583 }
38584 /^X\(\/\).*/{
38585 s//\1/
38586 q
38587 }
38588 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000038589 ;;
38590
cristy8b350f62009-11-15 23:12:43 +000038591 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000038592$as_echo "$as_me: executing $ac_file commands" >&6;}
38593 ;;
38594 esac
38595
38596
38597 case $ac_file$ac_mode in
cristy01ff9f32012-12-01 18:15:29 +000038598 "MagickCore/magick-baseconfig.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-baseconfig.h`
cristy73bd4a52010-10-05 11:24:23 +000038599ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
38600ac_prefix_conf_PKG=`echo MagickCore`
38601ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
38602ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
38603ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
38604if test ".$ac_prefix_conf_INP" = "."; then
38605 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
38606 case "$ac_file" in
38607 *.h) ac_prefix_conf_INP=$ac_file ;;
38608 *)
38609 esac
38610 test ".$ac_prefix_conf_INP" != "." && break
38611 done
38612fi
38613if test ".$ac_prefix_conf_INP" = "."; then
38614 case "$ac_prefix_conf_OUT" in
38615 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
38616 ;;
38617 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
38618 ;;
38619 *) ac_prefix_conf_INP=config.h
38620 ;;
38621 esac
38622fi
38623if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000038624 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000038625else
38626 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
38627 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
38628 fi fi
38629 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
38630$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
38631 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000038632 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
38633 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
38634 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
38635 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
38636 $as_echo "#endif/" >> conftest.prefix
38637 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
38638 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
38639 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000038640 # now executing _script on _DEF input to create _OUT output file
38641 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
38642 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
38643 echo ' ' >>$tmp/pconfig.h
38644 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
38645
38646 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
38647 echo ' ' >>$tmp/pconfig.h
38648 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
38649 echo "#endif" >>$tmp/pconfig.h
38650 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
38651 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
38652$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
38653 else
38654 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
38655$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38656 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
38657 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
38658 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
38659$as_echo X"$ac_prefix_conf_OUT" |
38660 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38661 s//\1/
38662 q
38663 }
38664 /^X\(\/\/\)[^/].*/{
38665 s//\1/
38666 q
38667 }
38668 /^X\(\/\/\)$/{
38669 s//\1/
38670 q
38671 }
38672 /^X\(\/\).*/{
38673 s//\1/
38674 q
38675 }
38676 s/.*/./; q'`
38677 as_dir="$ac_dir"; as_fn_mkdir_p
38678 rm -f "$ac_prefix_conf_OUT"
38679 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
38680 fi
cristy73bd4a52010-10-05 11:24:23 +000038681 else
cristy98dddb52010-11-04 00:30:15 +000038682 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 +000038683 fi
38684 rm -f conftest.*
38685fi
38686 ;;
38687 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
cristy58d34aa2013-01-24 15:11:54 +000038688 # Older Autoconf quotes --file arguments for eval, but not when files
cristy73bd4a52010-10-05 11:24:23 +000038689 # are listed without --file. Let's play safe and only enable the eval
38690 # if we detect the quoting.
38691 case $CONFIG_FILES in
38692 *\'*) eval set x "$CONFIG_FILES" ;;
38693 *) set x $CONFIG_FILES ;;
38694 esac
38695 shift
38696 for mf
38697 do
38698 # Strip MF so we end up with the name of the file.
38699 mf=`echo "$mf" | sed -e 's/:.*$//'`
38700 # Check whether this is an Automake generated Makefile or not.
cristyc0890a62012-07-19 00:18:20 +000038701 # We used to match only the files named 'Makefile.in', but
cristy73bd4a52010-10-05 11:24:23 +000038702 # some people rename them; so instead we look at the file content.
38703 # Grep'ing the first line is not enough: some people post-process
38704 # each Makefile.in and add a new line on top of each file to say so.
38705 # Grep'ing the whole file is not good either: AIX grep has a line
38706 # limit of 2048, but all sed's we know have understand at least 4000.
38707 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
38708 dirpart=`$as_dirname -- "$mf" ||
38709$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38710 X"$mf" : 'X\(//\)[^/]' \| \
38711 X"$mf" : 'X\(//\)$' \| \
38712 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
38713$as_echo X"$mf" |
38714 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38715 s//\1/
38716 q
38717 }
38718 /^X\(\/\/\)[^/].*/{
38719 s//\1/
38720 q
38721 }
38722 /^X\(\/\/\)$/{
38723 s//\1/
38724 q
38725 }
38726 /^X\(\/\).*/{
38727 s//\1/
38728 q
38729 }
38730 s/.*/./; q'`
38731 else
38732 continue
38733 fi
38734 # Extract the definition of DEPDIR, am__include, and am__quote
cristyc0890a62012-07-19 00:18:20 +000038735 # from the Makefile without running 'make'.
cristy73bd4a52010-10-05 11:24:23 +000038736 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
38737 test -z "$DEPDIR" && continue
38738 am__include=`sed -n 's/^am__include = //p' < "$mf"`
cristybced8142013-05-31 01:23:57 +000038739 test -z "$am__include" && continue
cristy73bd4a52010-10-05 11:24:23 +000038740 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
cristy73bd4a52010-10-05 11:24:23 +000038741 # Find all dependency output files, they are included files with
38742 # $(DEPDIR) in their names. We invoke sed twice because it is the
38743 # simplest approach to changing $(DEPDIR) to its actual value in the
38744 # expansion.
38745 for file in `sed -n "
38746 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
cristyc0890a62012-07-19 00:18:20 +000038747 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
cristy73bd4a52010-10-05 11:24:23 +000038748 # Make sure the directory exists.
38749 test -f "$dirpart/$file" && continue
38750 fdir=`$as_dirname -- "$file" ||
38751$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38752 X"$file" : 'X\(//\)[^/]' \| \
38753 X"$file" : 'X\(//\)$' \| \
38754 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
38755$as_echo X"$file" |
38756 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38757 s//\1/
38758 q
38759 }
38760 /^X\(\/\/\)[^/].*/{
38761 s//\1/
38762 q
38763 }
38764 /^X\(\/\/\)$/{
38765 s//\1/
38766 q
38767 }
38768 /^X\(\/\).*/{
38769 s//\1/
38770 q
38771 }
38772 s/.*/./; q'`
38773 as_dir=$dirpart/$fdir; as_fn_mkdir_p
38774 # echo "creating $dirpart/$file"
38775 echo '# dummy' > "$dirpart/$file"
38776 done
38777 done
38778}
38779 ;;
38780 "libtool":C)
38781
38782 # See if we are running on zsh, and set the options which allow our
38783 # commands through without removal of \ escapes.
38784 if test -n "${ZSH_VERSION+set}" ; then
38785 setopt NO_GLOB_SUBST
38786 fi
38787
38788 cfgfile="${ofile}T"
38789 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
38790 $RM "$cfgfile"
38791
38792 cat <<_LT_EOF >> "$cfgfile"
38793#! $SHELL
38794
38795# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
38796# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
38797# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
38798# NOTE: Changes made to this file will be lost: look at ltmain.sh.
38799#
38800# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy99bd5232011-12-07 14:38:20 +000038801# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
38802# Foundation, Inc.
cristy73bd4a52010-10-05 11:24:23 +000038803# Written by Gordon Matzigkeit, 1996
38804#
38805# This file is part of GNU Libtool.
38806#
38807# GNU Libtool is free software; you can redistribute it and/or
38808# modify it under the terms of the GNU General Public License as
38809# published by the Free Software Foundation; either version 2 of
38810# the License, or (at your option) any later version.
38811#
38812# As a special exception to the GNU General Public License,
38813# if you distribute this file as part of a program or library that
38814# is built using GNU Libtool, you may include this file under the
38815# same distribution terms that you use for the rest of that program.
38816#
38817# GNU Libtool is distributed in the hope that it will be useful,
38818# but WITHOUT ANY WARRANTY; without even the implied warranty of
38819# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
38820# GNU General Public License for more details.
38821#
38822# You should have received a copy of the GNU General Public License
38823# along with GNU Libtool; see the file COPYING. If not, a copy
38824# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
38825# obtained by writing to the Free Software Foundation, Inc.,
38826# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
38827
38828
38829# The names of the tagged configurations supported by this script.
38830available_tags="CXX "
38831
38832# ### BEGIN LIBTOOL CONFIG
38833
38834# A sed program that does not truncate output.
38835SED=$lt_SED
38836
38837# Sed that helps us avoid accidentally triggering echo(1) options like -n.
38838Xsed="\$SED -e 1s/^X//"
38839
38840# A grep program that handles long lines.
38841GREP=$lt_GREP
38842
38843# An ERE matcher.
38844EGREP=$lt_EGREP
38845
38846# A literal string matcher.
38847FGREP=$lt_FGREP
38848
cristy0c60a692010-11-04 01:09:47 +000038849# Shell to use when invoking shell scripts.
38850SHELL=$lt_SHELL
38851
38852# An echo program that protects backslashes.
38853ECHO=$lt_ECHO
38854
cristy73bd4a52010-10-05 11:24:23 +000038855# Which release of libtool.m4 was used?
38856macro_version=$macro_version
38857macro_revision=$macro_revision
38858
38859# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000038860AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000038861
38862# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000038863DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000038864
38865# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000038866OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000038867
38868# Whether or not to build shared libraries.
38869build_libtool_libs=$enable_shared
38870
38871# Whether or not to build static libraries.
38872build_old_libs=$enable_static
38873
38874# What type of objects to build.
38875pic_mode=$pic_mode
38876
38877# Whether or not to optimize for fast installation.
38878fast_install=$enable_fast_install
38879
cristy99bd5232011-12-07 14:38:20 +000038880# The PATH separator for the build system.
38881PATH_SEPARATOR=$lt_PATH_SEPARATOR
38882
cristy73bd4a52010-10-05 11:24:23 +000038883# The host system.
38884host_alias=$host_alias
38885host=$host
38886host_os=$host_os
38887
38888# The build system.
38889build_alias=$build_alias
38890build=$build
38891build_os=$build_os
38892
38893# A BSD- or MS-compatible name lister.
38894NM=$lt_NM
38895
38896# Whether we need soft or hard links.
38897LN_S=$lt_LN_S
38898
38899# What is the maximum length of a command?
38900max_cmd_len=$max_cmd_len
38901
38902# Object file suffix (normally "o").
38903objext=$ac_objext
38904
38905# Executable file suffix (normally "").
38906exeext=$exeext
38907
38908# whether the shell understands "unset".
38909lt_unset=$lt_unset
38910
38911# turn spaces into newlines.
38912SP2NL=$lt_lt_SP2NL
38913
38914# turn newlines into spaces.
38915NL2SP=$lt_lt_NL2SP
38916
cristyda16f162011-02-19 23:52:17 +000038917# convert \$build file names to \$host format.
38918to_host_file_cmd=$lt_cv_to_host_file_cmd
38919
38920# convert \$build files to toolchain format.
38921to_tool_file_cmd=$lt_cv_to_tool_file_cmd
38922
cristy73bd4a52010-10-05 11:24:23 +000038923# Method to check whether dependent libraries are shared objects.
38924deplibs_check_method=$lt_deplibs_check_method
38925
cristyda16f162011-02-19 23:52:17 +000038926# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000038927file_magic_cmd=$lt_file_magic_cmd
38928
cristyda16f162011-02-19 23:52:17 +000038929# How to find potential files when deplibs_check_method = "file_magic".
38930file_magic_glob=$lt_file_magic_glob
38931
38932# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
38933want_nocaseglob=$lt_want_nocaseglob
38934
38935# Command to associate shared and link libraries.
38936sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
38937
cristy73bd4a52010-10-05 11:24:23 +000038938# The archiver.
38939AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000038940
38941# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000038942AR_FLAGS=$lt_AR_FLAGS
38943
cristyda16f162011-02-19 23:52:17 +000038944# How to feed a file listing to the archiver.
38945archiver_list_spec=$lt_archiver_list_spec
38946
cristy73bd4a52010-10-05 11:24:23 +000038947# A symbol stripping program.
38948STRIP=$lt_STRIP
38949
38950# Commands used to install an old-style archive.
38951RANLIB=$lt_RANLIB
38952old_postinstall_cmds=$lt_old_postinstall_cmds
38953old_postuninstall_cmds=$lt_old_postuninstall_cmds
38954
cristy0c60a692010-11-04 01:09:47 +000038955# Whether to use a lock for old archive extraction.
38956lock_old_archive_extraction=$lock_old_archive_extraction
38957
cristy73bd4a52010-10-05 11:24:23 +000038958# A C compiler.
38959LTCC=$lt_CC
38960
38961# LTCC compiler flags.
38962LTCFLAGS=$lt_CFLAGS
38963
38964# Take the output of nm and produce a listing of raw symbols and C names.
38965global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
38966
38967# Transform the output of nm in a proper C declaration.
38968global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
38969
38970# Transform the output of nm in a C name address pair.
38971global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
38972
38973# Transform the output of nm in a C name address pair when lib prefix is needed.
38974global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
38975
cristyda16f162011-02-19 23:52:17 +000038976# Specify filename containing input files for \$NM.
38977nm_file_list_spec=$lt_nm_file_list_spec
38978
38979# The root where to search for dependent libraries,and in which our libraries should be installed.
38980lt_sysroot=$lt_sysroot
38981
cristy73bd4a52010-10-05 11:24:23 +000038982# The name of the directory that contains temporary libtool files.
38983objdir=$objdir
38984
cristy73bd4a52010-10-05 11:24:23 +000038985# Used to examine libraries when file_magic_cmd begins with "file".
38986MAGIC_CMD=$MAGIC_CMD
38987
38988# Must we lock files when doing compilation?
38989need_locks=$lt_need_locks
38990
cristyda16f162011-02-19 23:52:17 +000038991# Manifest tool.
38992MANIFEST_TOOL=$lt_MANIFEST_TOOL
38993
cristy73bd4a52010-10-05 11:24:23 +000038994# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
38995DSYMUTIL=$lt_DSYMUTIL
38996
38997# Tool to change global to local symbols on Mac OS X.
38998NMEDIT=$lt_NMEDIT
38999
39000# Tool to manipulate fat objects and archives on Mac OS X.
39001LIPO=$lt_LIPO
39002
39003# ldd/readelf like tool for Mach-O binaries on Mac OS X.
39004OTOOL=$lt_OTOOL
39005
39006# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
39007OTOOL64=$lt_OTOOL64
39008
39009# Old archive suffix (normally "a").
39010libext=$libext
39011
39012# Shared library suffix (normally ".so").
39013shrext_cmds=$lt_shrext_cmds
39014
39015# The commands to extract the exported symbol list from a shared archive.
39016extract_expsyms_cmds=$lt_extract_expsyms_cmds
39017
39018# Variables whose values should be saved in libtool wrapper scripts and
39019# restored at link time.
39020variables_saved_for_relink=$lt_variables_saved_for_relink
39021
39022# Do we need the "lib" prefix for modules?
39023need_lib_prefix=$need_lib_prefix
39024
39025# Do we need a version for libraries?
39026need_version=$need_version
39027
39028# Library versioning type.
39029version_type=$version_type
39030
39031# Shared library runtime path variable.
39032runpath_var=$runpath_var
39033
39034# Shared library path variable.
39035shlibpath_var=$shlibpath_var
39036
39037# Is shlibpath searched before the hard-coded library search path?
39038shlibpath_overrides_runpath=$shlibpath_overrides_runpath
39039
39040# Format of library name prefix.
39041libname_spec=$lt_libname_spec
39042
39043# List of archive names. First name is the real one, the rest are links.
39044# The last name is the one that the linker finds with -lNAME
39045library_names_spec=$lt_library_names_spec
39046
39047# The coded name of the library, if different from the real name.
39048soname_spec=$lt_soname_spec
39049
cristy0c60a692010-11-04 01:09:47 +000039050# Permission mode override for installation of shared libraries.
39051install_override_mode=$lt_install_override_mode
39052
cristy73bd4a52010-10-05 11:24:23 +000039053# Command to use after installation of a shared archive.
39054postinstall_cmds=$lt_postinstall_cmds
39055
39056# Command to use after uninstallation of a shared archive.
39057postuninstall_cmds=$lt_postuninstall_cmds
39058
39059# Commands used to finish a libtool library installation in a directory.
39060finish_cmds=$lt_finish_cmds
39061
39062# As "finish_cmds", except a single script fragment to be evaled but
39063# not shown.
39064finish_eval=$lt_finish_eval
39065
39066# Whether we should hardcode library paths into libraries.
39067hardcode_into_libs=$hardcode_into_libs
39068
39069# Compile-time system search path for libraries.
39070sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
39071
39072# Run-time system search path for libraries.
39073sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
39074
39075# Whether dlopen is supported.
39076dlopen_support=$enable_dlopen
39077
39078# Whether dlopen of programs is supported.
39079dlopen_self=$enable_dlopen_self
39080
39081# Whether dlopen of statically linked programs is supported.
39082dlopen_self_static=$enable_dlopen_self_static
39083
39084# Commands to strip libraries.
39085old_striplib=$lt_old_striplib
39086striplib=$lt_striplib
39087
39088
39089# The linker used to build libraries.
39090LD=$lt_LD
39091
cristy0c60a692010-11-04 01:09:47 +000039092# How to create reloadable object files.
39093reload_flag=$lt_reload_flag
39094reload_cmds=$lt_reload_cmds
39095
cristy73bd4a52010-10-05 11:24:23 +000039096# Commands used to build an old-style archive.
39097old_archive_cmds=$lt_old_archive_cmds
39098
39099# A language specific compiler.
39100CC=$lt_compiler
39101
39102# Is the compiler the GNU compiler?
39103with_gcc=$GCC
39104
39105# Compiler flag to turn off builtin functions.
39106no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
39107
cristy73bd4a52010-10-05 11:24:23 +000039108# Additional compiler flags for building library objects.
39109pic_flag=$lt_lt_prog_compiler_pic
39110
cristyda16f162011-02-19 23:52:17 +000039111# How to pass a linker flag through the compiler.
39112wl=$lt_lt_prog_compiler_wl
39113
cristy73bd4a52010-10-05 11:24:23 +000039114# Compiler flag to prevent dynamic linking.
39115link_static_flag=$lt_lt_prog_compiler_static
39116
39117# Does compiler simultaneously support -c and -o options?
39118compiler_c_o=$lt_lt_cv_prog_compiler_c_o
39119
39120# Whether or not to add -lc for building shared libraries.
39121build_libtool_need_lc=$archive_cmds_need_lc
39122
39123# Whether or not to disallow shared libs when runtime libs are static.
39124allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
39125
39126# Compiler flag to allow reflexive dlopens.
39127export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
39128
39129# Compiler flag to generate shared objects directly from archives.
39130whole_archive_flag_spec=$lt_whole_archive_flag_spec
39131
39132# Whether the compiler copes with passing no objects directly.
39133compiler_needs_object=$lt_compiler_needs_object
39134
39135# Create an old-style archive from a shared archive.
39136old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
39137
39138# Create a temporary old-style archive to link instead of a shared archive.
39139old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
39140
39141# Commands used to build a shared archive.
39142archive_cmds=$lt_archive_cmds
39143archive_expsym_cmds=$lt_archive_expsym_cmds
39144
39145# Commands used to build a loadable module if different from building
39146# a shared archive.
39147module_cmds=$lt_module_cmds
39148module_expsym_cmds=$lt_module_expsym_cmds
39149
39150# Whether we are building with GNU ld or not.
39151with_gnu_ld=$lt_with_gnu_ld
39152
39153# Flag that allows shared libraries with undefined symbols to be built.
39154allow_undefined_flag=$lt_allow_undefined_flag
39155
39156# Flag that enforces no undefined symbols.
39157no_undefined_flag=$lt_no_undefined_flag
39158
39159# Flag to hardcode \$libdir into a binary during linking.
39160# This must work even if \$libdir does not exist
39161hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
39162
cristy73bd4a52010-10-05 11:24:23 +000039163# Whether we need a single "-rpath" flag with a separated argument.
39164hardcode_libdir_separator=$lt_hardcode_libdir_separator
39165
39166# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
39167# DIR into the resulting binary.
39168hardcode_direct=$hardcode_direct
39169
39170# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
39171# DIR into the resulting binary and the resulting library dependency is
39172# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
39173# library is relocated.
39174hardcode_direct_absolute=$hardcode_direct_absolute
39175
39176# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
39177# into the resulting binary.
39178hardcode_minus_L=$hardcode_minus_L
39179
39180# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
39181# into the resulting binary.
39182hardcode_shlibpath_var=$hardcode_shlibpath_var
39183
39184# Set to "yes" if building a shared library automatically hardcodes DIR
39185# into the library and all subsequent libraries and executables linked
39186# against it.
39187hardcode_automatic=$hardcode_automatic
39188
39189# Set to yes if linker adds runtime paths of dependent libraries
39190# to runtime path list.
39191inherit_rpath=$inherit_rpath
39192
39193# Whether libtool must link a program against all its dependency libraries.
39194link_all_deplibs=$link_all_deplibs
39195
cristy73bd4a52010-10-05 11:24:23 +000039196# Set to "yes" if exported symbols are required.
39197always_export_symbols=$always_export_symbols
39198
39199# The commands to list exported symbols.
39200export_symbols_cmds=$lt_export_symbols_cmds
39201
39202# Symbols that should not be listed in the preloaded symbols.
39203exclude_expsyms=$lt_exclude_expsyms
39204
39205# Symbols that must always be exported.
39206include_expsyms=$lt_include_expsyms
39207
39208# Commands necessary for linking programs (against libraries) with templates.
39209prelink_cmds=$lt_prelink_cmds
39210
cristyda16f162011-02-19 23:52:17 +000039211# Commands necessary for finishing linking programs.
39212postlink_cmds=$lt_postlink_cmds
39213
cristy73bd4a52010-10-05 11:24:23 +000039214# Specify filename containing input files.
39215file_list_spec=$lt_file_list_spec
39216
39217# How to hardcode a shared library path into an executable.
39218hardcode_action=$hardcode_action
39219
39220# The directories searched by this compiler when creating a shared library.
39221compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
39222
39223# Dependencies to place before and after the objects being linked to
39224# create a shared library.
39225predep_objects=$lt_predep_objects
39226postdep_objects=$lt_postdep_objects
39227predeps=$lt_predeps
39228postdeps=$lt_postdeps
39229
39230# The library search path used internally by the compiler when linking
39231# a shared library.
39232compiler_lib_search_path=$lt_compiler_lib_search_path
39233
39234# ### END LIBTOOL CONFIG
39235
39236_LT_EOF
39237
39238 case $host_os in
39239 aix3*)
39240 cat <<\_LT_EOF >> "$cfgfile"
39241# AIX sometimes has problems with the GCC collect2 program. For some
39242# reason, if we set the COLLECT_NAMES environment variable, the problems
39243# vanish in a puff of smoke.
39244if test "X${COLLECT_NAMES+set}" != Xset; then
39245 COLLECT_NAMES=
39246 export COLLECT_NAMES
39247fi
39248_LT_EOF
39249 ;;
39250 esac
39251
39252
39253ltmain="$ac_aux_dir/ltmain.sh"
39254
39255
39256 # We use sed instead of cat because bash on DJGPP gets confused if
39257 # if finds mixed CR/LF and LF-only lines. Since sed operates in
39258 # text mode, it properly converts lines to CR/LF. This bash problem
39259 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000039260 sed '$q' "$ltmain" >> "$cfgfile" \
39261 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000039262
cristyda16f162011-02-19 23:52:17 +000039263 if test x"$xsi_shell" = xyes; then
39264 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
39265func_dirname ()\
39266{\
39267\ case ${1} in\
39268\ */*) func_dirname_result="${1%/*}${2}" ;;\
39269\ * ) func_dirname_result="${3}" ;;\
39270\ esac\
39271} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
39272 && mv -f "$cfgfile.tmp" "$cfgfile" \
39273 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39274test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000039275
39276
cristyda16f162011-02-19 23:52:17 +000039277 sed -e '/^func_basename ()$/,/^} # func_basename /c\
39278func_basename ()\
39279{\
39280\ func_basename_result="${1##*/}"\
39281} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
39282 && mv -f "$cfgfile.tmp" "$cfgfile" \
39283 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39284test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000039285
39286
cristyda16f162011-02-19 23:52:17 +000039287 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
39288func_dirname_and_basename ()\
39289{\
39290\ case ${1} in\
39291\ */*) func_dirname_result="${1%/*}${2}" ;;\
39292\ * ) func_dirname_result="${3}" ;;\
39293\ esac\
39294\ func_basename_result="${1##*/}"\
39295} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
39296 && mv -f "$cfgfile.tmp" "$cfgfile" \
39297 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39298test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000039299
cristyda16f162011-02-19 23:52:17 +000039300
39301 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
39302func_stripname ()\
39303{\
39304\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
39305\ # positional parameters, so assign one to ordinary parameter first.\
39306\ func_stripname_result=${3}\
39307\ func_stripname_result=${func_stripname_result#"${1}"}\
39308\ func_stripname_result=${func_stripname_result%"${2}"}\
39309} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
39310 && mv -f "$cfgfile.tmp" "$cfgfile" \
39311 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39312test 0 -eq $? || _lt_function_replace_fail=:
39313
39314
39315 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
39316func_split_long_opt ()\
39317{\
39318\ func_split_long_opt_name=${1%%=*}\
39319\ func_split_long_opt_arg=${1#*=}\
39320} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
39321 && mv -f "$cfgfile.tmp" "$cfgfile" \
39322 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39323test 0 -eq $? || _lt_function_replace_fail=:
39324
39325
39326 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
39327func_split_short_opt ()\
39328{\
39329\ func_split_short_opt_arg=${1#??}\
39330\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
39331} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
39332 && mv -f "$cfgfile.tmp" "$cfgfile" \
39333 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39334test 0 -eq $? || _lt_function_replace_fail=:
39335
39336
39337 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
39338func_lo2o ()\
39339{\
39340\ case ${1} in\
39341\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
39342\ *) func_lo2o_result=${1} ;;\
39343\ esac\
39344} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
39345 && mv -f "$cfgfile.tmp" "$cfgfile" \
39346 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39347test 0 -eq $? || _lt_function_replace_fail=:
39348
39349
39350 sed -e '/^func_xform ()$/,/^} # func_xform /c\
39351func_xform ()\
39352{\
39353 func_xform_result=${1%.*}.lo\
39354} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
39355 && mv -f "$cfgfile.tmp" "$cfgfile" \
39356 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39357test 0 -eq $? || _lt_function_replace_fail=:
39358
39359
39360 sed -e '/^func_arith ()$/,/^} # func_arith /c\
39361func_arith ()\
39362{\
39363 func_arith_result=$(( $* ))\
39364} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
39365 && mv -f "$cfgfile.tmp" "$cfgfile" \
39366 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39367test 0 -eq $? || _lt_function_replace_fail=:
39368
39369
39370 sed -e '/^func_len ()$/,/^} # func_len /c\
39371func_len ()\
39372{\
39373 func_len_result=${#1}\
39374} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
39375 && mv -f "$cfgfile.tmp" "$cfgfile" \
39376 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39377test 0 -eq $? || _lt_function_replace_fail=:
39378
39379fi
39380
39381if test x"$lt_shell_append" = xyes; then
39382 sed -e '/^func_append ()$/,/^} # func_append /c\
39383func_append ()\
39384{\
39385 eval "${1}+=\\${2}"\
39386} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
39387 && mv -f "$cfgfile.tmp" "$cfgfile" \
39388 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39389test 0 -eq $? || _lt_function_replace_fail=:
39390
39391
39392 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
39393func_append_quoted ()\
39394{\
39395\ func_quote_for_eval "${2}"\
39396\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
39397} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
39398 && mv -f "$cfgfile.tmp" "$cfgfile" \
39399 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39400test 0 -eq $? || _lt_function_replace_fail=:
39401
39402
39403 # Save a `func_append' function call where possible by direct use of '+='
39404 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
39405 && mv -f "$cfgfile.tmp" "$cfgfile" \
39406 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39407 test 0 -eq $? || _lt_function_replace_fail=:
39408else
39409 # Save a `func_append' function call even when '+=' is not available
39410 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
39411 && mv -f "$cfgfile.tmp" "$cfgfile" \
39412 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39413 test 0 -eq $? || _lt_function_replace_fail=:
39414fi
39415
39416if test x"$_lt_function_replace_fail" = x":"; then
39417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
39418$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
39419fi
39420
39421
39422 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000039423 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
39424 chmod +x "$ofile"
39425
39426
39427 cat <<_LT_EOF >> "$ofile"
39428
39429# ### BEGIN LIBTOOL TAG CONFIG: CXX
39430
39431# The linker used to build libraries.
39432LD=$lt_LD_CXX
39433
cristy0c60a692010-11-04 01:09:47 +000039434# How to create reloadable object files.
39435reload_flag=$lt_reload_flag_CXX
39436reload_cmds=$lt_reload_cmds_CXX
39437
cristy73bd4a52010-10-05 11:24:23 +000039438# Commands used to build an old-style archive.
39439old_archive_cmds=$lt_old_archive_cmds_CXX
39440
39441# A language specific compiler.
39442CC=$lt_compiler_CXX
39443
39444# Is the compiler the GNU compiler?
39445with_gcc=$GCC_CXX
39446
39447# Compiler flag to turn off builtin functions.
39448no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
39449
cristy73bd4a52010-10-05 11:24:23 +000039450# Additional compiler flags for building library objects.
39451pic_flag=$lt_lt_prog_compiler_pic_CXX
39452
cristyda16f162011-02-19 23:52:17 +000039453# How to pass a linker flag through the compiler.
39454wl=$lt_lt_prog_compiler_wl_CXX
39455
cristy73bd4a52010-10-05 11:24:23 +000039456# Compiler flag to prevent dynamic linking.
39457link_static_flag=$lt_lt_prog_compiler_static_CXX
39458
39459# Does compiler simultaneously support -c and -o options?
39460compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
39461
39462# Whether or not to add -lc for building shared libraries.
39463build_libtool_need_lc=$archive_cmds_need_lc_CXX
39464
39465# Whether or not to disallow shared libs when runtime libs are static.
39466allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
39467
39468# Compiler flag to allow reflexive dlopens.
39469export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
39470
39471# Compiler flag to generate shared objects directly from archives.
39472whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
39473
39474# Whether the compiler copes with passing no objects directly.
39475compiler_needs_object=$lt_compiler_needs_object_CXX
39476
39477# Create an old-style archive from a shared archive.
39478old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
39479
39480# Create a temporary old-style archive to link instead of a shared archive.
39481old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
39482
39483# Commands used to build a shared archive.
39484archive_cmds=$lt_archive_cmds_CXX
39485archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
39486
39487# Commands used to build a loadable module if different from building
39488# a shared archive.
39489module_cmds=$lt_module_cmds_CXX
39490module_expsym_cmds=$lt_module_expsym_cmds_CXX
39491
39492# Whether we are building with GNU ld or not.
39493with_gnu_ld=$lt_with_gnu_ld_CXX
39494
39495# Flag that allows shared libraries with undefined symbols to be built.
39496allow_undefined_flag=$lt_allow_undefined_flag_CXX
39497
39498# Flag that enforces no undefined symbols.
39499no_undefined_flag=$lt_no_undefined_flag_CXX
39500
39501# Flag to hardcode \$libdir into a binary during linking.
39502# This must work even if \$libdir does not exist
39503hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
39504
cristy73bd4a52010-10-05 11:24:23 +000039505# Whether we need a single "-rpath" flag with a separated argument.
39506hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
39507
39508# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
39509# DIR into the resulting binary.
39510hardcode_direct=$hardcode_direct_CXX
39511
39512# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
39513# DIR into the resulting binary and the resulting library dependency is
39514# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
39515# library is relocated.
39516hardcode_direct_absolute=$hardcode_direct_absolute_CXX
39517
39518# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
39519# into the resulting binary.
39520hardcode_minus_L=$hardcode_minus_L_CXX
39521
39522# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
39523# into the resulting binary.
39524hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
39525
39526# Set to "yes" if building a shared library automatically hardcodes DIR
39527# into the library and all subsequent libraries and executables linked
39528# against it.
39529hardcode_automatic=$hardcode_automatic_CXX
39530
39531# Set to yes if linker adds runtime paths of dependent libraries
39532# to runtime path list.
39533inherit_rpath=$inherit_rpath_CXX
39534
39535# Whether libtool must link a program against all its dependency libraries.
39536link_all_deplibs=$link_all_deplibs_CXX
39537
cristy73bd4a52010-10-05 11:24:23 +000039538# Set to "yes" if exported symbols are required.
39539always_export_symbols=$always_export_symbols_CXX
39540
39541# The commands to list exported symbols.
39542export_symbols_cmds=$lt_export_symbols_cmds_CXX
39543
39544# Symbols that should not be listed in the preloaded symbols.
39545exclude_expsyms=$lt_exclude_expsyms_CXX
39546
39547# Symbols that must always be exported.
39548include_expsyms=$lt_include_expsyms_CXX
39549
39550# Commands necessary for linking programs (against libraries) with templates.
39551prelink_cmds=$lt_prelink_cmds_CXX
39552
cristyda16f162011-02-19 23:52:17 +000039553# Commands necessary for finishing linking programs.
39554postlink_cmds=$lt_postlink_cmds_CXX
39555
cristy73bd4a52010-10-05 11:24:23 +000039556# Specify filename containing input files.
39557file_list_spec=$lt_file_list_spec_CXX
39558
39559# How to hardcode a shared library path into an executable.
39560hardcode_action=$hardcode_action_CXX
39561
39562# The directories searched by this compiler when creating a shared library.
39563compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
39564
39565# Dependencies to place before and after the objects being linked to
39566# create a shared library.
39567predep_objects=$lt_predep_objects_CXX
39568postdep_objects=$lt_postdep_objects_CXX
39569predeps=$lt_predeps_CXX
39570postdeps=$lt_postdeps_CXX
39571
39572# The library search path used internally by the compiler when linking
39573# a shared library.
39574compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
39575
39576# ### END LIBTOOL TAG CONFIG: CXX
39577_LT_EOF
39578
39579 ;;
cristy2bd4b6e2012-07-22 15:29:11 +000039580 "magick.sh.in":C) chmod +x magick.sh ;;
cristy4c08aed2011-07-01 19:47:50 +000039581 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000039582 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000039583 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
39584 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
39585
39586 esac
39587done # for ac_tag
39588
39589
cristy8b350f62009-11-15 23:12:43 +000039590as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000039591_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000039592ac_clean_files=$ac_clean_files_save
39593
39594test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000039595 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000039596
39597
39598# configure is writing to config.log, and then calls config.status.
39599# config.status does its own redirection, appending to config.log.
39600# Unfortunately, on DOS this fails, as config.log is still kept open
39601# by configure, so config.status won't be able to write to it; its
39602# output is simply discarded. So we exec the FD to /dev/null,
39603# effectively closing config.log, so it can be properly (re)opened and
39604# appended to by config.status. When coming back to configure, we
39605# need to make the FD available again.
39606if test "$no_create" != yes; then
39607 ac_cs_success=:
39608 ac_config_status_args=
39609 test "$silent" = yes &&
39610 ac_config_status_args="$ac_config_status_args --quiet"
39611 exec 5>/dev/null
39612 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
39613 exec 5>>config.log
39614 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
39615 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000039616 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000039617fi
39618if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000039619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000039620$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
39621fi
39622
39623
cristy9af1cbf2014-12-28 22:03:09 +000039624# ==============================================================================
39625# ImageMagick Configuration
39626# ==============================================================================
39627{ $as_echo "$as_me:${as_lineno-$LINENO}:
39628==============================================================================
cristy3ed852e2009-09-05 21:47:34 +000039629ImageMagick is configured as follows. Please verify that this configuration
39630matches your expectations.
39631
cristy9af1cbf2014-12-28 22:03:09 +000039632 Host system type: $host
39633 Build system type: $build
cristy3ed852e2009-09-05 21:47:34 +000039634
39635 Option Value
cristy9af1cbf2014-12-28 22:03:09 +000039636 ------------------------------------------------------------------------------
39637 Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
39638 Static libraries --enable-static=$enable_static $libtool_build_static_libs
39639 Module support --with-modules=$build_modules $build_modules
39640 GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
39641 Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
39642 High Dynamic Range Imagery
39643 --enable-hdri=$enable_hdri $enable_hdri
cristy3ed852e2009-09-05 21:47:34 +000039644
cristy9af1cbf2014-12-28 22:03:09 +000039645 Install documentation: $wantdocs
cristy3ed852e2009-09-05 21:47:34 +000039646
cristy9af1cbf2014-12-28 22:03:09 +000039647 Delegate Library Configuration:
39648 BZLIB --with-bzlib=$with_bzlib $have_bzlib
39649 Autotrace --with-autotrace=$with_autotrace $have_autotrace
39650 DJVU --with-djvu=$with_djvu $have_djvu
39651 DPS --with-dps=$with_dps $have_dps
39652 FFTW --with-fftw=$with_fftw $have_fftw
39653 FlashPIX --with-fpx=$with_fpx $have_fpx
39654 FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
39655 FreeType --with-freetype=$with_freetype $have_freetype
39656 Ghostscript lib --with-gslib=$with_gslib $have_gslib
39657 Graphviz --with-gvc=$with_gvc $have_gvc
39658 JBIG --with-jbig=$with_jbig $have_jbig
39659 JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
39660 JPEG-2000 --with-jp2=$with_jp2 $have_jp2
39661 LCMS v1 --with-lcms=$with_lcms $have_lcms
39662 LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
39663 LIBJPEG2 --with-openjp2=$with_openjp2 $have_openjp2
39664 LQR --with-lqr=$with_lqr $have_lqr
39665 LTDL --with-ltdl=$with_ltdl $have_ltdl
39666 LZMA --with-lzma=$with_lzma $have_lzma
39667 Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
39668 OpenEXR --with-openexr=$with_openexr $have_openexr
39669 PANGO --with-pango=$with_pango $have_pango
39670 PERL --with-perl=$with_perl $have_perl
39671 PNG --with-png=$with_png $have_png
39672 RSVG --with-rsvg=$with_rsvg $have_rsvg
39673 TIFF --with-tiff=$with_tiff $have_tiff
39674 WEBP --with-webp=$with_webp $have_webp
39675 WMF --with-wmf=$with_wmf $have_wmf
39676 X11 --with-x=$with_x $have_x
39677 XML --with-xml=$with_xml $have_xml
39678 ZLIB --with-zlib=$with_zlib $have_zlib
cristy5a3dc992014-12-05 19:50:04 +000039679
cristy9af1cbf2014-12-28 22:03:09 +000039680 Delegate Program Configuration:
39681 GhostPCL None $PCLDelegate ($PCLVersion)
39682 GhostXPS None $XPSDelegate ($XPSVersion)
39683 Ghostscript None $PSDelegate ($GSVersion)
cristy5a3dc992014-12-05 19:50:04 +000039684
cristy9af1cbf2014-12-28 22:03:09 +000039685 Font Configuration:
39686 Apple fonts --with-apple-font-dir=$with_apple_font_dir $result_apple_font_dir
39687 Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
39688 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
39689 Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy3ed852e2009-09-05 21:47:34 +000039690
cristy9af1cbf2014-12-28 22:03:09 +000039691 X11 Configuration:
39692 X_CFLAGS = $X_CFLAGS
39693 X_PRE_LIBS = $X_PRE_LIBS
39694 X_LIBS = $X_LIBS
39695 X_EXTRA_LIBS = $X_EXTRA_LIBS
39696
39697 Options used to compile and link:
39698 PREFIX = $PREFIX_DIR
39699 EXEC-PREFIX = $EXEC_PREFIX_DIR
39700 VERSION = $PACKAGE_VERSION
39701 CC = $CC
39702 CFLAGS = $CFLAGS
39703 CPPFLAGS = $CPPFLAGS
39704 PCFLAGS = $PCFLAGS
39705 DEFS = $DEFS
39706 LDFLAGS = $LDFLAGS
39707 LIBS = $LIBS
39708 CXX = $CXX
39709 CXXFLAGS = $CXXFLAGS
39710 FEATURES = $MAGICK_FEATURES
39711 DELEGATES = $MAGICK_DELEGATES
39712==============================================================================
cristy3ed852e2009-09-05 21:47:34 +000039713" >&5
cristy9af1cbf2014-12-28 22:03:09 +000039714$as_echo "$as_me:
39715==============================================================================
cristy3ed852e2009-09-05 21:47:34 +000039716ImageMagick is configured as follows. Please verify that this configuration
39717matches your expectations.
39718
cristy9af1cbf2014-12-28 22:03:09 +000039719 Host system type: $host
39720 Build system type: $build
cristy3ed852e2009-09-05 21:47:34 +000039721
39722 Option Value
cristy9af1cbf2014-12-28 22:03:09 +000039723 ------------------------------------------------------------------------------
39724 Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
39725 Static libraries --enable-static=$enable_static $libtool_build_static_libs
39726 Module support --with-modules=$build_modules $build_modules
39727 GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
39728 Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
39729 High Dynamic Range Imagery
39730 --enable-hdri=$enable_hdri $enable_hdri
cristy3ed852e2009-09-05 21:47:34 +000039731
cristy9af1cbf2014-12-28 22:03:09 +000039732 Install documentation: $wantdocs
cristy3ed852e2009-09-05 21:47:34 +000039733
cristy9af1cbf2014-12-28 22:03:09 +000039734 Delegate Library Configuration:
39735 BZLIB --with-bzlib=$with_bzlib $have_bzlib
39736 Autotrace --with-autotrace=$with_autotrace $have_autotrace
39737 DJVU --with-djvu=$with_djvu $have_djvu
39738 DPS --with-dps=$with_dps $have_dps
39739 FFTW --with-fftw=$with_fftw $have_fftw
39740 FlashPIX --with-fpx=$with_fpx $have_fpx
39741 FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
39742 FreeType --with-freetype=$with_freetype $have_freetype
39743 Ghostscript lib --with-gslib=$with_gslib $have_gslib
39744 Graphviz --with-gvc=$with_gvc $have_gvc
39745 JBIG --with-jbig=$with_jbig $have_jbig
39746 JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
39747 JPEG-2000 --with-jp2=$with_jp2 $have_jp2
39748 LCMS v1 --with-lcms=$with_lcms $have_lcms
39749 LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
39750 LIBJPEG2 --with-openjp2=$with_openjp2 $have_openjp2
39751 LQR --with-lqr=$with_lqr $have_lqr
39752 LTDL --with-ltdl=$with_ltdl $have_ltdl
39753 LZMA --with-lzma=$with_lzma $have_lzma
39754 Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
39755 OpenEXR --with-openexr=$with_openexr $have_openexr
39756 PANGO --with-pango=$with_pango $have_pango
39757 PERL --with-perl=$with_perl $have_perl
39758 PNG --with-png=$with_png $have_png
39759 RSVG --with-rsvg=$with_rsvg $have_rsvg
39760 TIFF --with-tiff=$with_tiff $have_tiff
39761 WEBP --with-webp=$with_webp $have_webp
39762 WMF --with-wmf=$with_wmf $have_wmf
39763 X11 --with-x=$with_x $have_x
39764 XML --with-xml=$with_xml $have_xml
39765 ZLIB --with-zlib=$with_zlib $have_zlib
cristy5a3dc992014-12-05 19:50:04 +000039766
cristy9af1cbf2014-12-28 22:03:09 +000039767 Delegate Program Configuration:
39768 GhostPCL None $PCLDelegate ($PCLVersion)
39769 GhostXPS None $XPSDelegate ($XPSVersion)
39770 Ghostscript None $PSDelegate ($GSVersion)
cristy5a3dc992014-12-05 19:50:04 +000039771
cristy9af1cbf2014-12-28 22:03:09 +000039772 Font Configuration:
39773 Apple fonts --with-apple-font-dir=$with_apple_font_dir $result_apple_font_dir
39774 Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
39775 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
39776 Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy3ed852e2009-09-05 21:47:34 +000039777
cristy9af1cbf2014-12-28 22:03:09 +000039778 X11 Configuration:
39779 X_CFLAGS = $X_CFLAGS
39780 X_PRE_LIBS = $X_PRE_LIBS
39781 X_LIBS = $X_LIBS
39782 X_EXTRA_LIBS = $X_EXTRA_LIBS
39783
39784 Options used to compile and link:
39785 PREFIX = $PREFIX_DIR
39786 EXEC-PREFIX = $EXEC_PREFIX_DIR
39787 VERSION = $PACKAGE_VERSION
39788 CC = $CC
39789 CFLAGS = $CFLAGS
39790 CPPFLAGS = $CPPFLAGS
39791 PCFLAGS = $PCFLAGS
39792 DEFS = $DEFS
39793 LDFLAGS = $LDFLAGS
39794 LIBS = $LIBS
39795 CXX = $CXX
39796 CXXFLAGS = $CXXFLAGS
39797 FEATURES = $MAGICK_FEATURES
39798 DELEGATES = $MAGICK_DELEGATES
39799==============================================================================
39800" >&6;}