blob: db10ba9b72a2cf5e877606150a2d1f37e54f99e3 [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
cristyda16f162011-02-19 23:52:17 +0000927ac_ct_AR
cristy73bd4a52010-10-05 11:24:23 +0000928AR
929NM
930ac_ct_DUMPBIN
931DUMPBIN
932LIBTOOL
933OBJDUMP
934DLLTOOL
935AS
cristy3ed852e2009-09-05 21:47:34 +0000936LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000937CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000938CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000939OPENMP_CFLAGS
cristy1ae5c992013-07-30 14:55:07 +0000940THREAD_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000941PTHREAD_CFLAGS
942PTHREAD_LIBS
943PTHREAD_CC
944ax_pthread_config
cristy2ec87cc2013-02-18 17:46:50 +0000945pkgconfigdir
cristy670aa3c2011-11-03 00:54:00 +0000946SHAREARCH_DIR
947INCLUDEARCH_DIR
cristy3ed852e2009-09-05 21:47:34 +0000948WinPathScript
cristy73bd4a52010-10-05 11:24:23 +0000949USING_CL_FALSE
950USING_CL_TRUE
951CYGWIN_BUILD_FALSE
952CYGWIN_BUILD_TRUE
953WIN32_NATIVE_BUILD_FALSE
954WIN32_NATIVE_BUILD_TRUE
955WINGDI32_DELEGATE_FALSE
956WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000957GDI32_LIBS
cristy9b86f202012-11-28 21:55:35 +0000958HAVE_LD_VERSION_SCRIPT_FALSE
959HAVE_LD_VERSION_SCRIPT_TRUE
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
cristya0b81c32010-01-22 02:54:33 +0000972EGREP
973GREP
974CPP
cristy73bd4a52010-10-05 11:24:23 +0000975am__fastdepCC_FALSE
976am__fastdepCC_TRUE
977CCDEPMODE
cristy7247bba2012-02-05 16:37:27 +0000978am__nodep
cristy73bd4a52010-10-05 11:24:23 +0000979AMDEPBACKSLASH
980AMDEP_FALSE
981AMDEP_TRUE
982am__quote
983am__include
984DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000985OBJEXT
986EXEEXT
987ac_ct_CC
988CPPFLAGS
989LDFLAGS
990CFLAGS
991CC
992DIRSEP
993MAGICK_FILTER_MODULE_PATH
994MAGICK_CONFIGURE_BUILD_PATH
995MAGICK_CONFIGURE_SRC_PATH
996MAGICK_CODER_MODULE_PATH
997MAN_DIR
998INFO_DIR
999PERSISTINCLUDE_DIR
1000INCLUDE_DIR
1001LIB_DIR
1002LOCALSTATE_DIR
1003SHAREDSTATE_DIR
1004SYSCONF_DIR
cristyd55889c2011-03-27 00:50:24 +00001005DOC_DIR
cristy3ed852e2009-09-05 21:47:34 +00001006DATA_DIR
1007LIBEXEC_DIR
1008SBIN_DIR
1009BIN_DIR
1010EXEC_PREFIX_DIR
1011PREFIX_DIR
1012CONFIG_STATUS_DEPENDENCIES
cristy5ed9c6e2013-07-14 21:20:31 +00001013MAGICKPP_LIB_VERSION_TEXT
1014MAGICKPP_LIB_VERSION
cristy3ed852e2009-09-05 21:47:34 +00001015MAGICK_LIB_VERSION_NUMBER
1016MAGICK_LIB_VERSION_TEXT
1017MAGICK_LIB_VERSION
cristy73bd4a52010-10-05 11:24:23 +00001018AM_BACKSLASH
1019AM_DEFAULT_VERBOSITY
cristyc3fb77b2012-02-06 01:49:41 +00001020AM_DEFAULT_V
1021AM_V
cristy73bd4a52010-10-05 11:24:23 +00001022am__untar
1023am__tar
1024AMTAR
1025am__leading_dot
1026SET_MAKE
1027AWK
1028mkdir_p
1029MKDIR_P
1030INSTALL_STRIP_PROGRAM
1031STRIP
1032install_sh
1033MAKEINFO
1034AUTOHEADER
1035AUTOMAKE
1036AUTOCONF
1037ACLOCAL
1038VERSION
1039PACKAGE
1040CYGPATH_W
1041am__isrc
1042INSTALL_DATA
1043INSTALL_SCRIPT
1044INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +00001045PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +00001046PACKAGE_RELEASE_DATE
1047PACKAGE_LIB_VERSION_NUMBER
1048PACKAGE_LIB_VERSION
1049PACKAGE_CHANGE_DATE
1050PACKAGE_RELEASE
cristy878c2f12011-08-19 00:25:19 +00001051PACKAGE_PERL_VERSION
cristy5ed9c6e2013-07-14 21:20:31 +00001052MAGICKPP_LIBRARY_VERSION_INFO
1053MAGICKPP_LIBRARY_CURRENT_MIN
1054MAGICKPP_LIBRARY_AGE
1055MAGICKPP_LIBRARY_REVISION
1056MAGICKPP_LIBRARY_CURRENT
cristybab87c32010-02-09 20:54:22 +00001057MAGICK_LIBRARY_VERSION_INFO
1058MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001059MAGICK_LIBRARY_AGE
1060MAGICK_LIBRARY_REVISION
1061MAGICK_LIBRARY_CURRENT
cristy37442762013-02-10 21:07:23 +00001062MAGICK_SVN_REVISION
1063MAGICK_VERSION
1064MAGICK_PATCHLEVEL_VERSION
1065MAGICK_MICRO_VERSION
1066MAGICK_MINOR_VERSION
1067MAGICK_MAJOR_VERSION
cristy3225a072010-04-17 01:47:28 +00001068MAGICK_TARGET_OS
1069MAGICK_TARGET_VENDOR
1070MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001071target_os
1072target_vendor
1073target_cpu
1074target
1075host_os
1076host_vendor
1077host_cpu
1078host
1079build_os
1080build_vendor
1081build_cpu
1082build
1083CONFIGURE_ARGS
1084DISTCHECK_CONFIG_FLAGS
1085target_alias
1086host_alias
1087build_alias
1088LIBS
1089ECHO_T
1090ECHO_N
1091ECHO_C
1092DEFS
1093mandir
1094localedir
1095libdir
1096psdir
1097pdfdir
1098dvidir
1099htmldir
1100infodir
1101docdir
1102oldincludedir
1103includedir
1104localstatedir
1105sharedstatedir
1106sysconfdir
1107datadir
1108datarootdir
1109libexecdir
1110sbindir
1111bindir
1112program_transform_name
1113prefix
1114exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001115PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001116PACKAGE_BUGREPORT
1117PACKAGE_STRING
1118PACKAGE_VERSION
1119PACKAGE_TARNAME
1120PACKAGE_NAME
1121PATH_SEPARATOR
1122SHELL'
1123ac_subst_files=''
1124ac_user_opts='
1125enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001126enable_silent_rules
1127enable_dependency_tracking
1128with_gnu_ld
1129with_dmalloc
cristya0459972013-11-03 18:09:35 +00001130with_gcc_arch
cristy9b86f202012-11-28 21:55:35 +00001131enable_ld_version_script
cristy3ed852e2009-09-05 21:47:34 +00001132enable_bounds_checking
1133enable_osx_universal_binary
cristy670aa3c2011-11-03 00:54:00 +00001134with_includearch_dir
1135with_sharearch_dir
cristy2ec87cc2013-02-18 17:46:50 +00001136with_pkgconfigdir
cristy3ed852e2009-09-05 21:47:34 +00001137with_threads
1138enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001139enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001140enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001141enable_shared
1142enable_static
1143with_pic
1144enable_fast_install
cristyda16f162011-02-19 23:52:17 +00001145with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001146enable_libtool_lock
cristy3ed852e2009-09-05 21:47:34 +00001147with_modules
1148enable_delegate_build
1149enable_deprecated
1150enable_installed
1151enable_cipher
cristy6e3607c2011-09-13 13:59:17 +00001152enable_zero_configuration
cristy3ed852e2009-09-05 21:47:34 +00001153enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001154enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001155enable_maintainer_mode
cristy944e51f2013-04-16 18:45:02 +00001156enable_hugepages
cristy3ed852e2009-09-05 21:47:34 +00001157enable_ccmalloc
1158enable_efence
1159enable_prof
1160enable_gprof
1161enable_gcov
1162with_method_prefix
cristy71d8c202012-03-20 17:05:01 +00001163enable_legacy_support
cristy3ed852e2009-09-05 21:47:34 +00001164with_quantum_depth
1165with_cache
1166with_frozenpaths
1167with_magick_plus_plus
cristy3a75f062012-09-08 23:29:40 +00001168with_package_release_name
cristy3ed852e2009-09-05 21:47:34 +00001169with_perl
1170with_perl_options
cristy3b0097d2014-11-04 15:34:47 +00001171with_jemalloc
cristy3ed852e2009-09-05 21:47:34 +00001172with_umem
1173with_libstdc
1174with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001175with_x
cristy3ed852e2009-09-05 21:47:34 +00001176with_zlib
cristy5a3dc992014-12-05 19:50:04 +00001177with_apple_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001178with_autotrace
1179with_dps
cristy430a7312010-01-21 20:44:04 +00001180with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001181with_fftw
1182with_fpx
cristy853d9902014-08-21 18:50:43 +00001183with_djvu
cristy3ed852e2009-09-05 21:47:34 +00001184with_fontconfig
1185with_freetype
1186with_gslib
1187with_fontpath
1188with_gs_font_dir
1189with_gvc
1190with_jbig
1191with_jpeg
cristy3ed852e2009-09-05 21:47:34 +00001192with_lcms
cristy71203402010-06-18 13:12:03 +00001193with_lcms2
cristy99db3872014-01-01 15:11:34 +00001194with_openjp2
cristy3ed852e2009-09-05 21:47:34 +00001195with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001196with_lzma
cristy3ed852e2009-09-05 21:47:34 +00001197with_openexr
cristy41cbe8a2011-10-27 01:35:18 +00001198with_pango
cristy3ed852e2009-09-05 21:47:34 +00001199with_png
1200with_rsvg
1201with_tiff
cristyb1860752011-03-14 00:27:46 +00001202with_webp
cristy3ed852e2009-09-05 21:47:34 +00001203with_windows_font_dir
1204with_wmf
1205with_xml
cristydd17feb2014-03-05 02:06:32 +00001206enable_docs
cristy3ed852e2009-09-05 21:47:34 +00001207'
1208 ac_precious_vars='build_alias
1209host_alias
1210target_alias
1211CC
1212CFLAGS
1213LDFLAGS
1214LIBS
1215CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001216CPP
cristy3ed852e2009-09-05 21:47:34 +00001217CXX
1218CXXFLAGS
1219CCC
cristy73bd4a52010-10-05 11:24:23 +00001220PKG_CONFIG
1221CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001222XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001223AUTOTRACE_CFLAGS
1224AUTOTRACE_LIBS
1225FONTCONFIG_CFLAGS
1226FONTCONFIG_LIBS
cristy03f187e2013-01-24 00:22:19 +00001227FREETYPE_CFLAGS
1228FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001229GVC_CFLAGS
1230GVC_LIBS
cristy99db3872014-01-01 15:11:34 +00001231LIBOPENJP2_CFLAGS
1232LIBOPENJP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001233LQR_CFLAGS
1234LQR_LIBS
cristyb94e5002011-11-14 13:20:10 +00001235LZMA_CFLAGS
1236LZMA_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001237OPENEXR_CFLAGS
1238OPENEXR_LIBS
cristy41cbe8a2011-10-27 01:35:18 +00001239PANGO_CFLAGS
1240PANGO_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001241RSVG_CFLAGS
1242RSVG_LIBS
1243CAIRO_SVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +00001244CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001245
1246
1247# Initialize some variables set by options.
1248ac_init_help=
1249ac_init_version=false
1250ac_unrecognized_opts=
1251ac_unrecognized_sep=
1252# The variables have the same names as the options, with
1253# dashes changed to underlines.
1254cache_file=/dev/null
1255exec_prefix=NONE
1256no_create=
1257no_recursion=
1258prefix=NONE
1259program_prefix=NONE
1260program_suffix=NONE
1261program_transform_name=s,x,x,
1262silent=
1263site=
1264srcdir=
1265verbose=
1266x_includes=NONE
1267x_libraries=NONE
1268
1269# Installation directory options.
1270# These are left unexpanded so users can "make install exec_prefix=/foo"
1271# and all the variables that are supposed to be based on exec_prefix
1272# by default will actually change.
1273# Use braces instead of parens because sh, perl, etc. also accept them.
1274# (The list follows the same order as the GNU Coding Standards.)
1275bindir='${exec_prefix}/bin'
1276sbindir='${exec_prefix}/sbin'
1277libexecdir='${exec_prefix}/libexec'
1278datarootdir='${prefix}/share'
1279datadir='${datarootdir}'
1280sysconfdir='${prefix}/etc'
1281sharedstatedir='${prefix}/com'
1282localstatedir='${prefix}/var'
1283includedir='${prefix}/include'
1284oldincludedir='/usr/include'
1285docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1286infodir='${datarootdir}/info'
1287htmldir='${docdir}'
1288dvidir='${docdir}'
1289pdfdir='${docdir}'
1290psdir='${docdir}'
1291libdir='${exec_prefix}/lib'
1292localedir='${datarootdir}/locale'
1293mandir='${datarootdir}/man'
1294
1295ac_prev=
1296ac_dashdash=
1297for ac_option
1298do
1299 # If the previous option needs an argument, assign it.
1300 if test -n "$ac_prev"; then
1301 eval $ac_prev=\$ac_option
1302 ac_prev=
1303 continue
1304 fi
1305
1306 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001307 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1308 *=) ac_optarg= ;;
1309 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001310 esac
1311
1312 # Accept the important Cygnus configure options, so we can diagnose typos.
1313
1314 case $ac_dashdash$ac_option in
1315 --)
1316 ac_dashdash=yes ;;
1317
1318 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1319 ac_prev=bindir ;;
1320 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1321 bindir=$ac_optarg ;;
1322
1323 -build | --build | --buil | --bui | --bu)
1324 ac_prev=build_alias ;;
1325 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1326 build_alias=$ac_optarg ;;
1327
1328 -cache-file | --cache-file | --cache-fil | --cache-fi \
1329 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1330 ac_prev=cache_file ;;
1331 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1332 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1333 cache_file=$ac_optarg ;;
1334
1335 --config-cache | -C)
1336 cache_file=config.cache ;;
1337
1338 -datadir | --datadir | --datadi | --datad)
1339 ac_prev=datadir ;;
1340 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1341 datadir=$ac_optarg ;;
1342
1343 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1344 | --dataroo | --dataro | --datar)
1345 ac_prev=datarootdir ;;
1346 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1347 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1348 datarootdir=$ac_optarg ;;
1349
1350 -disable-* | --disable-*)
1351 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1352 # Reject names that are not valid shell variable names.
1353 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001354 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001355 ac_useropt_orig=$ac_useropt
1356 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1357 case $ac_user_opts in
1358 *"
1359"enable_$ac_useropt"
1360"*) ;;
1361 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1362 ac_unrecognized_sep=', ';;
1363 esac
1364 eval enable_$ac_useropt=no ;;
1365
1366 -docdir | --docdir | --docdi | --doc | --do)
1367 ac_prev=docdir ;;
1368 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1369 docdir=$ac_optarg ;;
1370
1371 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1372 ac_prev=dvidir ;;
1373 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1374 dvidir=$ac_optarg ;;
1375
1376 -enable-* | --enable-*)
1377 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1378 # Reject names that are not valid shell variable names.
1379 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001380 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001381 ac_useropt_orig=$ac_useropt
1382 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1383 case $ac_user_opts in
1384 *"
1385"enable_$ac_useropt"
1386"*) ;;
1387 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1388 ac_unrecognized_sep=', ';;
1389 esac
1390 eval enable_$ac_useropt=\$ac_optarg ;;
1391
1392 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1393 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1394 | --exec | --exe | --ex)
1395 ac_prev=exec_prefix ;;
1396 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1397 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1398 | --exec=* | --exe=* | --ex=*)
1399 exec_prefix=$ac_optarg ;;
1400
1401 -gas | --gas | --ga | --g)
1402 # Obsolete; use --with-gas.
1403 with_gas=yes ;;
1404
1405 -help | --help | --hel | --he | -h)
1406 ac_init_help=long ;;
1407 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1408 ac_init_help=recursive ;;
1409 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1410 ac_init_help=short ;;
1411
1412 -host | --host | --hos | --ho)
1413 ac_prev=host_alias ;;
1414 -host=* | --host=* | --hos=* | --ho=*)
1415 host_alias=$ac_optarg ;;
1416
1417 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1418 ac_prev=htmldir ;;
1419 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1420 | --ht=*)
1421 htmldir=$ac_optarg ;;
1422
1423 -includedir | --includedir | --includedi | --included | --include \
1424 | --includ | --inclu | --incl | --inc)
1425 ac_prev=includedir ;;
1426 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1427 | --includ=* | --inclu=* | --incl=* | --inc=*)
1428 includedir=$ac_optarg ;;
1429
1430 -infodir | --infodir | --infodi | --infod | --info | --inf)
1431 ac_prev=infodir ;;
1432 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1433 infodir=$ac_optarg ;;
1434
1435 -libdir | --libdir | --libdi | --libd)
1436 ac_prev=libdir ;;
1437 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1438 libdir=$ac_optarg ;;
1439
1440 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1441 | --libexe | --libex | --libe)
1442 ac_prev=libexecdir ;;
1443 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1444 | --libexe=* | --libex=* | --libe=*)
1445 libexecdir=$ac_optarg ;;
1446
1447 -localedir | --localedir | --localedi | --localed | --locale)
1448 ac_prev=localedir ;;
1449 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1450 localedir=$ac_optarg ;;
1451
1452 -localstatedir | --localstatedir | --localstatedi | --localstated \
1453 | --localstate | --localstat | --localsta | --localst | --locals)
1454 ac_prev=localstatedir ;;
1455 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1456 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1457 localstatedir=$ac_optarg ;;
1458
1459 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1460 ac_prev=mandir ;;
1461 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1462 mandir=$ac_optarg ;;
1463
1464 -nfp | --nfp | --nf)
1465 # Obsolete; use --without-fp.
1466 with_fp=no ;;
1467
1468 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1469 | --no-cr | --no-c | -n)
1470 no_create=yes ;;
1471
1472 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1473 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1474 no_recursion=yes ;;
1475
1476 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1477 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1478 | --oldin | --oldi | --old | --ol | --o)
1479 ac_prev=oldincludedir ;;
1480 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1481 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1482 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1483 oldincludedir=$ac_optarg ;;
1484
1485 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1486 ac_prev=prefix ;;
1487 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1488 prefix=$ac_optarg ;;
1489
1490 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1491 | --program-pre | --program-pr | --program-p)
1492 ac_prev=program_prefix ;;
1493 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1494 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1495 program_prefix=$ac_optarg ;;
1496
1497 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1498 | --program-suf | --program-su | --program-s)
1499 ac_prev=program_suffix ;;
1500 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1501 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1502 program_suffix=$ac_optarg ;;
1503
1504 -program-transform-name | --program-transform-name \
1505 | --program-transform-nam | --program-transform-na \
1506 | --program-transform-n | --program-transform- \
1507 | --program-transform | --program-transfor \
1508 | --program-transfo | --program-transf \
1509 | --program-trans | --program-tran \
1510 | --progr-tra | --program-tr | --program-t)
1511 ac_prev=program_transform_name ;;
1512 -program-transform-name=* | --program-transform-name=* \
1513 | --program-transform-nam=* | --program-transform-na=* \
1514 | --program-transform-n=* | --program-transform-=* \
1515 | --program-transform=* | --program-transfor=* \
1516 | --program-transfo=* | --program-transf=* \
1517 | --program-trans=* | --program-tran=* \
1518 | --progr-tra=* | --program-tr=* | --program-t=*)
1519 program_transform_name=$ac_optarg ;;
1520
1521 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1522 ac_prev=pdfdir ;;
1523 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1524 pdfdir=$ac_optarg ;;
1525
1526 -psdir | --psdir | --psdi | --psd | --ps)
1527 ac_prev=psdir ;;
1528 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1529 psdir=$ac_optarg ;;
1530
1531 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1532 | -silent | --silent | --silen | --sile | --sil)
1533 silent=yes ;;
1534
1535 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1536 ac_prev=sbindir ;;
1537 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1538 | --sbi=* | --sb=*)
1539 sbindir=$ac_optarg ;;
1540
1541 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1542 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1543 | --sharedst | --shareds | --shared | --share | --shar \
1544 | --sha | --sh)
1545 ac_prev=sharedstatedir ;;
1546 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1547 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1548 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1549 | --sha=* | --sh=*)
1550 sharedstatedir=$ac_optarg ;;
1551
1552 -site | --site | --sit)
1553 ac_prev=site ;;
1554 -site=* | --site=* | --sit=*)
1555 site=$ac_optarg ;;
1556
1557 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1558 ac_prev=srcdir ;;
1559 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1560 srcdir=$ac_optarg ;;
1561
1562 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1563 | --syscon | --sysco | --sysc | --sys | --sy)
1564 ac_prev=sysconfdir ;;
1565 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1566 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1567 sysconfdir=$ac_optarg ;;
1568
1569 -target | --target | --targe | --targ | --tar | --ta | --t)
1570 ac_prev=target_alias ;;
1571 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1572 target_alias=$ac_optarg ;;
1573
1574 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1575 verbose=yes ;;
1576
1577 -version | --version | --versio | --versi | --vers | -V)
1578 ac_init_version=: ;;
1579
1580 -with-* | --with-*)
1581 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1582 # Reject names that are not valid shell variable names.
1583 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001584 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001585 ac_useropt_orig=$ac_useropt
1586 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1587 case $ac_user_opts in
1588 *"
1589"with_$ac_useropt"
1590"*) ;;
1591 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1592 ac_unrecognized_sep=', ';;
1593 esac
1594 eval with_$ac_useropt=\$ac_optarg ;;
1595
1596 -without-* | --without-*)
1597 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1598 # Reject names that are not valid shell variable names.
1599 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001600 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001601 ac_useropt_orig=$ac_useropt
1602 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1603 case $ac_user_opts in
1604 *"
1605"with_$ac_useropt"
1606"*) ;;
1607 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1608 ac_unrecognized_sep=', ';;
1609 esac
1610 eval with_$ac_useropt=no ;;
1611
1612 --x)
1613 # Obsolete; use --with-x.
1614 with_x=yes ;;
1615
1616 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1617 | --x-incl | --x-inc | --x-in | --x-i)
1618 ac_prev=x_includes ;;
1619 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1620 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1621 x_includes=$ac_optarg ;;
1622
1623 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1624 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1625 ac_prev=x_libraries ;;
1626 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1627 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1628 x_libraries=$ac_optarg ;;
1629
cristy98dddb52010-11-04 00:30:15 +00001630 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1631Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001632 ;;
1633
1634 *=*)
1635 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1636 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001637 case $ac_envvar in #(
1638 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001639 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001640 esac
cristy3ed852e2009-09-05 21:47:34 +00001641 eval $ac_envvar=\$ac_optarg
1642 export $ac_envvar ;;
1643
1644 *)
1645 # FIXME: should be removed in autoconf 3.0.
1646 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1647 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1648 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001649 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001650 ;;
1651
1652 esac
1653done
1654
1655if test -n "$ac_prev"; then
1656 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001657 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001658fi
1659
1660if test -n "$ac_unrecognized_opts"; then
1661 case $enable_option_checking in
1662 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001663 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001664 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1665 esac
1666fi
1667
1668# Check all directory arguments for consistency.
1669for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1670 datadir sysconfdir sharedstatedir localstatedir includedir \
1671 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1672 libdir localedir mandir
1673do
1674 eval ac_val=\$$ac_var
1675 # Remove trailing slashes.
1676 case $ac_val in
1677 */ )
1678 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1679 eval $ac_var=\$ac_val;;
1680 esac
1681 # Be sure to have absolute directory names.
1682 case $ac_val in
1683 [\\/$]* | ?:[\\/]* ) continue;;
1684 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1685 esac
cristy98dddb52010-11-04 00:30:15 +00001686 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001687done
1688
1689# There might be people who depend on the old broken behavior: `$host'
1690# used to hold the argument of --host etc.
1691# FIXME: To remove some day.
1692build=$build_alias
1693host=$host_alias
1694target=$target_alias
1695
1696# FIXME: To remove some day.
1697if test "x$host_alias" != x; then
1698 if test "x$build_alias" = x; then
1699 cross_compiling=maybe
cristy3ed852e2009-09-05 21:47:34 +00001700 elif test "x$build_alias" != "x$host_alias"; then
1701 cross_compiling=yes
1702 fi
1703fi
1704
1705ac_tool_prefix=
1706test -n "$host_alias" && ac_tool_prefix=$host_alias-
1707
1708test "$silent" = yes && exec 6>/dev/null
1709
1710
1711ac_pwd=`pwd` && test -n "$ac_pwd" &&
1712ac_ls_di=`ls -di .` &&
1713ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001714 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001715test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001716 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001717
1718
1719# Find the source files, if location was not specified.
1720if test -z "$srcdir"; then
1721 ac_srcdir_defaulted=yes
1722 # Try the directory containing this script, then the parent directory.
1723 ac_confdir=`$as_dirname -- "$as_myself" ||
1724$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1725 X"$as_myself" : 'X\(//\)[^/]' \| \
1726 X"$as_myself" : 'X\(//\)$' \| \
1727 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1728$as_echo X"$as_myself" |
1729 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1730 s//\1/
1731 q
1732 }
1733 /^X\(\/\/\)[^/].*/{
1734 s//\1/
1735 q
1736 }
1737 /^X\(\/\/\)$/{
1738 s//\1/
1739 q
1740 }
1741 /^X\(\/\).*/{
1742 s//\1/
1743 q
1744 }
1745 s/.*/./; q'`
1746 srcdir=$ac_confdir
1747 if test ! -r "$srcdir/$ac_unique_file"; then
1748 srcdir=..
1749 fi
1750else
1751 ac_srcdir_defaulted=no
1752fi
1753if test ! -r "$srcdir/$ac_unique_file"; then
1754 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001755 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001756fi
1757ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1758ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001759 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001760 pwd)`
1761# When building in place, set srcdir=.
1762if test "$ac_abs_confdir" = "$ac_pwd"; then
1763 srcdir=.
1764fi
1765# Remove unnecessary trailing slashes from srcdir.
1766# Double slashes in file names in object file debugging info
1767# mess up M-x gdb in Emacs.
1768case $srcdir in
1769*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1770esac
1771for ac_var in $ac_precious_vars; do
1772 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1773 eval ac_env_${ac_var}_value=\$${ac_var}
1774 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1775 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1776done
1777
1778#
1779# Report the --help message.
1780#
1781if test "$ac_init_help" = "long"; then
1782 # Omit some internal or obsolete options to make the list less imposing.
1783 # This message is too long to be a string in the A/UX 3.1 sh.
1784 cat <<_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00001785\`configure' configures ImageMagick 7.0.0-0 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001786
1787Usage: $0 [OPTION]... [VAR=VALUE]...
1788
1789To assign environment variables (e.g., CC, CFLAGS...), specify them as
1790VAR=VALUE. See below for descriptions of some of the useful variables.
1791
1792Defaults for the options are specified in brackets.
1793
1794Configuration:
1795 -h, --help display this help and exit
1796 --help=short display options specific to this package
1797 --help=recursive display the short help of all the included packages
1798 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001799 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001800 --cache-file=FILE cache test results in FILE [disabled]
1801 -C, --config-cache alias for \`--cache-file=config.cache'
1802 -n, --no-create do not create output files
1803 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1804
1805Installation directories:
1806 --prefix=PREFIX install architecture-independent files in PREFIX
1807 [$ac_default_prefix]
1808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1809 [PREFIX]
1810
1811By default, \`make install' will install all the files in
1812\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1813an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1814for instance \`--prefix=\$HOME'.
1815
1816For better control, use the options below.
1817
1818Fine tuning of the installation directories:
1819 --bindir=DIR user executables [EPREFIX/bin]
1820 --sbindir=DIR system admin executables [EPREFIX/sbin]
1821 --libexecdir=DIR program executables [EPREFIX/libexec]
1822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1825 --libdir=DIR object code libraries [EPREFIX/lib]
1826 --includedir=DIR C header files [PREFIX/include]
1827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1828 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1829 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1830 --infodir=DIR info documentation [DATAROOTDIR/info]
1831 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1832 --mandir=DIR man documentation [DATAROOTDIR/man]
cristy09b53e12011-10-14 12:47:22 +00001833 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
cristy3ed852e2009-09-05 21:47:34 +00001834 --htmldir=DIR html documentation [DOCDIR]
1835 --dvidir=DIR dvi documentation [DOCDIR]
1836 --pdfdir=DIR pdf documentation [DOCDIR]
1837 --psdir=DIR ps documentation [DOCDIR]
1838_ACEOF
1839
1840 cat <<\_ACEOF
1841
cristy73bd4a52010-10-05 11:24:23 +00001842Program names:
1843 --program-prefix=PREFIX prepend PREFIX to installed program names
1844 --program-suffix=SUFFIX append SUFFIX to installed program names
1845 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1846
cristy3ed852e2009-09-05 21:47:34 +00001847X features:
1848 --x-includes=DIR X include files are in DIR
1849 --x-libraries=DIR X library files are in DIR
1850
1851System types:
1852 --build=BUILD configure for building on BUILD [guessed]
1853 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1854 --target=TARGET configure for building compilers for TARGET [HOST]
1855_ACEOF
1856fi
1857
1858if test -n "$ac_init_help"; then
1859 case $ac_init_help in
cristy29eb34e2011-10-16 00:46:08 +00001860 short | recursive ) echo "Configuration of ImageMagick 7.0.0-0:";;
cristy3ed852e2009-09-05 21:47:34 +00001861 esac
1862 cat <<\_ACEOF
1863
1864Optional Features:
1865 --disable-option-checking ignore unrecognized --enable/--with options
1866 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1867 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristyc0890a62012-07-19 00:18:20 +00001868 --enable-silent-rules less verbose build output (undo: "make V=1")
1869 --disable-silent-rules verbose build output (undo: "make V=0")
1870 --enable-dependency-tracking
1871 do not reject slow dependency extractors
1872 --disable-dependency-tracking
1873 speeds up one-time build
cristy9b86f202012-11-28 21:55:35 +00001874 --enable-ld-version-script
1875 enable linker version script (default is enabled
1876 when possible)
cristya3824692012-03-30 17:22:07 +00001877 --enable-bounds-checking
1878 enable run-time bounds-checking
cristy3ed852e2009-09-05 21:47:34 +00001879 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001880 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001881 --disable-openmp do not use OpenMP
cristy48794642012-09-02 15:19:08 +00001882 --enable-opencl enable OpenCL support
cristy3ed852e2009-09-05 21:47:34 +00001883 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001884 --enable-shared[=PKGS] build shared libraries [default=yes]
1885 --enable-static[=PKGS] build static libraries [default=yes]
1886 --enable-fast-install[=PKGS]
1887 optimize for fast installation [default=yes]
1888 --disable-libtool-lock avoid locking (might break parallel builds)
cristy3ed852e2009-09-05 21:47:34 +00001889 --enable-delegate-build look for delegate libraries in build directory
1890 --disable-deprecated exclude deprecated methods in MagickCore and
cristy3a75f062012-09-08 23:29:40 +00001891 MagickWand APIs
cristy3ed852e2009-09-05 21:47:34 +00001892 --disable-installed Formally install ImageMagick under PREFIX
1893 --disable-cipher disable enciphering and deciphering image pixels
cristy6e3607c2011-09-13 13:59:17 +00001894 --enable-zero-configuration
1895 enable self-contained, embeddable,
cristy3ed852e2009-09-05 21:47:34 +00001896 zero-configuration ImageMagick
cristyf314dbd2012-11-15 13:35:28 +00001897 --enable-hdri accurately represent the wide range of intensity
cristy3ed852e2009-09-05 21:47:34 +00001898 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001899 --disable-assert disable assert() statements in build
cristyc0890a62012-07-19 00:18:20 +00001900 --enable-maintainer-mode
1901 enable make rules and dependencies not useful (and
1902 sometimes confusing) to the casual installer
cristy944e51f2013-04-16 18:45:02 +00001903 --enable-hugepages enable 'huge pages' support
cristy3ed852e2009-09-05 21:47:34 +00001904 --enable-ccmalloc enable 'ccmalloc' memory debug support
1905 --enable-efence enable 'efence' memory debug support
1906 --enable-prof enable 'prof' profiling support
1907 --enable-gprof enable 'gprof' profiling support
1908 --enable-gcov enable 'gcov' profiling support
cristy71d8c202012-03-20 17:05:01 +00001909 --enable-legacy-support install legacy command-line utilities (default disabled)
cristya0b81c32010-01-22 02:54:33 +00001910 --disable-assert turn off assertions
cristydd17feb2014-03-05 02:06:32 +00001911 --disable-docs disable building of documentation
cristy3ed852e2009-09-05 21:47:34 +00001912
1913Optional Packages:
1914 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1915 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001916 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cristy7247bba2012-02-05 16:37:27 +00001917 --with-dmalloc use dmalloc, as in http://www.dmalloc.com
cristya0459972013-11-03 18:09:35 +00001918 --with-gcc-arch=<arch> use architecture <arch> for gcc -march/-mtune,
1919 instead of guessing
cristy670aa3c2011-11-03 00:54:00 +00001920 --includearch-dir=DIR ARCH specific include directory
1921 --sharearch-dir=DIR ARCH specific config directory
cristy2ec87cc2013-02-18 17:46:50 +00001922 --with-pkgconfigdir=DIR Path to the pkgconfig directory [LIBDIR/pkgconfig]
cristy3ed852e2009-09-05 21:47:34 +00001923 --without-threads disable threads support
cristy99bd5232011-12-07 14:38:20 +00001924 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
cristy73bd4a52010-10-05 11:24:23 +00001925 both]
cristyda16f162011-02-19 23:52:17 +00001926 --with-sysroot=DIR Search for dependent libraries within DIR
1927 (or the compiler's sysroot if not specified).
cristy3ed852e2009-09-05 21:47:34 +00001928 --with-modules enable building dynamically loadable modules
1929 --with-method-prefix=PREFIX
1930 prefix MagickCore API methods
1931 --with-quantum-depth=DEPTH
1932 number of bits in a pixel quantum (default 16)
1933 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1934 memory)
1935 --with-frozenpaths freeze delegate paths
1936 --without-magick-plus-plus
1937 disable build/install of Magick++
cristy3a75f062012-09-08 23:29:40 +00001938 --with-package-release-name=NAME
1939 encode this name into the shared library
cristy3ed852e2009-09-05 21:47:34 +00001940 --with-perl enable build/install of PerlMagick
1941 --with-perl-options=OPTIONS
1942 options to pass on command-line when generating
cristyfc3d0222012-02-07 15:05:57 +00001943 PerlMagick build file
cristy3b0097d2014-11-04 15:34:47 +00001944 --with-jemalloc enable jemalloc memory allocation library support
cristy3ed852e2009-09-05 21:47:34 +00001945 --with-umem enable umem memory allocation library support
1946 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1947 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001948 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001949 --without-zlib disable ZLIB support
cristy5a3dc992014-12-05 19:50:04 +00001950 --with-apple-font-dir=DIR
1951 Apple font directory
cristy3ed852e2009-09-05 21:47:34 +00001952 --with-autotrace enable autotrace support
1953 --without-dps disable Display Postscript support
cristy430a7312010-01-21 20:44:04 +00001954 --with-dejavu-font-dir=DIR
1955 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001956 --without-fftw disable FFTW support
1957 --without-fpx disable FlashPIX support
cristy853d9902014-08-21 18:50:43 +00001958 --without-djvu disable DjVu support
cristy3ed852e2009-09-05 21:47:34 +00001959 --without-fontconfig disable fontconfig support
cristy81beccd2011-10-03 18:17:24 +00001960 --without-freetype disable Freetype support
cristybdabdd62013-03-04 17:43:36 +00001961 --with-gslib enable Ghostscript library support
cristy3ed852e2009-09-05 21:47:34 +00001962 --with-fontpath=DIR prepend to default font search path
1963 --with-gs-font-dir=DIR Ghostscript font directory
cristybdabdd62013-03-04 17:43:36 +00001964 --with-gvc enable GVC support
cristy3ed852e2009-09-05 21:47:34 +00001965 --without-jbig disable JBIG support
1966 --without-jpeg disable JPEG support
cristy71203402010-06-18 13:12:03 +00001967 --without-lcms disable lcms (v1.1X) support
1968 --without-lcms2 disable lcms (v2.X) support
cristy99db3872014-01-01 15:11:34 +00001969 --without-openjp2 disable OpenJP2 support
cristyf0c78232010-03-15 12:53:40 +00001970 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00001971 --without-lzma disable LZMA support
cristy3ed852e2009-09-05 21:47:34 +00001972 --without-openexr disable OpenEXR support
cristy41cbe8a2011-10-27 01:35:18 +00001973 --without-pango disable PANGO support
cristy3ed852e2009-09-05 21:47:34 +00001974 --without-png disable PNG support
cristy51633f52013-04-23 14:03:19 +00001975 --with-rsvg enable RSVG support
cristy3ed852e2009-09-05 21:47:34 +00001976 --without-tiff disable TIFF support
cristyb1860752011-03-14 00:27:46 +00001977 --without-webp disable WEBP support
cristy3ed852e2009-09-05 21:47:34 +00001978 --with-windows-font-dir=DIR
cristy5a3dc992014-12-05 19:50:04 +00001979 Windows font directory
cristyde3fc5d2012-02-12 15:40:47 +00001980 --with-wmf enable WMF support
cristy3ed852e2009-09-05 21:47:34 +00001981 --without-xml disable XML support
1982
1983Some influential environment variables:
1984 CC C compiler command
1985 CFLAGS C compiler flags
1986 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1987 nonstandard directory <lib dir>
1988 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001989 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001990 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001991 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001992 CXX C++ compiler command
1993 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00001994 PKG_CONFIG path to pkg-config utility
nicolas6237c462010-10-05 06:11:49 +00001995 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00001996 XMKMF Path to xmkmf, Makefile generator for X Window System
1997 AUTOTRACE_CFLAGS
1998 C compiler flags for AUTOTRACE, overriding pkg-config
1999 AUTOTRACE_LIBS
2000 linker flags for AUTOTRACE, overriding pkg-config
2001 FONTCONFIG_CFLAGS
2002 C compiler flags for FONTCONFIG, overriding pkg-config
2003 FONTCONFIG_LIBS
2004 linker flags for FONTCONFIG, overriding pkg-config
cristy03f187e2013-01-24 00:22:19 +00002005 FREETYPE_CFLAGS
2006 C compiler flags for FREETYPE, overriding pkg-config
2007 FREETYPE_LIBS
2008 linker flags for FREETYPE, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002009 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
2010 GVC_LIBS linker flags for GVC, overriding pkg-config
cristy99db3872014-01-01 15:11:34 +00002011 LIBOPENJP2_CFLAGS
2012 C compiler flags for LIBOPENJP2, overriding pkg-config
2013 LIBOPENJP2_LIBS
2014 linker flags for LIBOPENJP2, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002015 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
2016 LQR_LIBS linker flags for LQR, overriding pkg-config
cristyb94e5002011-11-14 13:20:10 +00002017 LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config
2018 LZMA_LIBS linker flags for LZMA, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002019 OPENEXR_CFLAGS
2020 C compiler flags for OPENEXR, overriding pkg-config
2021 OPENEXR_LIBS
2022 linker flags for OPENEXR, overriding pkg-config
cristy41cbe8a2011-10-27 01:35:18 +00002023 PANGO_CFLAGS
2024 C compiler flags for PANGO, overriding pkg-config
2025 PANGO_LIBS linker flags for PANGO, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002026 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
2027 RSVG_LIBS linker flags for RSVG, overriding pkg-config
2028 CAIRO_SVG_CFLAGS
2029 C compiler flags for CAIRO_SVG, overriding pkg-config
2030 CAIRO_SVG_LIBS
2031 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00002032
2033Use these variables to override the choices made by `configure' or to help
2034it to find libraries and programs with nonstandard names/locations.
2035
2036Report bugs to <http://www.imagemagick.org>.
2037_ACEOF
2038ac_status=$?
2039fi
2040
2041if test "$ac_init_help" = "recursive"; then
2042 # If there are subdirs, report their specific --help.
2043 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2044 test -d "$ac_dir" ||
2045 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2046 continue
2047 ac_builddir=.
2048
2049case "$ac_dir" in
2050.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2051*)
2052 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2053 # A ".." for each directory in $ac_dir_suffix.
2054 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2055 case $ac_top_builddir_sub in
2056 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2057 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2058 esac ;;
2059esac
2060ac_abs_top_builddir=$ac_pwd
2061ac_abs_builddir=$ac_pwd$ac_dir_suffix
2062# for backward compatibility:
2063ac_top_builddir=$ac_top_build_prefix
2064
2065case $srcdir in
2066 .) # We are building in place.
2067 ac_srcdir=.
2068 ac_top_srcdir=$ac_top_builddir_sub
2069 ac_abs_top_srcdir=$ac_pwd ;;
2070 [\\/]* | ?:[\\/]* ) # Absolute name.
2071 ac_srcdir=$srcdir$ac_dir_suffix;
2072 ac_top_srcdir=$srcdir
2073 ac_abs_top_srcdir=$srcdir ;;
2074 *) # Relative name.
2075 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2076 ac_top_srcdir=$ac_top_build_prefix$srcdir
2077 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2078esac
2079ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2080
2081 cd "$ac_dir" || { ac_status=$?; continue; }
2082 # Check for guested configure.
2083 if test -f "$ac_srcdir/configure.gnu"; then
2084 echo &&
2085 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2086 elif test -f "$ac_srcdir/configure"; then
2087 echo &&
2088 $SHELL "$ac_srcdir/configure" --help=recursive
2089 else
2090 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2091 fi || ac_status=$?
2092 cd "$ac_pwd" || { ac_status=$?; break; }
2093 done
2094fi
2095
2096test -n "$ac_init_help" && exit $ac_status
2097if $ac_init_version; then
2098 cat <<\_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00002099ImageMagick configure 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +00002100generated by GNU Autoconf 2.69
cristy3ed852e2009-09-05 21:47:34 +00002101
cristy14fefe52012-05-21 00:59:18 +00002102Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002103This configure script is free software; the Free Software Foundation
2104gives unlimited permission to copy, distribute and modify it.
2105_ACEOF
2106 exit
2107fi
cristy8b350f62009-11-15 23:12:43 +00002108
2109## ------------------------ ##
2110## Autoconf initialization. ##
2111## ------------------------ ##
2112
2113# ac_fn_c_try_compile LINENO
2114# --------------------------
2115# Try to compile conftest.$ac_ext, and return whether this succeeded.
2116ac_fn_c_try_compile ()
2117{
2118 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2119 rm -f conftest.$ac_objext
2120 if { { ac_try="$ac_compile"
2121case "(($ac_try" in
2122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2123 *) ac_try_echo=$ac_try;;
2124esac
2125eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2126$as_echo "$ac_try_echo"; } >&5
2127 (eval "$ac_compile") 2>conftest.err
2128 ac_status=$?
2129 if test -s conftest.err; then
2130 grep -v '^ *+' conftest.err >conftest.er1
2131 cat conftest.er1 >&5
2132 mv -f conftest.er1 conftest.err
2133 fi
2134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2135 test $ac_status = 0; } && {
2136 test -z "$ac_c_werror_flag" ||
2137 test ! -s conftest.err
2138 } && test -s conftest.$ac_objext; then :
2139 ac_retval=0
2140else
2141 $as_echo "$as_me: failed program was:" >&5
2142sed 's/^/| /' conftest.$ac_ext >&5
2143
2144 ac_retval=1
2145fi
cristyda16f162011-02-19 23:52:17 +00002146 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002147 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002148
2149} # ac_fn_c_try_compile
2150
cristy95646052009-11-28 23:05:30 +00002151# ac_fn_c_try_cpp LINENO
2152# ----------------------
2153# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2154ac_fn_c_try_cpp ()
2155{
2156 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2157 if { { ac_try="$ac_cpp conftest.$ac_ext"
2158case "(($ac_try" in
2159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2160 *) ac_try_echo=$ac_try;;
2161esac
2162eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2163$as_echo "$ac_try_echo"; } >&5
2164 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2165 ac_status=$?
2166 if test -s conftest.err; then
2167 grep -v '^ *+' conftest.err >conftest.er1
2168 cat conftest.er1 >&5
2169 mv -f conftest.er1 conftest.err
2170 fi
2171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002172 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002173 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2174 test ! -s conftest.err
2175 }; then :
2176 ac_retval=0
2177else
2178 $as_echo "$as_me: failed program was:" >&5
2179sed 's/^/| /' conftest.$ac_ext >&5
2180
2181 ac_retval=1
2182fi
cristyda16f162011-02-19 23:52:17 +00002183 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002184 as_fn_set_status $ac_retval
2185
2186} # ac_fn_c_try_cpp
2187
cristy8b350f62009-11-15 23:12:43 +00002188# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2189# -------------------------------------------------------
2190# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2191# the include files in INCLUDES and setting the cache variable VAR
2192# accordingly.
2193ac_fn_c_check_header_mongrel ()
2194{
2195 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002196 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2198$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002199if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002200 $as_echo_n "(cached) " >&6
2201fi
2202eval ac_res=\$$3
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2204$as_echo "$ac_res" >&6; }
2205else
2206 # Is the header compilable?
2207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2208$as_echo_n "checking $2 usability... " >&6; }
2209cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2210/* end confdefs.h. */
2211$4
2212#include <$2>
2213_ACEOF
2214if ac_fn_c_try_compile "$LINENO"; then :
2215 ac_header_compiler=yes
2216else
2217 ac_header_compiler=no
2218fi
2219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2221$as_echo "$ac_header_compiler" >&6; }
2222
2223# Is the header present?
2224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2225$as_echo_n "checking $2 presence... " >&6; }
2226cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2227/* end confdefs.h. */
2228#include <$2>
2229_ACEOF
2230if ac_fn_c_try_cpp "$LINENO"; then :
2231 ac_header_preproc=yes
2232else
2233 ac_header_preproc=no
2234fi
cristyda16f162011-02-19 23:52:17 +00002235rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2237$as_echo "$ac_header_preproc" >&6; }
2238
2239# So? What about this header?
2240case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2241 yes:no: )
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2243$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2245$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2246 ;;
2247 no:yes:* )
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2249$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2251$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2253$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2255$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2257$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002258( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002259## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002260## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002261 ) | sed "s/^/$as_me: WARNING: /" >&2
2262 ;;
2263esac
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2265$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002266if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002267 $as_echo_n "(cached) " >&6
2268else
2269 eval "$3=\$ac_header_compiler"
2270fi
2271eval ac_res=\$$3
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2273$as_echo "$ac_res" >&6; }
2274fi
cristyda16f162011-02-19 23:52:17 +00002275 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002276
2277} # ac_fn_c_check_header_mongrel
2278
2279# ac_fn_c_try_run LINENO
2280# ----------------------
2281# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2282# that executables *can* be run.
2283ac_fn_c_try_run ()
2284{
2285 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2286 if { { ac_try="$ac_link"
2287case "(($ac_try" in
2288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2289 *) ac_try_echo=$ac_try;;
2290esac
2291eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2292$as_echo "$ac_try_echo"; } >&5
2293 (eval "$ac_link") 2>&5
2294 ac_status=$?
2295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2296 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2297 { { case "(($ac_try" in
2298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2299 *) ac_try_echo=$ac_try;;
2300esac
2301eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2302$as_echo "$ac_try_echo"; } >&5
2303 (eval "$ac_try") 2>&5
2304 ac_status=$?
2305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2306 test $ac_status = 0; }; }; then :
2307 ac_retval=0
2308else
2309 $as_echo "$as_me: program exited with status $ac_status" >&5
2310 $as_echo "$as_me: failed program was:" >&5
2311sed 's/^/| /' conftest.$ac_ext >&5
2312
2313 ac_retval=$ac_status
2314fi
2315 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002316 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002317 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002318
2319} # ac_fn_c_try_run
2320
2321# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2322# -------------------------------------------------------
2323# Tests whether HEADER exists and can be compiled using the include files in
2324# INCLUDES, setting the cache variable VAR accordingly.
2325ac_fn_c_check_header_compile ()
2326{
2327 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2329$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002330if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002331 $as_echo_n "(cached) " >&6
2332else
2333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2334/* end confdefs.h. */
2335$4
2336#include <$2>
2337_ACEOF
2338if ac_fn_c_try_compile "$LINENO"; then :
2339 eval "$3=yes"
2340else
2341 eval "$3=no"
2342fi
2343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2344fi
2345eval ac_res=\$$3
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2347$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002348 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002349
2350} # ac_fn_c_check_header_compile
2351
cristya0b81c32010-01-22 02:54:33 +00002352# ac_fn_cxx_try_compile LINENO
2353# ----------------------------
2354# Try to compile conftest.$ac_ext, and return whether this succeeded.
2355ac_fn_cxx_try_compile ()
2356{
2357 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2358 rm -f conftest.$ac_objext
2359 if { { ac_try="$ac_compile"
2360case "(($ac_try" in
2361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2362 *) ac_try_echo=$ac_try;;
2363esac
2364eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2365$as_echo "$ac_try_echo"; } >&5
2366 (eval "$ac_compile") 2>conftest.err
2367 ac_status=$?
2368 if test -s conftest.err; then
2369 grep -v '^ *+' conftest.err >conftest.er1
2370 cat conftest.er1 >&5
2371 mv -f conftest.er1 conftest.err
2372 fi
2373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2374 test $ac_status = 0; } && {
2375 test -z "$ac_cxx_werror_flag" ||
2376 test ! -s conftest.err
2377 } && test -s conftest.$ac_objext; then :
2378 ac_retval=0
2379else
2380 $as_echo "$as_me: failed program was:" >&5
2381sed 's/^/| /' conftest.$ac_ext >&5
2382
2383 ac_retval=1
2384fi
cristyda16f162011-02-19 23:52:17 +00002385 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002386 as_fn_set_status $ac_retval
2387
2388} # ac_fn_cxx_try_compile
2389
cristyd95b7a52013-10-23 13:12:53 +00002390# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2391# --------------------------------------------
2392# Tries to find the compile-time value of EXPR in a program that includes
2393# INCLUDES, setting VAR accordingly. Returns whether the value could be
2394# computed
2395ac_fn_c_compute_int ()
2396{
2397 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2398 if test "$cross_compiling" = yes; then
2399 # Depending upon the size, compute the lo and hi bounds.
2400cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2401/* end confdefs.h. */
2402$4
2403int
2404main ()
2405{
2406static int test_array [1 - 2 * !(($2) >= 0)];
2407test_array [0] = 0;
2408return test_array [0];
2409
2410 ;
2411 return 0;
2412}
2413_ACEOF
2414if ac_fn_c_try_compile "$LINENO"; then :
2415 ac_lo=0 ac_mid=0
2416 while :; do
2417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2418/* end confdefs.h. */
2419$4
2420int
2421main ()
2422{
2423static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2424test_array [0] = 0;
2425return test_array [0];
2426
2427 ;
2428 return 0;
2429}
2430_ACEOF
2431if ac_fn_c_try_compile "$LINENO"; then :
2432 ac_hi=$ac_mid; break
2433else
2434 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2435 if test $ac_lo -le $ac_mid; then
2436 ac_lo= ac_hi=
2437 break
2438 fi
2439 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2440fi
2441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2442 done
2443else
2444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2445/* end confdefs.h. */
2446$4
2447int
2448main ()
2449{
2450static int test_array [1 - 2 * !(($2) < 0)];
2451test_array [0] = 0;
2452return test_array [0];
2453
2454 ;
2455 return 0;
2456}
2457_ACEOF
2458if ac_fn_c_try_compile "$LINENO"; then :
2459 ac_hi=-1 ac_mid=-1
2460 while :; do
2461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2462/* end confdefs.h. */
2463$4
2464int
2465main ()
2466{
2467static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2468test_array [0] = 0;
2469return test_array [0];
2470
2471 ;
2472 return 0;
2473}
2474_ACEOF
2475if ac_fn_c_try_compile "$LINENO"; then :
2476 ac_lo=$ac_mid; break
2477else
2478 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2479 if test $ac_mid -le $ac_hi; then
2480 ac_lo= ac_hi=
2481 break
2482 fi
2483 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2484fi
2485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2486 done
2487else
2488 ac_lo= ac_hi=
2489fi
2490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2491fi
2492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2493# Binary search between lo and hi bounds.
2494while test "x$ac_lo" != "x$ac_hi"; do
2495 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2497/* end confdefs.h. */
2498$4
2499int
2500main ()
2501{
2502static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2503test_array [0] = 0;
2504return test_array [0];
2505
2506 ;
2507 return 0;
2508}
2509_ACEOF
2510if ac_fn_c_try_compile "$LINENO"; then :
2511 ac_hi=$ac_mid
2512else
2513 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2514fi
2515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2516done
2517case $ac_lo in #((
2518?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2519'') ac_retval=1 ;;
2520esac
2521 else
2522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2523/* end confdefs.h. */
2524$4
2525static long int longval () { return $2; }
2526static unsigned long int ulongval () { return $2; }
2527#include <stdio.h>
2528#include <stdlib.h>
2529int
2530main ()
2531{
2532
2533 FILE *f = fopen ("conftest.val", "w");
2534 if (! f)
2535 return 1;
2536 if (($2) < 0)
2537 {
2538 long int i = longval ();
2539 if (i != ($2))
2540 return 1;
2541 fprintf (f, "%ld", i);
2542 }
2543 else
2544 {
2545 unsigned long int i = ulongval ();
2546 if (i != ($2))
2547 return 1;
2548 fprintf (f, "%lu", i);
2549 }
2550 /* Do not output a trailing newline, as this causes \r\n confusion
2551 on some platforms. */
2552 return ferror (f) || fclose (f) != 0;
2553
2554 ;
2555 return 0;
2556}
2557_ACEOF
2558if ac_fn_c_try_run "$LINENO"; then :
2559 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2560else
2561 ac_retval=1
2562fi
2563rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2564 conftest.$ac_objext conftest.beam conftest.$ac_ext
2565rm -f conftest.val
2566
2567 fi
2568 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2569 as_fn_set_status $ac_retval
2570
2571} # ac_fn_c_compute_int
2572
cristy8b350f62009-11-15 23:12:43 +00002573# ac_fn_c_try_link LINENO
2574# -----------------------
2575# Try to link conftest.$ac_ext, and return whether this succeeded.
2576ac_fn_c_try_link ()
2577{
2578 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2579 rm -f conftest.$ac_objext conftest$ac_exeext
2580 if { { ac_try="$ac_link"
2581case "(($ac_try" in
2582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2583 *) ac_try_echo=$ac_try;;
2584esac
2585eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2586$as_echo "$ac_try_echo"; } >&5
2587 (eval "$ac_link") 2>conftest.err
2588 ac_status=$?
2589 if test -s conftest.err; then
2590 grep -v '^ *+' conftest.err >conftest.er1
2591 cat conftest.er1 >&5
2592 mv -f conftest.er1 conftest.err
2593 fi
2594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2595 test $ac_status = 0; } && {
2596 test -z "$ac_c_werror_flag" ||
2597 test ! -s conftest.err
2598 } && test -s conftest$ac_exeext && {
2599 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002600 test -x conftest$ac_exeext
cristy8b350f62009-11-15 23:12:43 +00002601 }; then :
2602 ac_retval=0
2603else
2604 $as_echo "$as_me: failed program was:" >&5
2605sed 's/^/| /' conftest.$ac_ext >&5
2606
2607 ac_retval=1
2608fi
2609 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2610 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2611 # interfere with the next link command; also delete a directory that is
2612 # left behind by Apple's compiler. We do this before executing the actions.
2613 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002614 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002615 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002616
2617} # ac_fn_c_try_link
2618
cristy73bd4a52010-10-05 11:24:23 +00002619# ac_fn_c_check_func LINENO FUNC VAR
2620# ----------------------------------
2621# Tests whether FUNC exists, setting the cache variable VAR accordingly
2622ac_fn_c_check_func ()
2623{
2624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2626$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002627if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002628 $as_echo_n "(cached) " >&6
2629else
2630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2631/* end confdefs.h. */
2632/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2633 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2634#define $2 innocuous_$2
2635
2636/* System header to define __stub macros and hopefully few prototypes,
2637 which can conflict with char $2 (); below.
2638 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2639 <limits.h> exists even on freestanding compilers. */
2640
2641#ifdef __STDC__
2642# include <limits.h>
2643#else
2644# include <assert.h>
2645#endif
2646
2647#undef $2
2648
2649/* Override any GCC internal prototype to avoid an error.
2650 Use char because int might match the return type of a GCC
2651 builtin and then its argument prototype would still apply. */
2652#ifdef __cplusplus
2653extern "C"
2654#endif
2655char $2 ();
2656/* The GNU C library defines this for functions which it implements
2657 to always fail with ENOSYS. Some functions are actually named
2658 something starting with __ and the normal name is an alias. */
2659#if defined __stub_$2 || defined __stub___$2
2660choke me
2661#endif
2662
2663int
2664main ()
2665{
2666return $2 ();
2667 ;
2668 return 0;
2669}
2670_ACEOF
2671if ac_fn_c_try_link "$LINENO"; then :
2672 eval "$3=yes"
2673else
2674 eval "$3=no"
2675fi
2676rm -f core conftest.err conftest.$ac_objext \
2677 conftest$ac_exeext conftest.$ac_ext
2678fi
2679eval ac_res=\$$3
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2681$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002682 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002683
2684} # ac_fn_c_check_func
2685
2686# ac_fn_cxx_try_cpp LINENO
2687# ------------------------
2688# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2689ac_fn_cxx_try_cpp ()
2690{
2691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2692 if { { ac_try="$ac_cpp conftest.$ac_ext"
2693case "(($ac_try" in
2694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2695 *) ac_try_echo=$ac_try;;
2696esac
2697eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2698$as_echo "$ac_try_echo"; } >&5
2699 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2700 ac_status=$?
2701 if test -s conftest.err; then
2702 grep -v '^ *+' conftest.err >conftest.er1
2703 cat conftest.er1 >&5
2704 mv -f conftest.er1 conftest.err
2705 fi
2706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002707 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002708 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2709 test ! -s conftest.err
2710 }; then :
2711 ac_retval=0
2712else
2713 $as_echo "$as_me: failed program was:" >&5
2714sed 's/^/| /' conftest.$ac_ext >&5
2715
2716 ac_retval=1
2717fi
cristyda16f162011-02-19 23:52:17 +00002718 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002719 as_fn_set_status $ac_retval
2720
2721} # ac_fn_cxx_try_cpp
2722
2723# ac_fn_cxx_try_link LINENO
2724# -------------------------
2725# Try to link conftest.$ac_ext, and return whether this succeeded.
2726ac_fn_cxx_try_link ()
2727{
2728 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2729 rm -f conftest.$ac_objext conftest$ac_exeext
2730 if { { ac_try="$ac_link"
2731case "(($ac_try" in
2732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2733 *) ac_try_echo=$ac_try;;
2734esac
2735eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2736$as_echo "$ac_try_echo"; } >&5
2737 (eval "$ac_link") 2>conftest.err
2738 ac_status=$?
2739 if test -s conftest.err; then
2740 grep -v '^ *+' conftest.err >conftest.er1
2741 cat conftest.er1 >&5
2742 mv -f conftest.er1 conftest.err
2743 fi
2744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2745 test $ac_status = 0; } && {
2746 test -z "$ac_cxx_werror_flag" ||
2747 test ! -s conftest.err
2748 } && test -s conftest$ac_exeext && {
2749 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002750 test -x conftest$ac_exeext
cristy73bd4a52010-10-05 11:24:23 +00002751 }; then :
2752 ac_retval=0
2753else
2754 $as_echo "$as_me: failed program was:" >&5
2755sed 's/^/| /' conftest.$ac_ext >&5
2756
2757 ac_retval=1
2758fi
2759 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2760 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2761 # interfere with the next link command; also delete a directory that is
2762 # left behind by Apple's compiler. We do this before executing the actions.
2763 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002764 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002765 as_fn_set_status $ac_retval
2766
2767} # ac_fn_cxx_try_link
2768
cristy8b350f62009-11-15 23:12:43 +00002769# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2770# -------------------------------------------
2771# Tests whether TYPE exists after having included INCLUDES, setting cache
2772# variable VAR accordingly.
2773ac_fn_c_check_type ()
2774{
2775 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2777$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002778if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002779 $as_echo_n "(cached) " >&6
2780else
2781 eval "$3=no"
2782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2783/* end confdefs.h. */
2784$4
2785int
2786main ()
2787{
2788if (sizeof ($2))
2789 return 0;
2790 ;
2791 return 0;
2792}
2793_ACEOF
2794if ac_fn_c_try_compile "$LINENO"; then :
2795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2796/* end confdefs.h. */
2797$4
2798int
2799main ()
2800{
2801if (sizeof (($2)))
2802 return 0;
2803 ;
2804 return 0;
2805}
2806_ACEOF
2807if ac_fn_c_try_compile "$LINENO"; then :
2808
2809else
2810 eval "$3=yes"
2811fi
2812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2813fi
2814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2815fi
2816eval ac_res=\$$3
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2818$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002819 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002820
2821} # ac_fn_c_check_type
2822
cristy92703d82010-04-26 00:18:18 +00002823# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2824# ----------------------------------------------------
2825# Tries to find if the field MEMBER exists in type AGGR, after including
2826# INCLUDES, setting cache variable VAR accordingly.
2827ac_fn_c_check_member ()
2828{
2829 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2831$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002832if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002833 $as_echo_n "(cached) " >&6
2834else
2835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2836/* end confdefs.h. */
2837$5
2838int
2839main ()
2840{
2841static $2 ac_aggr;
2842if (ac_aggr.$3)
2843return 0;
2844 ;
2845 return 0;
2846}
2847_ACEOF
2848if ac_fn_c_try_compile "$LINENO"; then :
2849 eval "$4=yes"
2850else
2851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2852/* end confdefs.h. */
2853$5
2854int
2855main ()
2856{
2857static $2 ac_aggr;
2858if (sizeof ac_aggr.$3)
2859return 0;
2860 ;
2861 return 0;
2862}
2863_ACEOF
2864if ac_fn_c_try_compile "$LINENO"; then :
2865 eval "$4=yes"
2866else
2867 eval "$4=no"
2868fi
2869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2870fi
2871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2872fi
2873eval ac_res=\$$4
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2875$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002876 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002877
2878} # ac_fn_c_check_member
2879
cristy5eef09f2012-10-16 12:08:28 +00002880# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2881# ---------------------------------------------
2882# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2883# accordingly.
2884ac_fn_c_check_decl ()
2885{
2886 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2887 as_decl_name=`echo $2|sed 's/ *(.*//'`
2888 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2890$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2891if eval \${$3+:} false; then :
2892 $as_echo_n "(cached) " >&6
2893else
2894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2895/* end confdefs.h. */
2896$4
2897int
2898main ()
2899{
2900#ifndef $as_decl_name
2901#ifdef __cplusplus
2902 (void) $as_decl_use;
2903#else
2904 (void) $as_decl_name;
2905#endif
2906#endif
2907
2908 ;
2909 return 0;
2910}
2911_ACEOF
2912if ac_fn_c_try_compile "$LINENO"; then :
2913 eval "$3=yes"
2914else
2915 eval "$3=no"
2916fi
2917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2918fi
2919eval ac_res=\$$3
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2921$as_echo "$ac_res" >&6; }
2922 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2923
2924} # ac_fn_c_check_decl
2925
cristy501c8042011-05-26 17:46:28 +00002926# ac_fn_c_find_intX_t LINENO BITS VAR
2927# -----------------------------------
2928# Finds a signed integer type with width BITS, setting cache variable VAR
2929# accordingly.
2930ac_fn_c_find_intX_t ()
2931{
2932 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2934$as_echo_n "checking for int$2_t... " >&6; }
2935if eval \${$3+:} false; then :
2936 $as_echo_n "(cached) " >&6
2937else
2938 eval "$3=no"
2939 # Order is important - never check a type that is potentially smaller
2940 # than half of the expected target width.
2941 for ac_type in int$2_t 'int' 'long int' \
2942 'long long int' 'short int' 'signed char'; do
2943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2944/* end confdefs.h. */
2945$ac_includes_default
2946 enum { N = $2 / 2 - 1 };
2947int
2948main ()
2949{
2950static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
cristy14fefe52012-05-21 00:59:18 +00002951test_array [0] = 0;
2952return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002953
2954 ;
2955 return 0;
2956}
2957_ACEOF
2958if ac_fn_c_try_compile "$LINENO"; then :
2959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2960/* end confdefs.h. */
2961$ac_includes_default
2962 enum { N = $2 / 2 - 1 };
2963int
2964main ()
2965{
2966static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2967 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
cristy14fefe52012-05-21 00:59:18 +00002968test_array [0] = 0;
2969return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002970
2971 ;
2972 return 0;
2973}
2974_ACEOF
2975if ac_fn_c_try_compile "$LINENO"; then :
2976
2977else
2978 case $ac_type in #(
2979 int$2_t) :
2980 eval "$3=yes" ;; #(
2981 *) :
2982 eval "$3=\$ac_type" ;;
2983esac
2984fi
2985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2986fi
2987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2988 if eval test \"x\$"$3"\" = x"no"; then :
2989
2990else
2991 break
2992fi
2993 done
2994fi
2995eval ac_res=\$$3
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2997$as_echo "$ac_res" >&6; }
2998 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2999
3000} # ac_fn_c_find_intX_t
3001
3002# ac_fn_c_find_uintX_t LINENO BITS VAR
3003# ------------------------------------
3004# Finds an unsigned integer type with width BITS, setting cache variable VAR
3005# accordingly.
3006ac_fn_c_find_uintX_t ()
3007{
3008 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
3010$as_echo_n "checking for uint$2_t... " >&6; }
3011if eval \${$3+:} false; then :
3012 $as_echo_n "(cached) " >&6
3013else
3014 eval "$3=no"
3015 # Order is important - never check a type that is potentially smaller
3016 # than half of the expected target width.
3017 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
3018 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
3019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3020/* end confdefs.h. */
3021$ac_includes_default
3022int
3023main ()
3024{
3025static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
cristy14fefe52012-05-21 00:59:18 +00003026test_array [0] = 0;
3027return test_array [0];
cristy501c8042011-05-26 17:46:28 +00003028
3029 ;
3030 return 0;
3031}
3032_ACEOF
3033if ac_fn_c_try_compile "$LINENO"; then :
3034 case $ac_type in #(
3035 uint$2_t) :
3036 eval "$3=yes" ;; #(
3037 *) :
3038 eval "$3=\$ac_type" ;;
3039esac
3040fi
3041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3042 if eval test \"x\$"$3"\" = x"no"; then :
3043
3044else
3045 break
3046fi
3047 done
3048fi
3049eval ac_res=\$$3
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3051$as_echo "$ac_res" >&6; }
3052 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3053
3054} # ac_fn_c_find_uintX_t
3055
cristy8b350f62009-11-15 23:12:43 +00003056# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
3057# ---------------------------------------------------------
3058# Tests whether HEADER exists, giving a warning if it cannot be compiled using
3059# the include files in INCLUDES and setting the cache variable VAR
3060# accordingly.
3061ac_fn_cxx_check_header_mongrel ()
3062{
3063 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00003064 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3066$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003067if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003068 $as_echo_n "(cached) " >&6
3069fi
3070eval ac_res=\$$3
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3072$as_echo "$ac_res" >&6; }
3073else
3074 # Is the header compilable?
3075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3076$as_echo_n "checking $2 usability... " >&6; }
3077cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3078/* end confdefs.h. */
3079$4
3080#include <$2>
3081_ACEOF
3082if ac_fn_cxx_try_compile "$LINENO"; then :
3083 ac_header_compiler=yes
3084else
3085 ac_header_compiler=no
3086fi
3087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3089$as_echo "$ac_header_compiler" >&6; }
3090
3091# Is the header present?
3092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3093$as_echo_n "checking $2 presence... " >&6; }
3094cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3095/* end confdefs.h. */
3096#include <$2>
3097_ACEOF
3098if ac_fn_cxx_try_cpp "$LINENO"; then :
3099 ac_header_preproc=yes
3100else
3101 ac_header_preproc=no
3102fi
cristyda16f162011-02-19 23:52:17 +00003103rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00003104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3105$as_echo "$ac_header_preproc" >&6; }
3106
3107# So? What about this header?
3108case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3109 yes:no: )
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3111$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3113$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3114 ;;
3115 no:yes:* )
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3117$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3119$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3121$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3123$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3125$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003126( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00003127## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00003128## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00003129 ) | sed "s/^/$as_me: WARNING: /" >&2
3130 ;;
3131esac
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3133$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003134if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003135 $as_echo_n "(cached) " >&6
3136else
3137 eval "$3=\$ac_header_compiler"
3138fi
3139eval ac_res=\$$3
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3141$as_echo "$ac_res" >&6; }
3142fi
cristyda16f162011-02-19 23:52:17 +00003143 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00003144
3145} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003146cat >config.log <<_ACEOF
3147This file contains any messages produced by compilers while
3148running configure, to aid debugging if configure makes a mistake.
3149
cristy29eb34e2011-10-16 00:46:08 +00003150It was created by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +00003151generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003152
3153 $ $0 $@
3154
3155_ACEOF
3156exec 5>>config.log
3157{
3158cat <<_ASUNAME
3159## --------- ##
3160## Platform. ##
3161## --------- ##
3162
3163hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3164uname -m = `(uname -m) 2>/dev/null || echo unknown`
3165uname -r = `(uname -r) 2>/dev/null || echo unknown`
3166uname -s = `(uname -s) 2>/dev/null || echo unknown`
3167uname -v = `(uname -v) 2>/dev/null || echo unknown`
3168
3169/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3170/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3171
3172/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3173/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3174/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3175/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3176/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3177/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3178/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3179
3180_ASUNAME
3181
3182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3183for as_dir in $PATH
3184do
3185 IFS=$as_save_IFS
3186 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003187 $as_echo "PATH: $as_dir"
3188 done
cristy3ed852e2009-09-05 21:47:34 +00003189IFS=$as_save_IFS
3190
3191} >&5
3192
3193cat >&5 <<_ACEOF
3194
3195
3196## ----------- ##
3197## Core tests. ##
3198## ----------- ##
3199
3200_ACEOF
3201
3202
3203# Keep a trace of the command line.
3204# Strip out --no-create and --no-recursion so they do not pile up.
3205# Strip out --silent because we don't want to record it for future runs.
3206# Also quote any args containing shell meta-characters.
3207# Make two passes to allow for proper duplicate-argument suppression.
3208ac_configure_args=
3209ac_configure_args0=
3210ac_configure_args1=
3211ac_must_keep_next=false
3212for ac_pass in 1 2
3213do
3214 for ac_arg
3215 do
3216 case $ac_arg in
3217 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3218 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3219 | -silent | --silent | --silen | --sile | --sil)
3220 continue ;;
3221 *\'*)
3222 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3223 esac
3224 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003225 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003226 2)
cristy8b350f62009-11-15 23:12:43 +00003227 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003228 if test $ac_must_keep_next = true; then
3229 ac_must_keep_next=false # Got value, back to normal.
3230 else
3231 case $ac_arg in
3232 *=* | --config-cache | -C | -disable-* | --disable-* \
3233 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3234 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3235 | -with-* | --with-* | -without-* | --without-* | --x)
3236 case "$ac_configure_args0 " in
3237 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3238 esac
3239 ;;
3240 -* ) ac_must_keep_next=true ;;
3241 esac
3242 fi
cristy8b350f62009-11-15 23:12:43 +00003243 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003244 ;;
3245 esac
3246 done
3247done
cristy8b350f62009-11-15 23:12:43 +00003248{ ac_configure_args0=; unset ac_configure_args0;}
3249{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003250
3251# When interrupted or exit'd, cleanup temporary files, and complete
3252# config.log. We remove comments because anyway the quotes in there
3253# would cause problems or look ugly.
3254# WARNING: Use '\'' to represent an apostrophe within the trap.
3255# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3256trap 'exit_status=$?
3257 # Save into config.log some information that might help in debugging.
3258 {
3259 echo
3260
cristy98dddb52010-11-04 00:30:15 +00003261 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003262## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003263## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003264 echo
3265 # The following way of writing the cache mishandles newlines in values,
3266(
3267 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3268 eval ac_val=\$$ac_var
3269 case $ac_val in #(
3270 *${as_nl}*)
3271 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003272 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003273$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3274 esac
3275 case $ac_var in #(
3276 _ | IFS | as_nl) ;; #(
3277 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003278 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003279 esac ;;
3280 esac
3281 done
3282 (set) 2>&1 |
3283 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3284 *${as_nl}ac_space=\ *)
3285 sed -n \
3286 "s/'\''/'\''\\\\'\'''\''/g;
3287 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3288 ;; #(
3289 *)
3290 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3291 ;;
3292 esac |
3293 sort
3294)
3295 echo
3296
cristy98dddb52010-11-04 00:30:15 +00003297 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003298## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003299## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003300 echo
3301 for ac_var in $ac_subst_vars
3302 do
3303 eval ac_val=\$$ac_var
3304 case $ac_val in
3305 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3306 esac
3307 $as_echo "$ac_var='\''$ac_val'\''"
3308 done | sort
3309 echo
3310
3311 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003312 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003313## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003314## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003315 echo
3316 for ac_var in $ac_subst_files
3317 do
3318 eval ac_val=\$$ac_var
3319 case $ac_val in
3320 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3321 esac
3322 $as_echo "$ac_var='\''$ac_val'\''"
3323 done | sort
3324 echo
3325 fi
3326
3327 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003328 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003329## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003330## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003331 echo
3332 cat confdefs.h
3333 echo
3334 fi
3335 test "$ac_signal" != 0 &&
3336 $as_echo "$as_me: caught signal $ac_signal"
3337 $as_echo "$as_me: exit $exit_status"
3338 } >&5
3339 rm -f core *.core core.conftest.* &&
3340 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3341 exit $exit_status
3342' 0
3343for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003344 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003345done
3346ac_signal=0
3347
3348# confdefs.h avoids OS command line length limits that DEFS can exceed.
3349rm -f -r conftest* confdefs.h
3350
cristy8b350f62009-11-15 23:12:43 +00003351$as_echo "/* confdefs.h */" > confdefs.h
3352
cristy3ed852e2009-09-05 21:47:34 +00003353# Predefined preprocessor variables.
3354
3355cat >>confdefs.h <<_ACEOF
3356#define PACKAGE_NAME "$PACKAGE_NAME"
3357_ACEOF
3358
cristy3ed852e2009-09-05 21:47:34 +00003359cat >>confdefs.h <<_ACEOF
3360#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3361_ACEOF
3362
cristy3ed852e2009-09-05 21:47:34 +00003363cat >>confdefs.h <<_ACEOF
3364#define PACKAGE_VERSION "$PACKAGE_VERSION"
3365_ACEOF
3366
cristy3ed852e2009-09-05 21:47:34 +00003367cat >>confdefs.h <<_ACEOF
3368#define PACKAGE_STRING "$PACKAGE_STRING"
3369_ACEOF
3370
cristy3ed852e2009-09-05 21:47:34 +00003371cat >>confdefs.h <<_ACEOF
3372#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3373_ACEOF
3374
cristy8b350f62009-11-15 23:12:43 +00003375cat >>confdefs.h <<_ACEOF
3376#define PACKAGE_URL "$PACKAGE_URL"
3377_ACEOF
3378
cristy3ed852e2009-09-05 21:47:34 +00003379
3380# Let the site file select an alternate cache file if it wants to.
3381# Prefer an explicitly selected file to automatically selected ones.
3382ac_site_file1=NONE
3383ac_site_file2=NONE
3384if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003385 # We do not want a PATH search for config.site.
3386 case $CONFIG_SITE in #((
3387 -*) ac_site_file1=./$CONFIG_SITE;;
3388 */*) ac_site_file1=$CONFIG_SITE;;
3389 *) ac_site_file1=./$CONFIG_SITE;;
3390 esac
cristy3ed852e2009-09-05 21:47:34 +00003391elif test "x$prefix" != xNONE; then
3392 ac_site_file1=$prefix/share/config.site
3393 ac_site_file2=$prefix/etc/config.site
3394else
3395 ac_site_file1=$ac_default_prefix/share/config.site
3396 ac_site_file2=$ac_default_prefix/etc/config.site
3397fi
3398for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3399do
3400 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003401 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003402 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003403$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3404 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003405 . "$ac_site_file" \
3406 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3407$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3408as_fn_error $? "failed to load site script $ac_site_file
3409See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003410 fi
3411done
3412
3413if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003414 # Some versions of bash will fail to source /dev/null (special files
3415 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3416 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003417 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003418$as_echo "$as_me: loading cache $cache_file" >&6;}
3419 case $cache_file in
3420 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3421 *) . "./$cache_file";;
3422 esac
3423 fi
3424else
cristy8b350f62009-11-15 23:12:43 +00003425 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003426$as_echo "$as_me: creating cache $cache_file" >&6;}
3427 >$cache_file
3428fi
3429
cristycd4c5312009-11-22 01:19:08 +00003430as_fn_append ac_header_list " stdlib.h"
3431as_fn_append ac_header_list " unistd.h"
3432as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003433# Check that the precious variables saved in the cache have kept the same
3434# value.
3435ac_cache_corrupted=false
3436for ac_var in $ac_precious_vars; do
3437 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3438 eval ac_new_set=\$ac_env_${ac_var}_set
3439 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3440 eval ac_new_val=\$ac_env_${ac_var}_value
3441 case $ac_old_set,$ac_new_set in
3442 set,)
cristy8b350f62009-11-15 23:12:43 +00003443 { $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 +00003444$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3445 ac_cache_corrupted=: ;;
3446 ,set)
cristy8b350f62009-11-15 23:12:43 +00003447 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003448$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3449 ac_cache_corrupted=: ;;
3450 ,);;
3451 *)
3452 if test "x$ac_old_val" != "x$ac_new_val"; then
3453 # differences in whitespace do not lead to failure.
3454 ac_old_val_w=`echo x $ac_old_val`
3455 ac_new_val_w=`echo x $ac_new_val`
3456 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003457 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003458$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3459 ac_cache_corrupted=:
3460 else
cristy8b350f62009-11-15 23:12:43 +00003461 { $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 +00003462$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3463 eval $ac_var=\$ac_old_val
3464 fi
cristy8b350f62009-11-15 23:12:43 +00003465 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003466$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003467 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003468$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3469 fi;;
3470 esac
3471 # Pass precious variables to config.status.
3472 if test "$ac_new_set" = set; then
3473 case $ac_new_val in
3474 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3475 *) ac_arg=$ac_var=$ac_new_val ;;
3476 esac
3477 case " $ac_configure_args " in
3478 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003479 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003480 esac
3481 fi
3482done
3483if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003484 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003485$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003486 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003487$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003488 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003489fi
cristy8b350f62009-11-15 23:12:43 +00003490## -------------------- ##
3491## Main body of script. ##
3492## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003493
3494ac_ext=c
3495ac_cpp='$CPP $CPPFLAGS'
3496ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3497ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3498ac_compiler_gnu=$ac_cv_c_compiler_gnu
3499
3500
3501
3502ac_aux_dir=
3503for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003504 if test -f "$ac_dir/install-sh"; then
3505 ac_aux_dir=$ac_dir
3506 ac_install_sh="$ac_aux_dir/install-sh -c"
3507 break
3508 elif test -f "$ac_dir/install.sh"; then
3509 ac_aux_dir=$ac_dir
3510 ac_install_sh="$ac_aux_dir/install.sh -c"
3511 break
3512 elif test -f "$ac_dir/shtool"; then
3513 ac_aux_dir=$ac_dir
3514 ac_install_sh="$ac_aux_dir/shtool install -c"
3515 break
3516 fi
cristy3ed852e2009-09-05 21:47:34 +00003517done
3518if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003519 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003520fi
3521
3522# These three variables are undocumented and unsupported,
3523# and are intended to be withdrawn in a future Autoconf release.
3524# They can cause serious problems if a builder's source tree is in a directory
3525# whose full name contains unusual characters.
3526ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3527ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3528ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3529
3530
3531
3532
3533ac_config_headers="$ac_config_headers config/config.h"
3534
cristy24fc1fe2010-10-23 21:13:01 +00003535
cristy01ff9f32012-12-01 18:15:29 +00003536ac_config_commands="$ac_config_commands MagickCore/magick-baseconfig.h"
cristy73bd4a52010-10-05 11:24:23 +00003537
cristy5a3dc992014-12-05 19:50:04 +00003538ac_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"
cristy3ed852e2009-09-05 21:47:34 +00003539
3540
3541#
3542# Save initial user-tunable values
3543#
3544USER_LIBS=$LIBS
3545for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3546 eval isset=\${$var+set}
3547 if test "$isset" = 'set'; then
3548 eval val=$`echo $var`
3549 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3550 fi
3551done
3552
3553
3554CONFIGURE_ARGS="$0 ${ac_configure_args}"
3555
3556
3557# Source file containing package/library versioning information.
3558. ${srcdir}/version.sh
3559
cristy15a88782010-01-31 23:24:49 +00003560echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003561# Make sure we can run config.sub.
3562$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003563 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003564
cristy8b350f62009-11-15 23:12:43 +00003565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003566$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003567if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003568 $as_echo_n "(cached) " >&6
3569else
3570 ac_build_alias=$build_alias
3571test "x$ac_build_alias" = x &&
3572 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3573test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003574 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003575ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003576 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003577
3578fi
cristy8b350f62009-11-15 23:12:43 +00003579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003580$as_echo "$ac_cv_build" >&6; }
3581case $ac_cv_build in
3582*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003583*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003584esac
3585build=$ac_cv_build
3586ac_save_IFS=$IFS; IFS='-'
3587set x $ac_cv_build
3588shift
3589build_cpu=$1
3590build_vendor=$2
3591shift; shift
3592# Remember, the first character of IFS is used to create $*,
3593# except with old shells:
3594build_os=$*
3595IFS=$ac_save_IFS
3596case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3597
3598
cristy8b350f62009-11-15 23:12:43 +00003599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003600$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003601if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003602 $as_echo_n "(cached) " >&6
3603else
3604 if test "x$host_alias" = x; then
3605 ac_cv_host=$ac_cv_build
3606else
3607 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003608 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003609fi
3610
3611fi
cristy8b350f62009-11-15 23:12:43 +00003612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003613$as_echo "$ac_cv_host" >&6; }
3614case $ac_cv_host in
3615*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003616*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003617esac
3618host=$ac_cv_host
3619ac_save_IFS=$IFS; IFS='-'
3620set x $ac_cv_host
3621shift
3622host_cpu=$1
3623host_vendor=$2
3624shift; shift
3625# Remember, the first character of IFS is used to create $*,
3626# except with old shells:
3627host_os=$*
3628IFS=$ac_save_IFS
3629case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3630
3631
cristy8b350f62009-11-15 23:12:43 +00003632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003633$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003634if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003635 $as_echo_n "(cached) " >&6
3636else
3637 if test "x$target_alias" = x; then
3638 ac_cv_target=$ac_cv_host
3639else
3640 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003641 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003642fi
3643
3644fi
cristy8b350f62009-11-15 23:12:43 +00003645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003646$as_echo "$ac_cv_target" >&6; }
3647case $ac_cv_target in
3648*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003649*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003650esac
3651target=$ac_cv_target
3652ac_save_IFS=$IFS; IFS='-'
3653set x $ac_cv_target
3654shift
3655target_cpu=$1
3656target_vendor=$2
3657shift; shift
3658# Remember, the first character of IFS is used to create $*,
3659# except with old shells:
3660target_os=$*
3661IFS=$ac_save_IFS
3662case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3663
3664
3665# The aliases save the names the user supplied, while $host etc.
3666# will get canonicalized.
3667test -n "$target_alias" &&
3668 test "$program_prefix$program_suffix$program_transform_name" = \
3669 NONENONEs,x,x, &&
3670 program_prefix=${target_alias}-
3671
cristy837d6dc2010-02-27 01:16:57 +00003672
3673
3674
cristy8be34142012-06-17 14:07:18 +00003675
cristy19615b82011-04-13 20:02:01 +00003676MAGICK_TARGET_CPU=$host_cpu
cristy3225a072010-04-17 01:47:28 +00003677
3678
cristy27d53d62012-07-29 23:30:07 +00003679cat >>confdefs.h <<_ACEOF
3680#define MAGICK_TARGET_CPU $MAGICK_TARGET_CPU
3681_ACEOF
3682
3683
cristy19615b82011-04-13 20:02:01 +00003684MAGICK_TARGET_VENDOR=$host_vendor
cristy3225a072010-04-17 01:47:28 +00003685
3686
cristy27d53d62012-07-29 23:30:07 +00003687cat >>confdefs.h <<_ACEOF
3688#define MAGICK_TARGET_VENDOR $MAGICK_TARGET_VENDOR
3689_ACEOF
3690
3691
cristy19615b82011-04-13 20:02:01 +00003692MAGICK_TARGET_OS=$host_os
cristy3225a072010-04-17 01:47:28 +00003693
3694
cristy27d53d62012-07-29 23:30:07 +00003695cat >>confdefs.h <<_ACEOF
3696#define MAGICK_TARGET_OS $MAGICK_TARGET_OS
3697_ACEOF
3698
3699
cristy37442762013-02-10 21:07:23 +00003700
3701# Substitute versioning
3702MAGICK_MAJOR_VERSION=7
3703
3704MAGICK_MINOR_VERSION=0
3705
3706MAGICK_MICRO_VERSION=0
3707
3708MAGICK_PATCHLEVEL_VERSION=0
3709
3710MAGICK_VERSION=7.0.0-0
3711
cristy16b412d2014-12-15 11:09:48 +00003712MAGICK_SVN_REVISION=17236:17250
cristy37442762013-02-10 21:07:23 +00003713
3714
cristy3ed852e2009-09-05 21:47:34 +00003715# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003716MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3717
3718MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3719
cristy37442762013-02-10 21:07:23 +00003720
cristy5ed9c6e2013-07-14 21:20:31 +00003721MAGICKPP_LIBRARY_CURRENT_MIN=`expr $MAGICKPP_LIBRARY_CURRENT - $MAGICKPP_LIBRARY_AGE`
3722
3723MAGICKPP_LIBRARY_VERSION_INFO=$MAGICKPP_LIBRARY_CURRENT:$MAGICKPP_LIBRARY_REVISION:$MAGICKPP_LIBRARY_AGE
3724
3725
cristyd694ca32011-03-27 21:42:54 +00003726
cristy3ed852e2009-09-05 21:47:34 +00003727# Ensure that make can run correctly
cristy73bd4a52010-10-05 11:24:23 +00003728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3729$as_echo_n "checking whether build environment is sane... " >&6; }
cristy73bd4a52010-10-05 11:24:23 +00003730# Reject unsafe characters in $srcdir or the absolute working directory
3731# name. Accept space and tab only in the latter.
3732am_lf='
3733'
3734case `pwd` in
3735 *[\\\"\#\$\&\'\`$am_lf]*)
cristy98dddb52010-11-04 00:30:15 +00003736 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003737esac
3738case $srcdir in
3739 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristyc0890a62012-07-19 00:18:20 +00003740 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003741esac
cristy3ed852e2009-09-05 21:47:34 +00003742
cristyc0890a62012-07-19 00:18:20 +00003743# Do 'set' in a subshell so we don't clobber the current shell's
cristy73bd4a52010-10-05 11:24:23 +00003744# arguments. Must try -L first in case configure is actually a
3745# symlink; some systems play weird games with the mod time of symlinks
3746# (eg FreeBSD returns the mod time of the symlink's containing
3747# directory).
3748if (
cristyc0890a62012-07-19 00:18:20 +00003749 am_has_slept=no
3750 for am_try in 1 2; do
3751 echo "timestamp, slept: $am_has_slept" > conftest.file
3752 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3753 if test "$*" = "X"; then
3754 # -L didn't work.
3755 set X `ls -t "$srcdir/configure" conftest.file`
3756 fi
3757 if test "$*" != "X $srcdir/configure conftest.file" \
3758 && test "$*" != "X conftest.file $srcdir/configure"; then
cristy73bd4a52010-10-05 11:24:23 +00003759
cristyc0890a62012-07-19 00:18:20 +00003760 # If neither matched, then we have a broken ls. This can happen
3761 # if, for instance, CONFIG_SHELL is bash and it inherits a
3762 # broken ls alias from the environment. This has actually
3763 # happened. Such a system could not be considered "sane".
3764 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3765 alias in your environment" "$LINENO" 5
3766 fi
3767 if test "$2" = conftest.file || test $am_try -eq 2; then
3768 break
3769 fi
3770 # Just in case.
3771 sleep 1
3772 am_has_slept=yes
3773 done
cristy73bd4a52010-10-05 11:24:23 +00003774 test "$2" = conftest.file
3775 )
3776then
3777 # Ok.
3778 :
3779else
cristy98dddb52010-11-04 00:30:15 +00003780 as_fn_error $? "newly created file is older than distributed files!
cristy73bd4a52010-10-05 11:24:23 +00003781Check your system clock" "$LINENO" 5
3782fi
3783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3784$as_echo "yes" >&6; }
cristyc0890a62012-07-19 00:18:20 +00003785# If we didn't sleep, we still need to ensure time stamps of config.status and
3786# generated files are strictly newer.
3787am_sleep_pid=
3788if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3789 ( sleep 1 ) &
3790 am_sleep_pid=$!
3791fi
cristy73bd4a52010-10-05 11:24:23 +00003792
cristyc0890a62012-07-19 00:18:20 +00003793rm -f conftest.file
3794
3795
cristya5bda012013-11-03 18:05:38 +00003796am__api_version='1.14'
cristy73bd4a52010-10-05 11:24:23 +00003797
3798# Find a good install program. We prefer a C program (faster),
3799# so one script is as good as another. But avoid the broken or
3800# incompatible versions:
3801# SysV /etc/install, /usr/sbin/install
3802# SunOS /usr/etc/install
3803# IRIX /sbin/install
3804# AIX /bin/install
3805# AmigaOS /C/install, which installs bootblocks on floppy discs
3806# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3807# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3808# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3809# OS/2's system install, which has a completely different semantic
3810# ./install, which can be erroneously created by make from ./install.sh.
3811# Reject install programs that cannot install multiple files.
3812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3813$as_echo_n "checking for a BSD-compatible install... " >&6; }
3814if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003815if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003816 $as_echo_n "(cached) " >&6
3817else
3818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3819for as_dir in $PATH
3820do
3821 IFS=$as_save_IFS
3822 test -z "$as_dir" && as_dir=.
3823 # Account for people who put trailing slashes in PATH elements.
3824case $as_dir/ in #((
3825 ./ | .// | /[cC]/* | \
3826 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3827 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3828 /usr/ucb/* ) ;;
3829 *)
3830 # OSF1 and SCO ODT 3.0 have their own names for install.
3831 # Don't use installbsd from OSF since it installs stuff as root
3832 # by default.
3833 for ac_prog in ginstall scoinst install; do
3834 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003835 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003836 if test $ac_prog = install &&
3837 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3838 # AIX install. It has an incompatible calling convention.
3839 :
3840 elif test $ac_prog = install &&
3841 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3842 # program-specific install script used by HP pwplus--don't use.
3843 :
3844 else
3845 rm -rf conftest.one conftest.two conftest.dir
3846 echo one > conftest.one
3847 echo two > conftest.two
3848 mkdir conftest.dir
3849 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3850 test -s conftest.one && test -s conftest.two &&
3851 test -s conftest.dir/conftest.one &&
3852 test -s conftest.dir/conftest.two
3853 then
3854 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3855 break 3
3856 fi
3857 fi
3858 fi
3859 done
3860 done
3861 ;;
3862esac
3863
3864 done
3865IFS=$as_save_IFS
3866
3867rm -rf conftest.one conftest.two conftest.dir
3868
3869fi
3870 if test "${ac_cv_path_install+set}" = set; then
3871 INSTALL=$ac_cv_path_install
3872 else
3873 # As a last resort, use the slow shell script. Don't cache a
3874 # value for INSTALL within a source directory, because that will
3875 # break other packages using the cache if that directory is
3876 # removed, or if the value is a relative name.
3877 INSTALL=$ac_install_sh
3878 fi
3879fi
3880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3881$as_echo "$INSTALL" >&6; }
3882
3883# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3884# It thinks the first close brace ends the variable substitution.
3885test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3886
3887test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3888
3889test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3890
3891test "$program_prefix" != NONE &&
3892 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3893# Use a double $ so make ignores it.
3894test "$program_suffix" != NONE &&
3895 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3896# Double any \ or $.
3897# By default was `s,x,x', remove it if useless.
3898ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3899program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3900
3901# expand $ac_aux_dir to an absolute path
3902am_aux_dir=`cd $ac_aux_dir && pwd`
3903
3904if test x"${MISSING+set}" != xset; then
3905 case $am_aux_dir in
3906 *\ * | *\ *)
3907 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3908 *)
3909 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3910 esac
3911fi
3912# Use eval to expand $SHELL
cristy58d34aa2013-01-24 15:11:54 +00003913if eval "$MISSING --is-lightweight"; then
3914 am_missing_run="$MISSING "
cristy73bd4a52010-10-05 11:24:23 +00003915else
3916 am_missing_run=
cristyc0890a62012-07-19 00:18:20 +00003917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3918$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
cristy73bd4a52010-10-05 11:24:23 +00003919fi
3920
3921if test x"${install_sh}" != xset; then
3922 case $am_aux_dir in
3923 *\ * | *\ *)
3924 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3925 *)
3926 install_sh="\${SHELL} $am_aux_dir/install-sh"
3927 esac
3928fi
3929
cristyc0890a62012-07-19 00:18:20 +00003930# Installed binaries are usually stripped using 'strip' when the user
3931# run "make install-strip". However 'strip' might not be the right
cristy73bd4a52010-10-05 11:24:23 +00003932# tool to use in cross-compilation environments, therefore Automake
cristyc0890a62012-07-19 00:18:20 +00003933# will honor the 'STRIP' environment variable to overrule this program.
cristy73bd4a52010-10-05 11:24:23 +00003934if test "$cross_compiling" != no; then
3935 if test -n "$ac_tool_prefix"; then
3936 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3937set dummy ${ac_tool_prefix}strip; ac_word=$2
3938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3939$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003940if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003941 $as_echo_n "(cached) " >&6
3942else
3943 if test -n "$STRIP"; then
3944 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3945else
3946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3947for as_dir in $PATH
3948do
3949 IFS=$as_save_IFS
3950 test -z "$as_dir" && as_dir=.
3951 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003953 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3955 break 2
3956 fi
3957done
3958 done
3959IFS=$as_save_IFS
3960
3961fi
3962fi
3963STRIP=$ac_cv_prog_STRIP
3964if test -n "$STRIP"; then
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3966$as_echo "$STRIP" >&6; }
3967else
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3969$as_echo "no" >&6; }
3970fi
3971
3972
3973fi
3974if test -z "$ac_cv_prog_STRIP"; then
3975 ac_ct_STRIP=$STRIP
3976 # Extract the first word of "strip", so it can be a program name with args.
3977set dummy strip; ac_word=$2
3978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3979$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003980if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003981 $as_echo_n "(cached) " >&6
3982else
3983 if test -n "$ac_ct_STRIP"; then
3984 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3985else
3986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3987for as_dir in $PATH
3988do
3989 IFS=$as_save_IFS
3990 test -z "$as_dir" && as_dir=.
3991 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003993 ac_cv_prog_ac_ct_STRIP="strip"
3994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3995 break 2
3996 fi
3997done
3998 done
3999IFS=$as_save_IFS
4000
4001fi
4002fi
4003ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4004if test -n "$ac_ct_STRIP"; then
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4006$as_echo "$ac_ct_STRIP" >&6; }
4007else
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4009$as_echo "no" >&6; }
4010fi
4011
4012 if test "x$ac_ct_STRIP" = x; then
4013 STRIP=":"
4014 else
4015 case $cross_compiling:$ac_tool_warned in
4016yes:)
4017{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4018$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4019ac_tool_warned=yes ;;
4020esac
4021 STRIP=$ac_ct_STRIP
4022 fi
4023else
4024 STRIP="$ac_cv_prog_STRIP"
4025fi
4026
4027fi
4028INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4029
4030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4031$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4032if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00004033 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004034 $as_echo_n "(cached) " >&6
4035else
4036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4037for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4038do
4039 IFS=$as_save_IFS
4040 test -z "$as_dir" && as_dir=.
4041 for ac_prog in mkdir gmkdir; do
4042 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004043 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
cristy73bd4a52010-10-05 11:24:23 +00004044 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4045 'mkdir (GNU coreutils) '* | \
4046 'mkdir (coreutils) '* | \
4047 'mkdir (fileutils) '4.1*)
4048 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4049 break 3;;
4050 esac
4051 done
4052 done
4053 done
4054IFS=$as_save_IFS
4055
4056fi
4057
4058 test -d ./--version && rmdir ./--version
4059 if test "${ac_cv_path_mkdir+set}" = set; then
4060 MKDIR_P="$ac_cv_path_mkdir -p"
4061 else
4062 # As a last resort, use the slow shell script. Don't cache a
4063 # value for MKDIR_P within a source directory, because that will
4064 # break other packages using the cache if that directory is
4065 # removed, or if the value is a relative name.
4066 MKDIR_P="$ac_install_sh -d"
4067 fi
4068fi
4069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4070$as_echo "$MKDIR_P" >&6; }
4071
cristy73bd4a52010-10-05 11:24:23 +00004072for ac_prog in gawk mawk nawk awk
4073do
4074 # Extract the first word of "$ac_prog", so it can be a program name with args.
4075set dummy $ac_prog; ac_word=$2
4076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4077$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004078if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004079 $as_echo_n "(cached) " >&6
4080else
4081 if test -n "$AWK"; then
4082 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4083else
4084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4085for as_dir in $PATH
4086do
4087 IFS=$as_save_IFS
4088 test -z "$as_dir" && as_dir=.
4089 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00004091 ac_cv_prog_AWK="$ac_prog"
4092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4093 break 2
4094 fi
4095done
4096 done
4097IFS=$as_save_IFS
4098
4099fi
4100fi
4101AWK=$ac_cv_prog_AWK
4102if test -n "$AWK"; then
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4104$as_echo "$AWK" >&6; }
4105else
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4107$as_echo "no" >&6; }
4108fi
4109
4110
4111 test -n "$AWK" && break
4112done
4113
4114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4115$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4116set x ${MAKE-make}
4117ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00004118if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004119 $as_echo_n "(cached) " >&6
4120else
4121 cat >conftest.make <<\_ACEOF
4122SHELL = /bin/sh
4123all:
4124 @echo '@@@%%%=$(MAKE)=@@@%%%'
4125_ACEOF
cristy98dddb52010-11-04 00:30:15 +00004126# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00004127case `${MAKE-make} -f conftest.make 2>/dev/null` in
4128 *@@@%%%=?*=@@@%%%*)
4129 eval ac_cv_prog_make_${ac_make}_set=yes;;
4130 *)
4131 eval ac_cv_prog_make_${ac_make}_set=no;;
4132esac
4133rm -f conftest.make
4134fi
4135if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4137$as_echo "yes" >&6; }
4138 SET_MAKE=
4139else
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4141$as_echo "no" >&6; }
4142 SET_MAKE="MAKE=${MAKE-make}"
4143fi
4144
4145rm -rf .tst 2>/dev/null
4146mkdir .tst 2>/dev/null
4147if test -d .tst; then
4148 am__leading_dot=.
4149else
4150 am__leading_dot=_
4151fi
4152rmdir .tst 2>/dev/null
4153
cristya448bd22011-10-14 12:38:13 +00004154# Check whether --enable-silent-rules was given.
4155if test "${enable_silent_rules+set}" = set; then :
4156 enableval=$enable_silent_rules;
4157fi
4158
cristyc0890a62012-07-19 00:18:20 +00004159case $enable_silent_rules in # (((
4160 yes) AM_DEFAULT_VERBOSITY=0;;
4161 no) AM_DEFAULT_VERBOSITY=1;;
4162 *) AM_DEFAULT_VERBOSITY=1;;
cristya448bd22011-10-14 12:38:13 +00004163esac
cristyc3fb77b2012-02-06 01:49:41 +00004164am_make=${MAKE-make}
4165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4166$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4167if ${am_cv_make_support_nested_variables+:} false; then :
4168 $as_echo_n "(cached) " >&6
4169else
4170 if $as_echo 'TRUE=$(BAR$(V))
4171BAR0=false
4172BAR1=true
4173V=1
4174am__doit:
4175 @$(TRUE)
4176.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4177 am_cv_make_support_nested_variables=yes
4178else
4179 am_cv_make_support_nested_variables=no
4180fi
4181fi
4182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4183$as_echo "$am_cv_make_support_nested_variables" >&6; }
4184if test $am_cv_make_support_nested_variables = yes; then
4185 AM_V='$(V)'
4186 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4187else
4188 AM_V=$AM_DEFAULT_VERBOSITY
4189 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4190fi
cristya448bd22011-10-14 12:38:13 +00004191AM_BACKSLASH='\'
4192
cristy73bd4a52010-10-05 11:24:23 +00004193if test "`cd $srcdir && pwd`" != "`pwd`"; then
4194 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4195 # is not polluted with repeated "-I."
4196 am__isrc=' -I$(srcdir)'
4197 # test to see if srcdir already configured
4198 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00004199 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00004200 fi
4201fi
4202
4203# test whether we have cygpath
4204if test -z "$CYGPATH_W"; then
4205 if (cygpath --version) >/dev/null 2>/dev/null; then
4206 CYGPATH_W='cygpath -w'
4207 else
4208 CYGPATH_W=echo
4209 fi
4210fi
4211
4212
4213# Define the identity of the package.
cristy09b53e12011-10-14 12:47:22 +00004214 PACKAGE='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +00004215 VERSION='7.0.0-0'
cristy73bd4a52010-10-05 11:24:23 +00004216
4217
cristya448bd22011-10-14 12:38:13 +00004218cat >>confdefs.h <<_ACEOF
4219#define PACKAGE "$PACKAGE"
4220_ACEOF
4221
4222
4223cat >>confdefs.h <<_ACEOF
4224#define VERSION "$VERSION"
4225_ACEOF
4226
cristy73bd4a52010-10-05 11:24:23 +00004227# Some tools Automake needs.
4228
4229ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4230
4231
4232AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4233
4234
4235AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4236
4237
4238AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4239
4240
4241MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4242
cristyc0890a62012-07-19 00:18:20 +00004243# For better backward compatibility. To be removed once Automake 1.9.x
4244# dies out for good. For more background, see:
4245# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4246# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4247mkdir_p='$(MKDIR_P)'
4248
cristy73bd4a52010-10-05 11:24:23 +00004249# We need awk for the "check" target. The system "awk" is bad on
4250# some platforms.
cristyc3fb77b2012-02-06 01:49:41 +00004251# Always define AMTAR for backward compatibility. Yes, it's still used
4252# in the wild :-( We should find a proper way to deprecate it ...
4253AMTAR='$${TAR-tar}'
cristy73bd4a52010-10-05 11:24:23 +00004254
cristye69bdbe2013-05-03 21:40:44 +00004255
4256# We'll loop over all known methods to create a tar archive until one works.
4257_am_tools='gnutar pax cpio none'
4258
cristyc3fb77b2012-02-06 01:49:41 +00004259am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
cristy73bd4a52010-10-05 11:24:23 +00004260
4261
4262
4263
4264
cristy3ed852e2009-09-05 21:47:34 +00004265
cristya5bda012013-11-03 18:05:38 +00004266# POSIX will say in a future version that running "rm -f" with no argument
4267# is OK; and we want to be able to make that assumption in our Makefile
4268# recipes. So use an aggressive probe to check that the usage we want is
4269# actually supported "in the wild" to an acceptable degree.
4270# See automake bug#10828.
4271# To make any issue more visible, cause the running configure to be aborted
4272# by default if the 'rm' program in use doesn't match our expectations; the
4273# user can still override this though.
4274if rm -f && rm -fr && rm -rf; then : OK; else
4275 cat >&2 <<'END'
4276Oops!
4277
4278Your 'rm' program seems unable to run without file operands specified
4279on the command line, even when the '-f' option is present. This is contrary
4280to the behaviour of most rm programs out there, and not conforming with
4281the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4282
4283Please tell bug-automake@gnu.org about your system, including the value
4284of your $PATH and any error possibly output before this message. This
4285can help us improve future automake versions.
4286
4287END
4288 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4289 echo 'Configuration will proceed anyway, since you have set the' >&2
4290 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4291 echo >&2
4292 else
4293 cat >&2 <<'END'
4294Aborting the configuration process, to ensure you take notice of the issue.
4295
4296You can download and install GNU coreutils to get an 'rm' implementation
4297that behaves properly: <http://www.gnu.org/software/coreutils/>.
4298
4299If you want to complete the configuration process using your problematic
4300'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4301to "yes", and re-run configure.
4302
4303END
4304 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4305 fi
4306fi
cristye69bdbe2013-05-03 21:40:44 +00004307
cristy3ed852e2009-09-05 21:47:34 +00004308# Enable support for silent build rules
cristy73bd4a52010-10-05 11:24:23 +00004309# Check whether --enable-silent-rules was given.
4310if test "${enable_silent_rules+set}" = set; then :
4311 enableval=$enable_silent_rules;
4312fi
4313
cristyc0890a62012-07-19 00:18:20 +00004314case $enable_silent_rules in # (((
4315 yes) AM_DEFAULT_VERBOSITY=0;;
4316 no) AM_DEFAULT_VERBOSITY=1;;
4317 *) AM_DEFAULT_VERBOSITY=0;;
cristy73bd4a52010-10-05 11:24:23 +00004318esac
cristyc3fb77b2012-02-06 01:49:41 +00004319am_make=${MAKE-make}
4320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4321$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4322if ${am_cv_make_support_nested_variables+:} false; then :
4323 $as_echo_n "(cached) " >&6
4324else
4325 if $as_echo 'TRUE=$(BAR$(V))
4326BAR0=false
4327BAR1=true
4328V=1
4329am__doit:
4330 @$(TRUE)
4331.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4332 am_cv_make_support_nested_variables=yes
4333else
4334 am_cv_make_support_nested_variables=no
4335fi
4336fi
4337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4338$as_echo "$am_cv_make_support_nested_variables" >&6; }
4339if test $am_cv_make_support_nested_variables = yes; then
4340 AM_V='$(V)'
4341 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4342else
4343 AM_V=$AM_DEFAULT_VERBOSITY
4344 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4345fi
cristy73bd4a52010-10-05 11:24:23 +00004346AM_BACKSLASH='\'
4347
cristy3ed852e2009-09-05 21:47:34 +00004348
cristyf279b692014-08-13 12:01:27 +00004349# versioning of library
cristy3ed852e2009-09-05 21:47:34 +00004350MAGICK_LIB_VERSION="0x"
4351if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4352 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4353fi
4354MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4355if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4356 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4357fi
4358MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4359if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4360 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4361fi
4362MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4363
4364
4365# Definition used to define MagickLibVersionText in version.h
4366MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4367
4368
4369# Definition used to define MagickLibVersionNumber in version.h
4370MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4371
4372
cristy5ed9c6e2013-07-14 21:20:31 +00004373MAGICKPP_LIB_VERSION="0x"
4374if test ${MAGICKPP_LIBRARY_CURRENT} -lt 10 ; then
4375 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4376fi
4377MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_CURRENT}
4378if test ${MAGICKPP_LIBRARY_AGE} -lt 10 ; then
4379 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4380fi
4381MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_AGE}
4382if test ${MAGICKPP_LIBRARY_REVISION} -lt 10 ; then
4383 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4384fi
4385MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_REVISION}
4386
4387
4388# Definition used to define MagickLibVersionText in version.h
4389MAGICKPP_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4390
4391
4392# Definition used to define MagickLibVersionNumber in version.h
4393MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4394
4395
4396
4397
cristy3ed852e2009-09-05 21:47:34 +00004398# Regenerate config.status if ChangeLog or version.sh is updated.
4399CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4400
4401
4402PERLMAINCC=$CC
4403
4404MAGICK_CFLAGS=''
4405MAGICK_CPPFLAGS=$CPPFLAGS_USER
4406MAGICK_PCFLAGS=$CPPFLAGS_USER
4407MAGICK_LDFLAGS=''
4408MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004409MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004410
4411#
4412# Evaluate shell variable equivalents to Makefile directory variables
4413#
4414if test "x$prefix" = xNONE; then
4415 prefix=$ac_default_prefix
4416fi
4417# Let make expand exec_prefix.
4418if test "x$exec_prefix" = xNONE; then
4419 exec_prefix='${prefix}'
4420fi
4421
4422#
4423eval "eval PREFIX_DIR=${prefix}"
4424
4425eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4426
4427eval "eval BIN_DIR=$bindir"
4428
4429eval "eval SBIN_DIR=$sbindir"
4430
4431eval "eval LIBEXEC_DIR=$libexecdir"
4432
4433eval "eval DATA_DIR=$datadir"
4434
cristy4e65ec22012-04-08 01:33:27 +00004435eval "eval DOC_DIR=$datadir/doc"
cristyd55889c2011-03-27 00:50:24 +00004436
cristy3ed852e2009-09-05 21:47:34 +00004437eval "eval SYSCONF_DIR=$sysconfdir"
4438
4439eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4440
4441eval "eval LOCALSTATE_DIR=$localstatedir"
4442
4443eval "eval LIB_DIR=$libdir"
4444
4445eval "eval INCLUDE_DIR=$includedir"
4446
4447eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4448
4449eval "eval INFO_DIR=$infodir"
4450
4451eval "eval MAN_DIR=$mandir"
4452
4453
4454# Get full paths to source and build directories
4455srcdirfull="`cd $srcdir && pwd`"
4456builddir="`pwd`"
4457
4458#
4459# Compute variables useful for running uninstalled software.
4460#
4461MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4462MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4463MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4464MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4465DIRSEP=':'
4466case "${build_os}" in
4467 mingw* )
4468 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4469 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4470 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4471 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4472 DIRSEP=';'
4473 ;;
4474esac
4475case "${host_os}" in
4476 mingw* )
4477 DIRSEP=';'
4478 ;;
4479esac
4480
4481
4482
4483
4484
4485
cristya0b81c32010-01-22 02:54:33 +00004486
4487#
4488# Enable OS features.
4489#
cristy73bd4a52010-10-05 11:24:23 +00004490DEPDIR="${am__leading_dot}deps"
4491
4492ac_config_commands="$ac_config_commands depfiles"
4493
4494
4495am_make=${MAKE-make}
4496cat > confinc << 'END'
4497am__doit:
4498 @echo this is the am__doit target
4499.PHONY: am__doit
4500END
4501# If we don't find an include directive, just comment out the code.
4502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4503$as_echo_n "checking for style of include used by $am_make... " >&6; }
4504am__include="#"
4505am__quote=
4506_am_result=none
4507# First try GNU make style include.
4508echo "include confinc" > confmf
cristyc0890a62012-07-19 00:18:20 +00004509# Ignore all kinds of additional output from 'make'.
cristy73bd4a52010-10-05 11:24:23 +00004510case `$am_make -s -f confmf 2> /dev/null` in #(
4511*the\ am__doit\ target*)
4512 am__include=include
4513 am__quote=
4514 _am_result=GNU
4515 ;;
4516esac
4517# Now try BSD make style include.
4518if test "$am__include" = "#"; then
4519 echo '.include "confinc"' > confmf
4520 case `$am_make -s -f confmf 2> /dev/null` in #(
4521 *the\ am__doit\ target*)
4522 am__include=.include
4523 am__quote="\""
4524 _am_result=BSD
4525 ;;
4526 esac
4527fi
4528
4529
4530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4531$as_echo "$_am_result" >&6; }
4532rm -f confinc confmf
4533
4534# Check whether --enable-dependency-tracking was given.
4535if test "${enable_dependency_tracking+set}" = set; then :
4536 enableval=$enable_dependency_tracking;
4537fi
4538
4539if test "x$enable_dependency_tracking" != xno; then
4540 am_depcomp="$ac_aux_dir/depcomp"
4541 AMDEPBACKSLASH='\'
cristy7247bba2012-02-05 16:37:27 +00004542 am__nodep='_no'
cristy73bd4a52010-10-05 11:24:23 +00004543fi
4544 if test "x$enable_dependency_tracking" != xno; then
4545 AMDEP_TRUE=
4546 AMDEP_FALSE='#'
4547else
4548 AMDEP_TRUE='#'
4549 AMDEP_FALSE=
4550fi
4551
4552
cristy3ed852e2009-09-05 21:47:34 +00004553ac_ext=c
4554ac_cpp='$CPP $CPPFLAGS'
4555ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4556ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4557ac_compiler_gnu=$ac_cv_c_compiler_gnu
4558if test -n "$ac_tool_prefix"; then
4559 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4560set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004562$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004563if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004564 $as_echo_n "(cached) " >&6
4565else
4566 if test -n "$CC"; then
4567 ac_cv_prog_CC="$CC" # Let the user override the test.
4568else
4569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4570for as_dir in $PATH
4571do
4572 IFS=$as_save_IFS
4573 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004574 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004576 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004578 break 2
4579 fi
4580done
cristy8b350f62009-11-15 23:12:43 +00004581 done
cristy3ed852e2009-09-05 21:47:34 +00004582IFS=$as_save_IFS
4583
4584fi
4585fi
4586CC=$ac_cv_prog_CC
4587if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004589$as_echo "$CC" >&6; }
4590else
cristy8b350f62009-11-15 23:12:43 +00004591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004592$as_echo "no" >&6; }
4593fi
4594
4595
4596fi
4597if test -z "$ac_cv_prog_CC"; then
4598 ac_ct_CC=$CC
4599 # Extract the first word of "gcc", so it can be a program name with args.
4600set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004602$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004603if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004604 $as_echo_n "(cached) " >&6
4605else
4606 if test -n "$ac_ct_CC"; then
4607 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4608else
4609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4610for as_dir in $PATH
4611do
4612 IFS=$as_save_IFS
4613 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004614 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004616 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004618 break 2
4619 fi
4620done
cristy8b350f62009-11-15 23:12:43 +00004621 done
cristy3ed852e2009-09-05 21:47:34 +00004622IFS=$as_save_IFS
4623
4624fi
4625fi
4626ac_ct_CC=$ac_cv_prog_ac_ct_CC
4627if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004629$as_echo "$ac_ct_CC" >&6; }
4630else
cristy8b350f62009-11-15 23:12:43 +00004631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004632$as_echo "no" >&6; }
4633fi
4634
4635 if test "x$ac_ct_CC" = x; then
4636 CC=""
4637 else
4638 case $cross_compiling:$ac_tool_warned in
4639yes:)
cristy8b350f62009-11-15 23:12:43 +00004640{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004641$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4642ac_tool_warned=yes ;;
4643esac
4644 CC=$ac_ct_CC
4645 fi
4646else
4647 CC="$ac_cv_prog_CC"
4648fi
4649
4650if test -z "$CC"; then
4651 if test -n "$ac_tool_prefix"; then
4652 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4653set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004655$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004656if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004657 $as_echo_n "(cached) " >&6
4658else
4659 if test -n "$CC"; then
4660 ac_cv_prog_CC="$CC" # Let the user override the test.
4661else
4662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4663for as_dir in $PATH
4664do
4665 IFS=$as_save_IFS
4666 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004667 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004669 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004671 break 2
4672 fi
4673done
cristy8b350f62009-11-15 23:12:43 +00004674 done
cristy3ed852e2009-09-05 21:47:34 +00004675IFS=$as_save_IFS
4676
4677fi
4678fi
4679CC=$ac_cv_prog_CC
4680if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004682$as_echo "$CC" >&6; }
4683else
cristy8b350f62009-11-15 23:12:43 +00004684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004685$as_echo "no" >&6; }
4686fi
4687
4688
4689 fi
4690fi
4691if test -z "$CC"; then
4692 # Extract the first word of "cc", so it can be a program name with args.
4693set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004695$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004696if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004697 $as_echo_n "(cached) " >&6
4698else
4699 if test -n "$CC"; then
4700 ac_cv_prog_CC="$CC" # Let the user override the test.
4701else
4702 ac_prog_rejected=no
4703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4704for as_dir in $PATH
4705do
4706 IFS=$as_save_IFS
4707 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004708 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004710 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4711 ac_prog_rejected=yes
4712 continue
4713 fi
4714 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004716 break 2
4717 fi
4718done
cristy8b350f62009-11-15 23:12:43 +00004719 done
cristy3ed852e2009-09-05 21:47:34 +00004720IFS=$as_save_IFS
4721
4722if test $ac_prog_rejected = yes; then
4723 # We found a bogon in the path, so make sure we never use it.
4724 set dummy $ac_cv_prog_CC
4725 shift
4726 if test $# != 0; then
4727 # We chose a different compiler from the bogus one.
4728 # However, it has the same basename, so the bogon will be chosen
4729 # first if we set CC to just the basename; use the full file name.
4730 shift
4731 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4732 fi
4733fi
4734fi
4735fi
4736CC=$ac_cv_prog_CC
4737if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004739$as_echo "$CC" >&6; }
4740else
cristy8b350f62009-11-15 23:12:43 +00004741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004742$as_echo "no" >&6; }
4743fi
4744
4745
4746fi
4747if test -z "$CC"; then
4748 if test -n "$ac_tool_prefix"; then
4749 for ac_prog in cl.exe
4750 do
4751 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4752set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004754$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004755if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004756 $as_echo_n "(cached) " >&6
4757else
4758 if test -n "$CC"; then
4759 ac_cv_prog_CC="$CC" # Let the user override the test.
4760else
4761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4762for as_dir in $PATH
4763do
4764 IFS=$as_save_IFS
4765 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004766 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004768 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004770 break 2
4771 fi
4772done
cristy8b350f62009-11-15 23:12:43 +00004773 done
cristy3ed852e2009-09-05 21:47:34 +00004774IFS=$as_save_IFS
4775
4776fi
4777fi
4778CC=$ac_cv_prog_CC
4779if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004781$as_echo "$CC" >&6; }
4782else
cristy8b350f62009-11-15 23:12:43 +00004783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004784$as_echo "no" >&6; }
4785fi
4786
4787
4788 test -n "$CC" && break
4789 done
4790fi
4791if test -z "$CC"; then
4792 ac_ct_CC=$CC
4793 for ac_prog in cl.exe
4794do
4795 # Extract the first word of "$ac_prog", so it can be a program name with args.
4796set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004798$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004799if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004800 $as_echo_n "(cached) " >&6
4801else
4802 if test -n "$ac_ct_CC"; then
4803 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4804else
4805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4806for as_dir in $PATH
4807do
4808 IFS=$as_save_IFS
4809 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004810 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004812 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004814 break 2
4815 fi
4816done
cristy8b350f62009-11-15 23:12:43 +00004817 done
cristy3ed852e2009-09-05 21:47:34 +00004818IFS=$as_save_IFS
4819
4820fi
4821fi
4822ac_ct_CC=$ac_cv_prog_ac_ct_CC
4823if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004825$as_echo "$ac_ct_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
4832 test -n "$ac_ct_CC" && break
4833done
4834
4835 if test "x$ac_ct_CC" = x; then
4836 CC=""
4837 else
4838 case $cross_compiling:$ac_tool_warned in
4839yes:)
cristy8b350f62009-11-15 23:12:43 +00004840{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004841$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4842ac_tool_warned=yes ;;
4843esac
4844 CC=$ac_ct_CC
4845 fi
4846fi
4847
4848fi
4849
4850
cristy8b350f62009-11-15 23:12:43 +00004851test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004852$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004853as_fn_error $? "no acceptable C compiler found in \$PATH
4854See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004855
4856# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004857$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004858set X $ac_compile
4859ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004860for ac_option in --version -v -V -qversion; do
4861 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004862case "(($ac_try" in
4863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4864 *) ac_try_echo=$ac_try;;
4865esac
cristy8b350f62009-11-15 23:12:43 +00004866eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4867$as_echo "$ac_try_echo"; } >&5
4868 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004869 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004870 if test -s conftest.err; then
4871 sed '10a\
4872... rest of stderr output deleted ...
4873 10q' conftest.err >conftest.er1
4874 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004875 fi
cristycd4c5312009-11-22 01:19:08 +00004876 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4878 test $ac_status = 0; }
4879done
cristy3ed852e2009-09-05 21:47:34 +00004880
cristy8b350f62009-11-15 23:12:43 +00004881cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004882/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004883
cristy3ed852e2009-09-05 21:47:34 +00004884int
4885main ()
4886{
4887
4888 ;
4889 return 0;
4890}
4891_ACEOF
4892ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004893ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004894# Try to create an executable without -o first, disregard a.out.
4895# It will help us diagnose broken compilers, and finding out an intuition
4896# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4898$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004899ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4900
4901# The possible output files:
4902ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4903
4904ac_rmfiles=
4905for ac_file in $ac_files
4906do
4907 case $ac_file in
4908 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4909 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4910 esac
4911done
4912rm -f $ac_rmfiles
4913
cristy8b350f62009-11-15 23:12:43 +00004914if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004915case "(($ac_try" in
4916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4917 *) ac_try_echo=$ac_try;;
4918esac
cristy8b350f62009-11-15 23:12:43 +00004919eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4920$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004921 (eval "$ac_link_default") 2>&5
4922 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4924 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004925 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4926# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4927# in a Makefile. We should not override ac_cv_exeext if it was cached,
4928# so that the user can short-circuit this test for compilers unknown to
4929# Autoconf.
4930for ac_file in $ac_files ''
4931do
4932 test -f "$ac_file" || continue
4933 case $ac_file in
4934 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4935 ;;
4936 [ab].out )
4937 # We found the default executable, but exeext='' is most
4938 # certainly right.
4939 break;;
4940 *.* )
cristy8b350f62009-11-15 23:12:43 +00004941 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004942 then :; else
4943 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4944 fi
4945 # We set ac_cv_exeext here because the later test for it is not
4946 # safe: cross compilers may not add the suffix if given an `-o'
4947 # argument, so we may need to know it at that point already.
4948 # Even if this section looks crufty: it has the advantage of
4949 # actually working.
4950 break;;
4951 * )
4952 break;;
4953 esac
4954done
4955test "$ac_cv_exeext" = no && ac_cv_exeext=
4956
4957else
4958 ac_file=''
4959fi
cristy8b350f62009-11-15 23:12:43 +00004960if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4962$as_echo "no" >&6; }
4963$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004964sed 's/^/| /' conftest.$ac_ext >&5
4965
cristy8b350f62009-11-15 23:12:43 +00004966{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004967$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004968as_fn_error 77 "C compiler cannot create executables
4969See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004970else
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4972$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004973fi
cristycd4c5312009-11-22 01:19:08 +00004974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4975$as_echo_n "checking for C compiler default output file name... " >&6; }
4976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4977$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004978ac_exeext=$ac_cv_exeext
4979
cristycd4c5312009-11-22 01:19:08 +00004980rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004981ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004983$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004984if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004985case "(($ac_try" in
4986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4987 *) ac_try_echo=$ac_try;;
4988esac
cristy8b350f62009-11-15 23:12:43 +00004989eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4990$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004991 (eval "$ac_link") 2>&5
4992 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4994 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004995 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4996# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4997# work properly (i.e., refer to `conftest.exe'), while it won't with
4998# `rm'.
4999for ac_file in conftest.exe conftest conftest.*; do
5000 test -f "$ac_file" || continue
5001 case $ac_file in
5002 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5003 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5004 break;;
5005 * ) break;;
5006 esac
5007done
5008else
cristy8b350f62009-11-15 23:12:43 +00005009 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005010$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005011as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5012See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00005013fi
cristycd4c5312009-11-22 01:19:08 +00005014rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00005015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005016$as_echo "$ac_cv_exeext" >&6; }
5017
5018rm -f conftest.$ac_ext
5019EXEEXT=$ac_cv_exeext
5020ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00005021cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5022/* end confdefs.h. */
5023#include <stdio.h>
5024int
5025main ()
5026{
5027FILE *f = fopen ("conftest.out", "w");
5028 return ferror (f) || fclose (f) != 0;
5029
5030 ;
5031 return 0;
5032}
5033_ACEOF
5034ac_clean_files="$ac_clean_files conftest.out"
5035# Check that the compiler produces executables we can run. If not, either
5036# the compiler is broken, or we cross compile.
5037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5038$as_echo_n "checking whether we are cross compiling... " >&6; }
5039if test "$cross_compiling" != yes; then
5040 { { ac_try="$ac_link"
5041case "(($ac_try" in
5042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5043 *) ac_try_echo=$ac_try;;
5044esac
5045eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5046$as_echo "$ac_try_echo"; } >&5
5047 (eval "$ac_link") 2>&5
5048 ac_status=$?
5049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5050 test $ac_status = 0; }
5051 if { ac_try='./conftest$ac_cv_exeext'
5052 { { case "(($ac_try" in
5053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5054 *) ac_try_echo=$ac_try;;
5055esac
5056eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5057$as_echo "$ac_try_echo"; } >&5
5058 (eval "$ac_try") 2>&5
5059 ac_status=$?
5060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5061 test $ac_status = 0; }; }; then
5062 cross_compiling=no
5063 else
5064 if test "$cross_compiling" = maybe; then
5065 cross_compiling=yes
5066 else
5067 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5068$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005069as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00005070If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00005071See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00005072 fi
5073 fi
5074fi
5075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5076$as_echo "$cross_compiling" >&6; }
5077
5078rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5079ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00005080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00005081$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005082if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005083 $as_echo_n "(cached) " >&6
5084else
cristy8b350f62009-11-15 23:12:43 +00005085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005086/* end confdefs.h. */
5087
5088int
5089main ()
5090{
5091
5092 ;
5093 return 0;
5094}
5095_ACEOF
5096rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00005097if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00005098case "(($ac_try" in
5099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5100 *) ac_try_echo=$ac_try;;
5101esac
cristy8b350f62009-11-15 23:12:43 +00005102eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5103$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00005104 (eval "$ac_compile") 2>&5
5105 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00005106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5107 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00005108 for ac_file in conftest.o conftest.obj conftest.*; do
5109 test -f "$ac_file" || continue;
5110 case $ac_file in
5111 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5112 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5113 break;;
5114 esac
5115done
5116else
5117 $as_echo "$as_me: failed program was:" >&5
5118sed 's/^/| /' conftest.$ac_ext >&5
5119
cristy8b350f62009-11-15 23:12:43 +00005120{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005121$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005122as_fn_error $? "cannot compute suffix of object files: cannot compile
5123See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00005124fi
cristy3ed852e2009-09-05 21:47:34 +00005125rm -f conftest.$ac_cv_objext conftest.$ac_ext
5126fi
cristy8b350f62009-11-15 23:12:43 +00005127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005128$as_echo "$ac_cv_objext" >&6; }
5129OBJEXT=$ac_cv_objext
5130ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00005131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00005132$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005133if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005134 $as_echo_n "(cached) " >&6
5135else
cristy8b350f62009-11-15 23:12:43 +00005136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005137/* end confdefs.h. */
5138
5139int
5140main ()
5141{
5142#ifndef __GNUC__
5143 choke me
5144#endif
5145
5146 ;
5147 return 0;
5148}
5149_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005150if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005151 ac_compiler_gnu=yes
5152else
cristy8b350f62009-11-15 23:12:43 +00005153 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00005154fi
cristy3ed852e2009-09-05 21:47:34 +00005155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5156ac_cv_c_compiler_gnu=$ac_compiler_gnu
5157
5158fi
cristy8b350f62009-11-15 23:12:43 +00005159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00005160$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5161if test $ac_compiler_gnu = yes; then
5162 GCC=yes
5163else
5164 GCC=
5165fi
5166ac_test_CFLAGS=${CFLAGS+set}
5167ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00005168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005169$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005170if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005171 $as_echo_n "(cached) " >&6
5172else
5173 ac_save_c_werror_flag=$ac_c_werror_flag
5174 ac_c_werror_flag=yes
5175 ac_cv_prog_cc_g=no
5176 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005178/* end confdefs.h. */
5179
5180int
5181main ()
5182{
5183
5184 ;
5185 return 0;
5186}
5187_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005188if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005189 ac_cv_prog_cc_g=yes
5190else
cristy8b350f62009-11-15 23:12:43 +00005191 CFLAGS=""
5192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005193/* end confdefs.h. */
5194
5195int
5196main ()
5197{
5198
5199 ;
5200 return 0;
5201}
5202_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005203if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005204
cristy8b350f62009-11-15 23:12:43 +00005205else
5206 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00005207 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005209/* end confdefs.h. */
5210
5211int
5212main ()
5213{
5214
5215 ;
5216 return 0;
5217}
5218_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005219if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005220 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00005221fi
cristy3ed852e2009-09-05 21:47:34 +00005222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5223fi
cristy3ed852e2009-09-05 21:47:34 +00005224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5225fi
cristy3ed852e2009-09-05 21:47:34 +00005226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5227 ac_c_werror_flag=$ac_save_c_werror_flag
5228fi
cristy8b350f62009-11-15 23:12:43 +00005229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005230$as_echo "$ac_cv_prog_cc_g" >&6; }
5231if test "$ac_test_CFLAGS" = set; then
5232 CFLAGS=$ac_save_CFLAGS
5233elif test $ac_cv_prog_cc_g = yes; then
5234 if test "$GCC" = yes; then
5235 CFLAGS="-g -O2"
5236 else
5237 CFLAGS="-g"
5238 fi
5239else
5240 if test "$GCC" = yes; then
5241 CFLAGS="-O2"
5242 else
5243 CFLAGS=
5244 fi
5245fi
cristy8b350f62009-11-15 23:12:43 +00005246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005247$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005248if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005249 $as_echo_n "(cached) " >&6
5250else
5251 ac_cv_prog_cc_c89=no
5252ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005253cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005254/* end confdefs.h. */
5255#include <stdarg.h>
5256#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00005257struct stat;
cristy3ed852e2009-09-05 21:47:34 +00005258/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5259struct buf { int x; };
5260FILE * (*rcsopen) (struct buf *, struct stat *, int);
5261static char *e (p, i)
5262 char **p;
5263 int i;
5264{
5265 return p[i];
5266}
5267static char *f (char * (*g) (char **, int), char **p, ...)
5268{
5269 char *s;
5270 va_list v;
5271 va_start (v,p);
5272 s = g (p, va_arg (v,int));
5273 va_end (v);
5274 return s;
5275}
5276
5277/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5278 function prototypes and stuff, but not '\xHH' hex character constants.
5279 These don't provoke an error unfortunately, instead are silently treated
5280 as 'x'. The following induces an error, until -std is added to get
5281 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5282 array size at least. It's necessary to write '\x00'==0 to get something
5283 that's true only with -std. */
5284int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5285
5286/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5287 inside strings and character constants. */
5288#define FOO(x) 'x'
5289int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5290
5291int test (int i, double x);
5292struct s1 {int (*f) (int a);};
5293struct s2 {int (*f) (double a);};
5294int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5295int argc;
5296char **argv;
5297int
5298main ()
5299{
5300return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5301 ;
5302 return 0;
5303}
5304_ACEOF
5305for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5306 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5307do
5308 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005309 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005310 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005311fi
cristy3ed852e2009-09-05 21:47:34 +00005312rm -f core conftest.err conftest.$ac_objext
5313 test "x$ac_cv_prog_cc_c89" != "xno" && break
5314done
5315rm -f conftest.$ac_ext
5316CC=$ac_save_CC
5317
5318fi
5319# AC_CACHE_VAL
5320case "x$ac_cv_prog_cc_c89" in
5321 x)
cristy8b350f62009-11-15 23:12:43 +00005322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005323$as_echo "none needed" >&6; } ;;
5324 xno)
cristy8b350f62009-11-15 23:12:43 +00005325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005326$as_echo "unsupported" >&6; } ;;
5327 *)
5328 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005330$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5331esac
cristy8b350f62009-11-15 23:12:43 +00005332if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005333
cristy8b350f62009-11-15 23:12:43 +00005334fi
cristy3ed852e2009-09-05 21:47:34 +00005335
5336ac_ext=c
5337ac_cpp='$CPP $CPPFLAGS'
5338ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5339ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5340ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005341
cristya5bda012013-11-03 18:05:38 +00005342ac_ext=c
5343ac_cpp='$CPP $CPPFLAGS'
5344ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5345ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5346ac_compiler_gnu=$ac_cv_c_compiler_gnu
5347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5348$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5349if ${am_cv_prog_cc_c_o+:} false; then :
5350 $as_echo_n "(cached) " >&6
5351else
5352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5353/* end confdefs.h. */
5354
5355int
5356main ()
5357{
5358
5359 ;
5360 return 0;
5361}
5362_ACEOF
5363 # Make sure it works both with $CC and with simple cc.
5364 # Following AC_PROG_CC_C_O, we do the test twice because some
5365 # compilers refuse to overwrite an existing .o file with -o,
5366 # though they will create one.
5367 am_cv_prog_cc_c_o=yes
5368 for am_i in 1 2; do
5369 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5370 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5371 ac_status=$?
5372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373 (exit $ac_status); } \
5374 && test -f conftest2.$ac_objext; then
5375 : OK
5376 else
5377 am_cv_prog_cc_c_o=no
5378 break
5379 fi
5380 done
5381 rm -f core conftest*
5382 unset am_i
5383fi
5384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5385$as_echo "$am_cv_prog_cc_c_o" >&6; }
5386if test "$am_cv_prog_cc_c_o" != yes; then
5387 # Losing compiler, so override with the script.
5388 # FIXME: It is wrong to rewrite CC.
5389 # But if we don't then we get into trouble of one sort or another.
5390 # A longer-term fix would be to have automake use am__CC in this case,
5391 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5392 CC="$am_aux_dir/compile $CC"
5393fi
5394ac_ext=c
5395ac_cpp='$CPP $CPPFLAGS'
5396ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5397ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5398ac_compiler_gnu=$ac_cv_c_compiler_gnu
5399
5400
cristy73bd4a52010-10-05 11:24:23 +00005401depcc="$CC" am_compiler_list=
5402
5403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5404$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005405if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00005406 $as_echo_n "(cached) " >&6
5407else
5408 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5409 # We make a subdir and do the tests there. Otherwise we can end up
5410 # making bogus files that we don't know about and never remove. For
5411 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00005412 # making a dummy file named 'D' -- because '-MD' means "put the output
5413 # in D".
cristy7247bba2012-02-05 16:37:27 +00005414 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00005415 mkdir conftest.dir
5416 # Copy depcomp to subdir because otherwise we won't find it if we're
5417 # using a relative directory.
5418 cp "$am_depcomp" conftest.dir
5419 cd conftest.dir
5420 # We will build objects and dependencies in a subdirectory because
5421 # it helps to detect inapplicable dependency modes. For instance
5422 # both Tru64's cc and ICC support -MD to output dependencies as a
5423 # side effect of compilation, but ICC will put the dependencies in
5424 # the current directory while Tru64 will put them in the object
5425 # directory.
5426 mkdir sub
5427
5428 am_cv_CC_dependencies_compiler_type=none
5429 if test "$am_compiler_list" = ""; then
5430 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5431 fi
5432 am__universal=false
5433 case " $depcc " in #(
5434 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5435 esac
5436
5437 for depmode in $am_compiler_list; do
5438 # Setup a source with many dependencies, because some compilers
5439 # like to wrap large dependency lists on column 80 (with \), and
5440 # we should not choose a depcomp mode which is confused by this.
5441 #
5442 # We need to recreate these files for each test, as the compiler may
5443 # overwrite some of them when testing with obscure command lines.
5444 # This happens at least with the AIX C compiler.
5445 : > sub/conftest.c
5446 for i in 1 2 3 4 5 6; do
5447 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00005448 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5449 # Solaris 10 /bin/sh.
5450 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00005451 done
5452 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5453
cristyc0890a62012-07-19 00:18:20 +00005454 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00005455 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00005456 # handle '-M -o', and we need to detect this. Also, some Intel
5457 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00005458 am__obj=sub/conftest.${OBJEXT-o}
5459 am__minus_obj="-o $am__obj"
5460 case $depmode in
5461 gcc)
5462 # This depmode causes a compiler race in universal mode.
5463 test "$am__universal" = false || continue
5464 ;;
5465 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00005466 # After this tag, mechanisms are not by side-effect, so they'll
5467 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00005468 if test "x$enable_dependency_tracking" = xyes; then
5469 continue
5470 else
5471 break
5472 fi
5473 ;;
cristy7247bba2012-02-05 16:37:27 +00005474 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00005475 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00005476 # not run yet. These depmodes are late enough in the game, and
5477 # so weak that their functioning should not be impacted.
5478 am__obj=conftest.${OBJEXT-o}
5479 am__minus_obj=
5480 ;;
5481 none) break ;;
5482 esac
5483 if depmode=$depmode \
5484 source=sub/conftest.c object=$am__obj \
5485 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5486 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5487 >/dev/null 2>conftest.err &&
5488 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5489 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5490 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5491 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5492 # icc doesn't choke on unknown options, it will just issue warnings
5493 # or remarks (even with -Werror). So we grep stderr for any message
5494 # that says an option was ignored or not supported.
5495 # When given -MP, icc 7.0 and 7.1 complain thusly:
5496 # icc: Command line warning: ignoring option '-M'; no argument required
5497 # The diagnosis changed in icc 8.0:
5498 # icc: Command line remark: option '-MP' not supported
5499 if (grep 'ignoring option' conftest.err ||
5500 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5501 am_cv_CC_dependencies_compiler_type=$depmode
5502 break
5503 fi
5504 fi
5505 done
5506
5507 cd ..
5508 rm -rf conftest.dir
5509else
5510 am_cv_CC_dependencies_compiler_type=none
5511fi
5512
5513fi
5514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5515$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5516CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5517
5518 if
5519 test "x$enable_dependency_tracking" != xno \
5520 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5521 am__fastdepCC_TRUE=
5522 am__fastdepCC_FALSE='#'
5523else
5524 am__fastdepCC_TRUE='#'
5525 am__fastdepCC_FALSE=
5526fi
5527
5528
cristy3ed852e2009-09-05 21:47:34 +00005529
cristya0b81c32010-01-22 02:54:33 +00005530ac_ext=c
5531ac_cpp='$CPP $CPPFLAGS'
5532ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5533ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5534ac_compiler_gnu=$ac_cv_c_compiler_gnu
5535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5536$as_echo_n "checking how to run the C preprocessor... " >&6; }
5537# On Suns, sometimes $CPP names a directory.
5538if test -n "$CPP" && test -d "$CPP"; then
5539 CPP=
5540fi
5541if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005542 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005543 $as_echo_n "(cached) " >&6
5544else
5545 # Double quotes because CPP needs to be expanded
5546 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5547 do
5548 ac_preproc_ok=false
5549for ac_c_preproc_warn_flag in '' yes
5550do
5551 # Use a header file that comes with gcc, so configuring glibc
5552 # with a fresh cross-compiler works.
5553 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5554 # <limits.h> exists even on freestanding compilers.
5555 # On the NeXT, cc -E runs the code through the compiler's parser,
5556 # not just through cpp. "Syntax error" is here to catch this case.
5557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5558/* end confdefs.h. */
5559#ifdef __STDC__
5560# include <limits.h>
5561#else
5562# include <assert.h>
5563#endif
5564 Syntax error
5565_ACEOF
5566if ac_fn_c_try_cpp "$LINENO"; then :
5567
5568else
5569 # Broken: fails on valid input.
5570continue
5571fi
cristyda16f162011-02-19 23:52:17 +00005572rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005573
5574 # OK, works on sane cases. Now check whether nonexistent headers
5575 # can be detected and how.
5576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5577/* end confdefs.h. */
5578#include <ac_nonexistent.h>
5579_ACEOF
5580if ac_fn_c_try_cpp "$LINENO"; then :
5581 # Broken: success on invalid input.
5582continue
5583else
5584 # Passes both tests.
5585ac_preproc_ok=:
5586break
5587fi
cristyda16f162011-02-19 23:52:17 +00005588rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005589
5590done
5591# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005592rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005593if $ac_preproc_ok; then :
5594 break
5595fi
5596
5597 done
5598 ac_cv_prog_CPP=$CPP
5599
5600fi
5601 CPP=$ac_cv_prog_CPP
5602else
5603 ac_cv_prog_CPP=$CPP
5604fi
5605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5606$as_echo "$CPP" >&6; }
5607ac_preproc_ok=false
5608for ac_c_preproc_warn_flag in '' yes
5609do
5610 # Use a header file that comes with gcc, so configuring glibc
5611 # with a fresh cross-compiler works.
5612 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5613 # <limits.h> exists even on freestanding compilers.
5614 # On the NeXT, cc -E runs the code through the compiler's parser,
5615 # not just through cpp. "Syntax error" is here to catch this case.
5616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5617/* end confdefs.h. */
5618#ifdef __STDC__
5619# include <limits.h>
5620#else
5621# include <assert.h>
5622#endif
5623 Syntax error
5624_ACEOF
5625if ac_fn_c_try_cpp "$LINENO"; then :
5626
5627else
5628 # Broken: fails on valid input.
5629continue
5630fi
cristyda16f162011-02-19 23:52:17 +00005631rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005632
5633 # OK, works on sane cases. Now check whether nonexistent headers
5634 # can be detected and how.
5635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5636/* end confdefs.h. */
5637#include <ac_nonexistent.h>
5638_ACEOF
5639if ac_fn_c_try_cpp "$LINENO"; then :
5640 # Broken: success on invalid input.
5641continue
5642else
5643 # Passes both tests.
5644ac_preproc_ok=:
5645break
5646fi
cristyda16f162011-02-19 23:52:17 +00005647rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005648
5649done
5650# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005651rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005652if $ac_preproc_ok; then :
5653
5654else
5655 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5656$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005657as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5658See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005659fi
5660
5661ac_ext=c
5662ac_cpp='$CPP $CPPFLAGS'
5663ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5664ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5665ac_compiler_gnu=$ac_cv_c_compiler_gnu
5666
5667
5668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5669$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005670if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005671 $as_echo_n "(cached) " >&6
5672else
5673 if test -z "$GREP"; then
5674 ac_path_GREP_found=false
5675 # Loop through the user's path and test for each of PROGNAME-LIST
5676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5677for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5678do
5679 IFS=$as_save_IFS
5680 test -z "$as_dir" && as_dir=.
5681 for ac_prog in grep ggrep; do
5682 for ac_exec_ext in '' $ac_executable_extensions; do
5683 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005684 as_fn_executable_p "$ac_path_GREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005685# Check for GNU ac_path_GREP and select it if it is found.
5686 # Check for GNU $ac_path_GREP
5687case `"$ac_path_GREP" --version 2>&1` in
5688*GNU*)
5689 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5690*)
5691 ac_count=0
5692 $as_echo_n 0123456789 >"conftest.in"
5693 while :
5694 do
5695 cat "conftest.in" "conftest.in" >"conftest.tmp"
5696 mv "conftest.tmp" "conftest.in"
5697 cp "conftest.in" "conftest.nl"
5698 $as_echo 'GREP' >> "conftest.nl"
5699 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5700 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5701 as_fn_arith $ac_count + 1 && ac_count=$as_val
5702 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5703 # Best one so far, save it but keep looking for a better one
5704 ac_cv_path_GREP="$ac_path_GREP"
5705 ac_path_GREP_max=$ac_count
5706 fi
5707 # 10*(2^10) chars as input seems more than enough
5708 test $ac_count -gt 10 && break
5709 done
5710 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5711esac
5712
5713 $ac_path_GREP_found && break 3
5714 done
5715 done
5716 done
5717IFS=$as_save_IFS
5718 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005719 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005720 fi
5721else
5722 ac_cv_path_GREP=$GREP
5723fi
5724
5725fi
5726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5727$as_echo "$ac_cv_path_GREP" >&6; }
5728 GREP="$ac_cv_path_GREP"
5729
5730
5731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5732$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005733if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005734 $as_echo_n "(cached) " >&6
5735else
5736 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5737 then ac_cv_path_EGREP="$GREP -E"
5738 else
5739 if test -z "$EGREP"; then
5740 ac_path_EGREP_found=false
5741 # Loop through the user's path and test for each of PROGNAME-LIST
5742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5743for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5744do
5745 IFS=$as_save_IFS
5746 test -z "$as_dir" && as_dir=.
5747 for ac_prog in egrep; do
5748 for ac_exec_ext in '' $ac_executable_extensions; do
5749 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005750 as_fn_executable_p "$ac_path_EGREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005751# Check for GNU ac_path_EGREP and select it if it is found.
5752 # Check for GNU $ac_path_EGREP
5753case `"$ac_path_EGREP" --version 2>&1` in
5754*GNU*)
5755 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5756*)
5757 ac_count=0
5758 $as_echo_n 0123456789 >"conftest.in"
5759 while :
5760 do
5761 cat "conftest.in" "conftest.in" >"conftest.tmp"
5762 mv "conftest.tmp" "conftest.in"
5763 cp "conftest.in" "conftest.nl"
5764 $as_echo 'EGREP' >> "conftest.nl"
5765 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5766 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5767 as_fn_arith $ac_count + 1 && ac_count=$as_val
5768 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5769 # Best one so far, save it but keep looking for a better one
5770 ac_cv_path_EGREP="$ac_path_EGREP"
5771 ac_path_EGREP_max=$ac_count
5772 fi
5773 # 10*(2^10) chars as input seems more than enough
5774 test $ac_count -gt 10 && break
5775 done
5776 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5777esac
5778
5779 $ac_path_EGREP_found && break 3
5780 done
5781 done
5782 done
5783IFS=$as_save_IFS
5784 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005785 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005786 fi
5787else
5788 ac_cv_path_EGREP=$EGREP
5789fi
5790
5791 fi
5792fi
5793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5794$as_echo "$ac_cv_path_EGREP" >&6; }
5795 EGREP="$ac_cv_path_EGREP"
5796
5797
5798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5799$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005800if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005801 $as_echo_n "(cached) " >&6
5802else
5803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5804/* end confdefs.h. */
5805#include <stdlib.h>
5806#include <stdarg.h>
5807#include <string.h>
5808#include <float.h>
5809
5810int
5811main ()
5812{
5813
5814 ;
5815 return 0;
5816}
5817_ACEOF
5818if ac_fn_c_try_compile "$LINENO"; then :
5819 ac_cv_header_stdc=yes
5820else
5821 ac_cv_header_stdc=no
5822fi
5823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5824
5825if test $ac_cv_header_stdc = yes; then
5826 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5828/* end confdefs.h. */
5829#include <string.h>
5830
5831_ACEOF
5832if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5833 $EGREP "memchr" >/dev/null 2>&1; then :
5834
5835else
5836 ac_cv_header_stdc=no
5837fi
5838rm -f conftest*
5839
5840fi
5841
5842if test $ac_cv_header_stdc = yes; then
5843 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5845/* end confdefs.h. */
5846#include <stdlib.h>
5847
5848_ACEOF
5849if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5850 $EGREP "free" >/dev/null 2>&1; then :
5851
5852else
5853 ac_cv_header_stdc=no
5854fi
5855rm -f conftest*
5856
5857fi
5858
5859if test $ac_cv_header_stdc = yes; then
5860 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5861 if test "$cross_compiling" = yes; then :
5862 :
5863else
5864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5865/* end confdefs.h. */
5866#include <ctype.h>
5867#include <stdlib.h>
5868#if ((' ' & 0x0FF) == 0x020)
5869# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5870# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5871#else
5872# define ISLOWER(c) \
5873 (('a' <= (c) && (c) <= 'i') \
5874 || ('j' <= (c) && (c) <= 'r') \
5875 || ('s' <= (c) && (c) <= 'z'))
5876# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5877#endif
5878
5879#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5880int
5881main ()
5882{
5883 int i;
5884 for (i = 0; i < 256; i++)
5885 if (XOR (islower (i), ISLOWER (i))
5886 || toupper (i) != TOUPPER (i))
5887 return 2;
5888 return 0;
5889}
5890_ACEOF
5891if ac_fn_c_try_run "$LINENO"; then :
5892
5893else
5894 ac_cv_header_stdc=no
5895fi
5896rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5897 conftest.$ac_objext conftest.beam conftest.$ac_ext
5898fi
5899
5900fi
5901fi
5902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5903$as_echo "$ac_cv_header_stdc" >&6; }
5904if test $ac_cv_header_stdc = yes; then
5905
5906$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5907
5908fi
5909
5910# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5911for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5912 inttypes.h stdint.h unistd.h
5913do :
5914 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5915ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5916"
cristy98dddb52010-11-04 00:30:15 +00005917if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005918 cat >>confdefs.h <<_ACEOF
5919#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5920_ACEOF
5921
5922fi
5923
5924done
5925
5926
5927
5928 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 +00005929if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00005930 MINIX=yes
5931else
5932 MINIX=
5933fi
5934
5935
5936 if test "$MINIX" = yes; then
5937
5938$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5939
5940
5941$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5942
5943
5944$as_echo "#define _MINIX 1" >>confdefs.h
5945
5946 fi
5947
5948
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5950$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005951if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005952 $as_echo_n "(cached) " >&6
5953else
5954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5955/* end confdefs.h. */
5956
cristy14fefe52012-05-21 00:59:18 +00005957# define __EXTENSIONS__ 1
5958 $ac_includes_default
cristya0b81c32010-01-22 02:54:33 +00005959int
5960main ()
5961{
5962
5963 ;
5964 return 0;
5965}
5966_ACEOF
5967if ac_fn_c_try_compile "$LINENO"; then :
5968 ac_cv_safe_to_define___extensions__=yes
5969else
5970 ac_cv_safe_to_define___extensions__=no
5971fi
5972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5973fi
5974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5975$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5976 test $ac_cv_safe_to_define___extensions__ = yes &&
5977 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5978
5979 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5980
5981 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5982
5983 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5984
5985 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5986
5987
5988
5989# Check for programs
5990ac_ext=c
5991ac_cpp='$CPP $CPPFLAGS'
5992ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5993ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5994ac_compiler_gnu=$ac_cv_c_compiler_gnu
5995if test -n "$ac_tool_prefix"; then
5996 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5997set dummy ${ac_tool_prefix}gcc; ac_word=$2
5998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5999$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006000if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006001 $as_echo_n "(cached) " >&6
6002else
6003 if test -n "$CC"; then
6004 ac_cv_prog_CC="$CC" # Let the user override the test.
6005else
6006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6007for as_dir in $PATH
6008do
6009 IFS=$as_save_IFS
6010 test -z "$as_dir" && as_dir=.
6011 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006013 ac_cv_prog_CC="${ac_tool_prefix}gcc"
6014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6015 break 2
6016 fi
6017done
6018 done
6019IFS=$as_save_IFS
6020
6021fi
6022fi
6023CC=$ac_cv_prog_CC
6024if test -n "$CC"; then
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6026$as_echo "$CC" >&6; }
6027else
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6029$as_echo "no" >&6; }
6030fi
6031
6032
6033fi
6034if test -z "$ac_cv_prog_CC"; then
6035 ac_ct_CC=$CC
6036 # Extract the first word of "gcc", so it can be a program name with args.
6037set dummy gcc; ac_word=$2
6038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6039$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006040if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006041 $as_echo_n "(cached) " >&6
6042else
6043 if test -n "$ac_ct_CC"; then
6044 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6045else
6046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6047for as_dir in $PATH
6048do
6049 IFS=$as_save_IFS
6050 test -z "$as_dir" && as_dir=.
6051 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006053 ac_cv_prog_ac_ct_CC="gcc"
6054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6055 break 2
6056 fi
6057done
6058 done
6059IFS=$as_save_IFS
6060
6061fi
6062fi
6063ac_ct_CC=$ac_cv_prog_ac_ct_CC
6064if test -n "$ac_ct_CC"; then
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6066$as_echo "$ac_ct_CC" >&6; }
6067else
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6069$as_echo "no" >&6; }
6070fi
6071
6072 if test "x$ac_ct_CC" = x; then
6073 CC=""
6074 else
6075 case $cross_compiling:$ac_tool_warned in
6076yes:)
6077{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6078$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6079ac_tool_warned=yes ;;
6080esac
6081 CC=$ac_ct_CC
6082 fi
6083else
6084 CC="$ac_cv_prog_CC"
6085fi
6086
6087if test -z "$CC"; then
6088 if test -n "$ac_tool_prefix"; then
6089 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6090set dummy ${ac_tool_prefix}cc; ac_word=$2
6091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6092$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006093if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006094 $as_echo_n "(cached) " >&6
6095else
6096 if test -n "$CC"; then
6097 ac_cv_prog_CC="$CC" # Let the user override the test.
6098else
6099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6100for as_dir in $PATH
6101do
6102 IFS=$as_save_IFS
6103 test -z "$as_dir" && as_dir=.
6104 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006106 ac_cv_prog_CC="${ac_tool_prefix}cc"
6107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6108 break 2
6109 fi
6110done
6111 done
6112IFS=$as_save_IFS
6113
6114fi
6115fi
6116CC=$ac_cv_prog_CC
6117if test -n "$CC"; then
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6119$as_echo "$CC" >&6; }
6120else
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6122$as_echo "no" >&6; }
6123fi
6124
6125
6126 fi
6127fi
6128if test -z "$CC"; then
6129 # Extract the first word of "cc", so it can be a program name with args.
6130set dummy cc; ac_word=$2
6131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6132$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006133if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006134 $as_echo_n "(cached) " >&6
6135else
6136 if test -n "$CC"; then
6137 ac_cv_prog_CC="$CC" # Let the user override the test.
6138else
6139 ac_prog_rejected=no
6140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6141for as_dir in $PATH
6142do
6143 IFS=$as_save_IFS
6144 test -z "$as_dir" && as_dir=.
6145 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006147 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6148 ac_prog_rejected=yes
6149 continue
6150 fi
6151 ac_cv_prog_CC="cc"
6152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6153 break 2
6154 fi
6155done
6156 done
6157IFS=$as_save_IFS
6158
6159if test $ac_prog_rejected = yes; then
6160 # We found a bogon in the path, so make sure we never use it.
6161 set dummy $ac_cv_prog_CC
6162 shift
6163 if test $# != 0; then
6164 # We chose a different compiler from the bogus one.
6165 # However, it has the same basename, so the bogon will be chosen
6166 # first if we set CC to just the basename; use the full file name.
6167 shift
6168 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6169 fi
6170fi
6171fi
6172fi
6173CC=$ac_cv_prog_CC
6174if test -n "$CC"; then
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6176$as_echo "$CC" >&6; }
6177else
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6179$as_echo "no" >&6; }
6180fi
6181
6182
6183fi
6184if test -z "$CC"; then
6185 if test -n "$ac_tool_prefix"; then
6186 for ac_prog in cl.exe
6187 do
6188 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6189set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6191$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006192if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006193 $as_echo_n "(cached) " >&6
6194else
6195 if test -n "$CC"; then
6196 ac_cv_prog_CC="$CC" # Let the user override the test.
6197else
6198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6199for as_dir in $PATH
6200do
6201 IFS=$as_save_IFS
6202 test -z "$as_dir" && as_dir=.
6203 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006205 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6207 break 2
6208 fi
6209done
6210 done
6211IFS=$as_save_IFS
6212
6213fi
6214fi
6215CC=$ac_cv_prog_CC
6216if test -n "$CC"; then
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6218$as_echo "$CC" >&6; }
6219else
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6221$as_echo "no" >&6; }
6222fi
6223
6224
6225 test -n "$CC" && break
6226 done
6227fi
6228if test -z "$CC"; then
6229 ac_ct_CC=$CC
6230 for ac_prog in cl.exe
6231do
6232 # Extract the first word of "$ac_prog", so it can be a program name with args.
6233set dummy $ac_prog; ac_word=$2
6234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6235$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006236if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006237 $as_echo_n "(cached) " >&6
6238else
6239 if test -n "$ac_ct_CC"; then
6240 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6241else
6242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6243for as_dir in $PATH
6244do
6245 IFS=$as_save_IFS
6246 test -z "$as_dir" && as_dir=.
6247 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006249 ac_cv_prog_ac_ct_CC="$ac_prog"
6250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6251 break 2
6252 fi
6253done
6254 done
6255IFS=$as_save_IFS
6256
6257fi
6258fi
6259ac_ct_CC=$ac_cv_prog_ac_ct_CC
6260if test -n "$ac_ct_CC"; then
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6262$as_echo "$ac_ct_CC" >&6; }
6263else
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6265$as_echo "no" >&6; }
6266fi
6267
6268
6269 test -n "$ac_ct_CC" && break
6270done
6271
6272 if test "x$ac_ct_CC" = x; then
6273 CC=""
6274 else
6275 case $cross_compiling:$ac_tool_warned in
6276yes:)
6277{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6278$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6279ac_tool_warned=yes ;;
6280esac
6281 CC=$ac_ct_CC
6282 fi
6283fi
6284
6285fi
6286
6287
6288test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6289$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00006290as_fn_error $? "no acceptable C compiler found in \$PATH
6291See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00006292
6293# Provide some information about the compiler.
6294$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6295set X $ac_compile
6296ac_compiler=$2
6297for ac_option in --version -v -V -qversion; do
6298 { { ac_try="$ac_compiler $ac_option >&5"
6299case "(($ac_try" in
6300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6301 *) ac_try_echo=$ac_try;;
6302esac
6303eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6304$as_echo "$ac_try_echo"; } >&5
6305 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6306 ac_status=$?
6307 if test -s conftest.err; then
6308 sed '10a\
6309... rest of stderr output deleted ...
6310 10q' conftest.err >conftest.er1
6311 cat conftest.er1 >&5
6312 fi
6313 rm -f conftest.er1 conftest.err
6314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6315 test $ac_status = 0; }
6316done
6317
6318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6319$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006320if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006321 $as_echo_n "(cached) " >&6
6322else
6323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6324/* end confdefs.h. */
6325
6326int
6327main ()
6328{
6329#ifndef __GNUC__
6330 choke me
6331#endif
6332
6333 ;
6334 return 0;
6335}
6336_ACEOF
6337if ac_fn_c_try_compile "$LINENO"; then :
6338 ac_compiler_gnu=yes
6339else
6340 ac_compiler_gnu=no
6341fi
6342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6343ac_cv_c_compiler_gnu=$ac_compiler_gnu
6344
6345fi
6346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6347$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6348if test $ac_compiler_gnu = yes; then
6349 GCC=yes
6350else
6351 GCC=
6352fi
6353ac_test_CFLAGS=${CFLAGS+set}
6354ac_save_CFLAGS=$CFLAGS
6355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6356$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006357if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006358 $as_echo_n "(cached) " >&6
6359else
6360 ac_save_c_werror_flag=$ac_c_werror_flag
6361 ac_c_werror_flag=yes
6362 ac_cv_prog_cc_g=no
6363 CFLAGS="-g"
6364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6365/* end confdefs.h. */
6366
6367int
6368main ()
6369{
6370
6371 ;
6372 return 0;
6373}
6374_ACEOF
6375if ac_fn_c_try_compile "$LINENO"; then :
6376 ac_cv_prog_cc_g=yes
6377else
6378 CFLAGS=""
6379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6380/* end confdefs.h. */
6381
6382int
6383main ()
6384{
6385
6386 ;
6387 return 0;
6388}
6389_ACEOF
6390if ac_fn_c_try_compile "$LINENO"; then :
6391
6392else
6393 ac_c_werror_flag=$ac_save_c_werror_flag
6394 CFLAGS="-g"
6395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6396/* end confdefs.h. */
6397
6398int
6399main ()
6400{
6401
6402 ;
6403 return 0;
6404}
6405_ACEOF
6406if ac_fn_c_try_compile "$LINENO"; then :
6407 ac_cv_prog_cc_g=yes
6408fi
6409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6410fi
6411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6412fi
6413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6414 ac_c_werror_flag=$ac_save_c_werror_flag
6415fi
6416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6417$as_echo "$ac_cv_prog_cc_g" >&6; }
6418if test "$ac_test_CFLAGS" = set; then
6419 CFLAGS=$ac_save_CFLAGS
6420elif test $ac_cv_prog_cc_g = yes; then
6421 if test "$GCC" = yes; then
6422 CFLAGS="-g -O2"
6423 else
6424 CFLAGS="-g"
6425 fi
6426else
6427 if test "$GCC" = yes; then
6428 CFLAGS="-O2"
6429 else
6430 CFLAGS=
6431 fi
6432fi
6433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6434$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006435if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006436 $as_echo_n "(cached) " >&6
6437else
6438 ac_cv_prog_cc_c89=no
6439ac_save_CC=$CC
6440cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6441/* end confdefs.h. */
6442#include <stdarg.h>
6443#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00006444struct stat;
cristya0b81c32010-01-22 02:54:33 +00006445/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6446struct buf { int x; };
6447FILE * (*rcsopen) (struct buf *, struct stat *, int);
6448static char *e (p, i)
6449 char **p;
6450 int i;
6451{
6452 return p[i];
6453}
6454static char *f (char * (*g) (char **, int), char **p, ...)
6455{
6456 char *s;
6457 va_list v;
6458 va_start (v,p);
6459 s = g (p, va_arg (v,int));
6460 va_end (v);
6461 return s;
6462}
6463
6464/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6465 function prototypes and stuff, but not '\xHH' hex character constants.
6466 These don't provoke an error unfortunately, instead are silently treated
6467 as 'x'. The following induces an error, until -std is added to get
6468 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6469 array size at least. It's necessary to write '\x00'==0 to get something
6470 that's true only with -std. */
6471int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6472
6473/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6474 inside strings and character constants. */
6475#define FOO(x) 'x'
6476int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6477
6478int test (int i, double x);
6479struct s1 {int (*f) (int a);};
6480struct s2 {int (*f) (double a);};
6481int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6482int argc;
6483char **argv;
6484int
6485main ()
6486{
6487return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6488 ;
6489 return 0;
6490}
6491_ACEOF
6492for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6493 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6494do
6495 CC="$ac_save_CC $ac_arg"
6496 if ac_fn_c_try_compile "$LINENO"; then :
6497 ac_cv_prog_cc_c89=$ac_arg
6498fi
6499rm -f core conftest.err conftest.$ac_objext
6500 test "x$ac_cv_prog_cc_c89" != "xno" && break
6501done
6502rm -f conftest.$ac_ext
6503CC=$ac_save_CC
6504
6505fi
6506# AC_CACHE_VAL
6507case "x$ac_cv_prog_cc_c89" in
6508 x)
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6510$as_echo "none needed" >&6; } ;;
6511 xno)
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6513$as_echo "unsupported" >&6; } ;;
6514 *)
6515 CC="$CC $ac_cv_prog_cc_c89"
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6517$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6518esac
6519if test "x$ac_cv_prog_cc_c89" != xno; then :
6520
6521fi
6522
6523ac_ext=c
6524ac_cpp='$CPP $CPPFLAGS'
6525ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6526ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6527ac_compiler_gnu=$ac_cv_c_compiler_gnu
6528
cristya5bda012013-11-03 18:05:38 +00006529ac_ext=c
6530ac_cpp='$CPP $CPPFLAGS'
6531ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6532ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6533ac_compiler_gnu=$ac_cv_c_compiler_gnu
6534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6535$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6536if ${am_cv_prog_cc_c_o+:} false; then :
6537 $as_echo_n "(cached) " >&6
6538else
6539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6540/* end confdefs.h. */
6541
6542int
6543main ()
6544{
6545
6546 ;
6547 return 0;
6548}
6549_ACEOF
6550 # Make sure it works both with $CC and with simple cc.
6551 # Following AC_PROG_CC_C_O, we do the test twice because some
6552 # compilers refuse to overwrite an existing .o file with -o,
6553 # though they will create one.
6554 am_cv_prog_cc_c_o=yes
6555 for am_i in 1 2; do
6556 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6557 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6558 ac_status=$?
6559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560 (exit $ac_status); } \
6561 && test -f conftest2.$ac_objext; then
6562 : OK
6563 else
6564 am_cv_prog_cc_c_o=no
6565 break
6566 fi
6567 done
6568 rm -f core conftest*
6569 unset am_i
6570fi
6571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6572$as_echo "$am_cv_prog_cc_c_o" >&6; }
6573if test "$am_cv_prog_cc_c_o" != yes; then
6574 # Losing compiler, so override with the script.
6575 # FIXME: It is wrong to rewrite CC.
6576 # But if we don't then we get into trouble of one sort or another.
6577 # A longer-term fix would be to have automake use am__CC in this case,
6578 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6579 CC="$am_aux_dir/compile $CC"
6580fi
6581ac_ext=c
6582ac_cpp='$CPP $CPPFLAGS'
6583ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6584ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6585ac_compiler_gnu=$ac_cv_c_compiler_gnu
6586
6587
cristy73bd4a52010-10-05 11:24:23 +00006588depcc="$CC" am_compiler_list=
6589
6590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6591$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006592if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006593 $as_echo_n "(cached) " >&6
6594else
6595 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6596 # We make a subdir and do the tests there. Otherwise we can end up
6597 # making bogus files that we don't know about and never remove. For
6598 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006599 # making a dummy file named 'D' -- because '-MD' means "put the output
6600 # in D".
cristy7247bba2012-02-05 16:37:27 +00006601 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006602 mkdir conftest.dir
6603 # Copy depcomp to subdir because otherwise we won't find it if we're
6604 # using a relative directory.
6605 cp "$am_depcomp" conftest.dir
6606 cd conftest.dir
6607 # We will build objects and dependencies in a subdirectory because
6608 # it helps to detect inapplicable dependency modes. For instance
6609 # both Tru64's cc and ICC support -MD to output dependencies as a
6610 # side effect of compilation, but ICC will put the dependencies in
6611 # the current directory while Tru64 will put them in the object
6612 # directory.
6613 mkdir sub
6614
6615 am_cv_CC_dependencies_compiler_type=none
6616 if test "$am_compiler_list" = ""; then
6617 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6618 fi
6619 am__universal=false
6620 case " $depcc " in #(
6621 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6622 esac
6623
6624 for depmode in $am_compiler_list; do
6625 # Setup a source with many dependencies, because some compilers
6626 # like to wrap large dependency lists on column 80 (with \), and
6627 # we should not choose a depcomp mode which is confused by this.
6628 #
6629 # We need to recreate these files for each test, as the compiler may
6630 # overwrite some of them when testing with obscure command lines.
6631 # This happens at least with the AIX C compiler.
6632 : > sub/conftest.c
6633 for i in 1 2 3 4 5 6; do
6634 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006635 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6636 # Solaris 10 /bin/sh.
6637 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006638 done
6639 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6640
cristyc0890a62012-07-19 00:18:20 +00006641 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006642 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006643 # handle '-M -o', and we need to detect this. Also, some Intel
6644 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006645 am__obj=sub/conftest.${OBJEXT-o}
6646 am__minus_obj="-o $am__obj"
6647 case $depmode in
6648 gcc)
6649 # This depmode causes a compiler race in universal mode.
6650 test "$am__universal" = false || continue
6651 ;;
6652 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006653 # After this tag, mechanisms are not by side-effect, so they'll
6654 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006655 if test "x$enable_dependency_tracking" = xyes; then
6656 continue
6657 else
6658 break
6659 fi
6660 ;;
cristy7247bba2012-02-05 16:37:27 +00006661 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006662 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006663 # not run yet. These depmodes are late enough in the game, and
6664 # so weak that their functioning should not be impacted.
6665 am__obj=conftest.${OBJEXT-o}
6666 am__minus_obj=
6667 ;;
6668 none) break ;;
6669 esac
6670 if depmode=$depmode \
6671 source=sub/conftest.c object=$am__obj \
6672 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6673 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6674 >/dev/null 2>conftest.err &&
6675 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6676 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6677 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6678 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6679 # icc doesn't choke on unknown options, it will just issue warnings
6680 # or remarks (even with -Werror). So we grep stderr for any message
6681 # that says an option was ignored or not supported.
6682 # When given -MP, icc 7.0 and 7.1 complain thusly:
6683 # icc: Command line warning: ignoring option '-M'; no argument required
6684 # The diagnosis changed in icc 8.0:
6685 # icc: Command line remark: option '-MP' not supported
6686 if (grep 'ignoring option' conftest.err ||
6687 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6688 am_cv_CC_dependencies_compiler_type=$depmode
6689 break
6690 fi
6691 fi
6692 done
6693
6694 cd ..
6695 rm -rf conftest.dir
6696else
6697 am_cv_CC_dependencies_compiler_type=none
6698fi
6699
6700fi
6701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6702$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6703CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6704
6705 if
6706 test "x$enable_dependency_tracking" != xno \
6707 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6708 am__fastdepCC_TRUE=
6709 am__fastdepCC_FALSE='#'
6710else
6711 am__fastdepCC_TRUE='#'
6712 am__fastdepCC_FALSE=
6713fi
6714
6715
cristy95646052009-11-28 23:05:30 +00006716ac_ext=cpp
6717ac_cpp='$CXXCPP $CPPFLAGS'
6718ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6719ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6720ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6721if test -z "$CXX"; then
6722 if test -n "$CCC"; then
6723 CXX=$CCC
6724 else
6725 if test -n "$ac_tool_prefix"; then
6726 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6727 do
6728 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6729set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6731$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006732if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006733 $as_echo_n "(cached) " >&6
6734else
6735 if test -n "$CXX"; then
6736 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6737else
6738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6739for as_dir in $PATH
6740do
6741 IFS=$as_save_IFS
6742 test -z "$as_dir" && as_dir=.
6743 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006745 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6747 break 2
6748 fi
6749done
6750 done
6751IFS=$as_save_IFS
6752
6753fi
6754fi
6755CXX=$ac_cv_prog_CXX
6756if test -n "$CXX"; then
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6758$as_echo "$CXX" >&6; }
6759else
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6761$as_echo "no" >&6; }
6762fi
6763
6764
6765 test -n "$CXX" && break
6766 done
6767fi
6768if test -z "$CXX"; then
6769 ac_ct_CXX=$CXX
6770 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6771do
6772 # Extract the first word of "$ac_prog", so it can be a program name with args.
6773set dummy $ac_prog; ac_word=$2
6774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6775$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006776if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006777 $as_echo_n "(cached) " >&6
6778else
6779 if test -n "$ac_ct_CXX"; then
6780 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6781else
6782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6783for as_dir in $PATH
6784do
6785 IFS=$as_save_IFS
6786 test -z "$as_dir" && as_dir=.
6787 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006789 ac_cv_prog_ac_ct_CXX="$ac_prog"
6790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6791 break 2
6792 fi
6793done
6794 done
6795IFS=$as_save_IFS
6796
6797fi
6798fi
6799ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6800if test -n "$ac_ct_CXX"; then
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6802$as_echo "$ac_ct_CXX" >&6; }
6803else
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6805$as_echo "no" >&6; }
6806fi
6807
6808
6809 test -n "$ac_ct_CXX" && break
6810done
6811
6812 if test "x$ac_ct_CXX" = x; then
6813 CXX="g++"
6814 else
6815 case $cross_compiling:$ac_tool_warned in
6816yes:)
6817{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6818$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6819ac_tool_warned=yes ;;
6820esac
6821 CXX=$ac_ct_CXX
6822 fi
6823fi
6824
6825 fi
6826fi
6827# Provide some information about the compiler.
6828$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6829set X $ac_compile
6830ac_compiler=$2
6831for ac_option in --version -v -V -qversion; do
6832 { { ac_try="$ac_compiler $ac_option >&5"
6833case "(($ac_try" in
6834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6835 *) ac_try_echo=$ac_try;;
6836esac
6837eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6838$as_echo "$ac_try_echo"; } >&5
6839 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6840 ac_status=$?
6841 if test -s conftest.err; then
6842 sed '10a\
6843... rest of stderr output deleted ...
6844 10q' conftest.err >conftest.er1
6845 cat conftest.er1 >&5
6846 fi
6847 rm -f conftest.er1 conftest.err
6848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6849 test $ac_status = 0; }
6850done
6851
6852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6853$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006854if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00006855 $as_echo_n "(cached) " >&6
6856else
6857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6858/* end confdefs.h. */
6859
6860int
6861main ()
6862{
6863#ifndef __GNUC__
6864 choke me
6865#endif
6866
6867 ;
6868 return 0;
6869}
6870_ACEOF
6871if ac_fn_cxx_try_compile "$LINENO"; then :
6872 ac_compiler_gnu=yes
6873else
6874 ac_compiler_gnu=no
6875fi
6876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6877ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6878
6879fi
6880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6881$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6882if test $ac_compiler_gnu = yes; then
6883 GXX=yes
6884else
6885 GXX=
6886fi
6887ac_test_CXXFLAGS=${CXXFLAGS+set}
6888ac_save_CXXFLAGS=$CXXFLAGS
6889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6890$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006891if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00006892 $as_echo_n "(cached) " >&6
6893else
6894 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6895 ac_cxx_werror_flag=yes
6896 ac_cv_prog_cxx_g=no
6897 CXXFLAGS="-g"
6898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6899/* end confdefs.h. */
6900
6901int
6902main ()
6903{
6904
6905 ;
6906 return 0;
6907}
6908_ACEOF
6909if ac_fn_cxx_try_compile "$LINENO"; then :
6910 ac_cv_prog_cxx_g=yes
6911else
6912 CXXFLAGS=""
6913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6914/* end confdefs.h. */
6915
6916int
6917main ()
6918{
6919
6920 ;
6921 return 0;
6922}
6923_ACEOF
6924if ac_fn_cxx_try_compile "$LINENO"; then :
6925
6926else
6927 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6928 CXXFLAGS="-g"
6929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6930/* end confdefs.h. */
6931
6932int
6933main ()
6934{
6935
6936 ;
6937 return 0;
6938}
6939_ACEOF
6940if ac_fn_cxx_try_compile "$LINENO"; then :
6941 ac_cv_prog_cxx_g=yes
6942fi
6943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6944fi
6945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6946fi
6947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6948 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6949fi
6950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6951$as_echo "$ac_cv_prog_cxx_g" >&6; }
6952if test "$ac_test_CXXFLAGS" = set; then
6953 CXXFLAGS=$ac_save_CXXFLAGS
6954elif test $ac_cv_prog_cxx_g = yes; then
6955 if test "$GXX" = yes; then
6956 CXXFLAGS="-g -O2"
6957 else
6958 CXXFLAGS="-g"
6959 fi
6960else
6961 if test "$GXX" = yes; then
6962 CXXFLAGS="-O2"
6963 else
6964 CXXFLAGS=
6965 fi
6966fi
6967ac_ext=c
6968ac_cpp='$CPP $CPPFLAGS'
6969ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6970ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6971ac_compiler_gnu=$ac_cv_c_compiler_gnu
6972
cristy73bd4a52010-10-05 11:24:23 +00006973depcc="$CXX" am_compiler_list=
6974
6975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6976$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006977if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006978 $as_echo_n "(cached) " >&6
6979else
6980 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6981 # We make a subdir and do the tests there. Otherwise we can end up
6982 # making bogus files that we don't know about and never remove. For
6983 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006984 # making a dummy file named 'D' -- because '-MD' means "put the output
6985 # in D".
cristy7247bba2012-02-05 16:37:27 +00006986 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006987 mkdir conftest.dir
6988 # Copy depcomp to subdir because otherwise we won't find it if we're
6989 # using a relative directory.
6990 cp "$am_depcomp" conftest.dir
6991 cd conftest.dir
6992 # We will build objects and dependencies in a subdirectory because
6993 # it helps to detect inapplicable dependency modes. For instance
6994 # both Tru64's cc and ICC support -MD to output dependencies as a
6995 # side effect of compilation, but ICC will put the dependencies in
6996 # the current directory while Tru64 will put them in the object
6997 # directory.
6998 mkdir sub
6999
7000 am_cv_CXX_dependencies_compiler_type=none
7001 if test "$am_compiler_list" = ""; then
7002 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7003 fi
7004 am__universal=false
7005 case " $depcc " in #(
7006 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7007 esac
7008
7009 for depmode in $am_compiler_list; do
7010 # Setup a source with many dependencies, because some compilers
7011 # like to wrap large dependency lists on column 80 (with \), and
7012 # we should not choose a depcomp mode which is confused by this.
7013 #
7014 # We need to recreate these files for each test, as the compiler may
7015 # overwrite some of them when testing with obscure command lines.
7016 # This happens at least with the AIX C compiler.
7017 : > sub/conftest.c
7018 for i in 1 2 3 4 5 6; do
7019 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00007020 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7021 # Solaris 10 /bin/sh.
7022 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00007023 done
7024 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7025
cristyc0890a62012-07-19 00:18:20 +00007026 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00007027 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00007028 # handle '-M -o', and we need to detect this. Also, some Intel
7029 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00007030 am__obj=sub/conftest.${OBJEXT-o}
7031 am__minus_obj="-o $am__obj"
7032 case $depmode in
7033 gcc)
7034 # This depmode causes a compiler race in universal mode.
7035 test "$am__universal" = false || continue
7036 ;;
7037 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00007038 # After this tag, mechanisms are not by side-effect, so they'll
7039 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00007040 if test "x$enable_dependency_tracking" = xyes; then
7041 continue
7042 else
7043 break
7044 fi
7045 ;;
cristy7247bba2012-02-05 16:37:27 +00007046 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00007047 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00007048 # not run yet. These depmodes are late enough in the game, and
7049 # so weak that their functioning should not be impacted.
7050 am__obj=conftest.${OBJEXT-o}
7051 am__minus_obj=
7052 ;;
7053 none) break ;;
7054 esac
7055 if depmode=$depmode \
7056 source=sub/conftest.c object=$am__obj \
7057 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7058 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7059 >/dev/null 2>conftest.err &&
7060 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7061 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7062 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7063 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7064 # icc doesn't choke on unknown options, it will just issue warnings
7065 # or remarks (even with -Werror). So we grep stderr for any message
7066 # that says an option was ignored or not supported.
7067 # When given -MP, icc 7.0 and 7.1 complain thusly:
7068 # icc: Command line warning: ignoring option '-M'; no argument required
7069 # The diagnosis changed in icc 8.0:
7070 # icc: Command line remark: option '-MP' not supported
7071 if (grep 'ignoring option' conftest.err ||
7072 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7073 am_cv_CXX_dependencies_compiler_type=$depmode
7074 break
7075 fi
7076 fi
7077 done
7078
7079 cd ..
7080 rm -rf conftest.dir
7081else
7082 am_cv_CXX_dependencies_compiler_type=none
7083fi
7084
7085fi
7086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7087$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7088CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7089
7090 if
7091 test "x$enable_dependency_tracking" != xno \
7092 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7093 am__fastdepCXX_TRUE=
7094 am__fastdepCXX_FALSE='#'
7095else
7096 am__fastdepCXX_TRUE='#'
7097 am__fastdepCXX_FALSE=
7098fi
7099
7100
cristy8b350f62009-11-15 23:12:43 +00007101 case $ac_cv_prog_cc_stdc in #(
7102 no) :
7103 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
7104 *) :
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007106$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007107if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007108 $as_echo_n "(cached) " >&6
7109else
7110 ac_cv_prog_cc_c99=no
7111ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007112cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007113/* end confdefs.h. */
7114#include <stdarg.h>
7115#include <stdbool.h>
7116#include <stdlib.h>
7117#include <wchar.h>
7118#include <stdio.h>
7119
7120// Check varargs macros. These examples are taken from C99 6.10.3.5.
7121#define debug(...) fprintf (stderr, __VA_ARGS__)
7122#define showlist(...) puts (#__VA_ARGS__)
7123#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7124static void
7125test_varargs_macros (void)
7126{
7127 int x = 1234;
7128 int y = 5678;
7129 debug ("Flag");
7130 debug ("X = %d\n", x);
7131 showlist (The first, second, and third items.);
7132 report (x>y, "x is %d but y is %d", x, y);
7133}
7134
7135// Check long long types.
7136#define BIG64 18446744073709551615ull
7137#define BIG32 4294967295ul
7138#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7139#if !BIG_OK
7140 your preprocessor is broken;
7141#endif
7142#if BIG_OK
7143#else
7144 your preprocessor is broken;
7145#endif
7146static long long int bignum = -9223372036854775807LL;
7147static unsigned long long int ubignum = BIG64;
7148
7149struct incomplete_array
7150{
7151 int datasize;
7152 double data[];
7153};
7154
7155struct named_init {
7156 int number;
7157 const wchar_t *name;
7158 double average;
7159};
7160
7161typedef const char *ccp;
7162
7163static inline int
7164test_restrict (ccp restrict text)
7165{
7166 // See if C++-style comments work.
7167 // Iterate through items via the restricted pointer.
7168 // Also check for declarations in for loops.
7169 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7170 continue;
7171 return 0;
7172}
7173
7174// Check varargs and va_copy.
7175static void
7176test_varargs (const char *format, ...)
7177{
7178 va_list args;
7179 va_start (args, format);
7180 va_list args_copy;
7181 va_copy (args_copy, args);
7182
7183 const char *str;
7184 int number;
7185 float fnumber;
7186
7187 while (*format)
7188 {
7189 switch (*format++)
7190 {
7191 case 's': // string
7192 str = va_arg (args_copy, const char *);
7193 break;
7194 case 'd': // int
7195 number = va_arg (args_copy, int);
7196 break;
7197 case 'f': // float
7198 fnumber = va_arg (args_copy, double);
7199 break;
7200 default:
7201 break;
7202 }
7203 }
7204 va_end (args_copy);
7205 va_end (args);
7206}
7207
7208int
7209main ()
7210{
7211
7212 // Check bool.
7213 _Bool success = false;
7214
7215 // Check restrict.
7216 if (test_restrict ("String literal") == 0)
7217 success = true;
7218 char *restrict newvar = "Another string";
7219
7220 // Check varargs.
7221 test_varargs ("s, d' f .", "string", 65, 34.234);
7222 test_varargs_macros ();
7223
7224 // Check flexible array members.
7225 struct incomplete_array *ia =
7226 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7227 ia->datasize = 10;
7228 for (int i = 0; i < ia->datasize; ++i)
7229 ia->data[i] = i * 1.234;
7230
7231 // Check named initializers.
7232 struct named_init ni = {
7233 .number = 34,
7234 .name = L"Test wide string",
7235 .average = 543.34343,
7236 };
7237
7238 ni.number = 58;
7239
7240 int dynamic_array[ni.number];
7241 dynamic_array[ni.number - 1] = 543;
7242
7243 // work around unused variable warnings
7244 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7245 || dynamic_array[ni.number - 1] != 543);
7246
7247 ;
7248 return 0;
7249}
7250_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007251for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy3ed852e2009-09-05 21:47:34 +00007252do
7253 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007254 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007255 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007256fi
cristy3ed852e2009-09-05 21:47:34 +00007257rm -f core conftest.err conftest.$ac_objext
7258 test "x$ac_cv_prog_cc_c99" != "xno" && break
7259done
7260rm -f conftest.$ac_ext
7261CC=$ac_save_CC
7262
7263fi
7264# AC_CACHE_VAL
7265case "x$ac_cv_prog_cc_c99" in
7266 x)
cristy8b350f62009-11-15 23:12:43 +00007267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007268$as_echo "none needed" >&6; } ;;
7269 xno)
cristy8b350f62009-11-15 23:12:43 +00007270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007271$as_echo "unsupported" >&6; } ;;
7272 *)
7273 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00007274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007275$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7276esac
cristy8b350f62009-11-15 23:12:43 +00007277if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007278 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7279else
cristy8b350f62009-11-15 23:12:43 +00007280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007281$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007282if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007283 $as_echo_n "(cached) " >&6
7284else
7285 ac_cv_prog_cc_c89=no
7286ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007287cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007288/* end confdefs.h. */
7289#include <stdarg.h>
7290#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00007291struct stat;
cristy3ed852e2009-09-05 21:47:34 +00007292/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7293struct buf { int x; };
7294FILE * (*rcsopen) (struct buf *, struct stat *, int);
7295static char *e (p, i)
7296 char **p;
7297 int i;
7298{
7299 return p[i];
7300}
7301static char *f (char * (*g) (char **, int), char **p, ...)
7302{
7303 char *s;
7304 va_list v;
7305 va_start (v,p);
7306 s = g (p, va_arg (v,int));
7307 va_end (v);
7308 return s;
7309}
7310
7311/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7312 function prototypes and stuff, but not '\xHH' hex character constants.
7313 These don't provoke an error unfortunately, instead are silently treated
7314 as 'x'. The following induces an error, until -std is added to get
7315 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7316 array size at least. It's necessary to write '\x00'==0 to get something
7317 that's true only with -std. */
7318int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7319
7320/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7321 inside strings and character constants. */
7322#define FOO(x) 'x'
7323int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7324
7325int test (int i, double x);
7326struct s1 {int (*f) (int a);};
7327struct s2 {int (*f) (double a);};
7328int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7329int argc;
7330char **argv;
7331int
7332main ()
7333{
7334return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7335 ;
7336 return 0;
7337}
7338_ACEOF
7339for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7340 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7341do
7342 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007343 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007344 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007345fi
cristy3ed852e2009-09-05 21:47:34 +00007346rm -f core conftest.err conftest.$ac_objext
7347 test "x$ac_cv_prog_cc_c89" != "xno" && break
7348done
7349rm -f conftest.$ac_ext
7350CC=$ac_save_CC
7351
7352fi
7353# AC_CACHE_VAL
7354case "x$ac_cv_prog_cc_c89" in
7355 x)
cristy8b350f62009-11-15 23:12:43 +00007356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007357$as_echo "none needed" >&6; } ;;
7358 xno)
cristy8b350f62009-11-15 23:12:43 +00007359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007360$as_echo "unsupported" >&6; } ;;
7361 *)
7362 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00007363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007364$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7365esac
cristy8b350f62009-11-15 23:12:43 +00007366if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007367 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7368else
7369 ac_cv_prog_cc_stdc=no
7370fi
7371
cristy3ed852e2009-09-05 21:47:34 +00007372fi
cristy3ed852e2009-09-05 21:47:34 +00007373 ;;
7374esac
cristy8b350f62009-11-15 23:12:43 +00007375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00007376$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007377 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007378 $as_echo_n "(cached) " >&6
7379fi
7380
cristy8b350f62009-11-15 23:12:43 +00007381 case $ac_cv_prog_cc_stdc in #(
7382 no) :
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7384$as_echo "unsupported" >&6; } ;; #(
7385 '') :
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7387$as_echo "none needed" >&6; } ;; #(
7388 *) :
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00007390$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7391esac
7392
cristy3ed852e2009-09-05 21:47:34 +00007393ac_ext=c
7394ac_cpp='$CPP $CPPFLAGS'
7395ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7396ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7397ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00007398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00007399$as_echo_n "checking how to run the C preprocessor... " >&6; }
7400# On Suns, sometimes $CPP names a directory.
7401if test -n "$CPP" && test -d "$CPP"; then
7402 CPP=
7403fi
7404if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00007405 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007406 $as_echo_n "(cached) " >&6
7407else
7408 # Double quotes because CPP needs to be expanded
7409 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7410 do
7411 ac_preproc_ok=false
7412for ac_c_preproc_warn_flag in '' yes
7413do
7414 # Use a header file that comes with gcc, so configuring glibc
7415 # with a fresh cross-compiler works.
7416 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7417 # <limits.h> exists even on freestanding compilers.
7418 # On the NeXT, cc -E runs the code through the compiler's parser,
7419 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007421/* end confdefs.h. */
7422#ifdef __STDC__
7423# include <limits.h>
7424#else
7425# include <assert.h>
7426#endif
7427 Syntax error
7428_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007429if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007430
cristy8b350f62009-11-15 23:12:43 +00007431else
cristy3ed852e2009-09-05 21:47:34 +00007432 # Broken: fails on valid input.
7433continue
7434fi
cristyda16f162011-02-19 23:52:17 +00007435rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007436
7437 # OK, works on sane cases. Now check whether nonexistent headers
7438 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007440/* end confdefs.h. */
7441#include <ac_nonexistent.h>
7442_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007443if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007444 # Broken: success on invalid input.
7445continue
7446else
cristy3ed852e2009-09-05 21:47:34 +00007447 # Passes both tests.
7448ac_preproc_ok=:
7449break
7450fi
cristyda16f162011-02-19 23:52:17 +00007451rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007452
7453done
7454# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007455rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007456if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007457 break
7458fi
7459
7460 done
7461 ac_cv_prog_CPP=$CPP
7462
7463fi
7464 CPP=$ac_cv_prog_CPP
7465else
7466 ac_cv_prog_CPP=$CPP
7467fi
cristy8b350f62009-11-15 23:12:43 +00007468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007469$as_echo "$CPP" >&6; }
7470ac_preproc_ok=false
7471for ac_c_preproc_warn_flag in '' yes
7472do
7473 # Use a header file that comes with gcc, so configuring glibc
7474 # with a fresh cross-compiler works.
7475 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7476 # <limits.h> exists even on freestanding compilers.
7477 # On the NeXT, cc -E runs the code through the compiler's parser,
7478 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007480/* end confdefs.h. */
7481#ifdef __STDC__
7482# include <limits.h>
7483#else
7484# include <assert.h>
7485#endif
7486 Syntax error
7487_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007488if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007489
cristy8b350f62009-11-15 23:12:43 +00007490else
cristy3ed852e2009-09-05 21:47:34 +00007491 # Broken: fails on valid input.
7492continue
7493fi
cristyda16f162011-02-19 23:52:17 +00007494rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007495
7496 # OK, works on sane cases. Now check whether nonexistent headers
7497 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007499/* end confdefs.h. */
7500#include <ac_nonexistent.h>
7501_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007502if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007503 # Broken: success on invalid input.
7504continue
7505else
cristy3ed852e2009-09-05 21:47:34 +00007506 # Passes both tests.
7507ac_preproc_ok=:
7508break
7509fi
cristyda16f162011-02-19 23:52:17 +00007510rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007511
7512done
7513# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007514rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007515if $ac_preproc_ok; then :
7516
cristy3ed852e2009-09-05 21:47:34 +00007517else
cristy8b350f62009-11-15 23:12:43 +00007518 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007519$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00007520as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7521See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007522fi
7523
7524ac_ext=c
7525ac_cpp='$CPP $CPPFLAGS'
7526ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7527ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7528ac_compiler_gnu=$ac_cv_c_compiler_gnu
7529
cristy73bd4a52010-10-05 11:24:23 +00007530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7531$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007532if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007533 $as_echo_n "(cached) " >&6
7534else
7535 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7536 for ac_i in 1 2 3 4 5 6 7; do
7537 ac_script="$ac_script$as_nl$ac_script"
7538 done
7539 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7540 { ac_script=; unset ac_script;}
7541 if test -z "$SED"; then
7542 ac_path_SED_found=false
7543 # Loop through the user's path and test for each of PROGNAME-LIST
7544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7545for as_dir in $PATH
7546do
7547 IFS=$as_save_IFS
7548 test -z "$as_dir" && as_dir=.
7549 for ac_prog in sed gsed; do
7550 for ac_exec_ext in '' $ac_executable_extensions; do
7551 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007552 as_fn_executable_p "$ac_path_SED" || continue
cristy73bd4a52010-10-05 11:24:23 +00007553# Check for GNU ac_path_SED and select it if it is found.
7554 # Check for GNU $ac_path_SED
7555case `"$ac_path_SED" --version 2>&1` in
7556*GNU*)
7557 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7558*)
7559 ac_count=0
7560 $as_echo_n 0123456789 >"conftest.in"
7561 while :
7562 do
7563 cat "conftest.in" "conftest.in" >"conftest.tmp"
7564 mv "conftest.tmp" "conftest.in"
7565 cp "conftest.in" "conftest.nl"
7566 $as_echo '' >> "conftest.nl"
7567 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7568 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7569 as_fn_arith $ac_count + 1 && ac_count=$as_val
7570 if test $ac_count -gt ${ac_path_SED_max-0}; then
7571 # Best one so far, save it but keep looking for a better one
7572 ac_cv_path_SED="$ac_path_SED"
7573 ac_path_SED_max=$ac_count
7574 fi
7575 # 10*(2^10) chars as input seems more than enough
7576 test $ac_count -gt 10 && break
7577 done
7578 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7579esac
7580
7581 $ac_path_SED_found && break 3
7582 done
7583 done
7584 done
7585IFS=$as_save_IFS
7586 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007587 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007588 fi
7589else
7590 ac_cv_path_SED=$SED
7591fi
7592
7593fi
7594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7595$as_echo "$ac_cv_path_SED" >&6; }
7596 SED="$ac_cv_path_SED"
7597 rm -f conftest.sed
7598
7599test -z "$SED" && SED=sed
7600Xsed="$SED -e 1s/^X//"
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7613$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007614if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007615 $as_echo_n "(cached) " >&6
7616else
7617 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7618 then ac_cv_path_FGREP="$GREP -F"
7619 else
7620 if test -z "$FGREP"; then
7621 ac_path_FGREP_found=false
7622 # Loop through the user's path and test for each of PROGNAME-LIST
7623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7624for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7625do
7626 IFS=$as_save_IFS
7627 test -z "$as_dir" && as_dir=.
7628 for ac_prog in fgrep; do
7629 for ac_exec_ext in '' $ac_executable_extensions; do
7630 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007631 as_fn_executable_p "$ac_path_FGREP" || continue
cristy73bd4a52010-10-05 11:24:23 +00007632# Check for GNU ac_path_FGREP and select it if it is found.
7633 # Check for GNU $ac_path_FGREP
7634case `"$ac_path_FGREP" --version 2>&1` in
7635*GNU*)
7636 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7637*)
7638 ac_count=0
7639 $as_echo_n 0123456789 >"conftest.in"
7640 while :
7641 do
7642 cat "conftest.in" "conftest.in" >"conftest.tmp"
7643 mv "conftest.tmp" "conftest.in"
7644 cp "conftest.in" "conftest.nl"
7645 $as_echo 'FGREP' >> "conftest.nl"
7646 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7647 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7648 as_fn_arith $ac_count + 1 && ac_count=$as_val
7649 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7650 # Best one so far, save it but keep looking for a better one
7651 ac_cv_path_FGREP="$ac_path_FGREP"
7652 ac_path_FGREP_max=$ac_count
7653 fi
7654 # 10*(2^10) chars as input seems more than enough
7655 test $ac_count -gt 10 && break
7656 done
7657 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7658esac
7659
7660 $ac_path_FGREP_found && break 3
7661 done
7662 done
7663 done
7664IFS=$as_save_IFS
7665 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007666 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007667 fi
7668else
7669 ac_cv_path_FGREP=$FGREP
7670fi
7671
7672 fi
7673fi
7674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7675$as_echo "$ac_cv_path_FGREP" >&6; }
7676 FGREP="$ac_cv_path_FGREP"
7677
7678
7679test -z "$GREP" && GREP=grep
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
cristy0c60a692010-11-04 01:09:47 +00007697ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7698ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7699ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7700
7701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7702$as_echo_n "checking how to print strings... " >&6; }
7703# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00007704if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00007705 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7706 ECHO='print -r --'
7707elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7708 ECHO='printf %s\n'
7709else
7710 # Use this function as a fallback that always works.
7711 func_fallback_echo ()
7712 {
7713 eval 'cat <<_LTECHO_EOF
7714$1
7715_LTECHO_EOF'
7716 }
7717 ECHO='func_fallback_echo'
7718fi
7719
7720# func_echo_all arg...
7721# Invoke $ECHO with all args, space-separated.
7722func_echo_all ()
7723{
7724 $ECHO ""
7725}
7726
7727case "$ECHO" in
7728 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7729$as_echo "printf" >&6; } ;;
7730 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7731$as_echo "print -r" >&6; } ;;
7732 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7733$as_echo "cat" >&6; } ;;
7734esac
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
cristy73bd4a52010-10-05 11:24:23 +00007749
7750
7751# Check whether --with-gnu-ld was given.
7752if test "${with_gnu_ld+set}" = set; then :
7753 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7754else
7755 with_gnu_ld=no
7756fi
7757
7758ac_prog=ld
7759if test "$GCC" = yes; then
7760 # Check if gcc -print-prog-name=ld gives a path.
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7762$as_echo_n "checking for ld used by $CC... " >&6; }
7763 case $host in
7764 *-*-mingw*)
7765 # gcc leaves a trailing carriage return which upsets mingw
7766 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7767 *)
7768 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7769 esac
7770 case $ac_prog in
7771 # Accept absolute paths.
7772 [\\/]* | ?:[\\/]*)
7773 re_direlt='/[^/][^/]*/\.\./'
7774 # Canonicalize the pathname of ld
7775 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7776 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7777 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7778 done
7779 test -z "$LD" && LD="$ac_prog"
7780 ;;
7781 "")
7782 # If it fails, then pretend we aren't using GCC.
7783 ac_prog=ld
7784 ;;
7785 *)
7786 # If it is relative, then search for the first ld in PATH.
7787 with_gnu_ld=unknown
7788 ;;
7789 esac
7790elif test "$with_gnu_ld" = yes; then
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7792$as_echo_n "checking for GNU ld... " >&6; }
7793else
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7795$as_echo_n "checking for non-GNU ld... " >&6; }
7796fi
cristyda16f162011-02-19 23:52:17 +00007797if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007798 $as_echo_n "(cached) " >&6
7799else
7800 if test -z "$LD"; then
7801 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7802 for ac_dir in $PATH; do
7803 IFS="$lt_save_ifs"
7804 test -z "$ac_dir" && ac_dir=.
7805 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7806 lt_cv_path_LD="$ac_dir/$ac_prog"
7807 # Check to see if the program is GNU ld. I'd rather use --version,
7808 # but apparently some variants of GNU ld only accept -v.
7809 # Break only if it was the GNU/non-GNU ld that we prefer.
7810 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7811 *GNU* | *'with BFD'*)
7812 test "$with_gnu_ld" != no && break
7813 ;;
7814 *)
7815 test "$with_gnu_ld" != yes && break
7816 ;;
7817 esac
7818 fi
7819 done
7820 IFS="$lt_save_ifs"
7821else
7822 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7823fi
7824fi
7825
7826LD="$lt_cv_path_LD"
7827if test -n "$LD"; then
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7829$as_echo "$LD" >&6; }
7830else
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7832$as_echo "no" >&6; }
7833fi
cristy98dddb52010-11-04 00:30:15 +00007834test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7836$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007837if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007838 $as_echo_n "(cached) " >&6
7839else
7840 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7841case `$LD -v 2>&1 </dev/null` in
7842*GNU* | *'with BFD'*)
7843 lt_cv_prog_gnu_ld=yes
7844 ;;
7845*)
7846 lt_cv_prog_gnu_ld=no
7847 ;;
7848esac
7849fi
7850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7851$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7852with_gnu_ld=$lt_cv_prog_gnu_ld
7853
7854
7855
7856
7857
7858
7859
7860
7861
cristy3ed852e2009-09-05 21:47:34 +00007862
cristy837d6dc2010-02-27 01:16:57 +00007863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7864$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007865if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00007866 $as_echo_n "(cached) " >&6
7867else
7868 ac_cv_prog_cc_c99=no
7869ac_save_CC=$CC
7870cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7871/* end confdefs.h. */
7872#include <stdarg.h>
7873#include <stdbool.h>
7874#include <stdlib.h>
7875#include <wchar.h>
7876#include <stdio.h>
7877
7878// Check varargs macros. These examples are taken from C99 6.10.3.5.
7879#define debug(...) fprintf (stderr, __VA_ARGS__)
7880#define showlist(...) puts (#__VA_ARGS__)
7881#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7882static void
7883test_varargs_macros (void)
7884{
7885 int x = 1234;
7886 int y = 5678;
7887 debug ("Flag");
7888 debug ("X = %d\n", x);
7889 showlist (The first, second, and third items.);
7890 report (x>y, "x is %d but y is %d", x, y);
7891}
7892
7893// Check long long types.
7894#define BIG64 18446744073709551615ull
7895#define BIG32 4294967295ul
7896#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7897#if !BIG_OK
7898 your preprocessor is broken;
7899#endif
7900#if BIG_OK
7901#else
7902 your preprocessor is broken;
7903#endif
7904static long long int bignum = -9223372036854775807LL;
7905static unsigned long long int ubignum = BIG64;
7906
7907struct incomplete_array
7908{
7909 int datasize;
7910 double data[];
7911};
7912
7913struct named_init {
7914 int number;
7915 const wchar_t *name;
7916 double average;
7917};
7918
7919typedef const char *ccp;
7920
7921static inline int
7922test_restrict (ccp restrict text)
7923{
7924 // See if C++-style comments work.
7925 // Iterate through items via the restricted pointer.
7926 // Also check for declarations in for loops.
7927 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7928 continue;
7929 return 0;
7930}
7931
7932// Check varargs and va_copy.
7933static void
7934test_varargs (const char *format, ...)
7935{
7936 va_list args;
7937 va_start (args, format);
7938 va_list args_copy;
7939 va_copy (args_copy, args);
7940
7941 const char *str;
7942 int number;
7943 float fnumber;
7944
7945 while (*format)
7946 {
7947 switch (*format++)
7948 {
7949 case 's': // string
7950 str = va_arg (args_copy, const char *);
7951 break;
7952 case 'd': // int
7953 number = va_arg (args_copy, int);
7954 break;
7955 case 'f': // float
7956 fnumber = va_arg (args_copy, double);
7957 break;
7958 default:
7959 break;
7960 }
7961 }
7962 va_end (args_copy);
7963 va_end (args);
7964}
7965
7966int
7967main ()
7968{
7969
7970 // Check bool.
7971 _Bool success = false;
7972
7973 // Check restrict.
7974 if (test_restrict ("String literal") == 0)
7975 success = true;
7976 char *restrict newvar = "Another string";
7977
7978 // Check varargs.
7979 test_varargs ("s, d' f .", "string", 65, 34.234);
7980 test_varargs_macros ();
7981
7982 // Check flexible array members.
7983 struct incomplete_array *ia =
7984 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7985 ia->datasize = 10;
7986 for (int i = 0; i < ia->datasize; ++i)
7987 ia->data[i] = i * 1.234;
7988
7989 // Check named initializers.
7990 struct named_init ni = {
7991 .number = 34,
7992 .name = L"Test wide string",
7993 .average = 543.34343,
7994 };
7995
7996 ni.number = 58;
7997
7998 int dynamic_array[ni.number];
7999 dynamic_array[ni.number - 1] = 543;
8000
8001 // work around unused variable warnings
8002 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
8003 || dynamic_array[ni.number - 1] != 543);
8004
8005 ;
8006 return 0;
8007}
8008_ACEOF
cristy14fefe52012-05-21 00:59:18 +00008009for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy837d6dc2010-02-27 01:16:57 +00008010do
8011 CC="$ac_save_CC $ac_arg"
8012 if ac_fn_c_try_compile "$LINENO"; then :
8013 ac_cv_prog_cc_c99=$ac_arg
8014fi
8015rm -f core conftest.err conftest.$ac_objext
8016 test "x$ac_cv_prog_cc_c99" != "xno" && break
8017done
8018rm -f conftest.$ac_ext
8019CC=$ac_save_CC
8020
8021fi
8022# AC_CACHE_VAL
8023case "x$ac_cv_prog_cc_c99" in
8024 x)
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
8026$as_echo "none needed" >&6; } ;;
8027 xno)
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
8029$as_echo "unsupported" >&6; } ;;
8030 *)
8031 CC="$CC $ac_cv_prog_cc_c99"
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
8033$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
8034esac
8035if test "x$ac_cv_prog_cc_c99" != xno; then :
8036
8037fi
8038
8039
cristy73bd4a52010-10-05 11:24:23 +00008040
cristy17491be2014-06-24 01:10:53 +00008041ac_ext=c
8042ac_cpp='$CPP $CPPFLAGS'
8043ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8044ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8045ac_compiler_gnu=$ac_cv_c_compiler_gnu
8046
cristy73bd4a52010-10-05 11:24:23 +00008047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
8048$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008049if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008050 $as_echo_n "(cached) " >&6
8051else
8052 ac_cv_cflags_warn_all="no, unknown"
cristy17491be2014-06-24 01:10:53 +00008053ac_save_CFLAGS="$CFLAGS"
8054for 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 +00008055do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
8056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8057/* end confdefs.h. */
8058
8059int
8060main ()
8061{
cristy24fc1fe2010-10-23 21:13:01 +00008062
cristy73bd4a52010-10-05 11:24:23 +00008063 ;
8064 return 0;
8065}
8066_ACEOF
8067if ac_fn_c_try_compile "$LINENO"; then :
8068 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
8069fi
8070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8071done
cristy17491be2014-06-24 01:10:53 +00008072CFLAGS="$ac_save_CFLAGS"
8073
8074fi
8075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
8076$as_echo "$ac_cv_cflags_warn_all" >&6; }
8077
8078
8079case ".$ac_cv_cflags_warn_all" in
8080 .ok|.ok,*) ;;
8081 .|.no|.no,*) ;;
8082 *) if ${CFLAGS+:} false; then :
8083 case " $CFLAGS " in
8084 *" $ac_cv_cflags_warn_all "*)
8085 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
8086 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
8087 ac_status=$?
8088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8089 test $ac_status = 0; }
8090 ;;
8091 *)
8092 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
8093 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
8094 ac_status=$?
8095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8096 test $ac_status = 0; }
8097 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
8098 ;;
8099 esac
8100else
8101 CFLAGS="$ac_cv_cflags_warn_all"
8102fi
8103 ;;
8104esac
8105
8106ac_ext=c
cristy73bd4a52010-10-05 11:24:23 +00008107ac_cpp='$CPP $CPPFLAGS'
8108ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8109ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8110ac_compiler_gnu=$ac_cv_c_compiler_gnu
8111
8112
cristya0b81c32010-01-22 02:54:33 +00008113
8114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8115$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8116set x ${MAKE-make}
8117ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00008118if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00008119 $as_echo_n "(cached) " >&6
8120else
8121 cat >conftest.make <<\_ACEOF
8122SHELL = /bin/sh
8123all:
8124 @echo '@@@%%%=$(MAKE)=@@@%%%'
8125_ACEOF
cristy98dddb52010-11-04 00:30:15 +00008126# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00008127case `${MAKE-make} -f conftest.make 2>/dev/null` in
8128 *@@@%%%=?*=@@@%%%*)
8129 eval ac_cv_prog_make_${ac_make}_set=yes;;
8130 *)
8131 eval ac_cv_prog_make_${ac_make}_set=no;;
8132esac
8133rm -f conftest.make
8134fi
8135if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8137$as_echo "yes" >&6; }
8138 SET_MAKE=
8139else
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8141$as_echo "no" >&6; }
8142 SET_MAKE="MAKE=${MAKE-make}"
8143fi
8144
cristy8b350f62009-11-15 23:12:43 +00008145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00008146$as_echo_n "checking whether ln -s works... " >&6; }
8147LN_S=$as_ln_s
8148if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00008149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00008150$as_echo "yes" >&6; }
8151else
cristy8b350f62009-11-15 23:12:43 +00008152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00008153$as_echo "no, using $LN_S" >&6; }
8154fi
8155
cristy8d0ff762013-03-10 20:33:28 +00008156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8157$as_echo_n "checking for a sed that does not truncate output... " >&6; }
8158if ${ac_cv_path_SED+:} false; then :
8159 $as_echo_n "(cached) " >&6
8160else
8161 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8162 for ac_i in 1 2 3 4 5 6 7; do
8163 ac_script="$ac_script$as_nl$ac_script"
8164 done
8165 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8166 { ac_script=; unset ac_script;}
8167 if test -z "$SED"; then
8168 ac_path_SED_found=false
8169 # Loop through the user's path and test for each of PROGNAME-LIST
8170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8171for as_dir in $PATH
8172do
8173 IFS=$as_save_IFS
8174 test -z "$as_dir" && as_dir=.
8175 for ac_prog in sed gsed; do
8176 for ac_exec_ext in '' $ac_executable_extensions; do
8177 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8178 as_fn_executable_p "$ac_path_SED" || continue
8179# Check for GNU ac_path_SED and select it if it is found.
8180 # Check for GNU $ac_path_SED
8181case `"$ac_path_SED" --version 2>&1` in
8182*GNU*)
8183 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8184*)
8185 ac_count=0
8186 $as_echo_n 0123456789 >"conftest.in"
8187 while :
8188 do
8189 cat "conftest.in" "conftest.in" >"conftest.tmp"
8190 mv "conftest.tmp" "conftest.in"
8191 cp "conftest.in" "conftest.nl"
8192 $as_echo '' >> "conftest.nl"
8193 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8194 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8195 as_fn_arith $ac_count + 1 && ac_count=$as_val
8196 if test $ac_count -gt ${ac_path_SED_max-0}; then
8197 # Best one so far, save it but keep looking for a better one
8198 ac_cv_path_SED="$ac_path_SED"
8199 ac_path_SED_max=$ac_count
8200 fi
8201 # 10*(2^10) chars as input seems more than enough
8202 test $ac_count -gt 10 && break
8203 done
8204 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8205esac
8206
8207 $ac_path_SED_found && break 3
8208 done
8209 done
8210 done
8211IFS=$as_save_IFS
8212 if test -z "$ac_cv_path_SED"; then
8213 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8214 fi
8215else
8216 ac_cv_path_SED=$SED
8217fi
8218
8219fi
8220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8221$as_echo "$ac_cv_path_SED" >&6; }
8222 SED="$ac_cv_path_SED"
8223 rm -f conftest.sed
8224
cristybc556452012-08-17 19:44:03 +00008225for ac_prog in gawk mawk nawk awk
8226do
8227 # Extract the first word of "$ac_prog", so it can be a program name with args.
8228set dummy $ac_prog; ac_word=$2
8229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8230$as_echo_n "checking for $ac_word... " >&6; }
8231if ${ac_cv_prog_AWK+:} false; then :
8232 $as_echo_n "(cached) " >&6
8233else
8234 if test -n "$AWK"; then
8235 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8236else
8237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8238for as_dir in $PATH
8239do
8240 IFS=$as_save_IFS
8241 test -z "$as_dir" && as_dir=.
8242 for ac_exec_ext in '' $ac_executable_extensions; do
8243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8244 ac_cv_prog_AWK="$ac_prog"
8245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8246 break 2
8247 fi
8248done
8249 done
8250IFS=$as_save_IFS
8251
8252fi
8253fi
8254AWK=$ac_cv_prog_AWK
8255if test -n "$AWK"; then
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8257$as_echo "$AWK" >&6; }
8258else
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8260$as_echo "no" >&6; }
8261fi
8262
8263
8264 test -n "$AWK" && break
8265done
8266
cristy73bd4a52010-10-05 11:24:23 +00008267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
8268$as_echo_n "checking if malloc debugging is wanted... " >&6; }
8269
8270# Check whether --with-dmalloc was given.
8271if test "${with_dmalloc+set}" = set; then :
8272 withval=$with_dmalloc; if test "$withval" = yes; then
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8274$as_echo "yes" >&6; }
8275
8276$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
8277
8278 LIBS="$LIBS -ldmalloc"
8279 LDFLAGS="$LDFLAGS -g"
8280else
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8282$as_echo "no" >&6; }
8283fi
8284else
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8286$as_echo "no" >&6; }
8287fi
8288
8289
8290
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
8292$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008293if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008294 $as_echo_n "(cached) " >&6
8295else
8296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8297/* end confdefs.h. */
8298#include <stdlib.h>
cristy73380532012-02-18 20:26:28 +00008299 static void foo(void) __attribute__ ((__unused__));
cristy73bd4a52010-10-05 11:24:23 +00008300 static void
8301 foo(void) {
8302 exit(1);
8303 }
8304
8305int
8306main ()
8307{
8308
8309 ;
8310 return 0;
8311}
8312_ACEOF
8313if ac_fn_c_try_compile "$LINENO"; then :
8314 ax_cv___attribute__=yes
8315else
8316 ax_cv___attribute__=no
8317
8318fi
8319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8320
8321fi
8322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
8323$as_echo "$ax_cv___attribute__" >&6; }
8324 if test "$ax_cv___attribute__" = "yes"; then
8325
8326$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
8327
8328 fi
8329
8330
8331
cristya0459972013-11-03 18:09:35 +00008332
8333
cristy17491be2014-06-24 01:10:53 +00008334
cristya0459972013-11-03 18:09:35 +00008335# Check whether --with-gcc-arch was given.
8336if test "${with_gcc_arch+set}" = set; then :
8337 withval=$with_gcc_arch; ax_gcc_arch=$withval
8338else
cristy17491be2014-06-24 01:10:53 +00008339 ax_gcc_arch=yes
cristya0459972013-11-03 18:09:35 +00008340fi
8341
8342
8343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8344$as_echo_n "checking for gcc architecture flag... " >&6; }
8345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8346$as_echo "" >&6; }
8347if ${ax_cv_gcc_archflag+:} false; then :
8348 $as_echo_n "(cached) " >&6
8349else
8350
8351ax_cv_gcc_archflag="unknown"
8352
8353if test "$GCC" = yes; then
8354
8355if test "x$ax_gcc_arch" = xyes; then
8356ax_gcc_arch=""
8357if test "$cross_compiling" = no; then
8358case $host_cpu in
cristy17491be2014-06-24 01:10:53 +00008359 i[3456]86*|x86_64*|amd64*) # use cpuid codes
cristya0459972013-11-03 18:09:35 +00008360
8361ac_ext=c
8362ac_cpp='$CPP $CPPFLAGS'
8363ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8364ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8365ac_compiler_gnu=$ac_cv_c_compiler_gnu
8366
8367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
8368$as_echo_n "checking for x86 cpuid 0 output... " >&6; }
8369if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
8370 $as_echo_n "(cached) " >&6
8371else
8372 if test "$cross_compiling" = yes; then :
8373 ax_cv_gcc_x86_cpuid_0=unknown
8374else
8375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8376/* end confdefs.h. */
8377#include <stdio.h>
8378int
8379main ()
8380{
8381
8382 int op = 0, eax, ebx, ecx, edx;
8383 FILE *f;
8384 __asm__("cpuid"
8385 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8386 : "a" (op));
8387 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8388 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8389 fclose(f);
8390 return 0;
8391
8392 ;
8393 return 0;
8394}
8395_ACEOF
8396if ac_fn_c_try_run "$LINENO"; then :
8397 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
8398else
8399 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
8400fi
8401rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8402 conftest.$ac_objext conftest.beam conftest.$ac_ext
8403fi
8404
8405fi
8406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
8407$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
8408ac_ext=c
8409ac_cpp='$CPP $CPPFLAGS'
8410ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8411ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8412ac_compiler_gnu=$ac_cv_c_compiler_gnu
8413
8414
8415
8416ac_ext=c
8417ac_cpp='$CPP $CPPFLAGS'
8418ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8419ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8420ac_compiler_gnu=$ac_cv_c_compiler_gnu
8421
8422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
8423$as_echo_n "checking for x86 cpuid 1 output... " >&6; }
8424if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
8425 $as_echo_n "(cached) " >&6
8426else
8427 if test "$cross_compiling" = yes; then :
8428 ax_cv_gcc_x86_cpuid_1=unknown
8429else
8430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8431/* end confdefs.h. */
8432#include <stdio.h>
8433int
8434main ()
8435{
8436
8437 int op = 1, eax, ebx, ecx, edx;
8438 FILE *f;
8439 __asm__("cpuid"
8440 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8441 : "a" (op));
8442 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8443 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8444 fclose(f);
8445 return 0;
8446
8447 ;
8448 return 0;
8449}
8450_ACEOF
8451if ac_fn_c_try_run "$LINENO"; then :
8452 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
8453else
8454 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
8455fi
8456rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8457 conftest.$ac_objext conftest.beam conftest.$ac_ext
8458fi
8459
8460fi
8461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
8462$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
8463ac_ext=c
8464ac_cpp='$CPP $CPPFLAGS'
8465ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8466ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8467ac_compiler_gnu=$ac_cv_c_compiler_gnu
8468
8469
8470 case $ax_cv_gcc_x86_cpuid_0 in
8471 *:756e6547:*:*) # Intel
8472 case $ax_cv_gcc_x86_cpuid_1 in
8473 *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
8474 *5??:*:*:*) ax_gcc_arch=pentium ;;
cristya0459972013-11-03 18:09:35 +00008475 *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
8476 *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) ax_gcc_arch="corei7 core2 pentium-m pentium3 pentiumpro" ;;
8477 *1?6c?:*:*:*|*[23]?66?:*:*:*) ax_gcc_arch="atom core2 pentium-m pentium3 pentiumpro" ;;
8478 *2?6[ad]?:*:*:*) ax_gcc_arch="corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
cristy17491be2014-06-24 01:10:53 +00008479 *[1-9a-f]?6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
8480 *6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8481 *6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8482 *6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8483 *6[9de]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
8484 *6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8485 *6f?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
8486 *6??:*:*:*) ax_gcc_arch=pentiumpro ;;
8487 *f3[347]:*:*:*|*f41347:*:*:*|*f6?:*:*:*)
cristya0459972013-11-03 18:09:35 +00008488 case $host_cpu in
8489 x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
8490 *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
8491 esac ;;
cristy17491be2014-06-24 01:10:53 +00008492 *f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
cristya0459972013-11-03 18:09:35 +00008493 esac ;;
8494 *:68747541:*:*) # AMD
8495 case $ax_cv_gcc_x86_cpuid_1 in
8496 *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
8497 *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
8498 *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
8499 *60?:*:*:*) ax_gcc_arch=k7 ;;
8500 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
8501 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
8502 *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
8503 *6[68a]?:*:*:*)
8504
8505ac_ext=c
8506ac_cpp='$CPP $CPPFLAGS'
8507ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8508ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8509ac_compiler_gnu=$ac_cv_c_compiler_gnu
8510
8511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5
8512$as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; }
8513if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then :
8514 $as_echo_n "(cached) " >&6
8515else
8516 if test "$cross_compiling" = yes; then :
8517 ax_cv_gcc_x86_cpuid_0x80000006=unknown
8518else
8519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8520/* end confdefs.h. */
8521#include <stdio.h>
8522int
8523main ()
8524{
8525
8526 int op = 0x80000006, eax, ebx, ecx, edx;
8527 FILE *f;
8528 __asm__("cpuid"
8529 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8530 : "a" (op));
8531 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8532 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8533 fclose(f);
8534 return 0;
8535
8536 ;
8537 return 0;
8538}
8539_ACEOF
8540if ac_fn_c_try_run "$LINENO"; then :
8541 ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid
8542else
8543 ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid
8544fi
8545rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8546 conftest.$ac_objext conftest.beam conftest.$ac_ext
8547fi
8548
8549fi
8550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5
8551$as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; }
8552ac_ext=c
8553ac_cpp='$CPP $CPPFLAGS'
8554ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8555ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8556ac_compiler_gnu=$ac_cv_c_compiler_gnu
8557
8558 # L2 cache size
8559 case $ax_cv_gcc_x86_cpuid_0x80000006 in
8560 *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256
8561 ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
8562 *) ax_gcc_arch="athlon-4 athlon k7" ;;
8563 esac ;;
cristy17491be2014-06-24 01:10:53 +00008564 *5??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
8565 *6??f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
8566 *[1-9a-f]??f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
8567 *f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
8568 *f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
8569 *f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
8570 *f??:*:*:*) ax_gcc_arch="k8" ;;
cristya0459972013-11-03 18:09:35 +00008571 esac ;;
8572 *:746e6543:*:*) # IDT
8573 case $ax_cv_gcc_x86_cpuid_1 in
8574 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
8575 *58?:*:*:*) ax_gcc_arch=winchip2 ;;
8576 *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
8577 *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
8578 esac ;;
8579 esac
8580 if test x"$ax_gcc_arch" = x; then # fallback
8581 case $host_cpu in
8582 i586*) ax_gcc_arch=pentium ;;
8583 i686*) ax_gcc_arch=pentiumpro ;;
8584 esac
8585 fi
8586 ;;
8587
8588 sparc*)
8589 # Extract the first word of "prtdiag", so it can be a program name with args.
8590set dummy prtdiag; ac_word=$2
8591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8592$as_echo_n "checking for $ac_word... " >&6; }
8593if ${ac_cv_path_PRTDIAG+:} false; then :
8594 $as_echo_n "(cached) " >&6
8595else
8596 case $PRTDIAG in
8597 [\\/]* | ?:[\\/]*)
8598 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
8599 ;;
8600 *)
8601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8602as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
8603for as_dir in $as_dummy
8604do
8605 IFS=$as_save_IFS
8606 test -z "$as_dir" && as_dir=.
8607 for ac_exec_ext in '' $ac_executable_extensions; do
8608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8609 ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
8610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8611 break 2
8612 fi
8613done
8614 done
8615IFS=$as_save_IFS
8616
8617 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
8618 ;;
8619esac
8620fi
8621PRTDIAG=$ac_cv_path_PRTDIAG
8622if test -n "$PRTDIAG"; then
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
8624$as_echo "$PRTDIAG" >&6; }
8625else
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8627$as_echo "no" >&6; }
8628fi
8629
8630
8631 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 +00008632 cputype=`echo "$cputype" | tr -d ' -' | $SED 's/SPARCIIi/SPARCII/' |tr $as_cr_LETTERS $as_cr_letters`
cristya0459972013-11-03 18:09:35 +00008633 case $cputype in
8634 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
8635 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
8636 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
8637 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
8638 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
8639 *cypress*) ax_gcc_arch=cypress ;;
8640 esac ;;
8641
8642 alphaev5) ax_gcc_arch=ev5 ;;
8643 alphaev56) ax_gcc_arch=ev56 ;;
8644 alphapca56) ax_gcc_arch="pca56 ev56" ;;
8645 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
8646 alphaev6) ax_gcc_arch=ev6 ;;
8647 alphaev67) ax_gcc_arch=ev67 ;;
8648 alphaev68) ax_gcc_arch="ev68 ev67" ;;
8649 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
8650 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
8651 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
8652
8653 powerpc*)
cristy17491be2014-06-24 01:10:53 +00008654 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`
8655 cputype=`echo $cputype | $SED -e 's/ppc//g;s/ *//g'`
cristya0459972013-11-03 18:09:35 +00008656 case $cputype in
8657 *750*) ax_gcc_arch="750 G3" ;;
8658 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
8659 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
8660 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
8661 *970*) ax_gcc_arch="970 G5 power4";;
8662 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
8663 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
8664 603ev|8240) ax_gcc_arch="$cputype 603e 603";;
8665 *) ax_gcc_arch=$cputype ;;
8666 esac
8667 ax_gcc_arch="$ax_gcc_arch powerpc"
8668 ;;
8669esac
8670fi # not cross-compiling
8671fi # guess arch
8672
8673if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
8674for arch in $ax_gcc_arch; do
8675 if test "xno" = xyes; then # if we require portable code
8676 flags="-mtune=$arch"
8677 # -mcpu=$arch and m$arch generate nonportable code on every arch except
8678 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr.
8679 case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
8680 else
8681 flags="-march=$arch -mcpu=$arch -m$arch"
8682 fi
8683 for flag in $flags; do
8684 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
8685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
8686$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
8687if eval \${$as_CACHEVAR+:} false; then :
8688 $as_echo_n "(cached) " >&6
8689else
8690
8691 ax_check_save_flags=$CFLAGS
8692 CFLAGS="$CFLAGS $flag"
8693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8694/* end confdefs.h. */
8695
8696int
8697main ()
8698{
8699
8700 ;
8701 return 0;
8702}
8703_ACEOF
8704if ac_fn_c_try_compile "$LINENO"; then :
8705 eval "$as_CACHEVAR=yes"
8706else
8707 eval "$as_CACHEVAR=no"
8708fi
8709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8710 CFLAGS=$ax_check_save_flags
8711fi
8712eval ac_res=\$$as_CACHEVAR
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8714$as_echo "$ac_res" >&6; }
8715if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
8716 ax_cv_gcc_archflag=$flag; break
8717else
8718 :
8719fi
8720
8721 done
8722 test "x$ax_cv_gcc_archflag" = xunknown || break
8723done
8724fi
8725
8726fi # $GCC=yes
8727
8728fi
8729
8730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8731$as_echo_n "checking for gcc architecture flag... " >&6; }
8732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
8733$as_echo "$ax_cv_gcc_archflag" >&6; }
8734if test "x$ax_cv_gcc_archflag" = xunknown; then
8735 :
8736else
8737 CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
8738fi
8739
8740
8741
cristy73bd4a52010-10-05 11:24:23 +00008742if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8743 if test -n "$ac_tool_prefix"; then
8744 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8745set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8747$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008748if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008749 $as_echo_n "(cached) " >&6
8750else
8751 case $PKG_CONFIG in
8752 [\\/]* | ?:[\\/]*)
8753 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8754 ;;
8755 *)
8756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8757for as_dir in $PATH
8758do
8759 IFS=$as_save_IFS
8760 test -z "$as_dir" && as_dir=.
8761 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008763 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8765 break 2
8766 fi
8767done
8768 done
8769IFS=$as_save_IFS
8770
8771 ;;
8772esac
8773fi
8774PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8775if test -n "$PKG_CONFIG"; then
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8777$as_echo "$PKG_CONFIG" >&6; }
8778else
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8780$as_echo "no" >&6; }
8781fi
8782
8783
8784fi
8785if test -z "$ac_cv_path_PKG_CONFIG"; then
8786 ac_pt_PKG_CONFIG=$PKG_CONFIG
8787 # Extract the first word of "pkg-config", so it can be a program name with args.
8788set dummy pkg-config; ac_word=$2
8789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8790$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008791if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008792 $as_echo_n "(cached) " >&6
8793else
8794 case $ac_pt_PKG_CONFIG in
8795 [\\/]* | ?:[\\/]*)
8796 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8797 ;;
8798 *)
8799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8800for as_dir in $PATH
8801do
8802 IFS=$as_save_IFS
8803 test -z "$as_dir" && as_dir=.
8804 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008806 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8808 break 2
8809 fi
8810done
8811 done
8812IFS=$as_save_IFS
8813
8814 ;;
8815esac
8816fi
8817ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8818if test -n "$ac_pt_PKG_CONFIG"; then
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8820$as_echo "$ac_pt_PKG_CONFIG" >&6; }
8821else
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8823$as_echo "no" >&6; }
8824fi
8825
8826 if test "x$ac_pt_PKG_CONFIG" = x; then
8827 PKG_CONFIG=""
8828 else
8829 case $cross_compiling:$ac_tool_warned in
8830yes:)
8831{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8832$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8833ac_tool_warned=yes ;;
8834esac
8835 PKG_CONFIG=$ac_pt_PKG_CONFIG
8836 fi
8837else
8838 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8839fi
8840
8841fi
8842if test -n "$PKG_CONFIG"; then
8843 _pkg_min_version=0.9.0
8844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8845$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8846 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8848$as_echo "yes" >&6; }
8849 else
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8851$as_echo "no" >&6; }
8852 PKG_CONFIG=""
8853 fi
8854
8855fi
cristy3ed852e2009-09-05 21:47:34 +00008856
cristyd95b7a52013-10-23 13:12:53 +00008857# Test for 64-bit build.
8858# The cast to long int works around a bug in the HP C Compiler
8859# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8860# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8861# This bug is HP SR number 8606223364.
8862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
8863$as_echo_n "checking size of size_t... " >&6; }
8864if ${ac_cv_sizeof_size_t+:} false; then :
8865 $as_echo_n "(cached) " >&6
8866else
8867 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
8868
8869else
8870 if test "$ac_cv_type_size_t" = yes; then
8871 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8872$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8873as_fn_error 77 "cannot compute sizeof (size_t)
8874See \`config.log' for more details" "$LINENO" 5; }
8875 else
8876 ac_cv_sizeof_size_t=0
8877 fi
8878fi
8879
8880fi
8881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
8882$as_echo "$ac_cv_sizeof_size_t" >&6; }
8883
8884
8885
8886cat >>confdefs.h <<_ACEOF
8887#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
8888_ACEOF
8889
8890
8891
8892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
8893$as_echo_n "checking for C compiler vendor... " >&6; }
8894if ${ax_cv_c_compiler_vendor+:} false; then :
8895 $as_echo_n "(cached) " >&6
8896else
8897 # note: don't check for gcc first since some other compilers define __GNUC__
8898 vendors="intel: __ICC,__ECC,__INTEL_COMPILER
8899 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__
8900 pathscale: __PATHCC__,__PATHSCALE__
8901 clang: __clang__
cristy17491be2014-06-24 01:10:53 +00008902 fujitsu: __FUJITSU
cristyd95b7a52013-10-23 13:12:53 +00008903 gnu: __GNUC__
8904 sun: __SUNPRO_C,__SUNPRO_CC
8905 hp: __HP_cc,__HP_aCC
8906 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
8907 borland: __BORLANDC__,__TURBOC__
8908 comeau: __COMO__
8909 cray: _CRAYC
8910 kai: __KCC
8911 lcc: __LCC__
8912 sgi: __sgi,sgi
8913 microsoft: _MSC_VER
8914 metrowerks: __MWERKS__
8915 watcom: __WATCOMC__
8916 portland: __PGI
8917 unknown: UNKNOWN"
8918 for ventest in $vendors; do
8919 case $ventest in
8920 *:) vendor=$ventest; continue ;;
8921 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
8922 esac
8923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8924/* end confdefs.h. */
8925
8926int
8927main ()
8928{
8929
8930 #if !($vencpp)
8931 thisisanerror;
8932 #endif
8933
8934 ;
8935 return 0;
8936}
8937_ACEOF
8938if ac_fn_c_try_compile "$LINENO"; then :
8939 break
8940fi
8941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8942 done
8943 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
8944
8945fi
8946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
8947$as_echo "$ax_cv_c_compiler_vendor" >&6; }
8948
cristyd95b7a52013-10-23 13:12:53 +00008949# The AX_CFLAGS_WARN_ALL macro doesn't currently work for sunpro
8950# compiler.
8951if test "$ax_cv_c_compiler_vendor" != "sun"; then
cristy17491be2014-06-24 01:10:53 +00008952 ac_ext=c
cristyd95b7a52013-10-23 13:12:53 +00008953ac_cpp='$CPP $CPPFLAGS'
8954ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8955ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8956ac_compiler_gnu=$ac_cv_c_compiler_gnu
8957
cristy17491be2014-06-24 01:10:53 +00008958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
8959$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
8960if ${ac_cv_cflags_warn_all+:} false; then :
8961 $as_echo_n "(cached) " >&6
8962else
8963 ac_cv_cflags_warn_all="no, unknown"
8964ac_save_CFLAGS="$CFLAGS"
8965for 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 +00008966do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
8967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8968/* end confdefs.h. */
8969
8970int
8971main ()
8972{
8973
8974 ;
8975 return 0;
8976}
8977_ACEOF
8978if ac_fn_c_try_compile "$LINENO"; then :
8979 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
8980fi
8981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8982done
cristy17491be2014-06-24 01:10:53 +00008983CFLAGS="$ac_save_CFLAGS"
8984
8985fi
8986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
8987$as_echo "$ac_cv_cflags_warn_all" >&6; }
8988
8989
8990case ".$ac_cv_cflags_warn_all" in
8991 .ok|.ok,*) ;;
8992 .|.no|.no,*) ;;
8993 *) if ${CFLAGS+:} false; then :
8994 case " $CFLAGS " in
8995 *" $ac_cv_cflags_warn_all "*)
8996 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
8997 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
8998 ac_status=$?
8999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9000 test $ac_status = 0; }
9001 ;;
9002 *)
9003 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
9004 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
9005 ac_status=$?
9006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9007 test $ac_status = 0; }
9008 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
9009 ;;
9010 esac
9011else
9012 CFLAGS="$ac_cv_cflags_warn_all"
9013fi
9014 ;;
9015esac
9016
9017ac_ext=c
cristyd95b7a52013-10-23 13:12:53 +00009018ac_cpp='$CPP $CPPFLAGS'
9019ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9020ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9021ac_compiler_gnu=$ac_cv_c_compiler_gnu
9022
9023
9024fi
cristyd95b7a52013-10-23 13:12:53 +00009025
9026if test "x$GCC" = "xyes"; then
9027 CFLAGS="$CFLAGS -fexceptions"
9028 touch local.exp
9029else
9030 cat > local.exp <<EOF
9031set CC_FOR_TARGET "$CC"
9032EOF
9033fi
9034
cristy9b86f202012-11-28 21:55:35 +00009035# Check for linker script support
9036
9037 # Check whether --enable-ld-version-script was given.
9038if test "${enable_ld_version_script+set}" = set; then :
9039 enableval=$enable_ld_version_script; have_ld_version_script=$enableval
9040fi
9041
9042 if test -z "$have_ld_version_script"; then
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
9044$as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
9045 save_LDFLAGS="$LDFLAGS"
9046 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
9047 cat > conftest.map <<EOF
9048foo
9049EOF
9050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9051/* end confdefs.h. */
9052
9053int
9054main ()
9055{
9056
9057 ;
9058 return 0;
9059}
9060_ACEOF
9061if ac_fn_c_try_link "$LINENO"; then :
9062 accepts_syntax_errors=yes
9063else
9064 accepts_syntax_errors=no
9065fi
9066rm -f core conftest.err conftest.$ac_objext \
9067 conftest$ac_exeext conftest.$ac_ext
9068 if test "$accepts_syntax_errors" = no; then
9069 cat > conftest.map <<EOF
9070VERS_1 {
9071 global: sym;
9072};
9073
9074VERS_2 {
9075 global: sym;
9076} VERS_1;
9077EOF
9078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9079/* end confdefs.h. */
9080
9081int
9082main ()
9083{
9084
9085 ;
9086 return 0;
9087}
9088_ACEOF
9089if ac_fn_c_try_link "$LINENO"; then :
9090 have_ld_version_script=yes
9091else
9092 have_ld_version_script=no
9093fi
9094rm -f core conftest.err conftest.$ac_objext \
9095 conftest$ac_exeext conftest.$ac_ext
9096 else
9097 have_ld_version_script=no
9098 fi
9099 rm -f conftest.map
9100 LDFLAGS="$save_LDFLAGS"
9101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
9102$as_echo "$have_ld_version_script" >&6; }
9103 fi
9104 if test "$have_ld_version_script" = "yes"; then
9105 HAVE_LD_VERSION_SCRIPT_TRUE=
9106 HAVE_LD_VERSION_SCRIPT_FALSE='#'
9107else
9108 HAVE_LD_VERSION_SCRIPT_TRUE='#'
9109 HAVE_LD_VERSION_SCRIPT_FALSE=
9110fi
9111
9112
9113
cristy3ed852e2009-09-05 21:47:34 +00009114#
cristy3ed852e2009-09-05 21:47:34 +00009115# Enable run-time checking.
9116#
9117# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00009118if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009119 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
9120else
9121 enable_bounds_checking='no'
9122fi
9123
9124
9125if test "$enable_bounds_checking" = yes; then
9126
cristy8b350f62009-11-15 23:12:43 +00009127$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009128
9129fi
9130
9131#
9132# Tests for Windows
9133#
9134
9135
9136
9137GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00009138native_win32_build='no'
9139cygwin_build='no'
9140case "${host_os}" in
9141 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00009142 cygwin_build='yes'
9143 GDI32_LIBS='-lgdi32'
9144 ;;
9145 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00009146 native_win32_build='yes'
9147 GDI32_LIBS='-lgdi32'
9148 ;;
9149esac
9150if test "${GDI32_LIBS}x" != 'x'; then
9151
cristy8b350f62009-11-15 23:12:43 +00009152$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009153
9154fi
9155
cristy73bd4a52010-10-05 11:24:23 +00009156 if test "${GDI32_LIBS}x" != 'x' ; then
9157 WINGDI32_DELEGATE_TRUE=
9158 WINGDI32_DELEGATE_FALSE='#'
9159else
9160 WINGDI32_DELEGATE_TRUE='#'
9161 WINGDI32_DELEGATE_FALSE=
9162fi
9163
9164 if test "${native_win32_build}" = 'yes' ; then
9165 WIN32_NATIVE_BUILD_TRUE=
9166 WIN32_NATIVE_BUILD_FALSE='#'
9167else
9168 WIN32_NATIVE_BUILD_TRUE='#'
9169 WIN32_NATIVE_BUILD_FALSE=
9170fi
9171
9172 if test "${cygwin_build}" = 'yes' ; then
9173 CYGWIN_BUILD_TRUE=
9174 CYGWIN_BUILD_FALSE='#'
9175else
9176 CYGWIN_BUILD_TRUE='#'
9177 CYGWIN_BUILD_FALSE=
9178fi
9179
9180 if test "x${CC}" = 'xcl.exe' ; then
9181 USING_CL_TRUE=
9182 USING_CL_FALSE='#'
9183else
9184 USING_CL_TRUE='#'
9185 USING_CL_FALSE=
9186fi
9187
cristy3ed852e2009-09-05 21:47:34 +00009188
9189WinPathScript="${srcdirfull}/winpath.sh"
9190
9191
9192#
9193# Compiler flags tweaks
9194#
9195if test "${GCC}" != "yes"; then
9196 case "${host}" in
9197 *-*-hpux* )
9198 # aCC: HP ANSI C++ B3910B A.03.34
9199 CFLAGS="${CFLAGS} -Wp,-H30000"
9200 if test -n "${CXXFLAGS}"; then
9201 CXXFLAGS='-AA'
9202 else
9203 CXXFLAGS="${CXXFLAGS} -AA"
9204 fi
9205 ;;
9206 *-dec-osf5.* )
9207 # Compaq alphaev68-dec-osf5.1 compiler
9208 if test -n "${CXXFLAGS}"; then
9209 CXXFLAGS='-std strict_ansi -noimplicit_include'
9210 else
9211 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
9212 fi
9213 esac
9214fi
9215
9216# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00009217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00009218$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009219if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009220 $as_echo_n "(cached) " >&6
9221else
9222
9223im_cv_ld_lazyload='none'
9224case "${host}" in
9225 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
9226 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
9227 im_cv_ld_lazyload='-Wl,-zlazyload'
9228 fi
9229 ;;
9230esac
9231
9232fi
cristy8b350f62009-11-15 23:12:43 +00009233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00009234$as_echo "$im_cv_ld_lazyload" >&6; }
9235if test "${im_cv_ld_lazyload}" != 'none' ; then
9236 if test -z "${LDFLAGS}" ; then
9237 LDFLAGS="${im_cv_ld_lazyload}"
9238 else
9239 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
9240 fi
9241fi
9242
9243case "$host" in
cristyc37574e2013-02-16 01:04:55 +00009244 *darwin* | *-macos10*)
cristyb3b90d32013-02-16 15:44:08 +00009245 CFLAGS="${CFLAGS} -D_FORTIFY_SOURCE=0"
cristyc37574e2013-02-16 01:04:55 +00009246 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00009247if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009248 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
9249else
9250 build_osxuniversal=no
9251fi
9252
9253
cristyc37574e2013-02-16 01:04:55 +00009254 if test "${build_osxuniversal}" != no ; then
9255 if test "$enable_dependency_tracking" != no ; then
9256 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00009257Please re-run configure with these options:
9258 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00009259 " "$LINENO" 5
cristyc37574e2013-02-16 01:04:55 +00009260 fi
9261 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9262 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9263 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
cristy3ed852e2009-09-05 21:47:34 +00009264 fi
9265 ;;
9266esac
9267
cristy0151ae12011-10-28 16:32:29 +00009268#
9269# ARCH specific include directory
9270#
9271
cristy670aa3c2011-11-03 00:54:00 +00009272# Check whether --with-includearch-dir was given.
9273if test "${with_includearch_dir+set}" = set; then :
9274 withval=$with_includearch_dir; includearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00009275else
cristy670aa3c2011-11-03 00:54:00 +00009276 includearch_dir=$INCLUDE_DIR
cristy0151ae12011-10-28 16:32:29 +00009277fi
9278
9279
cristyd286fd72013-02-24 19:25:33 +00009280eval "eval INCLUDEARCH_DIR=$includearch_dir"
cristyac9041a2011-10-28 16:52:32 +00009281
cristy0151ae12011-10-28 16:32:29 +00009282
9283#
9284# ARCH specific configuration directory
9285#
9286
cristy670aa3c2011-11-03 00:54:00 +00009287# Check whether --with-sharearch-dir was given.
9288if test "${with_sharearch_dir+set}" = set; then :
9289 withval=$with_sharearch_dir; sharearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00009290else
cristy408ebcd2011-11-14 01:36:57 +00009291 sharearch_dir="${LIB_DIR}"
cristy0151ae12011-10-28 16:32:29 +00009292fi
9293
9294
cristy670aa3c2011-11-03 00:54:00 +00009295eval "eval SHAREARCH_DIR=$sharearch_dir"
cristyac9041a2011-10-28 16:52:32 +00009296
cristy0151ae12011-10-28 16:32:29 +00009297
cristy2ec87cc2013-02-18 17:46:50 +00009298# Path to the pkgconfig folder
9299
9300# Check whether --with-pkgconfigdir was given.
9301if test "${with_pkgconfigdir+set}" = set; then :
9302 withval=$with_pkgconfigdir; pkgconfigdir="$withval"
9303else
9304 pkgconfigdir='${libdir}/pkgconfig'
9305fi
9306
9307
9308
cristy0151ae12011-10-28 16:32:29 +00009309#
cristy3ed852e2009-09-05 21:47:34 +00009310# Enable support for threads
cristy1ae5c992013-07-30 14:55:07 +00009311#
9312# Find Posix threads library
9313#
cristy3ed852e2009-09-05 21:47:34 +00009314
9315# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00009316if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009317 withval=$with_threads; with_threads=$withval
9318else
9319 with_threads='yes'
9320fi
9321
9322
cristy1ae5c992013-07-30 14:55:07 +00009323THREAD_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00009324have_threads=no
9325if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00009326
9327
cristy73bd4a52010-10-05 11:24:23 +00009328ac_ext=c
9329ac_cpp='$CPP $CPPFLAGS'
9330ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9331ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9332ac_compiler_gnu=$ac_cv_c_compiler_gnu
9333
9334ax_pthread_ok=no
9335
9336# We used to check for pthread.h first, but this fails if pthread.h
9337# requires special compiler flags (e.g. on True64 or Sequent).
9338# It gets checked for in the link test anyway.
9339
9340# First of all, check if the user has set any of the PTHREAD_LIBS,
9341# etcetera environment variables, and if threads linking works using
9342# them:
9343if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9344 save_CFLAGS="$CFLAGS"
9345 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9346 save_LIBS="$LIBS"
9347 LIBS="$PTHREAD_LIBS $LIBS"
9348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9349$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9351/* end confdefs.h. */
9352
9353/* Override any GCC internal prototype to avoid an error.
9354 Use char because int might match the return type of a GCC
9355 builtin and then its argument prototype would still apply. */
9356#ifdef __cplusplus
9357extern "C"
9358#endif
9359char pthread_join ();
9360int
9361main ()
9362{
9363return pthread_join ();
9364 ;
9365 return 0;
9366}
9367_ACEOF
9368if ac_fn_c_try_link "$LINENO"; then :
9369 ax_pthread_ok=yes
9370fi
9371rm -f core conftest.err conftest.$ac_objext \
9372 conftest$ac_exeext conftest.$ac_ext
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9374$as_echo "$ax_pthread_ok" >&6; }
9375 if test x"$ax_pthread_ok" = xno; then
9376 PTHREAD_LIBS=""
9377 PTHREAD_CFLAGS=""
9378 fi
9379 LIBS="$save_LIBS"
9380 CFLAGS="$save_CFLAGS"
9381fi
9382
9383# We must check for the threads library under a number of different
9384# names; the ordering is very important because some systems
9385# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9386# libraries is broken (non-POSIX).
9387
9388# Create a list of thread flags to try. Items starting with a "-" are
9389# C compiler flags, and other items are library names, except for "none"
9390# which indicates that we try without any flags at all, and "pthread-config"
9391# which is a program returning the flags for the Pth emulation library.
9392
cristy2ec87cc2013-02-18 17:46:50 +00009393ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009394
9395# The ordering *is* (sometimes) important. Some notes on the
9396# individual items follow:
9397
9398# pthreads: AIX (must check this before -lpthread)
9399# none: in case threads are in libc; should be tried before -Kthread and
9400# other compiler flags to prevent continual compiler warnings
9401# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9402# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9403# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9404# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9405# -pthreads: Solaris/gcc
9406# -mthreads: Mingw32/gcc, Lynx/gcc
9407# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9408# doesn't hurt to check since this sometimes defines pthreads too;
9409# also defines -D_REENTRANT)
9410# ... -mt is also the pthreads flag for HP/aCC
9411# pthread: Linux, etcetera
9412# --thread-safe: KAI C++
9413# pthread-config: use pthread-config program (for GNU Pth library)
9414
cristy2ec87cc2013-02-18 17:46:50 +00009415case ${host_os} in
9416 solaris*)
cristy73bd4a52010-10-05 11:24:23 +00009417
9418 # On Solaris (at least, for some versions), libc contains stubbed
9419 # (non-functional) versions of the pthreads routines, so link-based
9420 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9421 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9422 # a function called by this macro, so we could check for that, but
9423 # who knows whether they'll stub that too in a future libc.) So,
9424 # we'll just look for -pthreads and -lpthread first:
9425
9426 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9427 ;;
9428
cristy2ec87cc2013-02-18 17:46:50 +00009429 darwin*)
cristya316db12011-10-24 00:49:45 +00009430 ax_pthread_flags="-pthread $ax_pthread_flags"
9431 ;;
cristy73bd4a52010-10-05 11:24:23 +00009432esac
9433
cristy17491be2014-06-24 01:10:53 +00009434# Clang doesn't consider unrecognized options an error unless we specify
9435# -Werror. We throw in some extra Clang-specific options to ensure that
9436# this doesn't happen for GCC, which also accepts -Werror.
9437
9438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
9439$as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
9440save_CFLAGS="$CFLAGS"
9441ax_pthread_extra_flags="-Werror"
9442CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
9443cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9444/* end confdefs.h. */
9445int foo(void);
9446int
9447main ()
9448{
9449foo()
9450 ;
9451 return 0;
9452}
9453_ACEOF
9454if ac_fn_c_try_compile "$LINENO"; then :
9455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9456$as_echo "yes" >&6; }
9457else
9458 ax_pthread_extra_flags=
9459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9460$as_echo "no" >&6; }
9461fi
9462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9463CFLAGS="$save_CFLAGS"
9464
cristy73bd4a52010-10-05 11:24:23 +00009465if test x"$ax_pthread_ok" = xno; then
9466for flag in $ax_pthread_flags; do
9467
9468 case $flag in
9469 none)
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9471$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9472 ;;
9473
9474 -*)
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9476$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9477 PTHREAD_CFLAGS="$flag"
9478 ;;
9479
cristya316db12011-10-24 00:49:45 +00009480 pthread-config)
9481 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009482set dummy pthread-config; ac_word=$2
9483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9484$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009485if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009486 $as_echo_n "(cached) " >&6
9487else
9488 if test -n "$ax_pthread_config"; then
9489 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9490else
9491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9492for as_dir in $PATH
9493do
9494 IFS=$as_save_IFS
9495 test -z "$as_dir" && as_dir=.
9496 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009498 ac_cv_prog_ax_pthread_config="yes"
9499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9500 break 2
9501 fi
9502done
9503 done
9504IFS=$as_save_IFS
9505
9506 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9507fi
9508fi
9509ax_pthread_config=$ac_cv_prog_ax_pthread_config
9510if test -n "$ax_pthread_config"; then
9511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9512$as_echo "$ax_pthread_config" >&6; }
9513else
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9515$as_echo "no" >&6; }
9516fi
9517
9518
cristya316db12011-10-24 00:49:45 +00009519 if test x"$ax_pthread_config" = xno; then continue; fi
9520 PTHREAD_CFLAGS="`pthread-config --cflags`"
9521 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9522 ;;
cristy73bd4a52010-10-05 11:24:23 +00009523
9524 *)
9525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9526$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9527 PTHREAD_LIBS="-l$flag"
9528 ;;
9529 esac
9530
9531 save_LIBS="$LIBS"
9532 save_CFLAGS="$CFLAGS"
9533 LIBS="$PTHREAD_LIBS $LIBS"
cristy17491be2014-06-24 01:10:53 +00009534 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
cristy73bd4a52010-10-05 11:24:23 +00009535
9536 # Check for various functions. We must include pthread.h,
9537 # since some functions may be macros. (On the Sequent, we
9538 # need a special flag -Kthread to make this header compile.)
9539 # We check for pthread_join because it is in -lpthread on IRIX
9540 # while pthread_create is in libc. We check for pthread_attr_init
9541 # due to DEC craziness with -lpthreads. We check for
9542 # pthread_cleanup_push because it is one of the few pthread
9543 # functions on Solaris that doesn't have a non-functional libc stub.
9544 # We try pthread_create on general principles.
9545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9546/* end confdefs.h. */
9547#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009548 static void routine(void *a) { a = 0; }
9549 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009550int
9551main ()
9552{
9553pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009554 pthread_create(&th, 0, start_routine, 0);
9555 pthread_join(th, 0);
9556 pthread_attr_init(&attr);
9557 pthread_cleanup_push(routine, 0);
9558 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009559 ;
9560 return 0;
9561}
9562_ACEOF
9563if ac_fn_c_try_link "$LINENO"; then :
9564 ax_pthread_ok=yes
9565fi
9566rm -f core conftest.err conftest.$ac_objext \
9567 conftest$ac_exeext conftest.$ac_ext
9568
9569 LIBS="$save_LIBS"
9570 CFLAGS="$save_CFLAGS"
9571
9572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9573$as_echo "$ax_pthread_ok" >&6; }
9574 if test "x$ax_pthread_ok" = xyes; then
9575 break;
9576 fi
9577
9578 PTHREAD_LIBS=""
9579 PTHREAD_CFLAGS=""
9580done
9581fi
9582
9583# Various other checks:
9584if test "x$ax_pthread_ok" = xyes; then
9585 save_LIBS="$LIBS"
9586 LIBS="$PTHREAD_LIBS $LIBS"
9587 save_CFLAGS="$CFLAGS"
9588 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9589
9590 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009592$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009593 attr_name=unknown
9594 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009596/* end confdefs.h. */
9597#include <pthread.h>
9598int
9599main ()
9600{
cristya316db12011-10-24 00:49:45 +00009601int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009602 ;
9603 return 0;
9604}
9605_ACEOF
9606if ac_fn_c_try_link "$LINENO"; then :
9607 attr_name=$attr; break
9608fi
9609rm -f core conftest.err conftest.$ac_objext \
9610 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009611 done
cristy73bd4a52010-10-05 11:24:23 +00009612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9613$as_echo "$attr_name" >&6; }
9614 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9615
9616cat >>confdefs.h <<_ACEOF
9617#define PTHREAD_CREATE_JOINABLE $attr_name
9618_ACEOF
9619
9620 fi
9621
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9623$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9624 flag=no
cristy2ec87cc2013-02-18 17:46:50 +00009625 case ${host_os} in
9626 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
9627 osf* | hpux*) flag="-D_REENTRANT";;
9628 solaris*)
9629 if test "$GCC" = "yes"; then
9630 flag="-D_REENTRANT"
9631 else
cristy17491be2014-06-24 01:10:53 +00009632 # TODO: What about Clang on Solaris?
cristy2ec87cc2013-02-18 17:46:50 +00009633 flag="-mt -D_REENTRANT"
9634 fi
9635 ;;
cristy73bd4a52010-10-05 11:24:23 +00009636 esac
cristy17491be2014-06-24 01:10:53 +00009637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
9638$as_echo "$flag" >&6; }
cristy73bd4a52010-10-05 11:24:23 +00009639 if test "x$flag" != xno; then
9640 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9641 fi
9642
cristya316db12011-10-24 00:49:45 +00009643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9644$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9645if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9646 $as_echo_n "(cached) " >&6
9647else
9648
9649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9650/* end confdefs.h. */
cristy17491be2014-06-24 01:10:53 +00009651#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009652int
9653main ()
9654{
9655int i = PTHREAD_PRIO_INHERIT;
9656 ;
9657 return 0;
9658}
9659_ACEOF
9660if ac_fn_c_try_link "$LINENO"; then :
9661 ax_cv_PTHREAD_PRIO_INHERIT=yes
9662else
9663 ax_cv_PTHREAD_PRIO_INHERIT=no
9664fi
9665rm -f core conftest.err conftest.$ac_objext \
9666 conftest$ac_exeext conftest.$ac_ext
9667
9668fi
9669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9670$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9671 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9672
9673$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9674
9675fi
9676
cristy73bd4a52010-10-05 11:24:23 +00009677 LIBS="$save_LIBS"
9678 CFLAGS="$save_CFLAGS"
9679
cristy23493c42013-04-11 16:04:59 +00009680 # More AIX lossage: compile with *_r variant
9681 if test "x$GCC" != xyes; then
9682 case $host_os in
9683 aix*)
9684 case "x/$CC" in #(
9685 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
9686 #handle absolute path differently from PATH based program lookup
9687 case "x$CC" in #(
9688 x/*) :
9689 if as_fn_executable_p ${CC}_r; then :
9690 PTHREAD_CC="${CC}_r"
9691fi ;; #(
9692 *) :
9693 for ac_prog in ${CC}_r
cristy73bd4a52010-10-05 11:24:23 +00009694do
9695 # Extract the first word of "$ac_prog", so it can be a program name with args.
9696set dummy $ac_prog; ac_word=$2
9697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9698$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009699if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009700 $as_echo_n "(cached) " >&6
9701else
9702 if test -n "$PTHREAD_CC"; then
9703 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9704else
9705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9706for as_dir in $PATH
9707do
9708 IFS=$as_save_IFS
9709 test -z "$as_dir" && as_dir=.
9710 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009712 ac_cv_prog_PTHREAD_CC="$ac_prog"
9713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9714 break 2
9715 fi
9716done
9717 done
9718IFS=$as_save_IFS
9719
9720fi
9721fi
9722PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9723if test -n "$PTHREAD_CC"; then
9724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9725$as_echo "$PTHREAD_CC" >&6; }
9726else
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9728$as_echo "no" >&6; }
9729fi
9730
9731
9732 test -n "$PTHREAD_CC" && break
9733done
cristy23493c42013-04-11 16:04:59 +00009734test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9735 ;;
9736esac ;; #(
9737 *) :
9738 ;;
9739esac
9740 ;;
9741 esac
cristya316db12011-10-24 00:49:45 +00009742 fi
cristy73bd4a52010-10-05 11:24:23 +00009743fi
9744
cristy23493c42013-04-11 16:04:59 +00009745test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9746
cristy73bd4a52010-10-05 11:24:23 +00009747
9748
9749
9750
9751# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9752if test x"$ax_pthread_ok" = xyes; then
9753
9754$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9755
9756 :
9757else
9758 ax_pthread_ok=no
9759
9760fi
9761ac_ext=c
9762ac_cpp='$CPP $CPPFLAGS'
9763ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9764ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9765ac_compiler_gnu=$ac_cv_c_compiler_gnu
9766
9767
cristy7acf8fb2010-09-23 19:58:53 +00009768 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00009769 have_threads=yes
9770 DEF_THREAD="$PTHREAD_CFLAGS"
9771 CFLAGS="$CFLAGS $DEF_THREAD"
9772 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
cristy1ae5c992013-07-30 14:55:07 +00009773 THREAD_LIBS="$PTHREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +00009774 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00009775 { $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 +00009776$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
9777 CC="$PTHREAD_CC"
9778 fi
cristy55bf91c2010-09-24 00:29:41 +00009779
9780$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
9781
cristy3ed852e2009-09-05 21:47:34 +00009782 fi
9783fi
cristy1ae5c992013-07-30 14:55:07 +00009784LIBS="$LIBS $THREAD_LIBS"
9785
cristy3ed852e2009-09-05 21:47:34 +00009786
9787# Enable support for OpenMP
9788if test "$have_threads" != 'yes'; then
9789 ac_cv_prog_c_openmp=unsupported
9790fi
9791
9792 OPENMP_CFLAGS=
9793 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00009794if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009795 enableval=$enable_openmp;
9796fi
9797
9798 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00009799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009800$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009801if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009802 $as_echo_n "(cached) " >&6
9803else
cristy8b350f62009-11-15 23:12:43 +00009804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9805/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009806
9807#ifndef _OPENMP
9808 choke me
9809#endif
9810#include <omp.h>
9811int main () { return omp_get_num_threads (); }
9812
9813_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009814if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009815 ac_cv_prog_c_openmp='none needed'
9816else
cristy8b350f62009-11-15 23:12:43 +00009817 ac_cv_prog_c_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +00009818 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
9819 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +00009820 ac_save_CFLAGS=$CFLAGS
9821 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00009822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9823/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009824
9825#ifndef _OPENMP
9826 choke me
9827#endif
9828#include <omp.h>
9829int main () { return omp_get_num_threads (); }
9830
9831_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009832if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009833 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00009834fi
cristy8b350f62009-11-15 23:12:43 +00009835rm -f core conftest.err conftest.$ac_objext \
9836 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009837 CFLAGS=$ac_save_CFLAGS
9838 if test "$ac_cv_prog_c_openmp" != unsupported; then
9839 break
9840 fi
9841 done
9842fi
cristy8b350f62009-11-15 23:12:43 +00009843rm -f core conftest.err conftest.$ac_objext \
9844 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009845fi
cristy8b350f62009-11-15 23:12:43 +00009846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00009847$as_echo "$ac_cv_prog_c_openmp" >&6; }
9848 case $ac_cv_prog_c_openmp in #(
9849 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00009850 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00009851 *)
cristy8b350f62009-11-15 23:12:43 +00009852 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00009853 esac
9854 fi
9855
9856
9857CFLAGS="$OPENMP_CFLAGS $CFLAGS"
9858MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
9859
cristy391f1ce2010-09-09 17:23:28 +00009860if test "$enable_openmp" != no; then
9861 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
9862 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
9863 fi
9864fi
cristy3ed852e2009-09-05 21:47:34 +00009865
cristy736173a2009-09-20 21:18:22 +00009866# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00009867
9868
cristy73bd4a52010-10-05 11:24:23 +00009869ac_ext=c
9870ac_cpp='$CPP $CPPFLAGS'
9871ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9872ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9873ac_compiler_gnu=$ac_cv_c_compiler_gnu
9874
9875ax_pthread_ok=no
9876
9877# We used to check for pthread.h first, but this fails if pthread.h
9878# requires special compiler flags (e.g. on True64 or Sequent).
9879# It gets checked for in the link test anyway.
9880
9881# First of all, check if the user has set any of the PTHREAD_LIBS,
9882# etcetera environment variables, and if threads linking works using
9883# them:
9884if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9885 save_CFLAGS="$CFLAGS"
9886 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9887 save_LIBS="$LIBS"
9888 LIBS="$PTHREAD_LIBS $LIBS"
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9890$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9892/* end confdefs.h. */
9893
9894/* Override any GCC internal prototype to avoid an error.
9895 Use char because int might match the return type of a GCC
9896 builtin and then its argument prototype would still apply. */
9897#ifdef __cplusplus
9898extern "C"
9899#endif
9900char pthread_join ();
9901int
9902main ()
9903{
9904return pthread_join ();
9905 ;
9906 return 0;
9907}
9908_ACEOF
9909if ac_fn_c_try_link "$LINENO"; then :
9910 ax_pthread_ok=yes
9911fi
9912rm -f core conftest.err conftest.$ac_objext \
9913 conftest$ac_exeext conftest.$ac_ext
9914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9915$as_echo "$ax_pthread_ok" >&6; }
9916 if test x"$ax_pthread_ok" = xno; then
9917 PTHREAD_LIBS=""
9918 PTHREAD_CFLAGS=""
9919 fi
9920 LIBS="$save_LIBS"
9921 CFLAGS="$save_CFLAGS"
9922fi
9923
9924# We must check for the threads library under a number of different
9925# names; the ordering is very important because some systems
9926# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9927# libraries is broken (non-POSIX).
9928
9929# Create a list of thread flags to try. Items starting with a "-" are
9930# C compiler flags, and other items are library names, except for "none"
9931# which indicates that we try without any flags at all, and "pthread-config"
9932# which is a program returning the flags for the Pth emulation library.
9933
cristy2ec87cc2013-02-18 17:46:50 +00009934ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009935
9936# The ordering *is* (sometimes) important. Some notes on the
9937# individual items follow:
9938
9939# pthreads: AIX (must check this before -lpthread)
9940# none: in case threads are in libc; should be tried before -Kthread and
9941# other compiler flags to prevent continual compiler warnings
9942# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9943# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9944# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9945# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9946# -pthreads: Solaris/gcc
9947# -mthreads: Mingw32/gcc, Lynx/gcc
9948# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9949# doesn't hurt to check since this sometimes defines pthreads too;
9950# also defines -D_REENTRANT)
9951# ... -mt is also the pthreads flag for HP/aCC
9952# pthread: Linux, etcetera
9953# --thread-safe: KAI C++
9954# pthread-config: use pthread-config program (for GNU Pth library)
9955
cristy2ec87cc2013-02-18 17:46:50 +00009956case ${host_os} in
9957 solaris*)
cristy73bd4a52010-10-05 11:24:23 +00009958
9959 # On Solaris (at least, for some versions), libc contains stubbed
9960 # (non-functional) versions of the pthreads routines, so link-based
9961 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9962 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9963 # a function called by this macro, so we could check for that, but
9964 # who knows whether they'll stub that too in a future libc.) So,
9965 # we'll just look for -pthreads and -lpthread first:
9966
9967 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9968 ;;
9969
cristy2ec87cc2013-02-18 17:46:50 +00009970 darwin*)
cristya316db12011-10-24 00:49:45 +00009971 ax_pthread_flags="-pthread $ax_pthread_flags"
9972 ;;
cristy73bd4a52010-10-05 11:24:23 +00009973esac
9974
cristy17491be2014-06-24 01:10:53 +00009975# Clang doesn't consider unrecognized options an error unless we specify
9976# -Werror. We throw in some extra Clang-specific options to ensure that
9977# this doesn't happen for GCC, which also accepts -Werror.
9978
9979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
9980$as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
9981save_CFLAGS="$CFLAGS"
9982ax_pthread_extra_flags="-Werror"
9983CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
9984cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9985/* end confdefs.h. */
9986int foo(void);
9987int
9988main ()
9989{
9990foo()
9991 ;
9992 return 0;
9993}
9994_ACEOF
9995if ac_fn_c_try_compile "$LINENO"; then :
9996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9997$as_echo "yes" >&6; }
9998else
9999 ax_pthread_extra_flags=
10000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10001$as_echo "no" >&6; }
10002fi
10003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10004CFLAGS="$save_CFLAGS"
10005
cristy73bd4a52010-10-05 11:24:23 +000010006if test x"$ax_pthread_ok" = xno; then
10007for flag in $ax_pthread_flags; do
10008
10009 case $flag in
10010 none)
10011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
10012$as_echo_n "checking whether pthreads work without any flags... " >&6; }
10013 ;;
10014
10015 -*)
10016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
10017$as_echo_n "checking whether pthreads work with $flag... " >&6; }
10018 PTHREAD_CFLAGS="$flag"
10019 ;;
10020
cristya316db12011-10-24 00:49:45 +000010021 pthread-config)
10022 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +000010023set dummy pthread-config; ac_word=$2
10024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10025$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010026if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010027 $as_echo_n "(cached) " >&6
10028else
10029 if test -n "$ax_pthread_config"; then
10030 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
10031else
10032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10033for as_dir in $PATH
10034do
10035 IFS=$as_save_IFS
10036 test -z "$as_dir" && as_dir=.
10037 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010039 ac_cv_prog_ax_pthread_config="yes"
10040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10041 break 2
10042 fi
10043done
10044 done
10045IFS=$as_save_IFS
10046
10047 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
10048fi
10049fi
10050ax_pthread_config=$ac_cv_prog_ax_pthread_config
10051if test -n "$ax_pthread_config"; then
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
10053$as_echo "$ax_pthread_config" >&6; }
10054else
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10056$as_echo "no" >&6; }
10057fi
10058
10059
cristya316db12011-10-24 00:49:45 +000010060 if test x"$ax_pthread_config" = xno; then continue; fi
10061 PTHREAD_CFLAGS="`pthread-config --cflags`"
10062 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
10063 ;;
cristy73bd4a52010-10-05 11:24:23 +000010064
10065 *)
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
10067$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
10068 PTHREAD_LIBS="-l$flag"
10069 ;;
10070 esac
10071
10072 save_LIBS="$LIBS"
10073 save_CFLAGS="$CFLAGS"
10074 LIBS="$PTHREAD_LIBS $LIBS"
cristy17491be2014-06-24 01:10:53 +000010075 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
cristy73bd4a52010-10-05 11:24:23 +000010076
10077 # Check for various functions. We must include pthread.h,
10078 # since some functions may be macros. (On the Sequent, we
10079 # need a special flag -Kthread to make this header compile.)
10080 # We check for pthread_join because it is in -lpthread on IRIX
10081 # while pthread_create is in libc. We check for pthread_attr_init
10082 # due to DEC craziness with -lpthreads. We check for
10083 # pthread_cleanup_push because it is one of the few pthread
10084 # functions on Solaris that doesn't have a non-functional libc stub.
10085 # We try pthread_create on general principles.
10086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10087/* end confdefs.h. */
10088#include <pthread.h>
cristya316db12011-10-24 00:49:45 +000010089 static void routine(void *a) { a = 0; }
10090 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +000010091int
10092main ()
10093{
10094pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +000010095 pthread_create(&th, 0, start_routine, 0);
10096 pthread_join(th, 0);
10097 pthread_attr_init(&attr);
10098 pthread_cleanup_push(routine, 0);
10099 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +000010100 ;
10101 return 0;
10102}
10103_ACEOF
10104if ac_fn_c_try_link "$LINENO"; then :
10105 ax_pthread_ok=yes
10106fi
10107rm -f core conftest.err conftest.$ac_objext \
10108 conftest$ac_exeext conftest.$ac_ext
10109
10110 LIBS="$save_LIBS"
10111 CFLAGS="$save_CFLAGS"
10112
10113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
10114$as_echo "$ax_pthread_ok" >&6; }
10115 if test "x$ax_pthread_ok" = xyes; then
10116 break;
10117 fi
10118
10119 PTHREAD_LIBS=""
10120 PTHREAD_CFLAGS=""
10121done
10122fi
10123
10124# Various other checks:
10125if test "x$ax_pthread_ok" = xyes; then
10126 save_LIBS="$LIBS"
10127 LIBS="$PTHREAD_LIBS $LIBS"
10128 save_CFLAGS="$CFLAGS"
10129 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10130
10131 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +000010132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +000010133$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +000010134 attr_name=unknown
10135 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
10136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000010137/* end confdefs.h. */
10138#include <pthread.h>
10139int
10140main ()
10141{
cristya316db12011-10-24 00:49:45 +000010142int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +000010143 ;
10144 return 0;
10145}
10146_ACEOF
10147if ac_fn_c_try_link "$LINENO"; then :
10148 attr_name=$attr; break
10149fi
10150rm -f core conftest.err conftest.$ac_objext \
10151 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +000010152 done
cristy73bd4a52010-10-05 11:24:23 +000010153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
10154$as_echo "$attr_name" >&6; }
10155 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
10156
10157cat >>confdefs.h <<_ACEOF
10158#define PTHREAD_CREATE_JOINABLE $attr_name
10159_ACEOF
10160
10161 fi
10162
10163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
10164$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
10165 flag=no
cristy2ec87cc2013-02-18 17:46:50 +000010166 case ${host_os} in
10167 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
10168 osf* | hpux*) flag="-D_REENTRANT";;
10169 solaris*)
10170 if test "$GCC" = "yes"; then
10171 flag="-D_REENTRANT"
10172 else
cristy17491be2014-06-24 01:10:53 +000010173 # TODO: What about Clang on Solaris?
cristy2ec87cc2013-02-18 17:46:50 +000010174 flag="-mt -D_REENTRANT"
10175 fi
10176 ;;
cristy73bd4a52010-10-05 11:24:23 +000010177 esac
cristy17491be2014-06-24 01:10:53 +000010178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
10179$as_echo "$flag" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000010180 if test "x$flag" != xno; then
10181 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
10182 fi
10183
cristya316db12011-10-24 00:49:45 +000010184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
10185$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
10186if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
10187 $as_echo_n "(cached) " >&6
10188else
10189
10190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10191/* end confdefs.h. */
cristy17491be2014-06-24 01:10:53 +000010192#include <pthread.h>
cristya316db12011-10-24 00:49:45 +000010193int
10194main ()
10195{
10196int i = PTHREAD_PRIO_INHERIT;
10197 ;
10198 return 0;
10199}
10200_ACEOF
10201if ac_fn_c_try_link "$LINENO"; then :
10202 ax_cv_PTHREAD_PRIO_INHERIT=yes
10203else
10204 ax_cv_PTHREAD_PRIO_INHERIT=no
10205fi
10206rm -f core conftest.err conftest.$ac_objext \
10207 conftest$ac_exeext conftest.$ac_ext
10208
10209fi
10210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
10211$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
10212 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
10213
10214$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
10215
10216fi
10217
cristy73bd4a52010-10-05 11:24:23 +000010218 LIBS="$save_LIBS"
10219 CFLAGS="$save_CFLAGS"
10220
cristy23493c42013-04-11 16:04:59 +000010221 # More AIX lossage: compile with *_r variant
10222 if test "x$GCC" != xyes; then
10223 case $host_os in
10224 aix*)
10225 case "x/$CC" in #(
10226 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
10227 #handle absolute path differently from PATH based program lookup
10228 case "x$CC" in #(
10229 x/*) :
10230 if as_fn_executable_p ${CC}_r; then :
10231 PTHREAD_CC="${CC}_r"
10232fi ;; #(
10233 *) :
10234 for ac_prog in ${CC}_r
cristy73bd4a52010-10-05 11:24:23 +000010235do
10236 # Extract the first word of "$ac_prog", so it can be a program name with args.
10237set dummy $ac_prog; ac_word=$2
10238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10239$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010240if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010241 $as_echo_n "(cached) " >&6
10242else
10243 if test -n "$PTHREAD_CC"; then
10244 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
10245else
10246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10247for as_dir in $PATH
10248do
10249 IFS=$as_save_IFS
10250 test -z "$as_dir" && as_dir=.
10251 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010253 ac_cv_prog_PTHREAD_CC="$ac_prog"
10254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10255 break 2
10256 fi
10257done
10258 done
10259IFS=$as_save_IFS
10260
10261fi
10262fi
10263PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
10264if test -n "$PTHREAD_CC"; then
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
10266$as_echo "$PTHREAD_CC" >&6; }
10267else
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10269$as_echo "no" >&6; }
10270fi
10271
10272
10273 test -n "$PTHREAD_CC" && break
10274done
cristy23493c42013-04-11 16:04:59 +000010275test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10276 ;;
10277esac ;; #(
10278 *) :
10279 ;;
10280esac
10281 ;;
10282 esac
cristya316db12011-10-24 00:49:45 +000010283 fi
cristy73bd4a52010-10-05 11:24:23 +000010284fi
10285
cristy23493c42013-04-11 16:04:59 +000010286test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10287
cristy73bd4a52010-10-05 11:24:23 +000010288
10289
10290
10291
10292# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
10293if test x"$ax_pthread_ok" = xyes; then
10294
10295$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10296
10297 :
10298else
10299 ax_pthread_ok=no
10300
10301fi
10302ac_ext=c
10303ac_cpp='$CPP $CPPFLAGS'
10304ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10305ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10306ac_compiler_gnu=$ac_cv_c_compiler_gnu
10307
10308
10309
10310# Check whether --enable-opencl was given.
10311if test "${enable_opencl+set}" = set; then :
cristy48794642012-09-02 15:19:08 +000010312 enableval=$enable_opencl; enable_opencl=$enableval
cristy73bd4a52010-10-05 11:24:23 +000010313else
cristy48794642012-09-02 15:19:08 +000010314 enable_opencl='no'
cristy73bd4a52010-10-05 11:24:23 +000010315fi
10316
10317
cristy48794642012-09-02 15:19:08 +000010318if test "$enable_opencl" = 'yes'; then
cristy73bd4a52010-10-05 11:24:23 +000010319 ac_ext=c
10320ac_cpp='$CPP $CPPFLAGS'
10321ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10322ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10323ac_compiler_gnu=$ac_cv_c_compiler_gnu
10324
cristy75314cc2012-09-15 23:08:29 +000010325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
10326$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
10327if ${ax_cv_c_compiler_ms+:} false; then :
10328 $as_echo_n "(cached) " >&6
10329else
10330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10331/* end confdefs.h. */
10332
10333int
10334main ()
10335{
10336#ifndef _MSC_VER
10337 choke me
10338#endif
10339
10340 ;
10341 return 0;
10342}
10343_ACEOF
10344if ac_fn_c_try_compile "$LINENO"; then :
10345 ax_compiler_ms=yes
10346else
10347 ax_compiler_ms=no
10348fi
10349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10350ax_cv_c_compiler_ms=$ax_compiler_ms
10351
10352fi
10353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
10354$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000010355 if test X$ax_compiler_ms = Xno; then :
10356 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
10357fi
10358
10359 ax_save_CPPFLAGS=$CPPFLAGS
cristyfdc7d122013-08-17 20:46:45 +000010360 ax_save_CL_CFLAGS=$CL_CFLAGS
10361
10362 found_opencl_header='no'
cristy73bd4a52010-10-05 11:24:23 +000010363 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
10364 for ac_header in CL/cl.h OpenCL/cl.h
10365do :
10366 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10367ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000010368if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000010369 cat >>confdefs.h <<_ACEOF
10370#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10371_ACEOF
cristyfdc7d122013-08-17 20:46:45 +000010372 found_opencl_header='yes'
10373 break;
10374else
10375 found_opencl_header='no'
cristy73bd4a52010-10-05 11:24:23 +000010376fi
10377
10378done
10379
cristyfdc7d122013-08-17 20:46:45 +000010380
10381 if test X$found_opencl_header = Xno; then :
10382 { ac_cv_header_CL_cl_h=; unset ac_cv_header_CL_cl_h;}
10383 { ac_cv_header_OpenCL_cl_h=; unset ac_cv_header_OpenCL_cl_h;}
10384 CL_CFLAGS="-I$AMDAPPSDKROOT/include"
10385 CPPFLAGS="$ax_save_CPPFLAGS $CL_CFLAGS"
10386 for ac_header in CL/cl.h OpenCL/cl.h
10387do :
10388 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10389ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10390if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10391 cat >>confdefs.h <<_ACEOF
10392#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10393_ACEOF
10394 found_opencl_header='yes'
10395 break;
10396else
10397 found_opencl_header='no'
10398fi
10399
10400done
10401
10402
10403fi
10404
10405 CPPFLAGS="$ax_save_CPPFLAGS"
cristy73bd4a52010-10-05 11:24:23 +000010406
10407 for ac_header in windows.h
10408do :
10409 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000010410if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000010411 cat >>confdefs.h <<_ACEOF
10412#define HAVE_WINDOWS_H 1
10413_ACEOF
10414
10415fi
10416
10417done
10418
10419
10420
10421
10422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
10423$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010424if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010425 $as_echo_n "(cached) " >&6
10426else
10427 ax_cv_check_cl_libcl=no
10428 case $host_cpu in
cristyfdc7d122013-08-17 20:46:45 +000010429 x86_64) ax_check_cl_libdir=lib64
10430 ax_check_cl_amd_libdir=x86_64
10431 ;;
10432 *) ax_check_cl_libdir=lib
10433 ax_check_cl_amd_libdir=x86
10434 ;;
cristy73bd4a52010-10-05 11:24:23 +000010435 esac
10436 ax_save_CPPFLAGS=$CPPFLAGS
10437 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
10438 ax_save_LIBS=$LIBS
10439 LIBS=""
10440 ax_check_libs="-lOpenCL -lCL -lclparser"
10441 for ax_lib in $ax_check_libs; do
10442 if test X$ax_compiler_ms = Xyes; then :
10443 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
10444else
10445 ax_try_lib=$ax_lib
10446fi
10447 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
10448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10449/* end confdefs.h. */
10450
10451 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10452 # include <windows.h>
10453 # endif
10454 # ifdef HAVE_CL_CL_H
10455 # include <CL/cl.h>
10456 # elif defined(HAVE_OPENCL_CL_H)
10457 # include <OpenCL/cl.h>
10458 # else
10459 # error no CL.h
10460 # endif
10461int
10462main ()
10463{
10464clCreateContextFromType(0,0,0,0,0)
10465 ;
10466 return 0;
10467}
10468_ACEOF
10469if ac_fn_c_try_link "$LINENO"; then :
10470 ax_cv_check_cl_libcl=$ax_try_lib; break
10471else
10472 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"
10473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10474/* end confdefs.h. */
10475
10476 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10477 # include <windows.h>
10478 # endif
10479 # ifdef HAVE_CL_CL_H
10480 # include <CL/cl.h>
10481 # elif defined(HAVE_OPENCL_CL_H)
10482 # include <OpenCL/cl.h>
10483 # else
10484 # error no CL.h
10485 # endif
10486int
10487main ()
10488{
10489clCreateContextFromType(0,0,0,0,0)
10490 ;
10491 return 0;
10492}
10493_ACEOF
10494if ac_fn_c_try_link "$LINENO"; then :
10495 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
10496else
cristy78c5a0c2010-12-04 20:00:59 +000010497 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 +000010498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10499/* end confdefs.h. */
10500
10501 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10502 # include <windows.h>
10503 # endif
10504 # ifdef HAVE_CL_CL_H
10505 # include <CL/cl.h>
10506 # elif defined(HAVE_OPENCL_CL_H)
10507 # include <OpenCL/cl.h>
10508 # else
10509 # error no CL.h
10510 # endif
10511int
10512main ()
10513{
10514clCreateContextFromType(0,0,0,0,0)
10515 ;
10516 return 0;
10517}
10518_ACEOF
10519if ac_fn_c_try_link "$LINENO"; then :
10520 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
cristyfdc7d122013-08-17 20:46:45 +000010521else
10522 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"
10523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10524/* end confdefs.h. */
10525
10526 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10527 # include <windows.h>
10528 # endif
10529 # ifdef HAVE_CL_CL_H
10530 # include <CL/cl.h>
10531 # elif defined(HAVE_OPENCL_CL_H)
10532 # include <OpenCL/cl.h>
10533 # else
10534 # error no CL.h
10535 # endif
10536int
10537main ()
10538{
10539clCreateContextFromType(0,0,0,0,0)
10540 ;
10541 return 0;
10542}
10543_ACEOF
10544if ac_fn_c_try_link "$LINENO"; then :
10545 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_amd_flags"; break
10546
10547fi
10548rm -f core conftest.err conftest.$ac_objext \
10549 conftest$ac_exeext conftest.$ac_ext
10550
10551
cristy73bd4a52010-10-05 11:24:23 +000010552fi
10553rm -f core conftest.err conftest.$ac_objext \
10554 conftest$ac_exeext conftest.$ac_ext
10555fi
10556rm -f core conftest.err conftest.$ac_objext \
10557 conftest$ac_exeext conftest.$ac_ext
10558fi
10559rm -f core conftest.err conftest.$ac_objext \
10560 conftest$ac_exeext conftest.$ac_ext
10561 done
10562
cristyc3f8b8e2011-12-22 14:55:16 +000010563 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy78c5a0c2010-12-04 20:00:59 +000010564 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +000010565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10566/* end confdefs.h. */
10567
10568 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10569 # include <windows.h>
10570 # endif
10571 # ifdef HAVE_CL_CL_H
10572 # include <CL/cl.h>
10573 # elif defined(HAVE_OPENCL_CL_H)
10574 # include <OpenCL/cl.h>
10575 # else
10576 # error no CL.h
10577 # endif
10578int
10579main ()
10580{
10581clCreateContextFromType(0,0,0,0,0)
10582 ;
10583 return 0;
10584}
10585_ACEOF
10586if ac_fn_c_try_link "$LINENO"; then :
10587 ax_cv_check_cl_libcl=$LIBS
10588fi
10589rm -f core conftest.err conftest.$ac_objext \
10590 conftest$ac_exeext conftest.$ac_ext
10591fi
10592
10593 LIBS=$ax_save_LIBS
10594 CPPFLAGS=$ax_save_CPPFLAGS
10595fi
10596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
10597$as_echo "$ax_cv_check_cl_libcl" >&6; }
10598
10599 if test "X$ax_cv_check_cl_libcl" = Xno; then :
10600 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
10601else
10602 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
10603$as_echo "#define _OPENCL 1" >>confdefs.h
10604
10605fi
10606 ac_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
10612fi
10613
10614
10615
cristy0c832c62014-03-07 22:21:04 +000010616#remove static link on Linux
10617CL_LIBS=`echo $CL_LIBS | $SED -e 's/-lOpenCL //'`
10618
cristy73bd4a52010-10-05 11:24:23 +000010619
cristyc7083c12009-10-14 03:16:55 +000010620CFLAGS="$CL_CFLAGS $CFLAGS"
cristyfdc7d122013-08-17 20:46:45 +000010621CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
cristyc7083c12009-10-14 03:16:55 +000010622LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +000010623
cristy391f1ce2010-09-09 17:23:28 +000010624if test "$enable_opencl" != no; then
cristy6e3607c2011-09-13 13:59:17 +000010625 if test "X$ax_cv_check_cl_libcl" != Xno; then :
cristy391f1ce2010-09-09 17:23:28 +000010626 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
10627 fi
cristyfd9dcd42010-08-08 18:07:02 +000010628fi
cristy2e8b51d2009-10-17 18:26:15 +000010629
cristy3ed852e2009-09-05 21:47:34 +000010630########
10631#
10632# Check for large file support
10633#
10634########
10635# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +000010636if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010637 enableval=$enable_largefile;
10638fi
10639
10640if test "$enable_largefile" != no; then
10641
cristy8b350f62009-11-15 23:12:43 +000010642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010643$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010644if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010645 $as_echo_n "(cached) " >&6
10646else
10647 ac_cv_sys_largefile_CC=no
10648 if test "$GCC" != yes; then
10649 ac_save_CC=$CC
10650 while :; do
10651 # IRIX 6.2 and later do not support large files by default,
10652 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +000010653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010654/* end confdefs.h. */
10655#include <sys/types.h>
10656 /* Check that off_t can represent 2**63 - 1 correctly.
10657 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10658 since some C++ compilers masquerading as C compilers
10659 incorrectly reject 9223372036854775807. */
10660#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10661 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10662 && LARGE_OFF_T % 2147483647 == 1)
10663 ? 1 : -1];
10664int
10665main ()
10666{
10667
10668 ;
10669 return 0;
10670}
10671_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010672 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010673 break
cristy3ed852e2009-09-05 21:47:34 +000010674fi
cristy3ed852e2009-09-05 21:47:34 +000010675rm -f core conftest.err conftest.$ac_objext
10676 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +000010677 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010678 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +000010679fi
cristy3ed852e2009-09-05 21:47:34 +000010680rm -f core conftest.err conftest.$ac_objext
10681 break
10682 done
10683 CC=$ac_save_CC
10684 rm -f conftest.$ac_ext
10685 fi
10686fi
cristy8b350f62009-11-15 23:12:43 +000010687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000010688$as_echo "$ac_cv_sys_largefile_CC" >&6; }
10689 if test "$ac_cv_sys_largefile_CC" != no; then
10690 CC=$CC$ac_cv_sys_largefile_CC
10691 fi
10692
cristy8b350f62009-11-15 23:12:43 +000010693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010694$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010695if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010696 $as_echo_n "(cached) " >&6
10697else
10698 while :; do
cristy8b350f62009-11-15 23:12:43 +000010699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010700/* end confdefs.h. */
10701#include <sys/types.h>
10702 /* Check that off_t can represent 2**63 - 1 correctly.
10703 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10704 since some C++ compilers masquerading as C compilers
10705 incorrectly reject 9223372036854775807. */
10706#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10707 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10708 && LARGE_OFF_T % 2147483647 == 1)
10709 ? 1 : -1];
10710int
10711main ()
10712{
10713
10714 ;
10715 return 0;
10716}
10717_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010718if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010719 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +000010720fi
cristy3ed852e2009-09-05 21:47:34 +000010721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010723/* end confdefs.h. */
10724#define _FILE_OFFSET_BITS 64
10725#include <sys/types.h>
10726 /* Check that off_t can represent 2**63 - 1 correctly.
10727 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10728 since some C++ compilers masquerading as C compilers
10729 incorrectly reject 9223372036854775807. */
10730#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10731 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10732 && LARGE_OFF_T % 2147483647 == 1)
10733 ? 1 : -1];
10734int
10735main ()
10736{
10737
10738 ;
10739 return 0;
10740}
10741_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010742if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010743 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +000010744fi
cristy3ed852e2009-09-05 21:47:34 +000010745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10746 ac_cv_sys_file_offset_bits=unknown
10747 break
10748done
10749fi
cristy8b350f62009-11-15 23:12:43 +000010750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +000010751$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10752case $ac_cv_sys_file_offset_bits in #(
10753 no | unknown) ;;
10754 *)
10755cat >>confdefs.h <<_ACEOF
10756#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10757_ACEOF
10758;;
10759esac
10760rm -rf conftest*
10761 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +000010762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010763$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010764if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010765 $as_echo_n "(cached) " >&6
10766else
10767 while :; do
cristy8b350f62009-11-15 23:12:43 +000010768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010769/* end confdefs.h. */
10770#include <sys/types.h>
10771 /* Check that off_t can represent 2**63 - 1 correctly.
10772 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10773 since some C++ compilers masquerading as C compilers
10774 incorrectly reject 9223372036854775807. */
10775#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10776 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10777 && LARGE_OFF_T % 2147483647 == 1)
10778 ? 1 : -1];
10779int
10780main ()
10781{
10782
10783 ;
10784 return 0;
10785}
10786_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010787if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010788 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +000010789fi
cristy3ed852e2009-09-05 21:47:34 +000010790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010792/* end confdefs.h. */
10793#define _LARGE_FILES 1
10794#include <sys/types.h>
10795 /* Check that off_t can represent 2**63 - 1 correctly.
10796 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10797 since some C++ compilers masquerading as C compilers
10798 incorrectly reject 9223372036854775807. */
10799#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10800 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10801 && LARGE_OFF_T % 2147483647 == 1)
10802 ? 1 : -1];
10803int
10804main ()
10805{
10806
10807 ;
10808 return 0;
10809}
10810_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010811if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010812 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +000010813fi
cristy3ed852e2009-09-05 21:47:34 +000010814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10815 ac_cv_sys_large_files=unknown
10816 break
10817done
10818fi
cristy8b350f62009-11-15 23:12:43 +000010819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010820$as_echo "$ac_cv_sys_large_files" >&6; }
10821case $ac_cv_sys_large_files in #(
10822 no | unknown) ;;
10823 *)
10824cat >>confdefs.h <<_ACEOF
10825#define _LARGE_FILES $ac_cv_sys_large_files
10826_ACEOF
10827;;
10828esac
10829rm -rf conftest*
10830 fi
cristy14fefe52012-05-21 00:59:18 +000010831
10832
cristy3ed852e2009-09-05 21:47:34 +000010833fi
10834
cristy8b350f62009-11-15 23:12:43 +000010835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010836$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010837if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010838 $as_echo_n "(cached) " >&6
10839else
10840 while :; do
cristy8b350f62009-11-15 23:12:43 +000010841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010842/* end confdefs.h. */
10843#include <sys/types.h> /* for off_t */
10844 #include <stdio.h>
10845int
10846main ()
10847{
10848int (*fp) (FILE *, off_t, int) = fseeko;
10849 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10850 ;
10851 return 0;
10852}
10853_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010854if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010855 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +000010856fi
cristy8b350f62009-11-15 23:12:43 +000010857rm -f core conftest.err conftest.$ac_objext \
10858 conftest$ac_exeext conftest.$ac_ext
10859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010860/* end confdefs.h. */
10861#define _LARGEFILE_SOURCE 1
10862#include <sys/types.h> /* for off_t */
10863 #include <stdio.h>
10864int
10865main ()
10866{
10867int (*fp) (FILE *, off_t, int) = fseeko;
10868 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10869 ;
10870 return 0;
10871}
10872_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010873if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010874 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +000010875fi
cristy8b350f62009-11-15 23:12:43 +000010876rm -f core conftest.err conftest.$ac_objext \
10877 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010878 ac_cv_sys_largefile_source=unknown
10879 break
10880done
10881fi
cristy8b350f62009-11-15 23:12:43 +000010882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +000010883$as_echo "$ac_cv_sys_largefile_source" >&6; }
10884case $ac_cv_sys_largefile_source in #(
10885 no | unknown) ;;
10886 *)
10887cat >>confdefs.h <<_ACEOF
10888#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10889_ACEOF
10890;;
10891esac
10892rm -rf conftest*
10893
10894# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10895# in glibc 2.1.3, but that breaks too many other things.
10896# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10897if test $ac_cv_sys_largefile_source != unknown; then
10898
cristy8b350f62009-11-15 23:12:43 +000010899$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010900
10901fi
10902
10903LFS_CPPFLAGS=''
10904if test "$enable_largefile" != no; then
cristyc1e0cc12011-09-21 16:41:16 +000010905 case $ac_cv_sys_file_offset_bits in
10906 no)
10907 # nothing to do here as the host supports LFS fine
10908 ;;
10909 unknown)
cristy8b350f62009-11-15 23:12:43 +000010910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +000010911$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010912 if test "$cross_compiling" = yes; then :
10913 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000010914$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000010915as_fn_error $? "cannot run test program while cross compiling
10916See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000010917else
cristy8b350f62009-11-15 23:12:43 +000010918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10919/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000010920#include <unistd.h>
10921 main () {
10922 exit(!(sizeof(off_t) == 8));
10923 }
cristyda16f162011-02-19 23:52:17 +000010924int
10925main ()
10926{
10927
10928 ;
10929 return 0;
10930}
cristy3ed852e2009-09-05 21:47:34 +000010931_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010932if ac_fn_c_try_run "$LINENO"; then :
10933 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010934
cristyad38abe2012-12-23 23:03:21 +000010935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10936$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000010937else
cristyad38abe2012-12-23 23:03:21 +000010938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10939$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000010940fi
cristy8b350f62009-11-15 23:12:43 +000010941rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10942 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010943fi
10944
cristyc1e0cc12011-09-21 16:41:16 +000010945 ;;
10946 *)
10947 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
10948 ;;
10949 esac
cristy3ed852e2009-09-05 21:47:34 +000010950 if test "$ac_cv_sys_large_files" != 'no'; then
10951 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
10952 fi
10953 if test "$ac_cv_sys_largefile_source" != 'no'; then
10954 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
10955 fi
10956fi
10957
10958
cristy3ed852e2009-09-05 21:47:34 +000010959# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +000010960enable_dlopen=yes
10961
10962
10963
10964case `pwd` in
10965 *\ * | *\ *)
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10967$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10968esac
10969
10970
10971
cristy99bd5232011-12-07 14:38:20 +000010972macro_version='2.4.2'
10973macro_revision='1.3337'
cristy73bd4a52010-10-05 11:24:23 +000010974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987ltmain="$ac_aux_dir/ltmain.sh"
10988
cristy0c60a692010-11-04 01:09:47 +000010989# Backslashify metacharacters that are still active within
10990# double-quoted strings.
10991sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10992
10993# Same as above, but do not quote variable references.
10994double_quote_subst='s/\(["`\\]\)/\\\1/g'
10995
10996# Sed substitution to delay expansion of an escaped shell variable in a
10997# double_quote_subst'ed string.
10998delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10999
11000# Sed substitution to delay expansion of an escaped single quote.
11001delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11002
11003# Sed substitution to avoid accidental globbing in evaled expressions
11004no_glob_subst='s/\*/\\\*/g'
11005
cristy73bd4a52010-10-05 11:24:23 +000011006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11007$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011008if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011009 $as_echo_n "(cached) " >&6
11010else
11011 if test -n "$NM"; then
11012 # Let the user override the test.
11013 lt_cv_path_NM="$NM"
11014else
11015 lt_nm_to_check="${ac_tool_prefix}nm"
11016 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11017 lt_nm_to_check="$lt_nm_to_check nm"
11018 fi
11019 for lt_tmp_nm in $lt_nm_to_check; do
11020 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11021 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11022 IFS="$lt_save_ifs"
11023 test -z "$ac_dir" && ac_dir=.
11024 tmp_nm="$ac_dir/$lt_tmp_nm"
11025 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11026 # Check to see if the nm accepts a BSD-compat flag.
11027 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11028 # nm: unknown option "B" ignored
11029 # Tru64's nm complains that /dev/null is an invalid object file
11030 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11031 */dev/null* | *'Invalid file or object type'*)
11032 lt_cv_path_NM="$tmp_nm -B"
11033 break
11034 ;;
11035 *)
11036 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11037 */dev/null*)
11038 lt_cv_path_NM="$tmp_nm -p"
11039 break
11040 ;;
11041 *)
11042 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11043 continue # so that we can try to find one that supports BSD flags
11044 ;;
11045 esac
11046 ;;
11047 esac
11048 fi
11049 done
11050 IFS="$lt_save_ifs"
11051 done
11052 : ${lt_cv_path_NM=no}
11053fi
11054fi
11055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11056$as_echo "$lt_cv_path_NM" >&6; }
11057if test "$lt_cv_path_NM" != "no"; then
11058 NM="$lt_cv_path_NM"
11059else
11060 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +000011061 if test -n "$DUMPBIN"; then :
11062 # Let the user override the test.
11063 else
11064 if test -n "$ac_tool_prefix"; then
11065 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000011066 do
11067 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11068set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11070$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011071if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011072 $as_echo_n "(cached) " >&6
11073else
11074 if test -n "$DUMPBIN"; then
11075 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11076else
11077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11078for as_dir in $PATH
11079do
11080 IFS=$as_save_IFS
11081 test -z "$as_dir" && as_dir=.
11082 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011084 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11086 break 2
11087 fi
11088done
11089 done
11090IFS=$as_save_IFS
11091
11092fi
11093fi
11094DUMPBIN=$ac_cv_prog_DUMPBIN
11095if test -n "$DUMPBIN"; then
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11097$as_echo "$DUMPBIN" >&6; }
11098else
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11100$as_echo "no" >&6; }
11101fi
11102
11103
11104 test -n "$DUMPBIN" && break
11105 done
11106fi
11107if test -z "$DUMPBIN"; then
11108 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +000011109 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000011110do
11111 # Extract the first word of "$ac_prog", so it can be a program name with args.
11112set dummy $ac_prog; ac_word=$2
11113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11114$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011115if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011116 $as_echo_n "(cached) " >&6
11117else
11118 if test -n "$ac_ct_DUMPBIN"; then
11119 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11120else
11121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11122for as_dir in $PATH
11123do
11124 IFS=$as_save_IFS
11125 test -z "$as_dir" && as_dir=.
11126 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011128 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11130 break 2
11131 fi
11132done
11133 done
11134IFS=$as_save_IFS
11135
11136fi
11137fi
11138ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11139if test -n "$ac_ct_DUMPBIN"; then
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11141$as_echo "$ac_ct_DUMPBIN" >&6; }
11142else
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11144$as_echo "no" >&6; }
11145fi
11146
11147
11148 test -n "$ac_ct_DUMPBIN" && break
11149done
11150
11151 if test "x$ac_ct_DUMPBIN" = x; then
11152 DUMPBIN=":"
11153 else
11154 case $cross_compiling:$ac_tool_warned in
11155yes:)
11156{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11157$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11158ac_tool_warned=yes ;;
11159esac
11160 DUMPBIN=$ac_ct_DUMPBIN
11161 fi
11162fi
11163
cristy0c60a692010-11-04 01:09:47 +000011164 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11165 *COFF*)
11166 DUMPBIN="$DUMPBIN -symbols"
11167 ;;
11168 *)
11169 DUMPBIN=:
11170 ;;
11171 esac
11172 fi
cristy73bd4a52010-10-05 11:24:23 +000011173
11174 if test "$DUMPBIN" != ":"; then
11175 NM="$DUMPBIN"
11176 fi
11177fi
11178test -z "$NM" && NM=nm
11179
11180
11181
11182
11183
11184
11185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11186$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011187if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011188 $as_echo_n "(cached) " >&6
11189else
11190 lt_cv_nm_interface="BSD nm"
11191 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000011192 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000011193 (eval "$ac_compile" 2>conftest.err)
11194 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000011195 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000011196 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11197 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000011198 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000011199 cat conftest.out >&5
11200 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11201 lt_cv_nm_interface="MS dumpbin"
11202 fi
11203 rm -f conftest*
11204fi
11205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11206$as_echo "$lt_cv_nm_interface" >&6; }
11207
11208# find the maximum length of command line arguments
11209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11210$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011211if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011212 $as_echo_n "(cached) " >&6
11213else
11214 i=0
11215 teststring="ABCD"
11216
11217 case $build_os in
11218 msdosdjgpp*)
11219 # On DJGPP, this test can blow up pretty badly due to problems in libc
11220 # (any single argument exceeding 2000 bytes causes a buffer overrun
11221 # during glob expansion). Even if it were fixed, the result of this
11222 # check would be larger than it should be.
11223 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11224 ;;
11225
11226 gnu*)
11227 # Under GNU Hurd, this test is not required because there is
11228 # no limit to the length of command line arguments.
11229 # Libtool will interpret -1 as no limit whatsoever
11230 lt_cv_sys_max_cmd_len=-1;
11231 ;;
11232
11233 cygwin* | mingw* | cegcc*)
11234 # On Win9x/ME, this test blows up -- it succeeds, but takes
11235 # about 5 minutes as the teststring grows exponentially.
11236 # Worse, since 9x/ME are not pre-emptively multitasking,
11237 # you end up with a "frozen" computer, even though with patience
11238 # the test eventually succeeds (with a max line length of 256k).
11239 # Instead, let's just punt: use the minimum linelength reported by
11240 # all of the supported platforms: 8192 (on NT/2K/XP).
11241 lt_cv_sys_max_cmd_len=8192;
11242 ;;
11243
cristy0c60a692010-11-04 01:09:47 +000011244 mint*)
11245 # On MiNT this can take a long time and run out of memory.
11246 lt_cv_sys_max_cmd_len=8192;
11247 ;;
11248
cristy73bd4a52010-10-05 11:24:23 +000011249 amigaos*)
11250 # On AmigaOS with pdksh, this test takes hours, literally.
11251 # So we just punt and use a minimum line length of 8192.
11252 lt_cv_sys_max_cmd_len=8192;
11253 ;;
11254
11255 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11256 # This has been around since 386BSD, at least. Likely further.
11257 if test -x /sbin/sysctl; then
11258 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11259 elif test -x /usr/sbin/sysctl; then
11260 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11261 else
11262 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11263 fi
11264 # And add a safety zone
11265 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11266 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11267 ;;
11268
11269 interix*)
11270 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11271 lt_cv_sys_max_cmd_len=196608
11272 ;;
11273
cristy99bd5232011-12-07 14:38:20 +000011274 os2*)
11275 # The test takes a long time on OS/2.
11276 lt_cv_sys_max_cmd_len=8192
11277 ;;
11278
cristy73bd4a52010-10-05 11:24:23 +000011279 osf*)
11280 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11281 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11282 # nice to cause kernel panics so lets avoid the loop below.
11283 # First set a reasonable default.
11284 lt_cv_sys_max_cmd_len=16384
11285 #
11286 if test -x /sbin/sysconfig; then
11287 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11288 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11289 esac
11290 fi
11291 ;;
11292 sco3.2v5*)
11293 lt_cv_sys_max_cmd_len=102400
11294 ;;
11295 sysv5* | sco5v6* | sysv4.2uw2*)
11296 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11297 if test -n "$kargmax"; then
11298 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11299 else
11300 lt_cv_sys_max_cmd_len=32768
11301 fi
11302 ;;
11303 *)
11304 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11305 if test -n "$lt_cv_sys_max_cmd_len"; then
11306 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11307 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11308 else
11309 # Make teststring a little bigger before we do anything with it.
11310 # a 1K string should be a reasonable start.
11311 for i in 1 2 3 4 5 6 7 8 ; do
11312 teststring=$teststring$teststring
11313 done
11314 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11315 # If test is not a shell built-in, we'll probably end up computing a
11316 # maximum length that is only half of the actual maximum length, but
11317 # we can't tell.
cristy99bd5232011-12-07 14:38:20 +000011318 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
cristy0c60a692010-11-04 01:09:47 +000011319 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +000011320 test $i != 17 # 1/2 MB should be enough
11321 do
11322 i=`expr $i + 1`
11323 teststring=$teststring$teststring
11324 done
11325 # Only check the string length outside the loop.
11326 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11327 teststring=
11328 # Add a significant safety factor because C++ compilers can tack on
11329 # massive amounts of additional arguments before passing them to the
11330 # linker. It appears as though 1/2 is a usable value.
11331 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11332 fi
11333 ;;
11334 esac
11335
11336fi
11337
11338if test -n $lt_cv_sys_max_cmd_len ; then
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11340$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11341else
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11343$as_echo "none" >&6; }
11344fi
11345max_cmd_len=$lt_cv_sys_max_cmd_len
11346
11347
11348
11349
11350
11351
11352: ${CP="cp -f"}
11353: ${MV="mv -f"}
11354: ${RM="rm -f"}
11355
11356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11357$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11358# Try some XSI features
11359xsi_shell=no
11360( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +000011361 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
11362 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +000011363 && eval 'test $(( 1 + 1 )) -eq 2 \
11364 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11365 && xsi_shell=yes
11366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11367$as_echo "$xsi_shell" >&6; }
11368
11369
11370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11371$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11372lt_shell_append=no
11373( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11374 >/dev/null 2>&1 \
11375 && lt_shell_append=yes
11376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11377$as_echo "$lt_shell_append" >&6; }
11378
11379
11380if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11381 lt_unset=unset
11382else
11383 lt_unset=false
11384fi
11385
11386
11387
11388
11389
11390# test EBCDIC or ASCII
11391case `echo X|tr X '\101'` in
11392 A) # ASCII based system
11393 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11394 lt_SP2NL='tr \040 \012'
11395 lt_NL2SP='tr \015\012 \040\040'
11396 ;;
11397 *) # EBCDIC based system
11398 lt_SP2NL='tr \100 \n'
11399 lt_NL2SP='tr \r\n \100\100'
11400 ;;
11401esac
11402
11403
11404
11405
11406
11407
11408
11409
11410
cristyda16f162011-02-19 23:52:17 +000011411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11412$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11413if ${lt_cv_to_host_file_cmd+:} false; then :
11414 $as_echo_n "(cached) " >&6
11415else
11416 case $host in
11417 *-*-mingw* )
11418 case $build in
11419 *-*-mingw* ) # actually msys
11420 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11421 ;;
11422 *-*-cygwin* )
11423 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11424 ;;
11425 * ) # otherwise, assume *nix
11426 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11427 ;;
11428 esac
11429 ;;
11430 *-*-cygwin* )
11431 case $build in
11432 *-*-mingw* ) # actually msys
11433 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11434 ;;
11435 *-*-cygwin* )
11436 lt_cv_to_host_file_cmd=func_convert_file_noop
11437 ;;
11438 * ) # otherwise, assume *nix
11439 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11440 ;;
11441 esac
11442 ;;
11443 * ) # unhandled hosts (and "normal" native builds)
11444 lt_cv_to_host_file_cmd=func_convert_file_noop
11445 ;;
11446esac
11447
11448fi
11449
11450to_host_file_cmd=$lt_cv_to_host_file_cmd
11451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11452$as_echo "$lt_cv_to_host_file_cmd" >&6; }
11453
11454
11455
11456
11457
11458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11459$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11460if ${lt_cv_to_tool_file_cmd+:} false; then :
11461 $as_echo_n "(cached) " >&6
11462else
11463 #assume ordinary cross tools, or native build.
11464lt_cv_to_tool_file_cmd=func_convert_file_noop
11465case $host in
11466 *-*-mingw* )
11467 case $build in
11468 *-*-mingw* ) # actually msys
11469 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11470 ;;
11471 esac
11472 ;;
11473esac
11474
11475fi
11476
11477to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11479$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11480
11481
11482
11483
11484
cristy73bd4a52010-10-05 11:24:23 +000011485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11486$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011487if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011488 $as_echo_n "(cached) " >&6
11489else
11490 lt_cv_ld_reload_flag='-r'
11491fi
11492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11493$as_echo "$lt_cv_ld_reload_flag" >&6; }
11494reload_flag=$lt_cv_ld_reload_flag
11495case $reload_flag in
11496"" | " "*) ;;
11497*) reload_flag=" $reload_flag" ;;
11498esac
11499reload_cmds='$LD$reload_flag -o $output$reload_objs'
11500case $host_os in
cristyda16f162011-02-19 23:52:17 +000011501 cygwin* | mingw* | pw32* | cegcc*)
11502 if test "$GCC" != yes; then
11503 reload_cmds=false
11504 fi
11505 ;;
cristy73bd4a52010-10-05 11:24:23 +000011506 darwin*)
11507 if test "$GCC" = yes; then
11508 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11509 else
11510 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11511 fi
11512 ;;
11513esac
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523if test -n "$ac_tool_prefix"; then
11524 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11525set dummy ${ac_tool_prefix}objdump; ac_word=$2
11526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11527$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011528if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011529 $as_echo_n "(cached) " >&6
11530else
11531 if test -n "$OBJDUMP"; then
11532 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11533else
11534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11535for as_dir in $PATH
11536do
11537 IFS=$as_save_IFS
11538 test -z "$as_dir" && as_dir=.
11539 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011541 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11543 break 2
11544 fi
11545done
11546 done
11547IFS=$as_save_IFS
11548
11549fi
11550fi
11551OBJDUMP=$ac_cv_prog_OBJDUMP
11552if test -n "$OBJDUMP"; then
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11554$as_echo "$OBJDUMP" >&6; }
11555else
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11557$as_echo "no" >&6; }
11558fi
11559
11560
11561fi
11562if test -z "$ac_cv_prog_OBJDUMP"; then
11563 ac_ct_OBJDUMP=$OBJDUMP
11564 # Extract the first word of "objdump", so it can be a program name with args.
11565set dummy objdump; ac_word=$2
11566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11567$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011568if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011569 $as_echo_n "(cached) " >&6
11570else
11571 if test -n "$ac_ct_OBJDUMP"; then
11572 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11573else
11574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11575for as_dir in $PATH
11576do
11577 IFS=$as_save_IFS
11578 test -z "$as_dir" && as_dir=.
11579 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011581 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11583 break 2
11584 fi
11585done
11586 done
11587IFS=$as_save_IFS
11588
11589fi
11590fi
11591ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11592if test -n "$ac_ct_OBJDUMP"; then
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11594$as_echo "$ac_ct_OBJDUMP" >&6; }
11595else
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11597$as_echo "no" >&6; }
11598fi
11599
11600 if test "x$ac_ct_OBJDUMP" = x; then
11601 OBJDUMP="false"
11602 else
11603 case $cross_compiling:$ac_tool_warned in
11604yes:)
11605{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11606$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11607ac_tool_warned=yes ;;
11608esac
11609 OBJDUMP=$ac_ct_OBJDUMP
11610 fi
11611else
11612 OBJDUMP="$ac_cv_prog_OBJDUMP"
11613fi
11614
11615test -z "$OBJDUMP" && OBJDUMP=objdump
11616
11617
11618
11619
11620
11621
11622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11623$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011624if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011625 $as_echo_n "(cached) " >&6
11626else
11627 lt_cv_file_magic_cmd='$MAGIC_CMD'
11628lt_cv_file_magic_test_file=
11629lt_cv_deplibs_check_method='unknown'
11630# Need to set the preceding variable on all platforms that support
11631# interlibrary dependencies.
11632# 'none' -- dependencies not supported.
11633# `unknown' -- same as none, but documents that we really don't know.
11634# 'pass_all' -- all dependencies passed with no checks.
11635# 'test_compile' -- check by making test program.
11636# 'file_magic [[regex]]' -- check by looking for files in library path
11637# which responds to the $file_magic_cmd with a given extended regex.
11638# If you have `file' or equivalent on your system and you're not sure
11639# whether `pass_all' will *always* work, you probably want this one.
11640
11641case $host_os in
11642aix[4-9]*)
11643 lt_cv_deplibs_check_method=pass_all
11644 ;;
11645
11646beos*)
11647 lt_cv_deplibs_check_method=pass_all
11648 ;;
11649
11650bsdi[45]*)
11651 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11652 lt_cv_file_magic_cmd='/usr/bin/file -L'
11653 lt_cv_file_magic_test_file=/shlib/libc.so
11654 ;;
11655
11656cygwin*)
11657 # func_win32_libid is a shell function defined in ltmain.sh
11658 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11659 lt_cv_file_magic_cmd='func_win32_libid'
11660 ;;
11661
11662mingw* | pw32*)
11663 # Base MSYS/MinGW do not provide the 'file' command needed by
11664 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11665 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000011666 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11667 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000011668 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11669 lt_cv_file_magic_cmd='func_win32_libid'
11670 else
cristy0c60a692010-11-04 01:09:47 +000011671 # Keep this pattern in sync with the one in func_win32_libid.
11672 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 +000011673 lt_cv_file_magic_cmd='$OBJDUMP -f'
11674 fi
11675 ;;
11676
cristy0c60a692010-11-04 01:09:47 +000011677cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000011678 # use the weaker test based on 'objdump'. See mingw*.
11679 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11680 lt_cv_file_magic_cmd='$OBJDUMP -f'
11681 ;;
11682
11683darwin* | rhapsody*)
11684 lt_cv_deplibs_check_method=pass_all
11685 ;;
11686
11687freebsd* | dragonfly*)
11688 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11689 case $host_cpu in
11690 i*86 )
11691 # Not sure whether the presence of OpenBSD here was a mistake.
11692 # Let's accept both of them until this is cleared up.
11693 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11694 lt_cv_file_magic_cmd=/usr/bin/file
11695 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11696 ;;
11697 esac
11698 else
11699 lt_cv_deplibs_check_method=pass_all
11700 fi
11701 ;;
11702
11703gnu*)
11704 lt_cv_deplibs_check_method=pass_all
11705 ;;
11706
cristy0c60a692010-11-04 01:09:47 +000011707haiku*)
11708 lt_cv_deplibs_check_method=pass_all
11709 ;;
11710
cristy73bd4a52010-10-05 11:24:23 +000011711hpux10.20* | hpux11*)
11712 lt_cv_file_magic_cmd=/usr/bin/file
11713 case $host_cpu in
11714 ia64*)
11715 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11716 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11717 ;;
11718 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000011719 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 +000011720 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11721 ;;
11722 *)
cristy0c60a692010-11-04 01:09:47 +000011723 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 +000011724 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11725 ;;
11726 esac
11727 ;;
11728
11729interix[3-9]*)
11730 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11731 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11732 ;;
11733
11734irix5* | irix6* | nonstopux*)
11735 case $LD in
11736 *-32|*"-32 ") libmagic=32-bit;;
11737 *-n32|*"-n32 ") libmagic=N32;;
11738 *-64|*"-64 ") libmagic=64-bit;;
11739 *) libmagic=never-match;;
11740 esac
11741 lt_cv_deplibs_check_method=pass_all
11742 ;;
11743
cristy99bd5232011-12-07 14:38:20 +000011744# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000011745linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000011746 lt_cv_deplibs_check_method=pass_all
11747 ;;
11748
11749netbsd*)
11750 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11751 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11752 else
11753 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11754 fi
11755 ;;
11756
11757newos6*)
11758 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11759 lt_cv_file_magic_cmd=/usr/bin/file
11760 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11761 ;;
11762
11763*nto* | *qnx*)
11764 lt_cv_deplibs_check_method=pass_all
11765 ;;
11766
11767openbsd*)
11768 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11769 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11770 else
11771 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11772 fi
11773 ;;
11774
11775osf3* | osf4* | osf5*)
11776 lt_cv_deplibs_check_method=pass_all
11777 ;;
11778
11779rdos*)
11780 lt_cv_deplibs_check_method=pass_all
11781 ;;
11782
11783solaris*)
11784 lt_cv_deplibs_check_method=pass_all
11785 ;;
11786
11787sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11788 lt_cv_deplibs_check_method=pass_all
11789 ;;
11790
11791sysv4 | sysv4.3*)
11792 case $host_vendor in
11793 motorola)
11794 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]'
11795 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11796 ;;
11797 ncr)
11798 lt_cv_deplibs_check_method=pass_all
11799 ;;
11800 sequent)
11801 lt_cv_file_magic_cmd='/bin/file'
11802 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11803 ;;
11804 sni)
11805 lt_cv_file_magic_cmd='/bin/file'
11806 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11807 lt_cv_file_magic_test_file=/lib/libc.so
11808 ;;
11809 siemens)
11810 lt_cv_deplibs_check_method=pass_all
11811 ;;
11812 pc)
11813 lt_cv_deplibs_check_method=pass_all
11814 ;;
11815 esac
11816 ;;
11817
11818tpf*)
11819 lt_cv_deplibs_check_method=pass_all
11820 ;;
11821esac
11822
11823fi
11824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11825$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000011826
11827file_magic_glob=
11828want_nocaseglob=no
11829if test "$build" = "$host"; then
11830 case $host_os in
11831 mingw* | pw32*)
11832 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11833 want_nocaseglob=yes
11834 else
11835 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11836 fi
11837 ;;
11838 esac
11839fi
11840
cristy73bd4a52010-10-05 11:24:23 +000011841file_magic_cmd=$lt_cv_file_magic_cmd
11842deplibs_check_method=$lt_cv_deplibs_check_method
11843test -z "$deplibs_check_method" && deplibs_check_method=unknown
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
cristyda16f162011-02-19 23:52:17 +000011856
11857
11858
11859
11860
11861
11862
11863
11864
11865
cristy73bd4a52010-10-05 11:24:23 +000011866if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000011867 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11868set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11870$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011871if ${ac_cv_prog_DLLTOOL+:} false; then :
11872 $as_echo_n "(cached) " >&6
11873else
11874 if test -n "$DLLTOOL"; then
11875 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11876else
11877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11878for as_dir in $PATH
11879do
11880 IFS=$as_save_IFS
11881 test -z "$as_dir" && as_dir=.
11882 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011884 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11886 break 2
11887 fi
11888done
11889 done
11890IFS=$as_save_IFS
11891
11892fi
11893fi
11894DLLTOOL=$ac_cv_prog_DLLTOOL
11895if test -n "$DLLTOOL"; then
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11897$as_echo "$DLLTOOL" >&6; }
11898else
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11900$as_echo "no" >&6; }
11901fi
11902
11903
11904fi
11905if test -z "$ac_cv_prog_DLLTOOL"; then
11906 ac_ct_DLLTOOL=$DLLTOOL
11907 # Extract the first word of "dlltool", so it can be a program name with args.
11908set dummy dlltool; ac_word=$2
11909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11910$as_echo_n "checking for $ac_word... " >&6; }
11911if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11912 $as_echo_n "(cached) " >&6
11913else
11914 if test -n "$ac_ct_DLLTOOL"; then
11915 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11916else
11917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11918for as_dir in $PATH
11919do
11920 IFS=$as_save_IFS
11921 test -z "$as_dir" && as_dir=.
11922 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011924 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11926 break 2
11927 fi
11928done
11929 done
11930IFS=$as_save_IFS
11931
11932fi
11933fi
11934ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11935if test -n "$ac_ct_DLLTOOL"; then
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11937$as_echo "$ac_ct_DLLTOOL" >&6; }
11938else
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11940$as_echo "no" >&6; }
11941fi
11942
11943 if test "x$ac_ct_DLLTOOL" = x; then
11944 DLLTOOL="false"
11945 else
11946 case $cross_compiling:$ac_tool_warned in
11947yes:)
11948{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11949$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11950ac_tool_warned=yes ;;
11951esac
11952 DLLTOOL=$ac_ct_DLLTOOL
11953 fi
11954else
11955 DLLTOOL="$ac_cv_prog_DLLTOOL"
11956fi
11957
11958test -z "$DLLTOOL" && DLLTOOL=dlltool
11959
11960
11961
11962
11963
11964
11965
11966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
11967$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
11968if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
11969 $as_echo_n "(cached) " >&6
11970else
11971 lt_cv_sharedlib_from_linklib_cmd='unknown'
11972
11973case $host_os in
11974cygwin* | mingw* | pw32* | cegcc*)
11975 # two different shell functions defined in ltmain.sh
11976 # decide which to use based on capabilities of $DLLTOOL
11977 case `$DLLTOOL --help 2>&1` in
11978 *--identify-strict*)
11979 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
11980 ;;
11981 *)
11982 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
11983 ;;
11984 esac
11985 ;;
11986*)
11987 # fallback: assume linklib IS sharedlib
11988 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
11989 ;;
11990esac
11991
11992fi
11993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
11994$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
11995sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
11996test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
11997
11998
11999
12000
12001
12002
12003
12004if test -n "$ac_tool_prefix"; then
12005 for ac_prog in ar
12006 do
12007 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12008set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12010$as_echo_n "checking for $ac_word... " >&6; }
12011if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012012 $as_echo_n "(cached) " >&6
12013else
12014 if test -n "$AR"; then
12015 ac_cv_prog_AR="$AR" # Let the user override the test.
12016else
12017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12018for as_dir in $PATH
12019do
12020 IFS=$as_save_IFS
12021 test -z "$as_dir" && as_dir=.
12022 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012024 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000012025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12026 break 2
12027 fi
12028done
12029 done
12030IFS=$as_save_IFS
12031
12032fi
12033fi
12034AR=$ac_cv_prog_AR
12035if test -n "$AR"; then
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12037$as_echo "$AR" >&6; }
12038else
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12040$as_echo "no" >&6; }
12041fi
12042
12043
cristyda16f162011-02-19 23:52:17 +000012044 test -n "$AR" && break
12045 done
cristy73bd4a52010-10-05 11:24:23 +000012046fi
cristyda16f162011-02-19 23:52:17 +000012047if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000012048 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000012049 for ac_prog in ar
12050do
12051 # Extract the first word of "$ac_prog", so it can be a program name with args.
12052set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000012053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12054$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012055if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012056 $as_echo_n "(cached) " >&6
12057else
12058 if test -n "$ac_ct_AR"; then
12059 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12060else
12061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12062for as_dir in $PATH
12063do
12064 IFS=$as_save_IFS
12065 test -z "$as_dir" && as_dir=.
12066 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012068 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000012069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12070 break 2
12071 fi
12072done
12073 done
12074IFS=$as_save_IFS
12075
12076fi
12077fi
12078ac_ct_AR=$ac_cv_prog_ac_ct_AR
12079if test -n "$ac_ct_AR"; then
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12081$as_echo "$ac_ct_AR" >&6; }
12082else
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12084$as_echo "no" >&6; }
12085fi
12086
cristyda16f162011-02-19 23:52:17 +000012087
12088 test -n "$ac_ct_AR" && break
12089done
12090
cristy73bd4a52010-10-05 11:24:23 +000012091 if test "x$ac_ct_AR" = x; then
12092 AR="false"
12093 else
12094 case $cross_compiling:$ac_tool_warned in
12095yes:)
12096{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12097$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12098ac_tool_warned=yes ;;
12099esac
12100 AR=$ac_ct_AR
12101 fi
cristy73bd4a52010-10-05 11:24:23 +000012102fi
12103
cristyda16f162011-02-19 23:52:17 +000012104: ${AR=ar}
12105: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000012106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
cristyda16f162011-02-19 23:52:17 +000012117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12118$as_echo_n "checking for archiver @FILE support... " >&6; }
12119if ${lt_cv_ar_at_file+:} false; then :
12120 $as_echo_n "(cached) " >&6
12121else
12122 lt_cv_ar_at_file=no
12123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12124/* end confdefs.h. */
12125
12126int
12127main ()
12128{
12129
12130 ;
12131 return 0;
12132}
12133_ACEOF
12134if ac_fn_c_try_compile "$LINENO"; then :
12135 echo conftest.$ac_objext > conftest.lst
12136 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12137 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12138 (eval $lt_ar_try) 2>&5
12139 ac_status=$?
12140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12141 test $ac_status = 0; }
12142 if test "$ac_status" -eq 0; then
12143 # Ensure the archiver fails upon bogus file names.
12144 rm -f conftest.$ac_objext libconftest.a
12145 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12146 (eval $lt_ar_try) 2>&5
12147 ac_status=$?
12148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12149 test $ac_status = 0; }
12150 if test "$ac_status" -ne 0; then
12151 lt_cv_ar_at_file=@
12152 fi
12153 fi
12154 rm -f conftest.* libconftest.a
12155
12156fi
12157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12158
12159fi
12160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12161$as_echo "$lt_cv_ar_at_file" >&6; }
12162
12163if test "x$lt_cv_ar_at_file" = xno; then
12164 archiver_list_spec=
12165else
12166 archiver_list_spec=$lt_cv_ar_at_file
12167fi
12168
12169
12170
12171
12172
12173
12174
cristy73bd4a52010-10-05 11:24:23 +000012175if test -n "$ac_tool_prefix"; then
12176 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12177set dummy ${ac_tool_prefix}strip; ac_word=$2
12178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12179$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012180if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012181 $as_echo_n "(cached) " >&6
12182else
12183 if test -n "$STRIP"; then
12184 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12185else
12186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12187for as_dir in $PATH
12188do
12189 IFS=$as_save_IFS
12190 test -z "$as_dir" && as_dir=.
12191 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012193 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12195 break 2
12196 fi
12197done
12198 done
12199IFS=$as_save_IFS
12200
12201fi
12202fi
12203STRIP=$ac_cv_prog_STRIP
12204if test -n "$STRIP"; then
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12206$as_echo "$STRIP" >&6; }
12207else
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12209$as_echo "no" >&6; }
12210fi
12211
12212
12213fi
12214if test -z "$ac_cv_prog_STRIP"; then
12215 ac_ct_STRIP=$STRIP
12216 # Extract the first word of "strip", so it can be a program name with args.
12217set dummy strip; ac_word=$2
12218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12219$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012220if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012221 $as_echo_n "(cached) " >&6
12222else
12223 if test -n "$ac_ct_STRIP"; then
12224 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12225else
12226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12227for as_dir in $PATH
12228do
12229 IFS=$as_save_IFS
12230 test -z "$as_dir" && as_dir=.
12231 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012233 ac_cv_prog_ac_ct_STRIP="strip"
12234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12235 break 2
12236 fi
12237done
12238 done
12239IFS=$as_save_IFS
12240
12241fi
12242fi
12243ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12244if test -n "$ac_ct_STRIP"; then
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12246$as_echo "$ac_ct_STRIP" >&6; }
12247else
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12249$as_echo "no" >&6; }
12250fi
12251
12252 if test "x$ac_ct_STRIP" = x; then
12253 STRIP=":"
12254 else
12255 case $cross_compiling:$ac_tool_warned in
12256yes:)
12257{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12258$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12259ac_tool_warned=yes ;;
12260esac
12261 STRIP=$ac_ct_STRIP
12262 fi
12263else
12264 STRIP="$ac_cv_prog_STRIP"
12265fi
12266
12267test -z "$STRIP" && STRIP=:
12268
12269
12270
12271
12272
12273
12274if test -n "$ac_tool_prefix"; then
12275 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12276set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12278$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012279if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012280 $as_echo_n "(cached) " >&6
12281else
12282 if test -n "$RANLIB"; then
12283 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12284else
12285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12286for as_dir in $PATH
12287do
12288 IFS=$as_save_IFS
12289 test -z "$as_dir" && as_dir=.
12290 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012292 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12294 break 2
12295 fi
12296done
12297 done
12298IFS=$as_save_IFS
12299
12300fi
12301fi
12302RANLIB=$ac_cv_prog_RANLIB
12303if test -n "$RANLIB"; then
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12305$as_echo "$RANLIB" >&6; }
12306else
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12308$as_echo "no" >&6; }
12309fi
12310
12311
12312fi
12313if test -z "$ac_cv_prog_RANLIB"; then
12314 ac_ct_RANLIB=$RANLIB
12315 # Extract the first word of "ranlib", so it can be a program name with args.
12316set dummy ranlib; ac_word=$2
12317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12318$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012319if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012320 $as_echo_n "(cached) " >&6
12321else
12322 if test -n "$ac_ct_RANLIB"; then
12323 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12324else
12325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12326for as_dir in $PATH
12327do
12328 IFS=$as_save_IFS
12329 test -z "$as_dir" && as_dir=.
12330 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012332 ac_cv_prog_ac_ct_RANLIB="ranlib"
12333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12334 break 2
12335 fi
12336done
12337 done
12338IFS=$as_save_IFS
12339
12340fi
12341fi
12342ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12343if test -n "$ac_ct_RANLIB"; then
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12345$as_echo "$ac_ct_RANLIB" >&6; }
12346else
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12348$as_echo "no" >&6; }
12349fi
12350
12351 if test "x$ac_ct_RANLIB" = x; then
12352 RANLIB=":"
12353 else
12354 case $cross_compiling:$ac_tool_warned in
12355yes:)
12356{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12357$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12358ac_tool_warned=yes ;;
12359esac
12360 RANLIB=$ac_ct_RANLIB
12361 fi
12362else
12363 RANLIB="$ac_cv_prog_RANLIB"
12364fi
12365
12366test -z "$RANLIB" && RANLIB=:
12367
12368
12369
12370
12371
12372
12373# Determine commands to create old-style static archives.
12374old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12375old_postinstall_cmds='chmod 644 $oldlib'
12376old_postuninstall_cmds=
12377
12378if test -n "$RANLIB"; then
12379 case $host_os in
12380 openbsd*)
cristy99bd5232011-12-07 14:38:20 +000012381 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012382 ;;
12383 *)
cristy99bd5232011-12-07 14:38:20 +000012384 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012385 ;;
12386 esac
cristy99bd5232011-12-07 14:38:20 +000012387 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012388fi
12389
cristy0c60a692010-11-04 01:09:47 +000012390case $host_os in
12391 darwin*)
12392 lock_old_archive_extraction=yes ;;
12393 *)
12394 lock_old_archive_extraction=no ;;
12395esac
12396
12397
12398
12399
12400
12401
cristy73bd4a52010-10-05 11:24:23 +000012402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435# If no C compiler was specified, use CC.
12436LTCC=${LTCC-"$CC"}
12437
12438# If no C compiler flags were specified, use CFLAGS.
12439LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12440
12441# Allow CC to be a program name with arguments.
12442compiler=$CC
12443
12444
12445# Check for command to grab the raw symbol name followed by C symbol from nm.
12446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12447$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012448if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012449 $as_echo_n "(cached) " >&6
12450else
12451
12452# These are sane defaults that work on at least a few old systems.
12453# [They come from Ultrix. What could be older than Ultrix?!! ;)]
12454
12455# Character class describing NM global symbol codes.
12456symcode='[BCDEGRST]'
12457
12458# Regexp to match symbols that can be accessed directly from C.
12459sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12460
12461# Define system-specific variables.
12462case $host_os in
12463aix*)
12464 symcode='[BCDT]'
12465 ;;
12466cygwin* | mingw* | pw32* | cegcc*)
12467 symcode='[ABCDGISTW]'
12468 ;;
12469hpux*)
12470 if test "$host_cpu" = ia64; then
12471 symcode='[ABCDEGRST]'
12472 fi
12473 ;;
12474irix* | nonstopux*)
12475 symcode='[BCDEGRST]'
12476 ;;
12477osf*)
12478 symcode='[BCDEGQRST]'
12479 ;;
12480solaris*)
12481 symcode='[BDRT]'
12482 ;;
12483sco3.2v5*)
12484 symcode='[DT]'
12485 ;;
12486sysv4.2uw2*)
12487 symcode='[DT]'
12488 ;;
12489sysv5* | sco5v6* | unixware* | OpenUNIX*)
12490 symcode='[ABDT]'
12491 ;;
12492sysv4)
12493 symcode='[DFNSTU]'
12494 ;;
12495esac
12496
12497# If we're using GNU nm, then use its standard symbol codes.
12498case `$NM -V 2>&1` in
12499*GNU* | *'with BFD'*)
12500 symcode='[ABCDGIRSTW]' ;;
12501esac
12502
12503# Transform an extracted symbol line into a proper C declaration.
12504# Some systems (esp. on ia64) link data and code symbols differently,
12505# so use this general approach.
12506lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12507
12508# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000012509lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12510lt_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 +000012511
12512# Handle CRLF in mingw tool chain
12513opt_cr=
12514case $build_os in
12515mingw*)
12516 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12517 ;;
12518esac
12519
12520# Try without a prefix underscore, then with it.
12521for ac_symprfx in "" "_"; do
12522
12523 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12524 symxfrm="\\1 $ac_symprfx\\2 \\2"
12525
12526 # Write the raw and C identifiers.
12527 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12528 # Fake it for dumpbin and say T for any non-static function
12529 # and D for any global variable.
12530 # Also find C++ and __fastcall symbols from MSVC++,
12531 # which start with @ or ?.
12532 lt_cv_sys_global_symbol_pipe="$AWK '"\
12533" {last_section=section; section=\$ 3};"\
cristy99bd5232011-12-07 14:38:20 +000012534" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
cristy73bd4a52010-10-05 11:24:23 +000012535" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12536" \$ 0!~/External *\|/{next};"\
12537" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12538" {if(hide[section]) next};"\
12539" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12540" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12541" s[1]~/^[@?]/{print s[1], s[1]; next};"\
12542" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12543" ' prfx=^$ac_symprfx"
12544 else
12545 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12546 fi
cristyda16f162011-02-19 23:52:17 +000012547 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000012548
12549 # Check to see that the pipe works correctly.
12550 pipe_works=no
12551
12552 rm -f conftest*
12553 cat > conftest.$ac_ext <<_LT_EOF
12554#ifdef __cplusplus
12555extern "C" {
12556#endif
12557char nm_test_var;
12558void nm_test_func(void);
12559void nm_test_func(void){}
12560#ifdef __cplusplus
12561}
12562#endif
12563int main(){nm_test_var='a';nm_test_func();return(0);}
12564_LT_EOF
12565
12566 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12567 (eval $ac_compile) 2>&5
12568 ac_status=$?
12569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12570 test $ac_status = 0; }; then
12571 # Now try to grab the symbols.
12572 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000012573 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12574 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000012575 ac_status=$?
12576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12577 test $ac_status = 0; } && test -s "$nlist"; then
12578 # Try sorting and uniquifying the output.
12579 if sort "$nlist" | uniq > "$nlist"T; then
12580 mv -f "$nlist"T "$nlist"
12581 else
12582 rm -f "$nlist"T
12583 fi
12584
12585 # Make sure that we snagged all the symbols we need.
12586 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12587 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12588 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000012589/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12590#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12591/* DATA imports from DLLs on WIN32 con't be const, because runtime
12592 relocations are performed -- see ld's documentation on pseudo-relocs. */
12593# define LT_DLSYM_CONST
12594#elif defined(__osf__)
12595/* This system does not cope well with relocations in const data. */
12596# define LT_DLSYM_CONST
12597#else
12598# define LT_DLSYM_CONST const
12599#endif
12600
cristy73bd4a52010-10-05 11:24:23 +000012601#ifdef __cplusplus
12602extern "C" {
12603#endif
12604
12605_LT_EOF
12606 # Now generate the symbol file.
12607 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12608
12609 cat <<_LT_EOF >> conftest.$ac_ext
12610
12611/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000012612LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000012613 const char *name;
12614 void *address;
12615}
12616lt__PROGRAM__LTX_preloaded_symbols[] =
12617{
12618 { "@PROGRAM@", (void *) 0 },
12619_LT_EOF
12620 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12621 cat <<\_LT_EOF >> conftest.$ac_ext
12622 {0, (void *) 0}
12623};
12624
12625/* This works around a problem in FreeBSD linker */
12626#ifdef FREEBSD_WORKAROUND
12627static const void *lt_preloaded_setup() {
12628 return lt__PROGRAM__LTX_preloaded_symbols;
12629}
12630#endif
12631
12632#ifdef __cplusplus
12633}
12634#endif
12635_LT_EOF
12636 # Now try linking the two files.
12637 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000012638 lt_globsym_save_LIBS=$LIBS
12639 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012640 LIBS="conftstm.$ac_objext"
12641 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12642 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12643 (eval $ac_link) 2>&5
12644 ac_status=$?
12645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12646 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12647 pipe_works=yes
12648 fi
cristyda16f162011-02-19 23:52:17 +000012649 LIBS=$lt_globsym_save_LIBS
12650 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012651 else
12652 echo "cannot find nm_test_func in $nlist" >&5
12653 fi
12654 else
12655 echo "cannot find nm_test_var in $nlist" >&5
12656 fi
12657 else
12658 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12659 fi
12660 else
12661 echo "$progname: failed program was:" >&5
12662 cat conftest.$ac_ext >&5
12663 fi
12664 rm -rf conftest* conftst*
12665
12666 # Do not use the global_symbol_pipe unless it works.
12667 if test "$pipe_works" = yes; then
12668 break
12669 else
12670 lt_cv_sys_global_symbol_pipe=
12671 fi
12672done
12673
12674fi
12675
12676if test -z "$lt_cv_sys_global_symbol_pipe"; then
12677 lt_cv_sys_global_symbol_to_cdecl=
12678fi
12679if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12681$as_echo "failed" >&6; }
12682else
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12684$as_echo "ok" >&6; }
12685fi
12686
cristyda16f162011-02-19 23:52:17 +000012687# Response file support.
12688if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12689 nm_file_list_spec='@'
12690elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12691 nm_file_list_spec='@'
12692fi
cristy73bd4a52010-10-05 11:24:23 +000012693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
cristyda16f162011-02-19 23:52:17 +000012714
12715
12716
12717
12718
12719
12720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12721$as_echo_n "checking for sysroot... " >&6; }
12722
12723# Check whether --with-sysroot was given.
12724if test "${with_sysroot+set}" = set; then :
12725 withval=$with_sysroot;
12726else
12727 with_sysroot=no
12728fi
12729
12730
12731lt_sysroot=
12732case ${with_sysroot} in #(
12733 yes)
12734 if test "$GCC" = yes; then
12735 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12736 fi
12737 ;; #(
12738 /*)
12739 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12740 ;; #(
12741 no|'')
12742 ;; #(
12743 *)
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12745$as_echo "${with_sysroot}" >&6; }
12746 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12747 ;;
12748esac
12749
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12751$as_echo "${lt_sysroot:-no}" >&6; }
12752
12753
12754
12755
12756
cristy73bd4a52010-10-05 11:24:23 +000012757# Check whether --enable-libtool-lock was given.
12758if test "${enable_libtool_lock+set}" = set; then :
12759 enableval=$enable_libtool_lock;
12760fi
12761
12762test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12763
12764# Some flags need to be propagated to the compiler or linker for good
12765# libtool support.
12766case $host in
12767ia64-*-hpux*)
12768 # Find out which ABI we are using.
12769 echo 'int i;' > conftest.$ac_ext
12770 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12771 (eval $ac_compile) 2>&5
12772 ac_status=$?
12773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12774 test $ac_status = 0; }; then
12775 case `/usr/bin/file conftest.$ac_objext` in
12776 *ELF-32*)
12777 HPUX_IA64_MODE="32"
12778 ;;
12779 *ELF-64*)
12780 HPUX_IA64_MODE="64"
12781 ;;
12782 esac
12783 fi
12784 rm -rf conftest*
12785 ;;
12786*-*-irix6*)
12787 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000012788 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000012789 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12790 (eval $ac_compile) 2>&5
12791 ac_status=$?
12792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12793 test $ac_status = 0; }; then
12794 if test "$lt_cv_prog_gnu_ld" = yes; then
12795 case `/usr/bin/file conftest.$ac_objext` in
12796 *32-bit*)
12797 LD="${LD-ld} -melf32bsmip"
12798 ;;
12799 *N32*)
12800 LD="${LD-ld} -melf32bmipn32"
12801 ;;
12802 *64-bit*)
12803 LD="${LD-ld} -melf64bmip"
12804 ;;
12805 esac
12806 else
12807 case `/usr/bin/file conftest.$ac_objext` in
12808 *32-bit*)
12809 LD="${LD-ld} -32"
12810 ;;
12811 *N32*)
12812 LD="${LD-ld} -n32"
12813 ;;
12814 *64-bit*)
12815 LD="${LD-ld} -64"
12816 ;;
12817 esac
12818 fi
12819 fi
12820 rm -rf conftest*
12821 ;;
12822
cristyd95b7a52013-10-23 13:12:53 +000012823x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
cristy73bd4a52010-10-05 11:24:23 +000012824s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12825 # Find out which ABI we are using.
12826 echo 'int i;' > conftest.$ac_ext
12827 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12828 (eval $ac_compile) 2>&5
12829 ac_status=$?
12830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12831 test $ac_status = 0; }; then
12832 case `/usr/bin/file conftest.o` in
12833 *32-bit*)
12834 case $host in
12835 x86_64-*kfreebsd*-gnu)
12836 LD="${LD-ld} -m elf_i386_fbsd"
12837 ;;
12838 x86_64-*linux*)
12839 LD="${LD-ld} -m elf_i386"
12840 ;;
cristya5bda012013-11-03 18:05:38 +000012841 powerpc64le-*linux*)
cristyd95b7a52013-10-23 13:12:53 +000012842 LD="${LD-ld} -m elf32lppclinux"
12843 ;;
cristya5bda012013-11-03 18:05:38 +000012844 powerpc64-*linux*)
cristy73bd4a52010-10-05 11:24:23 +000012845 LD="${LD-ld} -m elf32ppclinux"
12846 ;;
12847 s390x-*linux*)
12848 LD="${LD-ld} -m elf_s390"
12849 ;;
12850 sparc64-*linux*)
12851 LD="${LD-ld} -m elf32_sparc"
12852 ;;
12853 esac
12854 ;;
12855 *64-bit*)
12856 case $host in
12857 x86_64-*kfreebsd*-gnu)
12858 LD="${LD-ld} -m elf_x86_64_fbsd"
12859 ;;
12860 x86_64-*linux*)
12861 LD="${LD-ld} -m elf_x86_64"
12862 ;;
cristyd95b7a52013-10-23 13:12:53 +000012863 powerpcle-*linux*)
12864 LD="${LD-ld} -m elf64lppc"
12865 ;;
12866 powerpc-*linux*)
cristy73bd4a52010-10-05 11:24:23 +000012867 LD="${LD-ld} -m elf64ppc"
12868 ;;
12869 s390*-*linux*|s390*-*tpf*)
12870 LD="${LD-ld} -m elf64_s390"
12871 ;;
12872 sparc*-*linux*)
12873 LD="${LD-ld} -m elf64_sparc"
12874 ;;
12875 esac
12876 ;;
12877 esac
12878 fi
12879 rm -rf conftest*
12880 ;;
12881
12882*-*-sco3.2v5*)
12883 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12884 SAVE_CFLAGS="$CFLAGS"
12885 CFLAGS="$CFLAGS -belf"
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12887$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012888if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012889 $as_echo_n "(cached) " >&6
12890else
12891 ac_ext=c
12892ac_cpp='$CPP $CPPFLAGS'
12893ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12894ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12895ac_compiler_gnu=$ac_cv_c_compiler_gnu
12896
12897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12898/* end confdefs.h. */
12899
12900int
12901main ()
12902{
12903
12904 ;
12905 return 0;
12906}
12907_ACEOF
12908if ac_fn_c_try_link "$LINENO"; then :
12909 lt_cv_cc_needs_belf=yes
12910else
12911 lt_cv_cc_needs_belf=no
12912fi
12913rm -f core conftest.err conftest.$ac_objext \
12914 conftest$ac_exeext conftest.$ac_ext
12915 ac_ext=c
12916ac_cpp='$CPP $CPPFLAGS'
12917ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12918ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12919ac_compiler_gnu=$ac_cv_c_compiler_gnu
12920
12921fi
12922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12923$as_echo "$lt_cv_cc_needs_belf" >&6; }
12924 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12925 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12926 CFLAGS="$SAVE_CFLAGS"
12927 fi
12928 ;;
cristy99bd5232011-12-07 14:38:20 +000012929*-*solaris*)
cristy73bd4a52010-10-05 11:24:23 +000012930 # Find out which ABI we are using.
12931 echo 'int i;' > conftest.$ac_ext
12932 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12933 (eval $ac_compile) 2>&5
12934 ac_status=$?
12935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12936 test $ac_status = 0; }; then
12937 case `/usr/bin/file conftest.o` in
12938 *64-bit*)
12939 case $lt_cv_prog_gnu_ld in
cristy99bd5232011-12-07 14:38:20 +000012940 yes*)
12941 case $host in
12942 i?86-*-solaris*)
12943 LD="${LD-ld} -m elf_x86_64"
12944 ;;
12945 sparc*-*-solaris*)
12946 LD="${LD-ld} -m elf64_sparc"
12947 ;;
12948 esac
12949 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
12950 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12951 LD="${LD-ld}_sol2"
12952 fi
12953 ;;
cristy73bd4a52010-10-05 11:24:23 +000012954 *)
12955 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12956 LD="${LD-ld} -64"
12957 fi
12958 ;;
12959 esac
12960 ;;
12961 esac
12962 fi
12963 rm -rf conftest*
12964 ;;
12965esac
12966
12967need_locks="$enable_libtool_lock"
12968
cristyda16f162011-02-19 23:52:17 +000012969if test -n "$ac_tool_prefix"; then
12970 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
12971set dummy ${ac_tool_prefix}mt; ac_word=$2
12972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12973$as_echo_n "checking for $ac_word... " >&6; }
12974if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
12975 $as_echo_n "(cached) " >&6
12976else
12977 if test -n "$MANIFEST_TOOL"; then
12978 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
12979else
12980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12981for as_dir in $PATH
12982do
12983 IFS=$as_save_IFS
12984 test -z "$as_dir" && as_dir=.
12985 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012987 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
12988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12989 break 2
12990 fi
12991done
12992 done
12993IFS=$as_save_IFS
12994
12995fi
12996fi
12997MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
12998if test -n "$MANIFEST_TOOL"; then
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13000$as_echo "$MANIFEST_TOOL" >&6; }
13001else
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13003$as_echo "no" >&6; }
13004fi
13005
13006
13007fi
13008if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13009 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13010 # Extract the first word of "mt", so it can be a program name with args.
13011set dummy mt; ac_word=$2
13012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13013$as_echo_n "checking for $ac_word... " >&6; }
13014if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13015 $as_echo_n "(cached) " >&6
13016else
13017 if test -n "$ac_ct_MANIFEST_TOOL"; then
13018 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13019else
13020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13021for as_dir in $PATH
13022do
13023 IFS=$as_save_IFS
13024 test -z "$as_dir" && as_dir=.
13025 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000013027 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13029 break 2
13030 fi
13031done
13032 done
13033IFS=$as_save_IFS
13034
13035fi
13036fi
13037ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13038if test -n "$ac_ct_MANIFEST_TOOL"; then
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13040$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13041else
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13043$as_echo "no" >&6; }
13044fi
13045
13046 if test "x$ac_ct_MANIFEST_TOOL" = x; then
13047 MANIFEST_TOOL=":"
13048 else
13049 case $cross_compiling:$ac_tool_warned in
13050yes:)
13051{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13052$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13053ac_tool_warned=yes ;;
13054esac
13055 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13056 fi
13057else
13058 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13059fi
13060
13061test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13063$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13064if ${lt_cv_path_mainfest_tool+:} false; then :
13065 $as_echo_n "(cached) " >&6
13066else
13067 lt_cv_path_mainfest_tool=no
13068 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13069 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13070 cat conftest.err >&5
13071 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13072 lt_cv_path_mainfest_tool=yes
13073 fi
13074 rm -f conftest*
13075fi
13076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13077$as_echo "$lt_cv_path_mainfest_tool" >&6; }
13078if test "x$lt_cv_path_mainfest_tool" != xyes; then
13079 MANIFEST_TOOL=:
13080fi
13081
13082
13083
13084
13085
cristy73bd4a52010-10-05 11:24:23 +000013086
13087 case $host_os in
13088 rhapsody* | darwin*)
13089 if test -n "$ac_tool_prefix"; then
13090 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13091set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13093$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013094if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013095 $as_echo_n "(cached) " >&6
13096else
13097 if test -n "$DSYMUTIL"; then
13098 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13099else
13100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13101for as_dir in $PATH
13102do
13103 IFS=$as_save_IFS
13104 test -z "$as_dir" && as_dir=.
13105 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013107 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13109 break 2
13110 fi
13111done
13112 done
13113IFS=$as_save_IFS
13114
13115fi
13116fi
13117DSYMUTIL=$ac_cv_prog_DSYMUTIL
13118if test -n "$DSYMUTIL"; then
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13120$as_echo "$DSYMUTIL" >&6; }
13121else
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13123$as_echo "no" >&6; }
13124fi
13125
13126
13127fi
13128if test -z "$ac_cv_prog_DSYMUTIL"; then
13129 ac_ct_DSYMUTIL=$DSYMUTIL
13130 # Extract the first word of "dsymutil", so it can be a program name with args.
13131set dummy dsymutil; ac_word=$2
13132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13133$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013134if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013135 $as_echo_n "(cached) " >&6
13136else
13137 if test -n "$ac_ct_DSYMUTIL"; then
13138 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13139else
13140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13141for as_dir in $PATH
13142do
13143 IFS=$as_save_IFS
13144 test -z "$as_dir" && as_dir=.
13145 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013147 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13149 break 2
13150 fi
13151done
13152 done
13153IFS=$as_save_IFS
13154
13155fi
13156fi
13157ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13158if test -n "$ac_ct_DSYMUTIL"; then
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13160$as_echo "$ac_ct_DSYMUTIL" >&6; }
13161else
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13163$as_echo "no" >&6; }
13164fi
13165
13166 if test "x$ac_ct_DSYMUTIL" = x; then
13167 DSYMUTIL=":"
13168 else
13169 case $cross_compiling:$ac_tool_warned in
13170yes:)
13171{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13172$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13173ac_tool_warned=yes ;;
13174esac
13175 DSYMUTIL=$ac_ct_DSYMUTIL
13176 fi
13177else
13178 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13179fi
13180
13181 if test -n "$ac_tool_prefix"; then
13182 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13183set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13185$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013186if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013187 $as_echo_n "(cached) " >&6
13188else
13189 if test -n "$NMEDIT"; then
13190 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13191else
13192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13193for as_dir in $PATH
13194do
13195 IFS=$as_save_IFS
13196 test -z "$as_dir" && as_dir=.
13197 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013199 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13201 break 2
13202 fi
13203done
13204 done
13205IFS=$as_save_IFS
13206
13207fi
13208fi
13209NMEDIT=$ac_cv_prog_NMEDIT
13210if test -n "$NMEDIT"; then
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13212$as_echo "$NMEDIT" >&6; }
13213else
13214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13215$as_echo "no" >&6; }
13216fi
13217
13218
13219fi
13220if test -z "$ac_cv_prog_NMEDIT"; then
13221 ac_ct_NMEDIT=$NMEDIT
13222 # Extract the first word of "nmedit", so it can be a program name with args.
13223set dummy nmedit; ac_word=$2
13224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13225$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013226if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013227 $as_echo_n "(cached) " >&6
13228else
13229 if test -n "$ac_ct_NMEDIT"; then
13230 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13231else
13232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13233for as_dir in $PATH
13234do
13235 IFS=$as_save_IFS
13236 test -z "$as_dir" && as_dir=.
13237 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013239 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13241 break 2
13242 fi
13243done
13244 done
13245IFS=$as_save_IFS
13246
13247fi
13248fi
13249ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13250if test -n "$ac_ct_NMEDIT"; then
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13252$as_echo "$ac_ct_NMEDIT" >&6; }
13253else
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13255$as_echo "no" >&6; }
13256fi
13257
13258 if test "x$ac_ct_NMEDIT" = x; then
13259 NMEDIT=":"
13260 else
13261 case $cross_compiling:$ac_tool_warned in
13262yes:)
13263{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13264$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13265ac_tool_warned=yes ;;
13266esac
13267 NMEDIT=$ac_ct_NMEDIT
13268 fi
13269else
13270 NMEDIT="$ac_cv_prog_NMEDIT"
13271fi
13272
13273 if test -n "$ac_tool_prefix"; then
13274 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13275set dummy ${ac_tool_prefix}lipo; 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; }
cristyda16f162011-02-19 23:52:17 +000013278if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013279 $as_echo_n "(cached) " >&6
13280else
13281 if test -n "$LIPO"; then
13282 ac_cv_prog_LIPO="$LIPO" # 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
cristy73bd4a52010-10-05 11:24:23 +000013291 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
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
13301LIPO=$ac_cv_prog_LIPO
13302if test -n "$LIPO"; then
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13304$as_echo "$LIPO" >&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_LIPO"; then
13313 ac_ct_LIPO=$LIPO
13314 # Extract the first word of "lipo", so it can be a program name with args.
13315set dummy lipo; 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; }
cristyda16f162011-02-19 23:52:17 +000013318if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013319 $as_echo_n "(cached) " >&6
13320else
13321 if test -n "$ac_ct_LIPO"; then
13322 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # 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
cristy73bd4a52010-10-05 11:24:23 +000013331 ac_cv_prog_ac_ct_LIPO="lipo"
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_LIPO=$ac_cv_prog_ac_ct_LIPO
13342if test -n "$ac_ct_LIPO"; then
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13344$as_echo "$ac_ct_LIPO" >&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_LIPO" = x; then
13351 LIPO=":"
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 LIPO=$ac_ct_LIPO
13360 fi
13361else
13362 LIPO="$ac_cv_prog_LIPO"
13363fi
13364
13365 if test -n "$ac_tool_prefix"; then
13366 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13367set dummy ${ac_tool_prefix}otool; ac_word=$2
13368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13369$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013370if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013371 $as_echo_n "(cached) " >&6
13372else
13373 if test -n "$OTOOL"; then
13374 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13375else
13376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13377for as_dir in $PATH
13378do
13379 IFS=$as_save_IFS
13380 test -z "$as_dir" && as_dir=.
13381 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013383 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13385 break 2
13386 fi
13387done
13388 done
13389IFS=$as_save_IFS
13390
13391fi
13392fi
13393OTOOL=$ac_cv_prog_OTOOL
13394if test -n "$OTOOL"; then
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13396$as_echo "$OTOOL" >&6; }
13397else
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13399$as_echo "no" >&6; }
13400fi
13401
13402
13403fi
13404if test -z "$ac_cv_prog_OTOOL"; then
13405 ac_ct_OTOOL=$OTOOL
13406 # Extract the first word of "otool", so it can be a program name with args.
13407set dummy otool; ac_word=$2
13408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13409$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013410if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013411 $as_echo_n "(cached) " >&6
13412else
13413 if test -n "$ac_ct_OTOOL"; then
13414 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13415else
13416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13417for as_dir in $PATH
13418do
13419 IFS=$as_save_IFS
13420 test -z "$as_dir" && as_dir=.
13421 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013423 ac_cv_prog_ac_ct_OTOOL="otool"
13424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13425 break 2
13426 fi
13427done
13428 done
13429IFS=$as_save_IFS
13430
13431fi
13432fi
13433ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13434if test -n "$ac_ct_OTOOL"; then
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13436$as_echo "$ac_ct_OTOOL" >&6; }
13437else
13438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13439$as_echo "no" >&6; }
13440fi
13441
13442 if test "x$ac_ct_OTOOL" = x; then
13443 OTOOL=":"
13444 else
13445 case $cross_compiling:$ac_tool_warned in
13446yes:)
13447{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13448$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13449ac_tool_warned=yes ;;
13450esac
13451 OTOOL=$ac_ct_OTOOL
13452 fi
13453else
13454 OTOOL="$ac_cv_prog_OTOOL"
13455fi
13456
13457 if test -n "$ac_tool_prefix"; then
13458 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13459set dummy ${ac_tool_prefix}otool64; ac_word=$2
13460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13461$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013462if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013463 $as_echo_n "(cached) " >&6
13464else
13465 if test -n "$OTOOL64"; then
13466 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13467else
13468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13469for as_dir in $PATH
13470do
13471 IFS=$as_save_IFS
13472 test -z "$as_dir" && as_dir=.
13473 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013475 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13477 break 2
13478 fi
13479done
13480 done
13481IFS=$as_save_IFS
13482
13483fi
13484fi
13485OTOOL64=$ac_cv_prog_OTOOL64
13486if test -n "$OTOOL64"; then
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13488$as_echo "$OTOOL64" >&6; }
13489else
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13491$as_echo "no" >&6; }
13492fi
13493
13494
13495fi
13496if test -z "$ac_cv_prog_OTOOL64"; then
13497 ac_ct_OTOOL64=$OTOOL64
13498 # Extract the first word of "otool64", so it can be a program name with args.
13499set dummy otool64; ac_word=$2
13500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13501$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013502if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013503 $as_echo_n "(cached) " >&6
13504else
13505 if test -n "$ac_ct_OTOOL64"; then
13506 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13507else
13508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13509for as_dir in $PATH
13510do
13511 IFS=$as_save_IFS
13512 test -z "$as_dir" && as_dir=.
13513 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013515 ac_cv_prog_ac_ct_OTOOL64="otool64"
13516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13517 break 2
13518 fi
13519done
13520 done
13521IFS=$as_save_IFS
13522
13523fi
13524fi
13525ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13526if test -n "$ac_ct_OTOOL64"; then
13527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13528$as_echo "$ac_ct_OTOOL64" >&6; }
13529else
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13531$as_echo "no" >&6; }
13532fi
13533
13534 if test "x$ac_ct_OTOOL64" = x; then
13535 OTOOL64=":"
13536 else
13537 case $cross_compiling:$ac_tool_warned in
13538yes:)
13539{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13540$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13541ac_tool_warned=yes ;;
13542esac
13543 OTOOL64=$ac_ct_OTOOL64
13544 fi
13545else
13546 OTOOL64="$ac_cv_prog_OTOOL64"
13547fi
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13576$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013577if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013578 $as_echo_n "(cached) " >&6
13579else
13580 lt_cv_apple_cc_single_mod=no
13581 if test -z "${LT_MULTI_MODULE}"; then
13582 # By default we will add the -single_module flag. You can override
13583 # by either setting the environment variable LT_MULTI_MODULE
13584 # non-empty at configure time, or by adding -multi_module to the
13585 # link flags.
13586 rm -rf libconftest.dylib*
13587 echo "int foo(void){return 1;}" > conftest.c
13588 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13589-dynamiclib -Wl,-single_module conftest.c" >&5
13590 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13591 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13592 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013593 # If there is a non-empty error log, and "single_module"
13594 # appears in it, assume the flag caused a linker warning
13595 if test -s conftest.err && $GREP single_module conftest.err; then
13596 cat conftest.err >&5
13597 # Otherwise, if the output was created with a 0 exit code from
13598 # the compiler, it worked.
13599 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
cristy73bd4a52010-10-05 11:24:23 +000013600 lt_cv_apple_cc_single_mod=yes
13601 else
13602 cat conftest.err >&5
13603 fi
13604 rm -rf libconftest.dylib*
13605 rm -f conftest.*
13606 fi
13607fi
13608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13609$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013610
cristy73bd4a52010-10-05 11:24:23 +000013611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13612$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013613if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013614 $as_echo_n "(cached) " >&6
13615else
13616 lt_cv_ld_exported_symbols_list=no
13617 save_LDFLAGS=$LDFLAGS
13618 echo "_main" > conftest.sym
13619 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13621/* end confdefs.h. */
13622
13623int
13624main ()
13625{
13626
13627 ;
13628 return 0;
13629}
13630_ACEOF
13631if ac_fn_c_try_link "$LINENO"; then :
13632 lt_cv_ld_exported_symbols_list=yes
13633else
13634 lt_cv_ld_exported_symbols_list=no
13635fi
13636rm -f core conftest.err conftest.$ac_objext \
13637 conftest$ac_exeext conftest.$ac_ext
13638 LDFLAGS="$save_LDFLAGS"
13639
13640fi
13641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13642$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013643
cristy0c60a692010-11-04 01:09:47 +000013644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13645$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013646if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000013647 $as_echo_n "(cached) " >&6
13648else
13649 lt_cv_ld_force_load=no
13650 cat > conftest.c << _LT_EOF
13651int forced_loaded() { return 2;}
13652_LT_EOF
13653 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13654 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13655 echo "$AR cru libconftest.a conftest.o" >&5
13656 $AR cru libconftest.a conftest.o 2>&5
13657 echo "$RANLIB libconftest.a" >&5
13658 $RANLIB libconftest.a 2>&5
13659 cat > conftest.c << _LT_EOF
13660int main() { return 0;}
13661_LT_EOF
13662 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13663 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13664 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013665 if test -s conftest.err && $GREP force_load conftest.err; then
13666 cat conftest.err >&5
13667 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
cristy0c60a692010-11-04 01:09:47 +000013668 lt_cv_ld_force_load=yes
13669 else
13670 cat conftest.err >&5
13671 fi
13672 rm -f conftest.err libconftest.a conftest conftest.c
13673 rm -rf conftest.dSYM
13674
13675fi
13676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13677$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000013678 case $host_os in
13679 rhapsody* | darwin1.[012])
13680 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13681 darwin1.*)
13682 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13683 darwin*) # darwin 5.x on
13684 # if running on 10.5 or later, the deployment target defaults
13685 # to the OS version, if on x86, and 10.4, the deployment
13686 # target defaults to 10.4. Don't you love it?
13687 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13688 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13689 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13690 10.[012]*)
13691 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13692 10.*)
13693 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13694 esac
13695 ;;
13696 esac
13697 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13698 _lt_dar_single_mod='$single_module'
13699 fi
13700 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13701 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13702 else
13703 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13704 fi
cristy0c60a692010-11-04 01:09:47 +000013705 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000013706 _lt_dsymutil='~$DSYMUTIL $lib || :'
13707 else
13708 _lt_dsymutil=
13709 fi
13710 ;;
13711 esac
13712
13713for ac_header in dlfcn.h
13714do :
13715 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13716"
cristyda16f162011-02-19 23:52:17 +000013717if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000013718 cat >>confdefs.h <<_ACEOF
13719#define HAVE_DLFCN_H 1
13720_ACEOF
13721
13722fi
13723
13724done
13725
13726
13727
cristy73bd4a52010-10-05 11:24:23 +000013728
cristyda16f162011-02-19 23:52:17 +000013729func_stripname_cnf ()
13730{
13731 case ${2} in
13732 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13733 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13734 esac
13735} # func_stripname_cnf
13736
13737
13738
cristy73bd4a52010-10-05 11:24:23 +000013739
13740
13741# Set options
13742enable_win32_dll=yes
13743
13744case $host in
cristy0c60a692010-11-04 01:09:47 +000013745*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000013746 if test -n "$ac_tool_prefix"; then
13747 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
13748set dummy ${ac_tool_prefix}as; ac_word=$2
13749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13750$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013751if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013752 $as_echo_n "(cached) " >&6
13753else
13754 if test -n "$AS"; then
13755 ac_cv_prog_AS="$AS" # Let the user override the test.
13756else
13757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13758for as_dir in $PATH
13759do
13760 IFS=$as_save_IFS
13761 test -z "$as_dir" && as_dir=.
13762 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013764 ac_cv_prog_AS="${ac_tool_prefix}as"
13765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13766 break 2
13767 fi
13768done
13769 done
13770IFS=$as_save_IFS
13771
13772fi
13773fi
13774AS=$ac_cv_prog_AS
13775if test -n "$AS"; then
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
13777$as_echo "$AS" >&6; }
13778else
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13780$as_echo "no" >&6; }
13781fi
13782
13783
13784fi
13785if test -z "$ac_cv_prog_AS"; then
13786 ac_ct_AS=$AS
13787 # Extract the first word of "as", so it can be a program name with args.
13788set dummy as; ac_word=$2
13789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13790$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013791if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013792 $as_echo_n "(cached) " >&6
13793else
13794 if test -n "$ac_ct_AS"; then
13795 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
13796else
13797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13798for as_dir in $PATH
13799do
13800 IFS=$as_save_IFS
13801 test -z "$as_dir" && as_dir=.
13802 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013804 ac_cv_prog_ac_ct_AS="as"
13805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13806 break 2
13807 fi
13808done
13809 done
13810IFS=$as_save_IFS
13811
13812fi
13813fi
13814ac_ct_AS=$ac_cv_prog_ac_ct_AS
13815if test -n "$ac_ct_AS"; then
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
13817$as_echo "$ac_ct_AS" >&6; }
13818else
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13820$as_echo "no" >&6; }
13821fi
13822
13823 if test "x$ac_ct_AS" = x; then
13824 AS="false"
13825 else
13826 case $cross_compiling:$ac_tool_warned in
13827yes:)
13828{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13829$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13830ac_tool_warned=yes ;;
13831esac
13832 AS=$ac_ct_AS
13833 fi
13834else
13835 AS="$ac_cv_prog_AS"
13836fi
13837
13838 if test -n "$ac_tool_prefix"; then
13839 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13840set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13842$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013843if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013844 $as_echo_n "(cached) " >&6
13845else
13846 if test -n "$DLLTOOL"; then
13847 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13848else
13849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13850for as_dir in $PATH
13851do
13852 IFS=$as_save_IFS
13853 test -z "$as_dir" && as_dir=.
13854 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013856 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13858 break 2
13859 fi
13860done
13861 done
13862IFS=$as_save_IFS
13863
13864fi
13865fi
13866DLLTOOL=$ac_cv_prog_DLLTOOL
13867if test -n "$DLLTOOL"; then
13868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
13869$as_echo "$DLLTOOL" >&6; }
13870else
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13872$as_echo "no" >&6; }
13873fi
13874
13875
13876fi
13877if test -z "$ac_cv_prog_DLLTOOL"; then
13878 ac_ct_DLLTOOL=$DLLTOOL
13879 # Extract the first word of "dlltool", so it can be a program name with args.
13880set dummy dlltool; ac_word=$2
13881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13882$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013883if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013884 $as_echo_n "(cached) " >&6
13885else
13886 if test -n "$ac_ct_DLLTOOL"; then
13887 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13888else
13889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13890for as_dir in $PATH
13891do
13892 IFS=$as_save_IFS
13893 test -z "$as_dir" && as_dir=.
13894 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013896 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13898 break 2
13899 fi
13900done
13901 done
13902IFS=$as_save_IFS
13903
13904fi
13905fi
13906ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13907if test -n "$ac_ct_DLLTOOL"; then
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
13909$as_echo "$ac_ct_DLLTOOL" >&6; }
13910else
13911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13912$as_echo "no" >&6; }
13913fi
13914
13915 if test "x$ac_ct_DLLTOOL" = x; then
13916 DLLTOOL="false"
13917 else
13918 case $cross_compiling:$ac_tool_warned in
13919yes:)
13920{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13921$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13922ac_tool_warned=yes ;;
13923esac
13924 DLLTOOL=$ac_ct_DLLTOOL
13925 fi
13926else
13927 DLLTOOL="$ac_cv_prog_DLLTOOL"
13928fi
13929
13930 if test -n "$ac_tool_prefix"; then
13931 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13932set dummy ${ac_tool_prefix}objdump; ac_word=$2
13933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13934$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013935if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013936 $as_echo_n "(cached) " >&6
13937else
13938 if test -n "$OBJDUMP"; then
13939 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13940else
13941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13942for as_dir in $PATH
13943do
13944 IFS=$as_save_IFS
13945 test -z "$as_dir" && as_dir=.
13946 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013948 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13950 break 2
13951 fi
13952done
13953 done
13954IFS=$as_save_IFS
13955
13956fi
13957fi
13958OBJDUMP=$ac_cv_prog_OBJDUMP
13959if test -n "$OBJDUMP"; then
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13961$as_echo "$OBJDUMP" >&6; }
13962else
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13964$as_echo "no" >&6; }
13965fi
13966
13967
13968fi
13969if test -z "$ac_cv_prog_OBJDUMP"; then
13970 ac_ct_OBJDUMP=$OBJDUMP
13971 # Extract the first word of "objdump", so it can be a program name with args.
13972set dummy objdump; ac_word=$2
13973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13974$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013975if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013976 $as_echo_n "(cached) " >&6
13977else
13978 if test -n "$ac_ct_OBJDUMP"; then
13979 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13980else
13981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13982for as_dir in $PATH
13983do
13984 IFS=$as_save_IFS
13985 test -z "$as_dir" && as_dir=.
13986 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013988 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13990 break 2
13991 fi
13992done
13993 done
13994IFS=$as_save_IFS
13995
13996fi
13997fi
13998ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13999if test -n "$ac_ct_OBJDUMP"; then
14000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
14001$as_echo "$ac_ct_OBJDUMP" >&6; }
14002else
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14004$as_echo "no" >&6; }
14005fi
14006
14007 if test "x$ac_ct_OBJDUMP" = x; then
14008 OBJDUMP="false"
14009 else
14010 case $cross_compiling:$ac_tool_warned in
14011yes:)
14012{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14013$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14014ac_tool_warned=yes ;;
14015esac
14016 OBJDUMP=$ac_ct_OBJDUMP
14017 fi
14018else
14019 OBJDUMP="$ac_cv_prog_OBJDUMP"
14020fi
14021
14022 ;;
14023esac
14024
14025test -z "$AS" && AS=as
14026
14027
14028
14029
14030
14031test -z "$DLLTOOL" && DLLTOOL=dlltool
14032
14033
14034
14035
14036
14037test -z "$OBJDUMP" && OBJDUMP=objdump
14038
14039
14040
14041
14042
14043
14044
14045
14046
14047 # Check whether --enable-shared was given.
14048if test "${enable_shared+set}" = set; then :
14049 enableval=$enable_shared; p=${PACKAGE-default}
14050 case $enableval in
14051 yes) enable_shared=yes ;;
14052 no) enable_shared=no ;;
14053 *)
14054 enable_shared=no
14055 # Look at the argument we got. We use all the common list separators.
14056 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14057 for pkg in $enableval; do
14058 IFS="$lt_save_ifs"
14059 if test "X$pkg" = "X$p"; then
14060 enable_shared=yes
14061 fi
14062 done
14063 IFS="$lt_save_ifs"
14064 ;;
14065 esac
14066else
14067 enable_shared=yes
14068fi
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078 # Check whether --enable-static was given.
14079if test "${enable_static+set}" = set; then :
14080 enableval=$enable_static; p=${PACKAGE-default}
14081 case $enableval in
14082 yes) enable_static=yes ;;
14083 no) enable_static=no ;;
14084 *)
14085 enable_static=no
14086 # Look at the argument we got. We use all the common list separators.
14087 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14088 for pkg in $enableval; do
14089 IFS="$lt_save_ifs"
14090 if test "X$pkg" = "X$p"; then
14091 enable_static=yes
14092 fi
14093 done
14094 IFS="$lt_save_ifs"
14095 ;;
14096 esac
14097else
14098 enable_static=yes
14099fi
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110# Check whether --with-pic was given.
14111if test "${with_pic+set}" = set; then :
cristy99bd5232011-12-07 14:38:20 +000014112 withval=$with_pic; lt_p=${PACKAGE-default}
14113 case $withval in
14114 yes|no) pic_mode=$withval ;;
14115 *)
14116 pic_mode=default
14117 # Look at the argument we got. We use all the common list separators.
14118 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14119 for lt_pkg in $withval; do
14120 IFS="$lt_save_ifs"
14121 if test "X$lt_pkg" = "X$lt_p"; then
14122 pic_mode=yes
14123 fi
14124 done
14125 IFS="$lt_save_ifs"
14126 ;;
14127 esac
cristy73bd4a52010-10-05 11:24:23 +000014128else
14129 pic_mode=default
14130fi
14131
14132
14133test -z "$pic_mode" && pic_mode=default
14134
14135
14136
14137
14138
14139
14140
14141 # Check whether --enable-fast-install was given.
14142if test "${enable_fast_install+set}" = set; then :
14143 enableval=$enable_fast_install; p=${PACKAGE-default}
14144 case $enableval in
14145 yes) enable_fast_install=yes ;;
14146 no) enable_fast_install=no ;;
14147 *)
14148 enable_fast_install=no
14149 # Look at the argument we got. We use all the common list separators.
14150 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14151 for pkg in $enableval; do
14152 IFS="$lt_save_ifs"
14153 if test "X$pkg" = "X$p"; then
14154 enable_fast_install=yes
14155 fi
14156 done
14157 IFS="$lt_save_ifs"
14158 ;;
14159 esac
14160else
14161 enable_fast_install=yes
14162fi
14163
14164
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174# This can be used to rebuild libtool when needed
14175LIBTOOL_DEPS="$ltmain"
14176
14177# Always use our own libtool.
14178LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203
cristy0c60a692010-11-04 01:09:47 +000014204
cristy99bd5232011-12-07 14:38:20 +000014205
14206
14207
14208
cristy73bd4a52010-10-05 11:24:23 +000014209test -z "$LN_S" && LN_S="ln -s"
14210
14211
14212
14213
14214
14215
14216
14217
14218
14219
14220
14221
14222
14223
14224if test -n "${ZSH_VERSION+set}" ; then
14225 setopt NO_GLOB_SUBST
14226fi
14227
14228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14229$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014230if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014231 $as_echo_n "(cached) " >&6
14232else
14233 rm -f .libs 2>/dev/null
14234mkdir .libs 2>/dev/null
14235if test -d .libs; then
14236 lt_cv_objdir=.libs
14237else
14238 # MS-DOS does not allow filenames that begin with a dot.
14239 lt_cv_objdir=_libs
14240fi
14241rmdir .libs 2>/dev/null
14242fi
14243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14244$as_echo "$lt_cv_objdir" >&6; }
14245objdir=$lt_cv_objdir
14246
14247
14248
14249
14250
14251cat >>confdefs.h <<_ACEOF
14252#define LT_OBJDIR "$lt_cv_objdir/"
14253_ACEOF
14254
14255
14256
14257
cristy73bd4a52010-10-05 11:24:23 +000014258case $host_os in
14259aix3*)
14260 # AIX sometimes has problems with the GCC collect2 program. For some
14261 # reason, if we set the COLLECT_NAMES environment variable, the problems
14262 # vanish in a puff of smoke.
14263 if test "X${COLLECT_NAMES+set}" != Xset; then
14264 COLLECT_NAMES=
14265 export COLLECT_NAMES
14266 fi
14267 ;;
14268esac
14269
cristy73bd4a52010-10-05 11:24:23 +000014270# Global variables:
14271ofile=libtool
14272can_build_shared=yes
14273
14274# All known linkers require a `.a' archive for static linking (except MSVC,
14275# which needs '.lib').
14276libext=a
14277
14278with_gnu_ld="$lt_cv_prog_gnu_ld"
14279
14280old_CC="$CC"
14281old_CFLAGS="$CFLAGS"
14282
14283# Set sane defaults for various variables
14284test -z "$CC" && CC=cc
14285test -z "$LTCC" && LTCC=$CC
14286test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14287test -z "$LD" && LD=ld
14288test -z "$ac_objext" && ac_objext=o
14289
14290for cc_temp in $compiler""; do
14291 case $cc_temp in
14292 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14293 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14294 \-*) ;;
14295 *) break;;
14296 esac
14297done
cristy0c60a692010-11-04 01:09:47 +000014298cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000014299
14300
14301# Only perform the check for file, if the check method requires it
14302test -z "$MAGIC_CMD" && MAGIC_CMD=file
14303case $deplibs_check_method in
14304file_magic*)
14305 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14307$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014308if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014309 $as_echo_n "(cached) " >&6
14310else
14311 case $MAGIC_CMD in
14312[\\/*] | ?:[\\/]*)
14313 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14314 ;;
14315*)
14316 lt_save_MAGIC_CMD="$MAGIC_CMD"
14317 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14318 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14319 for ac_dir in $ac_dummy; do
14320 IFS="$lt_save_ifs"
14321 test -z "$ac_dir" && ac_dir=.
14322 if test -f $ac_dir/${ac_tool_prefix}file; then
14323 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14324 if test -n "$file_magic_test_file"; then
14325 case $deplibs_check_method in
14326 "file_magic "*)
14327 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14328 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14329 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14330 $EGREP "$file_magic_regex" > /dev/null; then
14331 :
14332 else
14333 cat <<_LT_EOF 1>&2
14334
14335*** Warning: the command libtool uses to detect shared libraries,
14336*** $file_magic_cmd, produces output that libtool cannot recognize.
14337*** The result is that libtool may fail to recognize shared libraries
14338*** as such. This will affect the creation of libtool libraries that
14339*** depend on shared libraries, but programs linked with such libtool
14340*** libraries will work regardless of this problem. Nevertheless, you
14341*** may want to report the problem to your system manager and/or to
14342*** bug-libtool@gnu.org
14343
14344_LT_EOF
14345 fi ;;
14346 esac
14347 fi
14348 break
14349 fi
14350 done
14351 IFS="$lt_save_ifs"
14352 MAGIC_CMD="$lt_save_MAGIC_CMD"
14353 ;;
14354esac
14355fi
14356
14357MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14358if test -n "$MAGIC_CMD"; then
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14360$as_echo "$MAGIC_CMD" >&6; }
14361else
14362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14363$as_echo "no" >&6; }
14364fi
14365
14366
14367
14368
14369
14370if test -z "$lt_cv_path_MAGIC_CMD"; then
14371 if test -n "$ac_tool_prefix"; then
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14373$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014374if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014375 $as_echo_n "(cached) " >&6
14376else
14377 case $MAGIC_CMD in
14378[\\/*] | ?:[\\/]*)
14379 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14380 ;;
14381*)
14382 lt_save_MAGIC_CMD="$MAGIC_CMD"
14383 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14384 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14385 for ac_dir in $ac_dummy; do
14386 IFS="$lt_save_ifs"
14387 test -z "$ac_dir" && ac_dir=.
14388 if test -f $ac_dir/file; then
14389 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14390 if test -n "$file_magic_test_file"; then
14391 case $deplibs_check_method in
14392 "file_magic "*)
14393 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14394 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14395 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14396 $EGREP "$file_magic_regex" > /dev/null; then
14397 :
14398 else
14399 cat <<_LT_EOF 1>&2
14400
14401*** Warning: the command libtool uses to detect shared libraries,
14402*** $file_magic_cmd, produces output that libtool cannot recognize.
14403*** The result is that libtool may fail to recognize shared libraries
14404*** as such. This will affect the creation of libtool libraries that
14405*** depend on shared libraries, but programs linked with such libtool
14406*** libraries will work regardless of this problem. Nevertheless, you
14407*** may want to report the problem to your system manager and/or to
14408*** bug-libtool@gnu.org
14409
14410_LT_EOF
14411 fi ;;
14412 esac
14413 fi
14414 break
14415 fi
14416 done
14417 IFS="$lt_save_ifs"
14418 MAGIC_CMD="$lt_save_MAGIC_CMD"
14419 ;;
14420esac
14421fi
14422
14423MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14424if test -n "$MAGIC_CMD"; then
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14426$as_echo "$MAGIC_CMD" >&6; }
14427else
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14429$as_echo "no" >&6; }
14430fi
14431
14432
14433 else
14434 MAGIC_CMD=:
14435 fi
14436fi
14437
14438 fi
14439 ;;
14440esac
14441
14442# Use C for the default configuration in the libtool script
14443
14444lt_save_CC="$CC"
14445ac_ext=c
14446ac_cpp='$CPP $CPPFLAGS'
14447ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14448ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14449ac_compiler_gnu=$ac_cv_c_compiler_gnu
14450
14451
14452# Source file extension for C test sources.
14453ac_ext=c
14454
14455# Object file extension for compiled C test sources.
14456objext=o
14457objext=$objext
14458
14459# Code to be used in simple compile tests
14460lt_simple_compile_test_code="int some_variable = 0;"
14461
14462# Code to be used in simple link tests
14463lt_simple_link_test_code='int main(){return(0);}'
14464
14465
14466
14467
14468
14469
14470
14471# If no C compiler was specified, use CC.
14472LTCC=${LTCC-"$CC"}
14473
14474# If no C compiler flags were specified, use CFLAGS.
14475LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14476
14477# Allow CC to be a program name with arguments.
14478compiler=$CC
14479
14480# Save the default compiler, since it gets overwritten when the other
14481# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14482compiler_DEFAULT=$CC
14483
14484# save warnings/boilerplate of simple test code
14485ac_outfile=conftest.$ac_objext
14486echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14487eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14488_lt_compiler_boilerplate=`cat conftest.err`
14489$RM conftest*
14490
14491ac_outfile=conftest.$ac_objext
14492echo "$lt_simple_link_test_code" >conftest.$ac_ext
14493eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14494_lt_linker_boilerplate=`cat conftest.err`
14495$RM -r conftest*
14496
14497
14498## CAVEAT EMPTOR:
14499## There is no encapsulation within the following macros, do not change
14500## the running order or otherwise move them around unless you know exactly
14501## what you are doing...
14502if test -n "$compiler"; then
14503
14504lt_prog_compiler_no_builtin_flag=
14505
14506if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000014507 case $cc_basename in
14508 nvcc*)
14509 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14510 *)
14511 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14512 esac
cristy73bd4a52010-10-05 11:24:23 +000014513
14514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14515$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014516if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014517 $as_echo_n "(cached) " >&6
14518else
14519 lt_cv_prog_compiler_rtti_exceptions=no
14520 ac_outfile=conftest.$ac_objext
14521 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14522 lt_compiler_flag="-fno-rtti -fno-exceptions"
14523 # Insert the option either (1) after the last *FLAGS variable, or
14524 # (2) before a word containing "conftest.", or (3) at the end.
14525 # Note that $ac_compile itself does not contain backslashes and begins
14526 # with a dollar sign (not a hyphen), so the echo should work correctly.
14527 # The option is referenced via a variable to avoid confusing sed.
14528 lt_compile=`echo "$ac_compile" | $SED \
14529 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14530 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14531 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014532 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014533 (eval "$lt_compile" 2>conftest.err)
14534 ac_status=$?
14535 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014537 if (exit $ac_status) && test -s "$ac_outfile"; then
14538 # The compiler can only warn and ignore the option if not recognized
14539 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014540 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014541 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14542 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14543 lt_cv_prog_compiler_rtti_exceptions=yes
14544 fi
14545 fi
14546 $RM conftest*
14547
14548fi
14549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14550$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14551
14552if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14553 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14554else
14555 :
14556fi
14557
14558fi
14559
14560
14561
14562
14563
14564
14565 lt_prog_compiler_wl=
14566lt_prog_compiler_pic=
14567lt_prog_compiler_static=
14568
cristy73bd4a52010-10-05 11:24:23 +000014569
14570 if test "$GCC" = yes; then
14571 lt_prog_compiler_wl='-Wl,'
14572 lt_prog_compiler_static='-static'
14573
14574 case $host_os in
14575 aix*)
14576 # All AIX code is PIC.
14577 if test "$host_cpu" = ia64; then
14578 # AIX 5 now supports IA64 processor
14579 lt_prog_compiler_static='-Bstatic'
14580 fi
14581 ;;
14582
14583 amigaos*)
14584 case $host_cpu in
14585 powerpc)
14586 # see comment about AmigaOS4 .so support
14587 lt_prog_compiler_pic='-fPIC'
14588 ;;
14589 m68k)
14590 # FIXME: we need at least 68020 code to build shared libraries, but
14591 # adding the `-m68020' flag to GCC prevents building anything better,
14592 # like `-m68040'.
14593 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14594 ;;
14595 esac
14596 ;;
14597
14598 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14599 # PIC is the default for these OSes.
14600 ;;
14601
14602 mingw* | cygwin* | pw32* | os2* | cegcc*)
14603 # This hack is so that the source file can tell whether it is being
14604 # built for inclusion in a dll (and should export symbols for example).
14605 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14606 # (--disable-auto-import) libraries
14607 lt_prog_compiler_pic='-DDLL_EXPORT'
14608 ;;
14609
14610 darwin* | rhapsody*)
14611 # PIC is the default on this platform
14612 # Common symbols not allowed in MH_DYLIB files
14613 lt_prog_compiler_pic='-fno-common'
14614 ;;
14615
cristy0c60a692010-11-04 01:09:47 +000014616 haiku*)
14617 # PIC is the default for Haiku.
14618 # The "-static" flag exists, but is broken.
14619 lt_prog_compiler_static=
14620 ;;
14621
cristy73bd4a52010-10-05 11:24:23 +000014622 hpux*)
14623 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14624 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14625 # sets the default TLS model and affects inlining.
14626 case $host_cpu in
14627 hppa*64*)
14628 # +Z the default
14629 ;;
14630 *)
14631 lt_prog_compiler_pic='-fPIC'
14632 ;;
14633 esac
14634 ;;
14635
14636 interix[3-9]*)
14637 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14638 # Instead, we relocate shared libraries at runtime.
14639 ;;
14640
14641 msdosdjgpp*)
14642 # Just because we use GCC doesn't mean we suddenly get shared libraries
14643 # on systems that don't support them.
14644 lt_prog_compiler_can_build_shared=no
14645 enable_shared=no
14646 ;;
14647
14648 *nto* | *qnx*)
14649 # QNX uses GNU C++, but need to define -shared option too, otherwise
14650 # it will coredump.
14651 lt_prog_compiler_pic='-fPIC -shared'
14652 ;;
14653
14654 sysv4*MP*)
14655 if test -d /usr/nec; then
14656 lt_prog_compiler_pic=-Kconform_pic
14657 fi
14658 ;;
14659
14660 *)
14661 lt_prog_compiler_pic='-fPIC'
14662 ;;
14663 esac
cristy0c60a692010-11-04 01:09:47 +000014664
14665 case $cc_basename in
14666 nvcc*) # Cuda Compiler Driver 2.2
14667 lt_prog_compiler_wl='-Xlinker '
cristy99bd5232011-12-07 14:38:20 +000014668 if test -n "$lt_prog_compiler_pic"; then
14669 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14670 fi
cristy0c60a692010-11-04 01:09:47 +000014671 ;;
14672 esac
cristy73bd4a52010-10-05 11:24:23 +000014673 else
14674 # PORTME Check for flag to pass linker flags through the system compiler.
14675 case $host_os in
14676 aix*)
14677 lt_prog_compiler_wl='-Wl,'
14678 if test "$host_cpu" = ia64; then
14679 # AIX 5 now supports IA64 processor
14680 lt_prog_compiler_static='-Bstatic'
14681 else
14682 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14683 fi
14684 ;;
14685
14686 mingw* | cygwin* | pw32* | os2* | cegcc*)
14687 # This hack is so that the source file can tell whether it is being
14688 # built for inclusion in a dll (and should export symbols for example).
14689 lt_prog_compiler_pic='-DDLL_EXPORT'
14690 ;;
14691
14692 hpux9* | hpux10* | hpux11*)
14693 lt_prog_compiler_wl='-Wl,'
14694 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14695 # not for PA HP-UX.
14696 case $host_cpu in
14697 hppa*64*|ia64*)
14698 # +Z the default
14699 ;;
14700 *)
14701 lt_prog_compiler_pic='+Z'
14702 ;;
14703 esac
14704 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14705 lt_prog_compiler_static='${wl}-a ${wl}archive'
14706 ;;
14707
14708 irix5* | irix6* | nonstopux*)
14709 lt_prog_compiler_wl='-Wl,'
14710 # PIC (with -KPIC) is the default.
14711 lt_prog_compiler_static='-non_shared'
14712 ;;
14713
cristy0c60a692010-11-04 01:09:47 +000014714 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014715 case $cc_basename in
14716 # old Intel for x86_64 which still supported -KPIC.
14717 ecc*)
14718 lt_prog_compiler_wl='-Wl,'
14719 lt_prog_compiler_pic='-KPIC'
14720 lt_prog_compiler_static='-static'
14721 ;;
14722 # icc used to be incompatible with GCC.
14723 # ICC 10 doesn't accept -KPIC any more.
14724 icc* | ifort*)
14725 lt_prog_compiler_wl='-Wl,'
14726 lt_prog_compiler_pic='-fPIC'
14727 lt_prog_compiler_static='-static'
14728 ;;
14729 # Lahey Fortran 8.1.
14730 lf95*)
14731 lt_prog_compiler_wl='-Wl,'
14732 lt_prog_compiler_pic='--shared'
14733 lt_prog_compiler_static='--static'
14734 ;;
cristyda16f162011-02-19 23:52:17 +000014735 nagfor*)
14736 # NAG Fortran compiler
14737 lt_prog_compiler_wl='-Wl,-Wl,,'
14738 lt_prog_compiler_pic='-PIC'
14739 lt_prog_compiler_static='-Bstatic'
14740 ;;
cristy0c60a692010-11-04 01:09:47 +000014741 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000014742 # Portland Group compilers (*not* the Pentium gcc compiler,
14743 # which looks to be a dead project)
14744 lt_prog_compiler_wl='-Wl,'
14745 lt_prog_compiler_pic='-fpic'
14746 lt_prog_compiler_static='-Bstatic'
14747 ;;
14748 ccc*)
14749 lt_prog_compiler_wl='-Wl,'
14750 # All Alpha code is PIC.
14751 lt_prog_compiler_static='-non_shared'
14752 ;;
cristy0c60a692010-11-04 01:09:47 +000014753 xl* | bgxl* | bgf* | mpixl*)
14754 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000014755 lt_prog_compiler_wl='-Wl,'
14756 lt_prog_compiler_pic='-qpic'
14757 lt_prog_compiler_static='-qstaticlink'
14758 ;;
14759 *)
14760 case `$CC -V 2>&1 | sed 5q` in
cristy99bd5232011-12-07 14:38:20 +000014761 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
cristy0c60a692010-11-04 01:09:47 +000014762 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14763 lt_prog_compiler_pic='-KPIC'
14764 lt_prog_compiler_static='-Bstatic'
14765 lt_prog_compiler_wl=''
14766 ;;
cristy99bd5232011-12-07 14:38:20 +000014767 *Sun\ F* | *Sun*Fortran*)
14768 lt_prog_compiler_pic='-KPIC'
14769 lt_prog_compiler_static='-Bstatic'
14770 lt_prog_compiler_wl='-Qoption ld '
14771 ;;
cristy73bd4a52010-10-05 11:24:23 +000014772 *Sun\ C*)
14773 # Sun C 5.9
14774 lt_prog_compiler_pic='-KPIC'
14775 lt_prog_compiler_static='-Bstatic'
14776 lt_prog_compiler_wl='-Wl,'
14777 ;;
cristy99bd5232011-12-07 14:38:20 +000014778 *Intel*\ [CF]*Compiler*)
14779 lt_prog_compiler_wl='-Wl,'
14780 lt_prog_compiler_pic='-fPIC'
14781 lt_prog_compiler_static='-static'
14782 ;;
14783 *Portland\ Group*)
14784 lt_prog_compiler_wl='-Wl,'
14785 lt_prog_compiler_pic='-fpic'
14786 lt_prog_compiler_static='-Bstatic'
14787 ;;
cristy73bd4a52010-10-05 11:24:23 +000014788 esac
14789 ;;
14790 esac
14791 ;;
14792
14793 newsos6)
14794 lt_prog_compiler_pic='-KPIC'
14795 lt_prog_compiler_static='-Bstatic'
14796 ;;
14797
14798 *nto* | *qnx*)
14799 # QNX uses GNU C++, but need to define -shared option too, otherwise
14800 # it will coredump.
14801 lt_prog_compiler_pic='-fPIC -shared'
14802 ;;
14803
14804 osf3* | osf4* | osf5*)
14805 lt_prog_compiler_wl='-Wl,'
14806 # All OSF/1 code is PIC.
14807 lt_prog_compiler_static='-non_shared'
14808 ;;
14809
14810 rdos*)
14811 lt_prog_compiler_static='-non_shared'
14812 ;;
14813
14814 solaris*)
14815 lt_prog_compiler_pic='-KPIC'
14816 lt_prog_compiler_static='-Bstatic'
14817 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014818 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000014819 lt_prog_compiler_wl='-Qoption ld ';;
14820 *)
14821 lt_prog_compiler_wl='-Wl,';;
14822 esac
14823 ;;
14824
14825 sunos4*)
14826 lt_prog_compiler_wl='-Qoption ld '
14827 lt_prog_compiler_pic='-PIC'
14828 lt_prog_compiler_static='-Bstatic'
14829 ;;
14830
14831 sysv4 | sysv4.2uw2* | sysv4.3*)
14832 lt_prog_compiler_wl='-Wl,'
14833 lt_prog_compiler_pic='-KPIC'
14834 lt_prog_compiler_static='-Bstatic'
14835 ;;
14836
14837 sysv4*MP*)
14838 if test -d /usr/nec ;then
14839 lt_prog_compiler_pic='-Kconform_pic'
14840 lt_prog_compiler_static='-Bstatic'
14841 fi
14842 ;;
14843
14844 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14845 lt_prog_compiler_wl='-Wl,'
14846 lt_prog_compiler_pic='-KPIC'
14847 lt_prog_compiler_static='-Bstatic'
14848 ;;
14849
14850 unicos*)
14851 lt_prog_compiler_wl='-Wl,'
14852 lt_prog_compiler_can_build_shared=no
14853 ;;
14854
14855 uts4*)
14856 lt_prog_compiler_pic='-pic'
14857 lt_prog_compiler_static='-Bstatic'
14858 ;;
14859
14860 *)
14861 lt_prog_compiler_can_build_shared=no
14862 ;;
14863 esac
14864 fi
14865
14866case $host_os in
14867 # For platforms which do not support PIC, -DPIC is meaningless:
14868 *djgpp*)
14869 lt_prog_compiler_pic=
14870 ;;
14871 *)
14872 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14873 ;;
14874esac
cristy73bd4a52010-10-05 11:24:23 +000014875
cristyda16f162011-02-19 23:52:17 +000014876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14877$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14878if ${lt_cv_prog_compiler_pic+:} false; then :
14879 $as_echo_n "(cached) " >&6
14880else
14881 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14882fi
14883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14884$as_echo "$lt_cv_prog_compiler_pic" >&6; }
14885lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000014886
14887#
14888# Check to make sure the PIC flag actually works.
14889#
14890if test -n "$lt_prog_compiler_pic"; then
14891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14892$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014893if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014894 $as_echo_n "(cached) " >&6
14895else
14896 lt_cv_prog_compiler_pic_works=no
14897 ac_outfile=conftest.$ac_objext
14898 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14899 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14900 # Insert the option either (1) after the last *FLAGS variable, or
14901 # (2) before a word containing "conftest.", or (3) at the end.
14902 # Note that $ac_compile itself does not contain backslashes and begins
14903 # with a dollar sign (not a hyphen), so the echo should work correctly.
14904 # The option is referenced via a variable to avoid confusing sed.
14905 lt_compile=`echo "$ac_compile" | $SED \
14906 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14907 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14908 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014909 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014910 (eval "$lt_compile" 2>conftest.err)
14911 ac_status=$?
14912 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014914 if (exit $ac_status) && test -s "$ac_outfile"; then
14915 # The compiler can only warn and ignore the option if not recognized
14916 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014917 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014918 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14919 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14920 lt_cv_prog_compiler_pic_works=yes
14921 fi
14922 fi
14923 $RM conftest*
14924
14925fi
14926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14927$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14928
14929if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14930 case $lt_prog_compiler_pic in
14931 "" | " "*) ;;
14932 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14933 esac
14934else
14935 lt_prog_compiler_pic=
14936 lt_prog_compiler_can_build_shared=no
14937fi
14938
14939fi
14940
14941
14942
14943
14944
14945
cristyda16f162011-02-19 23:52:17 +000014946
14947
14948
14949
14950
cristy73bd4a52010-10-05 11:24:23 +000014951#
14952# Check to make sure the static flag actually works.
14953#
14954wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14956$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014957if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014958 $as_echo_n "(cached) " >&6
14959else
14960 lt_cv_prog_compiler_static_works=no
14961 save_LDFLAGS="$LDFLAGS"
14962 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14963 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14964 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14965 # The linker can only warn and ignore the option if not recognized
14966 # So say no if there are warnings
14967 if test -s conftest.err; then
14968 # Append any errors to the config.log.
14969 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000014970 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014971 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14972 if diff conftest.exp conftest.er2 >/dev/null; then
14973 lt_cv_prog_compiler_static_works=yes
14974 fi
14975 else
14976 lt_cv_prog_compiler_static_works=yes
14977 fi
14978 fi
14979 $RM -r conftest*
14980 LDFLAGS="$save_LDFLAGS"
14981
14982fi
14983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14984$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14985
14986if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14987 :
14988else
14989 lt_prog_compiler_static=
14990fi
14991
14992
14993
14994
14995
14996
14997
14998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14999$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015000if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015001 $as_echo_n "(cached) " >&6
15002else
15003 lt_cv_prog_compiler_c_o=no
15004 $RM -r conftest 2>/dev/null
15005 mkdir conftest
15006 cd conftest
15007 mkdir out
15008 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15009
15010 lt_compiler_flag="-o out/conftest2.$ac_objext"
15011 # Insert the option either (1) after the last *FLAGS variable, or
15012 # (2) before a word containing "conftest.", or (3) at the end.
15013 # Note that $ac_compile itself does not contain backslashes and begins
15014 # with a dollar sign (not a hyphen), so the echo should work correctly.
15015 lt_compile=`echo "$ac_compile" | $SED \
15016 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15017 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15018 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000015019 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000015020 (eval "$lt_compile" 2>out/conftest.err)
15021 ac_status=$?
15022 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000015023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000015024 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15025 then
15026 # The compiler can only warn and ignore the option if not recognized
15027 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000015028 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000015029 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15030 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15031 lt_cv_prog_compiler_c_o=yes
15032 fi
15033 fi
15034 chmod u+w . 2>&5
15035 $RM conftest*
15036 # SGI C++ compiler will create directory out/ii_files/ for
15037 # template instantiation
15038 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15039 $RM out/* && rmdir out
15040 cd ..
15041 $RM -r conftest
15042 $RM conftest*
15043
15044fi
15045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15046$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15047
15048
15049
15050
15051
15052
15053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15054$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015055if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015056 $as_echo_n "(cached) " >&6
15057else
15058 lt_cv_prog_compiler_c_o=no
15059 $RM -r conftest 2>/dev/null
15060 mkdir conftest
15061 cd conftest
15062 mkdir out
15063 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15064
15065 lt_compiler_flag="-o out/conftest2.$ac_objext"
15066 # Insert the option either (1) after the last *FLAGS variable, or
15067 # (2) before a word containing "conftest.", or (3) at the end.
15068 # Note that $ac_compile itself does not contain backslashes and begins
15069 # with a dollar sign (not a hyphen), so the echo should work correctly.
15070 lt_compile=`echo "$ac_compile" | $SED \
15071 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15072 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15073 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000015074 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000015075 (eval "$lt_compile" 2>out/conftest.err)
15076 ac_status=$?
15077 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000015078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000015079 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15080 then
15081 # The compiler can only warn and ignore the option if not recognized
15082 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000015083 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000015084 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15085 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15086 lt_cv_prog_compiler_c_o=yes
15087 fi
15088 fi
15089 chmod u+w . 2>&5
15090 $RM conftest*
15091 # SGI C++ compiler will create directory out/ii_files/ for
15092 # template instantiation
15093 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15094 $RM out/* && rmdir out
15095 cd ..
15096 $RM -r conftest
15097 $RM conftest*
15098
15099fi
15100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15101$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15102
15103
15104
15105
15106hard_links="nottested"
15107if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15108 # do not overwrite the value of need_locks provided by the user
15109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15110$as_echo_n "checking if we can lock with hard links... " >&6; }
15111 hard_links=yes
15112 $RM conftest*
15113 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15114 touch conftest.a
15115 ln conftest.a conftest.b 2>&5 || hard_links=no
15116 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15118$as_echo "$hard_links" >&6; }
15119 if test "$hard_links" = no; then
15120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15121$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15122 need_locks=warn
15123 fi
15124else
15125 need_locks=no
15126fi
15127
15128
15129
15130
15131
15132
15133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15134$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15135
15136 runpath_var=
15137 allow_undefined_flag=
15138 always_export_symbols=no
15139 archive_cmds=
15140 archive_expsym_cmds=
15141 compiler_needs_object=no
15142 enable_shared_with_static_runtimes=no
15143 export_dynamic_flag_spec=
15144 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15145 hardcode_automatic=no
15146 hardcode_direct=no
15147 hardcode_direct_absolute=no
15148 hardcode_libdir_flag_spec=
cristy73bd4a52010-10-05 11:24:23 +000015149 hardcode_libdir_separator=
15150 hardcode_minus_L=no
15151 hardcode_shlibpath_var=unsupported
15152 inherit_rpath=no
15153 link_all_deplibs=unknown
15154 module_cmds=
15155 module_expsym_cmds=
15156 old_archive_from_new_cmds=
15157 old_archive_from_expsyms_cmds=
15158 thread_safe_flag_spec=
15159 whole_archive_flag_spec=
15160 # include_expsyms should be a list of space-separated symbols to be *always*
15161 # included in the symbol list
15162 include_expsyms=
15163 # exclude_expsyms can be an extended regexp of symbols to exclude
15164 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15165 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15166 # as well as any symbol that contains `d'.
15167 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15168 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15169 # platforms (ab)use it in PIC code, but their linkers get confused if
15170 # the symbol is explicitly referenced. Since portable code cannot
15171 # rely on this symbol name, it's probably fine to never include it in
15172 # preloaded symbol tables.
15173 # Exclude shared library initialization/finalization symbols.
15174 extract_expsyms_cmds=
15175
15176 case $host_os in
15177 cygwin* | mingw* | pw32* | cegcc*)
15178 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15179 # When not using gcc, we currently assume that we are using
15180 # Microsoft Visual C++.
15181 if test "$GCC" != yes; then
15182 with_gnu_ld=no
15183 fi
15184 ;;
15185 interix*)
15186 # we just hope/assume this is gcc and not c89 (= MSVC++)
15187 with_gnu_ld=yes
15188 ;;
15189 openbsd*)
15190 with_gnu_ld=no
15191 ;;
15192 esac
15193
15194 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000015195
15196 # On some targets, GNU ld is compatible enough with the native linker
15197 # that we're better off using the native interface for both.
15198 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000015199 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000015200 case $host_os in
15201 aix*)
15202 # The AIX port of GNU ld has always aspired to compatibility
15203 # with the native linker. However, as the warning in the GNU ld
15204 # block says, versions before 2.19.5* couldn't really create working
15205 # shared libraries, regardless of the interface used.
15206 case `$LD -v 2>&1` in
15207 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15208 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15209 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15210 *)
15211 lt_use_gnu_ld_interface=yes
15212 ;;
15213 esac
15214 ;;
15215 *)
15216 lt_use_gnu_ld_interface=yes
15217 ;;
15218 esac
15219 fi
15220
15221 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000015222 # If archive_cmds runs LD, not CC, wlarc should be empty
15223 wlarc='${wl}'
15224
15225 # Set some defaults for GNU ld with shared library support. These
15226 # are reset later if shared libraries are not supported. Putting them
15227 # here allows them to be overridden if necessary.
15228 runpath_var=LD_RUN_PATH
15229 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15230 export_dynamic_flag_spec='${wl}--export-dynamic'
15231 # ancient GNU ld didn't support --whole-archive et. al.
15232 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15233 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15234 else
15235 whole_archive_flag_spec=
15236 fi
15237 supports_anon_versioning=no
15238 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000015239 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000015240 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15241 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15242 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15243 *\ 2.11.*) ;; # other 2.11 versions
15244 *) supports_anon_versioning=yes ;;
15245 esac
15246
15247 # See if GNU ld supports shared libraries.
15248 case $host_os in
15249 aix[3-9]*)
15250 # On AIX/PPC, the GNU linker is very broken
15251 if test "$host_cpu" != ia64; then
15252 ld_shlibs=no
15253 cat <<_LT_EOF 1>&2
15254
cristy0c60a692010-11-04 01:09:47 +000015255*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000015256*** to be unable to reliably create shared libraries on AIX.
15257*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000015258*** really care for shared libraries, you may want to install binutils
15259*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15260*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000015261
15262_LT_EOF
15263 fi
15264 ;;
15265
15266 amigaos*)
15267 case $host_cpu in
15268 powerpc)
15269 # see comment about AmigaOS4 .so support
15270 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15271 archive_expsym_cmds=''
15272 ;;
15273 m68k)
15274 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)'
15275 hardcode_libdir_flag_spec='-L$libdir'
15276 hardcode_minus_L=yes
15277 ;;
15278 esac
15279 ;;
15280
15281 beos*)
15282 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15283 allow_undefined_flag=unsupported
15284 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15285 # support --undefined. This deserves some investigation. FIXME
15286 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15287 else
15288 ld_shlibs=no
15289 fi
15290 ;;
15291
15292 cygwin* | mingw* | pw32* | cegcc*)
15293 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15294 # as there is no search path for DLLs.
15295 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000015296 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000015297 allow_undefined_flag=unsupported
15298 always_export_symbols=no
15299 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000015300 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'
15301 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 +000015302
15303 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15304 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15305 # If the export-symbols file already is a .def file (1st line
15306 # is EXPORTS), use it as is; otherwise, prepend...
15307 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15308 cp $export_symbols $output_objdir/$soname.def;
15309 else
15310 echo EXPORTS > $output_objdir/$soname.def;
15311 cat $export_symbols >> $output_objdir/$soname.def;
15312 fi~
15313 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15314 else
15315 ld_shlibs=no
15316 fi
15317 ;;
15318
cristy0c60a692010-11-04 01:09:47 +000015319 haiku*)
15320 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15321 link_all_deplibs=yes
15322 ;;
15323
cristy73bd4a52010-10-05 11:24:23 +000015324 interix[3-9]*)
15325 hardcode_direct=no
15326 hardcode_shlibpath_var=no
15327 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15328 export_dynamic_flag_spec='${wl}-E'
15329 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15330 # Instead, shared libraries are loaded at an image base (0x10000000 by
15331 # default) and relocated if they conflict, which is a slow very memory
15332 # consuming and fragmenting process. To avoid this, we pick a random,
15333 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15334 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15335 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15336 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'
15337 ;;
15338
cristy0c60a692010-11-04 01:09:47 +000015339 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000015340 tmp_diet=no
15341 if test "$host_os" = linux-dietlibc; then
15342 case $cc_basename in
15343 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15344 esac
15345 fi
15346 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15347 && test "$tmp_diet" = no
15348 then
cristyda16f162011-02-19 23:52:17 +000015349 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000015350 tmp_sharedflag='-shared'
15351 case $cc_basename,$host_cpu in
15352 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000015353 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
cristy73bd4a52010-10-05 11:24:23 +000015354 tmp_addflag=' $pic_flag'
15355 ;;
cristy0c60a692010-11-04 01:09:47 +000015356 pgf77* | pgf90* | pgf95* | pgfortran*)
15357 # Portland Group f77 and f90 compilers
15358 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 +000015359 tmp_addflag=' $pic_flag -Mnomain' ;;
15360 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15361 tmp_addflag=' -i_dynamic' ;;
15362 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15363 tmp_addflag=' -i_dynamic -nofor_main' ;;
15364 ifc* | ifort*) # Intel Fortran compiler
15365 tmp_addflag=' -nofor_main' ;;
15366 lf95*) # Lahey Fortran 8.1
15367 whole_archive_flag_spec=
15368 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000015369 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000015370 tmp_sharedflag='-qmkshrobj'
15371 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000015372 nvcc*) # Cuda Compiler Driver 2.2
15373 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'
15374 compiler_needs_object=yes
15375 ;;
cristy73bd4a52010-10-05 11:24:23 +000015376 esac
15377 case `$CC -V 2>&1 | sed 5q` in
15378 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000015379 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 +000015380 compiler_needs_object=yes
15381 tmp_sharedflag='-G' ;;
15382 *Sun\ F*) # Sun Fortran 8.3
15383 tmp_sharedflag='-G' ;;
15384 esac
15385 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15386
15387 if test "x$supports_anon_versioning" = xyes; then
15388 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15389 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15390 echo "local: *; };" >> $output_objdir/$libname.ver~
15391 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15392 fi
15393
15394 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000015395 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000015396 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15397 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
cristy99bd5232011-12-07 14:38:20 +000015398 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cristy0c60a692010-11-04 01:09:47 +000015399 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015400 if test "x$supports_anon_versioning" = xyes; then
15401 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15402 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15403 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000015404 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015405 fi
15406 ;;
15407 esac
15408 else
15409 ld_shlibs=no
15410 fi
15411 ;;
15412
15413 netbsd*)
15414 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15415 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15416 wlarc=
15417 else
cristyda16f162011-02-19 23:52:17 +000015418 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15419 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 +000015420 fi
15421 ;;
15422
15423 solaris*)
15424 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15425 ld_shlibs=no
15426 cat <<_LT_EOF 1>&2
15427
15428*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15429*** create shared libraries on Solaris systems. Therefore, libtool
15430*** is disabling shared libraries support. We urge you to upgrade GNU
15431*** binutils to release 2.9.1 or newer. Another option is to modify
15432*** your PATH or compiler configuration so that the native linker is
15433*** used, and then restart.
15434
15435_LT_EOF
15436 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000015437 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15438 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 +000015439 else
15440 ld_shlibs=no
15441 fi
15442 ;;
15443
15444 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15445 case `$LD -v 2>&1` in
15446 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15447 ld_shlibs=no
15448 cat <<_LT_EOF 1>&2
15449
15450*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15451*** reliably create shared libraries on SCO systems. Therefore, libtool
15452*** is disabling shared libraries support. We urge you to upgrade GNU
15453*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15454*** your PATH or compiler configuration so that the native linker is
15455*** used, and then restart.
15456
15457_LT_EOF
15458 ;;
15459 *)
15460 # For security reasons, it is highly recommended that you always
15461 # use absolute paths for naming shared libraries, and exclude the
15462 # DT_RUNPATH tag from executables and libraries. But doing so
15463 # requires that you compile everything twice, which is a pain.
15464 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15465 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15466 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15467 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15468 else
15469 ld_shlibs=no
15470 fi
15471 ;;
15472 esac
15473 ;;
15474
15475 sunos4*)
15476 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15477 wlarc=
15478 hardcode_direct=yes
15479 hardcode_shlibpath_var=no
15480 ;;
15481
15482 *)
15483 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000015484 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15485 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 +000015486 else
15487 ld_shlibs=no
15488 fi
15489 ;;
15490 esac
15491
15492 if test "$ld_shlibs" = no; then
15493 runpath_var=
15494 hardcode_libdir_flag_spec=
15495 export_dynamic_flag_spec=
15496 whole_archive_flag_spec=
15497 fi
15498 else
15499 # PORTME fill in a description of your system's linker (not GNU ld)
15500 case $host_os in
15501 aix3*)
15502 allow_undefined_flag=unsupported
15503 always_export_symbols=yes
15504 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'
15505 # Note: this linker hardcodes the directories in LIBPATH if there
15506 # are no directories specified by -L.
15507 hardcode_minus_L=yes
15508 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15509 # Neither direct hardcoding nor static linking is supported with a
15510 # broken collect2.
15511 hardcode_direct=unsupported
15512 fi
15513 ;;
15514
15515 aix[4-9]*)
15516 if test "$host_cpu" = ia64; then
15517 # On IA64, the linker does run time linking by default, so we don't
15518 # have to do anything special.
15519 aix_use_runtimelinking=no
15520 exp_sym_flag='-Bexport'
15521 no_entry_flag=""
15522 else
15523 # If we're using GNU nm, then we don't want the "-C" option.
15524 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000015525 # Also, AIX nm treats weak defined symbols like other global
15526 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000015527 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000015528 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 +000015529 else
15530 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'
15531 fi
15532 aix_use_runtimelinking=no
15533
15534 # Test if we are trying to use run time linking or normal
15535 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15536 # need to do runtime linking.
15537 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15538 for ld_flag in $LDFLAGS; do
15539 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15540 aix_use_runtimelinking=yes
15541 break
15542 fi
15543 done
15544 ;;
15545 esac
15546
15547 exp_sym_flag='-bexport'
15548 no_entry_flag='-bnoentry'
15549 fi
15550
15551 # When large executables or shared objects are built, AIX ld can
15552 # have problems creating the table of contents. If linking a library
15553 # or program results in "error TOC overflow" add -mminimal-toc to
15554 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15555 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15556
15557 archive_cmds=''
15558 hardcode_direct=yes
15559 hardcode_direct_absolute=yes
15560 hardcode_libdir_separator=':'
15561 link_all_deplibs=yes
15562 file_list_spec='${wl}-f,'
15563
15564 if test "$GCC" = yes; then
15565 case $host_os in aix4.[012]|aix4.[012].*)
15566 # We only want to do this on AIX 4.2 and lower, the check
15567 # below for broken collect2 doesn't work under 4.3+
15568 collect2name=`${CC} -print-prog-name=collect2`
15569 if test -f "$collect2name" &&
15570 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15571 then
15572 # We have reworked collect2
15573 :
15574 else
15575 # We have old collect2
15576 hardcode_direct=unsupported
15577 # It fails to find uninstalled libraries when the uninstalled
15578 # path is not listed in the libpath. Setting hardcode_minus_L
15579 # to unsupported forces relinking
15580 hardcode_minus_L=yes
15581 hardcode_libdir_flag_spec='-L$libdir'
15582 hardcode_libdir_separator=
15583 fi
15584 ;;
15585 esac
15586 shared_flag='-shared'
15587 if test "$aix_use_runtimelinking" = yes; then
15588 shared_flag="$shared_flag "'${wl}-G'
15589 fi
15590 else
15591 # not using gcc
15592 if test "$host_cpu" = ia64; then
15593 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15594 # chokes on -Wl,-G. The following line is correct:
15595 shared_flag='-G'
15596 else
15597 if test "$aix_use_runtimelinking" = yes; then
15598 shared_flag='${wl}-G'
15599 else
15600 shared_flag='${wl}-bM:SRE'
15601 fi
15602 fi
15603 fi
15604
15605 export_dynamic_flag_spec='${wl}-bexpall'
15606 # It seems that -bexpall does not export symbols beginning with
15607 # underscore (_), so it is better to generate a list of symbols to export.
15608 always_export_symbols=yes
15609 if test "$aix_use_runtimelinking" = yes; then
15610 # Warning - without using the other runtime loading flags (-brtl),
15611 # -berok will link without error, but may produce a broken library.
15612 allow_undefined_flag='-berok'
15613 # Determine the default libpath from the value encoded in an
15614 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015615 if test "${lt_cv_aix_libpath+set}" = set; then
15616 aix_libpath=$lt_cv_aix_libpath
15617else
15618 if ${lt_cv_aix_libpath_+:} false; then :
15619 $as_echo_n "(cached) " >&6
15620else
15621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015622/* end confdefs.h. */
15623
15624int
15625main ()
15626{
15627
15628 ;
15629 return 0;
15630}
15631_ACEOF
15632if ac_fn_c_try_link "$LINENO"; then :
15633
cristyda16f162011-02-19 23:52:17 +000015634 lt_aix_libpath_sed='
15635 /Import File Strings/,/^$/ {
15636 /^0/ {
15637 s/^0 *\([^ ]*\) *$/\1/
15638 p
15639 }
15640 }'
15641 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15642 # Check for a 64-bit object if we didn't find anything.
15643 if test -z "$lt_cv_aix_libpath_"; then
15644 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15645 fi
cristy73bd4a52010-10-05 11:24:23 +000015646fi
15647rm -f core conftest.err conftest.$ac_objext \
15648 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015649 if test -z "$lt_cv_aix_libpath_"; then
15650 lt_cv_aix_libpath_="/usr/lib:/lib"
15651 fi
15652
15653fi
15654
15655 aix_libpath=$lt_cv_aix_libpath_
15656fi
cristy73bd4a52010-10-05 11:24:23 +000015657
15658 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000015659 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 +000015660 else
15661 if test "$host_cpu" = ia64; then
15662 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15663 allow_undefined_flag="-z nodefs"
15664 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"
15665 else
15666 # Determine the default libpath from the value encoded in an
15667 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015668 if test "${lt_cv_aix_libpath+set}" = set; then
15669 aix_libpath=$lt_cv_aix_libpath
15670else
15671 if ${lt_cv_aix_libpath_+:} false; then :
15672 $as_echo_n "(cached) " >&6
15673else
15674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015675/* end confdefs.h. */
15676
15677int
15678main ()
15679{
15680
15681 ;
15682 return 0;
15683}
15684_ACEOF
15685if ac_fn_c_try_link "$LINENO"; then :
15686
cristyda16f162011-02-19 23:52:17 +000015687 lt_aix_libpath_sed='
15688 /Import File Strings/,/^$/ {
15689 /^0/ {
15690 s/^0 *\([^ ]*\) *$/\1/
15691 p
15692 }
15693 }'
15694 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15695 # Check for a 64-bit object if we didn't find anything.
15696 if test -z "$lt_cv_aix_libpath_"; then
15697 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15698 fi
cristy73bd4a52010-10-05 11:24:23 +000015699fi
15700rm -f core conftest.err conftest.$ac_objext \
15701 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015702 if test -z "$lt_cv_aix_libpath_"; then
15703 lt_cv_aix_libpath_="/usr/lib:/lib"
15704 fi
15705
15706fi
15707
15708 aix_libpath=$lt_cv_aix_libpath_
15709fi
cristy73bd4a52010-10-05 11:24:23 +000015710
15711 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15712 # Warning - without using the other run time loading flags,
15713 # -berok will link without error, but may produce a broken library.
15714 no_undefined_flag=' ${wl}-bernotok'
15715 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000015716 if test "$with_gnu_ld" = yes; then
15717 # We only use this code for GNU lds that support --whole-archive.
15718 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15719 else
15720 # Exported symbols can be pulled into shared objects from archives
15721 whole_archive_flag_spec='$convenience'
15722 fi
cristy73bd4a52010-10-05 11:24:23 +000015723 archive_cmds_need_lc=yes
15724 # This is similar to how AIX traditionally builds its shared libraries.
15725 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'
15726 fi
15727 fi
15728 ;;
15729
15730 amigaos*)
15731 case $host_cpu in
15732 powerpc)
15733 # see comment about AmigaOS4 .so support
15734 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15735 archive_expsym_cmds=''
15736 ;;
15737 m68k)
15738 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)'
15739 hardcode_libdir_flag_spec='-L$libdir'
15740 hardcode_minus_L=yes
15741 ;;
15742 esac
15743 ;;
15744
15745 bsdi[45]*)
15746 export_dynamic_flag_spec=-rdynamic
15747 ;;
15748
15749 cygwin* | mingw* | pw32* | cegcc*)
15750 # When not using gcc, we currently assume that we are using
15751 # Microsoft Visual C++.
15752 # hardcode_libdir_flag_spec is actually meaningless, as there is
15753 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000015754 case $cc_basename in
15755 cl*)
15756 # Native MSVC
15757 hardcode_libdir_flag_spec=' '
15758 allow_undefined_flag=unsupported
15759 always_export_symbols=yes
15760 file_list_spec='@'
15761 # Tell ltmain to make .lib files, not .a files.
15762 libext=lib
15763 # Tell ltmain to make .dll files, not .so files.
15764 shrext_cmds=".dll"
15765 # FIXME: Setting linknames here is a bad hack.
15766 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15767 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15768 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15769 else
15770 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15771 fi~
15772 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15773 linknames='
15774 # The linker will not automatically build a static lib if we build a DLL.
15775 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15776 enable_shared_with_static_runtimes=yes
cristy99bd5232011-12-07 14:38:20 +000015777 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
cristyda16f162011-02-19 23:52:17 +000015778 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15779 # Don't use ranlib
15780 old_postinstall_cmds='chmod 644 $oldlib'
15781 postlink_cmds='lt_outputfile="@OUTPUT@"~
15782 lt_tool_outputfile="@TOOL_OUTPUT@"~
15783 case $lt_outputfile in
15784 *.exe|*.EXE) ;;
15785 *)
15786 lt_outputfile="$lt_outputfile.exe"
15787 lt_tool_outputfile="$lt_tool_outputfile.exe"
15788 ;;
15789 esac~
15790 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15791 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15792 $RM "$lt_outputfile.manifest";
15793 fi'
15794 ;;
15795 *)
15796 # Assume MSVC wrapper
15797 hardcode_libdir_flag_spec=' '
15798 allow_undefined_flag=unsupported
15799 # Tell ltmain to make .lib files, not .a files.
15800 libext=lib
15801 # Tell ltmain to make .dll files, not .so files.
15802 shrext_cmds=".dll"
15803 # FIXME: Setting linknames here is a bad hack.
15804 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15805 # The linker will automatically build a .lib file if we build a DLL.
15806 old_archive_from_new_cmds='true'
15807 # FIXME: Should let the user specify the lib program.
15808 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15809 enable_shared_with_static_runtimes=yes
15810 ;;
15811 esac
cristy73bd4a52010-10-05 11:24:23 +000015812 ;;
15813
15814 darwin* | rhapsody*)
15815
15816
15817 archive_cmds_need_lc=no
15818 hardcode_direct=no
15819 hardcode_automatic=yes
15820 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000015821 if test "$lt_cv_ld_force_load" = "yes"; then
15822 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 +000015823
cristy0c60a692010-11-04 01:09:47 +000015824 else
15825 whole_archive_flag_spec=''
15826 fi
cristy73bd4a52010-10-05 11:24:23 +000015827 link_all_deplibs=yes
15828 allow_undefined_flag="$_lt_dar_allow_undefined"
15829 case $cc_basename in
15830 ifort*) _lt_dar_can_shared=yes ;;
15831 *) _lt_dar_can_shared=$GCC ;;
15832 esac
15833 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000015834 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000015835 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15836 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15837 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}"
15838 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}"
15839
15840 else
15841 ld_shlibs=no
15842 fi
15843
15844 ;;
15845
15846 dgux*)
15847 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15848 hardcode_libdir_flag_spec='-L$libdir'
15849 hardcode_shlibpath_var=no
15850 ;;
15851
cristy73bd4a52010-10-05 11:24:23 +000015852 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15853 # support. Future versions do this automatically, but an explicit c++rt0.o
15854 # does not break anything, and helps significantly (at the cost of a little
15855 # extra space).
15856 freebsd2.2*)
15857 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15858 hardcode_libdir_flag_spec='-R$libdir'
15859 hardcode_direct=yes
15860 hardcode_shlibpath_var=no
15861 ;;
15862
15863 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cristy99bd5232011-12-07 14:38:20 +000015864 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000015865 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15866 hardcode_direct=yes
15867 hardcode_minus_L=yes
15868 hardcode_shlibpath_var=no
15869 ;;
15870
15871 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15872 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000015873 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015874 hardcode_libdir_flag_spec='-R$libdir'
15875 hardcode_direct=yes
15876 hardcode_shlibpath_var=no
15877 ;;
15878
15879 hpux9*)
15880 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015881 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 +000015882 else
15883 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'
15884 fi
15885 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15886 hardcode_libdir_separator=:
15887 hardcode_direct=yes
15888
15889 # hardcode_minus_L: Not really in the search PATH,
15890 # but as the default location of the library.
15891 hardcode_minus_L=yes
15892 export_dynamic_flag_spec='${wl}-E'
15893 ;;
15894
15895 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000015896 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000015897 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 +000015898 else
15899 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15900 fi
15901 if test "$with_gnu_ld" = no; then
15902 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cristy73bd4a52010-10-05 11:24:23 +000015903 hardcode_libdir_separator=:
15904 hardcode_direct=yes
15905 hardcode_direct_absolute=yes
15906 export_dynamic_flag_spec='${wl}-E'
15907 # hardcode_minus_L: Not really in the search PATH,
15908 # but as the default location of the library.
15909 hardcode_minus_L=yes
15910 fi
15911 ;;
15912
15913 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000015914 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000015915 case $host_cpu in
15916 hppa*64*)
15917 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15918 ;;
15919 ia64*)
cristyda16f162011-02-19 23:52:17 +000015920 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015921 ;;
15922 *)
cristyda16f162011-02-19 23:52:17 +000015923 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 +000015924 ;;
15925 esac
15926 else
15927 case $host_cpu in
15928 hppa*64*)
15929 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15930 ;;
15931 ia64*)
15932 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15933 ;;
15934 *)
cristy0c60a692010-11-04 01:09:47 +000015935
15936 # Older versions of the 11.00 compiler do not understand -b yet
15937 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15939$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015940if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015941 $as_echo_n "(cached) " >&6
15942else
15943 lt_cv_prog_compiler__b=no
15944 save_LDFLAGS="$LDFLAGS"
15945 LDFLAGS="$LDFLAGS -b"
15946 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15947 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15948 # The linker can only warn and ignore the option if not recognized
15949 # So say no if there are warnings
15950 if test -s conftest.err; then
15951 # Append any errors to the config.log.
15952 cat conftest.err 1>&5
15953 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15954 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15955 if diff conftest.exp conftest.er2 >/dev/null; then
15956 lt_cv_prog_compiler__b=yes
15957 fi
15958 else
15959 lt_cv_prog_compiler__b=yes
15960 fi
15961 fi
15962 $RM -r conftest*
15963 LDFLAGS="$save_LDFLAGS"
15964
15965fi
15966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15967$as_echo "$lt_cv_prog_compiler__b" >&6; }
15968
15969if test x"$lt_cv_prog_compiler__b" = xyes; then
15970 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15971else
15972 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15973fi
15974
cristy73bd4a52010-10-05 11:24:23 +000015975 ;;
15976 esac
15977 fi
15978 if test "$with_gnu_ld" = no; then
15979 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15980 hardcode_libdir_separator=:
15981
15982 case $host_cpu in
15983 hppa*64*|ia64*)
15984 hardcode_direct=no
15985 hardcode_shlibpath_var=no
15986 ;;
15987 *)
15988 hardcode_direct=yes
15989 hardcode_direct_absolute=yes
15990 export_dynamic_flag_spec='${wl}-E'
15991
15992 # hardcode_minus_L: Not really in the search PATH,
15993 # but as the default location of the library.
15994 hardcode_minus_L=yes
15995 ;;
15996 esac
15997 fi
15998 ;;
15999
16000 irix5* | irix6* | nonstopux*)
16001 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000016002 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 +000016003 # Try to use the -exported_symbol ld option, if it does not
16004 # work, assume that -exports_file does not work either and
16005 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000016006 # This should be the same for all languages, so no per-tag cache variable.
16007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
16008$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
16009if ${lt_cv_irix_exported_symbol+:} false; then :
16010 $as_echo_n "(cached) " >&6
16011else
16012 save_LDFLAGS="$LDFLAGS"
16013 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016015/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000016016int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000016017_ACEOF
16018if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000016019 lt_cv_irix_exported_symbol=yes
16020else
16021 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000016022fi
16023rm -f core conftest.err conftest.$ac_objext \
16024 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000016025 LDFLAGS="$save_LDFLAGS"
16026fi
16027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
16028$as_echo "$lt_cv_irix_exported_symbol" >&6; }
16029 if test "$lt_cv_irix_exported_symbol" = yes; then
16030 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'
16031 fi
cristy73bd4a52010-10-05 11:24:23 +000016032 else
cristy0c60a692010-11-04 01:09:47 +000016033 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'
16034 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 +000016035 fi
16036 archive_cmds_need_lc='no'
16037 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16038 hardcode_libdir_separator=:
16039 inherit_rpath=yes
16040 link_all_deplibs=yes
16041 ;;
16042
16043 netbsd*)
16044 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16045 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16046 else
16047 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16048 fi
16049 hardcode_libdir_flag_spec='-R$libdir'
16050 hardcode_direct=yes
16051 hardcode_shlibpath_var=no
16052 ;;
16053
16054 newsos6)
16055 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16056 hardcode_direct=yes
16057 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16058 hardcode_libdir_separator=:
16059 hardcode_shlibpath_var=no
16060 ;;
16061
16062 *nto* | *qnx*)
16063 ;;
16064
16065 openbsd*)
16066 if test -f /usr/libexec/ld.so; then
16067 hardcode_direct=yes
16068 hardcode_shlibpath_var=no
16069 hardcode_direct_absolute=yes
16070 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16071 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16072 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16073 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16074 export_dynamic_flag_spec='${wl}-E'
16075 else
16076 case $host_os in
16077 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16078 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16079 hardcode_libdir_flag_spec='-R$libdir'
16080 ;;
16081 *)
16082 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16083 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16084 ;;
16085 esac
16086 fi
16087 else
16088 ld_shlibs=no
16089 fi
16090 ;;
16091
16092 os2*)
16093 hardcode_libdir_flag_spec='-L$libdir'
16094 hardcode_minus_L=yes
16095 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000016096 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 +000016097 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16098 ;;
16099
16100 osf3*)
16101 if test "$GCC" = yes; then
16102 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000016103 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 +000016104 else
16105 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000016106 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 +000016107 fi
16108 archive_cmds_need_lc='no'
16109 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16110 hardcode_libdir_separator=:
16111 ;;
16112
16113 osf4* | osf5*) # as osf3* with the addition of -msym flag
16114 if test "$GCC" = yes; then
16115 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000016116 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 +000016117 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16118 else
16119 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000016120 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 +000016121 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 +000016122 $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 +000016123
16124 # Both c and cxx compiler support -rpath directly
16125 hardcode_libdir_flag_spec='-rpath $libdir'
16126 fi
16127 archive_cmds_need_lc='no'
16128 hardcode_libdir_separator=:
16129 ;;
16130
16131 solaris*)
16132 no_undefined_flag=' -z defs'
16133 if test "$GCC" = yes; then
16134 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000016135 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 +000016136 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 +000016137 $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 +000016138 else
16139 case `$CC -V 2>&1` in
16140 *"Compilers 5.0"*)
16141 wlarc=''
16142 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16143 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16144 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16145 ;;
16146 *)
16147 wlarc='${wl}'
16148 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16149 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16150 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16151 ;;
16152 esac
16153 fi
16154 hardcode_libdir_flag_spec='-R$libdir'
16155 hardcode_shlibpath_var=no
16156 case $host_os in
16157 solaris2.[0-5] | solaris2.[0-5].*) ;;
16158 *)
16159 # The compiler driver will combine and reorder linker options,
16160 # but understands `-z linker_flag'. GCC discards it without `$wl',
16161 # but is careful enough not to reorder.
16162 # Supported since Solaris 2.6 (maybe 2.5.1?)
16163 if test "$GCC" = yes; then
16164 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16165 else
16166 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16167 fi
16168 ;;
16169 esac
16170 link_all_deplibs=yes
16171 ;;
16172
16173 sunos4*)
16174 if test "x$host_vendor" = xsequent; then
16175 # Use $CC to link under sequent, because it throws in some extra .o
16176 # files that make .init and .fini sections work.
16177 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16178 else
16179 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16180 fi
16181 hardcode_libdir_flag_spec='-L$libdir'
16182 hardcode_direct=yes
16183 hardcode_minus_L=yes
16184 hardcode_shlibpath_var=no
16185 ;;
16186
16187 sysv4)
16188 case $host_vendor in
16189 sni)
16190 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16191 hardcode_direct=yes # is this really true???
16192 ;;
16193 siemens)
16194 ## LD is ld it makes a PLAMLIB
16195 ## CC just makes a GrossModule.
16196 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16197 reload_cmds='$CC -r -o $output$reload_objs'
16198 hardcode_direct=no
16199 ;;
16200 motorola)
16201 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16202 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16203 ;;
16204 esac
16205 runpath_var='LD_RUN_PATH'
16206 hardcode_shlibpath_var=no
16207 ;;
16208
16209 sysv4.3*)
16210 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16211 hardcode_shlibpath_var=no
16212 export_dynamic_flag_spec='-Bexport'
16213 ;;
16214
16215 sysv4*MP*)
16216 if test -d /usr/nec; then
16217 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16218 hardcode_shlibpath_var=no
16219 runpath_var=LD_RUN_PATH
16220 hardcode_runpath_var=yes
16221 ld_shlibs=yes
16222 fi
16223 ;;
16224
16225 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16226 no_undefined_flag='${wl}-z,text'
16227 archive_cmds_need_lc=no
16228 hardcode_shlibpath_var=no
16229 runpath_var='LD_RUN_PATH'
16230
16231 if test "$GCC" = yes; then
16232 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16233 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16234 else
16235 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16236 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16237 fi
16238 ;;
16239
16240 sysv5* | sco3.2v5* | sco5v6*)
16241 # Note: We can NOT use -z defs as we might desire, because we do not
16242 # link with -lc, and that would cause any symbols used from libc to
16243 # always be unresolved, which means just about no library would
16244 # ever link correctly. If we're not using GNU ld we use -z text
16245 # though, which does catch some bad symbols but isn't as heavy-handed
16246 # as -z defs.
16247 no_undefined_flag='${wl}-z,text'
16248 allow_undefined_flag='${wl}-z,nodefs'
16249 archive_cmds_need_lc=no
16250 hardcode_shlibpath_var=no
16251 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16252 hardcode_libdir_separator=':'
16253 link_all_deplibs=yes
16254 export_dynamic_flag_spec='${wl}-Bexport'
16255 runpath_var='LD_RUN_PATH'
16256
16257 if test "$GCC" = yes; then
16258 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16259 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16260 else
16261 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16262 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16263 fi
16264 ;;
16265
16266 uts4*)
16267 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16268 hardcode_libdir_flag_spec='-L$libdir'
16269 hardcode_shlibpath_var=no
16270 ;;
16271
16272 *)
16273 ld_shlibs=no
16274 ;;
16275 esac
16276
16277 if test x$host_vendor = xsni; then
16278 case $host in
16279 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16280 export_dynamic_flag_spec='${wl}-Blargedynsym'
16281 ;;
16282 esac
16283 fi
16284 fi
16285
16286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16287$as_echo "$ld_shlibs" >&6; }
16288test "$ld_shlibs" = no && can_build_shared=no
16289
16290with_gnu_ld=$with_gnu_ld
16291
16292
16293
16294
16295
16296
16297
16298
16299
16300
16301
16302
16303
16304
16305
16306#
16307# Do we need to explicitly link libc?
16308#
16309case "x$archive_cmds_need_lc" in
16310x|xyes)
16311 # Assume -lc should be added
16312 archive_cmds_need_lc=yes
16313
16314 if test "$enable_shared" = yes && test "$GCC" = yes; then
16315 case $archive_cmds in
16316 *'~'*)
16317 # FIXME: we may have to deal with multi-command sequences.
16318 ;;
16319 '$CC '*)
16320 # Test whether the compiler implicitly links with -lc since on some
16321 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16322 # to ld, don't add -lc before -lgcc.
16323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16324$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016325if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016326 $as_echo_n "(cached) " >&6
16327else
16328 $RM conftest*
16329 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016330
cristy0c60a692010-11-04 01:09:47 +000016331 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000016332 (eval $ac_compile) 2>&5
16333 ac_status=$?
16334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16335 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000016336 soname=conftest
16337 lib=conftest
16338 libobjs=conftest.$ac_objext
16339 deplibs=
16340 wl=$lt_prog_compiler_wl
16341 pic_flag=$lt_prog_compiler_pic
16342 compiler_flags=-v
16343 linker_flags=-v
16344 verstring=
16345 output_objdir=.
16346 libname=conftest
16347 lt_save_allow_undefined_flag=$allow_undefined_flag
16348 allow_undefined_flag=
16349 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 +000016350 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16351 ac_status=$?
16352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16353 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000016354 then
16355 lt_cv_archive_cmds_need_lc=no
16356 else
16357 lt_cv_archive_cmds_need_lc=yes
16358 fi
16359 allow_undefined_flag=$lt_save_allow_undefined_flag
16360 else
16361 cat conftest.err 1>&5
16362 fi
16363 $RM conftest*
16364
16365fi
16366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16367$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16368 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000016369 ;;
16370 esac
16371 fi
16372 ;;
16373esac
16374
16375
16376
16377
16378
16379
16380
16381
16382
16383
16384
16385
16386
16387
16388
16389
16390
16391
16392
16393
16394
16395
16396
16397
16398
16399
16400
16401
16402
16403
16404
16405
16406
16407
16408
16409
16410
16411
16412
16413
16414
16415
16416
16417
16418
16419
16420
16421
16422
16423
16424
16425
16426
16427
16428
16429
16430
16431
16432
16433
16434
16435
16436
16437
16438
16439
16440
16441
16442
16443
16444
16445
16446
16447
16448
16449
16450
16451
16452
16453
16454
16455
16456
16457
16458
16459
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469
16470
16471
16472
16473
16474
16475
16476
16477
16478
16479
16480
16481
16482
16483
16484
16485
16486
16487
16488
16489
16490
16491
16492
16493
16494
16495
16496
16497
16498
16499
16500
16501
16502
16503
16504
16505
16506
16507
16508
16509
16510
16511
16512
16513
16514
16515
16516
16517
16518
16519
16520
16521
16522
16523
16524
16525
cristy73bd4a52010-10-05 11:24:23 +000016526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16527$as_echo_n "checking dynamic linker characteristics... " >&6; }
16528
16529if test "$GCC" = yes; then
16530 case $host_os in
16531 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16532 *) lt_awk_arg="/^libraries:/" ;;
16533 esac
cristy0c60a692010-11-04 01:09:47 +000016534 case $host_os in
16535 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16536 *) lt_sed_strip_eq="s,=/,/,g" ;;
16537 esac
16538 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16539 case $lt_search_path_spec in
16540 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000016541 # if the path contains ";" then we assume it to be the separator
16542 # otherwise default to the standard path separator (i.e. ":") - it is
16543 # assumed that no part of a normal pathname contains ";" but that should
16544 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000016545 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16546 ;;
16547 *)
16548 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16549 ;;
16550 esac
cristy73bd4a52010-10-05 11:24:23 +000016551 # Ok, now we have the path, separated by spaces, we can step through it
16552 # and add multilib dir if necessary.
16553 lt_tmp_lt_search_path_spec=
16554 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16555 for lt_sys_path in $lt_search_path_spec; do
16556 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16557 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16558 else
16559 test -d "$lt_sys_path" && \
16560 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16561 fi
16562 done
cristy0c60a692010-11-04 01:09:47 +000016563 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000016564BEGIN {RS=" "; FS="/|\n";} {
16565 lt_foo="";
16566 lt_count=0;
16567 for (lt_i = NF; lt_i > 0; lt_i--) {
16568 if ($lt_i != "" && $lt_i != ".") {
16569 if ($lt_i == "..") {
16570 lt_count++;
16571 } else {
16572 if (lt_count == 0) {
16573 lt_foo="/" $lt_i lt_foo;
16574 } else {
16575 lt_count--;
16576 }
16577 }
16578 }
16579 }
16580 if (lt_foo != "") { lt_freq[lt_foo]++; }
16581 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16582}'`
cristy0c60a692010-11-04 01:09:47 +000016583 # AWK program above erroneously prepends '/' to C:/dos/paths
16584 # for these hosts.
16585 case $host_os in
16586 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16587 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16588 esac
16589 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000016590else
16591 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16592fi
16593library_names_spec=
16594libname_spec='lib$name'
16595soname_spec=
16596shrext_cmds=".so"
16597postinstall_cmds=
16598postuninstall_cmds=
16599finish_cmds=
16600finish_eval=
16601shlibpath_var=
16602shlibpath_overrides_runpath=unknown
16603version_type=none
16604dynamic_linker="$host_os ld.so"
16605sys_lib_dlsearch_path_spec="/lib /usr/lib"
16606need_lib_prefix=unknown
16607hardcode_into_libs=no
16608
16609# when you set need_version to no, make sure it does not cause -set_version
16610# flags to be left without arguments
16611need_version=unknown
16612
16613case $host_os in
16614aix3*)
cristy99bd5232011-12-07 14:38:20 +000016615 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016616 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16617 shlibpath_var=LIBPATH
16618
16619 # AIX 3 has no versioning support, so we append a major version to the name.
16620 soname_spec='${libname}${release}${shared_ext}$major'
16621 ;;
16622
16623aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000016624 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016625 need_lib_prefix=no
16626 need_version=no
16627 hardcode_into_libs=yes
16628 if test "$host_cpu" = ia64; then
16629 # AIX 5 supports IA64
16630 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16631 shlibpath_var=LD_LIBRARY_PATH
16632 else
16633 # With GCC up to 2.95.x, collect2 would create an import file
16634 # for dependence libraries. The import file would start with
16635 # the line `#! .'. This would cause the generated library to
16636 # depend on `.', always an invalid library. This was fixed in
16637 # development snapshots of GCC prior to 3.0.
16638 case $host_os in
16639 aix4 | aix4.[01] | aix4.[01].*)
16640 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16641 echo ' yes '
16642 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16643 :
16644 else
16645 can_build_shared=no
16646 fi
16647 ;;
16648 esac
16649 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16650 # soname into executable. Probably we can add versioning support to
16651 # collect2, so additional links can be useful in future.
16652 if test "$aix_use_runtimelinking" = yes; then
16653 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16654 # instead of lib<name>.a to let people know that these are not
16655 # typical AIX shared libraries.
16656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16657 else
16658 # We preserve .a as extension for shared libraries through AIX4.2
16659 # and later when we are not doing run time linking.
16660 library_names_spec='${libname}${release}.a $libname.a'
16661 soname_spec='${libname}${release}${shared_ext}$major'
16662 fi
16663 shlibpath_var=LIBPATH
16664 fi
16665 ;;
16666
16667amigaos*)
16668 case $host_cpu in
16669 powerpc)
16670 # Since July 2007 AmigaOS4 officially supports .so libraries.
16671 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16673 ;;
16674 m68k)
16675 library_names_spec='$libname.ixlibrary $libname.a'
16676 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000016677 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 +000016678 ;;
16679 esac
16680 ;;
16681
16682beos*)
16683 library_names_spec='${libname}${shared_ext}'
16684 dynamic_linker="$host_os ld.so"
16685 shlibpath_var=LIBRARY_PATH
16686 ;;
16687
16688bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000016689 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016690 need_version=no
16691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16692 soname_spec='${libname}${release}${shared_ext}$major'
16693 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16694 shlibpath_var=LD_LIBRARY_PATH
16695 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16696 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16697 # the default ld.so.conf also contains /usr/contrib/lib and
16698 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16699 # libtool to hard-code these into programs
16700 ;;
16701
16702cygwin* | mingw* | pw32* | cegcc*)
16703 version_type=windows
16704 shrext_cmds=".dll"
16705 need_version=no
16706 need_lib_prefix=no
16707
cristyda16f162011-02-19 23:52:17 +000016708 case $GCC,$cc_basename in
16709 yes,*)
16710 # gcc
cristy73bd4a52010-10-05 11:24:23 +000016711 library_names_spec='$libname.dll.a'
16712 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16713 postinstall_cmds='base_file=`basename \${file}`~
16714 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16715 dldir=$destdir/`dirname \$dlpath`~
16716 test -d \$dldir || mkdir -p \$dldir~
16717 $install_prog $dir/$dlname \$dldir/$dlname~
16718 chmod a+x \$dldir/$dlname~
16719 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16720 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16721 fi'
16722 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16723 dlpath=$dir/\$dldll~
16724 $RM \$dlpath'
16725 shlibpath_overrides_runpath=yes
16726
16727 case $host_os in
16728 cygwin*)
16729 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16730 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000016731
16732 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000016733 ;;
16734 mingw* | cegcc*)
16735 # MinGW DLLs use traditional 'lib' prefix
16736 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000016737 ;;
16738 pw32*)
16739 # pw32 DLLs use 'pw' prefix rather than 'lib'
16740 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16741 ;;
16742 esac
cristyda16f162011-02-19 23:52:17 +000016743 dynamic_linker='Win32 ld.exe'
16744 ;;
16745
16746 *,cl*)
16747 # Native MSVC
16748 libname_spec='$name'
16749 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16750 library_names_spec='${libname}.dll.lib'
16751
16752 case $build_os in
16753 mingw*)
16754 sys_lib_search_path_spec=
16755 lt_save_ifs=$IFS
16756 IFS=';'
16757 for lt_path in $LIB
16758 do
16759 IFS=$lt_save_ifs
16760 # Let DOS variable expansion print the short 8.3 style file name.
16761 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16762 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16763 done
16764 IFS=$lt_save_ifs
16765 # Convert to MSYS style.
16766 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16767 ;;
16768 cygwin*)
16769 # Convert to unix form, then to dos form, then back to unix form
16770 # but this time dos style (no spaces!) so that the unix form looks
16771 # like /cygdrive/c/PROGRA~1:/cygdr...
16772 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16773 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16774 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16775 ;;
16776 *)
16777 sys_lib_search_path_spec="$LIB"
16778 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16779 # It is most probably a Windows format PATH.
16780 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16781 else
16782 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16783 fi
16784 # FIXME: find the short name or the path components, as spaces are
16785 # common. (e.g. "Program Files" -> "PROGRA~1")
16786 ;;
16787 esac
16788
16789 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16790 postinstall_cmds='base_file=`basename \${file}`~
16791 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16792 dldir=$destdir/`dirname \$dlpath`~
16793 test -d \$dldir || mkdir -p \$dldir~
16794 $install_prog $dir/$dlname \$dldir/$dlname'
16795 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16796 dlpath=$dir/\$dldll~
16797 $RM \$dlpath'
16798 shlibpath_overrides_runpath=yes
16799 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000016800 ;;
16801
16802 *)
cristyda16f162011-02-19 23:52:17 +000016803 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000016804 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000016805 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000016806 ;;
16807 esac
cristy73bd4a52010-10-05 11:24:23 +000016808 # FIXME: first we should search . and the directory the executable is in
16809 shlibpath_var=PATH
16810 ;;
16811
16812darwin* | rhapsody*)
16813 dynamic_linker="$host_os dyld"
16814 version_type=darwin
16815 need_lib_prefix=no
16816 need_version=no
16817 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16818 soname_spec='${libname}${release}${major}$shared_ext'
16819 shlibpath_overrides_runpath=yes
16820 shlibpath_var=DYLD_LIBRARY_PATH
16821 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16822
16823 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16824 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16825 ;;
16826
16827dgux*)
cristy99bd5232011-12-07 14:38:20 +000016828 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016829 need_lib_prefix=no
16830 need_version=no
16831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16832 soname_spec='${libname}${release}${shared_ext}$major'
16833 shlibpath_var=LD_LIBRARY_PATH
16834 ;;
16835
cristy73bd4a52010-10-05 11:24:23 +000016836freebsd* | dragonfly*)
16837 # DragonFly does not have aout. When/if they implement a new
16838 # versioning mechanism, adjust this.
16839 if test -x /usr/bin/objformat; then
16840 objformat=`/usr/bin/objformat`
16841 else
16842 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016843 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000016844 *) objformat=elf ;;
16845 esac
16846 fi
16847 version_type=freebsd-$objformat
16848 case $version_type in
16849 freebsd-elf*)
16850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16851 need_version=no
16852 need_lib_prefix=no
16853 ;;
16854 freebsd-*)
16855 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16856 need_version=yes
16857 ;;
16858 esac
16859 shlibpath_var=LD_LIBRARY_PATH
16860 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016861 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000016862 shlibpath_overrides_runpath=yes
16863 ;;
16864 freebsd3.[01]* | freebsdelf3.[01]*)
16865 shlibpath_overrides_runpath=yes
16866 hardcode_into_libs=yes
16867 ;;
16868 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16869 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16870 shlibpath_overrides_runpath=no
16871 hardcode_into_libs=yes
16872 ;;
16873 *) # from 4.6 on, and DragonFly
16874 shlibpath_overrides_runpath=yes
16875 hardcode_into_libs=yes
16876 ;;
16877 esac
16878 ;;
16879
16880gnu*)
cristy99bd5232011-12-07 14:38:20 +000016881 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016882 need_lib_prefix=no
16883 need_version=no
16884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16885 soname_spec='${libname}${release}${shared_ext}$major'
16886 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000016887 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000016888 hardcode_into_libs=yes
16889 ;;
16890
cristy0c60a692010-11-04 01:09:47 +000016891haiku*)
cristy99bd5232011-12-07 14:38:20 +000016892 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000016893 need_lib_prefix=no
16894 need_version=no
16895 dynamic_linker="$host_os runtime_loader"
16896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16897 soname_spec='${libname}${release}${shared_ext}$major'
16898 shlibpath_var=LIBRARY_PATH
16899 shlibpath_overrides_runpath=yes
16900 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16901 hardcode_into_libs=yes
16902 ;;
16903
cristy73bd4a52010-10-05 11:24:23 +000016904hpux9* | hpux10* | hpux11*)
16905 # Give a soname corresponding to the major version so that dld.sl refuses to
16906 # link against other versions.
16907 version_type=sunos
16908 need_lib_prefix=no
16909 need_version=no
16910 case $host_cpu in
16911 ia64*)
16912 shrext_cmds='.so'
16913 hardcode_into_libs=yes
16914 dynamic_linker="$host_os dld.so"
16915 shlibpath_var=LD_LIBRARY_PATH
16916 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16918 soname_spec='${libname}${release}${shared_ext}$major'
16919 if test "X$HPUX_IA64_MODE" = X32; then
16920 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16921 else
16922 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16923 fi
16924 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16925 ;;
16926 hppa*64*)
16927 shrext_cmds='.sl'
16928 hardcode_into_libs=yes
16929 dynamic_linker="$host_os dld.sl"
16930 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16931 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16933 soname_spec='${libname}${release}${shared_ext}$major'
16934 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16935 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16936 ;;
16937 *)
16938 shrext_cmds='.sl'
16939 dynamic_linker="$host_os dld.sl"
16940 shlibpath_var=SHLIB_PATH
16941 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16943 soname_spec='${libname}${release}${shared_ext}$major'
16944 ;;
16945 esac
cristy0c60a692010-11-04 01:09:47 +000016946 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000016947 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000016948 # or fails outright, so override atomically:
16949 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000016950 ;;
16951
16952interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000016953 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016954 need_lib_prefix=no
16955 need_version=no
16956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16957 soname_spec='${libname}${release}${shared_ext}$major'
16958 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16959 shlibpath_var=LD_LIBRARY_PATH
16960 shlibpath_overrides_runpath=no
16961 hardcode_into_libs=yes
16962 ;;
16963
16964irix5* | irix6* | nonstopux*)
16965 case $host_os in
16966 nonstopux*) version_type=nonstopux ;;
16967 *)
16968 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000016969 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016970 else
16971 version_type=irix
16972 fi ;;
16973 esac
16974 need_lib_prefix=no
16975 need_version=no
16976 soname_spec='${libname}${release}${shared_ext}$major'
16977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16978 case $host_os in
16979 irix5* | nonstopux*)
16980 libsuff= shlibsuff=
16981 ;;
16982 *)
16983 case $LD in # libtool.m4 will add one of these switches to LD
16984 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16985 libsuff= shlibsuff= libmagic=32-bit;;
16986 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16987 libsuff=32 shlibsuff=N32 libmagic=N32;;
16988 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16989 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16990 *) libsuff= shlibsuff= libmagic=never-match;;
16991 esac
16992 ;;
16993 esac
16994 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16995 shlibpath_overrides_runpath=no
16996 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16997 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16998 hardcode_into_libs=yes
16999 ;;
17000
17001# No shared lib support for Linux oldld, aout, or coff.
17002linux*oldld* | linux*aout* | linux*coff*)
17003 dynamic_linker=no
17004 ;;
17005
cristy99bd5232011-12-07 14:38:20 +000017006# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000017007linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000017008 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017009 need_lib_prefix=no
17010 need_version=no
17011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17012 soname_spec='${libname}${release}${shared_ext}$major'
17013 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17014 shlibpath_var=LD_LIBRARY_PATH
17015 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000017016
cristy73bd4a52010-10-05 11:24:23 +000017017 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000017018 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000017019 $as_echo_n "(cached) " >&6
17020else
17021 lt_cv_shlibpath_overrides_runpath=no
17022 save_LDFLAGS=$LDFLAGS
17023 save_libdir=$libdir
17024 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17025 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017027/* end confdefs.h. */
17028
17029int
17030main ()
17031{
17032
17033 ;
17034 return 0;
17035}
17036_ACEOF
17037if ac_fn_c_try_link "$LINENO"; then :
17038 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000017039 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000017040fi
17041fi
17042rm -f core conftest.err conftest.$ac_objext \
17043 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017044 LDFLAGS=$save_LDFLAGS
17045 libdir=$save_libdir
17046
17047fi
17048
17049 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000017050
17051 # This implies no fast_install, which is unacceptable.
17052 # Some rework will be needed to allow for fast_install
17053 # before this can be enabled.
17054 hardcode_into_libs=yes
17055
17056 # Add ABI-specific directories to the system library path.
17057 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
17058
17059 # Append ld.so.conf contents to the search path
17060 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000017061 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 +000017062 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000017063
cristy73bd4a52010-10-05 11:24:23 +000017064 fi
17065
17066 # We used to test for /lib/ld.so.1 and disable shared libraries on
17067 # powerpc, because MkLinux only supported shared libraries with the
17068 # GNU dynamic linker. Since this was broken with cross compilers,
17069 # most powerpc-linux boxes support dynamic linking these days and
17070 # people can always --disable-shared, the test was removed, and we
17071 # assume the GNU/Linux dynamic linker is in use.
17072 dynamic_linker='GNU/Linux ld.so'
17073 ;;
17074
17075netbsd*)
17076 version_type=sunos
17077 need_lib_prefix=no
17078 need_version=no
17079 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17081 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17082 dynamic_linker='NetBSD (a.out) ld.so'
17083 else
17084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17085 soname_spec='${libname}${release}${shared_ext}$major'
17086 dynamic_linker='NetBSD ld.elf_so'
17087 fi
17088 shlibpath_var=LD_LIBRARY_PATH
17089 shlibpath_overrides_runpath=yes
17090 hardcode_into_libs=yes
17091 ;;
17092
17093newsos6)
cristy99bd5232011-12-07 14:38:20 +000017094 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17096 shlibpath_var=LD_LIBRARY_PATH
17097 shlibpath_overrides_runpath=yes
17098 ;;
17099
17100*nto* | *qnx*)
17101 version_type=qnx
17102 need_lib_prefix=no
17103 need_version=no
17104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17105 soname_spec='${libname}${release}${shared_ext}$major'
17106 shlibpath_var=LD_LIBRARY_PATH
17107 shlibpath_overrides_runpath=no
17108 hardcode_into_libs=yes
17109 dynamic_linker='ldqnx.so'
17110 ;;
17111
17112openbsd*)
17113 version_type=sunos
17114 sys_lib_dlsearch_path_spec="/usr/lib"
17115 need_lib_prefix=no
17116 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17117 case $host_os in
17118 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17119 *) need_version=no ;;
17120 esac
17121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17122 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17123 shlibpath_var=LD_LIBRARY_PATH
17124 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17125 case $host_os in
17126 openbsd2.[89] | openbsd2.[89].*)
17127 shlibpath_overrides_runpath=no
17128 ;;
17129 *)
17130 shlibpath_overrides_runpath=yes
17131 ;;
17132 esac
17133 else
17134 shlibpath_overrides_runpath=yes
17135 fi
17136 ;;
17137
17138os2*)
17139 libname_spec='$name'
17140 shrext_cmds=".dll"
17141 need_lib_prefix=no
17142 library_names_spec='$libname${shared_ext} $libname.a'
17143 dynamic_linker='OS/2 ld.exe'
17144 shlibpath_var=LIBPATH
17145 ;;
17146
17147osf3* | osf4* | osf5*)
17148 version_type=osf
17149 need_lib_prefix=no
17150 need_version=no
17151 soname_spec='${libname}${release}${shared_ext}$major'
17152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17153 shlibpath_var=LD_LIBRARY_PATH
17154 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17155 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17156 ;;
17157
17158rdos*)
17159 dynamic_linker=no
17160 ;;
17161
17162solaris*)
cristy99bd5232011-12-07 14:38:20 +000017163 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017164 need_lib_prefix=no
17165 need_version=no
17166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17167 soname_spec='${libname}${release}${shared_ext}$major'
17168 shlibpath_var=LD_LIBRARY_PATH
17169 shlibpath_overrides_runpath=yes
17170 hardcode_into_libs=yes
17171 # ldd complains unless libraries are executable
17172 postinstall_cmds='chmod +x $lib'
17173 ;;
17174
17175sunos4*)
17176 version_type=sunos
17177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17178 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17179 shlibpath_var=LD_LIBRARY_PATH
17180 shlibpath_overrides_runpath=yes
17181 if test "$with_gnu_ld" = yes; then
17182 need_lib_prefix=no
17183 fi
17184 need_version=yes
17185 ;;
17186
17187sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000017188 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17190 soname_spec='${libname}${release}${shared_ext}$major'
17191 shlibpath_var=LD_LIBRARY_PATH
17192 case $host_vendor in
17193 sni)
17194 shlibpath_overrides_runpath=no
17195 need_lib_prefix=no
17196 runpath_var=LD_RUN_PATH
17197 ;;
17198 siemens)
17199 need_lib_prefix=no
17200 ;;
17201 motorola)
17202 need_lib_prefix=no
17203 need_version=no
17204 shlibpath_overrides_runpath=no
17205 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17206 ;;
17207 esac
17208 ;;
17209
17210sysv4*MP*)
17211 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000017212 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017213 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17214 soname_spec='$libname${shared_ext}.$major'
17215 shlibpath_var=LD_LIBRARY_PATH
17216 fi
17217 ;;
17218
17219sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17220 version_type=freebsd-elf
17221 need_lib_prefix=no
17222 need_version=no
17223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17224 soname_spec='${libname}${release}${shared_ext}$major'
17225 shlibpath_var=LD_LIBRARY_PATH
17226 shlibpath_overrides_runpath=yes
17227 hardcode_into_libs=yes
17228 if test "$with_gnu_ld" = yes; then
17229 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17230 else
17231 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17232 case $host_os in
17233 sco3.2v5*)
17234 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17235 ;;
17236 esac
17237 fi
17238 sys_lib_dlsearch_path_spec='/usr/lib'
17239 ;;
17240
17241tpf*)
17242 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000017243 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017244 need_lib_prefix=no
17245 need_version=no
17246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17247 shlibpath_var=LD_LIBRARY_PATH
17248 shlibpath_overrides_runpath=no
17249 hardcode_into_libs=yes
17250 ;;
17251
17252uts4*)
cristy99bd5232011-12-07 14:38:20 +000017253 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17255 soname_spec='${libname}${release}${shared_ext}$major'
17256 shlibpath_var=LD_LIBRARY_PATH
17257 ;;
17258
17259*)
17260 dynamic_linker=no
17261 ;;
17262esac
17263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17264$as_echo "$dynamic_linker" >&6; }
17265test "$dynamic_linker" = no && can_build_shared=no
17266
17267variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17268if test "$GCC" = yes; then
17269 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17270fi
17271
17272if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17273 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17274fi
17275if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17276 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17277fi
17278
17279
17280
17281
17282
17283
17284
17285
17286
17287
17288
17289
17290
17291
17292
17293
17294
17295
17296
17297
17298
17299
17300
17301
17302
17303
17304
17305
17306
17307
17308
17309
17310
17311
17312
17313
17314
17315
17316
17317
17318
17319
17320
17321
17322
17323
17324
17325
17326
17327
17328
17329
17330
17331
17332
17333
17334
17335
17336
17337
17338
17339
17340
17341
17342
17343
17344
17345
17346
17347
17348
17349
17350
17351
17352
17353
17354
17355
17356
17357
17358
17359
17360
17361
17362
17363
17364
cristy0c60a692010-11-04 01:09:47 +000017365
17366
17367
17368
17369
cristy73bd4a52010-10-05 11:24:23 +000017370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17371$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17372hardcode_action=
17373if test -n "$hardcode_libdir_flag_spec" ||
17374 test -n "$runpath_var" ||
17375 test "X$hardcode_automatic" = "Xyes" ; then
17376
17377 # We can hardcode non-existent directories.
17378 if test "$hardcode_direct" != no &&
17379 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17380 # have to relink, otherwise we might link with an installed library
17381 # when we should be linking with a yet-to-be-installed one
17382 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17383 test "$hardcode_minus_L" != no; then
17384 # Linking always hardcodes the temporary library directory.
17385 hardcode_action=relink
17386 else
17387 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17388 hardcode_action=immediate
17389 fi
17390else
17391 # We cannot hardcode anything, or else we can only hardcode existing
17392 # directories.
17393 hardcode_action=unsupported
17394fi
17395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17396$as_echo "$hardcode_action" >&6; }
17397
17398if test "$hardcode_action" = relink ||
17399 test "$inherit_rpath" = yes; then
17400 # Fast installation is not supported
17401 enable_fast_install=no
17402elif test "$shlibpath_overrides_runpath" = yes ||
17403 test "$enable_shared" = no; then
17404 # Fast installation is not necessary
17405 enable_fast_install=needless
17406fi
17407
17408
17409
17410
17411
17412
17413 if test "x$enable_dlopen" != xyes; then
17414 enable_dlopen=unknown
17415 enable_dlopen_self=unknown
17416 enable_dlopen_self_static=unknown
17417else
17418 lt_cv_dlopen=no
17419 lt_cv_dlopen_libs=
17420
17421 case $host_os in
17422 beos*)
17423 lt_cv_dlopen="load_add_on"
17424 lt_cv_dlopen_libs=
17425 lt_cv_dlopen_self=yes
17426 ;;
17427
17428 mingw* | pw32* | cegcc*)
17429 lt_cv_dlopen="LoadLibrary"
17430 lt_cv_dlopen_libs=
17431 ;;
17432
17433 cygwin*)
17434 lt_cv_dlopen="dlopen"
17435 lt_cv_dlopen_libs=
17436 ;;
17437
17438 darwin*)
17439 # if libdl is installed we need to link against it
17440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17441$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017442if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017443 $as_echo_n "(cached) " >&6
17444else
17445 ac_check_lib_save_LIBS=$LIBS
17446LIBS="-ldl $LIBS"
17447cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17448/* end confdefs.h. */
17449
17450/* Override any GCC internal prototype to avoid an error.
17451 Use char because int might match the return type of a GCC
17452 builtin and then its argument prototype would still apply. */
17453#ifdef __cplusplus
17454extern "C"
17455#endif
17456char dlopen ();
17457int
17458main ()
17459{
17460return dlopen ();
17461 ;
17462 return 0;
17463}
17464_ACEOF
17465if ac_fn_c_try_link "$LINENO"; then :
17466 ac_cv_lib_dl_dlopen=yes
17467else
17468 ac_cv_lib_dl_dlopen=no
17469fi
17470rm -f core conftest.err conftest.$ac_objext \
17471 conftest$ac_exeext conftest.$ac_ext
17472LIBS=$ac_check_lib_save_LIBS
17473fi
17474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17475$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017476if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017477 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17478else
17479
17480 lt_cv_dlopen="dyld"
17481 lt_cv_dlopen_libs=
17482 lt_cv_dlopen_self=yes
17483
17484fi
17485
17486 ;;
17487
17488 *)
17489 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000017490if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017491 lt_cv_dlopen="shl_load"
17492else
17493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17494$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017495if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017496 $as_echo_n "(cached) " >&6
17497else
17498 ac_check_lib_save_LIBS=$LIBS
17499LIBS="-ldld $LIBS"
17500cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17501/* end confdefs.h. */
17502
17503/* Override any GCC internal prototype to avoid an error.
17504 Use char because int might match the return type of a GCC
17505 builtin and then its argument prototype would still apply. */
17506#ifdef __cplusplus
17507extern "C"
17508#endif
17509char shl_load ();
17510int
17511main ()
17512{
17513return shl_load ();
17514 ;
17515 return 0;
17516}
17517_ACEOF
17518if ac_fn_c_try_link "$LINENO"; then :
17519 ac_cv_lib_dld_shl_load=yes
17520else
17521 ac_cv_lib_dld_shl_load=no
17522fi
17523rm -f core conftest.err conftest.$ac_objext \
17524 conftest$ac_exeext conftest.$ac_ext
17525LIBS=$ac_check_lib_save_LIBS
17526fi
17527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17528$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000017529if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017530 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17531else
17532 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000017533if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017534 lt_cv_dlopen="dlopen"
17535else
17536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17537$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017538if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017539 $as_echo_n "(cached) " >&6
17540else
17541 ac_check_lib_save_LIBS=$LIBS
17542LIBS="-ldl $LIBS"
17543cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17544/* end confdefs.h. */
17545
17546/* Override any GCC internal prototype to avoid an error.
17547 Use char because int might match the return type of a GCC
17548 builtin and then its argument prototype would still apply. */
17549#ifdef __cplusplus
17550extern "C"
17551#endif
17552char dlopen ();
17553int
17554main ()
17555{
17556return dlopen ();
17557 ;
17558 return 0;
17559}
17560_ACEOF
17561if ac_fn_c_try_link "$LINENO"; then :
17562 ac_cv_lib_dl_dlopen=yes
17563else
17564 ac_cv_lib_dl_dlopen=no
17565fi
17566rm -f core conftest.err conftest.$ac_objext \
17567 conftest$ac_exeext conftest.$ac_ext
17568LIBS=$ac_check_lib_save_LIBS
17569fi
17570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17571$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017572if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017573 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17574else
17575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17576$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017577if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017578 $as_echo_n "(cached) " >&6
17579else
17580 ac_check_lib_save_LIBS=$LIBS
17581LIBS="-lsvld $LIBS"
17582cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17583/* end confdefs.h. */
17584
17585/* Override any GCC internal prototype to avoid an error.
17586 Use char because int might match the return type of a GCC
17587 builtin and then its argument prototype would still apply. */
17588#ifdef __cplusplus
17589extern "C"
17590#endif
17591char dlopen ();
17592int
17593main ()
17594{
17595return dlopen ();
17596 ;
17597 return 0;
17598}
17599_ACEOF
17600if ac_fn_c_try_link "$LINENO"; then :
17601 ac_cv_lib_svld_dlopen=yes
17602else
17603 ac_cv_lib_svld_dlopen=no
17604fi
17605rm -f core conftest.err conftest.$ac_objext \
17606 conftest$ac_exeext conftest.$ac_ext
17607LIBS=$ac_check_lib_save_LIBS
17608fi
17609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17610$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017611if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017612 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17613else
17614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17615$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017616if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017617 $as_echo_n "(cached) " >&6
17618else
17619 ac_check_lib_save_LIBS=$LIBS
17620LIBS="-ldld $LIBS"
17621cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17622/* end confdefs.h. */
17623
17624/* Override any GCC internal prototype to avoid an error.
17625 Use char because int might match the return type of a GCC
17626 builtin and then its argument prototype would still apply. */
17627#ifdef __cplusplus
17628extern "C"
17629#endif
17630char dld_link ();
17631int
17632main ()
17633{
17634return dld_link ();
17635 ;
17636 return 0;
17637}
17638_ACEOF
17639if ac_fn_c_try_link "$LINENO"; then :
17640 ac_cv_lib_dld_dld_link=yes
17641else
17642 ac_cv_lib_dld_dld_link=no
17643fi
17644rm -f core conftest.err conftest.$ac_objext \
17645 conftest$ac_exeext conftest.$ac_ext
17646LIBS=$ac_check_lib_save_LIBS
17647fi
17648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17649$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000017650if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017651 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17652fi
17653
17654
17655fi
17656
17657
17658fi
17659
17660
17661fi
17662
17663
17664fi
17665
17666
17667fi
17668
17669 ;;
17670 esac
17671
17672 if test "x$lt_cv_dlopen" != xno; then
17673 enable_dlopen=yes
17674 else
17675 enable_dlopen=no
17676 fi
17677
17678 case $lt_cv_dlopen in
17679 dlopen)
17680 save_CPPFLAGS="$CPPFLAGS"
17681 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17682
17683 save_LDFLAGS="$LDFLAGS"
17684 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17685
17686 save_LIBS="$LIBS"
17687 LIBS="$lt_cv_dlopen_libs $LIBS"
17688
17689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17690$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017691if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017692 $as_echo_n "(cached) " >&6
17693else
17694 if test "$cross_compiling" = yes; then :
17695 lt_cv_dlopen_self=cross
17696else
17697 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17698 lt_status=$lt_dlunknown
17699 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017700#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017701#include "confdefs.h"
17702
17703#if HAVE_DLFCN_H
17704#include <dlfcn.h>
17705#endif
17706
17707#include <stdio.h>
17708
17709#ifdef RTLD_GLOBAL
17710# define LT_DLGLOBAL RTLD_GLOBAL
17711#else
17712# ifdef DL_GLOBAL
17713# define LT_DLGLOBAL DL_GLOBAL
17714# else
17715# define LT_DLGLOBAL 0
17716# endif
17717#endif
17718
17719/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17720 find out it does not work in some platform. */
17721#ifndef LT_DLLAZY_OR_NOW
17722# ifdef RTLD_LAZY
17723# define LT_DLLAZY_OR_NOW RTLD_LAZY
17724# else
17725# ifdef DL_LAZY
17726# define LT_DLLAZY_OR_NOW DL_LAZY
17727# else
17728# ifdef RTLD_NOW
17729# define LT_DLLAZY_OR_NOW RTLD_NOW
17730# else
17731# ifdef DL_NOW
17732# define LT_DLLAZY_OR_NOW DL_NOW
17733# else
17734# define LT_DLLAZY_OR_NOW 0
17735# endif
17736# endif
17737# endif
17738# endif
17739#endif
17740
cristy0c60a692010-11-04 01:09:47 +000017741/* When -fvisbility=hidden is used, assume the code has been annotated
17742 correspondingly for the symbols needed. */
17743#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017744int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017745#endif
17746
cristyda16f162011-02-19 23:52:17 +000017747int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017748int main ()
17749{
17750 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17751 int status = $lt_dlunknown;
17752
17753 if (self)
17754 {
17755 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017756 else
17757 {
17758 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17759 else puts (dlerror ());
17760 }
cristy73bd4a52010-10-05 11:24:23 +000017761 /* dlclose (self); */
17762 }
17763 else
17764 puts (dlerror ());
17765
17766 return status;
17767}
17768_LT_EOF
17769 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17770 (eval $ac_link) 2>&5
17771 ac_status=$?
17772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17773 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17774 (./conftest; exit; ) >&5 2>/dev/null
17775 lt_status=$?
17776 case x$lt_status in
17777 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17778 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17779 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17780 esac
17781 else :
17782 # compilation failed
17783 lt_cv_dlopen_self=no
17784 fi
17785fi
17786rm -fr conftest*
17787
17788
17789fi
17790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17791$as_echo "$lt_cv_dlopen_self" >&6; }
17792
17793 if test "x$lt_cv_dlopen_self" = xyes; then
17794 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17796$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017797if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017798 $as_echo_n "(cached) " >&6
17799else
17800 if test "$cross_compiling" = yes; then :
17801 lt_cv_dlopen_self_static=cross
17802else
17803 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17804 lt_status=$lt_dlunknown
17805 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017806#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017807#include "confdefs.h"
17808
17809#if HAVE_DLFCN_H
17810#include <dlfcn.h>
17811#endif
17812
17813#include <stdio.h>
17814
17815#ifdef RTLD_GLOBAL
17816# define LT_DLGLOBAL RTLD_GLOBAL
17817#else
17818# ifdef DL_GLOBAL
17819# define LT_DLGLOBAL DL_GLOBAL
17820# else
17821# define LT_DLGLOBAL 0
17822# endif
17823#endif
17824
17825/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17826 find out it does not work in some platform. */
17827#ifndef LT_DLLAZY_OR_NOW
17828# ifdef RTLD_LAZY
17829# define LT_DLLAZY_OR_NOW RTLD_LAZY
17830# else
17831# ifdef DL_LAZY
17832# define LT_DLLAZY_OR_NOW DL_LAZY
17833# else
17834# ifdef RTLD_NOW
17835# define LT_DLLAZY_OR_NOW RTLD_NOW
17836# else
17837# ifdef DL_NOW
17838# define LT_DLLAZY_OR_NOW DL_NOW
17839# else
17840# define LT_DLLAZY_OR_NOW 0
17841# endif
17842# endif
17843# endif
17844# endif
17845#endif
17846
cristy0c60a692010-11-04 01:09:47 +000017847/* When -fvisbility=hidden is used, assume the code has been annotated
17848 correspondingly for the symbols needed. */
17849#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017850int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017851#endif
17852
cristyda16f162011-02-19 23:52:17 +000017853int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017854int main ()
17855{
17856 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17857 int status = $lt_dlunknown;
17858
17859 if (self)
17860 {
17861 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017862 else
17863 {
17864 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17865 else puts (dlerror ());
17866 }
cristy73bd4a52010-10-05 11:24:23 +000017867 /* dlclose (self); */
17868 }
17869 else
17870 puts (dlerror ());
17871
17872 return status;
17873}
17874_LT_EOF
17875 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17876 (eval $ac_link) 2>&5
17877 ac_status=$?
17878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17879 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17880 (./conftest; exit; ) >&5 2>/dev/null
17881 lt_status=$?
17882 case x$lt_status in
17883 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17884 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17885 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17886 esac
17887 else :
17888 # compilation failed
17889 lt_cv_dlopen_self_static=no
17890 fi
17891fi
17892rm -fr conftest*
17893
17894
17895fi
17896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17897$as_echo "$lt_cv_dlopen_self_static" >&6; }
17898 fi
17899
17900 CPPFLAGS="$save_CPPFLAGS"
17901 LDFLAGS="$save_LDFLAGS"
17902 LIBS="$save_LIBS"
17903 ;;
17904 esac
17905
17906 case $lt_cv_dlopen_self in
17907 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17908 *) enable_dlopen_self=unknown ;;
17909 esac
17910
17911 case $lt_cv_dlopen_self_static in
17912 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17913 *) enable_dlopen_self_static=unknown ;;
17914 esac
17915fi
17916
17917
17918
17919
17920
17921
17922
17923
17924
17925
17926
17927
17928
17929
17930
17931
17932
17933striplib=
17934old_striplib=
17935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17936$as_echo_n "checking whether stripping libraries is possible... " >&6; }
17937if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17938 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17939 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17941$as_echo "yes" >&6; }
17942else
17943# FIXME - insert some real tests, host_os isn't really good enough
17944 case $host_os in
17945 darwin*)
17946 if test -n "$STRIP" ; then
17947 striplib="$STRIP -x"
17948 old_striplib="$STRIP -S"
17949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17950$as_echo "yes" >&6; }
17951 else
17952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17953$as_echo "no" >&6; }
17954 fi
17955 ;;
17956 *)
17957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17958$as_echo "no" >&6; }
17959 ;;
17960 esac
17961fi
17962
17963
17964
17965
17966
17967
17968
17969
17970
17971
17972
17973
17974 # Report which library types will actually be built
17975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17976$as_echo_n "checking if libtool supports shared libraries... " >&6; }
17977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17978$as_echo "$can_build_shared" >&6; }
17979
17980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17981$as_echo_n "checking whether to build shared libraries... " >&6; }
17982 test "$can_build_shared" = "no" && enable_shared=no
17983
17984 # On AIX, shared libraries and static libraries use the same namespace, and
17985 # are all built from PIC.
17986 case $host_os in
17987 aix3*)
17988 test "$enable_shared" = yes && enable_static=no
17989 if test -n "$RANLIB"; then
17990 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17991 postinstall_cmds='$RANLIB $lib'
17992 fi
17993 ;;
17994
17995 aix[4-9]*)
17996 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17997 test "$enable_shared" = yes && enable_static=no
17998 fi
17999 ;;
18000 esac
18001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18002$as_echo "$enable_shared" >&6; }
18003
18004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18005$as_echo_n "checking whether to build static libraries... " >&6; }
18006 # Make sure either enable_shared or enable_static is yes.
18007 test "$enable_shared" = yes || enable_static=yes
18008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18009$as_echo "$enable_static" >&6; }
18010
18011
18012
18013
18014fi
18015ac_ext=c
18016ac_cpp='$CPP $CPPFLAGS'
18017ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18018ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18019ac_compiler_gnu=$ac_cv_c_compiler_gnu
18020
18021CC="$lt_save_CC"
18022
cristy0c60a692010-11-04 01:09:47 +000018023 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18024 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18025 (test "X$CXX" != "Xg++"))) ; then
18026 ac_ext=cpp
18027ac_cpp='$CXXCPP $CPPFLAGS'
18028ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18029ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18030ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18032$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18033if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000018034 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000018035 $as_echo_n "(cached) " >&6
18036else
18037 # Double quotes because CXXCPP needs to be expanded
18038 for CXXCPP in "$CXX -E" "/lib/cpp"
18039 do
18040 ac_preproc_ok=false
18041for ac_cxx_preproc_warn_flag in '' yes
18042do
18043 # Use a header file that comes with gcc, so configuring glibc
18044 # with a fresh cross-compiler works.
18045 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18046 # <limits.h> exists even on freestanding compilers.
18047 # On the NeXT, cc -E runs the code through the compiler's parser,
18048 # not just through cpp. "Syntax error" is here to catch this case.
18049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18050/* end confdefs.h. */
18051#ifdef __STDC__
18052# include <limits.h>
18053#else
18054# include <assert.h>
18055#endif
18056 Syntax error
18057_ACEOF
18058if ac_fn_cxx_try_cpp "$LINENO"; then :
18059
18060else
18061 # Broken: fails on valid input.
18062continue
18063fi
cristyda16f162011-02-19 23:52:17 +000018064rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018065
18066 # OK, works on sane cases. Now check whether nonexistent headers
18067 # can be detected and how.
18068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18069/* end confdefs.h. */
18070#include <ac_nonexistent.h>
18071_ACEOF
18072if ac_fn_cxx_try_cpp "$LINENO"; then :
18073 # Broken: success on invalid input.
18074continue
18075else
18076 # Passes both tests.
18077ac_preproc_ok=:
18078break
18079fi
cristyda16f162011-02-19 23:52:17 +000018080rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018081
18082done
18083# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000018084rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018085if $ac_preproc_ok; then :
18086 break
18087fi
18088
18089 done
18090 ac_cv_prog_CXXCPP=$CXXCPP
18091
18092fi
18093 CXXCPP=$ac_cv_prog_CXXCPP
18094else
18095 ac_cv_prog_CXXCPP=$CXXCPP
18096fi
18097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18098$as_echo "$CXXCPP" >&6; }
18099ac_preproc_ok=false
18100for ac_cxx_preproc_warn_flag in '' yes
18101do
18102 # Use a header file that comes with gcc, so configuring glibc
18103 # with a fresh cross-compiler works.
18104 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18105 # <limits.h> exists even on freestanding compilers.
18106 # On the NeXT, cc -E runs the code through the compiler's parser,
18107 # not just through cpp. "Syntax error" is here to catch this case.
18108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18109/* end confdefs.h. */
18110#ifdef __STDC__
18111# include <limits.h>
18112#else
18113# include <assert.h>
18114#endif
18115 Syntax error
18116_ACEOF
18117if ac_fn_cxx_try_cpp "$LINENO"; then :
18118
18119else
18120 # Broken: fails on valid input.
18121continue
18122fi
cristyda16f162011-02-19 23:52:17 +000018123rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018124
18125 # OK, works on sane cases. Now check whether nonexistent headers
18126 # can be detected and how.
18127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18128/* end confdefs.h. */
18129#include <ac_nonexistent.h>
18130_ACEOF
18131if ac_fn_cxx_try_cpp "$LINENO"; then :
18132 # Broken: success on invalid input.
18133continue
18134else
18135 # Passes both tests.
18136ac_preproc_ok=:
18137break
18138fi
cristyda16f162011-02-19 23:52:17 +000018139rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018140
18141done
18142# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000018143rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018144if $ac_preproc_ok; then :
18145
18146else
18147 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18148$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18149as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
18150See \`config.log' for more details" "$LINENO" 5; }
18151fi
18152
18153ac_ext=c
18154ac_cpp='$CPP $CPPFLAGS'
18155ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18156ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18157ac_compiler_gnu=$ac_cv_c_compiler_gnu
18158
18159else
18160 _lt_caught_CXX_error=yes
18161fi
cristy73bd4a52010-10-05 11:24:23 +000018162
18163ac_ext=cpp
18164ac_cpp='$CXXCPP $CPPFLAGS'
18165ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18166ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18167ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18168
18169archive_cmds_need_lc_CXX=no
18170allow_undefined_flag_CXX=
18171always_export_symbols_CXX=no
18172archive_expsym_cmds_CXX=
18173compiler_needs_object_CXX=no
18174export_dynamic_flag_spec_CXX=
18175hardcode_direct_CXX=no
18176hardcode_direct_absolute_CXX=no
18177hardcode_libdir_flag_spec_CXX=
cristy73bd4a52010-10-05 11:24:23 +000018178hardcode_libdir_separator_CXX=
18179hardcode_minus_L_CXX=no
18180hardcode_shlibpath_var_CXX=unsupported
18181hardcode_automatic_CXX=no
18182inherit_rpath_CXX=no
18183module_cmds_CXX=
18184module_expsym_cmds_CXX=
18185link_all_deplibs_CXX=unknown
18186old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000018187reload_flag_CXX=$reload_flag
18188reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000018189no_undefined_flag_CXX=
18190whole_archive_flag_spec_CXX=
18191enable_shared_with_static_runtimes_CXX=no
18192
18193# Source file extension for C++ test sources.
18194ac_ext=cpp
18195
18196# Object file extension for compiled C++ test sources.
18197objext=o
18198objext_CXX=$objext
18199
18200# No sense in running all these tests if we already determined that
18201# the CXX compiler isn't working. Some variables (like enable_shared)
18202# are currently assumed to apply to all compilers on this platform,
18203# and will be corrupted by setting them based on a non-working compiler.
18204if test "$_lt_caught_CXX_error" != yes; then
18205 # Code to be used in simple compile tests
18206 lt_simple_compile_test_code="int some_variable = 0;"
18207
18208 # Code to be used in simple link tests
18209 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18210
18211 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18212
18213
18214
18215
18216
18217
18218# If no C compiler was specified, use CC.
18219LTCC=${LTCC-"$CC"}
18220
18221# If no C compiler flags were specified, use CFLAGS.
18222LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18223
18224# Allow CC to be a program name with arguments.
18225compiler=$CC
18226
18227
18228 # save warnings/boilerplate of simple test code
18229 ac_outfile=conftest.$ac_objext
18230echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18231eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18232_lt_compiler_boilerplate=`cat conftest.err`
18233$RM conftest*
18234
18235 ac_outfile=conftest.$ac_objext
18236echo "$lt_simple_link_test_code" >conftest.$ac_ext
18237eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18238_lt_linker_boilerplate=`cat conftest.err`
18239$RM -r conftest*
18240
18241
18242 # Allow CC to be a program name with arguments.
18243 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000018244 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018245 lt_save_LD=$LD
18246 lt_save_GCC=$GCC
18247 GCC=$GXX
18248 lt_save_with_gnu_ld=$with_gnu_ld
18249 lt_save_path_LD=$lt_cv_path_LD
18250 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18251 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18252 else
18253 $as_unset lt_cv_prog_gnu_ld
18254 fi
18255 if test -n "${lt_cv_path_LDCXX+set}"; then
18256 lt_cv_path_LD=$lt_cv_path_LDCXX
18257 else
18258 $as_unset lt_cv_path_LD
18259 fi
18260 test -z "${LDCXX+set}" || LD=$LDCXX
18261 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000018262 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018263 compiler=$CC
18264 compiler_CXX=$CC
18265 for cc_temp in $compiler""; do
18266 case $cc_temp in
18267 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18268 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18269 \-*) ;;
18270 *) break;;
18271 esac
18272done
cristy0c60a692010-11-04 01:09:47 +000018273cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000018274
18275
18276 if test -n "$compiler"; then
18277 # We don't want -fno-exception when compiling C++ code, so set the
18278 # no_builtin_flag separately
18279 if test "$GXX" = yes; then
18280 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18281 else
18282 lt_prog_compiler_no_builtin_flag_CXX=
18283 fi
18284
18285 if test "$GXX" = yes; then
18286 # Set up default GNU C++ configuration
18287
18288
18289
18290# Check whether --with-gnu-ld was given.
18291if test "${with_gnu_ld+set}" = set; then :
18292 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18293else
18294 with_gnu_ld=no
18295fi
18296
18297ac_prog=ld
18298if test "$GCC" = yes; then
18299 # Check if gcc -print-prog-name=ld gives a path.
18300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18301$as_echo_n "checking for ld used by $CC... " >&6; }
18302 case $host in
18303 *-*-mingw*)
18304 # gcc leaves a trailing carriage return which upsets mingw
18305 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18306 *)
18307 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18308 esac
18309 case $ac_prog in
18310 # Accept absolute paths.
18311 [\\/]* | ?:[\\/]*)
18312 re_direlt='/[^/][^/]*/\.\./'
18313 # Canonicalize the pathname of ld
18314 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18315 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18316 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18317 done
18318 test -z "$LD" && LD="$ac_prog"
18319 ;;
18320 "")
18321 # If it fails, then pretend we aren't using GCC.
18322 ac_prog=ld
18323 ;;
18324 *)
18325 # If it is relative, then search for the first ld in PATH.
18326 with_gnu_ld=unknown
18327 ;;
18328 esac
18329elif test "$with_gnu_ld" = yes; then
18330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18331$as_echo_n "checking for GNU ld... " >&6; }
18332else
18333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18334$as_echo_n "checking for non-GNU ld... " >&6; }
18335fi
cristyda16f162011-02-19 23:52:17 +000018336if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018337 $as_echo_n "(cached) " >&6
18338else
18339 if test -z "$LD"; then
18340 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18341 for ac_dir in $PATH; do
18342 IFS="$lt_save_ifs"
18343 test -z "$ac_dir" && ac_dir=.
18344 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18345 lt_cv_path_LD="$ac_dir/$ac_prog"
18346 # Check to see if the program is GNU ld. I'd rather use --version,
18347 # but apparently some variants of GNU ld only accept -v.
18348 # Break only if it was the GNU/non-GNU ld that we prefer.
18349 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18350 *GNU* | *'with BFD'*)
18351 test "$with_gnu_ld" != no && break
18352 ;;
18353 *)
18354 test "$with_gnu_ld" != yes && break
18355 ;;
18356 esac
18357 fi
18358 done
18359 IFS="$lt_save_ifs"
18360else
18361 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18362fi
18363fi
18364
18365LD="$lt_cv_path_LD"
18366if test -n "$LD"; then
18367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18368$as_echo "$LD" >&6; }
18369else
18370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18371$as_echo "no" >&6; }
18372fi
cristy98dddb52010-11-04 00:30:15 +000018373test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000018374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18375$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018376if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018377 $as_echo_n "(cached) " >&6
18378else
18379 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18380case `$LD -v 2>&1 </dev/null` in
18381*GNU* | *'with BFD'*)
18382 lt_cv_prog_gnu_ld=yes
18383 ;;
18384*)
18385 lt_cv_prog_gnu_ld=no
18386 ;;
18387esac
18388fi
18389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18390$as_echo "$lt_cv_prog_gnu_ld" >&6; }
18391with_gnu_ld=$lt_cv_prog_gnu_ld
18392
18393
18394
18395
18396
18397
18398
18399 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18400 # archiving commands below assume that GNU ld is being used.
18401 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000018402 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18403 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 +000018404
18405 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18406 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18407
18408 # If archive_cmds runs LD, not CC, wlarc should be empty
18409 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18410 # investigate it a little bit more. (MM)
18411 wlarc='${wl}'
18412
18413 # ancient GNU ld didn't support --whole-archive et. al.
18414 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18415 $GREP 'no-whole-archive' > /dev/null; then
18416 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18417 else
18418 whole_archive_flag_spec_CXX=
18419 fi
18420 else
18421 with_gnu_ld=no
18422 wlarc=
18423
18424 # A generic and very simple default shared library creation
18425 # command for GNU C++ for the case where it uses the native
18426 # linker, instead of GNU ld. If possible, this setting should
18427 # overridden to take advantage of the native linker features on
18428 # the platform it is being used on.
18429 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18430 fi
18431
18432 # Commands to make compiler produce verbose output that lists
18433 # what "hidden" libraries, object files and flags are used when
18434 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018435 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018436
18437 else
18438 GXX=no
18439 with_gnu_ld=no
18440 wlarc=
18441 fi
18442
18443 # PORTME: fill in a description of your system's C++ link characteristics
18444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18445$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18446 ld_shlibs_CXX=yes
18447 case $host_os in
18448 aix3*)
18449 # FIXME: insert proper C++ library support
18450 ld_shlibs_CXX=no
18451 ;;
18452 aix[4-9]*)
18453 if test "$host_cpu" = ia64; then
18454 # On IA64, the linker does run time linking by default, so we don't
18455 # have to do anything special.
18456 aix_use_runtimelinking=no
18457 exp_sym_flag='-Bexport'
18458 no_entry_flag=""
18459 else
18460 aix_use_runtimelinking=no
18461
18462 # Test if we are trying to use run time linking or normal
18463 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18464 # need to do runtime linking.
18465 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18466 for ld_flag in $LDFLAGS; do
18467 case $ld_flag in
18468 *-brtl*)
18469 aix_use_runtimelinking=yes
18470 break
18471 ;;
18472 esac
18473 done
18474 ;;
18475 esac
18476
18477 exp_sym_flag='-bexport'
18478 no_entry_flag='-bnoentry'
18479 fi
18480
18481 # When large executables or shared objects are built, AIX ld can
18482 # have problems creating the table of contents. If linking a library
18483 # or program results in "error TOC overflow" add -mminimal-toc to
18484 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18485 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18486
18487 archive_cmds_CXX=''
18488 hardcode_direct_CXX=yes
18489 hardcode_direct_absolute_CXX=yes
18490 hardcode_libdir_separator_CXX=':'
18491 link_all_deplibs_CXX=yes
18492 file_list_spec_CXX='${wl}-f,'
18493
18494 if test "$GXX" = yes; then
18495 case $host_os in aix4.[012]|aix4.[012].*)
18496 # We only want to do this on AIX 4.2 and lower, the check
18497 # below for broken collect2 doesn't work under 4.3+
18498 collect2name=`${CC} -print-prog-name=collect2`
18499 if test -f "$collect2name" &&
18500 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18501 then
18502 # We have reworked collect2
18503 :
18504 else
18505 # We have old collect2
18506 hardcode_direct_CXX=unsupported
18507 # It fails to find uninstalled libraries when the uninstalled
18508 # path is not listed in the libpath. Setting hardcode_minus_L
18509 # to unsupported forces relinking
18510 hardcode_minus_L_CXX=yes
18511 hardcode_libdir_flag_spec_CXX='-L$libdir'
18512 hardcode_libdir_separator_CXX=
18513 fi
18514 esac
18515 shared_flag='-shared'
18516 if test "$aix_use_runtimelinking" = yes; then
18517 shared_flag="$shared_flag "'${wl}-G'
18518 fi
18519 else
18520 # not using gcc
18521 if test "$host_cpu" = ia64; then
18522 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18523 # chokes on -Wl,-G. The following line is correct:
18524 shared_flag='-G'
18525 else
18526 if test "$aix_use_runtimelinking" = yes; then
18527 shared_flag='${wl}-G'
18528 else
18529 shared_flag='${wl}-bM:SRE'
18530 fi
18531 fi
18532 fi
18533
18534 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18535 # It seems that -bexpall does not export symbols beginning with
18536 # underscore (_), so it is better to generate a list of symbols to
18537 # export.
18538 always_export_symbols_CXX=yes
18539 if test "$aix_use_runtimelinking" = yes; then
18540 # Warning - without using the other runtime loading flags (-brtl),
18541 # -berok will link without error, but may produce a broken library.
18542 allow_undefined_flag_CXX='-berok'
18543 # Determine the default libpath from the value encoded in an empty
18544 # executable.
cristyda16f162011-02-19 23:52:17 +000018545 if test "${lt_cv_aix_libpath+set}" = set; then
18546 aix_libpath=$lt_cv_aix_libpath
18547else
18548 if ${lt_cv_aix_libpath__CXX+:} false; then :
18549 $as_echo_n "(cached) " >&6
18550else
18551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018552/* end confdefs.h. */
18553
18554int
18555main ()
18556{
18557
18558 ;
18559 return 0;
18560}
18561_ACEOF
18562if ac_fn_cxx_try_link "$LINENO"; then :
18563
cristyda16f162011-02-19 23:52:17 +000018564 lt_aix_libpath_sed='
18565 /Import File Strings/,/^$/ {
18566 /^0/ {
18567 s/^0 *\([^ ]*\) *$/\1/
18568 p
18569 }
18570 }'
18571 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18572 # Check for a 64-bit object if we didn't find anything.
18573 if test -z "$lt_cv_aix_libpath__CXX"; then
18574 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18575 fi
cristy73bd4a52010-10-05 11:24:23 +000018576fi
18577rm -f core conftest.err conftest.$ac_objext \
18578 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018579 if test -z "$lt_cv_aix_libpath__CXX"; then
18580 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18581 fi
18582
18583fi
18584
18585 aix_libpath=$lt_cv_aix_libpath__CXX
18586fi
cristy73bd4a52010-10-05 11:24:23 +000018587
18588 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18589
cristy0c60a692010-11-04 01:09:47 +000018590 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 +000018591 else
18592 if test "$host_cpu" = ia64; then
18593 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18594 allow_undefined_flag_CXX="-z nodefs"
18595 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"
18596 else
18597 # Determine the default libpath from the value encoded in an
18598 # empty executable.
cristyda16f162011-02-19 23:52:17 +000018599 if test "${lt_cv_aix_libpath+set}" = set; then
18600 aix_libpath=$lt_cv_aix_libpath
18601else
18602 if ${lt_cv_aix_libpath__CXX+:} false; then :
18603 $as_echo_n "(cached) " >&6
18604else
18605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018606/* end confdefs.h. */
18607
18608int
18609main ()
18610{
18611
18612 ;
18613 return 0;
18614}
18615_ACEOF
18616if ac_fn_cxx_try_link "$LINENO"; then :
18617
cristyda16f162011-02-19 23:52:17 +000018618 lt_aix_libpath_sed='
18619 /Import File Strings/,/^$/ {
18620 /^0/ {
18621 s/^0 *\([^ ]*\) *$/\1/
18622 p
18623 }
18624 }'
18625 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18626 # Check for a 64-bit object if we didn't find anything.
18627 if test -z "$lt_cv_aix_libpath__CXX"; then
18628 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18629 fi
cristy73bd4a52010-10-05 11:24:23 +000018630fi
18631rm -f core conftest.err conftest.$ac_objext \
18632 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018633 if test -z "$lt_cv_aix_libpath__CXX"; then
18634 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18635 fi
18636
18637fi
18638
18639 aix_libpath=$lt_cv_aix_libpath__CXX
18640fi
cristy73bd4a52010-10-05 11:24:23 +000018641
18642 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18643 # Warning - without using the other run time loading flags,
18644 # -berok will link without error, but may produce a broken library.
18645 no_undefined_flag_CXX=' ${wl}-bernotok'
18646 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000018647 if test "$with_gnu_ld" = yes; then
18648 # We only use this code for GNU lds that support --whole-archive.
18649 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18650 else
18651 # Exported symbols can be pulled into shared objects from archives
18652 whole_archive_flag_spec_CXX='$convenience'
18653 fi
cristy73bd4a52010-10-05 11:24:23 +000018654 archive_cmds_need_lc_CXX=yes
18655 # This is similar to how AIX traditionally builds its shared
18656 # libraries.
18657 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'
18658 fi
18659 fi
18660 ;;
18661
18662 beos*)
18663 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18664 allow_undefined_flag_CXX=unsupported
18665 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18666 # support --undefined. This deserves some investigation. FIXME
18667 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18668 else
18669 ld_shlibs_CXX=no
18670 fi
18671 ;;
18672
18673 chorus*)
18674 case $cc_basename in
18675 *)
18676 # FIXME: insert proper C++ library support
18677 ld_shlibs_CXX=no
18678 ;;
18679 esac
18680 ;;
18681
18682 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000018683 case $GXX,$cc_basename in
18684 ,cl* | no,cl*)
18685 # Native MSVC
18686 # hardcode_libdir_flag_spec is actually meaningless, as there is
18687 # no search path for DLLs.
18688 hardcode_libdir_flag_spec_CXX=' '
18689 allow_undefined_flag_CXX=unsupported
18690 always_export_symbols_CXX=yes
18691 file_list_spec_CXX='@'
18692 # Tell ltmain to make .lib files, not .a files.
18693 libext=lib
18694 # Tell ltmain to make .dll files, not .so files.
18695 shrext_cmds=".dll"
18696 # FIXME: Setting linknames here is a bad hack.
18697 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
18698 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18699 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
18700 else
18701 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
18702 fi~
18703 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
18704 linknames='
18705 # The linker will not automatically build a static lib if we build a DLL.
18706 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
18707 enable_shared_with_static_runtimes_CXX=yes
18708 # Don't use ranlib
18709 old_postinstall_cmds_CXX='chmod 644 $oldlib'
18710 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
18711 lt_tool_outputfile="@TOOL_OUTPUT@"~
18712 case $lt_outputfile in
18713 *.exe|*.EXE) ;;
18714 *)
18715 lt_outputfile="$lt_outputfile.exe"
18716 lt_tool_outputfile="$lt_tool_outputfile.exe"
18717 ;;
18718 esac~
18719 func_to_tool_file "$lt_outputfile"~
18720 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
18721 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
18722 $RM "$lt_outputfile.manifest";
18723 fi'
18724 ;;
18725 *)
18726 # g++
18727 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18728 # as there is no search path for DLLs.
18729 hardcode_libdir_flag_spec_CXX='-L$libdir'
18730 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18731 allow_undefined_flag_CXX=unsupported
18732 always_export_symbols_CXX=no
18733 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000018734
cristyda16f162011-02-19 23:52:17 +000018735 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18736 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'
18737 # If the export-symbols file already is a .def file (1st line
18738 # is EXPORTS), use it as is; otherwise, prepend...
18739 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18740 cp $export_symbols $output_objdir/$soname.def;
18741 else
18742 echo EXPORTS > $output_objdir/$soname.def;
18743 cat $export_symbols >> $output_objdir/$soname.def;
18744 fi~
18745 $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'
18746 else
18747 ld_shlibs_CXX=no
18748 fi
18749 ;;
18750 esac
18751 ;;
cristy73bd4a52010-10-05 11:24:23 +000018752 darwin* | rhapsody*)
18753
18754
18755 archive_cmds_need_lc_CXX=no
18756 hardcode_direct_CXX=no
18757 hardcode_automatic_CXX=yes
18758 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000018759 if test "$lt_cv_ld_force_load" = "yes"; then
18760 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 +000018761
cristy0c60a692010-11-04 01:09:47 +000018762 else
18763 whole_archive_flag_spec_CXX=''
18764 fi
cristy73bd4a52010-10-05 11:24:23 +000018765 link_all_deplibs_CXX=yes
18766 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18767 case $cc_basename in
18768 ifort*) _lt_dar_can_shared=yes ;;
18769 *) _lt_dar_can_shared=$GCC ;;
18770 esac
18771 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000018772 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018773 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}"
18774 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18775 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}"
18776 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}"
18777 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18778 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}"
18779 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}"
18780 fi
18781
18782 else
18783 ld_shlibs_CXX=no
18784 fi
18785
18786 ;;
18787
18788 dgux*)
18789 case $cc_basename in
18790 ec++*)
18791 # FIXME: insert proper C++ library support
18792 ld_shlibs_CXX=no
18793 ;;
18794 ghcx*)
18795 # Green Hills C++ Compiler
18796 # FIXME: insert proper C++ library support
18797 ld_shlibs_CXX=no
18798 ;;
18799 *)
18800 # FIXME: insert proper C++ library support
18801 ld_shlibs_CXX=no
18802 ;;
18803 esac
18804 ;;
18805
cristy99bd5232011-12-07 14:38:20 +000018806 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000018807 # C++ shared libraries reported to be fairly broken before
18808 # switch to ELF
18809 ld_shlibs_CXX=no
18810 ;;
18811
18812 freebsd-elf*)
18813 archive_cmds_need_lc_CXX=no
18814 ;;
18815
18816 freebsd* | dragonfly*)
18817 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18818 # conventions
18819 ld_shlibs_CXX=yes
18820 ;;
18821
18822 gnu*)
18823 ;;
18824
cristy0c60a692010-11-04 01:09:47 +000018825 haiku*)
18826 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18827 link_all_deplibs_CXX=yes
18828 ;;
18829
cristy73bd4a52010-10-05 11:24:23 +000018830 hpux9*)
18831 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18832 hardcode_libdir_separator_CXX=:
18833 export_dynamic_flag_spec_CXX='${wl}-E'
18834 hardcode_direct_CXX=yes
18835 hardcode_minus_L_CXX=yes # Not in the search PATH,
18836 # but as the default
18837 # location of the library.
18838
18839 case $cc_basename in
18840 CC*)
18841 # FIXME: insert proper C++ library support
18842 ld_shlibs_CXX=no
18843 ;;
18844 aCC*)
18845 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'
18846 # Commands to make compiler produce verbose output that lists
18847 # what "hidden" libraries, object files and flags are used when
18848 # linking a shared library.
18849 #
18850 # There doesn't appear to be a way to prevent this compiler from
18851 # explicitly linking system object files so we need to strip them
18852 # from the output so that they don't get included in the library
18853 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018854 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 +000018855 ;;
18856 *)
18857 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000018858 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 +000018859 else
18860 # FIXME: insert proper C++ library support
18861 ld_shlibs_CXX=no
18862 fi
18863 ;;
18864 esac
18865 ;;
18866
18867 hpux10*|hpux11*)
18868 if test $with_gnu_ld = no; then
18869 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18870 hardcode_libdir_separator_CXX=:
18871
18872 case $host_cpu in
18873 hppa*64*|ia64*)
18874 ;;
18875 *)
18876 export_dynamic_flag_spec_CXX='${wl}-E'
18877 ;;
18878 esac
18879 fi
18880 case $host_cpu in
18881 hppa*64*|ia64*)
18882 hardcode_direct_CXX=no
18883 hardcode_shlibpath_var_CXX=no
18884 ;;
18885 *)
18886 hardcode_direct_CXX=yes
18887 hardcode_direct_absolute_CXX=yes
18888 hardcode_minus_L_CXX=yes # Not in the search PATH,
18889 # but as the default
18890 # location of the library.
18891 ;;
18892 esac
18893
18894 case $cc_basename in
18895 CC*)
18896 # FIXME: insert proper C++ library support
18897 ld_shlibs_CXX=no
18898 ;;
18899 aCC*)
18900 case $host_cpu in
18901 hppa*64*)
18902 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18903 ;;
18904 ia64*)
18905 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18906 ;;
18907 *)
18908 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18909 ;;
18910 esac
18911 # Commands to make compiler produce verbose output that lists
18912 # what "hidden" libraries, object files and flags are used when
18913 # linking a shared library.
18914 #
18915 # There doesn't appear to be a way to prevent this compiler from
18916 # explicitly linking system object files so we need to strip them
18917 # from the output so that they don't get included in the library
18918 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018919 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 +000018920 ;;
18921 *)
18922 if test "$GXX" = yes; then
18923 if test $with_gnu_ld = no; then
18924 case $host_cpu in
18925 hppa*64*)
18926 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18927 ;;
18928 ia64*)
cristyda16f162011-02-19 23:52:17 +000018929 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 +000018930 ;;
18931 *)
cristyda16f162011-02-19 23:52:17 +000018932 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 +000018933 ;;
18934 esac
18935 fi
18936 else
18937 # FIXME: insert proper C++ library support
18938 ld_shlibs_CXX=no
18939 fi
18940 ;;
18941 esac
18942 ;;
18943
18944 interix[3-9]*)
18945 hardcode_direct_CXX=no
18946 hardcode_shlibpath_var_CXX=no
18947 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18948 export_dynamic_flag_spec_CXX='${wl}-E'
18949 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18950 # Instead, shared libraries are loaded at an image base (0x10000000 by
18951 # default) and relocated if they conflict, which is a slow very memory
18952 # consuming and fragmenting process. To avoid this, we pick a random,
18953 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18954 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18955 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'
18956 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'
18957 ;;
18958 irix5* | irix6*)
18959 case $cc_basename in
18960 CC*)
18961 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000018962 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 +000018963
18964 # Archives containing C++ object files must be created using
18965 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18966 # necessary to make sure instantiated templates are included
18967 # in the archive.
18968 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18969 ;;
18970 *)
18971 if test "$GXX" = yes; then
18972 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000018973 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 +000018974 else
cristyda16f162011-02-19 23:52:17 +000018975 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 +000018976 fi
18977 fi
18978 link_all_deplibs_CXX=yes
18979 ;;
18980 esac
18981 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18982 hardcode_libdir_separator_CXX=:
18983 inherit_rpath_CXX=yes
18984 ;;
18985
cristy0c60a692010-11-04 01:09:47 +000018986 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000018987 case $cc_basename in
18988 KCC*)
18989 # Kuck and Associates, Inc. (KAI) C++ Compiler
18990
18991 # KCC will only create a shared library if the output file
18992 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18993 # to its proper name (with version) after linking.
18994 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'
18995 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'
18996 # Commands to make compiler produce verbose output that lists
18997 # what "hidden" libraries, object files and flags are used when
18998 # linking a shared library.
18999 #
19000 # There doesn't appear to be a way to prevent this compiler from
19001 # explicitly linking system object files so we need to strip them
19002 # from the output so that they don't get included in the library
19003 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000019004 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 +000019005
19006 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19007 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19008
19009 # Archives containing C++ object files must be created using
19010 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19011 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19012 ;;
19013 icpc* | ecpc* )
19014 # Intel C++
19015 with_gnu_ld=yes
19016 # version 8.0 and above of icpc choke on multiply defined symbols
19017 # if we add $predep_objects and $postdep_objects, however 7.1 and
19018 # earlier do not add the objects themselves.
19019 case `$CC -V 2>&1` in
19020 *"Version 7."*)
19021 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19022 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'
19023 ;;
19024 *) # Version 8.0 or newer
19025 tmp_idyn=
19026 case $host_cpu in
19027 ia64*) tmp_idyn=' -i_dynamic';;
19028 esac
19029 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19030 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'
19031 ;;
19032 esac
19033 archive_cmds_need_lc_CXX=no
19034 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19035 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19036 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19037 ;;
19038 pgCC* | pgcpp*)
19039 # Portland Group C++ compiler
19040 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000019041 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000019042 prelink_cmds_CXX='tpldir=Template.dir~
19043 rm -rf $tpldir~
19044 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000019045 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000019046 old_archive_cmds_CXX='tpldir=Template.dir~
19047 rm -rf $tpldir~
19048 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000019049 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000019050 $RANLIB $oldlib'
19051 archive_cmds_CXX='tpldir=Template.dir~
19052 rm -rf $tpldir~
19053 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000019054 $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 +000019055 archive_expsym_cmds_CXX='tpldir=Template.dir~
19056 rm -rf $tpldir~
19057 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000019058 $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 +000019059 ;;
cristy0c60a692010-11-04 01:09:47 +000019060 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000019061 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19062 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'
19063 ;;
19064 esac
19065
19066 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19067 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000019068 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 +000019069 ;;
19070 cxx*)
19071 # Compaq C++
19072 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19073 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'
19074
19075 runpath_var=LD_RUN_PATH
19076 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19077 hardcode_libdir_separator_CXX=:
19078
19079 # Commands to make compiler produce verbose output that lists
19080 # what "hidden" libraries, object files and flags are used when
19081 # linking a shared library.
19082 #
19083 # There doesn't appear to be a way to prevent this compiler from
19084 # explicitly linking system object files so we need to strip them
19085 # from the output so that they don't get included in the library
19086 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000019087 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 +000019088 ;;
cristy0c60a692010-11-04 01:09:47 +000019089 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000019090 # IBM XL 8.0 on PPC, with GNU ld
19091 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19092 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19093 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19094 if test "x$supports_anon_versioning" = xyes; then
19095 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19096 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19097 echo "local: *; };" >> $output_objdir/$libname.ver~
19098 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19099 fi
19100 ;;
19101 *)
19102 case `$CC -V 2>&1 | sed 5q` in
19103 *Sun\ C*)
19104 # Sun C++ 5.9
19105 no_undefined_flag_CXX=' -zdefs'
19106 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19107 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'
19108 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000019109 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 +000019110 compiler_needs_object_CXX=yes
19111
19112 # Not sure whether something based on
19113 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19114 # would be better.
cristy0c60a692010-11-04 01:09:47 +000019115 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000019116
19117 # Archives containing C++ object files must be created using
19118 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19119 # necessary to make sure instantiated templates are included
19120 # in the archive.
19121 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19122 ;;
19123 esac
19124 ;;
19125 esac
19126 ;;
19127
19128 lynxos*)
19129 # FIXME: insert proper C++ library support
19130 ld_shlibs_CXX=no
19131 ;;
19132
19133 m88k*)
19134 # FIXME: insert proper C++ library support
19135 ld_shlibs_CXX=no
19136 ;;
19137
19138 mvs*)
19139 case $cc_basename in
19140 cxx*)
19141 # FIXME: insert proper C++ library support
19142 ld_shlibs_CXX=no
19143 ;;
19144 *)
19145 # FIXME: insert proper C++ library support
19146 ld_shlibs_CXX=no
19147 ;;
19148 esac
19149 ;;
19150
19151 netbsd*)
19152 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19153 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19154 wlarc=
19155 hardcode_libdir_flag_spec_CXX='-R$libdir'
19156 hardcode_direct_CXX=yes
19157 hardcode_shlibpath_var_CXX=no
19158 fi
19159 # Workaround some broken pre-1.5 toolchains
19160 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19161 ;;
19162
19163 *nto* | *qnx*)
19164 ld_shlibs_CXX=yes
19165 ;;
19166
19167 openbsd2*)
19168 # C++ shared libraries are fairly broken
19169 ld_shlibs_CXX=no
19170 ;;
19171
19172 openbsd*)
19173 if test -f /usr/libexec/ld.so; then
19174 hardcode_direct_CXX=yes
19175 hardcode_shlibpath_var_CXX=no
19176 hardcode_direct_absolute_CXX=yes
19177 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19178 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19179 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19180 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19181 export_dynamic_flag_spec_CXX='${wl}-E'
19182 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19183 fi
cristy0c60a692010-11-04 01:09:47 +000019184 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000019185 else
19186 ld_shlibs_CXX=no
19187 fi
19188 ;;
19189
19190 osf3* | osf4* | osf5*)
19191 case $cc_basename in
19192 KCC*)
19193 # Kuck and Associates, Inc. (KAI) C++ Compiler
19194
19195 # KCC will only create a shared library if the output file
19196 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19197 # to its proper name (with version) after linking.
19198 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'
19199
19200 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19201 hardcode_libdir_separator_CXX=:
19202
19203 # Archives containing C++ object files must be created using
19204 # the KAI C++ compiler.
19205 case $host in
19206 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19207 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19208 esac
19209 ;;
19210 RCC*)
19211 # Rational C++ 2.4.1
19212 # FIXME: insert proper C++ library support
19213 ld_shlibs_CXX=no
19214 ;;
19215 cxx*)
19216 case $host in
19217 osf3*)
19218 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000019219 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 +000019220 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19221 ;;
19222 *)
19223 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000019224 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 +000019225 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19226 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000019227 $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 +000019228 $RM $lib.exp'
19229 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19230 ;;
19231 esac
19232
19233 hardcode_libdir_separator_CXX=:
19234
19235 # Commands to make compiler produce verbose output that lists
19236 # what "hidden" libraries, object files and flags are used when
19237 # linking a shared library.
19238 #
19239 # There doesn't appear to be a way to prevent this compiler from
19240 # explicitly linking system object files so we need to strip them
19241 # from the output so that they don't get included in the library
19242 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000019243 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 +000019244 ;;
19245 *)
19246 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19247 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19248 case $host in
19249 osf3*)
cristy0c60a692010-11-04 01:09:47 +000019250 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 +000019251 ;;
19252 *)
cristyda16f162011-02-19 23:52:17 +000019253 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 +000019254 ;;
19255 esac
19256
19257 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19258 hardcode_libdir_separator_CXX=:
19259
19260 # Commands to make compiler produce verbose output that lists
19261 # what "hidden" libraries, object files and flags are used when
19262 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019263 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019264
19265 else
19266 # FIXME: insert proper C++ library support
19267 ld_shlibs_CXX=no
19268 fi
19269 ;;
19270 esac
19271 ;;
19272
19273 psos*)
19274 # FIXME: insert proper C++ library support
19275 ld_shlibs_CXX=no
19276 ;;
19277
19278 sunos4*)
19279 case $cc_basename in
19280 CC*)
19281 # Sun C++ 4.x
19282 # FIXME: insert proper C++ library support
19283 ld_shlibs_CXX=no
19284 ;;
19285 lcc*)
19286 # Lucid
19287 # FIXME: insert proper C++ library support
19288 ld_shlibs_CXX=no
19289 ;;
19290 *)
19291 # FIXME: insert proper C++ library support
19292 ld_shlibs_CXX=no
19293 ;;
19294 esac
19295 ;;
19296
19297 solaris*)
19298 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019299 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019300 # Sun C++ 4.2, 5.x and Centerline C++
19301 archive_cmds_need_lc_CXX=yes
19302 no_undefined_flag_CXX=' -zdefs'
19303 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19304 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19305 $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'
19306
19307 hardcode_libdir_flag_spec_CXX='-R$libdir'
19308 hardcode_shlibpath_var_CXX=no
19309 case $host_os in
19310 solaris2.[0-5] | solaris2.[0-5].*) ;;
19311 *)
19312 # The compiler driver will combine and reorder linker options,
19313 # but understands `-z linker_flag'.
19314 # Supported since Solaris 2.6 (maybe 2.5.1?)
19315 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19316 ;;
19317 esac
19318 link_all_deplibs_CXX=yes
19319
cristy0c60a692010-11-04 01:09:47 +000019320 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000019321
19322 # Archives containing C++ object files must be created using
19323 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19324 # necessary to make sure instantiated templates are included
19325 # in the archive.
19326 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19327 ;;
19328 gcx*)
19329 # Green Hills C++ Compiler
19330 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19331
19332 # The C++ compiler must be used to create the archive.
19333 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19334 ;;
19335 *)
19336 # GNU C++ compiler with Solaris linker
19337 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19338 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19339 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000019340 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 +000019341 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 +000019342 $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 +000019343
19344 # Commands to make compiler produce verbose output that lists
19345 # what "hidden" libraries, object files and flags are used when
19346 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019347 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019348 else
19349 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19350 # platform.
19351 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19352 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19353 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19354
19355 # Commands to make compiler produce verbose output that lists
19356 # what "hidden" libraries, object files and flags are used when
19357 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019358 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019359 fi
19360
19361 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19362 case $host_os in
19363 solaris2.[0-5] | solaris2.[0-5].*) ;;
19364 *)
19365 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19366 ;;
19367 esac
19368 fi
19369 ;;
19370 esac
19371 ;;
19372
19373 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19374 no_undefined_flag_CXX='${wl}-z,text'
19375 archive_cmds_need_lc_CXX=no
19376 hardcode_shlibpath_var_CXX=no
19377 runpath_var='LD_RUN_PATH'
19378
19379 case $cc_basename in
19380 CC*)
19381 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19382 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19383 ;;
19384 *)
19385 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19386 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19387 ;;
19388 esac
19389 ;;
19390
19391 sysv5* | sco3.2v5* | sco5v6*)
19392 # Note: We can NOT use -z defs as we might desire, because we do not
19393 # link with -lc, and that would cause any symbols used from libc to
19394 # always be unresolved, which means just about no library would
19395 # ever link correctly. If we're not using GNU ld we use -z text
19396 # though, which does catch some bad symbols but isn't as heavy-handed
19397 # as -z defs.
19398 no_undefined_flag_CXX='${wl}-z,text'
19399 allow_undefined_flag_CXX='${wl}-z,nodefs'
19400 archive_cmds_need_lc_CXX=no
19401 hardcode_shlibpath_var_CXX=no
19402 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19403 hardcode_libdir_separator_CXX=':'
19404 link_all_deplibs_CXX=yes
19405 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19406 runpath_var='LD_RUN_PATH'
19407
19408 case $cc_basename in
19409 CC*)
19410 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19411 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 +000019412 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19413 '"$old_archive_cmds_CXX"
19414 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19415 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000019416 ;;
19417 *)
19418 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19419 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19420 ;;
19421 esac
19422 ;;
19423
19424 tandem*)
19425 case $cc_basename in
19426 NCC*)
19427 # NonStop-UX NCC 3.20
19428 # FIXME: insert proper C++ library support
19429 ld_shlibs_CXX=no
19430 ;;
19431 *)
19432 # FIXME: insert proper C++ library support
19433 ld_shlibs_CXX=no
19434 ;;
19435 esac
19436 ;;
19437
19438 vxworks*)
19439 # FIXME: insert proper C++ library support
19440 ld_shlibs_CXX=no
19441 ;;
19442
19443 *)
19444 # FIXME: insert proper C++ library support
19445 ld_shlibs_CXX=no
19446 ;;
19447 esac
19448
19449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19450$as_echo "$ld_shlibs_CXX" >&6; }
19451 test "$ld_shlibs_CXX" = no && can_build_shared=no
19452
19453 GCC_CXX="$GXX"
19454 LD_CXX="$LD"
19455
19456 ## CAVEAT EMPTOR:
19457 ## There is no encapsulation within the following macros, do not change
19458 ## the running order or otherwise move them around unless you know exactly
19459 ## what you are doing...
19460 # Dependencies to place before and after the object being linked:
19461predep_objects_CXX=
19462postdep_objects_CXX=
19463predeps_CXX=
19464postdeps_CXX=
19465compiler_lib_search_path_CXX=
19466
19467cat > conftest.$ac_ext <<_LT_EOF
19468class Foo
19469{
19470public:
19471 Foo (void) { a = 0; }
19472private:
19473 int a;
19474};
19475_LT_EOF
19476
cristyda16f162011-02-19 23:52:17 +000019477
19478_lt_libdeps_save_CFLAGS=$CFLAGS
19479case "$CC $CFLAGS " in #(
19480*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
19481*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
cristy99bd5232011-12-07 14:38:20 +000019482*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
cristyda16f162011-02-19 23:52:17 +000019483esac
19484
cristy73bd4a52010-10-05 11:24:23 +000019485if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19486 (eval $ac_compile) 2>&5
19487 ac_status=$?
19488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19489 test $ac_status = 0; }; then
19490 # Parse the compiler output and extract the necessary
19491 # objects, libraries and library flags.
19492
19493 # Sentinel used to keep track of whether or not we are before
19494 # the conftest object file.
19495 pre_test_object_deps_done=no
19496
19497 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000019498 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000019499
19500 -L* | -R* | -l*)
19501 # Some compilers place space between "-{L,R}" and the path.
19502 # Remove the space.
19503 if test $p = "-L" ||
19504 test $p = "-R"; then
19505 prev=$p
19506 continue
cristy73bd4a52010-10-05 11:24:23 +000019507 fi
19508
cristyda16f162011-02-19 23:52:17 +000019509 # Expand the sysroot to ease extracting the directories later.
19510 if test -z "$prev"; then
19511 case $p in
19512 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
19513 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
19514 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
19515 esac
19516 fi
19517 case $p in
19518 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
19519 esac
cristy73bd4a52010-10-05 11:24:23 +000019520 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000019521 case ${prev} in
19522 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000019523 # Internal compiler library paths should come after those
19524 # provided the user. The postdeps already come after the
19525 # user supplied libs so there is no need to process them.
19526 if test -z "$compiler_lib_search_path_CXX"; then
19527 compiler_lib_search_path_CXX="${prev}${p}"
19528 else
19529 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19530 fi
19531 ;;
19532 # The "-l" case would never come before the object being
19533 # linked, so don't bother handling this case.
19534 esac
19535 else
19536 if test -z "$postdeps_CXX"; then
19537 postdeps_CXX="${prev}${p}"
19538 else
19539 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19540 fi
19541 fi
cristyda16f162011-02-19 23:52:17 +000019542 prev=
cristy73bd4a52010-10-05 11:24:23 +000019543 ;;
19544
cristyda16f162011-02-19 23:52:17 +000019545 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000019546 *.$objext)
19547 # This assumes that the test object file only shows up
19548 # once in the compiler output.
19549 if test "$p" = "conftest.$objext"; then
19550 pre_test_object_deps_done=yes
19551 continue
19552 fi
19553
19554 if test "$pre_test_object_deps_done" = no; then
19555 if test -z "$predep_objects_CXX"; then
19556 predep_objects_CXX="$p"
19557 else
19558 predep_objects_CXX="$predep_objects_CXX $p"
19559 fi
19560 else
19561 if test -z "$postdep_objects_CXX"; then
19562 postdep_objects_CXX="$p"
19563 else
19564 postdep_objects_CXX="$postdep_objects_CXX $p"
19565 fi
19566 fi
19567 ;;
19568
19569 *) ;; # Ignore the rest.
19570
19571 esac
19572 done
19573
19574 # Clean up.
19575 rm -f a.out a.exe
19576else
19577 echo "libtool.m4: error: problem compiling CXX test program"
19578fi
19579
19580$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000019581CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000019582
19583# PORTME: override above test on systems where it is broken
19584case $host_os in
19585interix[3-9]*)
19586 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19587 # hack all around it, let's just trust "g++" to DTRT.
19588 predep_objects_CXX=
19589 postdep_objects_CXX=
19590 postdeps_CXX=
19591 ;;
19592
19593linux*)
19594 case `$CC -V 2>&1 | sed 5q` in
19595 *Sun\ C*)
19596 # Sun C++ 5.9
19597
19598 # The more standards-conforming stlport4 library is
19599 # incompatible with the Cstd library. Avoid specifying
19600 # it if it's in CXXFLAGS. Ignore libCrun as
19601 # -library=stlport4 depends on it.
19602 case " $CXX $CXXFLAGS " in
19603 *" -library=stlport4 "*)
19604 solaris_use_stlport4=yes
19605 ;;
19606 esac
19607
19608 if test "$solaris_use_stlport4" != yes; then
19609 postdeps_CXX='-library=Cstd -library=Crun'
19610 fi
19611 ;;
19612 esac
19613 ;;
19614
19615solaris*)
19616 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019617 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019618 # The more standards-conforming stlport4 library is
19619 # incompatible with the Cstd library. Avoid specifying
19620 # it if it's in CXXFLAGS. Ignore libCrun as
19621 # -library=stlport4 depends on it.
19622 case " $CXX $CXXFLAGS " in
19623 *" -library=stlport4 "*)
19624 solaris_use_stlport4=yes
19625 ;;
19626 esac
19627
19628 # Adding this requires a known-good setup of shared libraries for
19629 # Sun compiler versions before 5.6, else PIC objects from an old
19630 # archive will be linked into the output, leading to subtle bugs.
19631 if test "$solaris_use_stlport4" != yes; then
19632 postdeps_CXX='-library=Cstd -library=Crun'
19633 fi
19634 ;;
19635 esac
19636 ;;
19637esac
19638
19639
19640case " $postdeps_CXX " in
19641*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19642esac
19643 compiler_lib_search_dirs_CXX=
19644if test -n "${compiler_lib_search_path_CXX}"; then
19645 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19646fi
19647
19648
19649
19650
19651
19652
19653
19654
19655
19656
19657
19658
19659
19660
19661
19662
19663
19664
19665
19666
19667
19668
19669
19670
19671
19672
19673
19674
19675
19676
19677
19678 lt_prog_compiler_wl_CXX=
19679lt_prog_compiler_pic_CXX=
19680lt_prog_compiler_static_CXX=
19681
cristy73bd4a52010-10-05 11:24:23 +000019682
19683 # C++ specific cases for pic, static, wl, etc.
19684 if test "$GXX" = yes; then
19685 lt_prog_compiler_wl_CXX='-Wl,'
19686 lt_prog_compiler_static_CXX='-static'
19687
19688 case $host_os in
19689 aix*)
19690 # All AIX code is PIC.
19691 if test "$host_cpu" = ia64; then
19692 # AIX 5 now supports IA64 processor
19693 lt_prog_compiler_static_CXX='-Bstatic'
19694 fi
19695 ;;
19696
19697 amigaos*)
19698 case $host_cpu in
19699 powerpc)
19700 # see comment about AmigaOS4 .so support
19701 lt_prog_compiler_pic_CXX='-fPIC'
19702 ;;
19703 m68k)
19704 # FIXME: we need at least 68020 code to build shared libraries, but
19705 # adding the `-m68020' flag to GCC prevents building anything better,
19706 # like `-m68040'.
19707 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19708 ;;
19709 esac
19710 ;;
19711
19712 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19713 # PIC is the default for these OSes.
19714 ;;
19715 mingw* | cygwin* | os2* | pw32* | cegcc*)
19716 # This hack is so that the source file can tell whether it is being
19717 # built for inclusion in a dll (and should export symbols for example).
19718 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19719 # (--disable-auto-import) libraries
19720 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19721 ;;
19722 darwin* | rhapsody*)
19723 # PIC is the default on this platform
19724 # Common symbols not allowed in MH_DYLIB files
19725 lt_prog_compiler_pic_CXX='-fno-common'
19726 ;;
19727 *djgpp*)
19728 # DJGPP does not support shared libraries at all
19729 lt_prog_compiler_pic_CXX=
19730 ;;
cristy0c60a692010-11-04 01:09:47 +000019731 haiku*)
19732 # PIC is the default for Haiku.
19733 # The "-static" flag exists, but is broken.
19734 lt_prog_compiler_static_CXX=
19735 ;;
cristy73bd4a52010-10-05 11:24:23 +000019736 interix[3-9]*)
19737 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19738 # Instead, we relocate shared libraries at runtime.
19739 ;;
19740 sysv4*MP*)
19741 if test -d /usr/nec; then
19742 lt_prog_compiler_pic_CXX=-Kconform_pic
19743 fi
19744 ;;
19745 hpux*)
19746 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19747 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19748 # sets the default TLS model and affects inlining.
19749 case $host_cpu in
19750 hppa*64*)
19751 ;;
19752 *)
19753 lt_prog_compiler_pic_CXX='-fPIC'
19754 ;;
19755 esac
19756 ;;
19757 *qnx* | *nto*)
19758 # QNX uses GNU C++, but need to define -shared option too, otherwise
19759 # it will coredump.
19760 lt_prog_compiler_pic_CXX='-fPIC -shared'
19761 ;;
19762 *)
19763 lt_prog_compiler_pic_CXX='-fPIC'
19764 ;;
19765 esac
19766 else
19767 case $host_os in
19768 aix[4-9]*)
19769 # All AIX code is PIC.
19770 if test "$host_cpu" = ia64; then
19771 # AIX 5 now supports IA64 processor
19772 lt_prog_compiler_static_CXX='-Bstatic'
19773 else
19774 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19775 fi
19776 ;;
19777 chorus*)
19778 case $cc_basename in
19779 cxch68*)
19780 # Green Hills C++ Compiler
19781 # _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"
19782 ;;
19783 esac
19784 ;;
cristyda16f162011-02-19 23:52:17 +000019785 mingw* | cygwin* | os2* | pw32* | cegcc*)
19786 # This hack is so that the source file can tell whether it is being
19787 # built for inclusion in a dll (and should export symbols for example).
19788 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19789 ;;
cristy73bd4a52010-10-05 11:24:23 +000019790 dgux*)
19791 case $cc_basename in
19792 ec++*)
19793 lt_prog_compiler_pic_CXX='-KPIC'
19794 ;;
19795 ghcx*)
19796 # Green Hills C++ Compiler
19797 lt_prog_compiler_pic_CXX='-pic'
19798 ;;
19799 *)
19800 ;;
19801 esac
19802 ;;
19803 freebsd* | dragonfly*)
19804 # FreeBSD uses GNU C++
19805 ;;
19806 hpux9* | hpux10* | hpux11*)
19807 case $cc_basename in
19808 CC*)
19809 lt_prog_compiler_wl_CXX='-Wl,'
19810 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19811 if test "$host_cpu" != ia64; then
19812 lt_prog_compiler_pic_CXX='+Z'
19813 fi
19814 ;;
19815 aCC*)
19816 lt_prog_compiler_wl_CXX='-Wl,'
19817 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19818 case $host_cpu in
19819 hppa*64*|ia64*)
19820 # +Z the default
19821 ;;
19822 *)
19823 lt_prog_compiler_pic_CXX='+Z'
19824 ;;
19825 esac
19826 ;;
19827 *)
19828 ;;
19829 esac
19830 ;;
19831 interix*)
19832 # This is c89, which is MS Visual C++ (no shared libs)
19833 # Anyone wants to do a port?
19834 ;;
19835 irix5* | irix6* | nonstopux*)
19836 case $cc_basename in
19837 CC*)
19838 lt_prog_compiler_wl_CXX='-Wl,'
19839 lt_prog_compiler_static_CXX='-non_shared'
19840 # CC pic flag -KPIC is the default.
19841 ;;
19842 *)
19843 ;;
19844 esac
19845 ;;
cristy0c60a692010-11-04 01:09:47 +000019846 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019847 case $cc_basename in
19848 KCC*)
19849 # KAI C++ Compiler
19850 lt_prog_compiler_wl_CXX='--backend -Wl,'
19851 lt_prog_compiler_pic_CXX='-fPIC'
19852 ;;
19853 ecpc* )
19854 # old Intel C++ for x86_64 which still supported -KPIC.
19855 lt_prog_compiler_wl_CXX='-Wl,'
19856 lt_prog_compiler_pic_CXX='-KPIC'
19857 lt_prog_compiler_static_CXX='-static'
19858 ;;
19859 icpc* )
19860 # Intel C++, used to be incompatible with GCC.
19861 # ICC 10 doesn't accept -KPIC any more.
19862 lt_prog_compiler_wl_CXX='-Wl,'
19863 lt_prog_compiler_pic_CXX='-fPIC'
19864 lt_prog_compiler_static_CXX='-static'
19865 ;;
19866 pgCC* | pgcpp*)
19867 # Portland Group C++ compiler
19868 lt_prog_compiler_wl_CXX='-Wl,'
19869 lt_prog_compiler_pic_CXX='-fpic'
19870 lt_prog_compiler_static_CXX='-Bstatic'
19871 ;;
19872 cxx*)
19873 # Compaq C++
19874 # Make sure the PIC flag is empty. It appears that all Alpha
19875 # Linux and Compaq Tru64 Unix objects are PIC.
19876 lt_prog_compiler_pic_CXX=
19877 lt_prog_compiler_static_CXX='-non_shared'
19878 ;;
cristy0c60a692010-11-04 01:09:47 +000019879 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19880 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000019881 lt_prog_compiler_wl_CXX='-Wl,'
19882 lt_prog_compiler_pic_CXX='-qpic'
19883 lt_prog_compiler_static_CXX='-qstaticlink'
19884 ;;
19885 *)
19886 case `$CC -V 2>&1 | sed 5q` in
19887 *Sun\ C*)
19888 # Sun C++ 5.9
19889 lt_prog_compiler_pic_CXX='-KPIC'
19890 lt_prog_compiler_static_CXX='-Bstatic'
19891 lt_prog_compiler_wl_CXX='-Qoption ld '
19892 ;;
19893 esac
19894 ;;
19895 esac
19896 ;;
19897 lynxos*)
19898 ;;
19899 m88k*)
19900 ;;
19901 mvs*)
19902 case $cc_basename in
19903 cxx*)
19904 lt_prog_compiler_pic_CXX='-W c,exportall'
19905 ;;
19906 *)
19907 ;;
19908 esac
19909 ;;
19910 netbsd*)
19911 ;;
19912 *qnx* | *nto*)
19913 # QNX uses GNU C++, but need to define -shared option too, otherwise
19914 # it will coredump.
19915 lt_prog_compiler_pic_CXX='-fPIC -shared'
19916 ;;
19917 osf3* | osf4* | osf5*)
19918 case $cc_basename in
19919 KCC*)
19920 lt_prog_compiler_wl_CXX='--backend -Wl,'
19921 ;;
19922 RCC*)
19923 # Rational C++ 2.4.1
19924 lt_prog_compiler_pic_CXX='-pic'
19925 ;;
19926 cxx*)
19927 # Digital/Compaq C++
19928 lt_prog_compiler_wl_CXX='-Wl,'
19929 # Make sure the PIC flag is empty. It appears that all Alpha
19930 # Linux and Compaq Tru64 Unix objects are PIC.
19931 lt_prog_compiler_pic_CXX=
19932 lt_prog_compiler_static_CXX='-non_shared'
19933 ;;
19934 *)
19935 ;;
19936 esac
19937 ;;
19938 psos*)
19939 ;;
19940 solaris*)
19941 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019942 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019943 # Sun C++ 4.2, 5.x and Centerline C++
19944 lt_prog_compiler_pic_CXX='-KPIC'
19945 lt_prog_compiler_static_CXX='-Bstatic'
19946 lt_prog_compiler_wl_CXX='-Qoption ld '
19947 ;;
19948 gcx*)
19949 # Green Hills C++ Compiler
19950 lt_prog_compiler_pic_CXX='-PIC'
19951 ;;
19952 *)
19953 ;;
19954 esac
19955 ;;
19956 sunos4*)
19957 case $cc_basename in
19958 CC*)
19959 # Sun C++ 4.x
19960 lt_prog_compiler_pic_CXX='-pic'
19961 lt_prog_compiler_static_CXX='-Bstatic'
19962 ;;
19963 lcc*)
19964 # Lucid
19965 lt_prog_compiler_pic_CXX='-pic'
19966 ;;
19967 *)
19968 ;;
19969 esac
19970 ;;
19971 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19972 case $cc_basename in
19973 CC*)
19974 lt_prog_compiler_wl_CXX='-Wl,'
19975 lt_prog_compiler_pic_CXX='-KPIC'
19976 lt_prog_compiler_static_CXX='-Bstatic'
19977 ;;
19978 esac
19979 ;;
19980 tandem*)
19981 case $cc_basename in
19982 NCC*)
19983 # NonStop-UX NCC 3.20
19984 lt_prog_compiler_pic_CXX='-KPIC'
19985 ;;
19986 *)
19987 ;;
19988 esac
19989 ;;
19990 vxworks*)
19991 ;;
19992 *)
19993 lt_prog_compiler_can_build_shared_CXX=no
19994 ;;
19995 esac
19996 fi
19997
19998case $host_os in
19999 # For platforms which do not support PIC, -DPIC is meaningless:
20000 *djgpp*)
20001 lt_prog_compiler_pic_CXX=
20002 ;;
20003 *)
20004 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20005 ;;
20006esac
cristy73bd4a52010-10-05 11:24:23 +000020007
cristyda16f162011-02-19 23:52:17 +000020008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20009$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20010if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
20011 $as_echo_n "(cached) " >&6
20012else
20013 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
20014fi
20015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
20016$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
20017lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000020018
20019#
20020# Check to make sure the PIC flag actually works.
20021#
20022if test -n "$lt_prog_compiler_pic_CXX"; then
20023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20024$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020025if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020026 $as_echo_n "(cached) " >&6
20027else
20028 lt_cv_prog_compiler_pic_works_CXX=no
20029 ac_outfile=conftest.$ac_objext
20030 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20031 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20032 # Insert the option either (1) after the last *FLAGS variable, or
20033 # (2) before a word containing "conftest.", or (3) at the end.
20034 # Note that $ac_compile itself does not contain backslashes and begins
20035 # with a dollar sign (not a hyphen), so the echo should work correctly.
20036 # The option is referenced via a variable to avoid confusing sed.
20037 lt_compile=`echo "$ac_compile" | $SED \
20038 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20039 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20040 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000020041 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000020042 (eval "$lt_compile" 2>conftest.err)
20043 ac_status=$?
20044 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000020045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000020046 if (exit $ac_status) && test -s "$ac_outfile"; then
20047 # The compiler can only warn and ignore the option if not recognized
20048 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000020049 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020050 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20051 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20052 lt_cv_prog_compiler_pic_works_CXX=yes
20053 fi
20054 fi
20055 $RM conftest*
20056
20057fi
20058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20059$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20060
20061if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20062 case $lt_prog_compiler_pic_CXX in
20063 "" | " "*) ;;
20064 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20065 esac
20066else
20067 lt_prog_compiler_pic_CXX=
20068 lt_prog_compiler_can_build_shared_CXX=no
20069fi
20070
20071fi
20072
20073
20074
cristyda16f162011-02-19 23:52:17 +000020075
20076
cristy73bd4a52010-10-05 11:24:23 +000020077#
20078# Check to make sure the static flag actually works.
20079#
20080wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20082$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020083if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020084 $as_echo_n "(cached) " >&6
20085else
20086 lt_cv_prog_compiler_static_works_CXX=no
20087 save_LDFLAGS="$LDFLAGS"
20088 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20089 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20090 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20091 # The linker can only warn and ignore the option if not recognized
20092 # So say no if there are warnings
20093 if test -s conftest.err; then
20094 # Append any errors to the config.log.
20095 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000020096 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020097 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20098 if diff conftest.exp conftest.er2 >/dev/null; then
20099 lt_cv_prog_compiler_static_works_CXX=yes
20100 fi
20101 else
20102 lt_cv_prog_compiler_static_works_CXX=yes
20103 fi
20104 fi
20105 $RM -r conftest*
20106 LDFLAGS="$save_LDFLAGS"
20107
20108fi
20109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20110$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20111
20112if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20113 :
20114else
20115 lt_prog_compiler_static_CXX=
20116fi
20117
20118
20119
20120
20121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20122$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020123if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020124 $as_echo_n "(cached) " >&6
20125else
20126 lt_cv_prog_compiler_c_o_CXX=no
20127 $RM -r conftest 2>/dev/null
20128 mkdir conftest
20129 cd conftest
20130 mkdir out
20131 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20132
20133 lt_compiler_flag="-o out/conftest2.$ac_objext"
20134 # Insert the option either (1) after the last *FLAGS variable, or
20135 # (2) before a word containing "conftest.", or (3) at the end.
20136 # Note that $ac_compile itself does not contain backslashes and begins
20137 # with a dollar sign (not a hyphen), so the echo should work correctly.
20138 lt_compile=`echo "$ac_compile" | $SED \
20139 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20140 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20141 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000020142 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000020143 (eval "$lt_compile" 2>out/conftest.err)
20144 ac_status=$?
20145 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000020146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000020147 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20148 then
20149 # The compiler can only warn and ignore the option if not recognized
20150 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000020151 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020152 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20153 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20154 lt_cv_prog_compiler_c_o_CXX=yes
20155 fi
20156 fi
20157 chmod u+w . 2>&5
20158 $RM conftest*
20159 # SGI C++ compiler will create directory out/ii_files/ for
20160 # template instantiation
20161 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20162 $RM out/* && rmdir out
20163 cd ..
20164 $RM -r conftest
20165 $RM conftest*
20166
20167fi
20168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20169$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20170
20171
20172
20173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20174$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020175if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020176 $as_echo_n "(cached) " >&6
20177else
20178 lt_cv_prog_compiler_c_o_CXX=no
20179 $RM -r conftest 2>/dev/null
20180 mkdir conftest
20181 cd conftest
20182 mkdir out
20183 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20184
20185 lt_compiler_flag="-o out/conftest2.$ac_objext"
20186 # Insert the option either (1) after the last *FLAGS variable, or
20187 # (2) before a word containing "conftest.", or (3) at the end.
20188 # Note that $ac_compile itself does not contain backslashes and begins
20189 # with a dollar sign (not a hyphen), so the echo should work correctly.
20190 lt_compile=`echo "$ac_compile" | $SED \
20191 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20192 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20193 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000020194 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000020195 (eval "$lt_compile" 2>out/conftest.err)
20196 ac_status=$?
20197 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000020198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000020199 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20200 then
20201 # The compiler can only warn and ignore the option if not recognized
20202 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000020203 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020204 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20205 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20206 lt_cv_prog_compiler_c_o_CXX=yes
20207 fi
20208 fi
20209 chmod u+w . 2>&5
20210 $RM conftest*
20211 # SGI C++ compiler will create directory out/ii_files/ for
20212 # template instantiation
20213 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20214 $RM out/* && rmdir out
20215 cd ..
20216 $RM -r conftest
20217 $RM conftest*
20218
20219fi
20220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20221$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20222
20223
20224
20225
20226hard_links="nottested"
20227if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20228 # do not overwrite the value of need_locks provided by the user
20229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20230$as_echo_n "checking if we can lock with hard links... " >&6; }
20231 hard_links=yes
20232 $RM conftest*
20233 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20234 touch conftest.a
20235 ln conftest.a conftest.b 2>&5 || hard_links=no
20236 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20238$as_echo "$hard_links" >&6; }
20239 if test "$hard_links" = no; then
20240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20241$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20242 need_locks=warn
20243 fi
20244else
20245 need_locks=no
20246fi
20247
20248
20249
20250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20251$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20252
20253 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000020254 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000020255 case $host_os in
20256 aix[4-9]*)
20257 # If we're using GNU nm, then we don't want the "-C" option.
20258 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000020259 # Also, AIX nm treats weak defined symbols like other global defined
20260 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000020261 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000020262 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 +000020263 else
20264 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'
20265 fi
20266 ;;
20267 pw32*)
20268 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000020269 ;;
cristy73bd4a52010-10-05 11:24:23 +000020270 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000020271 case $cc_basename in
cristy99bd5232011-12-07 14:38:20 +000020272 cl*)
20273 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
20274 ;;
cristyda16f162011-02-19 23:52:17 +000020275 *)
20276 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'
20277 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
20278 ;;
20279 esac
20280 ;;
cristy73bd4a52010-10-05 11:24:23 +000020281 *)
20282 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000020283 ;;
cristy73bd4a52010-10-05 11:24:23 +000020284 esac
cristy73bd4a52010-10-05 11:24:23 +000020285
20286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20287$as_echo "$ld_shlibs_CXX" >&6; }
20288test "$ld_shlibs_CXX" = no && can_build_shared=no
20289
20290with_gnu_ld_CXX=$with_gnu_ld
20291
20292
20293
20294
20295
20296
20297#
20298# Do we need to explicitly link libc?
20299#
20300case "x$archive_cmds_need_lc_CXX" in
20301x|xyes)
20302 # Assume -lc should be added
20303 archive_cmds_need_lc_CXX=yes
20304
20305 if test "$enable_shared" = yes && test "$GCC" = yes; then
20306 case $archive_cmds_CXX in
20307 *'~'*)
20308 # FIXME: we may have to deal with multi-command sequences.
20309 ;;
20310 '$CC '*)
20311 # Test whether the compiler implicitly links with -lc since on some
20312 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20313 # to ld, don't add -lc before -lgcc.
20314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20315$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020316if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000020317 $as_echo_n "(cached) " >&6
20318else
20319 $RM conftest*
20320 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000020321
cristy0c60a692010-11-04 01:09:47 +000020322 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000020323 (eval $ac_compile) 2>&5
20324 ac_status=$?
20325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20326 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000020327 soname=conftest
20328 lib=conftest
20329 libobjs=conftest.$ac_objext
20330 deplibs=
20331 wl=$lt_prog_compiler_wl_CXX
20332 pic_flag=$lt_prog_compiler_pic_CXX
20333 compiler_flags=-v
20334 linker_flags=-v
20335 verstring=
20336 output_objdir=.
20337 libname=conftest
20338 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20339 allow_undefined_flag_CXX=
20340 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 +000020341 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20342 ac_status=$?
20343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20344 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000020345 then
20346 lt_cv_archive_cmds_need_lc_CXX=no
20347 else
20348 lt_cv_archive_cmds_need_lc_CXX=yes
20349 fi
20350 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20351 else
20352 cat conftest.err 1>&5
20353 fi
20354 $RM conftest*
20355
20356fi
20357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20358$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20359 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000020360 ;;
20361 esac
20362 fi
20363 ;;
20364esac
20365
20366
20367
20368
20369
20370
20371
20372
20373
20374
20375
20376
20377
20378
20379
20380
20381
20382
20383
20384
20385
20386
20387
20388
20389
20390
20391
20392
20393
20394
20395
20396
20397
20398
20399
20400
20401
20402
20403
20404
20405
20406
20407
20408
20409
20410
20411
20412
20413
20414
20415
20416
20417
20418
20419
20420
20421
20422
20423
20424
20425
20426
cristy73bd4a52010-10-05 11:24:23 +000020427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20428$as_echo_n "checking dynamic linker characteristics... " >&6; }
20429
20430library_names_spec=
20431libname_spec='lib$name'
20432soname_spec=
20433shrext_cmds=".so"
20434postinstall_cmds=
20435postuninstall_cmds=
20436finish_cmds=
20437finish_eval=
20438shlibpath_var=
20439shlibpath_overrides_runpath=unknown
20440version_type=none
20441dynamic_linker="$host_os ld.so"
20442sys_lib_dlsearch_path_spec="/lib /usr/lib"
20443need_lib_prefix=unknown
20444hardcode_into_libs=no
20445
20446# when you set need_version to no, make sure it does not cause -set_version
20447# flags to be left without arguments
20448need_version=unknown
20449
20450case $host_os in
20451aix3*)
cristy99bd5232011-12-07 14:38:20 +000020452 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020453 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20454 shlibpath_var=LIBPATH
20455
20456 # AIX 3 has no versioning support, so we append a major version to the name.
20457 soname_spec='${libname}${release}${shared_ext}$major'
20458 ;;
20459
20460aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000020461 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020462 need_lib_prefix=no
20463 need_version=no
20464 hardcode_into_libs=yes
20465 if test "$host_cpu" = ia64; then
20466 # AIX 5 supports IA64
20467 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20468 shlibpath_var=LD_LIBRARY_PATH
20469 else
20470 # With GCC up to 2.95.x, collect2 would create an import file
20471 # for dependence libraries. The import file would start with
20472 # the line `#! .'. This would cause the generated library to
20473 # depend on `.', always an invalid library. This was fixed in
20474 # development snapshots of GCC prior to 3.0.
20475 case $host_os in
20476 aix4 | aix4.[01] | aix4.[01].*)
20477 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20478 echo ' yes '
20479 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20480 :
20481 else
20482 can_build_shared=no
20483 fi
20484 ;;
20485 esac
20486 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20487 # soname into executable. Probably we can add versioning support to
20488 # collect2, so additional links can be useful in future.
20489 if test "$aix_use_runtimelinking" = yes; then
20490 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20491 # instead of lib<name>.a to let people know that these are not
20492 # typical AIX shared libraries.
20493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20494 else
20495 # We preserve .a as extension for shared libraries through AIX4.2
20496 # and later when we are not doing run time linking.
20497 library_names_spec='${libname}${release}.a $libname.a'
20498 soname_spec='${libname}${release}${shared_ext}$major'
20499 fi
20500 shlibpath_var=LIBPATH
20501 fi
20502 ;;
20503
20504amigaos*)
20505 case $host_cpu in
20506 powerpc)
20507 # Since July 2007 AmigaOS4 officially supports .so libraries.
20508 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20510 ;;
20511 m68k)
20512 library_names_spec='$libname.ixlibrary $libname.a'
20513 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000020514 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 +000020515 ;;
20516 esac
20517 ;;
20518
20519beos*)
20520 library_names_spec='${libname}${shared_ext}'
20521 dynamic_linker="$host_os ld.so"
20522 shlibpath_var=LIBRARY_PATH
20523 ;;
20524
20525bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000020526 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020527 need_version=no
20528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20529 soname_spec='${libname}${release}${shared_ext}$major'
20530 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20531 shlibpath_var=LD_LIBRARY_PATH
20532 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20533 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20534 # the default ld.so.conf also contains /usr/contrib/lib and
20535 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20536 # libtool to hard-code these into programs
20537 ;;
20538
20539cygwin* | mingw* | pw32* | cegcc*)
20540 version_type=windows
20541 shrext_cmds=".dll"
20542 need_version=no
20543 need_lib_prefix=no
20544
cristyda16f162011-02-19 23:52:17 +000020545 case $GCC,$cc_basename in
20546 yes,*)
20547 # gcc
cristy73bd4a52010-10-05 11:24:23 +000020548 library_names_spec='$libname.dll.a'
20549 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20550 postinstall_cmds='base_file=`basename \${file}`~
20551 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20552 dldir=$destdir/`dirname \$dlpath`~
20553 test -d \$dldir || mkdir -p \$dldir~
20554 $install_prog $dir/$dlname \$dldir/$dlname~
20555 chmod a+x \$dldir/$dlname~
20556 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20557 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20558 fi'
20559 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20560 dlpath=$dir/\$dldll~
20561 $RM \$dlpath'
20562 shlibpath_overrides_runpath=yes
20563
20564 case $host_os in
20565 cygwin*)
20566 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20567 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000020568
cristy73bd4a52010-10-05 11:24:23 +000020569 ;;
20570 mingw* | cegcc*)
20571 # MinGW DLLs use traditional 'lib' prefix
20572 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000020573 ;;
20574 pw32*)
20575 # pw32 DLLs use 'pw' prefix rather than 'lib'
20576 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20577 ;;
20578 esac
cristyda16f162011-02-19 23:52:17 +000020579 dynamic_linker='Win32 ld.exe'
20580 ;;
20581
20582 *,cl*)
20583 # Native MSVC
20584 libname_spec='$name'
20585 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20586 library_names_spec='${libname}.dll.lib'
20587
20588 case $build_os in
20589 mingw*)
20590 sys_lib_search_path_spec=
20591 lt_save_ifs=$IFS
20592 IFS=';'
20593 for lt_path in $LIB
20594 do
20595 IFS=$lt_save_ifs
20596 # Let DOS variable expansion print the short 8.3 style file name.
20597 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
20598 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
20599 done
20600 IFS=$lt_save_ifs
20601 # Convert to MSYS style.
20602 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
20603 ;;
20604 cygwin*)
20605 # Convert to unix form, then to dos form, then back to unix form
20606 # but this time dos style (no spaces!) so that the unix form looks
20607 # like /cygdrive/c/PROGRA~1:/cygdr...
20608 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
20609 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
20610 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20611 ;;
20612 *)
20613 sys_lib_search_path_spec="$LIB"
20614 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
20615 # It is most probably a Windows format PATH.
20616 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20617 else
20618 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20619 fi
20620 # FIXME: find the short name or the path components, as spaces are
20621 # common. (e.g. "Program Files" -> "PROGRA~1")
20622 ;;
20623 esac
20624
20625 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20626 postinstall_cmds='base_file=`basename \${file}`~
20627 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20628 dldir=$destdir/`dirname \$dlpath`~
20629 test -d \$dldir || mkdir -p \$dldir~
20630 $install_prog $dir/$dlname \$dldir/$dlname'
20631 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20632 dlpath=$dir/\$dldll~
20633 $RM \$dlpath'
20634 shlibpath_overrides_runpath=yes
20635 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000020636 ;;
20637
20638 *)
cristyda16f162011-02-19 23:52:17 +000020639 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000020640 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000020641 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000020642 ;;
20643 esac
cristy73bd4a52010-10-05 11:24:23 +000020644 # FIXME: first we should search . and the directory the executable is in
20645 shlibpath_var=PATH
20646 ;;
20647
20648darwin* | rhapsody*)
20649 dynamic_linker="$host_os dyld"
20650 version_type=darwin
20651 need_lib_prefix=no
20652 need_version=no
20653 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20654 soname_spec='${libname}${release}${major}$shared_ext'
20655 shlibpath_overrides_runpath=yes
20656 shlibpath_var=DYLD_LIBRARY_PATH
20657 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20658
20659 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20660 ;;
20661
20662dgux*)
cristy99bd5232011-12-07 14:38:20 +000020663 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020664 need_lib_prefix=no
20665 need_version=no
20666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20667 soname_spec='${libname}${release}${shared_ext}$major'
20668 shlibpath_var=LD_LIBRARY_PATH
20669 ;;
20670
cristy73bd4a52010-10-05 11:24:23 +000020671freebsd* | dragonfly*)
20672 # DragonFly does not have aout. When/if they implement a new
20673 # versioning mechanism, adjust this.
20674 if test -x /usr/bin/objformat; then
20675 objformat=`/usr/bin/objformat`
20676 else
20677 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020678 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000020679 *) objformat=elf ;;
20680 esac
20681 fi
20682 version_type=freebsd-$objformat
20683 case $version_type in
20684 freebsd-elf*)
20685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20686 need_version=no
20687 need_lib_prefix=no
20688 ;;
20689 freebsd-*)
20690 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20691 need_version=yes
20692 ;;
20693 esac
20694 shlibpath_var=LD_LIBRARY_PATH
20695 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020696 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000020697 shlibpath_overrides_runpath=yes
20698 ;;
20699 freebsd3.[01]* | freebsdelf3.[01]*)
20700 shlibpath_overrides_runpath=yes
20701 hardcode_into_libs=yes
20702 ;;
20703 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20704 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20705 shlibpath_overrides_runpath=no
20706 hardcode_into_libs=yes
20707 ;;
20708 *) # from 4.6 on, and DragonFly
20709 shlibpath_overrides_runpath=yes
20710 hardcode_into_libs=yes
20711 ;;
20712 esac
20713 ;;
20714
20715gnu*)
cristy99bd5232011-12-07 14:38:20 +000020716 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020717 need_lib_prefix=no
20718 need_version=no
20719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20720 soname_spec='${libname}${release}${shared_ext}$major'
20721 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000020722 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000020723 hardcode_into_libs=yes
20724 ;;
20725
cristy0c60a692010-11-04 01:09:47 +000020726haiku*)
cristy99bd5232011-12-07 14:38:20 +000020727 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000020728 need_lib_prefix=no
20729 need_version=no
20730 dynamic_linker="$host_os runtime_loader"
20731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20732 soname_spec='${libname}${release}${shared_ext}$major'
20733 shlibpath_var=LIBRARY_PATH
20734 shlibpath_overrides_runpath=yes
20735 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
20736 hardcode_into_libs=yes
20737 ;;
20738
cristy73bd4a52010-10-05 11:24:23 +000020739hpux9* | hpux10* | hpux11*)
20740 # Give a soname corresponding to the major version so that dld.sl refuses to
20741 # link against other versions.
20742 version_type=sunos
20743 need_lib_prefix=no
20744 need_version=no
20745 case $host_cpu in
20746 ia64*)
20747 shrext_cmds='.so'
20748 hardcode_into_libs=yes
20749 dynamic_linker="$host_os dld.so"
20750 shlibpath_var=LD_LIBRARY_PATH
20751 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20753 soname_spec='${libname}${release}${shared_ext}$major'
20754 if test "X$HPUX_IA64_MODE" = X32; then
20755 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20756 else
20757 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20758 fi
20759 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20760 ;;
20761 hppa*64*)
20762 shrext_cmds='.sl'
20763 hardcode_into_libs=yes
20764 dynamic_linker="$host_os dld.sl"
20765 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20766 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20768 soname_spec='${libname}${release}${shared_ext}$major'
20769 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20770 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20771 ;;
20772 *)
20773 shrext_cmds='.sl'
20774 dynamic_linker="$host_os dld.sl"
20775 shlibpath_var=SHLIB_PATH
20776 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20778 soname_spec='${libname}${release}${shared_ext}$major'
20779 ;;
20780 esac
cristy0c60a692010-11-04 01:09:47 +000020781 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000020782 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000020783 # or fails outright, so override atomically:
20784 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000020785 ;;
20786
20787interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000020788 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020789 need_lib_prefix=no
20790 need_version=no
20791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20792 soname_spec='${libname}${release}${shared_ext}$major'
20793 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20794 shlibpath_var=LD_LIBRARY_PATH
20795 shlibpath_overrides_runpath=no
20796 hardcode_into_libs=yes
20797 ;;
20798
20799irix5* | irix6* | nonstopux*)
20800 case $host_os in
20801 nonstopux*) version_type=nonstopux ;;
20802 *)
20803 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000020804 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020805 else
20806 version_type=irix
20807 fi ;;
20808 esac
20809 need_lib_prefix=no
20810 need_version=no
20811 soname_spec='${libname}${release}${shared_ext}$major'
20812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20813 case $host_os in
20814 irix5* | nonstopux*)
20815 libsuff= shlibsuff=
20816 ;;
20817 *)
20818 case $LD in # libtool.m4 will add one of these switches to LD
20819 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20820 libsuff= shlibsuff= libmagic=32-bit;;
20821 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20822 libsuff=32 shlibsuff=N32 libmagic=N32;;
20823 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20824 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20825 *) libsuff= shlibsuff= libmagic=never-match;;
20826 esac
20827 ;;
20828 esac
20829 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20830 shlibpath_overrides_runpath=no
20831 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20832 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20833 hardcode_into_libs=yes
20834 ;;
20835
20836# No shared lib support for Linux oldld, aout, or coff.
20837linux*oldld* | linux*aout* | linux*coff*)
20838 dynamic_linker=no
20839 ;;
20840
cristy99bd5232011-12-07 14:38:20 +000020841# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000020842linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000020843 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020844 need_lib_prefix=no
20845 need_version=no
20846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20847 soname_spec='${libname}${release}${shared_ext}$major'
20848 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20849 shlibpath_var=LD_LIBRARY_PATH
20850 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000020851
cristy73bd4a52010-10-05 11:24:23 +000020852 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000020853 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000020854 $as_echo_n "(cached) " >&6
20855else
20856 lt_cv_shlibpath_overrides_runpath=no
20857 save_LDFLAGS=$LDFLAGS
20858 save_libdir=$libdir
20859 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20860 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000020862/* end confdefs.h. */
20863
20864int
20865main ()
20866{
20867
20868 ;
20869 return 0;
20870}
20871_ACEOF
20872if ac_fn_cxx_try_link "$LINENO"; then :
20873 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000020874 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000020875fi
20876fi
20877rm -f core conftest.err conftest.$ac_objext \
20878 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000020879 LDFLAGS=$save_LDFLAGS
20880 libdir=$save_libdir
20881
20882fi
20883
20884 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000020885
20886 # This implies no fast_install, which is unacceptable.
20887 # Some rework will be needed to allow for fast_install
20888 # before this can be enabled.
20889 hardcode_into_libs=yes
20890
20891 # Add ABI-specific directories to the system library path.
20892 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
20893
20894 # Append ld.so.conf contents to the search path
20895 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000020896 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 +000020897 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000020898
cristy73bd4a52010-10-05 11:24:23 +000020899 fi
20900
20901 # We used to test for /lib/ld.so.1 and disable shared libraries on
20902 # powerpc, because MkLinux only supported shared libraries with the
20903 # GNU dynamic linker. Since this was broken with cross compilers,
20904 # most powerpc-linux boxes support dynamic linking these days and
20905 # people can always --disable-shared, the test was removed, and we
20906 # assume the GNU/Linux dynamic linker is in use.
20907 dynamic_linker='GNU/Linux ld.so'
20908 ;;
20909
20910netbsd*)
20911 version_type=sunos
20912 need_lib_prefix=no
20913 need_version=no
20914 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20916 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20917 dynamic_linker='NetBSD (a.out) ld.so'
20918 else
20919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20920 soname_spec='${libname}${release}${shared_ext}$major'
20921 dynamic_linker='NetBSD ld.elf_so'
20922 fi
20923 shlibpath_var=LD_LIBRARY_PATH
20924 shlibpath_overrides_runpath=yes
20925 hardcode_into_libs=yes
20926 ;;
20927
20928newsos6)
cristy99bd5232011-12-07 14:38:20 +000020929 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20931 shlibpath_var=LD_LIBRARY_PATH
20932 shlibpath_overrides_runpath=yes
20933 ;;
20934
20935*nto* | *qnx*)
20936 version_type=qnx
20937 need_lib_prefix=no
20938 need_version=no
20939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20940 soname_spec='${libname}${release}${shared_ext}$major'
20941 shlibpath_var=LD_LIBRARY_PATH
20942 shlibpath_overrides_runpath=no
20943 hardcode_into_libs=yes
20944 dynamic_linker='ldqnx.so'
20945 ;;
20946
20947openbsd*)
20948 version_type=sunos
20949 sys_lib_dlsearch_path_spec="/usr/lib"
20950 need_lib_prefix=no
20951 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20952 case $host_os in
20953 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20954 *) need_version=no ;;
20955 esac
20956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20957 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20958 shlibpath_var=LD_LIBRARY_PATH
20959 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20960 case $host_os in
20961 openbsd2.[89] | openbsd2.[89].*)
20962 shlibpath_overrides_runpath=no
20963 ;;
20964 *)
20965 shlibpath_overrides_runpath=yes
20966 ;;
20967 esac
20968 else
20969 shlibpath_overrides_runpath=yes
20970 fi
20971 ;;
20972
20973os2*)
20974 libname_spec='$name'
20975 shrext_cmds=".dll"
20976 need_lib_prefix=no
20977 library_names_spec='$libname${shared_ext} $libname.a'
20978 dynamic_linker='OS/2 ld.exe'
20979 shlibpath_var=LIBPATH
20980 ;;
20981
20982osf3* | osf4* | osf5*)
20983 version_type=osf
20984 need_lib_prefix=no
20985 need_version=no
20986 soname_spec='${libname}${release}${shared_ext}$major'
20987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20988 shlibpath_var=LD_LIBRARY_PATH
20989 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20990 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20991 ;;
20992
20993rdos*)
20994 dynamic_linker=no
20995 ;;
20996
20997solaris*)
cristy99bd5232011-12-07 14:38:20 +000020998 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020999 need_lib_prefix=no
21000 need_version=no
21001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21002 soname_spec='${libname}${release}${shared_ext}$major'
21003 shlibpath_var=LD_LIBRARY_PATH
21004 shlibpath_overrides_runpath=yes
21005 hardcode_into_libs=yes
21006 # ldd complains unless libraries are executable
21007 postinstall_cmds='chmod +x $lib'
21008 ;;
21009
21010sunos4*)
21011 version_type=sunos
21012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21013 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21014 shlibpath_var=LD_LIBRARY_PATH
21015 shlibpath_overrides_runpath=yes
21016 if test "$with_gnu_ld" = yes; then
21017 need_lib_prefix=no
21018 fi
21019 need_version=yes
21020 ;;
21021
21022sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000021023 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21025 soname_spec='${libname}${release}${shared_ext}$major'
21026 shlibpath_var=LD_LIBRARY_PATH
21027 case $host_vendor in
21028 sni)
21029 shlibpath_overrides_runpath=no
21030 need_lib_prefix=no
21031 runpath_var=LD_RUN_PATH
21032 ;;
21033 siemens)
21034 need_lib_prefix=no
21035 ;;
21036 motorola)
21037 need_lib_prefix=no
21038 need_version=no
21039 shlibpath_overrides_runpath=no
21040 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21041 ;;
21042 esac
21043 ;;
21044
21045sysv4*MP*)
21046 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000021047 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021048 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21049 soname_spec='$libname${shared_ext}.$major'
21050 shlibpath_var=LD_LIBRARY_PATH
21051 fi
21052 ;;
21053
21054sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21055 version_type=freebsd-elf
21056 need_lib_prefix=no
21057 need_version=no
21058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21059 soname_spec='${libname}${release}${shared_ext}$major'
21060 shlibpath_var=LD_LIBRARY_PATH
21061 shlibpath_overrides_runpath=yes
21062 hardcode_into_libs=yes
21063 if test "$with_gnu_ld" = yes; then
21064 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21065 else
21066 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21067 case $host_os in
21068 sco3.2v5*)
21069 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21070 ;;
21071 esac
21072 fi
21073 sys_lib_dlsearch_path_spec='/usr/lib'
21074 ;;
21075
21076tpf*)
21077 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000021078 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021079 need_lib_prefix=no
21080 need_version=no
21081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21082 shlibpath_var=LD_LIBRARY_PATH
21083 shlibpath_overrides_runpath=no
21084 hardcode_into_libs=yes
21085 ;;
21086
21087uts4*)
cristy99bd5232011-12-07 14:38:20 +000021088 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21090 soname_spec='${libname}${release}${shared_ext}$major'
21091 shlibpath_var=LD_LIBRARY_PATH
21092 ;;
21093
21094*)
21095 dynamic_linker=no
21096 ;;
21097esac
21098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21099$as_echo "$dynamic_linker" >&6; }
21100test "$dynamic_linker" = no && can_build_shared=no
21101
21102variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21103if test "$GCC" = yes; then
21104 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21105fi
21106
21107if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21108 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21109fi
21110if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21111 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21112fi
21113
21114
21115
21116
21117
21118
21119
21120
21121
21122
21123
21124
21125
21126
21127
21128
21129
21130
21131
21132
21133
21134
21135
21136
21137
21138
21139
21140
21141
21142
21143
21144
21145
21146
21147
21148
cristy0c60a692010-11-04 01:09:47 +000021149
21150
cristy73bd4a52010-10-05 11:24:23 +000021151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21152$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21153hardcode_action_CXX=
21154if test -n "$hardcode_libdir_flag_spec_CXX" ||
21155 test -n "$runpath_var_CXX" ||
21156 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21157
21158 # We can hardcode non-existent directories.
21159 if test "$hardcode_direct_CXX" != no &&
21160 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21161 # have to relink, otherwise we might link with an installed library
21162 # when we should be linking with a yet-to-be-installed one
21163 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21164 test "$hardcode_minus_L_CXX" != no; then
21165 # Linking always hardcodes the temporary library directory.
21166 hardcode_action_CXX=relink
21167 else
21168 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21169 hardcode_action_CXX=immediate
21170 fi
21171else
21172 # We cannot hardcode anything, or else we can only hardcode existing
21173 # directories.
21174 hardcode_action_CXX=unsupported
21175fi
21176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21177$as_echo "$hardcode_action_CXX" >&6; }
21178
21179if test "$hardcode_action_CXX" = relink ||
21180 test "$inherit_rpath_CXX" = yes; then
21181 # Fast installation is not supported
21182 enable_fast_install=no
21183elif test "$shlibpath_overrides_runpath" = yes ||
21184 test "$enable_shared" = no; then
21185 # Fast installation is not necessary
21186 enable_fast_install=needless
21187fi
21188
21189
21190
21191
21192
21193
21194
21195 fi # test -n "$compiler"
21196
21197 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000021198 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000021199 LDCXX=$LD
21200 LD=$lt_save_LD
21201 GCC=$lt_save_GCC
21202 with_gnu_ld=$lt_save_with_gnu_ld
21203 lt_cv_path_LDCXX=$lt_cv_path_LD
21204 lt_cv_path_LD=$lt_save_path_LD
21205 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21206 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21207fi # test "$_lt_caught_CXX_error" != yes
21208
21209ac_ext=c
21210ac_cpp='$CPP $CPPFLAGS'
21211ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21212ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21213ac_compiler_gnu=$ac_cv_c_compiler_gnu
21214
21215
21216
21217
21218
21219
21220
21221
21222
21223
21224
21225
21226
cristy99bd5232011-12-07 14:38:20 +000021227
21228
cristy73bd4a52010-10-05 11:24:23 +000021229 ac_config_commands="$ac_config_commands libtool"
21230
21231
21232
21233
21234# Only expand once:
21235
21236
21237
cristy3ed852e2009-09-05 21:47:34 +000021238
21239
cristy3ed852e2009-09-05 21:47:34 +000021240# Check to see if building shared libraries
21241libtool_build_shared_libs='no'
21242if test "$enable_shared" = 'yes'; then
21243 libtool_build_shared_libs='yes'
21244fi
21245
21246# Check to see if building static libraries
21247libtool_build_static_libs='no'
21248if test "$enable_static" = 'yes'; then
21249 libtool_build_static_libs='yes'
21250fi
21251
cristy73bd4a52010-10-05 11:24:23 +000021252 if test "${libtool_build_shared_libs}" = 'yes'; then
21253 WITH_SHARED_LIBS_TRUE=
21254 WITH_SHARED_LIBS_FALSE='#'
21255else
21256 WITH_SHARED_LIBS_TRUE='#'
21257 WITH_SHARED_LIBS_FALSE=
21258fi
21259
cristy3ed852e2009-09-05 21:47:34 +000021260#
21261# Enable support for building loadable modules
21262#
cristyaf4cbf32012-10-16 23:47:41 +000021263build_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000021264
21265# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000021266if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021267 withval=$with_modules; with_modules=$withval
21268else
cristy5a1cefd2010-01-06 20:42:35 +000021269 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000021270fi
21271
21272
21273# Only allow building loadable modules if we are building shared libraries
21274if test "$with_modules" != 'no' ; then
21275 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000021276 { $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 +000021277$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
cristyc6722092012-10-14 00:19:31 +000021278 build_modules='no'
21279 else
21280 build_modules='yes'
21281 fi
cristy3ed852e2009-09-05 21:47:34 +000021282fi
cristyc6722092012-10-14 00:19:31 +000021283if test "$build_modules" != 'no' ; then
cristy3ed852e2009-09-05 21:47:34 +000021284
cristy8b350f62009-11-15 23:12:43 +000021285$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021286
cristyfa161182012-12-19 15:45:28 +000021287 MAGICK_FEATURES="$MAGICK_FEATURES Modules"
cristy3ed852e2009-09-05 21:47:34 +000021288fi
cristyc6722092012-10-14 00:19:31 +000021289 if test "$build_modules" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +000021290 WITH_MODULES_TRUE=
21291 WITH_MODULES_FALSE='#'
21292else
21293 WITH_MODULES_TRUE='#'
21294 WITH_MODULES_FALSE=
21295fi
21296
cristy3ed852e2009-09-05 21:47:34 +000021297
cristy3ed852e2009-09-05 21:47:34 +000021298# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000021299# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000021300# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000021301if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021302 enableval=$enable_delegate_build; enable_delegate_build=$enableval
21303else
21304 enable_delegate_build='no'
21305fi
21306
21307
21308# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000021309if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021310 enableval=$enable_deprecated; enable_deprecated=$enableval
21311else
21312 enable_deprecated='no'
21313fi
21314
21315
21316if test "$enable_deprecated" = 'yes'; then
21317
cristy8b350f62009-11-15 23:12:43 +000021318$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021319
21320else
21321 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
21322fi
21323
21324# Build a version of ImageMagick which operates uninstalled.
21325# Used to build distributions located via MAGICK_HOME / executable path
21326# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000021327if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021328 enableval=$enable_installed; enable_installed=$enableval
21329else
21330 enable_installed='yes'
21331fi
21332
21333
21334if test "$enable_installed" = 'yes'; then
21335
cristy8b350f62009-11-15 23:12:43 +000021336$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021337
21338else
21339 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
21340fi
21341
21342# Permit enciphering and deciphering image pixels.
21343# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000021344if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021345 enableval=$enable_cipher; enable_cipher=$enableval
21346else
21347 enable_cipher='yes'
21348fi
21349
21350
21351if test "$enable_cipher" = 'yes'; then
21352
cristy8b350f62009-11-15 23:12:43 +000021353$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021354
21355fi
21356
cristy6e3607c2011-09-13 13:59:17 +000021357# Build a zero-configuration version of ImageMagick.
21358# Check whether --enable-zero-configuration was given.
21359if test "${enable_zero_configuration+set}" = set; then :
21360 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
cristy3ed852e2009-09-05 21:47:34 +000021361else
cristy6e3607c2011-09-13 13:59:17 +000021362 enable_zero_configuration='no'
cristy3ed852e2009-09-05 21:47:34 +000021363fi
21364
21365
cristy6e3607c2011-09-13 13:59:17 +000021366if test "$enable_zero_configuration" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021367
cristy6e3607c2011-09-13 13:59:17 +000021368$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021369
cristy81af5702011-09-13 14:20:58 +000021370 MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021371fi
21372
21373# Build a high dynamic range version of ImageMagick.
21374# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000021375if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021376 enableval=$enable_hdri; enable_hdri=$enableval
21377else
cristy191c0b72012-08-12 16:29:52 +000021378 enable_hdri='yes'
cristy3ed852e2009-09-05 21:47:34 +000021379fi
21380
21381
21382MAGICK_HDRI=""
21383if test "$enable_hdri" = 'yes'; then
21384 MAGICK_HDRI="HDRI"
cristye52f12f2012-12-31 15:32:36 +000021385 magick_hdri_enable='1';
cristyfd9dcd42010-08-08 18:07:02 +000021386 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristye52f12f2012-12-31 15:32:36 +000021387else
21388 magick_hdri_enable='0'
cristy3ed852e2009-09-05 21:47:34 +000021389fi
21390
cristye52f12f2012-12-31 15:32:36 +000021391cat >>confdefs.h <<_ACEOF
21392#define HDRI_ENABLE_OBSOLETE_IN_H $magick_hdri_enable
21393_ACEOF
21394
21395MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
21396CFLAGS="$CFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristy72062382012-12-31 16:49:52 +000021397CPPFLAGS="$CPPFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristye52f12f2012-12-31 15:32:36 +000021398
cristy3ed852e2009-09-05 21:47:34 +000021399# Build a version of ImageMagick with assert statements.
21400# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000021401if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021402 enableval=$enable_assert; enable_assert=$enableval
21403else
21404 enable_assert='yes'
21405fi
21406
21407
21408if test "$enable_assert" = 'no'; then
21409
cristy8b350f62009-11-15 23:12:43 +000021410$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021411
21412fi
21413
cristya448bd22011-10-14 12:38:13 +000021414# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
cristy73bd4a52010-10-05 11:24:23 +000021415
21416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
21417$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21418 # Check whether --enable-maintainer-mode was given.
21419if test "${enable_maintainer_mode+set}" = set; then :
21420 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21421else
21422 USE_MAINTAINER_MODE=no
21423fi
21424
21425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
21426$as_echo "$USE_MAINTAINER_MODE" >&6; }
21427 if test $USE_MAINTAINER_MODE = yes; then
21428 MAINTAINER_MODE_TRUE=
21429 MAINTAINER_MODE_FALSE='#'
21430else
21431 MAINTAINER_MODE_TRUE='#'
21432 MAINTAINER_MODE_FALSE=
21433fi
21434
21435 MAINT=$MAINTAINER_MODE_TRUE
21436
21437
cristy3ed852e2009-09-05 21:47:34 +000021438
cristy944e51f2013-04-16 18:45:02 +000021439# Enable hugepages support
21440# Check whether --enable-hugepages was given.
21441if test "${enable_hugepages+set}" = set; then :
21442 enableval=$enable_hugepages; enable_hugepages=$enableval
21443else
21444 enable_hugepages='no'
21445fi
21446
21447
cristy3ed852e2009-09-05 21:47:34 +000021448# Enable ccmalloc memory debugging support
21449# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000021450if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021451 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
21452else
21453 enable_ccmalloc='no'
21454fi
21455
21456
21457# Enable Electric Fence memory debugging support
21458# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000021459if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021460 enableval=$enable_efence; enable_efence=$enableval
21461else
21462 enable_efence='no'
21463fi
21464
21465
21466# Enable prof-based profiling support
21467# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000021468if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021469 enableval=$enable_prof; enable_prof=$enableval
21470else
21471 enable_prof='no'
21472fi
21473
21474
21475# Enable gprof-based profiling support
21476# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000021477if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021478 enableval=$enable_gprof; enable_gprof=$enableval
21479else
21480 enable_gprof='no'
21481fi
21482
21483
21484# Enable gcov-based profiling support
21485# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000021486if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021487 enableval=$enable_gcov; enable_gcov=$enableval
21488else
21489 enable_gcov='no'
21490fi
21491
21492
21493enable_profiling='no'
21494if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21495 enable_profiling='yes'
21496 if test "$libtool_build_shared_libs" = 'yes'; then
21497 echo "Warning: Can not profile code using shared libraries"
21498 fi
21499fi
21500
21501# Magick API method prefix
21502
21503# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000021504if test "${with_method_prefix+set}" = set; then :
cristyfc3d0222012-02-07 15:05:57 +000021505 withval=$with_method_prefix; with_method_prefix=$withval
cristy3ed852e2009-09-05 21:47:34 +000021506else
cristyfc3d0222012-02-07 15:05:57 +000021507 with_method_prefix='no'
cristy3ed852e2009-09-05 21:47:34 +000021508fi
21509
21510
cristyfc3d0222012-02-07 15:05:57 +000021511if test "$with_method_prefix" != 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000021512
21513cat >>confdefs.h <<_ACEOF
21514#define NAMESPACE_PREFIX $with_method_prefix
21515_ACEOF
21516
cristyfc3d0222012-02-07 15:05:57 +000021517 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix "
cristy3ed852e2009-09-05 21:47:34 +000021518fi
21519
cristy71d8c202012-03-20 17:05:01 +000021520# Enable legacy support (default no)
21521# Check whether --enable-legacy-support was given.
21522if test "${enable_legacy_support+set}" = set; then :
21523 enableval=$enable_legacy_support; with_legacy_support=$enableval
21524else
21525 with_legacy_support='no'
21526fi
21527
21528 if test "$with_legacy_support" != 'no'; then
21529 LEGACY_SUPPORT_TRUE=
21530 LEGACY_SUPPORT_FALSE='#'
21531else
21532 LEGACY_SUPPORT_TRUE='#'
21533 LEGACY_SUPPORT_FALSE=
21534fi
21535
21536
cristy3ed852e2009-09-05 21:47:34 +000021537# Number of bits in a Quantum
21538
21539# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000021540if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021541 withval=$with_quantum_depth; with_quantum_depth=$withval
21542else
21543 with_quantum_depth=16
21544fi
21545
21546
21547if test "$with_quantum_depth" != '8'; then
21548 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21549fi
21550
21551case "${with_quantum_depth}" in
21552 8 ) ;;
21553 16 ) ;;
21554 32 ) ;;
21555 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000021556 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021557esac
21558QUANTUM_DEPTH="$with_quantum_depth"
21559
21560cat >>confdefs.h <<_ACEOF
cristye52f12f2012-12-31 15:32:36 +000021561#define QUANTUM_DEPTH_OBSOLETE_IN_H $QUANTUM_DEPTH
cristy3ed852e2009-09-05 21:47:34 +000021562_ACEOF
21563
cristya371edf2013-02-06 13:42:17 +000021564MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristye52f12f2012-12-31 15:32:36 +000021565CFLAGS="$CFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy72062382012-12-31 16:49:52 +000021566CPPFLAGS="$CPPFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy3ed852e2009-09-05 21:47:34 +000021567
cristy01ff9f32012-12-01 18:15:29 +000021568# define a lib suffix for abi purpose
cristy7a26abd2012-12-03 00:18:59 +000021569MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}"
cristye386d192012-12-01 21:05:20 +000021570if test "$enable_hdri" = 'yes'; then
cristy7a26abd2012-12-03 00:18:59 +000021571 MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}${MAGICK_HDRI}"
cristye386d192012-12-01 21:05:20 +000021572fi
cristy01ff9f32012-12-01 18:15:29 +000021573
21574
cristy3ed852e2009-09-05 21:47:34 +000021575# Set pixel cache threshold
21576
21577# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000021578if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021579 withval=$with_cache; with_cache=$withval
21580else
21581 with_cache=''
21582fi
21583
21584
21585if test "$with_cache" != ''; then
21586
21587cat >>confdefs.h <<_ACEOF
21588#define PixelCacheThreshold $with_cache
21589_ACEOF
21590
21591 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21592fi
21593
21594# Disable/Enable support for full delegate paths
21595
21596# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000021597if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021598 withval=$with_frozenpaths; with_frozenpaths=$withval
21599else
21600 with_frozenpaths='no'
21601fi
21602
21603
21604# Enable build/install of Magick++
21605
21606# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000021607if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021608 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21609else
21610 with_magick_plus_plus='yes'
21611fi
21612
21613
cristy3a75f062012-09-08 23:29:40 +000021614# Encode the this name into the shared library.
21615
21616# Check whether --with-package-release-name was given.
21617if test "${with_package_release_name+set}" = set; then :
21618 withval=$with_package_release_name; MAGICK_LT_RELEASE_OPTS="-release $withval"
21619fi
21620
21621
21622
cristy3ed852e2009-09-05 21:47:34 +000021623# Disable build/install of PerlMagick.
21624
21625# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000021626if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021627 withval=$with_perl; with_perl=$withval
21628else
cristyb5f4e2f2010-04-25 00:49:11 +000021629 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000021630fi
21631
21632
21633# Options to pass when configuring PerlMagick
21634
21635# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000021636if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000021637 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000021638fi
21639
21640
cristy3ed852e2009-09-05 21:47:34 +000021641
cristy3b0097d2014-11-04 15:34:47 +000021642# Enable jemalloc, object-caching memory allocation library.
21643
21644# Check whether --with-jemalloc was given.
21645if test "${with_jemalloc+set}" = set; then :
21646 withval=$with_jemalloc; with_jemalloc=$withval
21647else
21648 with_jemalloc='no'
21649fi
21650
21651if test "$with_jemalloc" != 'yes' ; then
21652 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jemalloc=$with_jemalloc "
21653fi
21654
cristy3ed852e2009-09-05 21:47:34 +000021655# Enable umem, object-caching memory allocation library.
21656
21657# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000021658if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021659 withval=$with_umem; with_umem=$withval
21660else
21661 with_umem='no'
21662fi
21663
21664if test "$with_umem" != 'yes' ; then
21665 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21666fi
21667
21668#
21669# Specify path to shared libstdc++ if not in normal location
21670#
21671
21672# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000021673if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021674 withval=$with_libstdc; with_libstdc=$withval
21675else
21676 with_libstdc=''
21677fi
21678
21679
21680if test "$with_libstdc" != ''; then
21681 if test -d "$with_libstdc"; then
21682 LIBSTDCLDFLAGS="-L$with_libstdc"
21683 fi
21684fi
21685
21686
21687# Does gcc required -traditional?
21688if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000021689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021690$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021691if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021692 $as_echo_n "(cached) " >&6
21693else
21694 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000021695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021696/* end confdefs.h. */
21697#include <sgtty.h>
21698Autoconf TIOCGETP
21699_ACEOF
21700if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021701 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021702 ac_cv_prog_gcc_traditional=yes
21703else
21704 ac_cv_prog_gcc_traditional=no
21705fi
21706rm -f conftest*
21707
21708
21709 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000021710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021711/* end confdefs.h. */
21712#include <termio.h>
21713Autoconf TCGETA
21714_ACEOF
21715if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021716 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021717 ac_cv_prog_gcc_traditional=yes
21718fi
21719rm -f conftest*
21720
21721 fi
21722fi
cristy8b350f62009-11-15 23:12:43 +000021723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021724$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21725 if test $ac_cv_prog_gcc_traditional = yes; then
21726 CC="$CC -traditional"
21727 fi
21728fi
21729
21730
21731########
21732#
21733# Set defines required to build DLLs and modules using MinGW
21734#
21735########
21736# These options are set for multi-thread DLL module build
21737# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
21738# module: _DLL
21739# executable/Magick++: _DLL _MAGICKMOD_
21740MODULE_EXTRA_CPPFLAGS=''
21741LIBRARY_EXTRA_CPPFLAGS=''
21742if test "${native_win32_build}" = 'yes'; then
21743 if test "${libtool_build_shared_libs}" = 'yes'; then
21744 CPPFLAGS="$CPPFLAGS -D_DLL"
21745 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
21746 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
21747 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
cristyc6722092012-10-14 00:19:31 +000021748 if test "$build_modules" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021749 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
21750 else
21751 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21752 fi
21753 else
21754 CPPFLAGS="$CPPFLAGS -D_LIB"
21755 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
21756 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
21757 fi
21758 if test "$with_threads" = 'yes'; then
21759 CPPFLAGS="$CPPFLAGS -D_MT"
21760 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
21761 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
21762 fi
21763fi
21764
21765
21766
21767# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000021768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000021769$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021770if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021771 $as_echo_n "(cached) " >&6
21772else
cristy8b350f62009-11-15 23:12:43 +000021773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021774/* end confdefs.h. */
21775#include <stdlib.h>
21776#include <stdarg.h>
21777#include <string.h>
21778#include <float.h>
21779
21780int
21781main ()
21782{
21783
21784 ;
21785 return 0;
21786}
21787_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021788if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021789 ac_cv_header_stdc=yes
21790else
cristy8b350f62009-11-15 23:12:43 +000021791 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021792fi
cristy3ed852e2009-09-05 21:47:34 +000021793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21794
21795if test $ac_cv_header_stdc = yes; then
21796 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021798/* end confdefs.h. */
21799#include <string.h>
21800
21801_ACEOF
21802if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021803 $EGREP "memchr" >/dev/null 2>&1; then :
21804
cristy3ed852e2009-09-05 21:47:34 +000021805else
21806 ac_cv_header_stdc=no
21807fi
21808rm -f conftest*
21809
21810fi
21811
21812if test $ac_cv_header_stdc = yes; then
21813 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021815/* end confdefs.h. */
21816#include <stdlib.h>
21817
21818_ACEOF
21819if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021820 $EGREP "free" >/dev/null 2>&1; then :
21821
cristy3ed852e2009-09-05 21:47:34 +000021822else
21823 ac_cv_header_stdc=no
21824fi
21825rm -f conftest*
21826
21827fi
21828
21829if test $ac_cv_header_stdc = yes; then
21830 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000021831 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021832 :
21833else
cristy8b350f62009-11-15 23:12:43 +000021834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021835/* end confdefs.h. */
21836#include <ctype.h>
21837#include <stdlib.h>
21838#if ((' ' & 0x0FF) == 0x020)
21839# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21840# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21841#else
21842# define ISLOWER(c) \
21843 (('a' <= (c) && (c) <= 'i') \
21844 || ('j' <= (c) && (c) <= 'r') \
21845 || ('s' <= (c) && (c) <= 'z'))
21846# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21847#endif
21848
21849#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21850int
21851main ()
21852{
21853 int i;
21854 for (i = 0; i < 256; i++)
21855 if (XOR (islower (i), ISLOWER (i))
21856 || toupper (i) != TOUPPER (i))
21857 return 2;
21858 return 0;
21859}
21860_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021861if ac_fn_c_try_run "$LINENO"; then :
21862
cristy3ed852e2009-09-05 21:47:34 +000021863else
cristy8b350f62009-11-15 23:12:43 +000021864 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021865fi
cristy8b350f62009-11-15 23:12:43 +000021866rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21867 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021868fi
21869
cristy3ed852e2009-09-05 21:47:34 +000021870fi
21871fi
cristy8b350f62009-11-15 23:12:43 +000021872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000021873$as_echo "$ac_cv_header_stdc" >&6; }
21874if test $ac_cv_header_stdc = yes; then
21875
cristy8b350f62009-11-15 23:12:43 +000021876$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021877
21878fi
21879
21880if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000021881 { $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 +000021882 header files. Compilation cannot proceed. Please install the ANSI C
21883 headers and rerun this script." >&5
21884$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
21885 header files. Compilation cannot proceed. Please install the ANSI C
21886 headers and rerun this script." >&2;};
21887fi
cristya0b81c32010-01-22 02:54:33 +000021888
21889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
21890$as_echo_n "checking whether to enable assertions... " >&6; }
21891 # Check whether --enable-assert was given.
21892if test "${enable_assert+set}" = set; then :
21893 enableval=$enable_assert; ac_enable_assert=$enableval
21894 if test "x$enableval" = xno; then :
21895
21896$as_echo "#define NDEBUG 1" >>confdefs.h
21897
21898elif test "x$enableval" != xyes; then :
21899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
21900$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
21901 ac_enable_assert=yes
21902fi
21903else
21904 ac_enable_assert=yes
21905fi
21906
21907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
21908$as_echo "$ac_enable_assert" >&6; }
21909
cristy3ed852e2009-09-05 21:47:34 +000021910ac_header_dirent=no
21911for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21912 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000021913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000021914$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021915if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021916 $as_echo_n "(cached) " >&6
21917else
cristy8b350f62009-11-15 23:12:43 +000021918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021919/* end confdefs.h. */
21920#include <sys/types.h>
21921#include <$ac_hdr>
21922
21923int
21924main ()
21925{
21926if ((DIR *) 0)
21927return 0;
21928 ;
21929 return 0;
21930}
21931_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021932if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021933 eval "$as_ac_Header=yes"
21934else
cristy8b350f62009-11-15 23:12:43 +000021935 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000021936fi
cristy3ed852e2009-09-05 21:47:34 +000021937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21938fi
cristy8b350f62009-11-15 23:12:43 +000021939eval ac_res=\$$as_ac_Header
21940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000021941$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000021942if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021943 cat >>confdefs.h <<_ACEOF
21944#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21945_ACEOF
21946
21947ac_header_dirent=$ac_hdr; break
21948fi
21949
21950done
21951# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21952if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000021953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021954$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021955if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021956 $as_echo_n "(cached) " >&6
21957else
21958 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021959cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021960/* end confdefs.h. */
21961
21962/* Override any GCC internal prototype to avoid an error.
21963 Use char because int might match the return type of a GCC
21964 builtin and then its argument prototype would still apply. */
21965#ifdef __cplusplus
21966extern "C"
21967#endif
21968char opendir ();
21969int
21970main ()
21971{
21972return opendir ();
21973 ;
21974 return 0;
21975}
21976_ACEOF
21977for ac_lib in '' dir; do
21978 if test -z "$ac_lib"; then
21979 ac_res="none required"
21980 else
21981 ac_res=-l$ac_lib
21982 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21983 fi
cristy8b350f62009-11-15 23:12:43 +000021984 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021985 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021986fi
cristy8b350f62009-11-15 23:12:43 +000021987rm -f core conftest.err conftest.$ac_objext \
21988 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021989 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021990 break
21991fi
21992done
cristyda16f162011-02-19 23:52:17 +000021993if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021994
cristy3ed852e2009-09-05 21:47:34 +000021995else
21996 ac_cv_search_opendir=no
21997fi
21998rm conftest.$ac_ext
21999LIBS=$ac_func_search_save_LIBS
22000fi
cristy8b350f62009-11-15 23:12:43 +000022001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022002$as_echo "$ac_cv_search_opendir" >&6; }
22003ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000022004if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000022005 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22006
22007fi
22008
22009else
cristy8b350f62009-11-15 23:12:43 +000022010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022011$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022012if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022013 $as_echo_n "(cached) " >&6
22014else
22015 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000022016cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022017/* end confdefs.h. */
22018
22019/* Override any GCC internal prototype to avoid an error.
22020 Use char because int might match the return type of a GCC
22021 builtin and then its argument prototype would still apply. */
22022#ifdef __cplusplus
22023extern "C"
22024#endif
22025char opendir ();
22026int
22027main ()
22028{
22029return opendir ();
22030 ;
22031 return 0;
22032}
22033_ACEOF
22034for ac_lib in '' x; do
22035 if test -z "$ac_lib"; then
22036 ac_res="none required"
22037 else
22038 ac_res=-l$ac_lib
22039 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22040 fi
cristy8b350f62009-11-15 23:12:43 +000022041 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022042 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000022043fi
cristy8b350f62009-11-15 23:12:43 +000022044rm -f core conftest.err conftest.$ac_objext \
22045 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000022046 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022047 break
22048fi
22049done
cristyda16f162011-02-19 23:52:17 +000022050if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000022051
cristy3ed852e2009-09-05 21:47:34 +000022052else
22053 ac_cv_search_opendir=no
22054fi
22055rm conftest.$ac_ext
22056LIBS=$ac_func_search_save_LIBS
22057fi
cristy8b350f62009-11-15 23:12:43 +000022058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022059$as_echo "$ac_cv_search_opendir" >&6; }
22060ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000022061if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000022062 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22063
22064fi
22065
22066fi
22067
22068
22069# Check additional headers
cristy03f187e2013-01-24 00:22:19 +000022070for ac_header in arm/limits.h arpa/inet.h complex.h errno.h fcntl.h limits.h linux/unistd.h locale.h machine/param.h mach-o/dyld.h netinet/in.h OS.h process.h sun_prefetch.h stdarg.h sys/ipc.h sys/mman.h sys/resource.h sys/socket.h sys/syslimits.h sys/time.h sys/timeb.h sys/times.h sys/wait.h wchar.h xlocale.h
cristy8b350f62009-11-15 23:12:43 +000022071do :
22072 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22073ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000022074if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022075 cat >>confdefs.h <<_ACEOF
22076#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22077_ACEOF
22078
22079fi
22080
22081done
22082
22083
22084########
22085#
22086# Checks for typedefs, structures, and compiler characteristics.
22087#
22088########
22089
cristy8b350f62009-11-15 23:12:43 +000022090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000022091$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022092if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022093 $as_echo_n "(cached) " >&6
22094else
cristy8b350f62009-11-15 23:12:43 +000022095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022096/* end confdefs.h. */
22097
cristy14fefe52012-05-21 00:59:18 +000022098 #include <stdbool.h>
22099 #ifndef bool
22100 "error: bool is not defined"
22101 #endif
22102 #ifndef false
22103 "error: false is not defined"
22104 #endif
22105 #if false
22106 "error: false is not 0"
22107 #endif
22108 #ifndef true
22109 "error: true is not defined"
22110 #endif
22111 #if true != 1
22112 "error: true is not 1"
22113 #endif
22114 #ifndef __bool_true_false_are_defined
22115 "error: __bool_true_false_are_defined is not defined"
22116 #endif
cristy3ed852e2009-09-05 21:47:34 +000022117
cristy14fefe52012-05-21 00:59:18 +000022118 struct s { _Bool s: 1; _Bool t; } s;
cristy3ed852e2009-09-05 21:47:34 +000022119
cristy14fefe52012-05-21 00:59:18 +000022120 char a[true == 1 ? 1 : -1];
22121 char b[false == 0 ? 1 : -1];
22122 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
22123 char d[(bool) 0.5 == true ? 1 : -1];
22124 /* See body of main program for 'e'. */
22125 char f[(_Bool) 0.0 == false ? 1 : -1];
22126 char g[true];
22127 char h[sizeof (_Bool)];
22128 char i[sizeof s.t];
22129 enum { j = false, k = true, l = false * true, m = true * 256 };
22130 /* The following fails for
22131 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
22132 _Bool n[m];
22133 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
22134 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
22135 /* Catch a bug in an HP-UX C compiler. See
22136 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
22137 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
22138 */
22139 _Bool q = true;
22140 _Bool *pq = &q;
cristy3ed852e2009-09-05 21:47:34 +000022141
22142int
22143main ()
22144{
22145
cristy14fefe52012-05-21 00:59:18 +000022146 bool e = &s;
22147 *pq |= q;
22148 *pq |= ! q;
22149 /* Refer to every declared value, to avoid compiler optimizations. */
22150 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
22151 + !m + !n + !o + !p + !q + !pq);
cristy3ed852e2009-09-05 21:47:34 +000022152
22153 ;
22154 return 0;
22155}
22156_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022157if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022158 ac_cv_header_stdbool_h=yes
22159else
cristy8b350f62009-11-15 23:12:43 +000022160 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000022161fi
cristy3ed852e2009-09-05 21:47:34 +000022162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22163fi
cristy8b350f62009-11-15 23:12:43 +000022164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000022165$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy14fefe52012-05-21 00:59:18 +000022166 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000022167if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000022168
22169cat >>confdefs.h <<_ACEOF
22170#define HAVE__BOOL 1
22171_ACEOF
22172
22173
22174fi
22175
cristy14fefe52012-05-21 00:59:18 +000022176
cristy3ed852e2009-09-05 21:47:34 +000022177if test $ac_cv_header_stdbool_h = yes; then
22178
cristy8b350f62009-11-15 23:12:43 +000022179$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022180
22181fi
22182
cristy8b350f62009-11-15 23:12:43 +000022183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022184$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022185if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022186 $as_echo_n "(cached) " >&6
22187else
cristy8b350f62009-11-15 23:12:43 +000022188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022189/* end confdefs.h. */
22190
22191int
22192main ()
22193{
22194
22195volatile int x;
22196int * volatile y = (int *) 0;
22197return !x && !y;
22198 ;
22199 return 0;
22200}
22201_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022202if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022203 ac_cv_c_volatile=yes
22204else
cristy8b350f62009-11-15 23:12:43 +000022205 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000022206fi
cristy3ed852e2009-09-05 21:47:34 +000022207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22208fi
cristy8b350f62009-11-15 23:12:43 +000022209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022210$as_echo "$ac_cv_c_volatile" >&6; }
22211if test $ac_cv_c_volatile = no; then
22212
cristy8b350f62009-11-15 23:12:43 +000022213$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022214
22215fi
22216
cristy8b350f62009-11-15 23:12:43 +000022217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000022218$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022219if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022220 $as_echo_n "(cached) " >&6
22221else
cristy8b350f62009-11-15 23:12:43 +000022222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022223/* end confdefs.h. */
22224#define x(y) #y
22225
22226char *s = x(teststring);
22227_ACEOF
22228if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022229 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022230 ac_cv_c_stringize=no
22231else
22232 ac_cv_c_stringize=yes
22233fi
22234rm -f conftest*
22235
22236fi
cristy8b350f62009-11-15 23:12:43 +000022237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000022238$as_echo "$ac_cv_c_stringize" >&6; }
22239if test $ac_cv_c_stringize = yes; then
22240
cristy8b350f62009-11-15 23:12:43 +000022241$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022242
22243fi
22244
cristy8b350f62009-11-15 23:12:43 +000022245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022246$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022247if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022248 $as_echo_n "(cached) " >&6
22249else
cristy8b350f62009-11-15 23:12:43 +000022250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022251/* end confdefs.h. */
22252#include <sys/types.h>
22253#include <sys/stat.h>
22254
22255#if defined S_ISBLK && defined S_IFDIR
22256extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22257#endif
22258
22259#if defined S_ISBLK && defined S_IFCHR
22260extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22261#endif
22262
22263#if defined S_ISLNK && defined S_IFREG
22264extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22265#endif
22266
22267#if defined S_ISSOCK && defined S_IFREG
22268extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22269#endif
22270
22271_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022272if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022273 ac_cv_header_stat_broken=no
22274else
cristy8b350f62009-11-15 23:12:43 +000022275 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000022276fi
cristy3ed852e2009-09-05 21:47:34 +000022277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22278fi
cristy8b350f62009-11-15 23:12:43 +000022279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022280$as_echo "$ac_cv_header_stat_broken" >&6; }
22281if test $ac_cv_header_stat_broken = yes; then
22282
cristy8b350f62009-11-15 23:12:43 +000022283$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022284
22285fi
22286
cristy8b350f62009-11-15 23:12:43 +000022287{ $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 +000022288$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022289if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022290 $as_echo_n "(cached) " >&6
22291else
cristy8b350f62009-11-15 23:12:43 +000022292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022293/* end confdefs.h. */
22294#include <sys/types.h>
22295#include <sys/time.h>
22296#include <time.h>
22297
22298int
22299main ()
22300{
22301if ((struct tm *) 0)
22302return 0;
22303 ;
22304 return 0;
22305}
22306_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022307if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022308 ac_cv_header_time=yes
22309else
cristy8b350f62009-11-15 23:12:43 +000022310 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000022311fi
cristy3ed852e2009-09-05 21:47:34 +000022312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22313fi
cristy8b350f62009-11-15 23:12:43 +000022314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000022315$as_echo "$ac_cv_header_time" >&6; }
22316if test $ac_cv_header_time = yes; then
22317
cristy8b350f62009-11-15 23:12:43 +000022318$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022319
22320fi
22321
cristy8b350f62009-11-15 23:12:43 +000022322{ $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 +000022323$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022324if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022325 $as_echo_n "(cached) " >&6
22326else
cristy8b350f62009-11-15 23:12:43 +000022327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022328/* end confdefs.h. */
22329#include <sys/types.h>
22330#include <time.h>
22331
22332int
22333main ()
22334{
22335struct tm tm;
22336 int *p = &tm.tm_sec;
22337 return !p;
22338 ;
22339 return 0;
22340}
22341_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022342if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022343 ac_cv_struct_tm=time.h
22344else
cristy8b350f62009-11-15 23:12:43 +000022345 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000022346fi
cristy3ed852e2009-09-05 21:47:34 +000022347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22348fi
cristy8b350f62009-11-15 23:12:43 +000022349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000022350$as_echo "$ac_cv_struct_tm" >&6; }
22351if test $ac_cv_struct_tm = sys/time.h; then
22352
cristy8b350f62009-11-15 23:12:43 +000022353$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022354
22355fi
22356
cristy92703d82010-04-26 00:18:18 +000022357ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
22358#include <$ac_cv_struct_tm>
22359
22360"
cristyda16f162011-02-19 23:52:17 +000022361if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022362
22363cat >>confdefs.h <<_ACEOF
22364#define HAVE_STRUCT_TM_TM_ZONE 1
22365_ACEOF
22366
22367
22368fi
22369
22370if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22371
22372$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
22373
22374else
22375 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
22376"
cristyda16f162011-02-19 23:52:17 +000022377if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022378 ac_have_decl=1
22379else
22380 ac_have_decl=0
22381fi
22382
22383cat >>confdefs.h <<_ACEOF
22384#define HAVE_DECL_TZNAME $ac_have_decl
22385_ACEOF
22386
22387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
22388$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022389if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000022390 $as_echo_n "(cached) " >&6
22391else
22392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22393/* end confdefs.h. */
22394#include <time.h>
22395#if !HAVE_DECL_TZNAME
22396extern char *tzname[];
22397#endif
22398
22399int
22400main ()
22401{
22402return tzname[0][0];
22403 ;
22404 return 0;
22405}
22406_ACEOF
22407if ac_fn_c_try_link "$LINENO"; then :
22408 ac_cv_var_tzname=yes
22409else
22410 ac_cv_var_tzname=no
22411fi
22412rm -f core conftest.err conftest.$ac_objext \
22413 conftest$ac_exeext conftest.$ac_ext
22414fi
22415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22416$as_echo "$ac_cv_var_tzname" >&6; }
22417 if test $ac_cv_var_tzname = yes; then
22418
22419$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
22420
22421 fi
22422fi
22423
cristy8b350f62009-11-15 23:12:43 +000022424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000022425$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022426if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022427 $as_echo_n "(cached) " >&6
22428else
22429 echo '#! /bin/cat
22430exit 69
22431' >conftest
22432chmod u+x conftest
22433(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
22434if test $? -ne 69; then
22435 ac_cv_sys_interpreter=yes
22436else
22437 ac_cv_sys_interpreter=no
22438fi
22439rm -f conftest
22440fi
cristy8b350f62009-11-15 23:12:43 +000022441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000022442$as_echo "$ac_cv_sys_interpreter" >&6; }
22443interpval=$ac_cv_sys_interpreter
22444
22445
cristye80f9cb2013-01-09 01:09:31 +000022446#
22447# Checks for language qualifiers and semantics.
22448#
22449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
22450$as_echo_n "checking whether char is unsigned... " >&6; }
22451if ${ac_cv_c_char_unsigned+:} false; then :
22452 $as_echo_n "(cached) " >&6
22453else
22454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22455/* end confdefs.h. */
22456$ac_includes_default
22457int
22458main ()
22459{
22460static int test_array [1 - 2 * !(((char) -1) < 0)];
22461test_array [0] = 0;
22462return test_array [0];
22463
22464 ;
22465 return 0;
22466}
22467_ACEOF
22468if ac_fn_c_try_compile "$LINENO"; then :
22469 ac_cv_c_char_unsigned=no
22470else
22471 ac_cv_c_char_unsigned=yes
22472fi
22473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22474fi
22475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
22476$as_echo "$ac_cv_c_char_unsigned" >&6; }
22477if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
22478 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
22479
22480fi
22481
22482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
22483$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
22484if ${ac_cv_c_const+:} false; then :
22485 $as_echo_n "(cached) " >&6
22486else
22487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22488/* end confdefs.h. */
22489
22490int
22491main ()
22492{
22493
22494#ifndef __cplusplus
22495 /* Ultrix mips cc rejects this sort of thing. */
22496 typedef int charset[2];
22497 const charset cs = { 0, 0 };
22498 /* SunOS 4.1.1 cc rejects this. */
22499 char const *const *pcpcc;
22500 char **ppc;
22501 /* NEC SVR4.0.2 mips cc rejects this. */
22502 struct point {int x, y;};
22503 static struct point const zero = {0,0};
22504 /* AIX XL C 1.02.0.0 rejects this.
22505 It does not let you subtract one const X* pointer from another in
22506 an arm of an if-expression whose if-part is not a constant
22507 expression */
22508 const char *g = "string";
22509 pcpcc = &g + (g ? g-g : 0);
22510 /* HPUX 7.0 cc rejects these. */
22511 ++pcpcc;
22512 ppc = (char**) pcpcc;
22513 pcpcc = (char const *const *) ppc;
22514 { /* SCO 3.2v4 cc rejects this sort of thing. */
22515 char tx;
22516 char *t = &tx;
22517 char const *s = 0 ? (char *) 0 : (char const *) 0;
22518
22519 *t++ = 0;
22520 if (s) return 0;
22521 }
22522 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22523 int x[] = {25, 17};
22524 const int *foo = &x[0];
22525 ++foo;
22526 }
22527 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22528 typedef const int *iptr;
22529 iptr p = 0;
22530 ++p;
22531 }
22532 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
22533 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22534 struct s { int j; const int *ap[3]; } bx;
22535 struct s *b = &bx; b->j = 5;
22536 }
22537 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22538 const int foo = 10;
22539 if (!foo) return 0;
22540 }
22541 return !cs[0] && !zero.x;
22542#endif
22543
22544 ;
22545 return 0;
22546}
22547_ACEOF
22548if ac_fn_c_try_compile "$LINENO"; then :
22549 ac_cv_c_const=yes
22550else
22551 ac_cv_c_const=no
22552fi
22553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22554fi
22555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
22556$as_echo "$ac_cv_c_const" >&6; }
22557if test $ac_cv_c_const = no; then
22558
22559$as_echo "#define const /**/" >>confdefs.h
22560
22561fi
22562
cristy8b350f62009-11-15 23:12:43 +000022563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022564$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022565if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022566 $as_echo_n "(cached) " >&6
22567else
22568 ac_cv_c_inline=no
22569for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000022570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022571/* end confdefs.h. */
22572#ifndef __cplusplus
22573typedef int foo_t;
22574static $ac_kw foo_t static_foo () {return 0; }
22575$ac_kw foo_t foo () {return 0; }
22576#endif
22577
22578_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022579if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022580 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022581fi
cristy3ed852e2009-09-05 21:47:34 +000022582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22583 test "$ac_cv_c_inline" != no && break
22584done
22585
22586fi
cristy8b350f62009-11-15 23:12:43 +000022587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022588$as_echo "$ac_cv_c_inline" >&6; }
22589
cristy3ed852e2009-09-05 21:47:34 +000022590case $ac_cv_c_inline in
22591 inline | yes) ;;
22592 *)
22593 case $ac_cv_c_inline in
22594 no) ac_val=;;
22595 *) ac_val=$ac_cv_c_inline;;
22596 esac
22597 cat >>confdefs.h <<_ACEOF
22598#ifndef __cplusplus
22599#define inline $ac_val
22600#endif
22601_ACEOF
22602 ;;
22603esac
22604
cristy8b350f62009-11-15 23:12:43 +000022605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000022606$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022607if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022608 $as_echo_n "(cached) " >&6
22609else
22610 ac_cv_c_restrict=no
22611 # The order here caters to the fact that C++ does not require restrict.
22612 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000022613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022614/* end confdefs.h. */
22615typedef int * int_ptr;
22616 int foo (int_ptr $ac_kw ip) {
22617 return ip[0];
22618 }
22619int
22620main ()
22621{
22622int s[1];
22623 int * $ac_kw t = s;
22624 t[0] = 0;
22625 return foo(t)
22626 ;
22627 return 0;
22628}
22629_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022630if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022631 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022632fi
cristy3ed852e2009-09-05 21:47:34 +000022633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22634 test "$ac_cv_c_restrict" != no && break
22635 done
22636
22637fi
cristy8b350f62009-11-15 23:12:43 +000022638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000022639$as_echo "$ac_cv_c_restrict" >&6; }
22640
cristy3ed852e2009-09-05 21:47:34 +000022641 case $ac_cv_c_restrict in
22642 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000022643 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022644 ;;
22645 *) cat >>confdefs.h <<_ACEOF
22646#define restrict $ac_cv_c_restrict
22647_ACEOF
22648 ;;
22649 esac
22650
cristye80f9cb2013-01-09 01:09:31 +000022651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
22652$as_echo_n "checking for working volatile... " >&6; }
22653if ${ac_cv_c_volatile+:} false; then :
22654 $as_echo_n "(cached) " >&6
22655else
22656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22657/* end confdefs.h. */
22658
22659int
22660main ()
22661{
22662
22663volatile int x;
22664int * volatile y = (int *) 0;
22665return !x && !y;
22666 ;
22667 return 0;
22668}
22669_ACEOF
22670if ac_fn_c_try_compile "$LINENO"; then :
22671 ac_cv_c_volatile=yes
22672else
22673 ac_cv_c_volatile=no
22674fi
22675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22676fi
22677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
22678$as_echo "$ac_cv_c_volatile" >&6; }
22679if test $ac_cv_c_volatile = no; then
22680
22681$as_echo "#define volatile /**/" >>confdefs.h
22682
22683fi
22684
cristy3ed852e2009-09-05 21:47:34 +000022685
22686# If words are stored with the most significant byte first (like
22687# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000022688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022689$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022690if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022691 $as_echo_n "(cached) " >&6
22692else
22693 ac_cv_c_bigendian=unknown
22694 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000022695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022696/* end confdefs.h. */
22697#ifndef __APPLE_CC__
22698 not a universal capable compiler
22699 #endif
22700 typedef int dummy;
22701
22702_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022703if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022704
22705 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000022706 # there are at least two -arch flags with different values.
22707 ac_arch=
22708 ac_prev=
22709 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22710 if test -n "$ac_prev"; then
22711 case $ac_word in
22712 i?86 | x86_64 | ppc | ppc64)
22713 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22714 ac_arch=$ac_word
22715 else
22716 ac_cv_c_bigendian=universal
22717 break
22718 fi
22719 ;;
22720 esac
22721 ac_prev=
22722 elif test "x$ac_word" = "x-arch"; then
22723 ac_prev=arch
22724 fi
22725 done
cristy3ed852e2009-09-05 21:47:34 +000022726fi
cristy3ed852e2009-09-05 21:47:34 +000022727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22728 if test $ac_cv_c_bigendian = unknown; then
22729 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000022730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022731/* end confdefs.h. */
22732#include <sys/types.h>
22733 #include <sys/param.h>
22734
22735int
22736main ()
22737{
22738#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22739 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22740 && LITTLE_ENDIAN)
22741 bogus endian macros
22742 #endif
22743
22744 ;
22745 return 0;
22746}
22747_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022748if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022749 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022751/* end confdefs.h. */
22752#include <sys/types.h>
22753 #include <sys/param.h>
22754
22755int
22756main ()
22757{
22758#if BYTE_ORDER != BIG_ENDIAN
22759 not big endian
22760 #endif
22761
22762 ;
22763 return 0;
22764}
22765_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022766if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022767 ac_cv_c_bigendian=yes
22768else
cristy8b350f62009-11-15 23:12:43 +000022769 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022770fi
cristy3ed852e2009-09-05 21:47:34 +000022771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022772fi
cristy3ed852e2009-09-05 21:47:34 +000022773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22774 fi
22775 if test $ac_cv_c_bigendian = unknown; then
22776 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000022777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022778/* end confdefs.h. */
22779#include <limits.h>
22780
22781int
22782main ()
22783{
22784#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22785 bogus endian macros
22786 #endif
22787
22788 ;
22789 return 0;
22790}
22791_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022792if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022793 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022795/* end confdefs.h. */
22796#include <limits.h>
22797
22798int
22799main ()
22800{
22801#ifndef _BIG_ENDIAN
22802 not big endian
22803 #endif
22804
22805 ;
22806 return 0;
22807}
22808_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022809if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022810 ac_cv_c_bigendian=yes
22811else
cristy8b350f62009-11-15 23:12:43 +000022812 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022813fi
cristy3ed852e2009-09-05 21:47:34 +000022814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022815fi
cristy3ed852e2009-09-05 21:47:34 +000022816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22817 fi
22818 if test $ac_cv_c_bigendian = unknown; then
22819 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000022820 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022821 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000022822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022823/* end confdefs.h. */
22824short int ascii_mm[] =
22825 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22826 short int ascii_ii[] =
22827 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22828 int use_ascii (int i) {
22829 return ascii_mm[i] + ascii_ii[i];
22830 }
22831 short int ebcdic_ii[] =
22832 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22833 short int ebcdic_mm[] =
22834 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22835 int use_ebcdic (int i) {
22836 return ebcdic_mm[i] + ebcdic_ii[i];
22837 }
22838 extern int foo;
22839
22840int
22841main ()
22842{
22843return use_ascii (foo) == use_ebcdic (foo);
22844 ;
22845 return 0;
22846}
22847_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022848if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022849 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22850 ac_cv_c_bigendian=yes
22851 fi
22852 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22853 if test "$ac_cv_c_bigendian" = unknown; then
22854 ac_cv_c_bigendian=no
22855 else
22856 # finding both strings is unlikely to happen, but who knows?
22857 ac_cv_c_bigendian=unknown
22858 fi
22859 fi
cristy3ed852e2009-09-05 21:47:34 +000022860fi
cristy3ed852e2009-09-05 21:47:34 +000022861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22862else
cristy8b350f62009-11-15 23:12:43 +000022863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022864/* end confdefs.h. */
22865$ac_includes_default
22866int
22867main ()
22868{
22869
22870 /* Are we little or big endian? From Harbison&Steele. */
22871 union
22872 {
22873 long int l;
22874 char c[sizeof (long int)];
22875 } u;
22876 u.l = 1;
22877 return u.c[sizeof (long int) - 1] == 1;
22878
22879 ;
22880 return 0;
22881}
22882_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022883if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022884 ac_cv_c_bigendian=no
22885else
cristy8b350f62009-11-15 23:12:43 +000022886 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000022887fi
cristy8b350f62009-11-15 23:12:43 +000022888rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22889 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022890fi
22891
cristy3ed852e2009-09-05 21:47:34 +000022892 fi
22893fi
cristy8b350f62009-11-15 23:12:43 +000022894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022895$as_echo "$ac_cv_c_bigendian" >&6; }
22896 case $ac_cv_c_bigendian in #(
22897 yes)
cristy8b350f62009-11-15 23:12:43 +000022898 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022899;; #(
22900 no)
22901 ;; #(
22902 universal)
22903
cristy8b350f62009-11-15 23:12:43 +000022904$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022905
22906 ;; #(
22907 *)
cristy98dddb52010-11-04 00:30:15 +000022908 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000022909 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000022910 esac
22911
22912
cristy501c8042011-05-26 17:46:28 +000022913# Define to a suitable type, if standard headers do not define it.
22914ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
22915case $ac_cv_c_int8_t in #(
22916 no|yes) ;; #(
22917 *)
cristy3ed852e2009-09-05 21:47:34 +000022918
22919cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022920#define int8_t $ac_cv_c_int8_t
22921_ACEOF
22922;;
22923esac
22924
22925ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
22926case $ac_cv_c_int16_t in #(
22927 no|yes) ;; #(
22928 *)
22929
22930cat >>confdefs.h <<_ACEOF
22931#define int16_t $ac_cv_c_int16_t
22932_ACEOF
22933;;
22934esac
22935
22936ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
22937case $ac_cv_c_int32_t in #(
22938 no|yes) ;; #(
22939 *)
22940
22941cat >>confdefs.h <<_ACEOF
22942#define int32_t $ac_cv_c_int32_t
22943_ACEOF
22944;;
22945esac
22946
22947ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
22948case $ac_cv_c_int64_t in #(
22949 no|yes) ;; #(
22950 *)
22951
22952cat >>confdefs.h <<_ACEOF
22953#define int64_t $ac_cv_c_int64_t
22954_ACEOF
22955;;
22956esac
22957
22958
cristy045228a2013-06-23 11:00:16 +000022959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
22960$as_echo_n "checking for unsigned long long int... " >&6; }
22961if ${ac_cv_type_unsigned_long_long_int+:} false; then :
cristy501c8042011-05-26 17:46:28 +000022962 $as_echo_n "(cached) " >&6
22963else
cristy045228a2013-06-23 11:00:16 +000022964 ac_cv_type_unsigned_long_long_int=yes
22965 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
22966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000022967/* end confdefs.h. */
22968
22969 /* For now, do not test the preprocessor; as of 2007 there are too many
cristy5ed9c6e2013-07-14 21:20:31 +000022970 implementations with broken preprocessors. Perhaps this can
22971 be revisited in 2012. In the meantime, code should not expect
22972 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000022973 /* Test literals. */
22974 long long int ll = 9223372036854775807ll;
22975 long long int nll = -9223372036854775807LL;
22976 unsigned long long int ull = 18446744073709551615ULL;
22977 /* Test constant expressions. */
22978 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristy5ed9c6e2013-07-14 21:20:31 +000022979 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000022980 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristy5ed9c6e2013-07-14 21:20:31 +000022981 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000022982 int i = 63;
22983int
22984main ()
22985{
22986/* Test availability of runtime routines for shift and division. */
22987 long long int llmax = 9223372036854775807ll;
22988 unsigned long long int ullmax = 18446744073709551615ull;
22989 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristy5ed9c6e2013-07-14 21:20:31 +000022990 | (llmax / ll) | (llmax % ll)
22991 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22992 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000022993 ;
22994 return 0;
22995}
22996
22997_ACEOF
22998if ac_fn_c_try_link "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000022999
23000else
23001 ac_cv_type_unsigned_long_long_int=no
23002fi
23003rm -f core conftest.err conftest.$ac_objext \
23004 conftest$ac_exeext conftest.$ac_ext
23005 fi
23006fi
23007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23008$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23009 if test $ac_cv_type_unsigned_long_long_int = yes; then
23010
23011$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23012
23013 fi
23014
23015
23016
23017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
23018$as_echo_n "checking for long long int... " >&6; }
23019if ${ac_cv_type_long_long_int+:} false; then :
23020 $as_echo_n "(cached) " >&6
23021else
cristy501c8042011-05-26 17:46:28 +000023022 ac_cv_type_long_long_int=yes
cristy045228a2013-06-23 11:00:16 +000023023 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
cristy5ed9c6e2013-07-14 21:20:31 +000023024 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
23025 if test $ac_cv_type_long_long_int = yes; then
23026 if test "$cross_compiling" = yes; then :
cristy045228a2013-06-23 11:00:16 +000023027 :
cristy501c8042011-05-26 17:46:28 +000023028else
23029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23030/* end confdefs.h. */
23031#include <limits.h>
cristy5ed9c6e2013-07-14 21:20:31 +000023032 #ifndef LLONG_MAX
23033 # define HALF \
23034 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
23035 # define LLONG_MAX (HALF - 1 + HALF)
23036 #endif
cristy501c8042011-05-26 17:46:28 +000023037int
23038main ()
23039{
23040long long int n = 1;
cristy5ed9c6e2013-07-14 21:20:31 +000023041 int i;
23042 for (i = 0; ; i++)
23043 {
23044 long long int m = n << i;
23045 if (m >> i != n)
23046 return 1;
23047 if (LLONG_MAX / 2 < m)
23048 break;
23049 }
23050 return 0;
cristy501c8042011-05-26 17:46:28 +000023051 ;
23052 return 0;
23053}
23054_ACEOF
23055if ac_fn_c_try_run "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023056
cristy501c8042011-05-26 17:46:28 +000023057else
23058 ac_cv_type_long_long_int=no
23059fi
23060rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23061 conftest.$ac_objext conftest.beam conftest.$ac_ext
23062fi
23063
cristy5ed9c6e2013-07-14 21:20:31 +000023064 fi
cristy045228a2013-06-23 11:00:16 +000023065 fi
cristy501c8042011-05-26 17:46:28 +000023066fi
23067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23068$as_echo "$ac_cv_type_long_long_int" >&6; }
23069 if test $ac_cv_type_long_long_int = yes; then
23070
23071$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23072
23073 fi
23074
23075
23076
23077 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
23078if test "x$ac_cv_type_intmax_t" = xyes; then :
23079
23080$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
23081
23082else
23083 test $ac_cv_type_long_long_int = yes \
23084 && ac_type='long long int' \
23085 || ac_type='long int'
23086
23087cat >>confdefs.h <<_ACEOF
23088#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000023089_ACEOF
23090
23091fi
23092
23093
cristy501c8042011-05-26 17:46:28 +000023094
23095 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
23096if test "x$ac_cv_type_intptr_t" = xyes; then :
23097
23098$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023099
cristy3ed852e2009-09-05 21:47:34 +000023100else
cristy501c8042011-05-26 17:46:28 +000023101 for ac_type in 'int' 'long int' 'long long int'; do
23102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23103/* end confdefs.h. */
23104$ac_includes_default
23105int
23106main ()
23107{
23108static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000023109test_array [0] = 0;
23110return test_array [0];
cristy501c8042011-05-26 17:46:28 +000023111
23112 ;
23113 return 0;
23114}
23115_ACEOF
23116if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023117
23118cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000023119#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000023120_ACEOF
23121
cristy501c8042011-05-26 17:46:28 +000023122 ac_type=
23123fi
23124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23125 test -z "$ac_type" && break
23126 done
cristy3ed852e2009-09-05 21:47:34 +000023127fi
23128
23129
cristy3ed852e2009-09-05 21:47:34 +000023130
cristy501c8042011-05-26 17:46:28 +000023131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
23132$as_echo_n "checking for long double... " >&6; }
23133if ${ac_cv_type_long_double+:} false; then :
23134 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000023135else
cristy501c8042011-05-26 17:46:28 +000023136 if test "$GCC" = yes; then
23137 ac_cv_type_long_double=yes
23138 else
23139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23140/* end confdefs.h. */
23141/* The Stardent Vistra knows sizeof (long double), but does
23142 not support it. */
23143 long double foo = 0.0L;
23144int
23145main ()
23146{
23147static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
23148 sizeof (double) <= sizeof (long double))];
cristy14fefe52012-05-21 00:59:18 +000023149test_array [0] = 0;
23150return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023151
cristy501c8042011-05-26 17:46:28 +000023152 ;
23153 return 0;
23154}
cristy3ed852e2009-09-05 21:47:34 +000023155_ACEOF
cristy501c8042011-05-26 17:46:28 +000023156if ac_fn_c_try_compile "$LINENO"; then :
23157 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000023158else
cristy501c8042011-05-26 17:46:28 +000023159 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000023160fi
cristy501c8042011-05-26 17:46:28 +000023161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23162 fi
cristy3ed852e2009-09-05 21:47:34 +000023163fi
cristy501c8042011-05-26 17:46:28 +000023164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
23165$as_echo "$ac_cv_type_long_double" >&6; }
23166 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023167
cristy501c8042011-05-26 17:46:28 +000023168$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023169
cristy501c8042011-05-26 17:46:28 +000023170 fi
23171
cristy3ed852e2009-09-05 21:47:34 +000023172
cristy8b350f62009-11-15 23:12:43 +000023173 { $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 +000023174$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023175if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023176 $as_echo_n "(cached) " >&6
23177else
cristy8b350f62009-11-15 23:12:43 +000023178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023179/* end confdefs.h. */
23180#include <float.h>
23181 long double const a[] =
23182 {
23183 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
23184 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
23185 };
23186 long double
23187 f (long double x)
23188 {
23189 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
23190 + (x ? f (x) : 'c'));
23191 }
23192
23193int
23194main ()
23195{
23196static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
23197 + (DBL_MANT_DIG < LDBL_MANT_DIG)
23198 - (LDBL_MAX_EXP < DBL_MAX_EXP)
23199 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
23200 && (int) LDBL_EPSILON == 0
23201 )];
cristy14fefe52012-05-21 00:59:18 +000023202test_array [0] = 0;
23203return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023204
23205 ;
23206 return 0;
23207}
23208_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023209if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023210 ac_cv_type_long_double_wider=yes
23211else
cristy8b350f62009-11-15 23:12:43 +000023212 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000023213fi
cristy3ed852e2009-09-05 21:47:34 +000023214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23215fi
cristy8b350f62009-11-15 23:12:43 +000023216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000023217$as_echo "$ac_cv_type_long_double_wider" >&6; }
23218 if test $ac_cv_type_long_double_wider = yes; then
23219
cristy8b350f62009-11-15 23:12:43 +000023220$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023221
23222 fi
23223
23224
cristy045228a2013-06-23 11:00:16 +000023225
cristy501c8042011-05-26 17:46:28 +000023226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
23227$as_echo_n "checking for long long int... " >&6; }
23228if ${ac_cv_type_long_long_int+:} false; then :
23229 $as_echo_n "(cached) " >&6
23230else
cristy501c8042011-05-26 17:46:28 +000023231 ac_cv_type_long_long_int=yes
cristy045228a2013-06-23 11:00:16 +000023232 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
cristy5ed9c6e2013-07-14 21:20:31 +000023233 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
23234 if test $ac_cv_type_long_long_int = yes; then
23235 if test "$cross_compiling" = yes; then :
cristy045228a2013-06-23 11:00:16 +000023236 :
cristy501c8042011-05-26 17:46:28 +000023237else
23238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23239/* end confdefs.h. */
23240#include <limits.h>
cristy5ed9c6e2013-07-14 21:20:31 +000023241 #ifndef LLONG_MAX
23242 # define HALF \
23243 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
23244 # define LLONG_MAX (HALF - 1 + HALF)
23245 #endif
cristy501c8042011-05-26 17:46:28 +000023246int
23247main ()
23248{
23249long long int n = 1;
cristy5ed9c6e2013-07-14 21:20:31 +000023250 int i;
23251 for (i = 0; ; i++)
23252 {
23253 long long int m = n << i;
23254 if (m >> i != n)
23255 return 1;
23256 if (LLONG_MAX / 2 < m)
23257 break;
23258 }
23259 return 0;
cristy501c8042011-05-26 17:46:28 +000023260 ;
23261 return 0;
23262}
23263_ACEOF
23264if ac_fn_c_try_run "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023265
cristy501c8042011-05-26 17:46:28 +000023266else
23267 ac_cv_type_long_long_int=no
23268fi
23269rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23270 conftest.$ac_objext conftest.beam conftest.$ac_ext
23271fi
23272
cristy5ed9c6e2013-07-14 21:20:31 +000023273 fi
cristy045228a2013-06-23 11:00:16 +000023274 fi
cristy501c8042011-05-26 17:46:28 +000023275fi
23276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23277$as_echo "$ac_cv_type_long_long_int" >&6; }
23278 if test $ac_cv_type_long_long_int = yes; then
23279
23280$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23281
23282 fi
23283
23284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
23285$as_echo_n "checking for mbstate_t... " >&6; }
23286if ${ac_cv_type_mbstate_t+:} false; then :
23287 $as_echo_n "(cached) " >&6
23288else
23289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23290/* end confdefs.h. */
23291$ac_includes_default
23292# include <wchar.h>
23293int
23294main ()
23295{
23296mbstate_t x; return sizeof x;
23297 ;
23298 return 0;
23299}
23300_ACEOF
23301if ac_fn_c_try_compile "$LINENO"; then :
23302 ac_cv_type_mbstate_t=yes
23303else
23304 ac_cv_type_mbstate_t=no
23305fi
23306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23307fi
23308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
23309$as_echo "$ac_cv_type_mbstate_t" >&6; }
23310 if test $ac_cv_type_mbstate_t = yes; then
23311
23312$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
23313
23314 else
23315
23316$as_echo "#define mbstate_t int" >>confdefs.h
23317
23318 fi
23319ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
23320if test "x$ac_cv_type_mode_t" = xyes; then :
23321
23322else
23323
23324cat >>confdefs.h <<_ACEOF
23325#define mode_t int
23326_ACEOF
23327
23328fi
23329
23330ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
23331if test "x$ac_cv_type_off_t" = xyes; then :
23332
23333else
23334
23335cat >>confdefs.h <<_ACEOF
23336#define off_t long int
23337_ACEOF
23338
23339fi
23340
23341ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
23342if test "x$ac_cv_type_pid_t" = xyes; then :
23343
23344else
23345
23346cat >>confdefs.h <<_ACEOF
23347#define pid_t int
23348_ACEOF
23349
23350fi
23351
23352ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
23353if test "x$ac_cv_type_size_t" = xyes; then :
23354
23355else
23356
23357cat >>confdefs.h <<_ACEOF
23358#define size_t unsigned int
23359_ACEOF
23360
23361fi
23362
23363ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23364if test "x$ac_cv_type_ssize_t" = xyes; then :
23365
23366else
23367
23368cat >>confdefs.h <<_ACEOF
23369#define ssize_t int
23370_ACEOF
23371
23372fi
23373
23374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
23375$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
23376if ${ac_cv_type_uid_t+:} false; then :
23377 $as_echo_n "(cached) " >&6
23378else
23379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23380/* end confdefs.h. */
23381#include <sys/types.h>
23382
23383_ACEOF
23384if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23385 $EGREP "uid_t" >/dev/null 2>&1; then :
23386 ac_cv_type_uid_t=yes
23387else
23388 ac_cv_type_uid_t=no
23389fi
23390rm -f conftest*
23391
23392fi
23393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
23394$as_echo "$ac_cv_type_uid_t" >&6; }
23395if test $ac_cv_type_uid_t = no; then
23396
23397$as_echo "#define uid_t int" >>confdefs.h
23398
23399
23400$as_echo "#define gid_t int" >>confdefs.h
23401
23402fi
23403
23404ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
23405case $ac_cv_c_uint8_t in #(
23406 no|yes) ;; #(
23407 *)
23408
23409$as_echo "#define _UINT8_T 1" >>confdefs.h
23410
23411
23412cat >>confdefs.h <<_ACEOF
23413#define uint8_t $ac_cv_c_uint8_t
23414_ACEOF
23415;;
23416 esac
23417
23418ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
23419case $ac_cv_c_uint16_t in #(
23420 no|yes) ;; #(
23421 *)
23422
23423
23424cat >>confdefs.h <<_ACEOF
23425#define uint16_t $ac_cv_c_uint16_t
23426_ACEOF
23427;;
23428 esac
23429
23430ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
23431case $ac_cv_c_uint32_t in #(
23432 no|yes) ;; #(
23433 *)
23434
23435$as_echo "#define _UINT32_T 1" >>confdefs.h
23436
23437
23438cat >>confdefs.h <<_ACEOF
23439#define uint32_t $ac_cv_c_uint32_t
23440_ACEOF
23441;;
23442 esac
23443
23444ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
23445case $ac_cv_c_uint64_t in #(
23446 no|yes) ;; #(
23447 *)
23448
23449$as_echo "#define _UINT64_T 1" >>confdefs.h
23450
23451
23452cat >>confdefs.h <<_ACEOF
23453#define uint64_t $ac_cv_c_uint64_t
23454_ACEOF
23455;;
23456 esac
23457
23458
cristy501c8042011-05-26 17:46:28 +000023459
23460 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
23461if test "x$ac_cv_type_uintmax_t" = xyes; then :
23462
23463$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
23464
23465else
23466 test $ac_cv_type_unsigned_long_long_int = yes \
23467 && ac_type='unsigned long long int' \
23468 || ac_type='unsigned long int'
23469
23470cat >>confdefs.h <<_ACEOF
23471#define uintmax_t $ac_type
23472_ACEOF
23473
23474fi
23475
23476
23477
23478 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23479if test "x$ac_cv_type_uintptr_t" = xyes; then :
23480
23481$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
23482
23483else
23484 for ac_type in 'unsigned int' 'unsigned long int' \
23485 'unsigned long long int'; do
23486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23487/* end confdefs.h. */
23488$ac_includes_default
23489int
23490main ()
23491{
23492static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000023493test_array [0] = 0;
23494return test_array [0];
cristy501c8042011-05-26 17:46:28 +000023495
23496 ;
23497 return 0;
23498}
23499_ACEOF
23500if ac_fn_c_try_compile "$LINENO"; then :
23501
23502cat >>confdefs.h <<_ACEOF
23503#define uintptr_t $ac_type
23504_ACEOF
23505
23506 ac_type=
23507fi
23508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23509 test -z "$ac_type" && break
23510 done
23511fi
23512
23513
23514
23515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23516$as_echo_n "checking for unsigned long long int... " >&6; }
23517if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23518 $as_echo_n "(cached) " >&6
23519else
cristy045228a2013-06-23 11:00:16 +000023520 ac_cv_type_unsigned_long_long_int=yes
23521 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
23522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000023523/* end confdefs.h. */
23524
23525 /* For now, do not test the preprocessor; as of 2007 there are too many
cristy5ed9c6e2013-07-14 21:20:31 +000023526 implementations with broken preprocessors. Perhaps this can
23527 be revisited in 2012. In the meantime, code should not expect
23528 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000023529 /* Test literals. */
23530 long long int ll = 9223372036854775807ll;
23531 long long int nll = -9223372036854775807LL;
23532 unsigned long long int ull = 18446744073709551615ULL;
23533 /* Test constant expressions. */
23534 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristy5ed9c6e2013-07-14 21:20:31 +000023535 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023536 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristy5ed9c6e2013-07-14 21:20:31 +000023537 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023538 int i = 63;
23539int
23540main ()
23541{
23542/* Test availability of runtime routines for shift and division. */
23543 long long int llmax = 9223372036854775807ll;
23544 unsigned long long int ullmax = 18446744073709551615ull;
23545 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristy5ed9c6e2013-07-14 21:20:31 +000023546 | (llmax / ll) | (llmax % ll)
23547 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23548 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000023549 ;
23550 return 0;
23551}
23552
23553_ACEOF
23554if ac_fn_c_try_link "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023555
cristy501c8042011-05-26 17:46:28 +000023556else
23557 ac_cv_type_unsigned_long_long_int=no
23558fi
23559rm -f core conftest.err conftest.$ac_objext \
23560 conftest$ac_exeext conftest.$ac_ext
cristy045228a2013-06-23 11:00:16 +000023561 fi
cristy501c8042011-05-26 17:46:28 +000023562fi
23563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23564$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23565 if test $ac_cv_type_unsigned_long_long_int = yes; then
23566
23567$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23568
23569 fi
23570
23571
cristyfec31822013-05-23 12:32:12 +000023572# Float_t and double_t are intended to be the the most efficient type.
23573ac_fn_c_check_type "$LINENO" "float_t" "ac_cv_type_float_t" "#include <math.h>
23574"
23575if test "x$ac_cv_type_float_t" = xyes; then :
23576
23577cat >>confdefs.h <<_ACEOF
23578#define HAVE_FLOAT_T 1
23579_ACEOF
23580
23581
23582fi
23583
23584ac_fn_c_check_type "$LINENO" "double_t" "ac_cv_type_double_t" "#include <math.h>
23585"
23586if test "x$ac_cv_type_double_t" = xyes; then :
23587
23588cat >>confdefs.h <<_ACEOF
23589#define HAVE_DOUBLE_T 1
23590_ACEOF
23591
23592
23593fi
23594
23595# The cast to long int works around a bug in the HP C Compiler
23596# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23597# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23598# This bug is HP SR number 8606223364.
23599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float_t" >&5
23600$as_echo_n "checking size of float_t... " >&6; }
23601if ${ac_cv_sizeof_float_t+:} false; then :
23602 $as_echo_n "(cached) " >&6
23603else
23604 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float_t))" "ac_cv_sizeof_float_t" "#include <math.h>
23605"; then :
23606
23607else
23608 if test "$ac_cv_type_float_t" = yes; then
23609 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23610$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23611as_fn_error 77 "cannot compute sizeof (float_t)
23612See \`config.log' for more details" "$LINENO" 5; }
23613 else
23614 ac_cv_sizeof_float_t=0
23615 fi
23616fi
23617
23618fi
23619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float_t" >&5
23620$as_echo "$ac_cv_sizeof_float_t" >&6; }
23621
23622
23623
23624cat >>confdefs.h <<_ACEOF
23625#define SIZEOF_FLOAT_T $ac_cv_sizeof_float_t
23626_ACEOF
23627
23628
23629# The cast to long int works around a bug in the HP C Compiler
23630# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23631# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23632# This bug is HP SR number 8606223364.
23633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double_t" >&5
23634$as_echo_n "checking size of double_t... " >&6; }
23635if ${ac_cv_sizeof_double_t+:} false; then :
23636 $as_echo_n "(cached) " >&6
23637else
23638 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double_t))" "ac_cv_sizeof_double_t" "#include <math.h>
23639"; then :
23640
23641else
23642 if test "$ac_cv_type_double_t" = yes; then
23643 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23644$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23645as_fn_error 77 "cannot compute sizeof (double_t)
23646See \`config.log' for more details" "$LINENO" 5; }
23647 else
23648 ac_cv_sizeof_double_t=0
23649 fi
23650fi
23651
23652fi
23653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double_t" >&5
23654$as_echo "$ac_cv_sizeof_double_t" >&6; }
23655
23656
23657
23658cat >>confdefs.h <<_ACEOF
23659#define SIZEOF_DOUBLE_T $ac_cv_sizeof_double_t
23660_ACEOF
23661
23662
23663
cristy9b86f202012-11-28 21:55:35 +000023664# Get size of float, double and long double for comparaison.
23665# The cast to long int works around a bug in the HP C Compiler
23666# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23667# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23668# This bug is HP SR number 8606223364.
23669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
23670$as_echo_n "checking size of float... " >&6; }
23671if ${ac_cv_sizeof_float+:} false; then :
23672 $as_echo_n "(cached) " >&6
23673else
23674 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
23675
23676else
23677 if test "$ac_cv_type_float" = yes; then
23678 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23679$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23680as_fn_error 77 "cannot compute sizeof (float)
23681See \`config.log' for more details" "$LINENO" 5; }
23682 else
23683 ac_cv_sizeof_float=0
23684 fi
23685fi
23686
23687fi
23688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
23689$as_echo "$ac_cv_sizeof_float" >&6; }
23690
23691
23692
23693cat >>confdefs.h <<_ACEOF
23694#define SIZEOF_FLOAT $ac_cv_sizeof_float
23695_ACEOF
23696
23697
23698# The cast to long int works around a bug in the HP C Compiler
23699# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23700# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23701# This bug is HP SR number 8606223364.
23702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
23703$as_echo_n "checking size of double... " >&6; }
23704if ${ac_cv_sizeof_double+:} false; then :
23705 $as_echo_n "(cached) " >&6
23706else
23707 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
23708
23709else
23710 if test "$ac_cv_type_double" = yes; then
23711 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23712$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23713as_fn_error 77 "cannot compute sizeof (double)
23714See \`config.log' for more details" "$LINENO" 5; }
23715 else
23716 ac_cv_sizeof_double=0
23717 fi
23718fi
23719
23720fi
23721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
23722$as_echo "$ac_cv_sizeof_double" >&6; }
23723
23724
23725
23726cat >>confdefs.h <<_ACEOF
23727#define SIZEOF_DOUBLE $ac_cv_sizeof_double
23728_ACEOF
23729
23730
cristy9e2b6242014-03-25 11:49:41 +000023731# The cast to long int works around a bug in the HP C Compiler
cristyfec31822013-05-23 12:32:12 +000023732# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23733# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23734# This bug is HP SR number 8606223364.
23735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
23736$as_echo_n "checking size of long double... " >&6; }
23737if ${ac_cv_sizeof_long_double+:} false; then :
23738 $as_echo_n "(cached) " >&6
23739else
23740 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
23741
23742else
23743 if test "$ac_cv_type_long_double" = yes; then
23744 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23745$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23746as_fn_error 77 "cannot compute sizeof (long double)
23747See \`config.log' for more details" "$LINENO" 5; }
23748 else
23749 ac_cv_sizeof_long_double=0
23750 fi
23751fi
23752
23753fi
23754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
23755$as_echo "$ac_cv_sizeof_long_double" >&6; }
23756
23757
23758
23759cat >>confdefs.h <<_ACEOF
23760#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
23761_ACEOF
23762
23763
cristyf0cf9a22012-10-24 12:05:01 +000023764
cristy3ed852e2009-09-05 21:47:34 +000023765# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
23766# The cast to long int works around a bug in the HP C Compiler
23767# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23768# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23769# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023771$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023772if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023773 $as_echo_n "(cached) " >&6
23774else
cristy8b350f62009-11-15 23:12:43 +000023775 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 +000023776
cristy3ed852e2009-09-05 21:47:34 +000023777else
cristy8b350f62009-11-15 23:12:43 +000023778 if test "$ac_cv_type_signed_short" = yes; then
23779 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023780$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023781as_fn_error 77 "cannot compute sizeof (signed short)
23782See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023783 else
23784 ac_cv_sizeof_signed_short=0
23785 fi
23786fi
cristy8b350f62009-11-15 23:12:43 +000023787
cristy3ed852e2009-09-05 21:47:34 +000023788fi
cristy8b350f62009-11-15 23:12:43 +000023789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023790$as_echo "$ac_cv_sizeof_signed_short" >&6; }
23791
23792
23793
23794cat >>confdefs.h <<_ACEOF
23795#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
23796_ACEOF
23797
23798
23799
23800# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
23801# The cast to long int works around a bug in the HP C Compiler
23802# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23803# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23804# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023806$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023807if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023808 $as_echo_n "(cached) " >&6
23809else
cristy8b350f62009-11-15 23:12:43 +000023810 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 +000023811
cristy3ed852e2009-09-05 21:47:34 +000023812else
cristy8b350f62009-11-15 23:12:43 +000023813 if test "$ac_cv_type_unsigned_short" = yes; then
23814 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023815$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023816as_fn_error 77 "cannot compute sizeof (unsigned short)
23817See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023818 else
23819 ac_cv_sizeof_unsigned_short=0
23820 fi
23821fi
cristy8b350f62009-11-15 23:12:43 +000023822
cristy3ed852e2009-09-05 21:47:34 +000023823fi
cristy8b350f62009-11-15 23:12:43 +000023824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023825$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
23826
23827
23828
23829cat >>confdefs.h <<_ACEOF
23830#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
23831_ACEOF
23832
23833
23834
23835# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
23836# The cast to long int works around a bug in the HP C Compiler
23837# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23838# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23839# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023841$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023842if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023843 $as_echo_n "(cached) " >&6
23844else
cristy8b350f62009-11-15 23:12:43 +000023845 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 +000023846
cristy3ed852e2009-09-05 21:47:34 +000023847else
cristy8b350f62009-11-15 23:12:43 +000023848 if test "$ac_cv_type_signed_int" = yes; then
23849 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023850$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023851as_fn_error 77 "cannot compute sizeof (signed int)
23852See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023853 else
23854 ac_cv_sizeof_signed_int=0
23855 fi
23856fi
cristy8b350f62009-11-15 23:12:43 +000023857
cristy3ed852e2009-09-05 21:47:34 +000023858fi
cristy8b350f62009-11-15 23:12:43 +000023859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023860$as_echo "$ac_cv_sizeof_signed_int" >&6; }
23861
23862
23863
23864cat >>confdefs.h <<_ACEOF
23865#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
23866_ACEOF
23867
23868
23869
23870# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
23871# The cast to long int works around a bug in the HP C Compiler
23872# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23873# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23874# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023876$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023877if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023878 $as_echo_n "(cached) " >&6
23879else
cristy8b350f62009-11-15 23:12:43 +000023880 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 +000023881
cristy3ed852e2009-09-05 21:47:34 +000023882else
cristy8b350f62009-11-15 23:12:43 +000023883 if test "$ac_cv_type_unsigned_int" = yes; then
23884 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023885$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023886as_fn_error 77 "cannot compute sizeof (unsigned int)
23887See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023888 else
23889 ac_cv_sizeof_unsigned_int=0
23890 fi
23891fi
cristy8b350f62009-11-15 23:12:43 +000023892
cristy3ed852e2009-09-05 21:47:34 +000023893fi
cristy8b350f62009-11-15 23:12:43 +000023894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023895$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
23896
23897
23898
23899cat >>confdefs.h <<_ACEOF
23900#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
23901_ACEOF
23902
23903
23904
23905# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
23906# The cast to long int works around a bug in the HP C Compiler
23907# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23908# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23909# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023911$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023912if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023913 $as_echo_n "(cached) " >&6
23914else
cristy8b350f62009-11-15 23:12:43 +000023915 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 +000023916
cristy3ed852e2009-09-05 21:47:34 +000023917else
cristy8b350f62009-11-15 23:12:43 +000023918 if test "$ac_cv_type_signed_long" = yes; then
23919 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023920$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023921as_fn_error 77 "cannot compute sizeof (signed long)
23922See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023923 else
23924 ac_cv_sizeof_signed_long=0
23925 fi
23926fi
cristy8b350f62009-11-15 23:12:43 +000023927
cristy3ed852e2009-09-05 21:47:34 +000023928fi
cristy8b350f62009-11-15 23:12:43 +000023929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023930$as_echo "$ac_cv_sizeof_signed_long" >&6; }
23931
23932
23933
23934cat >>confdefs.h <<_ACEOF
23935#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
23936_ACEOF
23937
23938
23939
23940# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
23941# The cast to long int works around a bug in the HP C Compiler
23942# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23943# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23944# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023946$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023947if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023948 $as_echo_n "(cached) " >&6
23949else
cristy8b350f62009-11-15 23:12:43 +000023950 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 +000023951
cristy3ed852e2009-09-05 21:47:34 +000023952else
cristy8b350f62009-11-15 23:12:43 +000023953 if test "$ac_cv_type_unsigned_long" = yes; then
23954 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023955$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023956as_fn_error 77 "cannot compute sizeof (unsigned long)
23957See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023958 else
23959 ac_cv_sizeof_unsigned_long=0
23960 fi
23961fi
cristy8b350f62009-11-15 23:12:43 +000023962
cristy3ed852e2009-09-05 21:47:34 +000023963fi
cristy8b350f62009-11-15 23:12:43 +000023964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023965$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
23966
23967
23968
23969cat >>confdefs.h <<_ACEOF
23970#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
23971_ACEOF
23972
23973
23974
23975# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
23976# 'signed long long' is not supported then the value defined is zero.
23977# The cast to long int works around a bug in the HP C Compiler
23978# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23979# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23980# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023982$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023983if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023984 $as_echo_n "(cached) " >&6
23985else
cristy8b350f62009-11-15 23:12:43 +000023986 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 +000023987
cristy3ed852e2009-09-05 21:47:34 +000023988else
cristy8b350f62009-11-15 23:12:43 +000023989 if test "$ac_cv_type_signed_long_long" = yes; then
23990 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023991$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023992as_fn_error 77 "cannot compute sizeof (signed long long)
23993See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023994 else
23995 ac_cv_sizeof_signed_long_long=0
23996 fi
23997fi
cristy8b350f62009-11-15 23:12:43 +000023998
cristy3ed852e2009-09-05 21:47:34 +000023999fi
cristy8b350f62009-11-15 23:12:43 +000024000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024001$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
24002
24003
24004
24005cat >>confdefs.h <<_ACEOF
24006#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
24007_ACEOF
24008
24009
24010
24011# Obtain size of a 'unsigned long long' and define as
24012# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
24013# supported then the value defined is zero.
24014# The cast to long int works around a bug in the HP C Compiler
24015# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24016# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24017# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024019$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024020if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024021 $as_echo_n "(cached) " >&6
24022else
cristy8b350f62009-11-15 23:12:43 +000024023 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 +000024024
cristy3ed852e2009-09-05 21:47:34 +000024025else
cristy8b350f62009-11-15 23:12:43 +000024026 if test "$ac_cv_type_unsigned_long_long" = yes; then
24027 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024028$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024029as_fn_error 77 "cannot compute sizeof (unsigned long long)
24030See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024031 else
24032 ac_cv_sizeof_unsigned_long_long=0
24033 fi
24034fi
cristy8b350f62009-11-15 23:12:43 +000024035
cristy3ed852e2009-09-05 21:47:34 +000024036fi
cristy8b350f62009-11-15 23:12:43 +000024037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024038$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
24039
24040
24041
24042cat >>confdefs.h <<_ACEOF
24043#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
24044_ACEOF
24045
24046
24047
cristyfec31822013-05-23 12:32:12 +000024048# Obtain size of off_t and define as SIZEOF_OFF_T
24049# The cast to long int works around a bug in the HP C Compiler
24050# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24051# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24052# This bug is HP SR number 8606223364.
24053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
24054$as_echo_n "checking size of off_t... " >&6; }
24055if ${ac_cv_sizeof_off_t+:} false; then :
24056 $as_echo_n "(cached) " >&6
24057else
24058 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
24059
24060else
24061 if test "$ac_cv_type_off_t" = yes; then
24062 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24063$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24064as_fn_error 77 "cannot compute sizeof (off_t)
24065See \`config.log' for more details" "$LINENO" 5; }
24066 else
24067 ac_cv_sizeof_off_t=0
24068 fi
24069fi
24070
24071fi
24072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
24073$as_echo "$ac_cv_sizeof_off_t" >&6; }
24074
24075
24076
24077cat >>confdefs.h <<_ACEOF
24078#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
24079_ACEOF
24080
24081
24082
24083# Obtain size of size_t and define as SIZEOF_SIZE_T
24084# The cast to long int works around a bug in the HP C Compiler
24085# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24086# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24087# This bug is HP SR number 8606223364.
24088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
24089$as_echo_n "checking size of size_t... " >&6; }
24090if ${ac_cv_sizeof_size_t+:} false; then :
24091 $as_echo_n "(cached) " >&6
24092else
24093 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
24094
24095else
24096 if test "$ac_cv_type_size_t" = yes; then
24097 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24098$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24099as_fn_error 77 "cannot compute sizeof (size_t)
24100See \`config.log' for more details" "$LINENO" 5; }
24101 else
24102 ac_cv_sizeof_size_t=0
24103 fi
24104fi
24105
24106fi
24107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
24108$as_echo "$ac_cv_sizeof_size_t" >&6; }
24109
24110
24111
24112cat >>confdefs.h <<_ACEOF
24113#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
24114_ACEOF
24115
24116
24117
24118# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
24119# The cast to long int works around a bug in the HP C Compiler
24120# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24121# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24122# This bug is HP SR number 8606223364.
24123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
24124$as_echo_n "checking size of ssize_t... " >&6; }
24125if ${ac_cv_sizeof_ssize_t+:} false; then :
24126 $as_echo_n "(cached) " >&6
24127else
24128 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
24129
24130else
24131 if test "$ac_cv_type_ssize_t" = yes; then
24132 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24133$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24134as_fn_error 77 "cannot compute sizeof (ssize_t)
24135See \`config.log' for more details" "$LINENO" 5; }
24136 else
24137 ac_cv_sizeof_ssize_t=0
24138 fi
24139fi
24140
24141fi
24142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
24143$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
24144
24145
24146
24147cat >>confdefs.h <<_ACEOF
24148#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
24149_ACEOF
24150
24151
24152
cristy3ed852e2009-09-05 21:47:34 +000024153# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
24154# The cast to long int works around a bug in the HP C Compiler
24155# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24156# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24157# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000024159$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024160if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024161 $as_echo_n "(cached) " >&6
24162else
cristy8b350f62009-11-15 23:12:43 +000024163 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 +000024164
cristy3ed852e2009-09-05 21:47:34 +000024165else
cristy8b350f62009-11-15 23:12:43 +000024166 if test "$ac_cv_type_unsigned_intp" = yes; then
24167 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024168$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024169as_fn_error 77 "cannot compute sizeof (unsigned int*)
24170See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024171 else
24172 ac_cv_sizeof_unsigned_intp=0
24173 fi
24174fi
cristy8b350f62009-11-15 23:12:43 +000024175
cristy3ed852e2009-09-05 21:47:34 +000024176fi
cristy8b350f62009-11-15 23:12:43 +000024177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024178$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
24179
24180
24181
24182cat >>confdefs.h <<_ACEOF
24183#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
24184_ACEOF
24185
24186
24187
24188#
24189# Compute sized types for current CPU and compiler options.
24190#
24191
cristy8b350f62009-11-15 23:12:43 +000024192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024193$as_echo_n "checking for signed 8-bit type... " >&6; }
24194INT8_T='signed char'
cristyad38abe2012-12-23 23:03:21 +000024195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
24196$as_echo "$INT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024197
24198
cristy8b350f62009-11-15 23:12:43 +000024199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024200$as_echo_n "checking for unsigned 8-bit type... " >&6; }
24201UINT8_T='unsigned char'
cristyad38abe2012-12-23 23:03:21 +000024202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
24203$as_echo "$UINT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024204
24205
cristy8b350f62009-11-15 23:12:43 +000024206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024207$as_echo_n "checking for signed 16-bit type... " >&6; }
24208INT16_T='signed short'
cristyad38abe2012-12-23 23:03:21 +000024209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
24210$as_echo "$INT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024211
24212
cristy8b350f62009-11-15 23:12:43 +000024213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024214$as_echo_n "checking for unsigned 16-bit type... " >&6; }
24215UINT16_T='unsigned short'
cristyad38abe2012-12-23 23:03:21 +000024216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
24217$as_echo "$UINT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024218
24219
cristy8b350f62009-11-15 23:12:43 +000024220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024221$as_echo_n "checking for signed 32-bit type... " >&6; }
24222INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024223INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024224if test $ac_cv_sizeof_signed_int -eq 4; then
24225 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000024226 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000024227elif test $ac_cv_sizeof_signed_long -eq 4; then
24228 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000024229 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024230fi
cristyad38abe2012-12-23 23:03:21 +000024231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
24232$as_echo "$INT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024233
24234
cristy6d5e20f2011-04-25 13:48:54 +000024235
cristy8b350f62009-11-15 23:12:43 +000024236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024237$as_echo_n "checking for unsigned 32-bit type... " >&6; }
24238UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024239UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024240if test $ac_cv_sizeof_unsigned_int -eq 4; then
24241 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000024242 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000024243elif test $ac_cv_sizeof_unsigned_long -eq 4; then
24244 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024245 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024246fi
cristyad38abe2012-12-23 23:03:21 +000024247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
24248$as_echo "$UINT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024249
24250
cristy6d5e20f2011-04-25 13:48:54 +000024251
cristy8b350f62009-11-15 23:12:43 +000024252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024253$as_echo_n "checking for signed 64-bit type... " >&6; }
24254INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024255INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024256if test $ac_cv_sizeof_signed_long -eq 8; then
24257 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000024258 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024259elif test $ac_cv_sizeof_signed_long_long -eq 8; then
24260 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000024261 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024262fi
cristy3a99dcf2011-12-17 01:29:40 +000024263case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000024264 mingw* )
24265 INT64_F='"I64"'
24266 ;;
24267esac
cristyad38abe2012-12-23 23:03:21 +000024268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
24269$as_echo "$INT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024270
24271
cristy6d5e20f2011-04-25 13:48:54 +000024272
cristy8b350f62009-11-15 23:12:43 +000024273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024274$as_echo_n "checking for unsigned 64-bit type... " >&6; }
24275UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024276UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024277if test $ac_cv_sizeof_unsigned_long -eq 8; then
24278 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024279 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024280elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
24281 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000024282 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024283fi
cristy3a99dcf2011-12-17 01:29:40 +000024284case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000024285 mingw* )
24286 UINT64_F='"I64"'
24287 ;;
24288esac
cristyad38abe2012-12-23 23:03:21 +000024289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
24290$as_echo "$UINT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024291
24292
cristy6d5e20f2011-04-25 13:48:54 +000024293
cristy8b350f62009-11-15 23:12:43 +000024294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024295$as_echo_n "checking for unsigned maximum type... " >&6; }
24296UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024297UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024298if test "$UINT64_T" != 'none'; then
24299 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000024300 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000024301elif test "$UINT32_T" != 'none'; then
24302 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000024303 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000024304fi
cristyad38abe2012-12-23 23:03:21 +000024305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
24306$as_echo "$UINTMAX_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024307
24308
cristy6d5e20f2011-04-25 13:48:54 +000024309
cristy8b350f62009-11-15 23:12:43 +000024310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024311$as_echo_n "checking for pointer difference type... " >&6; }
24312UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024313UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024314if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
24315 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024316 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024317elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
24318 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000024319 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024320fi
cristyad38abe2012-12-23 23:03:21 +000024321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
24322$as_echo "$UINTPTR_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024323
24324
cristy6d5e20f2011-04-25 13:48:54 +000024325
cristy8b350f62009-11-15 23:12:43 +000024326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024327$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024328cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024329/* end confdefs.h. */
24330
24331int
24332main ()
24333{
24334{ const char *func = __func__; return(func != 0 ? 0 : 1); }
24335 ;
24336 return 0;
24337}
24338_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024339if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000024340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24341$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024342else
cristyad38abe2012-12-23 23:03:21 +000024343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24344$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024346$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024348/* end confdefs.h. */
24349
24350int
24351main ()
24352{
24353{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
24354 ;
24355 return 0;
24356}
24357_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024358if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000024359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24360$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024361
cristy8b350f62009-11-15 23:12:43 +000024362$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024363
24364else
cristyad38abe2012-12-23 23:03:21 +000024365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24366$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024367
cristy8b350f62009-11-15 23:12:43 +000024368$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024369
24370fi
cristy3ed852e2009-09-05 21:47:34 +000024371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24372fi
cristy3ed852e2009-09-05 21:47:34 +000024373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24374
24375########
24376#
24377# Check for functions
24378#
24379########
cristy8b350f62009-11-15 23:12:43 +000024380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024381$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024382if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024383 $as_echo_n "(cached) " >&6
24384else
cristy8b350f62009-11-15 23:12:43 +000024385 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024386 ac_cv_func_closedir_void=yes
24387else
cristy8b350f62009-11-15 23:12:43 +000024388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024389/* end confdefs.h. */
24390$ac_includes_default
24391#include <$ac_header_dirent>
24392#ifndef __cplusplus
24393int closedir ();
24394#endif
24395
24396int
24397main ()
24398{
24399return closedir (opendir (".")) != 0;
24400 ;
24401 return 0;
24402}
24403_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024404if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024405 ac_cv_func_closedir_void=no
24406else
cristy8b350f62009-11-15 23:12:43 +000024407 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000024408fi
cristy8b350f62009-11-15 23:12:43 +000024409rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24410 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024411fi
24412
cristy3ed852e2009-09-05 21:47:34 +000024413fi
cristy8b350f62009-11-15 23:12:43 +000024414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024415$as_echo "$ac_cv_func_closedir_void" >&6; }
24416if test $ac_cv_func_closedir_void = yes; then
24417
cristy8b350f62009-11-15 23:12:43 +000024418$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024419
24420fi
24421
cristycd4c5312009-11-22 01:19:08 +000024422
24423
24424
24425 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000024426do :
24427 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000024428ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24429"
cristy98dddb52010-11-04 00:30:15 +000024430if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024431 cat >>confdefs.h <<_ACEOF
24432#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24433_ACEOF
24434
24435fi
24436
24437done
24438
cristycd4c5312009-11-22 01:19:08 +000024439
24440
24441
24442
24443
24444
24445
cristy3ed852e2009-09-05 21:47:34 +000024446for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000024447do :
24448 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024449if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024450 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024451#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000024452_ACEOF
24453
24454fi
24455done
24456
cristy8b350f62009-11-15 23:12:43 +000024457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000024458$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024459if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024460 $as_echo_n "(cached) " >&6
24461else
cristy8b350f62009-11-15 23:12:43 +000024462 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024463 ac_cv_func_mmap_fixed_mapped=no
24464else
cristy8b350f62009-11-15 23:12:43 +000024465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024466/* end confdefs.h. */
24467$ac_includes_default
24468/* malloc might have been renamed as rpl_malloc. */
24469#undef malloc
24470
24471/* Thanks to Mike Haertel and Jim Avera for this test.
24472 Here is a matrix of mmap possibilities:
24473 mmap private not fixed
24474 mmap private fixed at somewhere currently unmapped
24475 mmap private fixed at somewhere already mapped
24476 mmap shared not fixed
24477 mmap shared fixed at somewhere currently unmapped
24478 mmap shared fixed at somewhere already mapped
24479 For private mappings, we should verify that changes cannot be read()
24480 back from the file, nor mmap's back from the file at a different
24481 address. (There have been systems where private was not correctly
24482 implemented like the infamous i386 svr4.0, and systems where the
24483 VM page cache was not coherent with the file system buffer cache
24484 like early versions of FreeBSD and possibly contemporary NetBSD.)
24485 For shared mappings, we should conversely verify that changes get
24486 propagated back to all the places they're supposed to be.
24487
24488 Grep wants private fixed already mapped.
24489 The main things grep needs to know about mmap are:
24490 * does it exist and is it safe to write into the mmap'd area
24491 * how to use it (BSD variants) */
24492
24493#include <fcntl.h>
24494#include <sys/mman.h>
24495
24496#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24497char *malloc ();
24498#endif
24499
24500/* This mess was copied from the GNU getpagesize.h. */
24501#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000024502# ifdef _SC_PAGESIZE
24503# define getpagesize() sysconf(_SC_PAGESIZE)
24504# else /* no _SC_PAGESIZE */
24505# ifdef HAVE_SYS_PARAM_H
24506# include <sys/param.h>
24507# ifdef EXEC_PAGESIZE
24508# define getpagesize() EXEC_PAGESIZE
24509# else /* no EXEC_PAGESIZE */
24510# ifdef NBPG
24511# define getpagesize() NBPG * CLSIZE
24512# ifndef CLSIZE
24513# define CLSIZE 1
24514# endif /* no CLSIZE */
24515# else /* no NBPG */
24516# ifdef NBPC
24517# define getpagesize() NBPC
24518# else /* no NBPC */
24519# ifdef PAGESIZE
24520# define getpagesize() PAGESIZE
24521# endif /* PAGESIZE */
24522# endif /* no NBPC */
24523# endif /* no NBPG */
24524# endif /* no EXEC_PAGESIZE */
24525# else /* no HAVE_SYS_PARAM_H */
24526# define getpagesize() 8192 /* punt totally */
24527# endif /* no HAVE_SYS_PARAM_H */
24528# endif /* no _SC_PAGESIZE */
24529
24530#endif /* no HAVE_GETPAGESIZE */
24531
24532int
24533main ()
24534{
24535 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000024536 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000024537 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000024538 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000024539
24540 pagesize = getpagesize ();
24541
24542 /* First, make a file with some known garbage in it. */
24543 data = (char *) malloc (pagesize);
24544 if (!data)
24545 return 1;
24546 for (i = 0; i < pagesize; ++i)
24547 *(data + i) = rand ();
24548 umask (0);
24549 fd = creat ("conftest.mmap", 0600);
24550 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024551 return 2;
cristy3ed852e2009-09-05 21:47:34 +000024552 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024553 return 3;
cristy3ed852e2009-09-05 21:47:34 +000024554 close (fd);
24555
cristycd4c5312009-11-22 01:19:08 +000024556 /* Next, check that the tail of a page is zero-filled. File must have
24557 non-zero length, otherwise we risk SIGBUS for entire page. */
24558 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24559 if (fd2 < 0)
24560 return 4;
cristyc54f5d42009-11-27 21:36:31 +000024561 cdata2 = "";
24562 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000024563 return 5;
cristyc54f5d42009-11-27 21:36:31 +000024564 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000024565 if (data2 == MAP_FAILED)
24566 return 6;
24567 for (i = 0; i < pagesize; ++i)
24568 if (*(data2 + i))
24569 return 7;
24570 close (fd2);
24571 if (munmap (data2, pagesize))
24572 return 8;
24573
cristy3ed852e2009-09-05 21:47:34 +000024574 /* Next, try to mmap the file at a fixed address which already has
24575 something else allocated at it. If we can, also make sure that
24576 we see the same garbage. */
24577 fd = open ("conftest.mmap", O_RDWR);
24578 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024579 return 9;
cristy3ed852e2009-09-05 21:47:34 +000024580 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24581 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000024582 return 10;
cristy3ed852e2009-09-05 21:47:34 +000024583 for (i = 0; i < pagesize; ++i)
24584 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000024585 return 11;
cristy3ed852e2009-09-05 21:47:34 +000024586
24587 /* Finally, make sure that changes to the mapped area do not
24588 percolate back to the file as seen by read(). (This is a bug on
24589 some variants of i386 svr4.0.) */
24590 for (i = 0; i < pagesize; ++i)
24591 *(data2 + i) = *(data2 + i) + 1;
24592 data3 = (char *) malloc (pagesize);
24593 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000024594 return 12;
cristy3ed852e2009-09-05 21:47:34 +000024595 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024596 return 13;
cristy3ed852e2009-09-05 21:47:34 +000024597 for (i = 0; i < pagesize; ++i)
24598 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000024599 return 14;
cristy3ed852e2009-09-05 21:47:34 +000024600 close (fd);
24601 return 0;
24602}
24603_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024604if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024605 ac_cv_func_mmap_fixed_mapped=yes
24606else
cristy8b350f62009-11-15 23:12:43 +000024607 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000024608fi
cristy8b350f62009-11-15 23:12:43 +000024609rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24610 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024611fi
24612
cristy3ed852e2009-09-05 21:47:34 +000024613fi
cristy8b350f62009-11-15 23:12:43 +000024614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000024615$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24616if test $ac_cv_func_mmap_fixed_mapped = yes; then
24617
cristy8b350f62009-11-15 23:12:43 +000024618$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024619
24620fi
cristycd4c5312009-11-22 01:19:08 +000024621rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000024622
cristy3ed852e2009-09-05 21:47:34 +000024623for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000024624do :
24625 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000024626if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024627 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024628#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000024629_ACEOF
24630
24631fi
24632
24633done
24634
cristy3ed852e2009-09-05 21:47:34 +000024635for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000024636do :
24637 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24638ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024639if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024640 cat >>confdefs.h <<_ACEOF
24641#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24642_ACEOF
24643
24644fi
24645done
24646
24647if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024649$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024650if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024651 $as_echo_n "(cached) " >&6
24652else
cristy8b350f62009-11-15 23:12:43 +000024653 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024654 ac_cv_func_fork_works=cross
24655else
cristy8b350f62009-11-15 23:12:43 +000024656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024657/* end confdefs.h. */
24658$ac_includes_default
24659int
24660main ()
24661{
24662
24663 /* By Ruediger Kuhlmann. */
24664 return fork () < 0;
24665
24666 ;
24667 return 0;
24668}
24669_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024670if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024671 ac_cv_func_fork_works=yes
24672else
cristy8b350f62009-11-15 23:12:43 +000024673 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024674fi
cristy8b350f62009-11-15 23:12:43 +000024675rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24676 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024677fi
24678
cristy3ed852e2009-09-05 21:47:34 +000024679fi
cristy8b350f62009-11-15 23:12:43 +000024680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024681$as_echo "$ac_cv_func_fork_works" >&6; }
24682
24683else
24684 ac_cv_func_fork_works=$ac_cv_func_fork
24685fi
24686if test "x$ac_cv_func_fork_works" = xcross; then
24687 case $host in
24688 *-*-amigaos* | *-*-msdosdjgpp*)
24689 # Override, as these systems have only a dummy fork() stub
24690 ac_cv_func_fork_works=no
24691 ;;
24692 *)
24693 ac_cv_func_fork_works=yes
24694 ;;
24695 esac
cristy8b350f62009-11-15 23:12:43 +000024696 { $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 +000024697$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24698fi
24699ac_cv_func_vfork_works=$ac_cv_func_vfork
24700if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024702$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024703if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024704 $as_echo_n "(cached) " >&6
24705else
cristy8b350f62009-11-15 23:12:43 +000024706 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024707 ac_cv_func_vfork_works=cross
24708else
cristy8b350f62009-11-15 23:12:43 +000024709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024710/* end confdefs.h. */
24711/* Thanks to Paul Eggert for this test. */
24712$ac_includes_default
24713#include <sys/wait.h>
24714#ifdef HAVE_VFORK_H
24715# include <vfork.h>
24716#endif
24717/* On some sparc systems, changes by the child to local and incoming
24718 argument registers are propagated back to the parent. The compiler
24719 is told about this with #include <vfork.h>, but some compilers
24720 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24721 static variable whose address is put into a register that is
24722 clobbered by the vfork. */
24723static void
24724#ifdef __cplusplus
24725sparc_address_test (int arg)
24726# else
24727sparc_address_test (arg) int arg;
24728#endif
24729{
24730 static pid_t child;
24731 if (!child) {
24732 child = vfork ();
24733 if (child < 0) {
24734 perror ("vfork");
24735 _exit(2);
24736 }
24737 if (!child) {
24738 arg = getpid();
24739 write(-1, "", 0);
24740 _exit (arg);
24741 }
24742 }
24743}
24744
24745int
24746main ()
24747{
24748 pid_t parent = getpid ();
24749 pid_t child;
24750
24751 sparc_address_test (0);
24752
24753 child = vfork ();
24754
24755 if (child == 0) {
24756 /* Here is another test for sparc vfork register problems. This
24757 test uses lots of local variables, at least as many local
24758 variables as main has allocated so far including compiler
24759 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24760 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24761 reuse the register of parent for one of the local variables,
24762 since it will think that parent can't possibly be used any more
24763 in this routine. Assigning to the local variable will thus
24764 munge parent in the parent process. */
24765 pid_t
24766 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24767 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24768 /* Convince the compiler that p..p7 are live; otherwise, it might
24769 use the same hardware register for all 8 local variables. */
24770 if (p != p1 || p != p2 || p != p3 || p != p4
24771 || p != p5 || p != p6 || p != p7)
24772 _exit(1);
24773
24774 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24775 from child file descriptors. If the child closes a descriptor
24776 before it execs or exits, this munges the parent's descriptor
24777 as well. Test for this by closing stdout in the child. */
24778 _exit(close(fileno(stdout)) != 0);
24779 } else {
24780 int status;
24781 struct stat st;
24782
24783 while (wait(&status) != child)
24784 ;
24785 return (
24786 /* Was there some problem with vforking? */
24787 child < 0
24788
24789 /* Did the child fail? (This shouldn't happen.) */
24790 || status
24791
24792 /* Did the vfork/compiler bug occur? */
24793 || parent != getpid()
24794
24795 /* Did the file descriptor bug occur? */
24796 || fstat(fileno(stdout), &st) != 0
24797 );
24798 }
24799}
24800_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024801if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024802 ac_cv_func_vfork_works=yes
24803else
cristy8b350f62009-11-15 23:12:43 +000024804 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024805fi
cristy8b350f62009-11-15 23:12:43 +000024806rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24807 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024808fi
24809
cristy3ed852e2009-09-05 21:47:34 +000024810fi
cristy8b350f62009-11-15 23:12:43 +000024811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024812$as_echo "$ac_cv_func_vfork_works" >&6; }
24813
24814fi;
24815if test "x$ac_cv_func_fork_works" = xcross; then
24816 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000024817 { $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 +000024818$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24819fi
24820
24821if test "x$ac_cv_func_vfork_works" = xyes; then
24822
cristy8b350f62009-11-15 23:12:43 +000024823$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024824
24825else
24826
cristy8b350f62009-11-15 23:12:43 +000024827$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024828
24829fi
24830if test "x$ac_cv_func_fork_works" = xyes; then
24831
cristy8b350f62009-11-15 23:12:43 +000024832$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024833
24834fi
24835
cristy8b350f62009-11-15 23:12:43 +000024836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024837$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024838if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024839 $as_echo_n "(cached) " >&6
24840else
cristy8b350f62009-11-15 23:12:43 +000024841 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024842 ac_cv_func_memcmp_working=no
24843else
cristy8b350f62009-11-15 23:12:43 +000024844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024845/* end confdefs.h. */
24846$ac_includes_default
24847int
24848main ()
24849{
24850
24851 /* Some versions of memcmp are not 8-bit clean. */
24852 char c0 = '\100', c1 = '\200', c2 = '\201';
24853 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24854 return 1;
24855
24856 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24857 or more and with at least one buffer not starting on a 4-byte boundary.
24858 William Lewis provided this test program. */
24859 {
24860 char foo[21];
24861 char bar[21];
24862 int i;
24863 for (i = 0; i < 4; i++)
24864 {
24865 char *a = foo + i;
24866 char *b = bar + i;
24867 strcpy (a, "--------01111111");
24868 strcpy (b, "--------10000000");
24869 if (memcmp (a, b, 16) >= 0)
24870 return 1;
24871 }
24872 return 0;
24873 }
24874
24875 ;
24876 return 0;
24877}
24878_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024879if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024880 ac_cv_func_memcmp_working=yes
24881else
cristy8b350f62009-11-15 23:12:43 +000024882 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000024883fi
cristy8b350f62009-11-15 23:12:43 +000024884rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24885 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024886fi
24887
cristy3ed852e2009-09-05 21:47:34 +000024888fi
cristy8b350f62009-11-15 23:12:43 +000024889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000024890$as_echo "$ac_cv_func_memcmp_working" >&6; }
24891test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24892 *" memcmp.$ac_objext "* ) ;;
24893 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24894 ;;
24895esac
24896
24897
cristy3ed852e2009-09-05 21:47:34 +000024898for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000024899do :
24900 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24901ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000024902if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024903 cat >>confdefs.h <<_ACEOF
24904#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24905_ACEOF
24906
24907fi
24908
24909done
24910
cristy8b350f62009-11-15 23:12:43 +000024911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000024912$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024913if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024914 $as_echo_n "(cached) " >&6
24915else
24916 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
24917 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
24918 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000024919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024920/* end confdefs.h. */
24921$ac_includes_default
24922#ifdef HAVE_SYS_SELECT_H
24923# include <sys/select.h>
24924#endif
24925#ifdef HAVE_SYS_SOCKET_H
24926# include <sys/socket.h>
24927#endif
24928
24929int
24930main ()
24931{
24932extern int select ($ac_arg1,
24933 $ac_arg234, $ac_arg234, $ac_arg234,
24934 $ac_arg5);
24935 ;
24936 return 0;
24937}
24938_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024939if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024940 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000024941fi
cristy3ed852e2009-09-05 21:47:34 +000024942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24943 done
24944 done
24945done
24946# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000024947: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000024948
24949fi
cristy8b350f62009-11-15 23:12:43 +000024950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000024951$as_echo "$ac_cv_func_select_args" >&6; }
24952ac_save_IFS=$IFS; IFS=','
24953set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
24954IFS=$ac_save_IFS
24955shift
24956
24957cat >>confdefs.h <<_ACEOF
24958#define SELECT_TYPE_ARG1 $1
24959_ACEOF
24960
24961
24962cat >>confdefs.h <<_ACEOF
24963#define SELECT_TYPE_ARG234 ($2)
24964_ACEOF
24965
24966
24967cat >>confdefs.h <<_ACEOF
24968#define SELECT_TYPE_ARG5 ($3)
24969_ACEOF
24970
24971rm -f conftest*
24972
cristyda16f162011-02-19 23:52:17 +000024973if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024974 $as_echo_n "(cached) " >&6
24975else
24976 ac_cv_func_setvbuf_reversed=no
24977fi
24978
24979
cristy8b350f62009-11-15 23:12:43 +000024980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000024981$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024982if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024983 $as_echo_n "(cached) " >&6
24984else
cristy8b350f62009-11-15 23:12:43 +000024985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024986/* end confdefs.h. */
24987#include <sys/types.h>
24988#include <signal.h>
24989
24990int
24991main ()
24992{
24993return *(signal (0, 0)) (0) == 1;
24994 ;
24995 return 0;
24996}
24997_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024998if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024999 ac_cv_type_signal=int
25000else
cristy8b350f62009-11-15 23:12:43 +000025001 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000025002fi
cristy3ed852e2009-09-05 21:47:34 +000025003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25004fi
cristy8b350f62009-11-15 23:12:43 +000025005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000025006$as_echo "$ac_cv_type_signal" >&6; }
25007
25008cat >>confdefs.h <<_ACEOF
25009#define RETSIGTYPE $ac_cv_type_signal
25010_ACEOF
25011
25012
cristy8b350f62009-11-15 23:12:43 +000025013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000025014$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025015if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025016 $as_echo_n "(cached) " >&6
25017else
cristy8b350f62009-11-15 23:12:43 +000025018 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025019 ac_cv_func_strtod=no
25020else
cristy8b350f62009-11-15 23:12:43 +000025021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025022/* end confdefs.h. */
25023
25024$ac_includes_default
25025#ifndef strtod
25026double strtod ();
25027#endif
25028int
25029main()
25030{
25031 {
25032 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
25033 char *string = " +69";
25034 char *term;
25035 double value;
25036 value = strtod (string, &term);
25037 if (value != 69 || term != (string + 4))
25038 return 1;
25039 }
25040
25041 {
25042 /* Under Solaris 2.4, strtod returns the wrong value for the
25043 terminating character under some conditions. */
25044 char *string = "NaN";
25045 char *term;
25046 strtod (string, &term);
25047 if (term != string && *(term - 1) == 0)
25048 return 1;
25049 }
25050 return 0;
25051}
25052
25053_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025054if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025055 ac_cv_func_strtod=yes
25056else
cristy8b350f62009-11-15 23:12:43 +000025057 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000025058fi
cristy8b350f62009-11-15 23:12:43 +000025059rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25060 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025061fi
25062
cristy3ed852e2009-09-05 21:47:34 +000025063fi
cristy8b350f62009-11-15 23:12:43 +000025064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000025065$as_echo "$ac_cv_func_strtod" >&6; }
25066if test $ac_cv_func_strtod = no; then
25067 case " $LIBOBJS " in
25068 *" strtod.$ac_objext "* ) ;;
25069 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
25070 ;;
25071esac
25072
cristy8b350f62009-11-15 23:12:43 +000025073ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000025074if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025075
cristy3ed852e2009-09-05 21:47:34 +000025076fi
25077
cristy3ed852e2009-09-05 21:47:34 +000025078if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000025079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000025080$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025081if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025082 $as_echo_n "(cached) " >&6
25083else
25084 ac_check_lib_save_LIBS=$LIBS
25085LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025086cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025087/* end confdefs.h. */
25088
25089/* Override any GCC internal prototype to avoid an error.
25090 Use char because int might match the return type of a GCC
25091 builtin and then its argument prototype would still apply. */
25092#ifdef __cplusplus
25093extern "C"
25094#endif
25095char pow ();
25096int
25097main ()
25098{
25099return pow ();
25100 ;
25101 return 0;
25102}
25103_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025104if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025105 ac_cv_lib_m_pow=yes
25106else
cristy8b350f62009-11-15 23:12:43 +000025107 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000025108fi
cristy8b350f62009-11-15 23:12:43 +000025109rm -f core conftest.err conftest.$ac_objext \
25110 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025111LIBS=$ac_check_lib_save_LIBS
25112fi
cristy8b350f62009-11-15 23:12:43 +000025113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000025114$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000025115if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025116 POW_LIB=-lm
25117else
cristy8b350f62009-11-15 23:12:43 +000025118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000025119$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
25120fi
25121
25122fi
25123
25124fi
25125
cristy7d4a1d62011-10-13 15:54:12 +000025126ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
25127if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
25128 ac_have_decl=1
25129else
25130 ac_have_decl=0
25131fi
25132
25133cat >>confdefs.h <<_ACEOF
25134#define HAVE_DECL_STRERROR_R $ac_have_decl
25135_ACEOF
25136
25137for ac_func in strerror_r
25138do :
25139 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
25140if test "x$ac_cv_func_strerror_r" = xyes; then :
25141 cat >>confdefs.h <<_ACEOF
25142#define HAVE_STRERROR_R 1
25143_ACEOF
25144
25145fi
25146done
25147
25148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
25149$as_echo_n "checking whether strerror_r returns char *... " >&6; }
25150if ${ac_cv_func_strerror_r_char_p+:} false; then :
25151 $as_echo_n "(cached) " >&6
25152else
25153
25154 ac_cv_func_strerror_r_char_p=no
25155 if test $ac_cv_have_decl_strerror_r = yes; then
25156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25157/* end confdefs.h. */
25158$ac_includes_default
25159int
25160main ()
25161{
25162
25163 char buf[100];
25164 char x = *strerror_r (0, buf, sizeof buf);
25165 char *p = strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000025166 return !p || x;
cristy7d4a1d62011-10-13 15:54:12 +000025167
25168 ;
25169 return 0;
25170}
25171_ACEOF
25172if ac_fn_c_try_compile "$LINENO"; then :
25173 ac_cv_func_strerror_r_char_p=yes
25174fi
25175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25176 else
25177 # strerror_r is not declared. Choose between
25178 # systems that have relatively inaccessible declarations for the
25179 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
25180 # former has a strerror_r that returns char*, while the latter
25181 # has a strerror_r that returns `int'.
25182 # This test should segfault on the DEC system.
25183 if test "$cross_compiling" = yes; then :
25184 :
25185else
25186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25187/* end confdefs.h. */
25188$ac_includes_default
25189 extern char *strerror_r ();
25190int
25191main ()
25192{
25193char buf[100];
25194 char x = *strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000025195 return ! isalpha (x);
cristy7d4a1d62011-10-13 15:54:12 +000025196 ;
25197 return 0;
25198}
25199_ACEOF
25200if ac_fn_c_try_run "$LINENO"; then :
25201 ac_cv_func_strerror_r_char_p=yes
25202fi
25203rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25204 conftest.$ac_objext conftest.beam conftest.$ac_ext
25205fi
25206
25207 fi
25208
25209fi
25210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
25211$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
25212if test $ac_cv_func_strerror_r_char_p = yes; then
25213
25214$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
25215
25216fi
25217
cristy3ed852e2009-09-05 21:47:34 +000025218for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000025219do :
25220 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000025221if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025222 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025223#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000025224_ACEOF
25225
cristy8b350f62009-11-15 23:12:43 +000025226ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000025227if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025228
cristy8b350f62009-11-15 23:12:43 +000025229$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025230
25231fi
25232
25233fi
25234done
25235
25236
25237
cristy161b9262010-03-20 19:34:32 +000025238#
25239# Find math library
25240#
25241MATH_LIBS=''
25242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
25243$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025244if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000025245 $as_echo_n "(cached) " >&6
25246else
25247 ac_check_lib_save_LIBS=$LIBS
25248LIBS="-lm $LIBS"
25249cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25250/* end confdefs.h. */
25251
25252/* Override any GCC internal prototype to avoid an error.
25253 Use char because int might match the return type of a GCC
25254 builtin and then its argument prototype would still apply. */
25255#ifdef __cplusplus
25256extern "C"
25257#endif
25258char sqrt ();
25259int
25260main ()
25261{
25262return sqrt ();
25263 ;
25264 return 0;
25265}
25266_ACEOF
25267if ac_fn_c_try_link "$LINENO"; then :
25268 ac_cv_lib_m_sqrt=yes
25269else
25270 ac_cv_lib_m_sqrt=no
25271fi
25272rm -f core conftest.err conftest.$ac_objext \
25273 conftest$ac_exeext conftest.$ac_ext
25274LIBS=$ac_check_lib_save_LIBS
25275fi
25276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
25277$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000025278if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000025279 MATH_LIBS="-lm"
25280fi
25281
25282LIBS="$MATH_LIBS $LIBS"
25283
25284
cristy85572162013-01-04 19:19:32 +000025285#
25286# Find socket library
25287#
cristy8a5d7f42013-01-06 15:24:33 +000025288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
25289$as_echo_n "checking for library containing gethostbyname... " >&6; }
25290if ${ac_cv_search_gethostbyname+:} false; then :
25291 $as_echo_n "(cached) " >&6
25292else
25293 ac_func_search_save_LIBS=$LIBS
25294cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25295/* end confdefs.h. */
25296
25297/* Override any GCC internal prototype to avoid an error.
25298 Use char because int might match the return type of a GCC
25299 builtin and then its argument prototype would still apply. */
25300#ifdef __cplusplus
25301extern "C"
25302#endif
25303char gethostbyname ();
25304int
25305main ()
25306{
25307return gethostbyname ();
25308 ;
25309 return 0;
25310}
25311_ACEOF
25312for ac_lib in '' resolv nsl; do
25313 if test -z "$ac_lib"; then
25314 ac_res="none required"
25315 else
25316 ac_res=-l$ac_lib
25317 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25318 fi
25319 if ac_fn_c_try_link "$LINENO"; then :
25320 ac_cv_search_gethostbyname=$ac_res
25321fi
25322rm -f core conftest.err conftest.$ac_objext \
25323 conftest$ac_exeext
25324 if ${ac_cv_search_gethostbyname+:} false; then :
25325 break
25326fi
25327done
25328if ${ac_cv_search_gethostbyname+:} false; then :
25329
25330else
25331 ac_cv_search_gethostbyname=no
25332fi
25333rm conftest.$ac_ext
25334LIBS=$ac_func_search_save_LIBS
25335fi
25336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
25337$as_echo "$ac_cv_search_gethostbyname" >&6; }
25338ac_res=$ac_cv_search_gethostbyname
25339if test "$ac_res" != no; then :
25340 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25341
25342fi
25343
cristy85572162013-01-04 19:19:32 +000025344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
25345$as_echo_n "checking for library containing socket... " >&6; }
25346if ${ac_cv_search_socket+:} false; then :
25347 $as_echo_n "(cached) " >&6
25348else
25349 ac_func_search_save_LIBS=$LIBS
25350cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25351/* end confdefs.h. */
25352
25353/* Override any GCC internal prototype to avoid an error.
25354 Use char because int might match the return type of a GCC
25355 builtin and then its argument prototype would still apply. */
25356#ifdef __cplusplus
25357extern "C"
25358#endif
25359char socket ();
25360int
25361main ()
25362{
25363return socket ();
25364 ;
25365 return 0;
25366}
25367_ACEOF
25368for ac_lib in '' socket; do
25369 if test -z "$ac_lib"; then
25370 ac_res="none required"
25371 else
25372 ac_res=-l$ac_lib
25373 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25374 fi
25375 if ac_fn_c_try_link "$LINENO"; then :
25376 ac_cv_search_socket=$ac_res
25377fi
25378rm -f core conftest.err conftest.$ac_objext \
25379 conftest$ac_exeext
25380 if ${ac_cv_search_socket+:} false; then :
25381 break
25382fi
25383done
25384if ${ac_cv_search_socket+:} false; then :
25385
25386else
25387 ac_cv_search_socket=no
25388fi
25389rm conftest.$ac_ext
25390LIBS=$ac_func_search_save_LIBS
25391fi
25392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
25393$as_echo "$ac_cv_search_socket" >&6; }
25394ac_res=$ac_cv_search_socket
25395if test "$ac_res" != no; then :
25396 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25397
cristy85572162013-01-04 19:19:32 +000025398
cristy8a5d7f42013-01-06 15:24:33 +000025399$as_echo "#define HAVE_SOCKET 1" >>confdefs.h
cristy85572162013-01-04 19:19:32 +000025400
cristy03f187e2013-01-24 00:22:19 +000025401 MAGICK_FEATURES="DPC $MAGICK_FEATURES"
cristy85572162013-01-04 19:19:32 +000025402
25403fi
25404
25405
25406for ac_func in acosh _aligned_malloc asinh atanh atoll atexit cabs carg cimag creal clock ctime_r directio _exit execvp fchmod floor fork ftime ftruncate getc_unlocked getcwd getpid getexecname getdtablesize getpagesize getrlimit getrusage gettimeofday gmtime_r isnan j0 j1 lltostr localtime_r lstat memmove memset mkstemp munmap nanosleep newlocale _NSGetExecutablePath pclose _pclose poll popen _popen posix_fadvise posix_fallocate posix_madvise posix_memalign posix_spawnp pow pread pwrite qsort_r raise rand_r readlink readdir_r realpath select seekdir setlocale socket sqrt setvbuf stat strchr strrchr strcspn strdup strpbrk strspn strstr strtod strtod_l strtol strtoul symlink sysconf sigemptyset sigaction spawnvp strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times ulltostr uselocale usleep utime vfprintf vfprintf_l vsprintf vsnprintf vsnprintf_l waitpid _wfopen _wstat
cristy8b350f62009-11-15 23:12:43 +000025407do :
25408 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25409ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025410if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025411 cat >>confdefs.h <<_ACEOF
25412#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25413_ACEOF
25414
25415fi
25416done
25417
25418
cristye43a45e2009-09-28 14:49:00 +000025419#
25420# Check for clock_gettime().
25421#
cristy8b350f62009-11-15 23:12:43 +000025422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025423$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025424if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025425 $as_echo_n "(cached) " >&6
25426else
25427 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000025428cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025429/* end confdefs.h. */
25430
25431/* Override any GCC internal prototype to avoid an error.
25432 Use char because int might match the return type of a GCC
25433 builtin and then its argument prototype would still apply. */
25434#ifdef __cplusplus
25435extern "C"
25436#endif
25437char clock_gettime ();
25438int
25439main ()
25440{
25441return clock_gettime ();
25442 ;
25443 return 0;
25444}
25445_ACEOF
25446for ac_lib in '' rt; do
25447 if test -z "$ac_lib"; then
25448 ac_res="none required"
25449 else
25450 ac_res=-l$ac_lib
25451 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25452 fi
cristy8b350f62009-11-15 23:12:43 +000025453 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025454 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000025455fi
cristy8b350f62009-11-15 23:12:43 +000025456rm -f core conftest.err conftest.$ac_objext \
25457 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000025458 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025459 break
25460fi
25461done
cristyda16f162011-02-19 23:52:17 +000025462if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000025463
cristye43a45e2009-09-28 14:49:00 +000025464else
25465 ac_cv_search_clock_gettime=no
25466fi
25467rm conftest.$ac_ext
25468LIBS=$ac_func_search_save_LIBS
25469fi
cristy8b350f62009-11-15 23:12:43 +000025470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025471$as_echo "$ac_cv_search_clock_gettime" >&6; }
25472ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000025473if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000025474 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25475
25476
cristy8b350f62009-11-15 23:12:43 +000025477$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025478
cristy8b350f62009-11-15 23:12:43 +000025479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000025480$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025482/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000025483
25484 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000025485int
25486main ()
25487{
25488clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000025489 ;
25490 return 0;
25491}
25492_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025493if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025494
cristyad38abe2012-12-23 23:03:21 +000025495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25496$as_echo "yes" >&6; }
cristye43a45e2009-09-28 14:49:00 +000025497
cristy8b350f62009-11-15 23:12:43 +000025498$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025499
25500
25501else
cristyad38abe2012-12-23 23:03:21 +000025502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25503$as_echo "no" >&6; }
cristye43a45e2009-09-28 14:49:00 +000025504
25505fi
cristye43a45e2009-09-28 14:49:00 +000025506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25507
25508else
25509
cristy8b350f62009-11-15 23:12:43 +000025510 for ac_func in gettimeofday ftime
25511do :
25512 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25513ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025514if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000025515 cat >>confdefs.h <<_ACEOF
25516#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25517_ACEOF
25518 break
25519fi
25520done
25521
25522
25523
25524fi
25525
25526
cristy3ed852e2009-09-05 21:47:34 +000025527########
25528#
25529# Check for function prototypes
25530#
25531########
25532
cristy8b350f62009-11-15 23:12:43 +000025533ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000025534#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025535"
cristyda16f162011-02-19 23:52:17 +000025536if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025537 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025538else
cristy8b350f62009-11-15 23:12:43 +000025539 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025540fi
25541
cristy3ed852e2009-09-05 21:47:34 +000025542cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025543#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025544_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025545ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000025546#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025547"
cristyda16f162011-02-19 23:52:17 +000025548if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025549 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025550else
cristy8b350f62009-11-15 23:12:43 +000025551 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025552fi
25553
cristy3ed852e2009-09-05 21:47:34 +000025554cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025555#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025556_ACEOF
25557
25558
cristy8b350f62009-11-15 23:12:43 +000025559ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000025560#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000025561"
cristyda16f162011-02-19 23:52:17 +000025562if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025563 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025564else
cristy8b350f62009-11-15 23:12:43 +000025565 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025566fi
25567
cristy3ed852e2009-09-05 21:47:34 +000025568cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025569#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025570_ACEOF
25571
25572
cristy8b350f62009-11-15 23:12:43 +000025573ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000025574#include <stdio.h>
25575#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000025576"
cristyda16f162011-02-19 23:52:17 +000025577if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025578 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025579else
cristy8b350f62009-11-15 23:12:43 +000025580 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025581fi
25582
cristy3ed852e2009-09-05 21:47:34 +000025583cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025584#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025585_ACEOF
25586
25587
cristy3ed852e2009-09-05 21:47:34 +000025588########
25589#
25590# C++ Support Tests (For Magick++)
25591#
25592########
25593have_magick_plus_plus='no'
25594if test "$with_magick_plus_plus" = 'yes'; then
25595 OLIBS="$LIBS"
25596 LIBS=''
25597 ac_ext=cpp
25598ac_cpp='$CXXCPP $CPPFLAGS'
25599ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25600ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25601ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25602
25603
25604 # Full set of headers used...
25605 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
25606 # functional iomanip iosfwd iostream iterator list string strstream utility
25607 ac_ext=cpp
25608ac_cpp='$CXXCPP $CPPFLAGS'
25609ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25610ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25611ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25612
25613 ac_ext=cpp
25614ac_cpp='$CXXCPP $CPPFLAGS'
25615ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25616ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25617ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25618if test -z "$CXX"; then
25619 if test -n "$CCC"; then
25620 CXX=$CCC
25621 else
25622 if test -n "$ac_tool_prefix"; then
25623 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25624 do
25625 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25626set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025628$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025629if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025630 $as_echo_n "(cached) " >&6
25631else
25632 if test -n "$CXX"; then
25633 ac_cv_prog_CXX="$CXX" # Let the user override the test.
25634else
25635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25636for as_dir in $PATH
25637do
25638 IFS=$as_save_IFS
25639 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025640 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025642 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025644 break 2
25645 fi
25646done
cristy8b350f62009-11-15 23:12:43 +000025647 done
cristy3ed852e2009-09-05 21:47:34 +000025648IFS=$as_save_IFS
25649
25650fi
25651fi
25652CXX=$ac_cv_prog_CXX
25653if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025655$as_echo "$CXX" >&6; }
25656else
cristy8b350f62009-11-15 23:12:43 +000025657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025658$as_echo "no" >&6; }
25659fi
25660
25661
25662 test -n "$CXX" && break
25663 done
25664fi
25665if test -z "$CXX"; then
25666 ac_ct_CXX=$CXX
25667 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25668do
25669 # Extract the first word of "$ac_prog", so it can be a program name with args.
25670set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025672$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025673if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025674 $as_echo_n "(cached) " >&6
25675else
25676 if test -n "$ac_ct_CXX"; then
25677 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
25678else
25679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25680for as_dir in $PATH
25681do
25682 IFS=$as_save_IFS
25683 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025684 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025686 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025688 break 2
25689 fi
25690done
cristy8b350f62009-11-15 23:12:43 +000025691 done
cristy3ed852e2009-09-05 21:47:34 +000025692IFS=$as_save_IFS
25693
25694fi
25695fi
25696ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25697if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025699$as_echo "$ac_ct_CXX" >&6; }
25700else
cristy8b350f62009-11-15 23:12:43 +000025701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025702$as_echo "no" >&6; }
25703fi
25704
25705
25706 test -n "$ac_ct_CXX" && break
25707done
25708
25709 if test "x$ac_ct_CXX" = x; then
25710 CXX="g++"
25711 else
25712 case $cross_compiling:$ac_tool_warned in
25713yes:)
cristy8b350f62009-11-15 23:12:43 +000025714{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025715$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25716ac_tool_warned=yes ;;
25717esac
25718 CXX=$ac_ct_CXX
25719 fi
25720fi
25721
25722 fi
25723fi
25724# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000025725$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000025726set X $ac_compile
25727ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000025728for ac_option in --version -v -V -qversion; do
25729 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000025730case "(($ac_try" in
25731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25732 *) ac_try_echo=$ac_try;;
25733esac
cristy8b350f62009-11-15 23:12:43 +000025734eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25735$as_echo "$ac_try_echo"; } >&5
25736 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000025737 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025738 if test -s conftest.err; then
25739 sed '10a\
25740... rest of stderr output deleted ...
25741 10q' conftest.err >conftest.er1
25742 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000025743 fi
cristycd4c5312009-11-22 01:19:08 +000025744 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000025745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25746 test $ac_status = 0; }
25747done
cristy3ed852e2009-09-05 21:47:34 +000025748
cristy8b350f62009-11-15 23:12:43 +000025749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000025750$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025751if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025752 $as_echo_n "(cached) " >&6
25753else
cristy8b350f62009-11-15 23:12:43 +000025754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025755/* end confdefs.h. */
25756
25757int
25758main ()
25759{
25760#ifndef __GNUC__
25761 choke me
25762#endif
25763
25764 ;
25765 return 0;
25766}
25767_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025768if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025769 ac_compiler_gnu=yes
25770else
cristy8b350f62009-11-15 23:12:43 +000025771 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000025772fi
cristy3ed852e2009-09-05 21:47:34 +000025773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25774ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
25775
25776fi
cristy8b350f62009-11-15 23:12:43 +000025777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000025778$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
25779if test $ac_compiler_gnu = yes; then
25780 GXX=yes
25781else
25782 GXX=
25783fi
25784ac_test_CXXFLAGS=${CXXFLAGS+set}
25785ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000025786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025787$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025788if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025789 $as_echo_n "(cached) " >&6
25790else
25791 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
25792 ac_cxx_werror_flag=yes
25793 ac_cv_prog_cxx_g=no
25794 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025796/* end confdefs.h. */
25797
25798int
25799main ()
25800{
25801
25802 ;
25803 return 0;
25804}
25805_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025806if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025807 ac_cv_prog_cxx_g=yes
25808else
cristy8b350f62009-11-15 23:12:43 +000025809 CXXFLAGS=""
25810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025811/* end confdefs.h. */
25812
25813int
25814main ()
25815{
25816
25817 ;
25818 return 0;
25819}
25820_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025821if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025822
cristy8b350f62009-11-15 23:12:43 +000025823else
25824 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000025825 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025827/* end confdefs.h. */
25828
25829int
25830main ()
25831{
25832
25833 ;
25834 return 0;
25835}
25836_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025837if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025838 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000025839fi
cristy3ed852e2009-09-05 21:47:34 +000025840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25841fi
cristy3ed852e2009-09-05 21:47:34 +000025842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25843fi
cristy3ed852e2009-09-05 21:47:34 +000025844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25845 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
25846fi
cristy8b350f62009-11-15 23:12:43 +000025847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025848$as_echo "$ac_cv_prog_cxx_g" >&6; }
25849if test "$ac_test_CXXFLAGS" = set; then
25850 CXXFLAGS=$ac_save_CXXFLAGS
25851elif test $ac_cv_prog_cxx_g = yes; then
25852 if test "$GXX" = yes; then
25853 CXXFLAGS="-g -O2"
25854 else
25855 CXXFLAGS="-g"
25856 fi
25857else
25858 if test "$GXX" = yes; then
25859 CXXFLAGS="-O2"
25860 else
25861 CXXFLAGS=
25862 fi
25863fi
25864ac_ext=cpp
25865ac_cpp='$CXXCPP $CPPFLAGS'
25866ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25867ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25868ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25869
cristy73bd4a52010-10-05 11:24:23 +000025870depcc="$CXX" am_compiler_list=
25871
25872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
25873$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025874if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025875 $as_echo_n "(cached) " >&6
25876else
25877 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25878 # We make a subdir and do the tests there. Otherwise we can end up
25879 # making bogus files that we don't know about and never remove. For
25880 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +000025881 # making a dummy file named 'D' -- because '-MD' means "put the output
25882 # in D".
cristy7247bba2012-02-05 16:37:27 +000025883 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +000025884 mkdir conftest.dir
25885 # Copy depcomp to subdir because otherwise we won't find it if we're
25886 # using a relative directory.
25887 cp "$am_depcomp" conftest.dir
25888 cd conftest.dir
25889 # We will build objects and dependencies in a subdirectory because
25890 # it helps to detect inapplicable dependency modes. For instance
25891 # both Tru64's cc and ICC support -MD to output dependencies as a
25892 # side effect of compilation, but ICC will put the dependencies in
25893 # the current directory while Tru64 will put them in the object
25894 # directory.
25895 mkdir sub
25896
25897 am_cv_CXX_dependencies_compiler_type=none
25898 if test "$am_compiler_list" = ""; then
25899 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25900 fi
25901 am__universal=false
25902 case " $depcc " in #(
25903 *\ -arch\ *\ -arch\ *) am__universal=true ;;
25904 esac
25905
25906 for depmode in $am_compiler_list; do
25907 # Setup a source with many dependencies, because some compilers
25908 # like to wrap large dependency lists on column 80 (with \), and
25909 # we should not choose a depcomp mode which is confused by this.
25910 #
25911 # We need to recreate these files for each test, as the compiler may
25912 # overwrite some of them when testing with obscure command lines.
25913 # This happens at least with the AIX C compiler.
25914 : > sub/conftest.c
25915 for i in 1 2 3 4 5 6; do
25916 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +000025917 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
25918 # Solaris 10 /bin/sh.
25919 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +000025920 done
25921 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25922
cristyc0890a62012-07-19 00:18:20 +000025923 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +000025924 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +000025925 # handle '-M -o', and we need to detect this. Also, some Intel
25926 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +000025927 am__obj=sub/conftest.${OBJEXT-o}
25928 am__minus_obj="-o $am__obj"
25929 case $depmode in
25930 gcc)
25931 # This depmode causes a compiler race in universal mode.
25932 test "$am__universal" = false || continue
25933 ;;
25934 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +000025935 # After this tag, mechanisms are not by side-effect, so they'll
25936 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +000025937 if test "x$enable_dependency_tracking" = xyes; then
25938 continue
25939 else
25940 break
25941 fi
25942 ;;
cristy7247bba2012-02-05 16:37:27 +000025943 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +000025944 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +000025945 # not run yet. These depmodes are late enough in the game, and
25946 # so weak that their functioning should not be impacted.
25947 am__obj=conftest.${OBJEXT-o}
25948 am__minus_obj=
25949 ;;
25950 none) break ;;
25951 esac
25952 if depmode=$depmode \
25953 source=sub/conftest.c object=$am__obj \
25954 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
25955 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
25956 >/dev/null 2>conftest.err &&
25957 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
25958 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
25959 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
25960 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
25961 # icc doesn't choke on unknown options, it will just issue warnings
25962 # or remarks (even with -Werror). So we grep stderr for any message
25963 # that says an option was ignored or not supported.
25964 # When given -MP, icc 7.0 and 7.1 complain thusly:
25965 # icc: Command line warning: ignoring option '-M'; no argument required
25966 # The diagnosis changed in icc 8.0:
25967 # icc: Command line remark: option '-MP' not supported
25968 if (grep 'ignoring option' conftest.err ||
25969 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
25970 am_cv_CXX_dependencies_compiler_type=$depmode
25971 break
25972 fi
25973 fi
25974 done
25975
25976 cd ..
25977 rm -rf conftest.dir
25978else
25979 am_cv_CXX_dependencies_compiler_type=none
25980fi
25981
25982fi
25983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
25984$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
25985CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
25986
25987 if
25988 test "x$enable_dependency_tracking" != xno \
25989 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
25990 am__fastdepCXX_TRUE=
25991 am__fastdepCXX_FALSE='#'
25992else
25993 am__fastdepCXX_TRUE='#'
25994 am__fastdepCXX_FALSE=
25995fi
25996
25997
25998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
25999$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026000if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026001 $as_echo_n "(cached) " >&6
26002else
26003
26004 ac_ext=cpp
26005ac_cpp='$CXXCPP $CPPFLAGS'
26006ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26007ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26008ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26009
26010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26011/* end confdefs.h. */
26012
26013int f(int x){return 1;}
26014int f(char x){return 1;}
26015int f(bool x){return 1;}
26016
26017int
26018main ()
26019{
26020bool b = true; return f(b);
26021 ;
26022 return 0;
26023}
26024_ACEOF
26025if ac_fn_cxx_try_compile "$LINENO"; then :
26026 ax_cv_cxx_bool=yes
26027else
26028 ax_cv_cxx_bool=no
26029fi
26030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26031 ac_ext=cpp
26032ac_cpp='$CXXCPP $CPPFLAGS'
26033ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26034ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26035ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26036
26037
26038fi
26039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
26040$as_echo "$ax_cv_cxx_bool" >&6; }
26041if test "$ax_cv_cxx_bool" = yes; then
26042
26043$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
26044
26045fi
26046
26047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
26048$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026049if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026050 $as_echo_n "(cached) " >&6
26051else
cristy17491be2014-06-24 01:10:53 +000026052 ac_ext=cpp
cristy73bd4a52010-10-05 11:24:23 +000026053ac_cpp='$CXXCPP $CPPFLAGS'
26054ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26055ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26056ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26057
26058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26059/* end confdefs.h. */
26060namespace Outer { namespace Inner { int i = 0; }}
cristy17491be2014-06-24 01:10:53 +000026061 using namespace Outer::Inner; int foo(void) { return i;}
cristy73bd4a52010-10-05 11:24:23 +000026062_ACEOF
26063if ac_fn_cxx_try_compile "$LINENO"; then :
26064 ax_cv_cxx_namespaces=yes
26065else
26066 ax_cv_cxx_namespaces=no
26067fi
26068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26069 ac_ext=cpp
26070ac_cpp='$CXXCPP $CPPFLAGS'
26071ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26072ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26073ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26074
26075
26076fi
26077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
26078$as_echo "$ax_cv_cxx_namespaces" >&6; }
26079if test "$ax_cv_cxx_namespaces" = yes; then
26080
26081$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
26082
26083fi
26084
26085
26086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
26087$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026088if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026089 $as_echo_n "(cached) " >&6
26090else
26091
26092 ac_ext=cpp
26093ac_cpp='$CXXCPP $CPPFLAGS'
26094ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26095ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26096ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26097
26098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26099/* end confdefs.h. */
26100#include <iostream>
26101 std::istream& is = std::cin;
26102int
26103main ()
26104{
26105
26106 ;
26107 return 0;
26108}
26109_ACEOF
26110if ac_fn_cxx_try_compile "$LINENO"; then :
26111 ax_cv_cxx_have_std_namespace=yes
26112else
26113 ax_cv_cxx_have_std_namespace=no
26114fi
26115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26116 ac_ext=cpp
26117ac_cpp='$CXXCPP $CPPFLAGS'
26118ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26119ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26120ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26121
26122
26123fi
26124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
26125$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
26126 if test "$ax_cv_cxx_have_std_namespace" = yes; then
26127
26128$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
26129
26130 fi
26131
26132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
26133$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026134if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026135 $as_echo_n "(cached) " >&6
26136else
26137
26138
26139 ac_ext=cpp
26140ac_cpp='$CXXCPP $CPPFLAGS'
26141ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26142ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26143ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26144
26145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26146/* end confdefs.h. */
26147#include <iostream>
26148#include <map>
26149#include <iomanip>
26150#include <cmath>
26151#ifdef HAVE_NAMESPACES
26152using namespace std;
26153#endif
26154int
26155main ()
26156{
26157return 0;
26158 ;
26159 return 0;
26160}
26161_ACEOF
26162if ac_fn_cxx_try_compile "$LINENO"; then :
26163 ac_cv_cxx_have_std_libs=yes
26164else
26165 ac_cv_cxx_have_std_libs=no
26166fi
26167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26168 ac_ext=cpp
26169ac_cpp='$CXXCPP $CPPFLAGS'
26170ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26171ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26172ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26173
26174
26175fi
26176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
26177$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
26178if test "$ac_cv_cxx_have_std_libs" = yes; then
26179
26180$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
26181
26182fi
26183
cristy3ed852e2009-09-05 21:47:34 +000026184
26185 OPENMP_CXXFLAGS=
26186 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000026187if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026188 enableval=$enable_openmp;
26189fi
26190
26191 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000026192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
26193$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026194if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026195 $as_echo_n "(cached) " >&6
26196else
cristy8b350f62009-11-15 23:12:43 +000026197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26198/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026199
26200#ifndef _OPENMP
26201 choke me
26202#endif
26203#include <omp.h>
26204int main () { return omp_get_num_threads (); }
26205
26206_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026207if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026208 ac_cv_prog_cxx_openmp='none needed'
26209else
cristy8b350f62009-11-15 23:12:43 +000026210 ac_cv_prog_cxx_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +000026211 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
26212 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +000026213 ac_save_CXXFLAGS=$CXXFLAGS
26214 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000026215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26216/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026217
26218#ifndef _OPENMP
26219 choke me
26220#endif
26221#include <omp.h>
26222int main () { return omp_get_num_threads (); }
26223
26224_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026225if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026226 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000026227fi
cristy8b350f62009-11-15 23:12:43 +000026228rm -f core conftest.err conftest.$ac_objext \
26229 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026230 CXXFLAGS=$ac_save_CXXFLAGS
26231 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
26232 break
26233 fi
26234 done
26235fi
cristy8b350f62009-11-15 23:12:43 +000026236rm -f core conftest.err conftest.$ac_objext \
26237 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026238fi
cristy8b350f62009-11-15 23:12:43 +000026239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026240$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
26241 case $ac_cv_prog_cxx_openmp in #(
26242 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000026243 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000026244 *)
cristy8b350f62009-11-15 23:12:43 +000026245 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000026246 esac
26247 fi
26248
26249
26250 ac_ext=c
26251ac_cpp='$CPP $CPPFLAGS'
26252ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26253ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26254ac_compiler_gnu=$ac_cv_c_compiler_gnu
26255
26256
cristy8b350f62009-11-15 23:12:43 +000026257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000026258$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
26259 if \
cristy964cb7f2010-04-25 23:18:00 +000026260 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026261 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000026262 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026263 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000026264 have_magick_plus_plus='yes'
26265 else
26266 have_magick_plus_plus='no (failed tests)'
26267 fi
cristyad38abe2012-12-23 23:03:21 +000026268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
26269$as_echo "$have_magick_plus_plus" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026270 LIBS="$OLIBS"
26271fi
cristy73bd4a52010-10-05 11:24:23 +000026272 if test "$have_magick_plus_plus" = 'yes'; then
26273 WITH_MAGICK_PLUS_PLUS_TRUE=
26274 WITH_MAGICK_PLUS_PLUS_FALSE='#'
26275else
26276 WITH_MAGICK_PLUS_PLUS_TRUE='#'
26277 WITH_MAGICK_PLUS_PLUS_FALSE=
26278fi
26279
cristy3ed852e2009-09-05 21:47:34 +000026280
26281# Only check for delegate libraries in subdirectories if requested.
26282if test "$enable_delegate_build" != 'no'; then
26283 # Check for delegate sub-directories and add -I & -L options as required.
26284 # This presumes that delegates are installed as detailed in the ImageMagick
26285 # README. If delegates are installed in a standard location where the
26286 # compiler will automatically find them then these options should not be
26287 # required.
26288
26289 #
26290 # Most delegates have includes in the same directory as the library, but not all...
26291 #
26292 # Includes
cristy31269aa2014-04-06 13:07:35 +000026293 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper/include jbig/libjbig jpeg lcms/include lzma magick openjp2/include png tiff/libtiff ttf/include wand webp/src wmf/include xml/include zlib; do
cristy3ed852e2009-09-05 21:47:34 +000026294 if test -d "$builddir/$dir"; then
26295 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
26296 else
26297 if test -d "$srcdirfull/$dir"; then
26298 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
26299 fi
26300 fi
26301 done
26302
26303 # Libraries
cristy31269aa2014-04-06 13:07:35 +000026304 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper jbig/libjbig jpeg lcms/src lzma magick openjp2 png tiff/libtiff ttf/objs wand webp wmf/src xml zlib; do
cristy3ed852e2009-09-05 21:47:34 +000026305 if test -d "$builddir/$dir/.libs"; then
26306 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
26307 else
26308 if test -d "$srcdirfull/$dir/.libs"; then
26309 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
26310 fi
26311 fi
26312 if test -d "$builddir/$dir"; then
26313 LDFLAGS="$LDFLAGS -L$builddir/$dir"
26314 else
26315 if test -d "$srcdirfull/$dir"; then
26316 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
26317 fi
26318 fi
26319 done
26320fi
26321
26322# Assume that delegate headers reside under same directory as ImageMagick
26323# installation prefix.
cristybdabdd62013-03-04 17:43:36 +000026324MAGICK_CPPFLAGS="-I$INCLUDE_DIR/${PACKAGE_NAME}-$MAGICK_MAJOR_VERSION $MAGICK_CPPFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000026325
26326#
26327# Find the X11 RGB database
26328#
cristy8b350f62009-11-15 23:12:43 +000026329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000026330$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026331if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026332 $as_echo_n "(cached) " >&6
26333else
26334 # Look for the header file in a standard set of common directories.
26335# Check X11 before X11Rn because it is often a symlink to the current release.
26336 for ac_dir in \
26337 /lib/usr/lib/X11 \
26338 /usr/X11/lib \
26339 /usr/X11R4/lib \
26340 /usr/X11R5/lib \
26341 /usr/X11R6/lib \
26342 /usr/X11R7/lib \
26343 /usr/X386/lib \
26344 /usr/XFree86/lib/X11 \
26345 /usr/athena/lib \
26346 /usr/lib \
26347 /usr/lib/X11 \
26348 /usr/lib/X11R4 \
26349 /usr/lib/X11R5 \
26350 /usr/lib/X11R6 \
26351 /usr/lib/X11R7 \
26352 /usr/local/X11/lib \
26353 /usr/local/X11R4/lib \
26354 /usr/local/X11R5/lib \
26355 /usr/local/X11R6/lib \
26356 /usr/local/lib \
26357 /usr/local/lib/X11 \
26358 /usr/local/lib/X11R4 \
26359 /usr/local/lib/X11R5 \
26360 /usr/local/lib/X11R6 \
26361 /usr/local/lib/X11R7 \
26362 /usr/local/x11r5/lib \
26363 /usr/lpp/Xamples/lib \
26364 /usr/openwin/lib \
26365 /usr/openwin/share/lib \
26366 /usr/unsupported/lib \
26367 /usr/x386/lib \
26368 ; do
26369 if test -f "$ac_dir/X11/rgb.txt"; then
26370 im_cv_x_configure="$ac_dir/X11/"
26371 break
26372 elif test -f "$ac_dir/rgb.txt"; then
26373 im_cv_x_configure="$ac_dir/"
26374 break
26375 fi
26376
26377 done
26378fi
cristy8b350f62009-11-15 23:12:43 +000026379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000026380$as_echo "$im_cv_x_configure" >&6; }
26381X11_CONFIGURE_PATH="$im_cv_x_configure"
26382case "${build_os}" in
26383 mingw* )
26384 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
26385 ;;
26386esac
26387
26388cat >>confdefs.h <<_ACEOF
26389#define X11_CONFIGURE_PATH "$X11ConfigurePath"
26390_ACEOF
26391
26392
26393#
26394# Find OpenMP library
26395#
26396GOMP_LIBS=''
26397if test "$enable_openmp" != 'no'; then
26398 if test "${GCC}" = "yes"; then
cristy18307f12011-12-30 01:20:16 +000026399 # Open64 (passes for GCC but uses different OpenMP implementation)
26400 if test "x$GOMP_LIBS" = x ; then
26401 if $CC --version 2>&1 | grep Open64 > /dev/null ; then
26402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5
26403$as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; }
26404if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then :
26405 $as_echo_n "(cached) " >&6
26406else
26407 ac_check_lib_save_LIBS=$LIBS
26408LIBS="-lopenmp $LIBS"
26409cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26410/* end confdefs.h. */
26411
26412/* Override any GCC internal prototype to avoid an error.
26413 Use char because int might match the return type of a GCC
26414 builtin and then its argument prototype would still apply. */
26415#ifdef __cplusplus
26416extern "C"
26417#endif
26418char omp_get_num_procs ();
26419int
26420main ()
26421{
26422return omp_get_num_procs ();
26423 ;
26424 return 0;
26425}
26426_ACEOF
26427if ac_fn_c_try_link "$LINENO"; then :
26428 ac_cv_lib_openmp_omp_get_num_procs=yes
26429else
26430 ac_cv_lib_openmp_omp_get_num_procs=no
26431fi
26432rm -f core conftest.err conftest.$ac_objext \
26433 conftest$ac_exeext conftest.$ac_ext
26434LIBS=$ac_check_lib_save_LIBS
26435fi
26436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5
26437$as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; }
26438if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then :
26439 GOMP_LIBS="-lopenmp"
26440fi
26441
26442 fi
26443 fi
26444 # GCC
26445 if test "x$GOMP_LIBS" = x ; then
26446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026447$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026448if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026449 $as_echo_n "(cached) " >&6
26450else
26451 ac_check_lib_save_LIBS=$LIBS
26452LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026453cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026454/* end confdefs.h. */
26455
26456/* Override any GCC internal prototype to avoid an error.
26457 Use char because int might match the return type of a GCC
26458 builtin and then its argument prototype would still apply. */
26459#ifdef __cplusplus
26460extern "C"
26461#endif
26462char GOMP_parallel_start ();
26463int
26464main ()
26465{
26466return GOMP_parallel_start ();
26467 ;
26468 return 0;
26469}
26470_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026471if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026472 ac_cv_lib_gomp_GOMP_parallel_start=yes
26473else
cristy8b350f62009-11-15 23:12:43 +000026474 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000026475fi
cristy8b350f62009-11-15 23:12:43 +000026476rm -f core conftest.err conftest.$ac_objext \
26477 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026478LIBS=$ac_check_lib_save_LIBS
26479fi
cristy8b350f62009-11-15 23:12:43 +000026480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000026481$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000026482if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026483 GOMP_LIBS="-lgomp"
26484fi
cristy18307f12011-12-30 01:20:16 +000026485
26486 fi
cristy3ed852e2009-09-05 21:47:34 +000026487 else
cristy18307f12011-12-30 01:20:16 +000026488 # Sun CC
26489 if test "x$GOMP_LIBS" = x ; then
26490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026491$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026492if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026493 $as_echo_n "(cached) " >&6
26494else
26495 ac_check_lib_save_LIBS=$LIBS
26496LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026497cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026498/* end confdefs.h. */
26499
26500/* Override any GCC internal prototype to avoid an error.
26501 Use char because int might match the return type of a GCC
26502 builtin and then its argument prototype would still apply. */
26503#ifdef __cplusplus
26504extern "C"
26505#endif
26506char sunw_mp_register_warn ();
26507int
26508main ()
26509{
26510return sunw_mp_register_warn ();
26511 ;
26512 return 0;
26513}
26514_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026515if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026516 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
26517else
cristy8b350f62009-11-15 23:12:43 +000026518 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000026519fi
cristy8b350f62009-11-15 23:12:43 +000026520rm -f core conftest.err conftest.$ac_objext \
26521 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026522LIBS=$ac_check_lib_save_LIBS
26523fi
cristy8b350f62009-11-15 23:12:43 +000026524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000026525$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000026526if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026527 GOMP_LIBS="-lmtsk"
26528fi
cristy18307f12011-12-30 01:20:16 +000026529
26530 fi
26531 # AIX xlc
26532 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026534$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026535if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026536 $as_echo_n "(cached) " >&6
26537else
26538 ac_check_lib_save_LIBS=$LIBS
26539LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026540cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026541/* end confdefs.h. */
26542
26543/* Override any GCC internal prototype to avoid an error.
26544 Use char because int might match the return type of a GCC
26545 builtin and then its argument prototype would still apply. */
26546#ifdef __cplusplus
26547extern "C"
26548#endif
26549char _xlsmpFlush ();
26550int
26551main ()
26552{
26553return _xlsmpFlush ();
26554 ;
26555 return 0;
26556}
26557_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026558if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026559 ac_cv_lib_xlsmp__xlsmpFlush=yes
26560else
cristy8b350f62009-11-15 23:12:43 +000026561 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000026562fi
cristy8b350f62009-11-15 23:12:43 +000026563rm -f core conftest.err conftest.$ac_objext \
26564 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026565LIBS=$ac_check_lib_save_LIBS
26566fi
cristy8b350f62009-11-15 23:12:43 +000026567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000026568$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000026569if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026570 GOMP_LIBS="-lxlsmp"
26571fi
cristy18307f12011-12-30 01:20:16 +000026572
26573 fi
26574 # SGI IRIX 6.5 MIPSpro C/C++
26575 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026577$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026578if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026579 $as_echo_n "(cached) " >&6
26580else
26581 ac_check_lib_save_LIBS=$LIBS
26582LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026583cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026584/* end confdefs.h. */
26585
26586/* Override any GCC internal prototype to avoid an error.
26587 Use char because int might match the return type of a GCC
26588 builtin and then its argument prototype would still apply. */
26589#ifdef __cplusplus
26590extern "C"
26591#endif
26592char mp_destroy ();
26593int
26594main ()
26595{
26596return mp_destroy ();
26597 ;
26598 return 0;
26599}
26600_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026601if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026602 ac_cv_lib_mp_mp_destroy=yes
26603else
cristy8b350f62009-11-15 23:12:43 +000026604 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000026605fi
cristy8b350f62009-11-15 23:12:43 +000026606rm -f core conftest.err conftest.$ac_objext \
26607 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026608LIBS=$ac_check_lib_save_LIBS
26609fi
cristy8b350f62009-11-15 23:12:43 +000026610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000026611$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000026612if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026613 GOMP_LIBS="-lmp"
26614fi
cristy18307f12011-12-30 01:20:16 +000026615
26616 fi
cristy3ed852e2009-09-05 21:47:34 +000026617 fi
26618 LIBS="$GOMP_LIBS $LIBS"
26619fi
26620
26621
cristy12ac8192014-11-04 13:59:13 +000026622#
cristy3b0097d2014-11-04 15:34:47 +000026623# Check for jemalloc.
cristy12ac8192014-11-04 13:59:13 +000026624#
cristy3b0097d2014-11-04 15:34:47 +000026625have_jemalloc='no'
26626JEMALLOC_LIBS=''
26627if test "$with_jemalloc" != 'no'; then
26628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JEMALLOC support " >&5
26629$as_echo_n "checking for JEMALLOC support ... " >&6; }
26630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26631$as_echo "" >&6; }
26632 failed=0
26633 passed=0
26634 ac_fn_c_check_header_mongrel "$LINENO" "jemalloc/jemalloc.h" "ac_cv_header_jemalloc_jemalloc_h" "$ac_includes_default"
26635if test "x$ac_cv_header_jemalloc_jemalloc_h" = xyes; then :
cristy22007ae2014-11-04 15:59:22 +000026636 passed=`expr $passed + 1`
26637else
26638 failed=`expr $failed + 1`
cristy12ac8192014-11-04 13:59:13 +000026639fi
26640
26641
cristy3b0097d2014-11-04 15:34:47 +000026642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc_stats_print in -ljemalloc" >&5
26643$as_echo_n "checking for malloc_stats_print in -ljemalloc... " >&6; }
26644if ${ac_cv_lib_jemalloc_malloc_stats_print+:} false; then :
cristy12ac8192014-11-04 13:59:13 +000026645 $as_echo_n "(cached) " >&6
26646else
26647 ac_check_lib_save_LIBS=$LIBS
26648LIBS="-ljemalloc $LIBS"
26649cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26650/* end confdefs.h. */
26651
26652/* Override any GCC internal prototype to avoid an error.
26653 Use char because int might match the return type of a GCC
26654 builtin and then its argument prototype would still apply. */
26655#ifdef __cplusplus
26656extern "C"
26657#endif
cristy3b0097d2014-11-04 15:34:47 +000026658char malloc_stats_print ();
cristy12ac8192014-11-04 13:59:13 +000026659int
26660main ()
26661{
cristy3b0097d2014-11-04 15:34:47 +000026662return malloc_stats_print ();
cristy12ac8192014-11-04 13:59:13 +000026663 ;
26664 return 0;
26665}
26666_ACEOF
26667if ac_fn_c_try_link "$LINENO"; then :
cristy3b0097d2014-11-04 15:34:47 +000026668 ac_cv_lib_jemalloc_malloc_stats_print=yes
cristy12ac8192014-11-04 13:59:13 +000026669else
cristy3b0097d2014-11-04 15:34:47 +000026670 ac_cv_lib_jemalloc_malloc_stats_print=no
cristy12ac8192014-11-04 13:59:13 +000026671fi
26672rm -f core conftest.err conftest.$ac_objext \
26673 conftest$ac_exeext conftest.$ac_ext
26674LIBS=$ac_check_lib_save_LIBS
26675fi
cristy3b0097d2014-11-04 15:34:47 +000026676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jemalloc_malloc_stats_print" >&5
26677$as_echo "$ac_cv_lib_jemalloc_malloc_stats_print" >&6; }
26678if test "x$ac_cv_lib_jemalloc_malloc_stats_print" = xyes; then :
cristy22007ae2014-11-04 15:59:22 +000026679 passed=`expr $passed + 1`
26680else
26681 failed=`expr $failed + 1`
cristy12ac8192014-11-04 13:59:13 +000026682fi
26683
cristy3b0097d2014-11-04 15:34:47 +000026684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jemalloc memory allocation library is complete" >&5
26685$as_echo_n "checking if jemalloc memory allocation library is complete... " >&6; }
26686 if test $passed -gt 0; then
26687 if test $failed -gt 0; then
26688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26689$as_echo "no -- some components failed test" >&6; }
26690 have_jemalloc='no (failed tests)'
26691 else
26692 JEMALLOC_LIBS='-ljemalloc'
26693 LIBS="$JEMALLOC_LIBS $LIBS"
cristy12ac8192014-11-04 13:59:13 +000026694
cristy3b0097d2014-11-04 15:34:47 +000026695$as_echo "#define HasJEMALLOC 1" >>confdefs.h
cristy12ac8192014-11-04 13:59:13 +000026696
cristy3b0097d2014-11-04 15:34:47 +000026697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26698$as_echo "yes" >&6; }
26699 have_jemalloc='yes'
26700 fi
cristy12ac8192014-11-04 13:59:13 +000026701 else
cristy3b0097d2014-11-04 15:34:47 +000026702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26703$as_echo "no" >&6; }
cristy12ac8192014-11-04 13:59:13 +000026704 fi
26705fi
cristy3b0097d2014-11-04 15:34:47 +000026706 if test "$have_jemalloc" = 'yes'; then
26707 HasJEMALLOC_TRUE=
26708 HasJEMALLOC_FALSE='#'
26709else
26710 HasJEMALLOC_TRUE='#'
26711 HasJEMALLOC_FALSE=
cristy12ac8192014-11-04 13:59:13 +000026712fi
26713
cristy3b0097d2014-11-04 15:34:47 +000026714
26715
cristy3ed852e2009-09-05 21:47:34 +000026716#
26717# Check for umem.
26718#
26719have_umem='no'
26720UMEM_LIBS=''
26721if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000026723$as_echo_n "checking for UMEM support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000026724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26725$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026726 failed=0
26727 passed=0
cristy8b350f62009-11-15 23:12:43 +000026728 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026729if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026730 passed=`expr $passed + 1`
26731else
26732 failed=`expr $failed + 1`
26733fi
26734
26735
cristy8b350f62009-11-15 23:12:43 +000026736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026737$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026738if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026739 $as_echo_n "(cached) " >&6
26740else
26741 ac_check_lib_save_LIBS=$LIBS
26742LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026743cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026744/* end confdefs.h. */
26745
26746/* Override any GCC internal prototype to avoid an error.
26747 Use char because int might match the return type of a GCC
26748 builtin and then its argument prototype would still apply. */
26749#ifdef __cplusplus
26750extern "C"
26751#endif
26752char umem_alloc ();
26753int
26754main ()
26755{
26756return umem_alloc ();
26757 ;
26758 return 0;
26759}
26760_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026761if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026762 ac_cv_lib_umem_umem_alloc=yes
26763else
cristy8b350f62009-11-15 23:12:43 +000026764 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000026765fi
cristy8b350f62009-11-15 23:12:43 +000026766rm -f core conftest.err conftest.$ac_objext \
26767 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026768LIBS=$ac_check_lib_save_LIBS
26769fi
cristy8b350f62009-11-15 23:12:43 +000026770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026771$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026772if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026773 passed=`expr $passed + 1`
26774else
26775 failed=`expr $failed + 1`
26776fi
26777
cristy8b350f62009-11-15 23:12:43 +000026778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026779$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026780if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026781 $as_echo_n "(cached) " >&6
26782else
26783 ac_check_lib_save_LIBS=$LIBS
26784LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026785cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026786/* end confdefs.h. */
26787
26788/* Override any GCC internal prototype to avoid an error.
26789 Use char because int might match the return type of a GCC
26790 builtin and then its argument prototype would still apply. */
26791#ifdef __cplusplus
26792extern "C"
26793#endif
26794char umem_free ();
26795int
26796main ()
26797{
26798return umem_free ();
26799 ;
26800 return 0;
26801}
26802_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026803if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026804 ac_cv_lib_umem_umem_free=yes
26805else
cristy8b350f62009-11-15 23:12:43 +000026806 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000026807fi
cristy8b350f62009-11-15 23:12:43 +000026808rm -f core conftest.err conftest.$ac_objext \
26809 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026810LIBS=$ac_check_lib_save_LIBS
26811fi
cristy8b350f62009-11-15 23:12:43 +000026812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000026813$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000026814if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026815 passed=`expr $passed + 1`
26816else
26817 failed=`expr $failed + 1`
26818fi
26819
cristy8b350f62009-11-15 23:12:43 +000026820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026821$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
26822 if test $passed -gt 0; then
26823 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000026824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26825$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026826 have_umem='no (failed tests)'
26827 else
26828 UMEM_LIBS='-lumem'
26829 LIBS="$UMEM_LIBS $LIBS"
26830
cristy8b350f62009-11-15 23:12:43 +000026831$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026832
cristyad38abe2012-12-23 23:03:21 +000026833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26834$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026835 have_umem='yes'
26836 fi
26837 else
cristyad38abe2012-12-23 23:03:21 +000026838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26839$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026840 fi
26841fi
cristy73bd4a52010-10-05 11:24:23 +000026842 if test "$have_umem" = 'yes'; then
26843 HasUMEM_TRUE=
26844 HasUMEM_FALSE='#'
26845else
26846 HasUMEM_TRUE='#'
26847 HasUMEM_FALSE=
26848fi
26849
cristy3ed852e2009-09-05 21:47:34 +000026850
26851
26852#
26853# Add support for ccmalloc memory debugging library if requested
26854#
26855have_ccmalloc='no'
26856CCMALLOC_LIBS=''
26857if test "$enable_ccmalloc" = 'yes'; then
26858 # Extract the first word of "ccmalloc", so it can be a program name with args.
26859set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000026860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000026861$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026862if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026863 $as_echo_n "(cached) " >&6
26864else
26865 case $CCMALLOCDelegate in
26866 [\\/]* | ?:[\\/]*)
26867 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
26868 ;;
26869 *)
26870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26871for as_dir in $PATH
26872do
26873 IFS=$as_save_IFS
26874 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026875 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000026876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000026877 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000026878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026879 break 2
26880 fi
26881done
cristy8b350f62009-11-15 23:12:43 +000026882 done
cristy3ed852e2009-09-05 21:47:34 +000026883IFS=$as_save_IFS
26884
26885 ;;
26886esac
26887fi
26888CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
26889if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000026890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026891$as_echo "$CCMALLOCDelegate" >&6; }
26892else
cristy8b350f62009-11-15 23:12:43 +000026893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026894$as_echo "no" >&6; }
26895fi
26896
26897
26898 if test -n "$CCMALLOCDelegate"; then
26899 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
26900 OLIBS="$LIBS"
26901 # Assume that gcc is used with ccmalloc.
26902 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000026903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026904$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026905if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026906 $as_echo_n "(cached) " >&6
26907else
26908 ac_check_lib_save_LIBS=$LIBS
26909LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026910cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026911/* end confdefs.h. */
26912
26913/* Override any GCC internal prototype to avoid an error.
26914 Use char because int might match the return type of a GCC
26915 builtin and then its argument prototype would still apply. */
26916#ifdef __cplusplus
26917extern "C"
26918#endif
26919char ccmalloc_malloc ();
26920int
26921main ()
26922{
26923return ccmalloc_malloc ();
26924 ;
26925 return 0;
26926}
26927_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026928if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026929 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
26930else
cristy8b350f62009-11-15 23:12:43 +000026931 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000026932fi
cristy8b350f62009-11-15 23:12:43 +000026933rm -f core conftest.err conftest.$ac_objext \
26934 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026935LIBS=$ac_check_lib_save_LIBS
26936fi
cristy8b350f62009-11-15 23:12:43 +000026937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026938$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026939if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026940 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
26941fi
26942
26943 if test -n "$CCMALLOC_LIBS"; then
26944 LIBS="$OLIBS"
26945 LIBS="$LIBS $CCMALLOC_LIBS"
26946 have_ccmalloc='yes'
26947 else
26948 LIBS="$OLIBS"
26949 fi
26950 fi
26951fi
26952
26953#
cristy944e51f2013-04-16 18:45:02 +000026954# Add support for 'huge pages' if requested
26955#
26956if test "x$enable_hugepages" != "xno"; then :
26957
26958
26959$as_echo "#define HAVE_HUGEPAGES 1" >>confdefs.h
26960
26961
26962fi
26963
26964#
cristy3ed852e2009-09-05 21:47:34 +000026965# Add support for efence memory debugging library if requested
26966#
26967if test "$enable_efence" = 'yes'; then
26968 EFENCE_LIBS='-lefence'
26969 LIBS="$EFENCE_LIBS $LIBS"
26970fi
26971
cristy3ed852e2009-09-05 21:47:34 +000026972
26973#
26974# Check for BZLIB
26975#
26976
26977
26978# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000026979if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026980 withval=$with_bzlib; with_bzlib=$withval
26981else
26982 with_bzlib='yes'
26983fi
26984
26985
26986if test "$with_bzlib" != 'yes'; then
26987 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
26988fi
26989
26990have_bzlib='no'
26991if test "$with_bzlib" != 'no'; then
26992 BZLIB_LIBS=''
cristyad38abe2012-12-23 23:03:21 +000026993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26994$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000026996$as_echo_n "checking for BZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000026997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26998$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026999 failed=0
27000 passed=0
27001 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000027002 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027003if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027004 passed=`expr $passed + 1`
27005else
27006 failed=`expr $failed + 1`
27007fi
27008
27009
cristy8b350f62009-11-15 23:12:43 +000027010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027011$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027012if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027013 $as_echo_n "(cached) " >&6
27014else
27015 ac_check_lib_save_LIBS=$LIBS
27016LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027017cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027018/* end confdefs.h. */
27019
27020/* Override any GCC internal prototype to avoid an error.
27021 Use char because int might match the return type of a GCC
27022 builtin and then its argument prototype would still apply. */
27023#ifdef __cplusplus
27024extern "C"
27025#endif
27026char BZ2_bzDecompress ();
27027int
27028main ()
27029{
27030return BZ2_bzDecompress ();
27031 ;
27032 return 0;
27033}
27034_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027035if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027036 ac_cv_lib_bz2_BZ2_bzDecompress=yes
27037else
cristy8b350f62009-11-15 23:12:43 +000027038 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000027039fi
cristy8b350f62009-11-15 23:12:43 +000027040rm -f core conftest.err conftest.$ac_objext \
27041 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027042LIBS=$ac_check_lib_save_LIBS
27043fi
cristy8b350f62009-11-15 23:12:43 +000027044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027045$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027046if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027047 found_libbz=`expr $found_libbz + 1`
27048fi
27049
27050 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027052$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027053if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027054 $as_echo_n "(cached) " >&6
27055else
27056 ac_check_lib_save_LIBS=$LIBS
27057LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027058cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027059/* end confdefs.h. */
27060
27061/* Override any GCC internal prototype to avoid an error.
27062 Use char because int might match the return type of a GCC
27063 builtin and then its argument prototype would still apply. */
27064#ifdef __cplusplus
27065extern "C"
27066#endif
27067char _imp__BZ2_decompress ();
27068int
27069main ()
27070{
27071return _imp__BZ2_decompress ();
27072 ;
27073 return 0;
27074}
27075_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027076if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027077 ac_cv_lib_bz2__imp__BZ2_decompress=yes
27078else
cristy8b350f62009-11-15 23:12:43 +000027079 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000027080fi
cristy8b350f62009-11-15 23:12:43 +000027081rm -f core conftest.err conftest.$ac_objext \
27082 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027083LIBS=$ac_check_lib_save_LIBS
27084fi
cristy8b350f62009-11-15 23:12:43 +000027085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027086$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027087if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027088 found_libbz=`expr $found_libbz + 1`
27089fi
27090
27091 fi
27092 if test $found_libbz -gt 0; then
27093 passed=`expr $passed + 1`
27094 else
27095 failed=`expr $failed + 1`
27096 fi
cristy8b350f62009-11-15 23:12:43 +000027097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027098$as_echo_n "checking if BZLIB package is complete... " >&6; }
27099 if test $passed -gt 0; then
27100 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000027101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27102$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027103 have_bzlib='no (failed tests)'
27104 else
27105 BZLIB_LIBS='-lbz2'
27106 LIBS="$BZLIB_LIBS $LIBS"
27107
cristy8b350f62009-11-15 23:12:43 +000027108$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027109
cristyad38abe2012-12-23 23:03:21 +000027110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27111$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027112 have_bzlib='yes'
27113 fi
27114 else
cristyad38abe2012-12-23 23:03:21 +000027115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27116$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027117 fi
27118fi
cristy73bd4a52010-10-05 11:24:23 +000027119 if test "$have_bzlib" = 'yes'; then
27120 BZLIB_DELEGATE_TRUE=
27121 BZLIB_DELEGATE_FALSE='#'
27122else
27123 BZLIB_DELEGATE_TRUE='#'
27124 BZLIB_DELEGATE_FALSE=
27125fi
27126
cristy3ed852e2009-09-05 21:47:34 +000027127
27128
27129#
27130# Find the X11 include and library directories.
27131#
27132IPC_LIBS=''
27133X11_LIBS=''
27134XEXT_LIBS=''
27135XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000027136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000027137$as_echo_n "checking for X... " >&6; }
27138
27139
27140# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000027141if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000027142 withval=$with_x;
27143fi
27144
27145# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
27146if test "x$with_x" = xno; then
27147 # The user explicitly disabled X.
27148 have_x=disabled
27149else
27150 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000027151 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000027152 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000027153 $as_echo_n "(cached) " >&6
27154else
27155 # One or both of the vars are not set, and there is no cached value.
27156ac_x_includes=no ac_x_libraries=no
27157rm -f -r conftest.dir
27158if mkdir conftest.dir; then
27159 cd conftest.dir
27160 cat >Imakefile <<'_ACEOF'
27161incroot:
27162 @echo incroot='${INCROOT}'
27163usrlibdir:
27164 @echo usrlibdir='${USRLIBDIR}'
27165libdir:
27166 @echo libdir='${LIBDIR}'
27167_ACEOF
27168 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000027169 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000027170 for ac_var in incroot usrlibdir libdir; do
27171 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
27172 done
27173 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
27174 for ac_extension in a so sl dylib la dll; do
27175 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
27176 test -f "$ac_im_libdir/libX11.$ac_extension"; then
27177 ac_im_usrlibdir=$ac_im_libdir; break
27178 fi
27179 done
27180 # Screen out bogus values from the imake configuration. They are
27181 # bogus both because they are the default anyway, and because
27182 # using them would break gcc on systems where it needs fixed includes.
27183 case $ac_im_incroot in
27184 /usr/include) ac_x_includes= ;;
27185 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
27186 esac
27187 case $ac_im_usrlibdir in
27188 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
27189 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
27190 esac
27191 fi
27192 cd ..
27193 rm -f -r conftest.dir
27194fi
27195
27196# Standard set of common directories for X headers.
27197# Check X11 before X11Rn because it is often a symlink to the current release.
27198ac_x_header_dirs='
27199/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000027200/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027201/usr/X11R6/include
27202/usr/X11R5/include
27203/usr/X11R4/include
27204
27205/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000027206/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027207/usr/include/X11R6
27208/usr/include/X11R5
27209/usr/include/X11R4
27210
27211/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000027212/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027213/usr/local/X11R6/include
27214/usr/local/X11R5/include
27215/usr/local/X11R4/include
27216
27217/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000027218/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027219/usr/local/include/X11R6
27220/usr/local/include/X11R5
27221/usr/local/include/X11R4
27222
27223/usr/X386/include
27224/usr/x386/include
27225/usr/XFree86/include/X11
27226
27227/usr/include
27228/usr/local/include
27229/usr/unsupported/include
27230/usr/athena/include
27231/usr/local/x11r5/include
27232/usr/lpp/Xamples/include
27233
27234/usr/openwin/include
27235/usr/openwin/share/include'
27236
27237if test "$ac_x_includes" = no; then
27238 # Guess where to find include files, by looking for Xlib.h.
27239 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000027240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027241/* end confdefs.h. */
27242#include <X11/Xlib.h>
27243_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027244if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027245 # We can compile using X headers with no special include directory.
27246ac_x_includes=
27247else
cristyc7083c12009-10-14 03:16:55 +000027248 for ac_dir in $ac_x_header_dirs; do
27249 if test -r "$ac_dir/X11/Xlib.h"; then
27250 ac_x_includes=$ac_dir
27251 break
27252 fi
27253done
27254fi
cristyda16f162011-02-19 23:52:17 +000027255rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027256fi # $ac_x_includes = no
27257
27258if test "$ac_x_libraries" = no; then
27259 # Check for the libraries.
27260 # See if we find them without any special options.
27261 # Don't add to $LIBS permanently.
27262 ac_save_LIBS=$LIBS
27263 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027265/* end confdefs.h. */
27266#include <X11/Xlib.h>
27267int
27268main ()
27269{
27270XrmInitialize ()
27271 ;
27272 return 0;
27273}
27274_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027275if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027276 LIBS=$ac_save_LIBS
27277# We can link X programs with no special library path.
27278ac_x_libraries=
27279else
cristy8b350f62009-11-15 23:12:43 +000027280 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000027281for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
27282do
27283 # Don't even attempt the hair of trying to link an X program!
27284 for ac_extension in a so sl dylib la dll; do
27285 if test -r "$ac_dir/libX11.$ac_extension"; then
27286 ac_x_libraries=$ac_dir
27287 break 2
27288 fi
27289 done
27290done
27291fi
cristy8b350f62009-11-15 23:12:43 +000027292rm -f core conftest.err conftest.$ac_objext \
27293 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027294fi # $ac_x_libraries = no
27295
27296case $ac_x_includes,$ac_x_libraries in #(
27297 no,* | *,no | *\'*)
27298 # Didn't find X, or a directory has "'" in its name.
27299 ac_cv_have_x="have_x=no";; #(
27300 *)
27301 # Record where we found X for the cache.
27302 ac_cv_have_x="have_x=yes\
27303 ac_x_includes='$ac_x_includes'\
27304 ac_x_libraries='$ac_x_libraries'"
27305esac
27306fi
27307;; #(
27308 *) have_x=yes;;
27309 esac
27310 eval "$ac_cv_have_x"
27311fi # $with_x != no
27312
27313if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000027314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000027315$as_echo "$have_x" >&6; }
27316 no_x=yes
27317else
27318 # If each of the values was on the command line, it overrides each guess.
27319 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
27320 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
27321 # Update the cache value to reflect the command line values.
27322 ac_cv_have_x="have_x=yes\
27323 ac_x_includes='$x_includes'\
27324 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000027325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000027326$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
27327fi
27328
cristy3ed852e2009-09-05 21:47:34 +000027329if test "$no_x" = yes; then
27330 # Not all programs may use this symbol, but it does not hurt to define it.
27331
cristy8b350f62009-11-15 23:12:43 +000027332$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027333
27334 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
27335else
27336 if test -n "$x_includes"; then
27337 X_CFLAGS="$X_CFLAGS -I$x_includes"
27338 fi
27339
27340 # It would also be nice to do this for all -L options, not just this one.
27341 if test -n "$x_libraries"; then
27342 X_LIBS="$X_LIBS -L$x_libraries"
27343 # For Solaris; some versions of Sun CC require a space after -R and
27344 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000027345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000027346$as_echo_n "checking whether -R must be followed by a space... " >&6; }
27347 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
27348 ac_xsave_c_werror_flag=$ac_c_werror_flag
27349 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000027350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027351/* end confdefs.h. */
27352
27353int
27354main ()
27355{
27356
27357 ;
27358 return 0;
27359}
27360_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027361if ac_fn_c_try_link "$LINENO"; then :
27362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027363$as_echo "no" >&6; }
27364 X_LIBS="$X_LIBS -R$x_libraries"
27365else
cristy8b350f62009-11-15 23:12:43 +000027366 LIBS="$ac_xsave_LIBS -R $x_libraries"
27367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027368/* end confdefs.h. */
27369
27370int
27371main ()
27372{
27373
27374 ;
27375 return 0;
27376}
27377_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027378if ac_fn_c_try_link "$LINENO"; then :
27379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027380$as_echo "yes" >&6; }
27381 X_LIBS="$X_LIBS -R $x_libraries"
27382else
cristy8b350f62009-11-15 23:12:43 +000027383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000027384$as_echo "neither works" >&6; }
27385fi
cristy8b350f62009-11-15 23:12:43 +000027386rm -f core conftest.err conftest.$ac_objext \
27387 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027388fi
cristy8b350f62009-11-15 23:12:43 +000027389rm -f core conftest.err conftest.$ac_objext \
27390 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027391 ac_c_werror_flag=$ac_xsave_c_werror_flag
27392 LIBS=$ac_xsave_LIBS
27393 fi
27394
27395 # Check for system-dependent libraries X programs must link with.
27396 # Do this before checking for the system-independent R6 libraries
27397 # (-lICE), since we may need -lsocket or whatever for X linking.
27398
27399 if test "$ISC" = yes; then
27400 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
27401 else
27402 # Martyn Johnson says this is needed for Ultrix, if the X
27403 # libraries were built with DECnet support. And Karl Berry says
27404 # the Alpha needs dnet_stub (dnet does not exist).
27405 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000027406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027407/* end confdefs.h. */
27408
27409/* Override any GCC internal prototype to avoid an error.
27410 Use char because int might match the return type of a GCC
27411 builtin and then its argument prototype would still apply. */
27412#ifdef __cplusplus
27413extern "C"
27414#endif
27415char XOpenDisplay ();
27416int
27417main ()
27418{
27419return XOpenDisplay ();
27420 ;
27421 return 0;
27422}
27423_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027424if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027425
cristy8b350f62009-11-15 23:12:43 +000027426else
27427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000027428$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027429if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027430 $as_echo_n "(cached) " >&6
27431else
27432 ac_check_lib_save_LIBS=$LIBS
27433LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027434cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027435/* end confdefs.h. */
27436
27437/* Override any GCC internal prototype to avoid an error.
27438 Use char because int might match the return type of a GCC
27439 builtin and then its argument prototype would still apply. */
27440#ifdef __cplusplus
27441extern "C"
27442#endif
27443char dnet_ntoa ();
27444int
27445main ()
27446{
27447return dnet_ntoa ();
27448 ;
27449 return 0;
27450}
27451_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027452if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027453 ac_cv_lib_dnet_dnet_ntoa=yes
27454else
cristy8b350f62009-11-15 23:12:43 +000027455 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027456fi
cristy8b350f62009-11-15 23:12:43 +000027457rm -f core conftest.err conftest.$ac_objext \
27458 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027459LIBS=$ac_check_lib_save_LIBS
27460fi
cristy8b350f62009-11-15 23:12:43 +000027461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027462$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027463if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027464 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27465fi
27466
27467 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000027468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000027469$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027470if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027471 $as_echo_n "(cached) " >&6
27472else
27473 ac_check_lib_save_LIBS=$LIBS
27474LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027475cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027476/* end confdefs.h. */
27477
27478/* Override any GCC internal prototype to avoid an error.
27479 Use char because int might match the return type of a GCC
27480 builtin and then its argument prototype would still apply. */
27481#ifdef __cplusplus
27482extern "C"
27483#endif
27484char dnet_ntoa ();
27485int
27486main ()
27487{
27488return dnet_ntoa ();
27489 ;
27490 return 0;
27491}
27492_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027493if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027494 ac_cv_lib_dnet_stub_dnet_ntoa=yes
27495else
cristy8b350f62009-11-15 23:12:43 +000027496 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027497fi
cristy8b350f62009-11-15 23:12:43 +000027498rm -f core conftest.err conftest.$ac_objext \
27499 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027500LIBS=$ac_check_lib_save_LIBS
27501fi
cristy8b350f62009-11-15 23:12:43 +000027502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027503$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027504if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027505 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27506fi
27507
27508 fi
27509fi
cristy8b350f62009-11-15 23:12:43 +000027510rm -f core conftest.err conftest.$ac_objext \
27511 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027512 LIBS="$ac_xsave_LIBS"
27513
27514 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27515 # to get the SysV transport functions.
27516 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27517 # needs -lnsl.
27518 # The nsl library prevents programs from opening the X display
27519 # on Irix 5.2, according to T.E. Dickey.
27520 # The functions gethostbyname, getservbyname, and inet_addr are
27521 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000027522 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000027523if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027524
cristy3ed852e2009-09-05 21:47:34 +000027525fi
27526
cristy3ed852e2009-09-05 21:47:34 +000027527 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027529$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027530if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027531 $as_echo_n "(cached) " >&6
27532else
27533 ac_check_lib_save_LIBS=$LIBS
27534LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027535cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027536/* end confdefs.h. */
27537
27538/* Override any GCC internal prototype to avoid an error.
27539 Use char because int might match the return type of a GCC
27540 builtin and then its argument prototype would still apply. */
27541#ifdef __cplusplus
27542extern "C"
27543#endif
27544char gethostbyname ();
27545int
27546main ()
27547{
27548return gethostbyname ();
27549 ;
27550 return 0;
27551}
27552_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027553if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027554 ac_cv_lib_nsl_gethostbyname=yes
27555else
cristy8b350f62009-11-15 23:12:43 +000027556 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027557fi
cristy8b350f62009-11-15 23:12:43 +000027558rm -f core conftest.err conftest.$ac_objext \
27559 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027560LIBS=$ac_check_lib_save_LIBS
27561fi
cristy8b350f62009-11-15 23:12:43 +000027562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027563$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027564if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027565 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27566fi
27567
27568 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000027570$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027571if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027572 $as_echo_n "(cached) " >&6
27573else
27574 ac_check_lib_save_LIBS=$LIBS
27575LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027576cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027577/* end confdefs.h. */
27578
27579/* Override any GCC internal prototype to avoid an error.
27580 Use char because int might match the return type of a GCC
27581 builtin and then its argument prototype would still apply. */
27582#ifdef __cplusplus
27583extern "C"
27584#endif
27585char gethostbyname ();
27586int
27587main ()
27588{
27589return gethostbyname ();
27590 ;
27591 return 0;
27592}
27593_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027594if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027595 ac_cv_lib_bsd_gethostbyname=yes
27596else
cristy8b350f62009-11-15 23:12:43 +000027597 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027598fi
cristy8b350f62009-11-15 23:12:43 +000027599rm -f core conftest.err conftest.$ac_objext \
27600 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027601LIBS=$ac_check_lib_save_LIBS
27602fi
cristy8b350f62009-11-15 23:12:43 +000027603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027604$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027605if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027606 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27607fi
27608
27609 fi
27610 fi
27611
27612 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27613 # socket/setsockopt and other routines are undefined under SCO ODT
27614 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27615 # on later versions), says Simon Leinen: it contains gethostby*
27616 # variants that don't use the name server (or something). -lsocket
27617 # must be given before -lnsl if both are needed. We assume that
27618 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000027619 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000027620if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027621
cristy3ed852e2009-09-05 21:47:34 +000027622fi
27623
cristy3ed852e2009-09-05 21:47:34 +000027624 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000027625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000027626$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027627if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027628 $as_echo_n "(cached) " >&6
27629else
27630 ac_check_lib_save_LIBS=$LIBS
27631LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027632cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027633/* end confdefs.h. */
27634
27635/* Override any GCC internal prototype to avoid an error.
27636 Use char because int might match the return type of a GCC
27637 builtin and then its argument prototype would still apply. */
27638#ifdef __cplusplus
27639extern "C"
27640#endif
27641char connect ();
27642int
27643main ()
27644{
27645return connect ();
27646 ;
27647 return 0;
27648}
27649_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027650if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027651 ac_cv_lib_socket_connect=yes
27652else
cristy8b350f62009-11-15 23:12:43 +000027653 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000027654fi
cristy8b350f62009-11-15 23:12:43 +000027655rm -f core conftest.err conftest.$ac_objext \
27656 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027657LIBS=$ac_check_lib_save_LIBS
27658fi
cristy8b350f62009-11-15 23:12:43 +000027659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000027660$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000027661if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027662 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27663fi
27664
27665 fi
27666
27667 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000027668 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000027669if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027670
cristy3ed852e2009-09-05 21:47:34 +000027671fi
27672
cristy3ed852e2009-09-05 21:47:34 +000027673 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000027674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000027675$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027676if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027677 $as_echo_n "(cached) " >&6
27678else
27679 ac_check_lib_save_LIBS=$LIBS
27680LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027681cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027682/* end confdefs.h. */
27683
27684/* Override any GCC internal prototype to avoid an error.
27685 Use char because int might match the return type of a GCC
27686 builtin and then its argument prototype would still apply. */
27687#ifdef __cplusplus
27688extern "C"
27689#endif
27690char remove ();
27691int
27692main ()
27693{
27694return remove ();
27695 ;
27696 return 0;
27697}
27698_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027699if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027700 ac_cv_lib_posix_remove=yes
27701else
cristy8b350f62009-11-15 23:12:43 +000027702 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000027703fi
cristy8b350f62009-11-15 23:12:43 +000027704rm -f core conftest.err conftest.$ac_objext \
27705 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027706LIBS=$ac_check_lib_save_LIBS
27707fi
cristy8b350f62009-11-15 23:12:43 +000027708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000027709$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000027710if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027711 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27712fi
27713
27714 fi
27715
27716 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000027717 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000027718if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027719
cristy3ed852e2009-09-05 21:47:34 +000027720fi
27721
cristy3ed852e2009-09-05 21:47:34 +000027722 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000027723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027724$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027725if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027726 $as_echo_n "(cached) " >&6
27727else
27728 ac_check_lib_save_LIBS=$LIBS
27729LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027730cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027731/* end confdefs.h. */
27732
27733/* Override any GCC internal prototype to avoid an error.
27734 Use char because int might match the return type of a GCC
27735 builtin and then its argument prototype would still apply. */
27736#ifdef __cplusplus
27737extern "C"
27738#endif
27739char shmat ();
27740int
27741main ()
27742{
27743return shmat ();
27744 ;
27745 return 0;
27746}
27747_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027748if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027749 ac_cv_lib_ipc_shmat=yes
27750else
cristy8b350f62009-11-15 23:12:43 +000027751 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000027752fi
cristy8b350f62009-11-15 23:12:43 +000027753rm -f core conftest.err conftest.$ac_objext \
27754 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027755LIBS=$ac_check_lib_save_LIBS
27756fi
cristy8b350f62009-11-15 23:12:43 +000027757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000027758$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000027759if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027760 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27761fi
27762
27763 fi
27764 fi
27765
27766 # Check for libraries that X11R6 Xt/Xaw programs need.
27767 ac_save_LDFLAGS=$LDFLAGS
27768 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27769 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27770 # check for ICE first), but we must link in the order -lSM -lICE or
27771 # we get undefined symbols. So assume we have SM if we have ICE.
27772 # These have to be linked with before -lX11, unlike the other
27773 # libraries we check for below, so use a different variable.
27774 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000027775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000027776$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027777if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027778 $as_echo_n "(cached) " >&6
27779else
27780 ac_check_lib_save_LIBS=$LIBS
27781LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027782cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027783/* end confdefs.h. */
27784
27785/* Override any GCC internal prototype to avoid an error.
27786 Use char because int might match the return type of a GCC
27787 builtin and then its argument prototype would still apply. */
27788#ifdef __cplusplus
27789extern "C"
27790#endif
27791char IceConnectionNumber ();
27792int
27793main ()
27794{
27795return IceConnectionNumber ();
27796 ;
27797 return 0;
27798}
27799_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027800if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027801 ac_cv_lib_ICE_IceConnectionNumber=yes
27802else
cristy8b350f62009-11-15 23:12:43 +000027803 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000027804fi
cristy8b350f62009-11-15 23:12:43 +000027805rm -f core conftest.err conftest.$ac_objext \
27806 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027807LIBS=$ac_check_lib_save_LIBS
27808fi
cristy8b350f62009-11-15 23:12:43 +000027809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000027810$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000027811if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027812 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27813fi
27814
27815 LDFLAGS=$ac_save_LDFLAGS
27816
27817fi
27818
27819if test "$no_x" != 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000027820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27821$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000027823$as_echo_n "checking for X11... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27825$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027826 LDFLAGS="$LDFLAGS $X_LIBS"
27827 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
27828 LIBS="$X11_LIBS $LIBS"
27829 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
27830
27831
cristy8b350f62009-11-15 23:12:43 +000027832$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027833
27834 #
27835 # Check for X11 shared memory extension
27836 #
27837 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000027838 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000027839if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027840 have_shmctl='yes'
27841fi
27842
27843 if test "$have_shmctl" != 'yes'; then
27844 PERSIST_LIBS=$LIBS
27845 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000027846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027847/* end confdefs.h. */
27848
27849/* Override any GCC internal prototype to avoid an error.
27850 Use char because int might match the return type of a GCC
27851 builtin and then its argument prototype would still apply. */
27852#ifdef __cplusplus
27853extern "C"
27854#endif
27855char shmctl ();
27856int
27857main ()
27858{
27859return shmctl ();
27860 ;
27861 return 0;
27862}
27863_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027864if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027865 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000027866fi
cristy8b350f62009-11-15 23:12:43 +000027867rm -f core conftest.err conftest.$ac_objext \
27868 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027869 LIBS=$PERSIST_LIBS
27870 fi
27871
27872 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027874$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027875if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027876 $as_echo_n "(cached) " >&6
27877else
27878 ac_check_lib_save_LIBS=$LIBS
27879LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027880cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027881/* end confdefs.h. */
27882
27883/* Override any GCC internal prototype to avoid an error.
27884 Use char because int might match the return type of a GCC
27885 builtin and then its argument prototype would still apply. */
27886#ifdef __cplusplus
27887extern "C"
27888#endif
27889char XShmAttach ();
27890int
27891main ()
27892{
27893return XShmAttach ();
27894 ;
27895 return 0;
27896}
27897_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027898if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027899 ac_cv_lib_Xext_XShmAttach=yes
27900else
cristy8b350f62009-11-15 23:12:43 +000027901 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000027902fi
cristy8b350f62009-11-15 23:12:43 +000027903rm -f core conftest.err conftest.$ac_objext \
27904 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027905LIBS=$ac_check_lib_save_LIBS
27906fi
cristy8b350f62009-11-15 23:12:43 +000027907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000027908$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000027909if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027910 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027911$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027912
27913fi
27914
27915 fi
27916
27917 #
27918 # Check for X11 shape extension
27919 #
cristy8b350f62009-11-15 23:12:43 +000027920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027921$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027922if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027923 $as_echo_n "(cached) " >&6
27924else
27925 ac_check_lib_save_LIBS=$LIBS
27926LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027927cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027928/* end confdefs.h. */
27929
27930/* Override any GCC internal prototype to avoid an error.
27931 Use char because int might match the return type of a GCC
27932 builtin and then its argument prototype would still apply. */
27933#ifdef __cplusplus
27934extern "C"
27935#endif
27936char XShapeCombineMask ();
27937int
27938main ()
27939{
27940return XShapeCombineMask ();
27941 ;
27942 return 0;
27943}
27944_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027945if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027946 ac_cv_lib_Xext_XShapeCombineMask=yes
27947else
cristy8b350f62009-11-15 23:12:43 +000027948 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000027949fi
cristy8b350f62009-11-15 23:12:43 +000027950rm -f core conftest.err conftest.$ac_objext \
27951 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027952LIBS=$ac_check_lib_save_LIBS
27953fi
cristy8b350f62009-11-15 23:12:43 +000027954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000027955$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000027956if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027957 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027958$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027959
27960fi
27961
cristy8b350f62009-11-15 23:12:43 +000027962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000027963$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027964if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027965 $as_echo_n "(cached) " >&6
27966else
27967 ac_check_lib_save_LIBS=$LIBS
27968LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027969cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027970/* end confdefs.h. */
27971
27972/* Override any GCC internal prototype to avoid an error.
27973 Use char because int might match the return type of a GCC
27974 builtin and then its argument prototype would still apply. */
27975#ifdef __cplusplus
27976extern "C"
27977#endif
27978char XtSetEventDispatcher ();
27979int
27980main ()
27981{
27982return XtSetEventDispatcher ();
27983 ;
27984 return 0;
27985}
27986_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027987if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027988 ac_cv_lib_Xt_XtSetEventDispatcher=yes
27989else
cristy8b350f62009-11-15 23:12:43 +000027990 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000027991fi
cristy8b350f62009-11-15 23:12:43 +000027992rm -f core conftest.err conftest.$ac_objext \
27993 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027994LIBS=$ac_check_lib_save_LIBS
27995fi
cristy8b350f62009-11-15 23:12:43 +000027996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000027997$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000027998if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027999 XT_LIBS='-lXt'
28000fi
28001
28002 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
28003fi
28004if test "$no_x" != 'yes'; then
28005 have_x='yes'
28006else
28007 have_x='no'
28008fi
cristy73bd4a52010-10-05 11:24:23 +000028009 if test "$have_x" = 'yes'; then
28010 X11_DELEGATE_TRUE=
28011 X11_DELEGATE_FALSE='#'
28012else
28013 X11_DELEGATE_TRUE='#'
28014 X11_DELEGATE_FALSE=
28015fi
28016
cristy3ed852e2009-09-05 21:47:34 +000028017
28018
28019
28020
28021#
28022# Check for ZLIB
28023#
28024
28025# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000028026if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028027 withval=$with_zlib; with_zlib=$withval
28028else
28029 with_zlib='yes'
28030fi
28031
28032
28033if test "$with_zlib" != 'yes'; then
28034 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
28035fi
28036
28037have_zlib='no'
28038ZLIB_LIBS=''
28039if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28041$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000028043$as_echo_n "checking for ZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28045$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028046 ZLIB_LIBS=''
28047 failed=0
28048 passed=0
cristy8b350f62009-11-15 23:12:43 +000028049 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028050if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028051 passed=`expr $passed + 1`
28052else
28053 failed=`expr $failed + 1`
28054fi
28055
28056
cristy8b350f62009-11-15 23:12:43 +000028057 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028058if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028059 passed=`expr $passed + 1`
28060else
28061 failed=`expr $failed + 1`
28062fi
28063
28064
cristy8b350f62009-11-15 23:12:43 +000028065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028066$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028067if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028068 $as_echo_n "(cached) " >&6
28069else
28070 ac_check_lib_save_LIBS=$LIBS
28071LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028072cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028073/* end confdefs.h. */
28074
28075/* Override any GCC internal prototype to avoid an error.
28076 Use char because int might match the return type of a GCC
28077 builtin and then its argument prototype would still apply. */
28078#ifdef __cplusplus
28079extern "C"
28080#endif
28081char compress ();
28082int
28083main ()
28084{
28085return compress ();
28086 ;
28087 return 0;
28088}
28089_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028090if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028091 ac_cv_lib_z_compress=yes
28092else
cristy8b350f62009-11-15 23:12:43 +000028093 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000028094fi
cristy8b350f62009-11-15 23:12:43 +000028095rm -f core conftest.err conftest.$ac_objext \
28096 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028097LIBS=$ac_check_lib_save_LIBS
28098fi
cristy8b350f62009-11-15 23:12:43 +000028099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000028100$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000028101if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028102 passed=`expr $passed + 1`
28103else
28104 failed=`expr $failed + 1`
28105fi
28106
cristy8b350f62009-11-15 23:12:43 +000028107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028108$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028109if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028110 $as_echo_n "(cached) " >&6
28111else
28112 ac_check_lib_save_LIBS=$LIBS
28113LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028114cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028115/* end confdefs.h. */
28116
28117/* Override any GCC internal prototype to avoid an error.
28118 Use char because int might match the return type of a GCC
28119 builtin and then its argument prototype would still apply. */
28120#ifdef __cplusplus
28121extern "C"
28122#endif
28123char uncompress ();
28124int
28125main ()
28126{
28127return uncompress ();
28128 ;
28129 return 0;
28130}
28131_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028132if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028133 ac_cv_lib_z_uncompress=yes
28134else
cristy8b350f62009-11-15 23:12:43 +000028135 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000028136fi
cristy8b350f62009-11-15 23:12:43 +000028137rm -f core conftest.err conftest.$ac_objext \
28138 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028139LIBS=$ac_check_lib_save_LIBS
28140fi
cristy8b350f62009-11-15 23:12:43 +000028141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000028142$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000028143if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028144 passed=`expr $passed + 1`
28145else
28146 failed=`expr $failed + 1`
28147fi
28148
cristy8b350f62009-11-15 23:12:43 +000028149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028150$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028151if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028152 $as_echo_n "(cached) " >&6
28153else
28154 ac_check_lib_save_LIBS=$LIBS
28155LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028156cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028157/* end confdefs.h. */
28158
28159/* Override any GCC internal prototype to avoid an error.
28160 Use char because int might match the return type of a GCC
28161 builtin and then its argument prototype would still apply. */
28162#ifdef __cplusplus
28163extern "C"
28164#endif
28165char deflate ();
28166int
28167main ()
28168{
28169return deflate ();
28170 ;
28171 return 0;
28172}
28173_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028174if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028175 ac_cv_lib_z_deflate=yes
28176else
cristy8b350f62009-11-15 23:12:43 +000028177 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000028178fi
cristy8b350f62009-11-15 23:12:43 +000028179rm -f core conftest.err conftest.$ac_objext \
28180 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028181LIBS=$ac_check_lib_save_LIBS
28182fi
cristy8b350f62009-11-15 23:12:43 +000028183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028184$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000028185if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028186 passed=`expr $passed + 1`
28187else
28188 failed=`expr $failed + 1`
28189fi
28190
cristy8b350f62009-11-15 23:12:43 +000028191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028192$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028193if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028194 $as_echo_n "(cached) " >&6
28195else
28196 ac_check_lib_save_LIBS=$LIBS
28197LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028198cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028199/* end confdefs.h. */
28200
28201/* Override any GCC internal prototype to avoid an error.
28202 Use char because int might match the return type of a GCC
28203 builtin and then its argument prototype would still apply. */
28204#ifdef __cplusplus
28205extern "C"
28206#endif
28207char inflate ();
28208int
28209main ()
28210{
28211return inflate ();
28212 ;
28213 return 0;
28214}
28215_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028216if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028217 ac_cv_lib_z_inflate=yes
28218else
cristy8b350f62009-11-15 23:12:43 +000028219 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000028220fi
cristy8b350f62009-11-15 23:12:43 +000028221rm -f core conftest.err conftest.$ac_objext \
28222 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028223LIBS=$ac_check_lib_save_LIBS
28224fi
cristy8b350f62009-11-15 23:12:43 +000028225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028226$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000028227if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028228 passed=`expr $passed + 1`
28229else
28230 failed=`expr $failed + 1`
28231fi
28232
cristy8b350f62009-11-15 23:12:43 +000028233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028234$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028235if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028236 $as_echo_n "(cached) " >&6
28237else
28238 ac_check_lib_save_LIBS=$LIBS
28239LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028240cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028241/* end confdefs.h. */
28242
28243/* Override any GCC internal prototype to avoid an error.
28244 Use char because int might match the return type of a GCC
28245 builtin and then its argument prototype would still apply. */
28246#ifdef __cplusplus
28247extern "C"
28248#endif
28249char gzseek ();
28250int
28251main ()
28252{
28253return gzseek ();
28254 ;
28255 return 0;
28256}
28257_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028258if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028259 ac_cv_lib_z_gzseek=yes
28260else
cristy8b350f62009-11-15 23:12:43 +000028261 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000028262fi
cristy8b350f62009-11-15 23:12:43 +000028263rm -f core conftest.err conftest.$ac_objext \
28264 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028265LIBS=$ac_check_lib_save_LIBS
28266fi
cristy8b350f62009-11-15 23:12:43 +000028267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000028268$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000028269if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028270 passed=`expr $passed + 1`
28271else
28272 failed=`expr $failed + 1`
28273fi
28274
cristy8b350f62009-11-15 23:12:43 +000028275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028276$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028277if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028278 $as_echo_n "(cached) " >&6
28279else
28280 ac_check_lib_save_LIBS=$LIBS
28281LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028282cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028283/* end confdefs.h. */
28284
28285/* Override any GCC internal prototype to avoid an error.
28286 Use char because int might match the return type of a GCC
28287 builtin and then its argument prototype would still apply. */
28288#ifdef __cplusplus
28289extern "C"
28290#endif
28291char gztell ();
28292int
28293main ()
28294{
28295return gztell ();
28296 ;
28297 return 0;
28298}
28299_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028300if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028301 ac_cv_lib_z_gztell=yes
28302else
cristy8b350f62009-11-15 23:12:43 +000028303 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000028304fi
cristy8b350f62009-11-15 23:12:43 +000028305rm -f core conftest.err conftest.$ac_objext \
28306 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028307LIBS=$ac_check_lib_save_LIBS
28308fi
cristy8b350f62009-11-15 23:12:43 +000028309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000028310$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000028311if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028312 passed=`expr $passed + 1`
28313else
28314 failed=`expr $failed + 1`
28315fi
28316
cristy8b350f62009-11-15 23:12:43 +000028317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028318$as_echo_n "checking if ZLIB package is complete... " >&6; }
28319 if test $passed -gt 0; then
28320 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28322$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028323 have_zlib='no (failed tests)'
28324 else
28325 ZLIB_LIBS='-lz'
28326 LIBS="$ZLIB_LIBS $LIBS"
28327
cristy8b350f62009-11-15 23:12:43 +000028328$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028329
cristyad38abe2012-12-23 23:03:21 +000028330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28331$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028332 have_zlib='yes'
28333 fi
28334 else
cristyad38abe2012-12-23 23:03:21 +000028335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28336$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028337 fi
28338fi
cristy73bd4a52010-10-05 11:24:23 +000028339 if test "$have_zlib" = 'yes'; then
28340 ZLIB_DELEGATE_TRUE=
28341 ZLIB_DELEGATE_FALSE='#'
28342else
28343 ZLIB_DELEGATE_TRUE='#'
28344 ZLIB_DELEGATE_FALSE=
28345fi
28346
cristy3ed852e2009-09-05 21:47:34 +000028347
28348
cristy5eef09f2012-10-16 12:08:28 +000028349# whether modules are built or not.
28350with_ltdl='yes'
28351have_ltdl='no'
28352LTDL_LIBS=''
28353if test "$build_modules" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000028354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28355$as_echo "-------------------------------------------------------------" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000028356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libltdl" >&5
28357$as_echo_n "checking for libltdl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28359$as_echo "" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000028360 failed=0
28361 passed=0
28362 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
28363if test "x$ac_cv_header_ltdl_h" = xyes; then :
28364 passed=`expr $passed + 1`
28365else
28366 failed=`expr $failed + 1`
28367fi
28368
28369
28370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
28371$as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
28372if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then :
28373 $as_echo_n "(cached) " >&6
28374else
28375 ac_check_lib_save_LIBS=$LIBS
28376LIBS="-lltdl $LIBS"
28377cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28378/* end confdefs.h. */
28379
28380/* Override any GCC internal prototype to avoid an error.
28381 Use char because int might match the return type of a GCC
28382 builtin and then its argument prototype would still apply. */
28383#ifdef __cplusplus
28384extern "C"
28385#endif
28386char lt_dlinit ();
28387int
28388main ()
28389{
28390return lt_dlinit ();
28391 ;
28392 return 0;
28393}
28394_ACEOF
28395if ac_fn_c_try_link "$LINENO"; then :
28396 ac_cv_lib_ltdl_lt_dlinit=yes
28397else
28398 ac_cv_lib_ltdl_lt_dlinit=no
28399fi
28400rm -f core conftest.err conftest.$ac_objext \
28401 conftest$ac_exeext conftest.$ac_ext
28402LIBS=$ac_check_lib_save_LIBS
28403fi
28404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
28405$as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
28406if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then :
28407 passed=`expr $passed + 1`
28408else
28409 failed=`expr $failed + 1`
28410fi
28411
28412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libltdl package is complete" >&5
28413$as_echo_n "checking if libltdl package is complete... " >&6; }
28414 if test $passed -gt 0 ; then
28415 if test $failed -gt 0 ; then
28416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28417$as_echo "no -- some components failed test" >&6; }
28418 have_ltdl='no (failed tests)'
28419 else
28420 LTDL_LIBS='-lltdl'
28421 LIBS="$LTDL_LIBS $LIBS"
28422
28423$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
28424
28425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28426$as_echo "yes" >&6; }
28427 have_ltdl='yes'
28428 fi
28429 else
28430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28431$as_echo "no" >&6; }
28432 fi
cristyaf4cbf32012-10-16 23:47:41 +000028433 if test "$have_ltdl" != 'yes' ; then
28434 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28435$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28436as_fn_error 1 "libltdl is required for modules build
28437See \`config.log' for more details" "$LINENO" 5; }
28438 fi
cristy5eef09f2012-10-16 12:08:28 +000028439fi
28440 if test "$have_ltdl" != 'no'; then
28441 WITH_LTDL_TRUE=
28442 WITH_LTDL_FALSE='#'
28443else
28444 WITH_LTDL_TRUE='#'
28445 WITH_LTDL_FALSE=
28446fi
28447
28448
cristy3ed852e2009-09-05 21:47:34 +000028449#
28450# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
28451#
28452LIB_DL=''
28453if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000028455$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028456if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028457 $as_echo_n "(cached) " >&6
28458else
28459 ac_check_lib_save_LIBS=$LIBS
28460LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028461cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028462/* end confdefs.h. */
28463
28464/* Override any GCC internal prototype to avoid an error.
28465 Use char because int might match the return type of a GCC
28466 builtin and then its argument prototype would still apply. */
28467#ifdef __cplusplus
28468extern "C"
28469#endif
28470char dlopen ();
28471int
28472main ()
28473{
28474return dlopen ();
28475 ;
28476 return 0;
28477}
28478_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028479if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028480 ac_cv_lib_dl_dlopen=yes
28481else
cristy8b350f62009-11-15 23:12:43 +000028482 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000028483fi
cristy8b350f62009-11-15 23:12:43 +000028484rm -f core conftest.err conftest.$ac_objext \
28485 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028486LIBS=$ac_check_lib_save_LIBS
28487fi
cristy8b350f62009-11-15 23:12:43 +000028488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028489$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000028490if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028491 LIB_DL='-ldl'
28492fi
28493
28494 LIBS="$LIB_DL $LIBS"
28495fi
28496
28497
28498
28499#
cristy5a3dc992014-12-05 19:50:04 +000028500# Set Apple font directory.
28501#
28502
28503# Check whether --with-apple-font-dir was given.
28504if test "${with_apple_font_dir+set}" = set; then :
28505 withval=$with_apple_font_dir; with_apple_font_dir=$withval
28506else
28507 with_apple_font_dir='default'
28508fi
28509
28510
28511if test "$with_apple_font_dir" != 'default'; then
28512 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-apple-font-dir=$with_apple_font_dir "
28513fi
28514
28515
28516#
cristy3ed852e2009-09-05 21:47:34 +000028517# Check for Autotrace delegate library.
28518#
28519
28520# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000028521if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028522 withval=$with_autotrace; with_autotrace=$withval
28523else
28524 with_autotrace='no'
28525fi
28526
28527
28528if test "$with_autotrace" != 'yes'; then
28529 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
28530fi
28531
28532have_autotrace='no'
28533AUTOTRACE_CFLAGS=""
28534AUTOTRACE_LIBS=""
28535AUTOTRACE_PKG=""
28536if test "x$with_autotrace" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000028537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28538$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028539
28540pkg_failed=no
28541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
28542$as_echo_n "checking for AUTOTRACE... " >&6; }
28543
28544if test -n "$AUTOTRACE_CFLAGS"; then
28545 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
28546 elif test -n "$PKG_CONFIG"; then
28547 if test -n "$PKG_CONFIG" && \
28548 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28549 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28550 ac_status=$?
28551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28552 test $ac_status = 0; }; then
28553 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
28554else
28555 pkg_failed=yes
28556fi
28557 else
28558 pkg_failed=untried
28559fi
28560if test -n "$AUTOTRACE_LIBS"; then
28561 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
28562 elif test -n "$PKG_CONFIG"; then
28563 if test -n "$PKG_CONFIG" && \
28564 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28565 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28566 ac_status=$?
28567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28568 test $ac_status = 0; }; then
28569 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
28570else
28571 pkg_failed=yes
28572fi
28573 else
28574 pkg_failed=untried
28575fi
28576
28577
28578
28579if test $pkg_failed = yes; then
28580
28581if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28582 _pkg_short_errors_supported=yes
28583else
28584 _pkg_short_errors_supported=no
28585fi
28586 if test $_pkg_short_errors_supported = yes; then
28587 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
28588 else
28589 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
28590 fi
28591 # Put the nasty error message in config.log where it belongs
28592 echo "$AUTOTRACE_PKG_ERRORS" >&5
28593
28594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28595$as_echo "no" >&6; }
28596 have_autotrace=no
28597elif test $pkg_failed = untried; then
28598 have_autotrace=no
28599else
28600 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
28601 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
28602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28603$as_echo "yes" >&6; }
28604 have_autotrace=yes
28605fi
cristyad38abe2012-12-23 23:03:21 +000028606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28607$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028608fi
28609
28610if test "$have_autotrace" = 'yes'; then
28611 failed=0
28612
cristy8b350f62009-11-15 23:12:43 +000028613$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028614
cristyc6722092012-10-14 00:19:31 +000028615 if test "$build_modules" = 'no'; then
cristyfa161182012-12-19 15:45:28 +000028616 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000028617 fi
28618fi
28619
cristy73bd4a52010-10-05 11:24:23 +000028620 if test "$have_autotrace" = 'yes'; then
28621 AUTOTRACE_DELEGATE_TRUE=
28622 AUTOTRACE_DELEGATE_FALSE='#'
28623else
28624 AUTOTRACE_DELEGATE_TRUE='#'
28625 AUTOTRACE_DELEGATE_FALSE=
28626fi
28627
cristy3ed852e2009-09-05 21:47:34 +000028628
28629
28630
28631
28632#
28633# Check for Display Postscript delegate library.
28634#
28635
28636# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000028637if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028638 withval=$with_dps; with_dps=$withval
28639else
28640 with_dps='yes'
28641fi
28642
28643
28644if test "$with_dps" != 'yes'; then
28645 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
28646fi
28647
28648have_dps='no'
28649DPS_LIBS=''
28650if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28652$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000028654$as_echo_n "checking for DPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28656$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028657 failed=0
28658 passed=0
28659 PERSIST_CPPFLAGS="$CPPFLAGS"
28660 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000028661 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 +000028662if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028663 passed=`expr $passed + 1`
28664else
28665 failed=`expr $failed + 1`
28666fi
28667
28668
28669 # DPS issues:
28670 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
28671 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
28672 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
28673 # ImageMagick itself doesn't use -lXt.
28674 have_libdps='no'
28675 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000028676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028677$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028678if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028679 $as_echo_n "(cached) " >&6
28680else
28681 ac_check_lib_save_LIBS=$LIBS
28682LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028683cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028684/* end confdefs.h. */
28685
28686/* Override any GCC internal prototype to avoid an error.
28687 Use char because int might match the return type of a GCC
28688 builtin and then its argument prototype would still apply. */
28689#ifdef __cplusplus
28690extern "C"
28691#endif
28692char DPSInitialize ();
28693int
28694main ()
28695{
28696return DPSInitialize ();
28697 ;
28698 return 0;
28699}
28700_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028701if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028702 ac_cv_lib_dps_DPSInitialize=yes
28703else
cristy8b350f62009-11-15 23:12:43 +000028704 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028705fi
cristy8b350f62009-11-15 23:12:43 +000028706rm -f core conftest.err conftest.$ac_objext \
28707 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028708LIBS=$ac_check_lib_save_LIBS
28709fi
cristy8b350f62009-11-15 23:12:43 +000028710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028711$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028712if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028713 have_libdps='yes'
28714else
28715 have_libdps='no'
28716fi
28717
28718 if test "$have_libdps" != 'yes'; then
28719 # Unset cache variable so we can try again.
28720 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000028721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028722$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028723if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028724 $as_echo_n "(cached) " >&6
28725else
28726 ac_check_lib_save_LIBS=$LIBS
28727LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028728cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028729/* end confdefs.h. */
28730
28731/* Override any GCC internal prototype to avoid an error.
28732 Use char because int might match the return type of a GCC
28733 builtin and then its argument prototype would still apply. */
28734#ifdef __cplusplus
28735extern "C"
28736#endif
28737char DPSInitialize ();
28738int
28739main ()
28740{
28741return DPSInitialize ();
28742 ;
28743 return 0;
28744}
28745_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028746if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028747 ac_cv_lib_dps_DPSInitialize=yes
28748else
cristy8b350f62009-11-15 23:12:43 +000028749 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028750fi
cristy8b350f62009-11-15 23:12:43 +000028751rm -f core conftest.err conftest.$ac_objext \
28752 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028753LIBS=$ac_check_lib_save_LIBS
28754fi
cristy8b350f62009-11-15 23:12:43 +000028755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028756$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028757if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028758 have_libdps='yes'
28759else
28760 have_libdps='no'
28761fi
28762
28763 if test "$have_libdps" = 'yes'; then
28764 LIBDPS_XT='-lXt'
28765 fi
28766 fi
28767 if test "$have_libdps" = 'yes'; then
28768 passed=`expr $passed + 1`
28769 else
28770 failed=`expr $failed + 1`
28771 fi
cristy8b350f62009-11-15 23:12:43 +000028772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000028773$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028774if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028775 $as_echo_n "(cached) " >&6
28776else
28777 ac_check_lib_save_LIBS=$LIBS
28778LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028779cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028780/* end confdefs.h. */
28781
28782/* Override any GCC internal prototype to avoid an error.
28783 Use char because int might match the return type of a GCC
28784 builtin and then its argument prototype would still apply. */
28785#ifdef __cplusplus
28786extern "C"
28787#endif
28788char XDPSPixelsPerPoint ();
28789int
28790main ()
28791{
28792return XDPSPixelsPerPoint ();
28793 ;
28794 return 0;
28795}
28796_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028797if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028798 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
28799else
cristy8b350f62009-11-15 23:12:43 +000028800 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000028801fi
cristy8b350f62009-11-15 23:12:43 +000028802rm -f core conftest.err conftest.$ac_objext \
28803 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028804LIBS=$ac_check_lib_save_LIBS
28805fi
cristy8b350f62009-11-15 23:12:43 +000028806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000028807$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000028808if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028809 passed=`expr $passed + 1`
28810else
28811 failed=`expr $failed + 1`
28812fi
28813
cristy8b350f62009-11-15 23:12:43 +000028814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028815$as_echo_n "checking if DPS package is complete... " >&6; }
28816 if test $passed -gt 0; then
28817 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28819$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028820 have_dps='no (failed tests)'
28821 CPPFLAGS="$PERSIST_CPPFLAGS"
28822 else
28823 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
28824 LIBS="$DPS_LIBS $LIBS"
28825
cristy8b350f62009-11-15 23:12:43 +000028826$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028827
cristyad38abe2012-12-23 23:03:21 +000028828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28829$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028830 have_dps='yes'
28831 fi
28832 else
cristyad38abe2012-12-23 23:03:21 +000028833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28834$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028835 CPPFLAGS=$PERSIST_CPPFLAGS
28836 fi
28837fi
cristy73bd4a52010-10-05 11:24:23 +000028838 if test "$have_dps" = 'yes'; then
28839 DPS_DELEGATE_TRUE=
28840 DPS_DELEGATE_FALSE='#'
28841else
28842 DPS_DELEGATE_TRUE='#'
28843 DPS_DELEGATE_FALSE=
28844fi
28845
cristy3ed852e2009-09-05 21:47:34 +000028846
28847
28848
28849#
cristy430a7312010-01-21 20:44:04 +000028850# Set DejaVu font directory.
28851#
28852
28853# Check whether --with-dejavu-font-dir was given.
28854if test "${with_dejavu_font_dir+set}" = set; then :
28855 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
28856else
28857 with_dejavu_font_dir='default'
28858fi
28859
28860
28861if test "$with_dejavu_font_dir" != 'default'; then
28862 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
28863fi
28864
28865
28866#
cristy3ed852e2009-09-05 21:47:34 +000028867# Check for FFTW delegate library.
28868#
28869
28870# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000028871if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028872 withval=$with_fftw; with_fftw=$withval
28873else
28874 with_fftw='yes'
28875fi
28876
28877
28878if test "$with_fftw" != 'yes'; then
28879 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
28880fi
28881
cristy81beccd2011-10-03 18:17:24 +000028882have_fftw='no'
28883FFTW_LIBS=''
28884if test "$with_fftw" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28886$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
28888$as_echo_n "checking for FFTW... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28890$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028891 failed=0
28892 passed=0
28893 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
28894if test "x$ac_cv_header_fftw3_h" = xyes; then :
28895 passed=`expr $passed + 1`
28896else
28897 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028898fi
28899
cristy81beccd2011-10-03 18:17:24 +000028900
28901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
28902$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
28903if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
28904 $as_echo_n "(cached) " >&6
28905else
28906 ac_check_lib_save_LIBS=$LIBS
28907LIBS="-lfftw3 $LIBS"
28908cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28909/* end confdefs.h. */
28910
28911/* Override any GCC internal prototype to avoid an error.
28912 Use char because int might match the return type of a GCC
28913 builtin and then its argument prototype would still apply. */
28914#ifdef __cplusplus
28915extern "C"
28916#endif
28917char fftw_execute ();
28918int
28919main ()
28920{
28921return fftw_execute ();
28922 ;
28923 return 0;
28924}
28925_ACEOF
28926if ac_fn_c_try_link "$LINENO"; then :
28927 ac_cv_lib_fftw3_fftw_execute=yes
28928else
28929 ac_cv_lib_fftw3_fftw_execute=no
28930fi
28931rm -f core conftest.err conftest.$ac_objext \
28932 conftest$ac_exeext conftest.$ac_ext
28933LIBS=$ac_check_lib_save_LIBS
28934fi
28935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
28936$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
28937if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
28938 passed=`expr $passed + 1`
28939else
28940 failed=`expr $failed + 1`
28941fi
28942
28943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
28944$as_echo_n "checking if FFTW package is complete... " >&6; }
28945 if test $passed -gt 0; then
28946 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28948$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028949 have_fftw='no (failed tests)'
28950 else
28951 FFTW_LIBS='-lfftw3'
28952 LIBS="$FFTW_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000028953
cristy8b350f62009-11-15 23:12:43 +000028954$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028955
cristyad38abe2012-12-23 23:03:21 +000028956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28957$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028958 have_fftw='yes'
28959 fi
28960 else
cristyad38abe2012-12-23 23:03:21 +000028961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28962$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028963 fi
28964fi
cristy73bd4a52010-10-05 11:24:23 +000028965 if test "$have_fftw" = 'yes'; then
28966 FFTW_DELEGATE_TRUE=
28967 FFTW_DELEGATE_FALSE='#'
28968else
28969 FFTW_DELEGATE_TRUE='#'
28970 FFTW_DELEGATE_FALSE=
28971fi
28972
cristy3ed852e2009-09-05 21:47:34 +000028973
28974
28975
28976#
28977# Check for FlashPIX delegate library.
28978#
28979
28980# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000028981if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028982 withval=$with_fpx; with_fpx=$withval
28983else
28984 with_fpx='yes'
28985fi
28986
28987
28988if test "$with_fpx" != 'yes'; then
28989 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
28990fi
28991
28992have_fpx='no'
28993FPX_LIBS=''
28994if test "$with_fpx" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28996$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000028998$as_echo_n "checking for FlashPIX... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29000$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029001 failed=0
29002 passed=0
29003 ac_ext=cpp
29004ac_cpp='$CXXCPP $CPPFLAGS'
29005ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29006ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29007ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29008
29009
cristy8b350f62009-11-15 23:12:43 +000029010ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029011if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029012 passed=`expr $passed + 1`
29013else
29014 failed=`expr $failed + 1`
29015fi
29016
29017
cristy8b350f62009-11-15 23:12:43 +000029018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000029019$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029020if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029021 $as_echo_n "(cached) " >&6
29022else
29023 ac_check_lib_save_LIBS=$LIBS
29024LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029025cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029026/* end confdefs.h. */
29027
29028/* Override any GCC internal prototype to avoid an error.
29029 Use char because int might match the return type of a GCC
29030 builtin and then its argument prototype would still apply. */
29031#ifdef __cplusplus
29032extern "C"
29033#endif
29034char FPX_OpenImageByFilename ();
29035int
29036main ()
29037{
29038return FPX_OpenImageByFilename ();
29039 ;
29040 return 0;
29041}
29042_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029043if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029044 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
29045else
cristy8b350f62009-11-15 23:12:43 +000029046 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000029047fi
cristy8b350f62009-11-15 23:12:43 +000029048rm -f core conftest.err conftest.$ac_objext \
29049 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029050LIBS=$ac_check_lib_save_LIBS
29051fi
cristy8b350f62009-11-15 23:12:43 +000029052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000029053$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000029054if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029055 passed=`expr $passed + 1`
29056else
29057 failed=`expr $failed + 1`
29058fi
29059
29060 ac_ext=c
29061ac_cpp='$CPP $CPPFLAGS'
29062ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29063ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29064ac_compiler_gnu=$ac_cv_c_compiler_gnu
29065
cristy8b350f62009-11-15 23:12:43 +000029066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029067$as_echo_n "checking if FlashPIX package is complete... " >&6; }
29068 if test $passed -gt 0; then
29069 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29071$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029072 have_fpx='no (failed tests)'
29073 else
29074 FPX_LIBS='-lfpx'
29075
cristy8b350f62009-11-15 23:12:43 +000029076$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029077
cristyad38abe2012-12-23 23:03:21 +000029078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29079$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029080 have_fpx='yes'
29081 PERLMAINCC="$CXX"
29082 fi
29083 else
cristyad38abe2012-12-23 23:03:21 +000029084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29085$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029086 fi
29087fi
cristy73bd4a52010-10-05 11:24:23 +000029088 if test "$have_fpx" = 'yes'; then
29089 FPX_DELEGATE_TRUE=
29090 FPX_DELEGATE_FALSE='#'
29091else
29092 FPX_DELEGATE_TRUE='#'
29093 FPX_DELEGATE_FALSE=
29094fi
29095
cristy3ed852e2009-09-05 21:47:34 +000029096
cristy853d9902014-08-21 18:50:43 +000029097
29098
29099#
29100# Check for DJVU delegate library.
29101#
29102
29103# Check whether --with-djvu was given.
29104if test "${with_djvu+set}" = set; then :
29105 withval=$with_djvu; with_djvu=$withval
29106else
29107 with_djvu='yes'
29108fi
29109
29110
29111if test "$with_djvu" != 'yes'; then
29112 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
29113fi
29114
29115have_djvu='no'
29116DJVU_LIBS=''
29117if test "$with_djvu" != 'no'; then
29118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29119$as_echo "-------------------------------------------------------------" >&6; }
29120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
29121$as_echo_n "checking for DJVU... " >&6; }
29122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29123$as_echo "" >&6; }
29124 failed=0
29125 passed=0
29126 ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
29127if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
29128 passed=`expr $passed + 1`
29129else
29130 failed=`expr $failed + 1`
29131fi
29132
29133
29134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
29135$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
29136if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
29137 $as_echo_n "(cached) " >&6
29138else
29139 ac_check_lib_save_LIBS=$LIBS
29140LIBS="-ldjvulibre $LIBS"
29141cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29142/* end confdefs.h. */
29143
29144/* Override any GCC internal prototype to avoid an error.
29145 Use char because int might match the return type of a GCC
29146 builtin and then its argument prototype would still apply. */
29147#ifdef __cplusplus
29148extern "C"
29149#endif
29150char ddjvu_context_create ();
29151int
29152main ()
29153{
29154return ddjvu_context_create ();
29155 ;
29156 return 0;
29157}
29158_ACEOF
29159if ac_fn_c_try_link "$LINENO"; then :
29160 ac_cv_lib_djvulibre_ddjvu_context_create=yes
29161else
29162 ac_cv_lib_djvulibre_ddjvu_context_create=no
29163fi
29164rm -f core conftest.err conftest.$ac_objext \
29165 conftest$ac_exeext conftest.$ac_ext
29166LIBS=$ac_check_lib_save_LIBS
29167fi
29168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
29169$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
29170if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
29171 passed=`expr $passed + 1`
29172else
29173 failed=`expr $failed + 1`
29174fi
29175
29176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
29177$as_echo_n "checking if DJVU package is complete... " >&6; }
29178 if test $passed -gt 0; then
29179 if test $failed -gt 0; then
29180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29181$as_echo "no -- some components failed test" >&6; }
29182 have_djvu='no (failed tests)'
29183 else
29184 DJVU_LIBS='-ldjvulibre'
29185 LIBS="$DJVU_LIBS $LIBS"
29186
29187$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
29188
29189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29190$as_echo "yes" >&6; }
29191 have_djvu='yes'
29192 fi
29193 else
29194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29195$as_echo "no" >&6; }
29196 fi
29197fi
29198 if test "$have_djvu" = 'yes'; then
29199 DJVU_DELEGATE_TRUE=
29200 DJVU_DELEGATE_FALSE='#'
29201else
29202 DJVU_DELEGATE_TRUE='#'
29203 DJVU_DELEGATE_FALSE=
29204fi
29205
29206
cristy3ed852e2009-09-05 21:47:34 +000029207
29208
29209#
29210# Check for fontconfig delegate library.
29211#
29212
29213# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000029214if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029215 withval=$with_fontconfig; with_fontconfig=$withval
29216else
cristyfc3d0222012-02-07 15:05:57 +000029217 with_fontconfig='yes'
cristy3ed852e2009-09-05 21:47:34 +000029218fi
29219
29220
29221if test "$with_fontconfig" != 'yes'; then
29222 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
29223fi
29224
29225have_fontconfig='no'
29226FONTCONFIG_CFLAGS=""
29227FONTCONFIG_LIBS=""
29228FONTCONFIG_PKG=""
29229if test "x$with_fontconfig" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29231$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029232
29233pkg_failed=no
29234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
29235$as_echo_n "checking for FONTCONFIG... " >&6; }
29236
29237if test -n "$FONTCONFIG_CFLAGS"; then
29238 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
29239 elif test -n "$PKG_CONFIG"; then
29240 if test -n "$PKG_CONFIG" && \
29241 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29242 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29243 ac_status=$?
29244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29245 test $ac_status = 0; }; then
29246 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
29247else
29248 pkg_failed=yes
29249fi
29250 else
29251 pkg_failed=untried
29252fi
29253if test -n "$FONTCONFIG_LIBS"; then
29254 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
29255 elif test -n "$PKG_CONFIG"; then
29256 if test -n "$PKG_CONFIG" && \
29257 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29258 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29259 ac_status=$?
29260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29261 test $ac_status = 0; }; then
29262 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
29263else
29264 pkg_failed=yes
29265fi
29266 else
29267 pkg_failed=untried
29268fi
29269
29270
29271
29272if test $pkg_failed = yes; then
29273
29274if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29275 _pkg_short_errors_supported=yes
29276else
29277 _pkg_short_errors_supported=no
29278fi
29279 if test $_pkg_short_errors_supported = yes; then
29280 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
29281 else
29282 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
29283 fi
29284 # Put the nasty error message in config.log where it belongs
29285 echo "$FONTCONFIG_PKG_ERRORS" >&5
29286
29287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29288$as_echo "no" >&6; }
29289 have_fontconfig=no
29290elif test $pkg_failed = untried; then
29291 have_fontconfig=no
29292else
29293 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
29294 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
29295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29296$as_echo "yes" >&6; }
29297 have_fontconfig=yes
29298fi
cristyad38abe2012-12-23 23:03:21 +000029299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29300$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029301fi
29302
29303if test "$have_fontconfig" = 'yes'; then
29304
cristy8b350f62009-11-15 23:12:43 +000029305$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029306
cristyc6722092012-10-14 00:19:31 +000029307 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000029308 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000029309 fi
cristy3ed852e2009-09-05 21:47:34 +000029310fi
29311
cristy73bd4a52010-10-05 11:24:23 +000029312 if test "$have_fontconfig" = 'yes'; then
29313 FONTCONFIG_DELEGATE_TRUE=
29314 FONTCONFIG_DELEGATE_FALSE='#'
29315else
29316 FONTCONFIG_DELEGATE_TRUE='#'
29317 FONTCONFIG_DELEGATE_FALSE=
29318fi
29319
cristy3ed852e2009-09-05 21:47:34 +000029320
29321
29322
29323
29324#
cristy03f187e2013-01-24 00:22:19 +000029325# Check for the Freetype delegate library.
cristy3ed852e2009-09-05 21:47:34 +000029326#
29327
29328# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000029329if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029330 withval=$with_freetype; with_freetype=$withval
29331else
29332 with_freetype='yes'
29333fi
29334
29335
cristy3ed852e2009-09-05 21:47:34 +000029336if test "$with_freetype" != 'yes'; then
29337 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
29338fi
29339
cristy81beccd2011-10-03 18:17:24 +000029340have_freetype='no'
cristy03f187e2013-01-24 00:22:19 +000029341FREETYPE_CFLAGS=""
29342FREETYPE_LIBS=""
29343FREETYPE_PKG=""
29344if test "x$with_freetype" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29346$as_echo "-------------------------------------------------------------" >&6; }
cristy03f187e2013-01-24 00:22:19 +000029347
29348pkg_failed=no
29349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
29350$as_echo_n "checking for FREETYPE... " >&6; }
29351
29352if test -n "$FREETYPE_CFLAGS"; then
29353 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
29354 elif test -n "$PKG_CONFIG"; then
29355 if test -n "$PKG_CONFIG" && \
29356 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
29357 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
29358 ac_status=$?
29359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29360 test $ac_status = 0; }; then
29361 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
29362else
29363 pkg_failed=yes
29364fi
29365 else
29366 pkg_failed=untried
29367fi
29368if test -n "$FREETYPE_LIBS"; then
29369 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
29370 elif test -n "$PKG_CONFIG"; then
29371 if test -n "$PKG_CONFIG" && \
29372 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
29373 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
29374 ac_status=$?
29375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29376 test $ac_status = 0; }; then
29377 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
29378else
29379 pkg_failed=yes
29380fi
29381 else
29382 pkg_failed=untried
29383fi
29384
29385
29386
29387if test $pkg_failed = yes; then
29388
29389if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29390 _pkg_short_errors_supported=yes
29391else
29392 _pkg_short_errors_supported=no
29393fi
29394 if test $_pkg_short_errors_supported = yes; then
29395 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1`
29396 else
29397 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1`
29398 fi
29399 # Put the nasty error message in config.log where it belongs
29400 echo "$FREETYPE_PKG_ERRORS" >&5
29401
29402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29403$as_echo "no" >&6; }
29404 have_freetype=no
29405elif test $pkg_failed = untried; then
29406 have_freetype=no
29407else
29408 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
29409 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
29410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29411$as_echo "yes" >&6; }
29412 have_freetype=yes
29413fi
cristyad38abe2012-12-23 23:03:21 +000029414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29415$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029416fi
29417
cristy03f187e2013-01-24 00:22:19 +000029418if test "$have_freetype" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029419
cristy8b350f62009-11-15 23:12:43 +000029420$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029421
cristy03f187e2013-01-24 00:22:19 +000029422 CFLAGS="$FREETYPE_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000029423fi
cristy03f187e2013-01-24 00:22:19 +000029424
cristy73bd4a52010-10-05 11:24:23 +000029425 if test "$have_freetype" = 'yes'; then
29426 FREETYPE_DELEGATE_TRUE=
29427 FREETYPE_DELEGATE_FALSE='#'
29428else
29429 FREETYPE_DELEGATE_TRUE='#'
29430 FREETYPE_DELEGATE_FALSE=
29431fi
29432
cristy3ed852e2009-09-05 21:47:34 +000029433
29434
29435
cristy03f187e2013-01-24 00:22:19 +000029436
cristy3ed852e2009-09-05 21:47:34 +000029437#
29438# Check for Ghostscript library or framework.
29439#
29440# Test for iapi.h & test for gsapi_new_instance in -lgs
29441# or -framework Ghostscript
29442
29443
29444# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000029445if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029446 withval=$with_gslib; with_gslib=$withval
29447else
29448 with_gslib='no'
29449fi
29450
29451
cristyb7931f12009-09-25 10:22:21 +000029452gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000029453if test "$with_gslib" != 'yes'; then
29454 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
29455fi
29456
29457have_gslib='no'
29458GS_LIBS=''
29459if test "$with_gslib" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29461$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000029463$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29465$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000029466 framework=0
cristy3ed852e2009-09-05 21:47:34 +000029467 failed=0
29468 passed=0
cristy8b350f62009-11-15 23:12:43 +000029469 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 +000029470if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029471 passed=`expr $passed + 1`
29472else
29473 failed=`expr $failed + 1`
29474fi
29475
29476
cristy8b350f62009-11-15 23:12:43 +000029477 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 +000029478if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029479 passed=`expr $passed + 1`
29480else
29481 failed=`expr $failed + 1`
29482fi
29483
29484
cristy73bd4a52010-10-05 11:24:23 +000029485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
29486$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029487if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000029488 $as_echo_n "(cached) " >&6
29489else
29490 ac_check_framework_save_LIBS=$LIBS
29491LIBS="-framework Ghostscript $LIBS"
29492cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29493/* end confdefs.h. */
29494
29495/* Override any GCC internal prototype to avoid an error.
29496 Use char because int might match the return type of a GCC
29497 builtin and then its argument prototype would still apply. */
29498#ifdef __cplusplus
29499extern "C"
29500#endif
29501char gsapi_new_instance ();
29502int
29503main ()
29504{
29505return gsapi_new_instance ();
29506 ;
29507 return 0;
29508}
29509_ACEOF
29510if ac_fn_c_try_link "$LINENO"; then :
29511 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
29512else
29513 ac_cv_framework_Ghostscript_gsapi_new_instance=no
29514fi
29515rm -f core conftest.err conftest.$ac_objext \
29516 conftest$ac_exeext conftest.$ac_ext
29517LIBS=$ac_check_framework_save_LIBS
29518fi
29519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
29520$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
29521if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
29522 framework=`expr $framework + 1`
29523else
29524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029525$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029526if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029527 $as_echo_n "(cached) " >&6
29528else
29529 ac_check_lib_save_LIBS=$LIBS
29530LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029531cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029532/* end confdefs.h. */
29533
29534/* Override any GCC internal prototype to avoid an error.
29535 Use char because int might match the return type of a GCC
29536 builtin and then its argument prototype would still apply. */
29537#ifdef __cplusplus
29538extern "C"
29539#endif
29540char gsapi_new_instance ();
29541int
29542main ()
29543{
29544return gsapi_new_instance ();
29545 ;
29546 return 0;
29547}
29548_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029549if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029550 ac_cv_lib_gs_gsapi_new_instance=yes
29551else
cristy8b350f62009-11-15 23:12:43 +000029552 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000029553fi
cristy8b350f62009-11-15 23:12:43 +000029554rm -f core conftest.err conftest.$ac_objext \
29555 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029556LIBS=$ac_check_lib_save_LIBS
29557fi
cristy8b350f62009-11-15 23:12:43 +000029558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000029559$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000029560if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029561 passed=`expr $passed + 1`
29562else
29563 failed=`expr $failed + 1`
29564fi
cristy73bd4a52010-10-05 11:24:23 +000029565
29566fi
cristy8b350f62009-11-15 23:12:43 +000029567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029568$as_echo_n "checking if Ghostscript package is complete... " >&6; }
29569 if test $passed -gt 0; then
29570 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29572$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029573 have_gslib='no (failed tests)'
29574 else
29575 if test $framework -gt 0; then
29576 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000029577 gslib_framework='yes'
cristyad38abe2012-12-23 23:03:21 +000029578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
29579$as_echo "yes, using framework." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029580 else
cristyad38abe2012-12-23 23:03:21 +000029581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
29582$as_echo "yes, using library." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029583 GS_LIBS='-lgs'
29584 fi
29585 LIBS="$GS_LIBS $LIBS"
29586
cristy8b350f62009-11-15 23:12:43 +000029587$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029588
29589 have_gslib='yes'
29590 fi
29591 else
cristyad38abe2012-12-23 23:03:21 +000029592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29593$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029594 fi
29595fi
cristy73bd4a52010-10-05 11:24:23 +000029596 if test "$have_gslib" = 'yes'; then
29597 GS_DELEGATE_TRUE=
29598 GS_DELEGATE_FALSE='#'
29599else
29600 GS_DELEGATE_TRUE='#'
29601 GS_DELEGATE_FALSE=
29602fi
29603
cristy3ed852e2009-09-05 21:47:34 +000029604
29605
29606# Set default font search path
29607
29608# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000029609if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029610 withval=$with_fontpath; with_fontpath=$withval
29611else
29612 with_fontpath=''
29613fi
29614
29615
29616if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
29617 with_fontpath=''
29618else
29619
29620cat >>confdefs.h <<_ACEOF
29621#define MAGICK_FONT_PATH "$with_fontpath"
29622_ACEOF
29623
29624fi
29625if test "$with_fontpath=" != ''; then
29626 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
29627fi
29628
29629# Set Ghostscript font directory
29630
29631# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029632if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029633 withval=$with_gs_font_dir; with_gs_font_dir=$withval
29634else
29635 with_gs_font_dir='default'
29636fi
29637
29638
29639if test "$with_gs_font_dir" != 'default'; then
29640 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
29641fi
29642
29643
29644#
29645# Check for GVC delegate library.
29646#
29647
29648# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000029649if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029650 withval=$with_gvc; with_gvc=$withval
29651else
cristy1b70dc82012-07-01 23:15:05 +000029652 with_gvc='no'
cristy3ed852e2009-09-05 21:47:34 +000029653fi
29654
29655
29656if test "$with_gvc" != 'yes'; then
29657 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
29658fi
29659
29660GVC_PKG=""
29661if test "x$with_gvc" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29663$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029664
29665pkg_failed=no
29666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
29667$as_echo_n "checking for GVC... " >&6; }
29668
29669if test -n "$GVC_CFLAGS"; then
29670 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
29671 elif test -n "$PKG_CONFIG"; then
29672 if test -n "$PKG_CONFIG" && \
29673 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29674 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29675 ac_status=$?
29676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29677 test $ac_status = 0; }; then
29678 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
29679else
29680 pkg_failed=yes
29681fi
29682 else
29683 pkg_failed=untried
29684fi
29685if test -n "$GVC_LIBS"; then
29686 pkg_cv_GVC_LIBS="$GVC_LIBS"
29687 elif test -n "$PKG_CONFIG"; then
29688 if test -n "$PKG_CONFIG" && \
29689 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29690 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29691 ac_status=$?
29692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29693 test $ac_status = 0; }; then
29694 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
29695else
29696 pkg_failed=yes
29697fi
29698 else
29699 pkg_failed=untried
29700fi
29701
29702
29703
29704if test $pkg_failed = yes; then
29705
29706if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29707 _pkg_short_errors_supported=yes
29708else
29709 _pkg_short_errors_supported=no
29710fi
29711 if test $_pkg_short_errors_supported = yes; then
29712 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
29713 else
29714 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
29715 fi
29716 # Put the nasty error message in config.log where it belongs
29717 echo "$GVC_PKG_ERRORS" >&5
29718
29719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29720$as_echo "no" >&6; }
29721 have_gvc=no
29722elif test $pkg_failed = untried; then
29723 have_gvc=no
29724else
29725 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
29726 GVC_LIBS=$pkg_cv_GVC_LIBS
29727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29728$as_echo "yes" >&6; }
29729 have_gvc=yes
29730fi
cristyad38abe2012-12-23 23:03:21 +000029731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29732$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029733fi
29734
29735if test "$have_gvc" = 'yes'; then
29736
cristy8b350f62009-11-15 23:12:43 +000029737$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029738
cristyc6722092012-10-14 00:19:31 +000029739 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000029740 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
29741 fi
29742fi
29743
cristy73bd4a52010-10-05 11:24:23 +000029744 if test "$have_gvc" = 'yes'; then
29745 GVC_DELEGATE_TRUE=
29746 GVC_DELEGATE_FALSE='#'
29747else
29748 GVC_DELEGATE_TRUE='#'
29749 GVC_DELEGATE_FALSE=
29750fi
29751
cristy3ed852e2009-09-05 21:47:34 +000029752
29753
29754
29755
29756#
29757# Check for JBIG delegate library.
29758#
29759
29760
29761# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000029762if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029763 withval=$with_jbig; with_jbig=$withval
29764else
29765 with_jbig='yes'
29766fi
29767
29768
29769have_jbig='no'
29770JBIG_LIBS=''
29771if test "$with_jbig" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29773$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029775$as_echo_n "checking for JBIG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29777$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029778 failed=0
29779 passed=0
cristy8b350f62009-11-15 23:12:43 +000029780 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029781if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029782 passed=`expr $passed + 1`
29783else
29784 failed=`expr $failed + 1`
29785fi
29786
29787
cristy8b350f62009-11-15 23:12:43 +000029788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000029789$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029790if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029791 $as_echo_n "(cached) " >&6
29792else
29793 ac_check_lib_save_LIBS=$LIBS
29794LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029795cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029796/* end confdefs.h. */
29797
29798/* Override any GCC internal prototype to avoid an error.
29799 Use char because int might match the return type of a GCC
29800 builtin and then its argument prototype would still apply. */
29801#ifdef __cplusplus
29802extern "C"
29803#endif
29804char jbg_dec_init ();
29805int
29806main ()
29807{
29808return jbg_dec_init ();
29809 ;
29810 return 0;
29811}
29812_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029813if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029814 ac_cv_lib_jbig_jbg_dec_init=yes
29815else
cristy8b350f62009-11-15 23:12:43 +000029816 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000029817fi
cristy8b350f62009-11-15 23:12:43 +000029818rm -f core conftest.err conftest.$ac_objext \
29819 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029820LIBS=$ac_check_lib_save_LIBS
29821fi
cristy8b350f62009-11-15 23:12:43 +000029822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000029823$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000029824if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029825 passed=`expr $passed + 1`
29826else
29827 failed=`expr $failed + 1`
29828fi
29829
cristy8b350f62009-11-15 23:12:43 +000029830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029831$as_echo_n "checking if JBIG package is complete... " >&6; }
29832 if test $passed -gt 0; then
29833 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29835$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029836 have_jbig='no (failed tests)'
29837 else
29838 JBIG_LIBS='-ljbig'
29839 LIBS="$JBIG_LIBS $LIBS"
29840
cristy8b350f62009-11-15 23:12:43 +000029841$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029842
cristyad38abe2012-12-23 23:03:21 +000029843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29844$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029845 have_jbig='yes'
29846 fi
29847 else
cristyad38abe2012-12-23 23:03:21 +000029848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29849$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029850 fi
29851fi
cristy73bd4a52010-10-05 11:24:23 +000029852 if test "$have_jbig" = 'yes'; then
29853 JBIG_DELEGATE_TRUE=
29854 JBIG_DELEGATE_FALSE='#'
29855else
29856 JBIG_DELEGATE_TRUE='#'
29857 JBIG_DELEGATE_FALSE=
29858fi
29859
cristy3ed852e2009-09-05 21:47:34 +000029860
29861
29862
29863#
29864# Check for JPEG delegate library.
29865#
29866
29867# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000029868if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029869 withval=$with_jpeg; with_jpeg=$withval
29870else
29871 with_jpeg='yes'
29872fi
29873
29874
29875if test "$with_jpeg" != 'yes'; then
29876 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
29877fi
29878
29879have_jpeg='no'
29880JPEG_LIBS=''
29881if test "$with_jpeg" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29883$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029885$as_echo_n "checking for JPEG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29887$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029888 failed=0
29889 passed=0
cristy8b350f62009-11-15 23:12:43 +000029890 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029891if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029892 passed=`expr $passed + 1`
29893else
29894 failed=`expr $failed + 1`
29895fi
29896
29897
cristy8b350f62009-11-15 23:12:43 +000029898 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029899if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029900 passed=`expr $passed + 1`
29901else
29902 failed=`expr $failed + 1`
29903fi
29904
29905
cristy8b350f62009-11-15 23:12:43 +000029906 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029907if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029908 passed=`expr $passed + 1`
29909else
29910 failed=`expr $failed + 1`
29911fi
29912
29913
cristy8b350f62009-11-15 23:12:43 +000029914 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029915if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029916 passed=`expr $passed + 1`
29917else
29918 failed=`expr $failed + 1`
29919fi
29920
29921
cristy8b350f62009-11-15 23:12:43 +000029922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000029923$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029924if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029925 $as_echo_n "(cached) " >&6
29926else
29927 ac_check_lib_save_LIBS=$LIBS
29928LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029929cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029930/* end confdefs.h. */
29931
29932/* Override any GCC internal prototype to avoid an error.
29933 Use char because int might match the return type of a GCC
29934 builtin and then its argument prototype would still apply. */
29935#ifdef __cplusplus
29936extern "C"
29937#endif
29938char jpeg_read_header ();
29939int
29940main ()
29941{
29942return jpeg_read_header ();
29943 ;
29944 return 0;
29945}
29946_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029947if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029948 ac_cv_lib_jpeg_jpeg_read_header=yes
29949else
cristy8b350f62009-11-15 23:12:43 +000029950 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000029951fi
cristy8b350f62009-11-15 23:12:43 +000029952rm -f core conftest.err conftest.$ac_objext \
29953 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029954LIBS=$ac_check_lib_save_LIBS
29955fi
cristy8b350f62009-11-15 23:12:43 +000029956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000029957$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000029958if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029959 passed=`expr $passed + 1`
29960else
29961 failed=`expr $failed + 1`
29962fi
29963
29964
29965# Test for compatible JPEG library
29966if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000029967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000029968$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029969if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029970 $as_echo_n "(cached) " >&6
29971else
cristy8b350f62009-11-15 23:12:43 +000029972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029973/* end confdefs.h. */
29974#include <stdio.h>
29975#include <stdlib.h>
29976#include <jpeglib.h>
29977
29978int
29979main ()
29980{
29981
29982#if JPEG_LIB_VERSION < 62
29983#error IJG JPEG library must be version 6b or newer!
29984#endif
29985return 0;
29986
29987 ;
29988 return 0;
29989}
29990_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029991if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029992 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
29993else
cristy8b350f62009-11-15 23:12:43 +000029994 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029995fi
cristy3ed852e2009-09-05 21:47:34 +000029996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29997fi
cristy8b350f62009-11-15 23:12:43 +000029998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000029999$as_echo "$ac_cv_jpeg_version_ok" >&6; }
30000fi
cristy8b350f62009-11-15 23:12:43 +000030001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030002$as_echo_n "checking if JPEG package is complete... " >&6; }
30003 if test $passed -gt 0; then
30004 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30006$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030007 have_jpeg='no (failed tests)'
30008 else
30009 JPEG_LIBS='-ljpeg'
30010 LIBS="$JPEG_LIBS $LIBS"
30011
cristy8b350f62009-11-15 23:12:43 +000030012$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030013
cristyad38abe2012-12-23 23:03:21 +000030014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30015$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030016 have_jpeg='yes'
30017 fi
30018 else
cristyad38abe2012-12-23 23:03:21 +000030019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30020$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030021 fi
30022fi
cristy73bd4a52010-10-05 11:24:23 +000030023 if test "$have_jpeg" = 'yes'; then
30024 JPEG_DELEGATE_TRUE=
30025 JPEG_DELEGATE_FALSE='#'
30026else
30027 JPEG_DELEGATE_TRUE='#'
30028 JPEG_DELEGATE_FALSE=
30029fi
30030
cristy3ed852e2009-09-05 21:47:34 +000030031
30032
30033
30034#
cristy3ed852e2009-09-05 21:47:34 +000030035# Check for LCMS delegate library.
30036#
cristy71203402010-06-18 13:12:03 +000030037# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000030038
30039# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000030040if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030041 withval=$with_lcms; with_lcms=$withval
30042else
30043 with_lcms='yes'
30044fi
30045
cristy71203402010-06-18 13:12:03 +000030046if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000030047 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
30048fi
30049
cristy71203402010-06-18 13:12:03 +000030050# Disable LCMS2.
30051
30052# Check whether --with-lcms2 was given.
30053if test "${with_lcms2+set}" = set; then :
30054 withval=$with_lcms2; with_lcms2=$withval
30055else
30056 with_lcms2='yes'
30057fi
30058
30059if test "$with_lcms2" != 'yes' ; then
30060 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
30061fi
30062
30063have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000030064LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000030065if test "$with_lcms2" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000030066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30067$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000030068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
30069$as_echo_n "checking for LCMS v2... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30071$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030072 failed=0
30073 passed=0
30074 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000030075
30076 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000030077 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030078if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030079 have_lcms_header='yes'
30080fi
30081
30082
30083 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000030084
30085$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
30086
cristy71203402010-06-18 13:12:03 +000030087 passed=`expr $passed + 1`
30088 fi
30089
30090 # Check for <lcms2/lcms2.h)
30091 if test "$have_lcms_header" != 'yes'; then
30092 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 +000030093if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030094 have_lcms_header='yes'
30095fi
30096
30097
cristy71203402010-06-18 13:12:03 +000030098 if test "$have_lcms_header" = 'yes'; then
30099 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000030100
cristy71203402010-06-18 13:12:03 +000030101$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000030102
cristy71203402010-06-18 13:12:03 +000030103 fi
cristyd09bcf92010-03-25 03:04:45 +000030104 fi
cristy71203402010-06-18 13:12:03 +000030105
30106 # Failed to find lcms header?
30107 if test "$have_lcms_header" != 'yes'; then
30108 failed=`expr $failed + 1`
30109 fi
30110
30111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
30112$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030113if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000030114 $as_echo_n "(cached) " >&6
30115else
30116 ac_check_lib_save_LIBS=$LIBS
30117LIBS="-llcms2 $LIBS"
30118cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30119/* end confdefs.h. */
30120
30121/* Override any GCC internal prototype to avoid an error.
30122 Use char because int might match the return type of a GCC
30123 builtin and then its argument prototype would still apply. */
30124#ifdef __cplusplus
30125extern "C"
30126#endif
cristy71203402010-06-18 13:12:03 +000030127char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000030128int
30129main ()
30130{
cristy71203402010-06-18 13:12:03 +000030131return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000030132 ;
30133 return 0;
30134}
30135_ACEOF
30136if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030137 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000030138else
cristy71203402010-06-18 13:12:03 +000030139 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000030140fi
30141rm -f core conftest.err conftest.$ac_objext \
30142 conftest$ac_exeext conftest.$ac_ext
30143LIBS=$ac_check_lib_save_LIBS
30144fi
cristy71203402010-06-18 13:12:03 +000030145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
30146$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030147if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030148 passed=`expr $passed + 1`
30149else
30150 failed=`expr $failed + 1`
30151fi
30152
cristy71203402010-06-18 13:12:03 +000030153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
30154$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000030155 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030156 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30158$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000030159 have_lcms2='no (failed tests)'
30160 else
30161 LCMS_LIBS='-llcms2'
30162 LIBS="$LCMS_LIBS $LIBS"
cristyad38abe2012-12-23 23:03:21 +000030163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30164$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000030165 have_lcms2='yes'
30166 fi
cristyd09bcf92010-03-25 03:04:45 +000030167 else
cristyad38abe2012-12-23 23:03:21 +000030168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30169$as_echo "no" >&6; }
cristyd09bcf92010-03-25 03:04:45 +000030170 fi
30171fi
30172
cristy71203402010-06-18 13:12:03 +000030173#
30174# Check for LCMS v1 (1.11 or later)
30175#
30176if test $have_lcms2 = 'yes'; then
30177 with_lcms='no'
30178fi
30179
30180have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000030181if test "$with_lcms" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000030182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30183$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000030184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
30185$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30187$as_echo "" >&6; }
cristyd09bcf92010-03-25 03:04:45 +000030188 failed=0
30189 passed=0
30190 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000030191
30192 # Check for <lcms.h>
30193 if test "$have_lcms_header" != 'yes'; then
30194 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030195if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030196 have_lcms_header='yes'
30197fi
30198
30199
cristy71203402010-06-18 13:12:03 +000030200 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000030201 passed=`expr $passed + 1`
30202
cristy8b350f62009-11-15 23:12:43 +000030203$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030204
cristy71203402010-06-18 13:12:03 +000030205 fi
30206 fi
30207
30208 # Check for <lcms/lcms.h>
30209 if test "$have_lcms_header" != 'yes'; then
30210 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 +000030211if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030212 have_lcms_header='yes'
30213fi
30214
30215
cristy71203402010-06-18 13:12:03 +000030216 if test "$have_lcms_header" = 'yes'; then
30217 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030218
cristy8b350f62009-11-15 23:12:43 +000030219$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030220
cristy71203402010-06-18 13:12:03 +000030221 fi
cristy3ed852e2009-09-05 21:47:34 +000030222 fi
cristy71203402010-06-18 13:12:03 +000030223
30224 # Failed to find lcms header?
30225 if test "$have_lcms_header" != 'yes'; then
30226 failed=`expr $failed + 1`
30227 fi
30228
30229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
30230$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030231if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030232 $as_echo_n "(cached) " >&6
30233else
30234 ac_check_lib_save_LIBS=$LIBS
30235LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030236cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030237/* end confdefs.h. */
30238
30239/* Override any GCC internal prototype to avoid an error.
30240 Use char because int might match the return type of a GCC
30241 builtin and then its argument prototype would still apply. */
30242#ifdef __cplusplus
30243extern "C"
30244#endif
cristy71203402010-06-18 13:12:03 +000030245char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030246int
30247main ()
30248{
cristy71203402010-06-18 13:12:03 +000030249return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030250 ;
30251 return 0;
30252}
30253_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030254if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030255 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000030256else
cristy71203402010-06-18 13:12:03 +000030257 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000030258fi
cristy8b350f62009-11-15 23:12:43 +000030259rm -f core conftest.err conftest.$ac_objext \
30260 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030261LIBS=$ac_check_lib_save_LIBS
30262fi
cristy71203402010-06-18 13:12:03 +000030263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
30264$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030265if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030266 passed=`expr $passed + 1`
30267else
30268 failed=`expr $failed + 1`
30269fi
30270
cristy8b350f62009-11-15 23:12:43 +000030271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030272$as_echo_n "checking if LCMS package is complete... " >&6; }
30273 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030274 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30276$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000030277 have_lcms='no (failed tests)'
30278 else
30279 LCMS_LIBS='-llcms'
30280 LIBS="$LCMS_LIBS $LIBS"
cristyad38abe2012-12-23 23:03:21 +000030281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30282$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000030283 have_lcms='yes'
30284 fi
cristy3ed852e2009-09-05 21:47:34 +000030285 else
cristyad38abe2012-12-23 23:03:21 +000030286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30287$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030288 fi
30289fi
cristy71203402010-06-18 13:12:03 +000030290
cristy73bd4a52010-10-05 11:24:23 +000030291 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30292 LCMS_DELEGATE_TRUE=
30293 LCMS_DELEGATE_FALSE='#'
30294else
30295 LCMS_DELEGATE_TRUE='#'
30296 LCMS_DELEGATE_FALSE=
30297fi
30298
cristy71203402010-06-18 13:12:03 +000030299if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30300
30301$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
30302
30303fi
30304
cristy3ed852e2009-09-05 21:47:34 +000030305
30306
30307
30308#
cristy99db3872014-01-01 15:11:34 +000030309# Check for the OpenJP2 delegate library.
30310#
30311
30312# Check whether --with-openjp2 was given.
30313if test "${with_openjp2+set}" = set; then :
30314 withval=$with_openjp2; with_openjp2=$withval
30315else
30316 with_openjp2='yes'
30317fi
30318
30319
30320if test "$with_openjp2" != 'yes'; then
30321 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openjp2=$with_openjp2 "
30322fi
30323
30324have_openjp2='no'
30325LIBOPENJP2_CFLAGS=""
30326LIBOPENJP2_LIBS=""
30327LIBOPENJP2_PKG=""
30328if test "x$with_openjp2" = "xyes"; then
30329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30330$as_echo "-------------------------------------------------------------" >&6; }
30331
30332pkg_failed=no
30333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBOPENJP2" >&5
30334$as_echo_n "checking for LIBOPENJP2... " >&6; }
30335
30336if test -n "$LIBOPENJP2_CFLAGS"; then
30337 pkg_cv_LIBOPENJP2_CFLAGS="$LIBOPENJP2_CFLAGS"
30338 elif test -n "$PKG_CONFIG"; then
30339 if test -n "$PKG_CONFIG" && \
cristybc964932014-05-08 21:45:03 +000030340 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenjp2 >= 2.1.0\""; } >&5
30341 ($PKG_CONFIG --exists --print-errors "libopenjp2 >= 2.1.0") 2>&5
cristy99db3872014-01-01 15:11:34 +000030342 ac_status=$?
30343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30344 test $ac_status = 0; }; then
cristybc964932014-05-08 21:45:03 +000030345 pkg_cv_LIBOPENJP2_CFLAGS=`$PKG_CONFIG --cflags "libopenjp2 >= 2.1.0" 2>/dev/null`
cristy99db3872014-01-01 15:11:34 +000030346else
30347 pkg_failed=yes
30348fi
30349 else
30350 pkg_failed=untried
30351fi
30352if test -n "$LIBOPENJP2_LIBS"; then
30353 pkg_cv_LIBOPENJP2_LIBS="$LIBOPENJP2_LIBS"
30354 elif test -n "$PKG_CONFIG"; then
30355 if test -n "$PKG_CONFIG" && \
cristybc964932014-05-08 21:45:03 +000030356 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenjp2 >= 2.1.0\""; } >&5
30357 ($PKG_CONFIG --exists --print-errors "libopenjp2 >= 2.1.0") 2>&5
cristy99db3872014-01-01 15:11:34 +000030358 ac_status=$?
30359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30360 test $ac_status = 0; }; then
cristybc964932014-05-08 21:45:03 +000030361 pkg_cv_LIBOPENJP2_LIBS=`$PKG_CONFIG --libs "libopenjp2 >= 2.1.0" 2>/dev/null`
cristy99db3872014-01-01 15:11:34 +000030362else
30363 pkg_failed=yes
30364fi
30365 else
30366 pkg_failed=untried
30367fi
30368
30369
30370
30371if test $pkg_failed = yes; then
30372
30373if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30374 _pkg_short_errors_supported=yes
30375else
30376 _pkg_short_errors_supported=no
30377fi
30378 if test $_pkg_short_errors_supported = yes; then
cristybc964932014-05-08 21:45:03 +000030379 LIBOPENJP2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libopenjp2 >= 2.1.0" 2>&1`
cristy99db3872014-01-01 15:11:34 +000030380 else
cristybc964932014-05-08 21:45:03 +000030381 LIBOPENJP2_PKG_ERRORS=`$PKG_CONFIG --print-errors "libopenjp2 >= 2.1.0" 2>&1`
cristy99db3872014-01-01 15:11:34 +000030382 fi
30383 # Put the nasty error message in config.log where it belongs
30384 echo "$LIBOPENJP2_PKG_ERRORS" >&5
30385
30386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30387$as_echo "no" >&6; }
30388 have_openjp2=no
30389elif test $pkg_failed = untried; then
30390 have_openjp2=no
30391else
30392 LIBOPENJP2_CFLAGS=$pkg_cv_LIBOPENJP2_CFLAGS
30393 LIBOPENJP2_LIBS=$pkg_cv_LIBOPENJP2_LIBS
30394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30395$as_echo "yes" >&6; }
30396 have_openjp2=yes
30397fi
30398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30399$as_echo "" >&6; }
30400fi
30401
30402if test "$have_openjp2" = 'yes'; then
30403
30404$as_echo "#define LIBOPENJP2_DELEGATE 1" >>confdefs.h
30405
30406 if test "$build_modules" = 'no'; then
30407 CFLAGS="$LIBOPENJP2_CFLAGS $CFLAGS"
30408 fi
30409fi
30410
30411 if test "$have_openjp2" = 'yes'; then
30412 LIBOPENJP2_DELEGATE_TRUE=
30413 LIBOPENJP2_DELEGATE_FALSE='#'
30414else
30415 LIBOPENJP2_DELEGATE_TRUE='#'
30416 LIBOPENJP2_DELEGATE_FALSE=
30417fi
30418
30419
30420
30421
30422
30423
30424#
cristy3ed852e2009-09-05 21:47:34 +000030425# Check for the LQR (Liquid Rescale) delegate library.
30426#
30427
30428# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000030429if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030430 withval=$with_lqr; with_lqr=$withval
30431else
30432 with_lqr='yes'
30433fi
30434
30435
30436if test "$with_lqr" != 'yes'; then
30437 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
30438fi
30439
30440have_lqr='no'
30441LQR_CFLAGS=""
30442LQR_LIBS=""
30443LQR_PKG=""
30444if test "x$with_lqr" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30446$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030447
30448pkg_failed=no
30449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
30450$as_echo_n "checking for LQR... " >&6; }
30451
30452if test -n "$LQR_CFLAGS"; then
30453 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
30454 elif test -n "$PKG_CONFIG"; then
30455 if test -n "$PKG_CONFIG" && \
30456 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30457 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30458 ac_status=$?
30459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30460 test $ac_status = 0; }; then
30461 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
30462else
30463 pkg_failed=yes
30464fi
30465 else
30466 pkg_failed=untried
30467fi
30468if test -n "$LQR_LIBS"; then
30469 pkg_cv_LQR_LIBS="$LQR_LIBS"
30470 elif test -n "$PKG_CONFIG"; then
30471 if test -n "$PKG_CONFIG" && \
30472 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30473 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30474 ac_status=$?
30475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30476 test $ac_status = 0; }; then
30477 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
30478else
30479 pkg_failed=yes
30480fi
30481 else
30482 pkg_failed=untried
30483fi
30484
30485
30486
30487if test $pkg_failed = yes; then
30488
30489if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30490 _pkg_short_errors_supported=yes
30491else
30492 _pkg_short_errors_supported=no
30493fi
30494 if test $_pkg_short_errors_supported = yes; then
30495 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
30496 else
30497 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
30498 fi
30499 # Put the nasty error message in config.log where it belongs
30500 echo "$LQR_PKG_ERRORS" >&5
30501
30502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30503$as_echo "no" >&6; }
30504 have_lqr=no
30505elif test $pkg_failed = untried; then
30506 have_lqr=no
30507else
30508 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
30509 LQR_LIBS=$pkg_cv_LQR_LIBS
30510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30511$as_echo "yes" >&6; }
30512 have_lqr=yes
30513fi
cristyad38abe2012-12-23 23:03:21 +000030514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30515$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030516fi
30517
30518if test "$have_lqr" = 'yes'; then
30519
cristy8b350f62009-11-15 23:12:43 +000030520$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030521
30522 CFLAGS="$LQR_CFLAGS $CFLAGS"
30523fi
30524
cristy73bd4a52010-10-05 11:24:23 +000030525 if test "$have_lqr" = 'yes'; then
30526 LQR_DELEGATE_TRUE=
30527 LQR_DELEGATE_FALSE='#'
30528else
30529 LQR_DELEGATE_TRUE='#'
30530 LQR_DELEGATE_FALSE=
30531fi
30532
cristy3ed852e2009-09-05 21:47:34 +000030533
30534
30535
30536
cristy81beccd2011-10-03 18:17:24 +000030537# Disable LZMA (lzma library)
cristyfbb0ef02010-12-19 02:32:11 +000030538
30539# Check whether --with-lzma was given.
30540if test "${with_lzma+set}" = set; then :
30541 withval=$with_lzma; with_lzma=$withval
30542else
30543 with_lzma='yes'
30544fi
30545
cristy81beccd2011-10-03 18:17:24 +000030546if test "$with_lzma" != 'yes' ; then
cristyfbb0ef02010-12-19 02:32:11 +000030547 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
30548fi
30549
cristyb94e5002011-11-14 13:20:10 +000030550LZMA_PKG=""
30551if test "x$with_lzma" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30553$as_echo "-------------------------------------------------------------" >&6; }
cristyb94e5002011-11-14 13:20:10 +000030554
30555pkg_failed=no
30556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
cristyfbb0ef02010-12-19 02:32:11 +000030557$as_echo_n "checking for LZMA... " >&6; }
cristyb94e5002011-11-14 13:20:10 +000030558
30559if test -n "$LZMA_CFLAGS"; then
30560 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
30561 elif test -n "$PKG_CONFIG"; then
30562 if test -n "$PKG_CONFIG" && \
30563 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30564 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30565 ac_status=$?
30566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30567 test $ac_status = 0; }; then
30568 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null`
30569else
30570 pkg_failed=yes
30571fi
30572 else
30573 pkg_failed=untried
30574fi
30575if test -n "$LZMA_LIBS"; then
30576 pkg_cv_LZMA_LIBS="$LZMA_LIBS"
30577 elif test -n "$PKG_CONFIG"; then
30578 if test -n "$PKG_CONFIG" && \
30579 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30580 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30581 ac_status=$?
30582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30583 test $ac_status = 0; }; then
30584 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null`
30585else
30586 pkg_failed=yes
30587fi
30588 else
30589 pkg_failed=untried
30590fi
30591
30592
30593
30594if test $pkg_failed = yes; then
30595
30596if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30597 _pkg_short_errors_supported=yes
30598else
30599 _pkg_short_errors_supported=no
30600fi
30601 if test $_pkg_short_errors_supported = yes; then
30602 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "liblzma >= 2.9.0" 2>&1`
30603 else
30604 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "liblzma >= 2.9.0" 2>&1`
30605 fi
30606 # Put the nasty error message in config.log where it belongs
30607 echo "$LZMA_PKG_ERRORS" >&5
30608
30609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30610$as_echo "no" >&6; }
30611 have_lzma=no
30612elif test $pkg_failed = untried; then
30613 have_lzma=no
30614else
30615 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
30616 LZMA_LIBS=$pkg_cv_LZMA_LIBS
30617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30618$as_echo "yes" >&6; }
30619 have_lzma=yes
30620fi
cristyad38abe2012-12-23 23:03:21 +000030621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30622$as_echo "" >&6; }
cristyfbb0ef02010-12-19 02:32:11 +000030623fi
30624
cristyb94e5002011-11-14 13:20:10 +000030625if test "$have_lzma" = 'yes'; then
cristyfbb0ef02010-12-19 02:32:11 +000030626
30627$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
30628
cristyc6722092012-10-14 00:19:31 +000030629 if test "$build_modules" = 'no'; then
cristyb94e5002011-11-14 13:20:10 +000030630 CPPFLAGS="$LZMA_CFLAGS $CPPFLAGS"
cristyfbb0ef02010-12-19 02:32:11 +000030631 fi
cristyfbb0ef02010-12-19 02:32:11 +000030632fi
cristyb94e5002011-11-14 13:20:10 +000030633
cristyfbb0ef02010-12-19 02:32:11 +000030634 if test "$have_lzma" = 'yes'; then
30635 LZMA_DELEGATE_TRUE=
30636 LZMA_DELEGATE_FALSE='#'
30637else
30638 LZMA_DELEGATE_TRUE='#'
30639 LZMA_DELEGATE_FALSE=
30640fi
30641
30642
30643
30644
cristyb94e5002011-11-14 13:20:10 +000030645
cristy3ed852e2009-09-05 21:47:34 +000030646#
30647# Check for the OpenEXR delegate library.
30648#
30649
30650# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000030651if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030652 withval=$with_openexr; with_openexr=$withval
30653else
30654 with_openexr='yes'
30655fi
30656
30657
30658if test "$with_openexr" != 'yes'; then
30659 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
30660fi
30661
30662have_openexr='no'
30663OPENEXR_CFLAGS=""
30664OPENEXR_LIBS=""
30665OPENEXR_PKG=""
30666if test "x$with_openexr" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30668$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030669
30670pkg_failed=no
30671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
30672$as_echo_n "checking for OPENEXR... " >&6; }
30673
30674if test -n "$OPENEXR_CFLAGS"; then
30675 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
30676 elif test -n "$PKG_CONFIG"; then
30677 if test -n "$PKG_CONFIG" && \
30678 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30679 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30680 ac_status=$?
30681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30682 test $ac_status = 0; }; then
30683 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
30684else
30685 pkg_failed=yes
30686fi
30687 else
30688 pkg_failed=untried
30689fi
30690if test -n "$OPENEXR_LIBS"; then
30691 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
30692 elif test -n "$PKG_CONFIG"; then
30693 if test -n "$PKG_CONFIG" && \
30694 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30695 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30696 ac_status=$?
30697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30698 test $ac_status = 0; }; then
30699 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
30700else
30701 pkg_failed=yes
30702fi
30703 else
30704 pkg_failed=untried
30705fi
30706
30707
30708
30709if test $pkg_failed = yes; then
30710
30711if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30712 _pkg_short_errors_supported=yes
30713else
30714 _pkg_short_errors_supported=no
30715fi
30716 if test $_pkg_short_errors_supported = yes; then
30717 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
30718 else
30719 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
30720 fi
30721 # Put the nasty error message in config.log where it belongs
30722 echo "$OPENEXR_PKG_ERRORS" >&5
30723
30724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30725$as_echo "no" >&6; }
30726 have_openexr=no
30727elif test $pkg_failed = untried; then
30728 have_openexr=no
30729else
30730 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
30731 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
30732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30733$as_echo "yes" >&6; }
30734 have_openexr=yes
30735fi
cristyad38abe2012-12-23 23:03:21 +000030736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30737$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030738fi
30739
30740if test "$have_openexr" = 'yes'; then
30741
cristy8b350f62009-11-15 23:12:43 +000030742$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030743
cristyc6722092012-10-14 00:19:31 +000030744 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000030745 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
30746 fi
30747fi
30748
cristy73bd4a52010-10-05 11:24:23 +000030749 if test "$have_openexr" = 'yes'; then
30750 OPENEXR_DELEGATE_TRUE=
30751 OPENEXR_DELEGATE_FALSE='#'
30752else
30753 OPENEXR_DELEGATE_TRUE='#'
30754 OPENEXR_DELEGATE_FALSE=
30755fi
30756
cristy3ed852e2009-09-05 21:47:34 +000030757
30758
30759
30760
30761#
cristy41cbe8a2011-10-27 01:35:18 +000030762# Check for PANGO delegate library.
30763#
30764
30765# Check whether --with-pango was given.
30766if test "${with_pango+set}" = set; then :
30767 withval=$with_pango; with_pango=$withval
30768else
cristyfc3d0222012-02-07 15:05:57 +000030769 with_pango='yes'
cristy41cbe8a2011-10-27 01:35:18 +000030770fi
30771
30772
30773if test "$with_pango" != 'yes'; then
30774 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
30775fi
30776
30777have_pango='no'
cristya054b762012-03-26 23:16:00 +000030778have_pangocairo='no'
cristy41cbe8a2011-10-27 01:35:18 +000030779PANGO_CFLAGS=""
30780PANGO_LIBS=""
30781PANGO_PKG=""
30782if test "x$with_pango" = "xyes"; then
30783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30784$as_echo "-------------------------------------------------------------" >&6; }
30785
30786pkg_failed=no
30787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30788$as_echo_n "checking for PANGO... " >&6; }
30789
30790if test -n "$PANGO_CFLAGS"; then
30791 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30792 elif test -n "$PKG_CONFIG"; then
30793 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030794 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30795 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030796 ac_status=$?
30797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30798 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030799 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030800else
30801 pkg_failed=yes
30802fi
30803 else
30804 pkg_failed=untried
30805fi
30806if test -n "$PANGO_LIBS"; then
30807 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30808 elif test -n "$PKG_CONFIG"; then
30809 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030810 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30811 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030812 ac_status=$?
30813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30814 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030815 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030816else
30817 pkg_failed=yes
30818fi
30819 else
30820 pkg_failed=untried
30821fi
30822
30823
30824
30825if test $pkg_failed = yes; then
30826
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
cristya054b762012-03-26 23:16:00 +000030833 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030834 else
cristya054b762012-03-26 23:16:00 +000030835 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030836 fi
30837 # Put the nasty error message in config.log where it belongs
30838 echo "$PANGO_PKG_ERRORS" >&5
30839
30840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30841$as_echo "no" >&6; }
cristya054b762012-03-26 23:16:00 +000030842 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030843elif test $pkg_failed = untried; then
cristya054b762012-03-26 23:16:00 +000030844 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030845else
30846 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30847 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30849$as_echo "yes" >&6; }
cristya054b762012-03-26 23:16:00 +000030850 have_pangocairo=yes
cristy41cbe8a2011-10-27 01:35:18 +000030851fi
30852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30853$as_echo "" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000030854
30855pkg_failed=no
30856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30857$as_echo_n "checking for PANGO... " >&6; }
30858
30859if test -n "$PANGO_CFLAGS"; then
30860 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30861 elif test -n "$PKG_CONFIG"; then
30862 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030863 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30864 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030865 ac_status=$?
30866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30867 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030868 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030869else
30870 pkg_failed=yes
30871fi
30872 else
30873 pkg_failed=untried
30874fi
30875if test -n "$PANGO_LIBS"; then
30876 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30877 elif test -n "$PKG_CONFIG"; then
30878 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030879 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30880 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030881 ac_status=$?
30882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30883 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030884 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030885else
30886 pkg_failed=yes
30887fi
30888 else
30889 pkg_failed=untried
30890fi
30891
30892
30893
30894if test $pkg_failed = yes; then
30895
30896if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30897 _pkg_short_errors_supported=yes
30898else
30899 _pkg_short_errors_supported=no
30900fi
30901 if test $_pkg_short_errors_supported = yes; then
cristy2542fc62011-12-06 17:50:25 +000030902 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030903 else
cristy2542fc62011-12-06 17:50:25 +000030904 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030905 fi
30906 # Put the nasty error message in config.log where it belongs
30907 echo "$PANGO_PKG_ERRORS" >&5
30908
30909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30910$as_echo "no" >&6; }
30911 have_pango=no
30912elif test $pkg_failed = untried; then
30913 have_pango=no
30914else
30915 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30916 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30918$as_echo "yes" >&6; }
30919 have_pango=yes
30920fi
30921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30922$as_echo "" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000030923fi
30924
30925if test "$have_pango" = 'yes'; then
30926
30927$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
30928
cristyc6722092012-10-14 00:19:31 +000030929 if test "$build_modules" = 'no'; then
cristy41cbe8a2011-10-27 01:35:18 +000030930 CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS"
30931 fi
30932fi
30933
cristya054b762012-03-26 23:16:00 +000030934if test "$have_pangocairo" = 'yes'; then
cristy41cbe8a2011-10-27 01:35:18 +000030935
cristya054b762012-03-26 23:16:00 +000030936$as_echo "#define PANGOCAIRO_DELEGATE 1" >>confdefs.h
cristy41cbe8a2011-10-27 01:35:18 +000030937
cristyc6722092012-10-14 00:19:31 +000030938 if test "$build_modules" = 'no'; then
cristya054b762012-03-26 23:16:00 +000030939 CPPFLAGS="$PANGOCAIRO_CFLAGS $CPPFLAGS"
cristy41cbe8a2011-10-27 01:35:18 +000030940 fi
30941fi
30942
30943 if test "$have_pango" = 'yes'; then
30944 PANGO_DELEGATE_TRUE=
30945 PANGO_DELEGATE_FALSE='#'
30946else
30947 PANGO_DELEGATE_TRUE='#'
30948 PANGO_DELEGATE_FALSE=
30949fi
30950
cristya054b762012-03-26 23:16:00 +000030951 if test "$have_pangocairo" = 'yes'; then
30952 PANGOCAIRO_DELEGATE_TRUE=
30953 PANGOCAIRO_DELEGATE_FALSE='#'
cristy41cbe8a2011-10-27 01:35:18 +000030954else
cristya054b762012-03-26 23:16:00 +000030955 PANGOCAIRO_DELEGATE_TRUE='#'
30956 PANGOCAIRO_DELEGATE_FALSE=
cristy41cbe8a2011-10-27 01:35:18 +000030957fi
30958
30959
30960
30961
30962
30963#
cristy3ed852e2009-09-05 21:47:34 +000030964# Check for PNG delegate library.
30965#
30966
30967# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000030968if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030969 withval=$with_png; with_png=$withval
30970else
30971 with_png='yes'
30972fi
30973
30974
30975if test "$with_png" != 'yes'; then
30976 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
30977fi
30978
cristy81beccd2011-10-03 18:17:24 +000030979have_png='no'
30980PNG_LIBS=''
30981
30982if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000030983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30984$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
30986$as_echo_n "checking for PNG support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30988$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030989 failed=0
30990 passed=0
30991 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
30992if test "x$ac_cv_header_png_h" = xyes; then :
30993 passed=`expr $passed + 1`
30994else
30995 failed=`expr $failed + 1`
cristy64877302011-08-23 19:10:31 +000030996fi
30997
cristy81beccd2011-10-03 18:17:24 +000030998
30999
31000 if test $passed -gt 0; then
glennrp3fc1c212013-01-10 01:52:32 +000031001 for var in 7 6 5 4 2 '' ; do
cristy0615f0e2011-10-12 11:36:46 +000031002 if test "$have_png" = 'no' ; then
31003 if test "x${var}" = 'x' ; then
cristy81beccd2011-10-03 18:17:24 +000031004 pnglib='png'
31005 else
31006 pnglib="png1${var}"
31007 fi
31008
31009# Test for compatible LIBPNG library
31010 failed=0
31011 passed=0
cristy0615f0e2011-10-12 11:36:46 +000031012 if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then
cristy81beccd2011-10-03 18:17:24 +000031013 if test "${pnglib}" != 'png' ; then
31014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
31015$as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
31016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31017/* end confdefs.h. */
31018#include <stdio.h>
31019#include <stdlib.h>
31020#include <png.h>
31021
31022int
31023main ()
31024{
31025
31026#if PNG_LIBPNG_VER_MINOR != ${var}
31027#error LIBPNG library must be version 1${var}!
31028Kaboom, Kaboom
31029#endif
31030return 0;
31031
31032 ;
31033 return 0;
31034}
31035_ACEOF
31036if ac_fn_c_try_compile "$LINENO"; then :
31037 ac_cv_libpng_ok='yes'
31038else
31039 ac_cv_libpng_ok='no'
31040fi
31041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31042 if test "$ac_cv_libpng_ok" = 'yes' ; then
31043 passed=`expr $passed + 1`
cristyad38abe2012-12-23 23:03:21 +000031044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31045$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031046 else
31047 failed=`expr $failed + 1`
cristyad38abe2012-12-23 23:03:21 +000031048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31049$as_echo "no" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031050 fi
31051 else
31052 passed=`expr $passed + 1`
cristyad38abe2012-12-23 23:03:21 +000031053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31054$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031055 fi
31056 fi
31057
31058 if test $passed -gt 0 -a $failed -le 0; then
cristy03f187e2013-01-24 00:22:19 +000031059 if test "1${var}" = '17' ; then
31060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng17" >&5
31061$as_echo_n "checking for png_get_io_ptr in -lpng17... " >&6; }
31062if ${ac_cv_lib_png17_png_get_io_ptr+:} false; then :
31063 $as_echo_n "(cached) " >&6
31064else
31065 ac_check_lib_save_LIBS=$LIBS
31066LIBS="-lpng17 $LIBS"
31067cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31068/* end confdefs.h. */
31069
31070/* Override any GCC internal prototype to avoid an error.
31071 Use char because int might match the return type of a GCC
31072 builtin and then its argument prototype would still apply. */
31073#ifdef __cplusplus
31074extern "C"
31075#endif
31076char png_get_io_ptr ();
31077int
31078main ()
31079{
31080return png_get_io_ptr ();
31081 ;
31082 return 0;
31083}
31084_ACEOF
31085if ac_fn_c_try_link "$LINENO"; then :
31086 ac_cv_lib_png17_png_get_io_ptr=yes
31087else
31088 ac_cv_lib_png17_png_get_io_ptr=no
31089fi
31090rm -f core conftest.err conftest.$ac_objext \
31091 conftest$ac_exeext conftest.$ac_ext
31092LIBS=$ac_check_lib_save_LIBS
31093fi
31094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png17_png_get_io_ptr" >&5
31095$as_echo "$ac_cv_lib_png17_png_get_io_ptr" >&6; }
31096if test "x$ac_cv_lib_png17_png_get_io_ptr" = xyes; then :
31097 passed=`expr $passed + 1`
31098else
31099 failed=`expr $failed + 1`
31100fi
31101
31102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng17" >&5
31103$as_echo_n "checking for png_longjmp in -lpng17... " >&6; }
31104if ${ac_cv_lib_png17_png_longjmp+:} false; then :
31105 $as_echo_n "(cached) " >&6
31106else
31107 ac_check_lib_save_LIBS=$LIBS
31108LIBS="-lpng17 $LIBS"
31109cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31110/* end confdefs.h. */
31111
31112/* Override any GCC internal prototype to avoid an error.
31113 Use char because int might match the return type of a GCC
31114 builtin and then its argument prototype would still apply. */
31115#ifdef __cplusplus
31116extern "C"
31117#endif
31118char png_longjmp ();
31119int
31120main ()
31121{
31122return png_longjmp ();
31123 ;
31124 return 0;
31125}
31126_ACEOF
31127if ac_fn_c_try_link "$LINENO"; then :
31128 ac_cv_lib_png17_png_longjmp=yes
31129else
31130 ac_cv_lib_png17_png_longjmp=no
31131fi
31132rm -f core conftest.err conftest.$ac_objext \
31133 conftest$ac_exeext conftest.$ac_ext
31134LIBS=$ac_check_lib_save_LIBS
31135fi
31136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png17_png_longjmp" >&5
31137$as_echo "$ac_cv_lib_png17_png_longjmp" >&6; }
31138if test "x$ac_cv_lib_png17_png_longjmp" = xyes; then :
31139 passed=`expr $passed + 1`
31140else
31141 failed=`expr $failed + 1`
31142fi
31143
31144 fi
31145 if test "1${var}" = '16' ; then
31146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng16" >&5
31147$as_echo_n "checking for png_get_io_ptr in -lpng16... " >&6; }
31148if ${ac_cv_lib_png16_png_get_io_ptr+:} false; then :
31149 $as_echo_n "(cached) " >&6
31150else
31151 ac_check_lib_save_LIBS=$LIBS
31152LIBS="-lpng16 $LIBS"
31153cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31154/* end confdefs.h. */
31155
31156/* Override any GCC internal prototype to avoid an error.
31157 Use char because int might match the return type of a GCC
31158 builtin and then its argument prototype would still apply. */
31159#ifdef __cplusplus
31160extern "C"
31161#endif
31162char png_get_io_ptr ();
31163int
31164main ()
31165{
31166return png_get_io_ptr ();
31167 ;
31168 return 0;
31169}
31170_ACEOF
31171if ac_fn_c_try_link "$LINENO"; then :
31172 ac_cv_lib_png16_png_get_io_ptr=yes
31173else
31174 ac_cv_lib_png16_png_get_io_ptr=no
31175fi
31176rm -f core conftest.err conftest.$ac_objext \
31177 conftest$ac_exeext conftest.$ac_ext
31178LIBS=$ac_check_lib_save_LIBS
31179fi
31180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png16_png_get_io_ptr" >&5
31181$as_echo "$ac_cv_lib_png16_png_get_io_ptr" >&6; }
31182if test "x$ac_cv_lib_png16_png_get_io_ptr" = xyes; then :
31183 passed=`expr $passed + 1`
31184else
31185 failed=`expr $failed + 1`
31186fi
31187
31188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng16" >&5
31189$as_echo_n "checking for png_longjmp in -lpng16... " >&6; }
31190if ${ac_cv_lib_png16_png_longjmp+:} false; then :
31191 $as_echo_n "(cached) " >&6
31192else
31193 ac_check_lib_save_LIBS=$LIBS
31194LIBS="-lpng16 $LIBS"
31195cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31196/* end confdefs.h. */
31197
31198/* Override any GCC internal prototype to avoid an error.
31199 Use char because int might match the return type of a GCC
31200 builtin and then its argument prototype would still apply. */
31201#ifdef __cplusplus
31202extern "C"
31203#endif
31204char png_longjmp ();
31205int
31206main ()
31207{
31208return png_longjmp ();
31209 ;
31210 return 0;
31211}
31212_ACEOF
31213if ac_fn_c_try_link "$LINENO"; then :
31214 ac_cv_lib_png16_png_longjmp=yes
31215else
31216 ac_cv_lib_png16_png_longjmp=no
31217fi
31218rm -f core conftest.err conftest.$ac_objext \
31219 conftest$ac_exeext conftest.$ac_ext
31220LIBS=$ac_check_lib_save_LIBS
31221fi
31222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png16_png_longjmp" >&5
31223$as_echo "$ac_cv_lib_png16_png_longjmp" >&6; }
31224if test "x$ac_cv_lib_png16_png_longjmp" = xyes; then :
31225 passed=`expr $passed + 1`
31226else
31227 failed=`expr $failed + 1`
31228fi
31229
31230 fi
cristy81beccd2011-10-03 18:17:24 +000031231 if test "1${var}" = '15' ; then
31232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
31233$as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
31234if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
31235 $as_echo_n "(cached) " >&6
31236else
31237 ac_check_lib_save_LIBS=$LIBS
31238LIBS="-lpng15 $LIBS"
31239cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31240/* end confdefs.h. */
31241
31242/* Override any GCC internal prototype to avoid an error.
31243 Use char because int might match the return type of a GCC
31244 builtin and then its argument prototype would still apply. */
31245#ifdef __cplusplus
31246extern "C"
31247#endif
31248char png_get_io_ptr ();
31249int
31250main ()
31251{
31252return png_get_io_ptr ();
31253 ;
31254 return 0;
31255}
31256_ACEOF
31257if ac_fn_c_try_link "$LINENO"; then :
31258 ac_cv_lib_png15_png_get_io_ptr=yes
31259else
31260 ac_cv_lib_png15_png_get_io_ptr=no
31261fi
31262rm -f core conftest.err conftest.$ac_objext \
31263 conftest$ac_exeext conftest.$ac_ext
31264LIBS=$ac_check_lib_save_LIBS
31265fi
31266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
31267$as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
31268if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
31269 passed=`expr $passed + 1`
31270else
31271 failed=`expr $failed + 1`
31272fi
31273
31274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
31275$as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
31276if ${ac_cv_lib_png15_png_longjmp+:} false; then :
31277 $as_echo_n "(cached) " >&6
31278else
31279 ac_check_lib_save_LIBS=$LIBS
31280LIBS="-lpng15 $LIBS"
31281cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31282/* end confdefs.h. */
31283
31284/* Override any GCC internal prototype to avoid an error.
31285 Use char because int might match the return type of a GCC
31286 builtin and then its argument prototype would still apply. */
31287#ifdef __cplusplus
31288extern "C"
31289#endif
31290char png_longjmp ();
31291int
31292main ()
31293{
31294return png_longjmp ();
31295 ;
31296 return 0;
31297}
31298_ACEOF
31299if ac_fn_c_try_link "$LINENO"; then :
31300 ac_cv_lib_png15_png_longjmp=yes
31301else
31302 ac_cv_lib_png15_png_longjmp=no
31303fi
31304rm -f core conftest.err conftest.$ac_objext \
31305 conftest$ac_exeext conftest.$ac_ext
31306LIBS=$ac_check_lib_save_LIBS
31307fi
31308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
31309$as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
31310if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
31311 passed=`expr $passed + 1`
31312else
31313 failed=`expr $failed + 1`
31314fi
31315
31316 fi
31317 if test "1${var}" = '14' ; then
31318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
31319$as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
31320if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
31321 $as_echo_n "(cached) " >&6
31322else
31323 ac_check_lib_save_LIBS=$LIBS
31324LIBS="-lpng14 $LIBS"
31325cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31326/* end confdefs.h. */
31327
31328/* Override any GCC internal prototype to avoid an error.
31329 Use char because int might match the return type of a GCC
31330 builtin and then its argument prototype would still apply. */
31331#ifdef __cplusplus
31332extern "C"
31333#endif
31334char png_get_io_ptr ();
31335int
31336main ()
31337{
31338return png_get_io_ptr ();
31339 ;
31340 return 0;
31341}
31342_ACEOF
31343if ac_fn_c_try_link "$LINENO"; then :
31344 ac_cv_lib_png14_png_get_io_ptr=yes
31345else
31346 ac_cv_lib_png14_png_get_io_ptr=no
31347fi
31348rm -f core conftest.err conftest.$ac_objext \
31349 conftest$ac_exeext conftest.$ac_ext
31350LIBS=$ac_check_lib_save_LIBS
31351fi
31352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
31353$as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
31354if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
31355 passed=`expr $passed + 1`
31356else
31357 failed=`expr $failed + 1`
31358fi
31359
31360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
31361$as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
31362if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
31363 $as_echo_n "(cached) " >&6
31364else
31365 ac_check_lib_save_LIBS=$LIBS
31366LIBS="-lpng14 $LIBS"
31367cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31368/* end confdefs.h. */
31369
31370/* Override any GCC internal prototype to avoid an error.
31371 Use char because int might match the return type of a GCC
31372 builtin and then its argument prototype would still apply. */
31373#ifdef __cplusplus
31374extern "C"
31375#endif
31376char png_get_io_state ();
31377int
31378main ()
31379{
31380return png_get_io_state ();
31381 ;
31382 return 0;
31383}
31384_ACEOF
31385if ac_fn_c_try_link "$LINENO"; then :
31386 ac_cv_lib_png14_png_get_io_state=yes
31387else
31388 ac_cv_lib_png14_png_get_io_state=no
31389fi
31390rm -f core conftest.err conftest.$ac_objext \
31391 conftest$ac_exeext conftest.$ac_ext
31392LIBS=$ac_check_lib_save_LIBS
31393fi
31394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
31395$as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
31396if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
31397 passed=`expr $passed + 1`
31398else
31399 failed=`expr $failed + 1`
31400fi
31401
31402 fi
31403 if test "1${var}" = '12' ; then
31404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
31405$as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
31406if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
31407 $as_echo_n "(cached) " >&6
31408else
31409 ac_check_lib_save_LIBS=$LIBS
31410LIBS="-lpng12 $LIBS"
31411cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31412/* end confdefs.h. */
31413
31414/* Override any GCC internal prototype to avoid an error.
31415 Use char because int might match the return type of a GCC
31416 builtin and then its argument prototype would still apply. */
31417#ifdef __cplusplus
31418extern "C"
31419#endif
31420char png_get_io_ptr ();
31421int
31422main ()
31423{
31424return png_get_io_ptr ();
31425 ;
31426 return 0;
31427}
31428_ACEOF
31429if ac_fn_c_try_link "$LINENO"; then :
31430 ac_cv_lib_png12_png_get_io_ptr=yes
31431else
31432 ac_cv_lib_png12_png_get_io_ptr=no
31433fi
31434rm -f core conftest.err conftest.$ac_objext \
31435 conftest$ac_exeext conftest.$ac_ext
31436LIBS=$ac_check_lib_save_LIBS
31437fi
31438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
31439$as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
31440if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
31441 passed=`expr $passed + 1`
31442else
31443 failed=`expr $failed + 1`
31444fi
31445
31446 fi
31447 if test "1${var}" = '1' ; then
31448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
31449$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
31450if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
31451 $as_echo_n "(cached) " >&6
31452else
31453 ac_check_lib_save_LIBS=$LIBS
31454LIBS="-lpng $LIBS"
31455cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31456/* end confdefs.h. */
31457
31458/* Override any GCC internal prototype to avoid an error.
31459 Use char because int might match the return type of a GCC
31460 builtin and then its argument prototype would still apply. */
31461#ifdef __cplusplus
31462extern "C"
31463#endif
31464char png_get_io_ptr ();
31465int
31466main ()
31467{
31468return png_get_io_ptr ();
31469 ;
31470 return 0;
31471}
31472_ACEOF
31473if ac_fn_c_try_link "$LINENO"; then :
31474 ac_cv_lib_png_png_get_io_ptr=yes
31475else
31476 ac_cv_lib_png_png_get_io_ptr=no
31477fi
31478rm -f core conftest.err conftest.$ac_objext \
31479 conftest$ac_exeext conftest.$ac_ext
31480LIBS=$ac_check_lib_save_LIBS
31481fi
31482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
31483$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
31484if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
31485 passed=`expr $passed + 1`
31486else
31487 failed=`expr $failed + 1`
31488fi
31489
31490 fi
31491 if test $passed -gt 0 -a $failed -le 0 ; then
31492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
31493$as_echo_n "checking if ${pnglib} package is complete... " >&6; }
31494 if test $passed -gt 0 ; then
31495 if test $failed -gt 0 ; then
cristyad38abe2012-12-23 23:03:21 +000031496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31497$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031498 have_png='no (failed tests)'
31499 else
31500 PNG_LIBS="-l${pnglib}"
31501 LIBS="$PNG_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031502
cristy8b350f62009-11-15 23:12:43 +000031503$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031504
cristyad38abe2012-12-23 23:03:21 +000031505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31506$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031507 have_png='yes'
31508 fi
31509 fi
31510 fi
31511 fi
31512 fi
31513 done
31514 fi
cristy3ed852e2009-09-05 21:47:34 +000031515fi
cristy64877302011-08-23 19:10:31 +000031516
cristy73bd4a52010-10-05 11:24:23 +000031517 if test "$have_png" = 'yes'; then
31518 PNG_DELEGATE_TRUE=
31519 PNG_DELEGATE_FALSE='#'
31520else
31521 PNG_DELEGATE_TRUE='#'
31522 PNG_DELEGATE_FALSE=
31523fi
31524
cristy3ed852e2009-09-05 21:47:34 +000031525
cristy50d3f5c2011-09-10 20:09:06 +000031526
cristy3ed852e2009-09-05 21:47:34 +000031527
31528
31529#
31530# Check for RSVG delegate library.
31531#
31532
31533# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000031534if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031535 withval=$with_rsvg; with_rsvg=$withval
31536else
cristy1164d5f2012-08-15 00:58:25 +000031537 with_rsvg='no'
cristy3ed852e2009-09-05 21:47:34 +000031538fi
31539
31540
31541if test "$with_rsvg" != 'yes'; then
31542 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
31543fi
31544
31545have_rsvg='no'
31546have_cairo='no'
31547RSVG_CFLAGS=""
31548RSVG_LIBS=""
31549RSVG_PKG=""
31550if test "x$with_rsvg" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000031551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31552$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031553
31554pkg_failed=no
31555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
31556$as_echo_n "checking for RSVG... " >&6; }
31557
31558if test -n "$RSVG_CFLAGS"; then
31559 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
31560 elif test -n "$PKG_CONFIG"; then
31561 if test -n "$PKG_CONFIG" && \
31562 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31563 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31564 ac_status=$?
31565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31566 test $ac_status = 0; }; then
31567 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31568else
31569 pkg_failed=yes
31570fi
31571 else
31572 pkg_failed=untried
31573fi
31574if test -n "$RSVG_LIBS"; then
31575 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
31576 elif test -n "$PKG_CONFIG"; then
31577 if test -n "$PKG_CONFIG" && \
31578 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31579 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31580 ac_status=$?
31581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31582 test $ac_status = 0; }; then
31583 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31584else
31585 pkg_failed=yes
31586fi
31587 else
31588 pkg_failed=untried
31589fi
31590
31591
31592
31593if test $pkg_failed = yes; then
31594
31595if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31596 _pkg_short_errors_supported=yes
31597else
31598 _pkg_short_errors_supported=no
31599fi
31600 if test $_pkg_short_errors_supported = yes; then
31601 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31602 else
31603 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31604 fi
31605 # Put the nasty error message in config.log where it belongs
31606 echo "$RSVG_PKG_ERRORS" >&5
31607
31608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31609$as_echo "no" >&6; }
31610 have_rsvg=no
31611elif test $pkg_failed = untried; then
31612 have_rsvg=no
31613else
31614 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
31615 RSVG_LIBS=$pkg_cv_RSVG_LIBS
31616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31617$as_echo "yes" >&6; }
31618 have_rsvg=yes
31619fi
cristyad38abe2012-12-23 23:03:21 +000031620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31621$as_echo "" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031622
31623pkg_failed=no
31624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
31625$as_echo_n "checking for CAIRO_SVG... " >&6; }
31626
31627if test -n "$CAIRO_SVG_CFLAGS"; then
31628 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
31629 elif test -n "$PKG_CONFIG"; then
31630 if test -n "$PKG_CONFIG" && \
31631 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31632 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31633 ac_status=$?
31634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31635 test $ac_status = 0; }; then
31636 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
31637else
31638 pkg_failed=yes
31639fi
31640 else
31641 pkg_failed=untried
31642fi
31643if test -n "$CAIRO_SVG_LIBS"; then
31644 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
31645 elif test -n "$PKG_CONFIG"; then
31646 if test -n "$PKG_CONFIG" && \
31647 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31648 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31649 ac_status=$?
31650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31651 test $ac_status = 0; }; then
31652 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
31653else
31654 pkg_failed=yes
31655fi
31656 else
31657 pkg_failed=untried
31658fi
31659
31660
31661
31662if test $pkg_failed = yes; then
31663
31664if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31665 _pkg_short_errors_supported=yes
31666else
31667 _pkg_short_errors_supported=no
31668fi
31669 if test $_pkg_short_errors_supported = yes; then
31670 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
31671 else
31672 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
31673 fi
31674 # Put the nasty error message in config.log where it belongs
31675 echo "$CAIRO_SVG_PKG_ERRORS" >&5
31676
31677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31678$as_echo "no" >&6; }
31679 have_cairo=no
31680elif test $pkg_failed = untried; then
31681 have_cairo=no
31682else
31683 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
31684 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
31685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31686$as_echo "yes" >&6; }
31687 have_cairo=yes
31688fi
cristyad38abe2012-12-23 23:03:21 +000031689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31690$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031691fi
31692
31693if test "$have_rsvg" = 'yes'; then
31694
cristy8b350f62009-11-15 23:12:43 +000031695$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031696
cristyc6722092012-10-14 00:19:31 +000031697 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031698 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
31699 fi
31700fi
31701
31702if test "$have_cairo" = 'yes'; then
31703
cristy8b350f62009-11-15 23:12:43 +000031704$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031705
cristyc6722092012-10-14 00:19:31 +000031706 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031707 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
31708 fi
31709fi
31710
cristy73bd4a52010-10-05 11:24:23 +000031711 if test "$have_rsvg" = 'yes'; then
31712 RSVG_DELEGATE_TRUE=
31713 RSVG_DELEGATE_FALSE='#'
31714else
31715 RSVG_DELEGATE_TRUE='#'
31716 RSVG_DELEGATE_FALSE=
31717fi
31718
31719 if test "$have_cairo" = 'yes'; then
31720 CAIRO_DELEGATE_TRUE=
31721 CAIRO_DELEGATE_FALSE='#'
31722else
31723 CAIRO_DELEGATE_TRUE='#'
31724 CAIRO_DELEGATE_FALSE=
31725fi
31726
cristy3ed852e2009-09-05 21:47:34 +000031727
31728
31729
31730
31731#
31732# Check for TIFF delegate library.
31733#
31734
31735# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000031736if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031737 withval=$with_tiff; with_tiff=$withval
31738else
31739 with_tiff='yes'
31740fi
31741
31742
31743if test "$with_tiff" != 'yes'; then
31744 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
31745fi
31746
31747have_tiff='no'
31748TIFF_LIBS=''
31749if test "$with_tiff" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000031750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31751$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031753$as_echo_n "checking for TIFF... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31755$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031756 failed=0
31757 passed=0
cristy8b350f62009-11-15 23:12:43 +000031758 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031759if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031760 passed=`expr $passed + 1`
31761else
31762 failed=`expr $failed + 1`
31763fi
31764
31765
cristy8b350f62009-11-15 23:12:43 +000031766 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031767if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031768 passed=`expr $passed + 1`
31769else
31770 failed=`expr $failed + 1`
31771fi
31772
31773
cristy8b350f62009-11-15 23:12:43 +000031774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031775$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031776if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031777 $as_echo_n "(cached) " >&6
31778else
31779 ac_check_lib_save_LIBS=$LIBS
31780LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031781cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031782/* end confdefs.h. */
31783
31784/* Override any GCC internal prototype to avoid an error.
31785 Use char because int might match the return type of a GCC
31786 builtin and then its argument prototype would still apply. */
31787#ifdef __cplusplus
31788extern "C"
31789#endif
31790char TIFFOpen ();
31791int
31792main ()
31793{
31794return TIFFOpen ();
31795 ;
31796 return 0;
31797}
31798_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031799if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031800 ac_cv_lib_tiff_TIFFOpen=yes
31801else
cristy8b350f62009-11-15 23:12:43 +000031802 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031803fi
cristy8b350f62009-11-15 23:12:43 +000031804rm -f core conftest.err conftest.$ac_objext \
31805 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031806LIBS=$ac_check_lib_save_LIBS
31807fi
cristy8b350f62009-11-15 23:12:43 +000031808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031809$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031810if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031811 passed=`expr $passed + 1`
31812else
31813 failed=`expr $failed + 1`
31814fi
31815
cristy8b350f62009-11-15 23:12:43 +000031816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031817$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031818if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031819 $as_echo_n "(cached) " >&6
31820else
31821 ac_check_lib_save_LIBS=$LIBS
31822LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031823cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031824/* end confdefs.h. */
31825
31826/* Override any GCC internal prototype to avoid an error.
31827 Use char because int might match the return type of a GCC
31828 builtin and then its argument prototype would still apply. */
31829#ifdef __cplusplus
31830extern "C"
31831#endif
31832char TIFFClientOpen ();
31833int
31834main ()
31835{
31836return TIFFClientOpen ();
31837 ;
31838 return 0;
31839}
31840_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031841if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031842 ac_cv_lib_tiff_TIFFClientOpen=yes
31843else
cristy8b350f62009-11-15 23:12:43 +000031844 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031845fi
cristy8b350f62009-11-15 23:12:43 +000031846rm -f core conftest.err conftest.$ac_objext \
31847 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031848LIBS=$ac_check_lib_save_LIBS
31849fi
cristy8b350f62009-11-15 23:12:43 +000031850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031851$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031852if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031853 passed=`expr $passed + 1`
31854else
31855 failed=`expr $failed + 1`
31856fi
31857
cristy8b350f62009-11-15 23:12:43 +000031858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031859$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031860if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031861 $as_echo_n "(cached) " >&6
31862else
31863 ac_check_lib_save_LIBS=$LIBS
31864LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031865cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031866/* end confdefs.h. */
31867
31868/* Override any GCC internal prototype to avoid an error.
31869 Use char because int might match the return type of a GCC
31870 builtin and then its argument prototype would still apply. */
31871#ifdef __cplusplus
31872extern "C"
31873#endif
31874char TIFFIsByteSwapped ();
31875int
31876main ()
31877{
31878return TIFFIsByteSwapped ();
31879 ;
31880 return 0;
31881}
31882_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031883if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031884 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
31885else
cristy8b350f62009-11-15 23:12:43 +000031886 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000031887fi
cristy8b350f62009-11-15 23:12:43 +000031888rm -f core conftest.err conftest.$ac_objext \
31889 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031890LIBS=$ac_check_lib_save_LIBS
31891fi
cristy8b350f62009-11-15 23:12:43 +000031892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000031893$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000031894if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031895 passed=`expr $passed + 1`
31896else
31897 failed=`expr $failed + 1`
31898fi
31899
cristy8b350f62009-11-15 23:12:43 +000031900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031901$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031902if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031903 $as_echo_n "(cached) " >&6
31904else
31905 ac_check_lib_save_LIBS=$LIBS
31906LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031907cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031908/* end confdefs.h. */
31909
31910/* Override any GCC internal prototype to avoid an error.
31911 Use char because int might match the return type of a GCC
31912 builtin and then its argument prototype would still apply. */
31913#ifdef __cplusplus
31914extern "C"
31915#endif
31916char TIFFReadRGBATile ();
31917int
31918main ()
31919{
31920return TIFFReadRGBATile ();
31921 ;
31922 return 0;
31923}
31924_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031925if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031926 ac_cv_lib_tiff_TIFFReadRGBATile=yes
31927else
cristy8b350f62009-11-15 23:12:43 +000031928 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000031929fi
cristy8b350f62009-11-15 23:12:43 +000031930rm -f core conftest.err conftest.$ac_objext \
31931 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031932LIBS=$ac_check_lib_save_LIBS
31933fi
cristy8b350f62009-11-15 23:12:43 +000031934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000031935$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000031936if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031937 passed=`expr $passed + 1`
31938else
31939 failed=`expr $failed + 1`
31940fi
31941
cristy8b350f62009-11-15 23:12:43 +000031942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031943$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031944if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031945 $as_echo_n "(cached) " >&6
31946else
31947 ac_check_lib_save_LIBS=$LIBS
31948LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031949cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031950/* end confdefs.h. */
31951
31952/* Override any GCC internal prototype to avoid an error.
31953 Use char because int might match the return type of a GCC
31954 builtin and then its argument prototype would still apply. */
31955#ifdef __cplusplus
31956extern "C"
31957#endif
31958char TIFFReadRGBAStrip ();
31959int
31960main ()
31961{
31962return TIFFReadRGBAStrip ();
31963 ;
31964 return 0;
31965}
31966_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031967if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031968 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
31969else
cristy8b350f62009-11-15 23:12:43 +000031970 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000031971fi
cristy8b350f62009-11-15 23:12:43 +000031972rm -f core conftest.err conftest.$ac_objext \
31973 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031974LIBS=$ac_check_lib_save_LIBS
31975fi
cristy8b350f62009-11-15 23:12:43 +000031976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000031977$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000031978if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031979 passed=`expr $passed + 1`
31980else
31981 failed=`expr $failed + 1`
31982fi
31983
cristy8b350f62009-11-15 23:12:43 +000031984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000031985$as_echo_n "checking if TIFF package is complete... " >&6; }
31986 if test $passed -gt 0; then
31987 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000031988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31989$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031990 have_tiff='no (failed tests)'
31991 else
31992 TIFF_LIBS='-ltiff'
31993 LIBS="$TIFF_LIBS $LIBS"
31994
cristy8b350f62009-11-15 23:12:43 +000031995$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031996
cristyad38abe2012-12-23 23:03:21 +000031997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31998$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031999 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000032000 for ac_header in tiffconf.h
32001do :
32002 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000032003if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032004 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032005#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000032006_ACEOF
32007
32008fi
32009
32010done
32011
cristy8b350f62009-11-15 23:12:43 +000032012 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3f590e52011-11-14 14:29:44 +000032013 TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \
32014 TIFFSetTagExtender TIFFSetWarningHandlerExt \
32015 TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000032016do :
32017 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
32018ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000032019if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000032020 cat >>confdefs.h <<_ACEOF
32021#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
32022_ACEOF
32023
32024fi
32025done
32026
32027 fi
32028 else
cristyad38abe2012-12-23 23:03:21 +000032029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32030$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032031 fi
32032fi
cristy73bd4a52010-10-05 11:24:23 +000032033 if test "$have_tiff" = 'yes'; then
32034 TIFF_DELEGATE_TRUE=
32035 TIFF_DELEGATE_FALSE='#'
32036else
32037 TIFF_DELEGATE_TRUE='#'
32038 TIFF_DELEGATE_FALSE=
32039fi
32040
cristy3ed852e2009-09-05 21:47:34 +000032041
32042
32043
32044#
cristyb1860752011-03-14 00:27:46 +000032045# Check for WEBP delegate library.
32046#
32047
32048# Check whether --with-webp was given.
32049if test "${with_webp+set}" = set; then :
32050 withval=$with_webp; with_webp=$withval
32051else
32052 with_webp='yes'
32053fi
32054
32055
32056if test "$with_webp" != 'yes'; then
32057 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
32058fi
32059
32060have_webp='no'
32061WEBP_LIBS=''
32062if test "$with_webp" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000032063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32064$as_echo "-------------------------------------------------------------" >&6; }
cristyb1860752011-03-14 00:27:46 +000032065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
32066$as_echo_n "checking for WEBP... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32068$as_echo "" >&6; }
cristyb1860752011-03-14 00:27:46 +000032069 failed=0
32070 passed=0
32071 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
32072if test "x$ac_cv_header_webp_decode_h" = xyes; then :
32073 passed=`expr $passed + 1`
32074else
32075 failed=`expr $failed + 1`
32076fi
32077
32078
cristy6d670312013-03-22 23:23:01 +000032079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPPictureInitInternal in -lwebp" >&5
32080$as_echo_n "checking for WebPPictureInitInternal in -lwebp... " >&6; }
32081if ${ac_cv_lib_webp_WebPPictureInitInternal+:} false; then :
cristyb1860752011-03-14 00:27:46 +000032082 $as_echo_n "(cached) " >&6
32083else
32084 ac_check_lib_save_LIBS=$LIBS
32085LIBS="-lwebp $LIBS"
32086cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32087/* end confdefs.h. */
32088
32089/* Override any GCC internal prototype to avoid an error.
32090 Use char because int might match the return type of a GCC
32091 builtin and then its argument prototype would still apply. */
32092#ifdef __cplusplus
32093extern "C"
32094#endif
cristy6d670312013-03-22 23:23:01 +000032095char WebPPictureInitInternal ();
cristyb1860752011-03-14 00:27:46 +000032096int
32097main ()
32098{
cristy6d670312013-03-22 23:23:01 +000032099return WebPPictureInitInternal ();
cristyb1860752011-03-14 00:27:46 +000032100 ;
32101 return 0;
32102}
32103_ACEOF
32104if ac_fn_c_try_link "$LINENO"; then :
cristy6d670312013-03-22 23:23:01 +000032105 ac_cv_lib_webp_WebPPictureInitInternal=yes
cristyb1860752011-03-14 00:27:46 +000032106else
cristy6d670312013-03-22 23:23:01 +000032107 ac_cv_lib_webp_WebPPictureInitInternal=no
cristyb1860752011-03-14 00:27:46 +000032108fi
32109rm -f core conftest.err conftest.$ac_objext \
32110 conftest$ac_exeext conftest.$ac_ext
32111LIBS=$ac_check_lib_save_LIBS
32112fi
cristy6d670312013-03-22 23:23:01 +000032113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPPictureInitInternal" >&5
32114$as_echo "$ac_cv_lib_webp_WebPPictureInitInternal" >&6; }
32115if test "x$ac_cv_lib_webp_WebPPictureInitInternal" = xyes; then :
cristyb1860752011-03-14 00:27:46 +000032116 passed=`expr $passed + 1`
32117else
32118 failed=`expr $failed + 1`
32119fi
32120
32121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
32122$as_echo_n "checking if WEBP package is complete... " >&6; }
32123 if test $passed -gt 0; then
32124 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000032125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32126$as_echo "no -- some components failed test" >&6; }
cristyb1860752011-03-14 00:27:46 +000032127 have_webp='no (failed tests)'
32128 else
32129 WEBP_LIBS='-lwebp'
32130 LIBS="$WEBP_LIBS $LIBS"
32131
32132$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
32133
cristyad38abe2012-12-23 23:03:21 +000032134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32135$as_echo "yes" >&6; }
cristyb1860752011-03-14 00:27:46 +000032136 have_webp='yes'
32137 fi
32138 else
cristyad38abe2012-12-23 23:03:21 +000032139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32140$as_echo "no" >&6; }
cristyb1860752011-03-14 00:27:46 +000032141 fi
32142fi
32143 if test "$have_webp" = 'yes'; then
32144 WEBP_DELEGATE_TRUE=
32145 WEBP_DELEGATE_FALSE='#'
32146else
32147 WEBP_DELEGATE_TRUE='#'
32148 WEBP_DELEGATE_FALSE=
32149fi
32150
32151
32152
32153
32154#
cristy3ed852e2009-09-05 21:47:34 +000032155# Set Windows font directory.
32156#
32157
32158# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000032159if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032160 withval=$with_windows_font_dir; with_windows_font_dir=$withval
32161else
cristy5a3dc992014-12-05 19:50:04 +000032162 with_windows_font_dir='default'
cristy3ed852e2009-09-05 21:47:34 +000032163fi
32164
cristy5a3dc992014-12-05 19:50:04 +000032165
32166if test "$with_windows_font_dir" != 'default'; then
cristy3ed852e2009-09-05 21:47:34 +000032167 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
32168fi
32169
32170
32171#
32172# Check for WMF delegate library.
32173#
32174
32175# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000032176if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032177 withval=$with_wmf; with_wmf=$withval
32178else
cristyfc3d0222012-02-07 15:05:57 +000032179 with_wmf='no'
cristy3ed852e2009-09-05 21:47:34 +000032180fi
32181
32182
32183if test "$with_wmf" != 'yes'; then
32184 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
32185fi
32186
32187have_wmf='no'
32188WMF_LIBS=''
cristy03f7cf92011-12-15 01:40:41 +000032189WMF_LIBS_DEPS=''
32190OLIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032191if test "$with_wmf" != 'no'; then
cristy03f7cf92011-12-15 01:40:41 +000032192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32193$as_echo "-------------------------------------------------------------" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000032195$as_echo_n "checking for WMF... " >&6; }
cristy03f7cf92011-12-15 01:40:41 +000032196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32197$as_echo "" >&6; }
32198 have_libwmf='no'
32199 have_libwmflite='no'
32200 have_libwmf_ipa_h='no'
32201
32202 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
32203"
32204if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then :
32205 have_libwmf_ipa_h='yes'
cristy3ed852e2009-09-05 21:47:34 +000032206fi
32207
32208
cristy03f7cf92011-12-15 01:40:41 +000032209 if test "$have_libwmf_ipa_h" = 'yes'; then
32210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
32211$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
32212if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032213 $as_echo_n "(cached) " >&6
32214else
32215 ac_check_lib_save_LIBS=$LIBS
cristy03f7cf92011-12-15 01:40:41 +000032216LIBS="-lwmflite $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032217cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032218/* end confdefs.h. */
32219
32220/* Override any GCC internal prototype to avoid an error.
32221 Use char because int might match the return type of a GCC
32222 builtin and then its argument prototype would still apply. */
32223#ifdef __cplusplus
32224extern "C"
32225#endif
cristy03f7cf92011-12-15 01:40:41 +000032226char wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000032227int
32228main ()
32229{
cristy03f7cf92011-12-15 01:40:41 +000032230return wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000032231 ;
32232 return 0;
32233}
32234_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032235if ac_fn_c_try_link "$LINENO"; then :
cristy03f7cf92011-12-15 01:40:41 +000032236 ac_cv_lib_wmflite_wmf_lite_create=yes
cristy3ed852e2009-09-05 21:47:34 +000032237else
cristy03f7cf92011-12-15 01:40:41 +000032238 ac_cv_lib_wmflite_wmf_lite_create=no
cristy3ed852e2009-09-05 21:47:34 +000032239fi
cristy8b350f62009-11-15 23:12:43 +000032240rm -f core conftest.err conftest.$ac_objext \
32241 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032242LIBS=$ac_check_lib_save_LIBS
32243fi
cristy03f7cf92011-12-15 01:40:41 +000032244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
32245$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
32246if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then :
32247 have_libwmflite='yes'
cristy9243a2d2011-08-22 17:32:32 +000032248fi
32249
cristy03f7cf92011-12-15 01:40:41 +000032250 if test "$have_libwmflite" = 'yes'; then
32251
32252$as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
32253
32254 WMF_LIBS='-lwmflite'
glennrp33e524b2011-08-24 17:41:57 +000032255 LIBS="$WMF_LIBS $LIBS"
cristy03f7cf92011-12-15 01:40:41 +000032256 have_wmf='yes'
32257 else
32258 WMF_LIBS_DEPS=''
32259 WMF_CONFIG_LIBS=`libwmf-config --libs`
32260 for lib in xml2 expat freetype jpeg png z; do
32261 testlib="-l${lib}"
32262 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
32263 done
32264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
32265$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
32266if ${ac_cv_lib_wmf_wmf_api_create+:} false; then :
32267 $as_echo_n "(cached) " >&6
32268else
32269 ac_check_lib_save_LIBS=$LIBS
32270LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
32271cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32272/* end confdefs.h. */
32273
32274/* Override any GCC internal prototype to avoid an error.
32275 Use char because int might match the return type of a GCC
32276 builtin and then its argument prototype would still apply. */
32277#ifdef __cplusplus
32278extern "C"
32279#endif
32280char wmf_api_create ();
32281int
32282main ()
32283{
32284return wmf_api_create ();
32285 ;
32286 return 0;
32287}
32288_ACEOF
32289if ac_fn_c_try_link "$LINENO"; then :
32290 ac_cv_lib_wmf_wmf_api_create=yes
32291else
32292 ac_cv_lib_wmf_wmf_api_create=no
32293fi
32294rm -f core conftest.err conftest.$ac_objext \
32295 conftest$ac_exeext conftest.$ac_ext
32296LIBS=$ac_check_lib_save_LIBS
32297fi
32298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
32299$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
32300if test "x$ac_cv_lib_wmf_wmf_api_create" = xyes; then :
32301 have_libwmf='yes'
32302fi
32303
32304 if test "$have_libwmf" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032305
cristy8b350f62009-11-15 23:12:43 +000032306$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032307
cristy03f7cf92011-12-15 01:40:41 +000032308 WMF_LIBS='-lwmf'
32309 LIBS="$WMF_LIBS $LIBS"
32310 have_wmf='yes'
32311 else
32312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32313$as_echo "no -- some components failed test" >&6; }
32314 have_wmf='no (failed tests)'
32315 have_wmflite='no (failed tests)'
32316 LIBS="$OLIBS"
32317 WMF_LIBS=''
32318 fi
glennrp33e524b2011-08-24 17:41:57 +000032319 fi
cristy03f7cf92011-12-15 01:40:41 +000032320 fi
32321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
32322$as_echo_n "checking if WMF package is complete... " >&6; }
32323 if test "$have_wmf" = 'yes'; then
32324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32325$as_echo "yes" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032326 else
cristy03f7cf92011-12-15 01:40:41 +000032327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32328$as_echo "no" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032329 fi
cristy3ed852e2009-09-05 21:47:34 +000032330fi
cristy73bd4a52010-10-05 11:24:23 +000032331 if test "$have_wmf" = 'yes'; then
32332 WMF_DELEGATE_TRUE=
32333 WMF_DELEGATE_FALSE='#'
32334else
32335 WMF_DELEGATE_TRUE='#'
32336 WMF_DELEGATE_FALSE=
32337fi
32338
cristy3ed852e2009-09-05 21:47:34 +000032339
32340
32341
cristy81beccd2011-10-03 18:17:24 +000032342
32343
cristy3ed852e2009-09-05 21:47:34 +000032344#
32345# Check for XML delegate library.
32346#
32347
32348# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000032349if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032350 withval=$with_xml; with_xml=$withval
32351else
cristyfc3d0222012-02-07 15:05:57 +000032352 with_xml='yes'
cristy3ed852e2009-09-05 21:47:34 +000032353fi
32354
32355
cristy81beccd2011-10-03 18:17:24 +000032356if test "$with_xml" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000032357 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
32358fi
32359
cristy81beccd2011-10-03 18:17:24 +000032360have_xml='no'
32361XML_LIBS=''
32362if test "$with_xml" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000032363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32364$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
32366$as_echo_n "checking for XML... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32368$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032369 PERSIST_LDFLAGS=$LDFLAGS
32370 PERSIST_CPPFLAGS=$CPPFLAGS
32371 xml2_config=''
32372 # Extract the first word of "xml2-config", so it can be a program name with args.
32373set dummy xml2-config; ac_word=$2
32374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32375$as_echo_n "checking for $ac_word... " >&6; }
32376if ${ac_cv_path_xml2_config+:} false; then :
32377 $as_echo_n "(cached) " >&6
32378else
32379 case $xml2_config in
32380 [\\/]* | ?:[\\/]*)
32381 ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path.
32382 ;;
32383 *)
32384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32385for as_dir in $PATH
32386do
32387 IFS=$as_save_IFS
32388 test -z "$as_dir" && as_dir=.
32389 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy81beccd2011-10-03 18:17:24 +000032391 ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext"
32392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32393 break 2
32394 fi
32395done
32396 done
32397IFS=$as_save_IFS
32398
32399 ;;
32400esac
32401fi
32402xml2_config=$ac_cv_path_xml2_config
32403if test -n "$xml2_config"; then
32404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
32405$as_echo "$xml2_config" >&6; }
32406else
32407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32408$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032409fi
32410
cristy81beccd2011-10-03 18:17:24 +000032411 if test -n "$xml2_config"; then
32412 # Debian installs libxml headers under /usr/include/libxml2/libxml with
32413 # the shared library installed under /usr/lib, whereas the package
32414 # installs itself under $prefix/libxml and $prefix/lib.
cristy4a069772014-10-05 19:26:36 +000032415 xml2_prefix=`${xml2_config} --prefix`
cristy81beccd2011-10-03 18:17:24 +000032416 if test -d "${xml2_prefix}/include/libxml2"; then
32417 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
32418 fi
32419 if test "${xml2_prefix}" != '/usr'; then
32420 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
32421 fi
32422 fi
32423 failed=0
32424 passed=0
32425 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
32426if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
32427 passed=`expr $passed + 1`
32428else
32429 failed=`expr $failed + 1`
32430fi
32431
32432
32433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5
32434$as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; }
32435if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then :
32436 $as_echo_n "(cached) " >&6
32437else
32438 ac_check_lib_save_LIBS=$LIBS
32439LIBS="-lxml2 $LIBS"
32440cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32441/* end confdefs.h. */
32442
32443/* Override any GCC internal prototype to avoid an error.
32444 Use char because int might match the return type of a GCC
32445 builtin and then its argument prototype would still apply. */
32446#ifdef __cplusplus
32447extern "C"
32448#endif
32449char xmlSAXVersion ();
32450int
32451main ()
32452{
32453return xmlSAXVersion ();
32454 ;
32455 return 0;
32456}
32457_ACEOF
32458if ac_fn_c_try_link "$LINENO"; then :
32459 ac_cv_lib_xml2_xmlSAXVersion=yes
32460else
32461 ac_cv_lib_xml2_xmlSAXVersion=no
32462fi
32463rm -f core conftest.err conftest.$ac_objext \
32464 conftest$ac_exeext conftest.$ac_ext
32465LIBS=$ac_check_lib_save_LIBS
32466fi
32467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5
32468$as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; }
32469if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then :
32470 passed=`expr $passed + 1`
32471else
32472 failed=`expr $failed + 1`
32473fi
32474
32475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5
32476$as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; }
32477if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then :
32478 $as_echo_n "(cached) " >&6
32479else
32480 ac_check_lib_save_LIBS=$LIBS
32481LIBS="-lxml2 $LIBS"
32482cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32483/* end confdefs.h. */
32484
32485/* Override any GCC internal prototype to avoid an error.
32486 Use char because int might match the return type of a GCC
32487 builtin and then its argument prototype would still apply. */
32488#ifdef __cplusplus
32489extern "C"
32490#endif
32491char xmlParseChunk ();
32492int
32493main ()
32494{
32495return xmlParseChunk ();
32496 ;
32497 return 0;
32498}
32499_ACEOF
32500if ac_fn_c_try_link "$LINENO"; then :
32501 ac_cv_lib_xml2_xmlParseChunk=yes
32502else
32503 ac_cv_lib_xml2_xmlParseChunk=no
32504fi
32505rm -f core conftest.err conftest.$ac_objext \
32506 conftest$ac_exeext conftest.$ac_ext
32507LIBS=$ac_check_lib_save_LIBS
32508fi
32509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5
32510$as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; }
32511if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then :
32512 passed=`expr $passed + 1`
32513else
32514 failed=`expr $failed + 1`
32515fi
32516
32517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5
32518$as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; }
32519if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then :
32520 $as_echo_n "(cached) " >&6
32521else
32522 ac_check_lib_save_LIBS=$LIBS
32523LIBS="-lxml2 $LIBS"
32524cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32525/* end confdefs.h. */
32526
32527/* Override any GCC internal prototype to avoid an error.
32528 Use char because int might match the return type of a GCC
32529 builtin and then its argument prototype would still apply. */
32530#ifdef __cplusplus
32531extern "C"
32532#endif
32533char xmlCreatePushParserCtxt ();
32534int
32535main ()
32536{
32537return xmlCreatePushParserCtxt ();
32538 ;
32539 return 0;
32540}
32541_ACEOF
32542if ac_fn_c_try_link "$LINENO"; then :
32543 ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes
32544else
32545 ac_cv_lib_xml2_xmlCreatePushParserCtxt=no
32546fi
32547rm -f core conftest.err conftest.$ac_objext \
32548 conftest$ac_exeext conftest.$ac_ext
32549LIBS=$ac_check_lib_save_LIBS
32550fi
32551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5
32552$as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; }
32553if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then :
32554 passed=`expr $passed + 1`
32555else
32556 failed=`expr $failed + 1`
32557fi
32558
32559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
32560$as_echo_n "checking if XML package is complete... " >&6; }
32561 if test $passed -gt 0; then
32562 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000032563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32564$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032565 have_xml='no (failed tests)'
32566 LDFLAGS="$PERSIST_LDFLAGS"
32567 CPPFLAGS="$PERSIST_CPPFLAGS"
32568 else
32569 XML_LIBS='-lxml2'
32570 LIBS="$XML_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032571
cristy8b350f62009-11-15 23:12:43 +000032572$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032573
cristyad38abe2012-12-23 23:03:21 +000032574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32575$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032576 have_xml='yes'
32577 fi
32578 else
cristyad38abe2012-12-23 23:03:21 +000032579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32580$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032581 fi
32582fi
cristy73bd4a52010-10-05 11:24:23 +000032583 if test "$have_xml" = 'yes'; then
32584 XML_DELEGATE_TRUE=
32585 XML_DELEGATE_FALSE='#'
32586else
32587 XML_DELEGATE_TRUE='#'
32588 XML_DELEGATE_FALSE=
32589fi
32590
cristy3ed852e2009-09-05 21:47:34 +000032591
32592
32593
32594# Substitute compiler name to build/link PerlMagick
32595#
32596
32597
32598#
32599# Configure install Paths
32600#
cristy7def36a2011-10-28 19:04:41 +000032601
cristy2a11bef2011-10-28 18:33:11 +000032602# Path to ImageMagick header files
cristybdabdd62013-03-04 17:43:36 +000032603INCLUDE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristye52f12f2012-12-31 15:32:36 +000032604INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}"
32605DEFINE_INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}/"
cristy2a11bef2011-10-28 18:33:11 +000032606case "${build_os}" in
32607 mingw* )
32608 DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
32609 ;;
32610esac
32611
32612cat >>confdefs.h <<_ACEOF
32613#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH"
32614_ACEOF
32615
32616
cristy3ed852e2009-09-05 21:47:34 +000032617
cristye52f12f2012-12-31 15:32:36 +000032618# Path to ImageMagick header files (arch part)
32619INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
32620DEFINE_INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
32621case "${build_os}" in
32622 mingw* )
32623 DEFINE_INCLUDEARCH_PATH=`$WinPathScript "$DEFINE_INCLUDEARCH_PATH" 1`
32624 ;;
32625esac
32626
32627cat >>confdefs.h <<_ACEOF
32628#define INCLUDEARCH_PATH "$DEFINE_INCLUDE_PATH"
32629_ACEOF
32630
32631
32632
cristy3ed852e2009-09-05 21:47:34 +000032633# Subdirectory under lib to place ImageMagick lib files
32634LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
32635
32636cat >>confdefs.h <<_ACEOF
32637#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
32638_ACEOF
32639
32640
32641# Path to ImageMagick bin directory
32642EXECUTABLE_PATH="${BIN_DIR}"
32643DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
32644case "${build_os}" in
32645 mingw* )
32646 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
32647 ;;
32648esac
32649
32650cat >>confdefs.h <<_ACEOF
32651#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
32652_ACEOF
32653
32654
32655
32656# Path to ImageMagick lib
32657LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
32658DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
32659case "${build_os}" in
32660 mingw* )
32661 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
32662 ;;
32663esac
32664
32665cat >>confdefs.h <<_ACEOF
32666#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
32667_ACEOF
32668
32669
32670
cristy3ed852e2009-09-05 21:47:34 +000032671#
cristy8d0ff762013-03-10 20:33:28 +000032672# path to local binaries
32673if test "x$LIB_BIN_BASEDIRNAME" = "x"; then
32674 LIB_BIN_BASEDIRNAME="bin"
32675fi
32676
32677cat >>confdefs.h <<_ACEOF
32678#define LIB_BIN_BASEDIRNAME "$LIB_BIN_BASEDIRNAME"
32679_ACEOF
32680
32681
32682
32683if test "x$LIB_BIN_DIR" = "x"; then
32684 LIB_BIN_DIR=${LIB_BIN_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32685fi
32686
32687
32688LIB_BIN_DIR_RELATIVE_PATH=$LIB_BIN_DIR
32689
32690LIB_BIN_DIR_PATH="${LIBRARY_PATH}/${LIB_BIN_DIR_RELATIVE_PATH}"
32691
32692
32693#
cristy01ff9f32012-12-01 18:15:29 +000032694# path to modules lib
32695if test "x$MODULES_BASEDIRNAME" = "x"; then
32696 MODULES_BASEDIRNAME="modules"
32697fi
cristy3ed852e2009-09-05 21:47:34 +000032698
32699cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032700#define MODULES_BASEDIRNAME "$MODULES_BASEDIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032701_ACEOF
32702
cristy01ff9f32012-12-01 18:15:29 +000032703
32704
32705if test "x$MODULES_DIRNAME" = "x"; then
cristy4bdbd342012-12-03 18:41:18 +000032706 MODULES_DIRNAME=${MODULES_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32707else
cristy3ed852e2009-09-05 21:47:34 +000032708
32709cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032710#define MODULES_DIRNAME "$MODULES_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032711_ACEOF
32712
cristycf4a3c22012-12-02 21:47:25 +000032713fi
cristy01ff9f32012-12-01 18:15:29 +000032714
32715
cristy371d4812012-12-01 19:48:10 +000032716MODULES_RELATIVE_PATH="${MODULES_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032717
32718MODULES_PATH="${LIBRARY_PATH}/${MODULES_RELATIVE_PATH}"
32719
32720
32721#
32722# path to coders lib
32723if test "x$CODER_DIRNAME" = "x"; then
32724 CODER_DIRNAME="coders"
32725fi
32726
32727cat >>confdefs.h <<_ACEOF
32728#define CODER_DIRNAME "$CODER_DIRNAME"
32729_ACEOF
32730
32731
32732
cristy371d4812012-12-01 19:48:10 +000032733CODER_RELATIVE_PATH="${CODER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032734CODER_PATH="${MODULES_PATH}/${CODER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000032735
32736
32737#
32738# Subdirectory under lib to place ImageMagick filter module files
cristy01ff9f32012-12-01 18:15:29 +000032739#
32740# path to coders lib
32741if test "x$FILTER_DIRNAME" = "x"; then
32742 FILTER_DIRNAME="filters"
32743fi
cristy3ed852e2009-09-05 21:47:34 +000032744
32745cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032746#define FILTER_DIRNAME "$FILTER_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032747_ACEOF
32748
cristy3ed852e2009-09-05 21:47:34 +000032749
cristy3ed852e2009-09-05 21:47:34 +000032750
cristy371d4812012-12-01 19:48:10 +000032751FILTER_RELATIVE_PATH="${FILTER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032752FILTER_PATH="${MODULES_PATH}/${FILTER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000032753
32754
32755#
32756# Path to ImageMagick documentation files
cristybdabdd62013-03-04 17:43:36 +000032757DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristyd55889c2011-03-27 00:50:24 +000032758DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
32759DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032760case "${build_os}" in
32761 mingw* )
32762 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
32763 ;;
32764esac
32765
32766cat >>confdefs.h <<_ACEOF
32767#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
32768_ACEOF
32769
32770
32771
cristydd17feb2014-03-05 02:06:32 +000032772#
32773# Enable/Disable documentation
32774# Check whether --enable-docs was given.
32775if test "${enable_docs+set}" = set; then :
32776 enableval=$enable_docs; wantdocs=$enableval
32777else
cristy02272312014-03-07 00:55:25 +000032778 wantdocs=yes
cristydd17feb2014-03-05 02:06:32 +000032779fi
32780
cristy02272312014-03-07 00:55:25 +000032781 if test "$wantdocs" = "yes"; then
cristydd17feb2014-03-05 02:06:32 +000032782 INSTALL_DOC_TRUE=
32783 INSTALL_DOC_FALSE='#'
32784else
32785 INSTALL_DOC_TRUE='#'
32786 INSTALL_DOC_FALSE=
32787fi
32788
32789
cristy2a11bef2011-10-28 18:33:11 +000032790# Subdirectory to place architecture-dependent configuration files
cristybdabdd62013-03-04 17:43:36 +000032791CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristy45dbd322011-03-27 16:40:38 +000032792
32793cat >>confdefs.h <<_ACEOF
32794#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
32795_ACEOF
32796
cristy7def36a2011-10-28 19:04:41 +000032797CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
cristy45dbd322011-03-27 16:40:38 +000032798DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
32799case "${build_os}" in
32800 mingw* )
32801 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
32802 ;;
32803esac
32804
32805cat >>confdefs.h <<_ACEOF
32806#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
32807_ACEOF
32808
32809
32810
cristy2a11bef2011-10-28 18:33:11 +000032811# Subdirectory to place architecture-independent configuration files
cristybdabdd62013-03-04 17:43:36 +000032812SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristy3ed852e2009-09-05 21:47:34 +000032813
32814cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032815#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032816_ACEOF
32817
cristy670aa3c2011-11-03 00:54:00 +000032818SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
cristy4f820712011-04-01 12:35:43 +000032819DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032820case "${build_os}" in
32821 mingw* )
cristy4f820712011-04-01 12:35:43 +000032822 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000032823 ;;
32824esac
32825
32826cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032827#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032828_ACEOF
32829
32830
32831
cristy54378032012-12-04 15:52:20 +000032832#
32833# Subdirectory to place architecture-dependent configuration files.
32834if test "x$SHAREARCH_BASEDIRNAME" = "x"; then
32835 SHAREARCH_BASEDIRNAME="config"
32836fi
cristy670aa3c2011-11-03 00:54:00 +000032837
32838cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000032839#define SHAREARCH_BASEDIRNAME "$SHAREARCH_BASEDIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000032840_ACEOF
32841
cristy54378032012-12-04 15:52:20 +000032842
32843
32844if test "x$SHAREARCH_DIRNAME" = "x"; then
32845 SHAREARCH_DIRNAME=${SHAREARCH_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32846else
cristy670aa3c2011-11-03 00:54:00 +000032847
32848cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000032849#define SHAREARCH_DIRNAME "$SHAREARCH_DIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000032850_ACEOF
32851
cristy54378032012-12-04 15:52:20 +000032852fi
32853
32854
32855SHAREARCH_RELATIVE_PATH="${SHAREARCH_DIRNAME}"
32856
32857SHAREARCH_PATH="${LIBRARY_PATH}/${SHAREARCH_RELATIVE_PATH}"
cristy670aa3c2011-11-03 00:54:00 +000032858
32859
cristy3ed852e2009-09-05 21:47:34 +000032860#
32861# program_transform_name is formed for use in a Makefile, so create a
32862# modified version for use in a shell script.
32863configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
32864
32865# Default delegate definitions
cristyad38abe2012-12-23 23:03:21 +000032866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32867$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000032869$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32871$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032872AutotraceDecodeDelegateDefault='autotrace'
cristy16b412d2014-12-15 11:09:48 +000032873BPGDecodeDelegateDefault='bpgdec'
32874BPGEncodeDelegateDefault='bpgenc'
cristy3d7f8062009-09-24 20:45:35 +000032875BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000032876BZIPDelegateDefault='bzip2'
32877BrowseDelegateDefault='xdg-open'
cristy3ed852e2009-09-05 21:47:34 +000032878CatDelegateDefault='cat'
32879DNGDecodeDelegateDefault='ufraw-batch'
cristy66f238e2014-05-16 12:21:48 +000032880DOCDecodeDelegateDefault='soffice'
cristy3ed852e2009-09-05 21:47:34 +000032881GVCDecodeDelegateDefault='dot'
32882DVIDecodeDelegateDefault='dvips'
32883EchoDelegateDefault='echo'
32884EditorDelegateDefault='xterm'
cristy3ed852e2009-09-05 21:47:34 +000032885ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
32886DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
32887MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
32888GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000032889HPGLDecodeDelegateDefault='hp2xx'
32890HTMLDecodeDelegateDefault='html2ps'
32891ILBMDecodeDelegateDefault='ilbmtoppm'
32892ILBMEncodeDelegateDefault='ppmtoilbm'
cristy71f53d52013-04-27 13:33:59 +000032893JXRDecodeDelegateDefault='JxrDecApp'
32894JXREncodeDelegateDefault='JxrEncApp'
cristy3ed852e2009-09-05 21:47:34 +000032895LPDelegateDefault='lp'
32896LPRDelegateDefault='lpr'
cristy3ed852e2009-09-05 21:47:34 +000032897LaunchDelegateDefault='gimp'
32898MANDelegateDefault='groff'
cristy81ab5af2013-10-06 18:28:39 +000032899MPEGDecodeDelegateDefault='avconv'
32900MPEGEncodeDelegateDefault='avconv'
cristy935c86e2010-06-05 23:50:07 +000032901MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000032902MVDelegateDefault='mv'
32903PCLDelegateDefault='pcl6'
32904PGPDecodeDelegateDefault='pgpv'
32905POVDelegateDefault='povray'
32906if test "$native_win32_build" = 'yes'; then
32907 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000032908elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032909 PSDelegateDefault='gsc'
32910else
32911 PSDelegateDefault='gs'
32912fi
32913RLEEncodeDelegateDefault='rawtorle'
32914RMDelegateDefault='rm'
cristy5281e322012-02-09 21:12:45 +000032915RSVGDecodeDelegateDefault='rsvg-convert'
cristy3ed852e2009-09-05 21:47:34 +000032916SCANDecodeDelegateDefault='scanimage'
cristyec6934f2012-08-14 18:38:40 +000032917SVGDecodeDelegateDefault='inkscape'
cristy3ed852e2009-09-05 21:47:34 +000032918TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000032919UniconvertorDelegateDefault='uniconvertor'
cristy86e86092013-08-04 17:43:57 +000032920WebPDecodeDelegateDefault='dwebp'
32921WebPEncodeDelegateDefault='cwebp'
cristy3ed852e2009-09-05 21:47:34 +000032922WMFDecodeDelegateDefault='wmf2eps'
32923WWWDecodeDelegateDefault='curl'
32924XPSDelegateDefault='gxps'
32925ZipDelegateDefault='gzip'
32926
32927# Search for delegates
32928# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
32929set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032931$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032932if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032933 $as_echo_n "(cached) " >&6
32934else
32935 case $AutotraceDecodeDelegate in
32936 [\\/]* | ?:[\\/]*)
32937 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
32938 ;;
32939 *)
32940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32941for as_dir in $PATH
32942do
32943 IFS=$as_save_IFS
32944 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032945 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032947 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032949 break 2
32950 fi
32951done
cristy8b350f62009-11-15 23:12:43 +000032952 done
cristy3ed852e2009-09-05 21:47:34 +000032953IFS=$as_save_IFS
32954
32955 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
32956 ;;
32957esac
32958fi
32959AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
32960if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032962$as_echo "$AutotraceDecodeDelegate" >&6; }
32963else
cristy8b350f62009-11-15 23:12:43 +000032964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032965$as_echo "no" >&6; }
32966fi
32967
32968
cristy16b412d2014-12-15 11:09:48 +000032969# Extract the first word of ""$BGPDecodeDelegateDefault"", so it can be a program name with args.
32970set dummy "$BGPDecodeDelegateDefault"; ac_word=$2
32971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32972$as_echo_n "checking for $ac_word... " >&6; }
32973if ${ac_cv_path_BGPDecodeDelegate+:} false; then :
32974 $as_echo_n "(cached) " >&6
32975else
32976 case $BGPDecodeDelegate in
32977 [\\/]* | ?:[\\/]*)
32978 ac_cv_path_BGPDecodeDelegate="$BGPDecodeDelegate" # Let the user override the test with a path.
32979 ;;
32980 *)
32981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32982for as_dir in $PATH
32983do
32984 IFS=$as_save_IFS
32985 test -z "$as_dir" && as_dir=.
32986 for ac_exec_ext in '' $ac_executable_extensions; do
32987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32988 ac_cv_path_BGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32990 break 2
32991 fi
32992done
32993 done
32994IFS=$as_save_IFS
32995
32996 test -z "$ac_cv_path_BGPDecodeDelegate" && ac_cv_path_BGPDecodeDelegate=""$BGPDecodeDelegateDefault""
32997 ;;
32998esac
32999fi
33000BGPDecodeDelegate=$ac_cv_path_BGPDecodeDelegate
33001if test -n "$BGPDecodeDelegate"; then
33002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BGPDecodeDelegate" >&5
33003$as_echo "$BGPDecodeDelegate" >&6; }
33004else
33005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33006$as_echo "no" >&6; }
33007fi
33008
33009
33010# Extract the first word of ""$BGPEncodeDelegateDefault"", so it can be a program name with args.
33011set dummy "$BGPEncodeDelegateDefault"; ac_word=$2
33012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33013$as_echo_n "checking for $ac_word... " >&6; }
33014if ${ac_cv_path_BGPEncodeDelegate+:} false; then :
33015 $as_echo_n "(cached) " >&6
33016else
33017 case $BGPEncodeDelegate in
33018 [\\/]* | ?:[\\/]*)
33019 ac_cv_path_BGPEncodeDelegate="$BGPEncodeDelegate" # Let the user override the test with a path.
33020 ;;
33021 *)
33022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33023for as_dir in $PATH
33024do
33025 IFS=$as_save_IFS
33026 test -z "$as_dir" && as_dir=.
33027 for ac_exec_ext in '' $ac_executable_extensions; do
33028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33029 ac_cv_path_BGPEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33031 break 2
33032 fi
33033done
33034 done
33035IFS=$as_save_IFS
33036
33037 test -z "$ac_cv_path_BGPEncodeDelegate" && ac_cv_path_BGPEncodeDelegate=""$BGPEncodeDelegateDefault""
33038 ;;
33039esac
33040fi
33041BGPEncodeDelegate=$ac_cv_path_BGPEncodeDelegate
33042if test -n "$BGPEncodeDelegate"; then
33043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BGPEncodeDelegate" >&5
33044$as_echo "$BGPEncodeDelegate" >&6; }
33045else
33046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33047$as_echo "no" >&6; }
33048fi
33049
33050
cristy3ed852e2009-09-05 21:47:34 +000033051# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
33052set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033054$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033055if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033056 $as_echo_n "(cached) " >&6
33057else
33058 case $BlenderDecodeDelegate in
33059 [\\/]* | ?:[\\/]*)
33060 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
33061 ;;
33062 *)
33063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33064for as_dir in $PATH
33065do
33066 IFS=$as_save_IFS
33067 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033068 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033070 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033072 break 2
33073 fi
33074done
cristy8b350f62009-11-15 23:12:43 +000033075 done
cristy3ed852e2009-09-05 21:47:34 +000033076IFS=$as_save_IFS
33077
33078 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
33079 ;;
33080esac
33081fi
33082BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
33083if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033085$as_echo "$BlenderDecodeDelegate" >&6; }
33086else
cristy8b350f62009-11-15 23:12:43 +000033087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033088$as_echo "no" >&6; }
33089fi
33090
33091
33092# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
33093set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033095$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033096if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033097 $as_echo_n "(cached) " >&6
33098else
33099 case $BZIPDelegate in
33100 [\\/]* | ?:[\\/]*)
33101 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
33102 ;;
33103 *)
33104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33105for as_dir in $PATH
33106do
33107 IFS=$as_save_IFS
33108 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033109 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033111 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033113 break 2
33114 fi
33115done
cristy8b350f62009-11-15 23:12:43 +000033116 done
cristy3ed852e2009-09-05 21:47:34 +000033117IFS=$as_save_IFS
33118
33119 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
33120 ;;
33121esac
33122fi
33123BZIPDelegate=$ac_cv_path_BZIPDelegate
33124if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033126$as_echo "$BZIPDelegate" >&6; }
33127else
cristy8b350f62009-11-15 23:12:43 +000033128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033129$as_echo "no" >&6; }
33130fi
33131
33132
cristyc59f0e72012-08-27 12:59:33 +000033133for ac_prog in "$BrowseDelegateDefault" google-chrome firefox konqueror mozilla lynx
33134do
33135 # Extract the first word of "$ac_prog", so it can be a program name with args.
33136set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033138$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033139if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033140 $as_echo_n "(cached) " >&6
33141else
33142 case $BrowseDelegate in
33143 [\\/]* | ?:[\\/]*)
33144 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
33145 ;;
33146 *)
33147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33148for as_dir in $PATH
33149do
33150 IFS=$as_save_IFS
33151 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033152 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033154 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033156 break 2
33157 fi
33158done
cristy8b350f62009-11-15 23:12:43 +000033159 done
cristy3ed852e2009-09-05 21:47:34 +000033160IFS=$as_save_IFS
33161
cristy3ed852e2009-09-05 21:47:34 +000033162 ;;
33163esac
33164fi
33165BrowseDelegate=$ac_cv_path_BrowseDelegate
33166if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033168$as_echo "$BrowseDelegate" >&6; }
33169else
cristy8b350f62009-11-15 23:12:43 +000033170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033171$as_echo "no" >&6; }
33172fi
33173
33174
cristyc59f0e72012-08-27 12:59:33 +000033175 test -n "$BrowseDelegate" && break
33176done
33177test -n "$BrowseDelegate" || BrowseDelegate=""$BrowseDelegateDefault""
33178
cristy3ed852e2009-09-05 21:47:34 +000033179# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
33180set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033182$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033183if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033184 $as_echo_n "(cached) " >&6
33185else
33186 case $CatDelegate in
33187 [\\/]* | ?:[\\/]*)
33188 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
33189 ;;
33190 *)
33191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33192for as_dir in $PATH
33193do
33194 IFS=$as_save_IFS
33195 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033196 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033198 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033200 break 2
33201 fi
33202done
cristy8b350f62009-11-15 23:12:43 +000033203 done
cristy3ed852e2009-09-05 21:47:34 +000033204IFS=$as_save_IFS
33205
33206 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
33207 ;;
33208esac
33209fi
33210CatDelegate=$ac_cv_path_CatDelegate
33211if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033213$as_echo "$CatDelegate" >&6; }
33214else
cristy8b350f62009-11-15 23:12:43 +000033215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033216$as_echo "no" >&6; }
33217fi
33218
33219
33220# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
33221set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033223$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033224if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033225 $as_echo_n "(cached) " >&6
33226else
33227 case $DNGDecodeDelegate in
33228 [\\/]* | ?:[\\/]*)
33229 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
33230 ;;
33231 *)
33232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33233for as_dir in $PATH
33234do
33235 IFS=$as_save_IFS
33236 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033237 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033239 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033241 break 2
33242 fi
33243done
cristy8b350f62009-11-15 23:12:43 +000033244 done
cristy3ed852e2009-09-05 21:47:34 +000033245IFS=$as_save_IFS
33246
33247 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
33248 ;;
33249esac
33250fi
33251DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
33252if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033254$as_echo "$DNGDecodeDelegate" >&6; }
33255else
cristy8b350f62009-11-15 23:12:43 +000033256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033257$as_echo "no" >&6; }
33258fi
33259
33260
cristy66f238e2014-05-16 12:21:48 +000033261# Extract the first word of ""$DOCDecodeDelegateDefault"", so it can be a program name with args.
33262set dummy "$DOCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033264$as_echo_n "checking for $ac_word... " >&6; }
cristy66f238e2014-05-16 12:21:48 +000033265if ${ac_cv_path_DOCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033266 $as_echo_n "(cached) " >&6
33267else
cristy66f238e2014-05-16 12:21:48 +000033268 case $DOCDecodeDelegate in
cristy3ed852e2009-09-05 21:47:34 +000033269 [\\/]* | ?:[\\/]*)
cristy66f238e2014-05-16 12:21:48 +000033270 ac_cv_path_DOCDecodeDelegate="$DOCDecodeDelegate" # Let the user override the test with a path.
cristy3ed852e2009-09-05 21:47:34 +000033271 ;;
33272 *)
33273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33274for as_dir in $PATH
33275do
33276 IFS=$as_save_IFS
33277 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033278 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy66f238e2014-05-16 12:21:48 +000033280 ac_cv_path_DOCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033282 break 2
33283 fi
33284done
cristy8b350f62009-11-15 23:12:43 +000033285 done
cristy3ed852e2009-09-05 21:47:34 +000033286IFS=$as_save_IFS
33287
cristy66f238e2014-05-16 12:21:48 +000033288 test -z "$ac_cv_path_DOCDecodeDelegate" && ac_cv_path_DOCDecodeDelegate=""$DOCDecodeDelegateDefault""
cristy3ed852e2009-09-05 21:47:34 +000033289 ;;
33290esac
33291fi
cristy66f238e2014-05-16 12:21:48 +000033292DOCDecodeDelegate=$ac_cv_path_DOCDecodeDelegate
33293if test -n "$DOCDecodeDelegate"; then
33294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOCDecodeDelegate" >&5
33295$as_echo "$DOCDecodeDelegate" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000033296else
cristy8b350f62009-11-15 23:12:43 +000033297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033298$as_echo "no" >&6; }
33299fi
33300
33301
33302# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
33303set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033305$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033306if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033307 $as_echo_n "(cached) " >&6
33308else
33309 case $DVIDecodeDelegate in
33310 [\\/]* | ?:[\\/]*)
33311 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
33312 ;;
33313 *)
33314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33315for as_dir in $PATH
33316do
33317 IFS=$as_save_IFS
33318 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033319 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033321 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033323 break 2
33324 fi
33325done
cristy8b350f62009-11-15 23:12:43 +000033326 done
cristy3ed852e2009-09-05 21:47:34 +000033327IFS=$as_save_IFS
33328
33329 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
33330 ;;
33331esac
33332fi
33333DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
33334if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033336$as_echo "$DVIDecodeDelegate" >&6; }
33337else
cristy8b350f62009-11-15 23:12:43 +000033338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033339$as_echo "no" >&6; }
33340fi
33341
33342
cristy3ed852e2009-09-05 21:47:34 +000033343# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
33344set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033346$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033347if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033348 $as_echo_n "(cached) " >&6
33349else
33350 case $ConvertDelegate in
33351 [\\/]* | ?:[\\/]*)
33352 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
33353 ;;
33354 *)
33355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33356for as_dir in $PATH
33357do
33358 IFS=$as_save_IFS
33359 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033360 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033362 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033364 break 2
33365 fi
33366done
cristy8b350f62009-11-15 23:12:43 +000033367 done
cristy3ed852e2009-09-05 21:47:34 +000033368IFS=$as_save_IFS
33369
33370 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
33371 ;;
33372esac
33373fi
33374ConvertDelegate=$ac_cv_path_ConvertDelegate
33375if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033377$as_echo "$ConvertDelegate" >&6; }
33378else
cristy8b350f62009-11-15 23:12:43 +000033379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033380$as_echo "no" >&6; }
33381fi
33382
33383
33384# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
33385set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033387$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033388if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033389 $as_echo_n "(cached) " >&6
33390else
33391 case $DisplayDelegate in
33392 [\\/]* | ?:[\\/]*)
33393 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
33394 ;;
33395 *)
33396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33397for as_dir in $PATH
33398do
33399 IFS=$as_save_IFS
33400 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033401 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033403 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033405 break 2
33406 fi
33407done
cristy8b350f62009-11-15 23:12:43 +000033408 done
cristy3ed852e2009-09-05 21:47:34 +000033409IFS=$as_save_IFS
33410
33411 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
33412 ;;
33413esac
33414fi
33415DisplayDelegate=$ac_cv_path_DisplayDelegate
33416if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033418$as_echo "$DisplayDelegate" >&6; }
33419else
cristy8b350f62009-11-15 23:12:43 +000033420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033421$as_echo "no" >&6; }
33422fi
33423
33424
cristy66f238e2014-05-16 12:21:48 +000033425# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
33426set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033428$as_echo_n "checking for $ac_word... " >&6; }
cristy66f238e2014-05-16 12:21:48 +000033429if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033430 $as_echo_n "(cached) " >&6
33431else
cristy66f238e2014-05-16 12:21:48 +000033432 case $EchoDelegate in
cristy3ed852e2009-09-05 21:47:34 +000033433 [\\/]* | ?:[\\/]*)
cristy66f238e2014-05-16 12:21:48 +000033434 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
cristy3ed852e2009-09-05 21:47:34 +000033435 ;;
33436 *)
33437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33438for as_dir in $PATH
33439do
33440 IFS=$as_save_IFS
33441 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033442 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy66f238e2014-05-16 12:21:48 +000033444 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033446 break 2
33447 fi
33448done
cristy8b350f62009-11-15 23:12:43 +000033449 done
cristy3ed852e2009-09-05 21:47:34 +000033450IFS=$as_save_IFS
33451
cristy66f238e2014-05-16 12:21:48 +000033452 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
cristy3ed852e2009-09-05 21:47:34 +000033453 ;;
33454esac
33455fi
cristy66f238e2014-05-16 12:21:48 +000033456EchoDelegate=$ac_cv_path_EchoDelegate
33457if test -n "$EchoDelegate"; then
33458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
33459$as_echo "$EchoDelegate" >&6; }
33460else
33461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33462$as_echo "no" >&6; }
33463fi
33464
33465
33466# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
33467set dummy "$EditorDelegateDefault"; ac_word=$2
33468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33469$as_echo_n "checking for $ac_word... " >&6; }
33470if ${ac_cv_path_EditorDelegate+:} false; then :
33471 $as_echo_n "(cached) " >&6
33472else
33473 case $EditorDelegate in
33474 [\\/]* | ?:[\\/]*)
33475 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
33476 ;;
33477 *)
33478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33479for as_dir in $PATH
33480do
33481 IFS=$as_save_IFS
33482 test -z "$as_dir" && as_dir=.
33483 for ac_exec_ext in '' $ac_executable_extensions; do
33484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33485 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
33486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33487 break 2
33488 fi
33489done
33490 done
33491IFS=$as_save_IFS
33492
33493 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
33494 ;;
33495esac
33496fi
33497EditorDelegate=$ac_cv_path_EditorDelegate
33498if test -n "$EditorDelegate"; then
33499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
33500$as_echo "$EditorDelegate" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000033501else
cristy8b350f62009-11-15 23:12:43 +000033502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033503$as_echo "no" >&6; }
33504fi
33505
33506
33507# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
33508set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033510$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033511if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033512 $as_echo_n "(cached) " >&6
33513else
33514 case $GnuplotDecodeDelegate in
33515 [\\/]* | ?:[\\/]*)
33516 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
33517 ;;
33518 *)
33519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33520for as_dir in $PATH
33521do
33522 IFS=$as_save_IFS
33523 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033524 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033526 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033528 break 2
33529 fi
33530done
cristy8b350f62009-11-15 23:12:43 +000033531 done
cristy3ed852e2009-09-05 21:47:34 +000033532IFS=$as_save_IFS
33533
33534 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
33535 ;;
33536esac
33537fi
33538GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
33539if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033541$as_echo "$GnuplotDecodeDelegate" >&6; }
33542else
cristy8b350f62009-11-15 23:12:43 +000033543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033544$as_echo "no" >&6; }
33545fi
33546
33547
cristy66f238e2014-05-16 12:21:48 +000033548# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
33549set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
33550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33551$as_echo_n "checking for $ac_word... " >&6; }
33552if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
33553 $as_echo_n "(cached) " >&6
33554else
33555 case $GVCDecodeDelegate in
33556 [\\/]* | ?:[\\/]*)
33557 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
33558 ;;
33559 *)
33560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33561for as_dir in $PATH
33562do
33563 IFS=$as_save_IFS
33564 test -z "$as_dir" && as_dir=.
33565 for ac_exec_ext in '' $ac_executable_extensions; do
33566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33567 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33569 break 2
33570 fi
33571done
33572 done
33573IFS=$as_save_IFS
33574
33575 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
33576 ;;
33577esac
33578fi
33579GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
33580if test -n "$GVCDecodeDelegate"; then
33581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
33582$as_echo "$GVCDecodeDelegate" >&6; }
33583else
33584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33585$as_echo "no" >&6; }
33586fi
33587
33588
cristy3ed852e2009-09-05 21:47:34 +000033589# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
33590set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033592$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033593if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033594 $as_echo_n "(cached) " >&6
33595else
33596 case $HPGLDecodeDelegate in
33597 [\\/]* | ?:[\\/]*)
33598 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
33599 ;;
33600 *)
33601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33602for as_dir in $PATH
33603do
33604 IFS=$as_save_IFS
33605 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033606 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033608 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033610 break 2
33611 fi
33612done
cristy8b350f62009-11-15 23:12:43 +000033613 done
cristy3ed852e2009-09-05 21:47:34 +000033614IFS=$as_save_IFS
33615
33616 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
33617 ;;
33618esac
33619fi
33620HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
33621if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033623$as_echo "$HPGLDecodeDelegate" >&6; }
33624else
cristy8b350f62009-11-15 23:12:43 +000033625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033626$as_echo "no" >&6; }
33627fi
33628
33629
33630# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
33631set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033633$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033634if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033635 $as_echo_n "(cached) " >&6
33636else
33637 case $HTMLDecodeDelegate in
33638 [\\/]* | ?:[\\/]*)
33639 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
33640 ;;
33641 *)
33642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33643for as_dir in $PATH
33644do
33645 IFS=$as_save_IFS
33646 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033647 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033649 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033651 break 2
33652 fi
33653done
cristy8b350f62009-11-15 23:12:43 +000033654 done
cristy3ed852e2009-09-05 21:47:34 +000033655IFS=$as_save_IFS
33656
33657 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
33658 ;;
33659esac
33660fi
33661HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
33662if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033664$as_echo "$HTMLDecodeDelegate" >&6; }
33665else
cristy8b350f62009-11-15 23:12:43 +000033666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033667$as_echo "no" >&6; }
33668fi
33669
33670
33671# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
33672set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033674$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033675if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033676 $as_echo_n "(cached) " >&6
33677else
33678 case $ILBMDecodeDelegate in
33679 [\\/]* | ?:[\\/]*)
33680 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
33681 ;;
33682 *)
33683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33684for as_dir in $PATH
33685do
33686 IFS=$as_save_IFS
33687 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033688 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033690 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033692 break 2
33693 fi
33694done
cristy8b350f62009-11-15 23:12:43 +000033695 done
cristy3ed852e2009-09-05 21:47:34 +000033696IFS=$as_save_IFS
33697
33698 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
33699 ;;
33700esac
33701fi
33702ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
33703if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033705$as_echo "$ILBMDecodeDelegate" >&6; }
33706else
cristy8b350f62009-11-15 23:12:43 +000033707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033708$as_echo "no" >&6; }
33709fi
33710
33711
33712# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
33713set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033715$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033716if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033717 $as_echo_n "(cached) " >&6
33718else
33719 case $ILBMEncodeDelegate in
33720 [\\/]* | ?:[\\/]*)
33721 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
33722 ;;
33723 *)
33724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33725for as_dir in $PATH
33726do
33727 IFS=$as_save_IFS
33728 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033729 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033731 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033733 break 2
33734 fi
33735done
cristy8b350f62009-11-15 23:12:43 +000033736 done
cristy3ed852e2009-09-05 21:47:34 +000033737IFS=$as_save_IFS
33738
33739 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
33740 ;;
33741esac
33742fi
33743ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
33744if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033746$as_echo "$ILBMEncodeDelegate" >&6; }
33747else
cristy8b350f62009-11-15 23:12:43 +000033748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033749$as_echo "no" >&6; }
33750fi
33751
33752
cristy71f53d52013-04-27 13:33:59 +000033753# Extract the first word of ""$JXRDecodeDelegateDefault"", so it can be a program name with args.
33754set dummy "$JXRDecodeDelegateDefault"; ac_word=$2
33755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33756$as_echo_n "checking for $ac_word... " >&6; }
33757if ${ac_cv_path_JXRDecodeDelegate+:} false; then :
33758 $as_echo_n "(cached) " >&6
33759else
33760 case $JXRDecodeDelegate in
33761 [\\/]* | ?:[\\/]*)
33762 ac_cv_path_JXRDecodeDelegate="$JXRDecodeDelegate" # Let the user override the test with a path.
33763 ;;
33764 *)
33765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33766for as_dir in $PATH
33767do
33768 IFS=$as_save_IFS
33769 test -z "$as_dir" && as_dir=.
33770 for ac_exec_ext in '' $ac_executable_extensions; do
33771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33772 ac_cv_path_JXRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33774 break 2
33775 fi
33776done
33777 done
33778IFS=$as_save_IFS
33779
33780 test -z "$ac_cv_path_JXRDecodeDelegate" && ac_cv_path_JXRDecodeDelegate=""$JXRDecodeDelegateDefault""
33781 ;;
33782esac
33783fi
33784JXRDecodeDelegate=$ac_cv_path_JXRDecodeDelegate
33785if test -n "$JXRDecodeDelegate"; then
33786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXRDecodeDelegate" >&5
33787$as_echo "$JXRDecodeDelegate" >&6; }
33788else
33789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33790$as_echo "no" >&6; }
33791fi
33792
33793
33794# Extract the first word of ""$JXREncodeDelegateDefault"", so it can be a program name with args.
33795set dummy "$JXREncodeDelegateDefault"; ac_word=$2
33796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33797$as_echo_n "checking for $ac_word... " >&6; }
33798if ${ac_cv_path_JXREncodeDelegate+:} false; then :
33799 $as_echo_n "(cached) " >&6
33800else
33801 case $JXREncodeDelegate in
33802 [\\/]* | ?:[\\/]*)
33803 ac_cv_path_JXREncodeDelegate="$JXREncodeDelegate" # Let the user override the test with a path.
33804 ;;
33805 *)
33806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33807for as_dir in $PATH
33808do
33809 IFS=$as_save_IFS
33810 test -z "$as_dir" && as_dir=.
33811 for ac_exec_ext in '' $ac_executable_extensions; do
33812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33813 ac_cv_path_JXREncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33815 break 2
33816 fi
33817done
33818 done
33819IFS=$as_save_IFS
33820
33821 test -z "$ac_cv_path_JXREncodeDelegate" && ac_cv_path_JXREncodeDelegate=""$JXREncodeDelegateDefault""
33822 ;;
33823esac
33824fi
33825JXREncodeDelegate=$ac_cv_path_JXREncodeDelegate
33826if test -n "$JXREncodeDelegate"; then
33827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXREncodeDelegate" >&5
33828$as_echo "$JXREncodeDelegate" >&6; }
33829else
33830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33831$as_echo "no" >&6; }
33832fi
33833
33834
cristy3ed852e2009-09-05 21:47:34 +000033835# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
33836set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033838$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033839if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033840 $as_echo_n "(cached) " >&6
33841else
33842 case $LPDelegate in
33843 [\\/]* | ?:[\\/]*)
33844 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
33845 ;;
33846 *)
33847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33848for as_dir in $PATH
33849do
33850 IFS=$as_save_IFS
33851 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033852 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033854 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033856 break 2
33857 fi
33858done
cristy8b350f62009-11-15 23:12:43 +000033859 done
cristy3ed852e2009-09-05 21:47:34 +000033860IFS=$as_save_IFS
33861
33862 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
33863 ;;
33864esac
33865fi
33866LPDelegate=$ac_cv_path_LPDelegate
33867if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033869$as_echo "$LPDelegate" >&6; }
33870else
cristy8b350f62009-11-15 23:12:43 +000033871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033872$as_echo "no" >&6; }
33873fi
33874
33875
33876# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
33877set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033879$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033880if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033881 $as_echo_n "(cached) " >&6
33882else
33883 case $LPRDelegate in
33884 [\\/]* | ?:[\\/]*)
33885 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
33886 ;;
33887 *)
33888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33889for as_dir in $PATH
33890do
33891 IFS=$as_save_IFS
33892 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033893 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033895 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033897 break 2
33898 fi
33899done
cristy8b350f62009-11-15 23:12:43 +000033900 done
cristy3ed852e2009-09-05 21:47:34 +000033901IFS=$as_save_IFS
33902
33903 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
33904 ;;
33905esac
33906fi
33907LPRDelegate=$ac_cv_path_LPRDelegate
33908if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033910$as_echo "$LPRDelegate" >&6; }
33911else
cristy8b350f62009-11-15 23:12:43 +000033912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033913$as_echo "no" >&6; }
33914fi
33915
33916
cristy3ed852e2009-09-05 21:47:34 +000033917# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
33918set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033920$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033921if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033922 $as_echo_n "(cached) " >&6
33923else
33924 case $LaunchDelegate in
33925 [\\/]* | ?:[\\/]*)
33926 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
33927 ;;
33928 *)
33929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33930for as_dir in $PATH
33931do
33932 IFS=$as_save_IFS
33933 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033934 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033936 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033938 break 2
33939 fi
33940done
cristy8b350f62009-11-15 23:12:43 +000033941 done
cristy3ed852e2009-09-05 21:47:34 +000033942IFS=$as_save_IFS
33943
33944 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
33945 ;;
33946esac
33947fi
33948LaunchDelegate=$ac_cv_path_LaunchDelegate
33949if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033951$as_echo "$LaunchDelegate" >&6; }
33952else
cristy8b350f62009-11-15 23:12:43 +000033953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033954$as_echo "no" >&6; }
33955fi
33956
33957
33958# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
33959set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033961$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033962if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033963 $as_echo_n "(cached) " >&6
33964else
33965 case $MANDelegate in
33966 [\\/]* | ?:[\\/]*)
33967 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
33968 ;;
33969 *)
33970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33971for as_dir in $PATH
33972do
33973 IFS=$as_save_IFS
33974 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033975 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033977 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033979 break 2
33980 fi
33981done
cristy8b350f62009-11-15 23:12:43 +000033982 done
cristy3ed852e2009-09-05 21:47:34 +000033983IFS=$as_save_IFS
33984
33985 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
33986 ;;
33987esac
33988fi
33989MANDelegate=$ac_cv_path_MANDelegate
33990if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033992$as_echo "$MANDelegate" >&6; }
33993else
cristy8b350f62009-11-15 23:12:43 +000033994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033995$as_echo "no" >&6; }
33996fi
33997
33998
cristy66f238e2014-05-16 12:21:48 +000033999# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
34000set dummy "$MogrifyDelegateDefault"; ac_word=$2
34001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34002$as_echo_n "checking for $ac_word... " >&6; }
34003if ${ac_cv_path_MogrifyDelegate+:} false; then :
34004 $as_echo_n "(cached) " >&6
34005else
34006 case $MogrifyDelegate in
34007 [\\/]* | ?:[\\/]*)
34008 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
34009 ;;
34010 *)
34011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34012for as_dir in $PATH
34013do
34014 IFS=$as_save_IFS
34015 test -z "$as_dir" && as_dir=.
34016 for ac_exec_ext in '' $ac_executable_extensions; do
34017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34018 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
34019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34020 break 2
34021 fi
34022done
34023 done
34024IFS=$as_save_IFS
34025
34026 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
34027 ;;
34028esac
34029fi
34030MogrifyDelegate=$ac_cv_path_MogrifyDelegate
34031if test -n "$MogrifyDelegate"; then
34032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
34033$as_echo "$MogrifyDelegate" >&6; }
34034else
34035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34036$as_echo "no" >&6; }
34037fi
34038
34039
cristy3ed852e2009-09-05 21:47:34 +000034040# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
34041set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034043$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034044if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034045 $as_echo_n "(cached) " >&6
34046else
34047 case $MPEGDecodeDelegate in
34048 [\\/]* | ?:[\\/]*)
34049 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
34050 ;;
34051 *)
34052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34053for as_dir in $PATH
34054do
34055 IFS=$as_save_IFS
34056 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034057 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034059 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034061 break 2
34062 fi
34063done
cristy8b350f62009-11-15 23:12:43 +000034064 done
cristy3ed852e2009-09-05 21:47:34 +000034065IFS=$as_save_IFS
34066
34067 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
34068 ;;
34069esac
34070fi
34071MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
34072if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034074$as_echo "$MPEGDecodeDelegate" >&6; }
34075else
cristy8b350f62009-11-15 23:12:43 +000034076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034077$as_echo "no" >&6; }
34078fi
34079
34080
cristy058d15f2014-08-21 18:53:03 +000034081if test "$MPEGDecodeDelegate" = "$MPEGDecodeDelegateDefault" ; then
cristy81ab5af2013-10-06 18:28:39 +000034082 MPEGDecodeDelegateDefault='ffmpeg'
34083 # Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
34084set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
34085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34086$as_echo_n "checking for $ac_word... " >&6; }
34087if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
34088 $as_echo_n "(cached) " >&6
34089else
34090 case $MPEGDecodeDelegate in
34091 [\\/]* | ?:[\\/]*)
34092 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
34093 ;;
34094 *)
34095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34096for as_dir in $PATH
34097do
34098 IFS=$as_save_IFS
34099 test -z "$as_dir" && as_dir=.
34100 for ac_exec_ext in '' $ac_executable_extensions; do
34101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34102 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34104 break 2
34105 fi
34106done
34107 done
34108IFS=$as_save_IFS
34109
34110 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
34111 ;;
34112esac
34113fi
34114MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
34115if test -n "$MPEGDecodeDelegate"; then
34116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
34117$as_echo "$MPEGDecodeDelegate" >&6; }
34118else
34119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34120$as_echo "no" >&6; }
34121fi
34122
34123
34124fi;
cristy3ed852e2009-09-05 21:47:34 +000034125# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
34126set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034128$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034129if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034130 $as_echo_n "(cached) " >&6
34131else
34132 case $MPEGEncodeDelegate in
34133 [\\/]* | ?:[\\/]*)
34134 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
34135 ;;
34136 *)
34137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34138for as_dir in $PATH
34139do
34140 IFS=$as_save_IFS
34141 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034142 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034144 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034146 break 2
34147 fi
34148done
cristy8b350f62009-11-15 23:12:43 +000034149 done
cristy3ed852e2009-09-05 21:47:34 +000034150IFS=$as_save_IFS
34151
34152 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
34153 ;;
34154esac
34155fi
34156MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
34157if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034159$as_echo "$MPEGEncodeDelegate" >&6; }
34160else
cristy8b350f62009-11-15 23:12:43 +000034161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034162$as_echo "no" >&6; }
34163fi
34164
34165
cristy058d15f2014-08-21 18:53:03 +000034166if test "$MPEGEncodeDelegate" = "$MPEGEncodeDelegateDefault" ; then
cristy81ab5af2013-10-06 18:28:39 +000034167 MPEGEncodeDelegateDefault='ffmpeg'
34168 # Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
34169set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
34170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34171$as_echo_n "checking for $ac_word... " >&6; }
34172if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
34173 $as_echo_n "(cached) " >&6
34174else
34175 case $MPEGEncodeDelegate in
34176 [\\/]* | ?:[\\/]*)
34177 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
34178 ;;
34179 *)
34180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34181for as_dir in $PATH
34182do
34183 IFS=$as_save_IFS
34184 test -z "$as_dir" && as_dir=.
34185 for ac_exec_ext in '' $ac_executable_extensions; do
34186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34187 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34189 break 2
34190 fi
34191done
34192 done
34193IFS=$as_save_IFS
34194
34195 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
34196 ;;
34197esac
34198fi
34199MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
34200if test -n "$MPEGEncodeDelegate"; then
34201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
34202$as_echo "$MPEGEncodeDelegate" >&6; }
34203else
34204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34205$as_echo "no" >&6; }
34206fi
34207
34208
34209fi;
cristy935c86e2010-06-05 23:50:07 +000034210# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
34211set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
34212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34213$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034214if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000034215 $as_echo_n "(cached) " >&6
34216else
34217 case $MrSIDDecodeDelegate in
34218 [\\/]* | ?:[\\/]*)
34219 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
34220 ;;
34221 *)
34222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34223for as_dir in $PATH
34224do
34225 IFS=$as_save_IFS
34226 test -z "$as_dir" && as_dir=.
34227 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy935c86e2010-06-05 23:50:07 +000034229 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34231 break 2
34232 fi
34233done
34234 done
34235IFS=$as_save_IFS
34236
34237 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
34238 ;;
34239esac
34240fi
34241MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
34242if test -n "$MrSIDDecodeDelegate"; then
34243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
34244$as_echo "$MrSIDDecodeDelegate" >&6; }
34245else
34246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34247$as_echo "no" >&6; }
34248fi
34249
34250
cristy3ed852e2009-09-05 21:47:34 +000034251# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
34252set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034254$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034255if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034256 $as_echo_n "(cached) " >&6
34257else
34258 case $MVDelegate in
34259 [\\/]* | ?:[\\/]*)
34260 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
34261 ;;
34262 *)
34263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34264for as_dir in $PATH
34265do
34266 IFS=$as_save_IFS
34267 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034268 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034270 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034272 break 2
34273 fi
34274done
cristy8b350f62009-11-15 23:12:43 +000034275 done
cristy3ed852e2009-09-05 21:47:34 +000034276IFS=$as_save_IFS
34277
34278 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
34279 ;;
34280esac
34281fi
34282MVDelegate=$ac_cv_path_MVDelegate
34283if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034285$as_echo "$MVDelegate" >&6; }
34286else
cristy8b350f62009-11-15 23:12:43 +000034287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034288$as_echo "no" >&6; }
34289fi
34290
34291
34292# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
34293set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034295$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034296if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034297 $as_echo_n "(cached) " >&6
34298else
34299 case $PCLDelegate in
34300 [\\/]* | ?:[\\/]*)
34301 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
34302 ;;
34303 *)
34304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34305for as_dir in $PATH
34306do
34307 IFS=$as_save_IFS
34308 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034309 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034311 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034313 break 2
34314 fi
34315done
cristy8b350f62009-11-15 23:12:43 +000034316 done
cristy3ed852e2009-09-05 21:47:34 +000034317IFS=$as_save_IFS
34318
34319 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
34320 ;;
34321esac
34322fi
34323PCLDelegate=$ac_cv_path_PCLDelegate
34324if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034326$as_echo "$PCLDelegate" >&6; }
34327else
cristy8b350f62009-11-15 23:12:43 +000034328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034329$as_echo "no" >&6; }
34330fi
34331
34332
34333# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
34334set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034336$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034337if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034338 $as_echo_n "(cached) " >&6
34339else
34340 case $PGPDecodeDelegate in
34341 [\\/]* | ?:[\\/]*)
34342 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
34343 ;;
34344 *)
34345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34346for as_dir in $PATH
34347do
34348 IFS=$as_save_IFS
34349 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034350 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034352 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034354 break 2
34355 fi
34356done
cristy8b350f62009-11-15 23:12:43 +000034357 done
cristy3ed852e2009-09-05 21:47:34 +000034358IFS=$as_save_IFS
34359
34360 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
34361 ;;
34362esac
34363fi
34364PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
34365if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034367$as_echo "$PGPDecodeDelegate" >&6; }
34368else
cristy8b350f62009-11-15 23:12:43 +000034369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034370$as_echo "no" >&6; }
34371fi
34372
34373
34374# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
34375set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034377$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034378if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034379 $as_echo_n "(cached) " >&6
34380else
34381 case $POVDelegate in
34382 [\\/]* | ?:[\\/]*)
34383 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
34384 ;;
34385 *)
34386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34387for as_dir in $PATH
34388do
34389 IFS=$as_save_IFS
34390 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034391 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034393 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034395 break 2
34396 fi
34397done
cristy8b350f62009-11-15 23:12:43 +000034398 done
cristy3ed852e2009-09-05 21:47:34 +000034399IFS=$as_save_IFS
34400
34401 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
34402 ;;
34403esac
34404fi
34405POVDelegate=$ac_cv_path_POVDelegate
34406if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034408$as_echo "$POVDelegate" >&6; }
34409else
cristy8b350f62009-11-15 23:12:43 +000034410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034411$as_echo "no" >&6; }
34412fi
34413
34414
34415for ac_prog in gsx gsc "$PSDelegateDefault"
34416do
34417 # Extract the first word of "$ac_prog", so it can be a program name with args.
34418set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034420$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034421if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034422 $as_echo_n "(cached) " >&6
34423else
34424 case $PSDelegate in
34425 [\\/]* | ?:[\\/]*)
34426 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
34427 ;;
34428 *)
34429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34430for as_dir in $PATH
34431do
34432 IFS=$as_save_IFS
34433 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034434 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034436 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034438 break 2
34439 fi
34440done
cristy8b350f62009-11-15 23:12:43 +000034441 done
cristy3ed852e2009-09-05 21:47:34 +000034442IFS=$as_save_IFS
34443
34444 ;;
34445esac
34446fi
34447PSDelegate=$ac_cv_path_PSDelegate
34448if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034450$as_echo "$PSDelegate" >&6; }
34451else
cristy8b350f62009-11-15 23:12:43 +000034452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034453$as_echo "no" >&6; }
34454fi
34455
34456
34457 test -n "$PSDelegate" && break
34458done
34459test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
34460
34461# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
34462set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034464$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034465if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034466 $as_echo_n "(cached) " >&6
34467else
34468 case $RLEEncodeDelegate in
34469 [\\/]* | ?:[\\/]*)
34470 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
34471 ;;
34472 *)
34473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34474for as_dir in $PATH
34475do
34476 IFS=$as_save_IFS
34477 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034478 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034480 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034482 break 2
34483 fi
34484done
cristy8b350f62009-11-15 23:12:43 +000034485 done
cristy3ed852e2009-09-05 21:47:34 +000034486IFS=$as_save_IFS
34487
34488 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
34489 ;;
34490esac
34491fi
34492RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
34493if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034495$as_echo "$RLEEncodeDelegate" >&6; }
34496else
cristy8b350f62009-11-15 23:12:43 +000034497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034498$as_echo "no" >&6; }
34499fi
34500
34501
34502# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
34503set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034505$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034506if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034507 $as_echo_n "(cached) " >&6
34508else
34509 case $RMDelegate in
34510 [\\/]* | ?:[\\/]*)
34511 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
34512 ;;
34513 *)
34514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34515for as_dir in $PATH
34516do
34517 IFS=$as_save_IFS
34518 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034519 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034521 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034523 break 2
34524 fi
34525done
cristy8b350f62009-11-15 23:12:43 +000034526 done
cristy3ed852e2009-09-05 21:47:34 +000034527IFS=$as_save_IFS
34528
34529 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
34530 ;;
34531esac
34532fi
34533RMDelegate=$ac_cv_path_RMDelegate
34534if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034536$as_echo "$RMDelegate" >&6; }
34537else
cristy8b350f62009-11-15 23:12:43 +000034538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034539$as_echo "no" >&6; }
34540fi
34541
34542
cristy4689cf02010-02-17 21:15:45 +000034543# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
34544set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
34545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34546$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034547if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000034548 $as_echo_n "(cached) " >&6
34549else
34550 case $RSVGDecodeDelegate in
34551 [\\/]* | ?:[\\/]*)
34552 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
34553 ;;
34554 *)
34555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34556for as_dir in $PATH
34557do
34558 IFS=$as_save_IFS
34559 test -z "$as_dir" && as_dir=.
34560 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy4689cf02010-02-17 21:15:45 +000034562 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34564 break 2
34565 fi
34566done
34567 done
34568IFS=$as_save_IFS
34569
34570 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
34571 ;;
34572esac
34573fi
34574RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
34575if test -n "$RSVGDecodeDelegate"; then
34576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
34577$as_echo "$RSVGDecodeDelegate" >&6; }
34578else
34579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34580$as_echo "no" >&6; }
34581fi
34582
34583
cristy3ed852e2009-09-05 21:47:34 +000034584# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
34585set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034587$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034588if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034589 $as_echo_n "(cached) " >&6
34590else
34591 case $SCANDecodeDelegate in
34592 [\\/]* | ?:[\\/]*)
34593 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
34594 ;;
34595 *)
34596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34597for as_dir in $PATH
34598do
34599 IFS=$as_save_IFS
34600 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034601 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034603 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034605 break 2
34606 fi
34607done
cristy8b350f62009-11-15 23:12:43 +000034608 done
cristy3ed852e2009-09-05 21:47:34 +000034609IFS=$as_save_IFS
34610
34611 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
34612 ;;
34613esac
34614fi
34615SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
34616if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034618$as_echo "$SCANDecodeDelegate" >&6; }
34619else
cristy8b350f62009-11-15 23:12:43 +000034620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034621$as_echo "no" >&6; }
34622fi
34623
34624
cristyec6934f2012-08-14 18:38:40 +000034625# Extract the first word of ""$SVGDecodeDelegateDefault"", so it can be a program name with args.
34626set dummy "$SVGDecodeDelegateDefault"; ac_word=$2
34627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34628$as_echo_n "checking for $ac_word... " >&6; }
34629if ${ac_cv_path_SVGDecodeDelegate+:} false; then :
34630 $as_echo_n "(cached) " >&6
34631else
34632 case $SVGDecodeDelegate in
34633 [\\/]* | ?:[\\/]*)
34634 ac_cv_path_SVGDecodeDelegate="$SVGDecodeDelegate" # Let the user override the test with a path.
34635 ;;
34636 *)
34637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34638for as_dir in $PATH
34639do
34640 IFS=$as_save_IFS
34641 test -z "$as_dir" && as_dir=.
34642 for ac_exec_ext in '' $ac_executable_extensions; do
34643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34644 ac_cv_path_SVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34646 break 2
34647 fi
34648done
34649 done
34650IFS=$as_save_IFS
34651
34652 test -z "$ac_cv_path_SVGDecodeDelegate" && ac_cv_path_SVGDecodeDelegate=""$SVGDecodeDelegateDefault""
34653 ;;
34654esac
34655fi
34656SVGDecodeDelegate=$ac_cv_path_SVGDecodeDelegate
34657if test -n "$SVGDecodeDelegate"; then
34658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVGDecodeDelegate" >&5
34659$as_echo "$SVGDecodeDelegate" >&6; }
34660else
34661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34662$as_echo "no" >&6; }
34663fi
34664
34665
cristy3ed852e2009-09-05 21:47:34 +000034666# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
34667set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034669$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034670if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034671 $as_echo_n "(cached) " >&6
34672else
34673 case $TXTDelegate in
34674 [\\/]* | ?:[\\/]*)
34675 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
34676 ;;
34677 *)
34678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34679for as_dir in $PATH
34680do
34681 IFS=$as_save_IFS
34682 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034683 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034685 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034687 break 2
34688 fi
34689done
cristy8b350f62009-11-15 23:12:43 +000034690 done
cristy3ed852e2009-09-05 21:47:34 +000034691IFS=$as_save_IFS
34692
34693 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
34694 ;;
34695esac
34696fi
34697TXTDelegate=$ac_cv_path_TXTDelegate
34698if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034700$as_echo "$TXTDelegate" >&6; }
34701else
cristy8b350f62009-11-15 23:12:43 +000034702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034703$as_echo "no" >&6; }
34704fi
34705
34706
cristy5ac9ac82010-07-29 13:24:24 +000034707# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
34708set dummy "$UniconvertorDelegateDefault"; ac_word=$2
34709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34710$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034711if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000034712 $as_echo_n "(cached) " >&6
34713else
34714 case $UniconvertorDelegate in
34715 [\\/]* | ?:[\\/]*)
34716 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
34717 ;;
34718 *)
34719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34720for as_dir in $PATH
34721do
34722 IFS=$as_save_IFS
34723 test -z "$as_dir" && as_dir=.
34724 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy5ac9ac82010-07-29 13:24:24 +000034726 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
34727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34728 break 2
34729 fi
34730done
34731 done
34732IFS=$as_save_IFS
34733
34734 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
34735 ;;
34736esac
34737fi
34738UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
34739if test -n "$UniconvertorDelegate"; then
34740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
34741$as_echo "$UniconvertorDelegate" >&6; }
34742else
34743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34744$as_echo "no" >&6; }
34745fi
34746
34747
cristy86e86092013-08-04 17:43:57 +000034748# Extract the first word of ""$WebPDecodeDelegateDefault"", so it can be a program name with args.
34749set dummy "$WebPDecodeDelegateDefault"; ac_word=$2
34750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34751$as_echo_n "checking for $ac_word... " >&6; }
34752if ${ac_cv_path_WebPDecodeDelegate+:} false; then :
34753 $as_echo_n "(cached) " >&6
34754else
34755 case $WebPDecodeDelegate in
34756 [\\/]* | ?:[\\/]*)
34757 ac_cv_path_WebPDecodeDelegate="$WebPDecodeDelegate" # Let the user override the test with a path.
34758 ;;
34759 *)
34760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34761for as_dir in $PATH
34762do
34763 IFS=$as_save_IFS
34764 test -z "$as_dir" && as_dir=.
34765 for ac_exec_ext in '' $ac_executable_extensions; do
34766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34767 ac_cv_path_WebPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34769 break 2
34770 fi
34771done
34772 done
34773IFS=$as_save_IFS
34774
34775 test -z "$ac_cv_path_WebPDecodeDelegate" && ac_cv_path_WebPDecodeDelegate=""$WebPDecodeDelegateDefault""
34776 ;;
34777esac
34778fi
34779WebPDecodeDelegate=$ac_cv_path_WebPDecodeDelegate
34780if test -n "$WebPDecodeDelegate"; then
34781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WebPDecodeDelegate" >&5
34782$as_echo "$WebPDecodeDelegate" >&6; }
34783else
34784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34785$as_echo "no" >&6; }
34786fi
34787
34788
34789# Extract the first word of ""$WebPEncodeDelegateDefault"", so it can be a program name with args.
34790set dummy "$WebPEncodeDelegateDefault"; ac_word=$2
34791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34792$as_echo_n "checking for $ac_word... " >&6; }
34793if ${ac_cv_path_WebPEncodeDelegate+:} false; then :
34794 $as_echo_n "(cached) " >&6
34795else
34796 case $WebPEncodeDelegate in
34797 [\\/]* | ?:[\\/]*)
34798 ac_cv_path_WebPEncodeDelegate="$WebPEncodeDelegate" # Let the user override the test with a path.
34799 ;;
34800 *)
34801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34802for as_dir in $PATH
34803do
34804 IFS=$as_save_IFS
34805 test -z "$as_dir" && as_dir=.
34806 for ac_exec_ext in '' $ac_executable_extensions; do
34807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34808 ac_cv_path_WebPEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34810 break 2
34811 fi
34812done
34813 done
34814IFS=$as_save_IFS
34815
34816 test -z "$ac_cv_path_WebPEncodeDelegate" && ac_cv_path_WebPEncodeDelegate=""$WebPEncodeDelegateDefault""
34817 ;;
34818esac
34819fi
34820WebPEncodeDelegate=$ac_cv_path_WebPEncodeDelegate
34821if test -n "$WebPEncodeDelegate"; then
34822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WebPEncodeDelegate" >&5
34823$as_echo "$WebPEncodeDelegate" >&6; }
34824else
34825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34826$as_echo "no" >&6; }
34827fi
34828
34829
cristy3ed852e2009-09-05 21:47:34 +000034830# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
34831set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034833$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034834if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034835 $as_echo_n "(cached) " >&6
34836else
34837 case $WMFDecodeDelegate in
34838 [\\/]* | ?:[\\/]*)
34839 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
34840 ;;
34841 *)
34842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34843for as_dir in $PATH
34844do
34845 IFS=$as_save_IFS
34846 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034847 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034849 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034851 break 2
34852 fi
34853done
cristy8b350f62009-11-15 23:12:43 +000034854 done
cristy3ed852e2009-09-05 21:47:34 +000034855IFS=$as_save_IFS
34856
34857 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
34858 ;;
34859esac
34860fi
34861WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
34862if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034864$as_echo "$WMFDecodeDelegate" >&6; }
34865else
cristy8b350f62009-11-15 23:12:43 +000034866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034867$as_echo "no" >&6; }
34868fi
34869
34870
34871# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
34872set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034874$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034875if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034876 $as_echo_n "(cached) " >&6
34877else
34878 case $WWWDecodeDelegate in
34879 [\\/]* | ?:[\\/]*)
34880 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
34881 ;;
34882 *)
34883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34884for as_dir in $PATH
34885do
34886 IFS=$as_save_IFS
34887 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034888 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034890 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034892 break 2
34893 fi
34894done
cristy8b350f62009-11-15 23:12:43 +000034895 done
cristy3ed852e2009-09-05 21:47:34 +000034896IFS=$as_save_IFS
34897
34898 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
34899 ;;
34900esac
34901fi
34902WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
34903if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034905$as_echo "$WWWDecodeDelegate" >&6; }
34906else
cristy8b350f62009-11-15 23:12:43 +000034907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034908$as_echo "no" >&6; }
34909fi
34910
34911
34912# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
34913set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034915$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034916if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034917 $as_echo_n "(cached) " >&6
34918else
34919 case $XPSDelegate in
34920 [\\/]* | ?:[\\/]*)
34921 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
34922 ;;
34923 *)
34924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34925for as_dir in $PATH
34926do
34927 IFS=$as_save_IFS
34928 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034929 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034931 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034933 break 2
34934 fi
34935done
cristy8b350f62009-11-15 23:12:43 +000034936 done
cristy3ed852e2009-09-05 21:47:34 +000034937IFS=$as_save_IFS
34938
34939 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
34940 ;;
34941esac
34942fi
34943XPSDelegate=$ac_cv_path_XPSDelegate
34944if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034946$as_echo "$XPSDelegate" >&6; }
34947else
cristy8b350f62009-11-15 23:12:43 +000034948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034949$as_echo "no" >&6; }
34950fi
34951
34952
34953# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
34954set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034956$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034957if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034958 $as_echo_n "(cached) " >&6
34959else
34960 case $ZipDelegate in
34961 [\\/]* | ?:[\\/]*)
34962 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
34963 ;;
34964 *)
34965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34966for as_dir in $PATH
34967do
34968 IFS=$as_save_IFS
34969 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034970 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034972 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034974 break 2
34975 fi
34976done
cristy8b350f62009-11-15 23:12:43 +000034977 done
cristy3ed852e2009-09-05 21:47:34 +000034978IFS=$as_save_IFS
34979
34980 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
34981 ;;
34982esac
34983fi
34984ZipDelegate=$ac_cv_path_ZipDelegate
34985if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034987$as_echo "$ZipDelegate" >&6; }
34988else
cristy8b350f62009-11-15 23:12:43 +000034989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034990$as_echo "no" >&6; }
34991fi
34992
34993
34994
34995# Prefer lpr to lp; lp needs options tacked on.
34996if test "$LPRDelegate" != no; then
34997 PrintDelegate="$LPRDelegate"
34998else
34999 PrintDelegate="$LPDelegate -c -s"
35000fi
35001
35002
35003# Installed ImageMagick utiltity paths
35004ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
35005DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
35006MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
35007
35008# Set delegate booleans
cristy81ab5af2013-10-06 18:28:39 +000035009have_avconv='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_avconv='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000035010have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
35011have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
35012have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000035013have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000035014have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
35015have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000035016have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
35017
35018#
35019# Test for font directories
35020#
35021type_include_files=''
35022
cristy5a3dc992014-12-05 19:50:04 +000035023 Apple fonts.
35024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Apple fonts directory" >&5
35025$as_echo_n "checking for Apple fonts directory... " >&6; }
35026apple_font_dir=''
35027if test "${with_apple_font_dir}" != 'default'; then
35028 apple_font_dir="${with_apple_font_dir}/"
35029else
35030 for font_dir in '/Library/Fonts/'; do
35031 if test -f "${font_dir}Arial.ttf"; then
35032 apple_font_dir="${font_dir}"
35033 break 1
35034 fi
35035 done
35036fi
35037if test "${apple_font_dir}x" != 'x'; then
35038 type_include_files="${type_include_files} "'<include file="type-apple.xml" />'
35039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apple_font_dir" >&5
35040$as_echo "$apple_font_dir" >&6; }
35041else
35042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
35043$as_echo "not found!" >&6; };
35044fi
35045
35046
cristy430a7312010-01-21 20:44:04 +000035047# Dejavu fonts.
35048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
35049$as_echo_n "checking for Dejavu fonts directory... " >&6; }
35050dejavu_font_dir=''
35051if test "${with_dejavu_font_dir}" != 'default'; then
35052 dejavu_font_dir="${with_dejavu_font_dir}/"
35053else
35054 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
35055 if test -f "${font_dir}DejaVuSerif.ttf"; then
35056 dejavu_font_dir="${font_dir}"
35057 break 1
35058 fi
35059 done
35060fi
35061if test "${dejavu_font_dir}x" != 'x'; then
35062 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
cristyad38abe2012-12-23 23:03:21 +000035063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
35064$as_echo "$dejavu_font_dir" >&6; }
cristy430a7312010-01-21 20:44:04 +000035065else
cristyad38abe2012-12-23 23:03:21 +000035066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
35067$as_echo "not found!" >&6; };
cristy430a7312010-01-21 20:44:04 +000035068fi
35069
35070
cristy3ed852e2009-09-05 21:47:34 +000035071# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000035072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000035073$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
35074ghostscript_font_dir=''
35075if test "${with_gs_font_dir}" != 'default'; then
35076 ghostscript_font_dir="${with_gs_font_dir}/"
35077else
35078 if test "${native_win32_build}" = 'yes'; then
35079 # Native Windows Build
35080 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
35081 if test -f "${font_dir}a010013l.pfb"; then
35082 ghostscript_font_dir="$font_dir"
35083 break 1
35084 fi
35085 done
35086 if test "${PSDelegate}" != 'gswin32c'; then
35087 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
35088 fi
35089 else
35090 # Linux / Mac OS X / Unix Build
35091 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
35092 if test -f "${font_dir}a010013l.pfb"; then
35093 ghostscript_font_dir="${font_dir}"
35094 break 1
35095 fi
35096 done
35097 if test "${ghostscript_font_dir}x" = 'x'; then
35098 if test "$PSDelegate" != 'gs'; then
35099 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
35100 fi
35101 fi
35102 fi
35103fi
35104if test "${ghostscript_font_dir}x" != 'x'; then
35105 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristyad38abe2012-12-23 23:03:21 +000035106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
35107$as_echo "$ghostscript_font_dir" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035108else
cristyad38abe2012-12-23 23:03:21 +000035109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
35110$as_echo "not found!" >&6; };
cristy3ed852e2009-09-05 21:47:34 +000035111fi
35112
35113case "${build_os}" in
35114 mingw* )
35115 PSDelegate=`$WinPathScript "$PSDelegate" 1`
35116 ;;
35117esac
35118
cristy5a3dc992014-12-05 19:50:04 +000035119# Windows fonts.
35120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows fonts directory" >&5
35121$as_echo_n "checking for Windows fonts directory... " >&6; }
35122windows_font_dir=''
35123if test "${with_windows_font_dir}" != 'default'; then
35124 windows_font_dir="${with_windows_font_dir}/"
35125else
35126 for font_dir in '/usr/X11R6/lib/X11/fonts/truetype/' '/usr/X11R7/lib/X11/fonts/truetype/' '/usr/share/fonts/msttcore/'; do
35127 if test -f "${font_dir}arial.ttf"; then
35128 windows_font_dir="${font_dir}"
35129 break 1
35130 fi
35131 done
35132fi
35133if test "${windows_font_dir}x" != 'x'; then
35134 type_include_files="${type_include_files} "'<include file="type-windows.xml" />'
35135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $windows_font_dir" >&5
35136$as_echo "$windows_font_dir" >&6; }
35137else
35138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
35139$as_echo "not found!" >&6; };
35140fi
35141
35142
cristy3ed852e2009-09-05 21:47:34 +000035143
35144
35145#
35146# Handle case where user doesn't want frozen paths
35147#
35148if test "$with_frozenpaths" != 'yes'; then
35149 # Re-set delegate definitions to default (no paths)
35150 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy16b412d2014-12-15 11:09:48 +000035151 BGPDecodeDelegate="$BGPDecodeDelegateDefault"
35152 BGPEncodeDelegate="$BGPEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035153 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
35154 BZIPDelegate="$BZIPDelegateDefault"
35155 BrowseDelegate="$BrowseDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035156 CatDelegate="$CatDelegateDefault"
35157 ConvertDelegate="$ConvertDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000035158 DisplayDelegate="$DisplayDelegateDefault"
35159 DNGDecodeDelegate="$DNGDecodeDelegateDefault"
cristy66f238e2014-05-16 12:21:48 +000035160 DOCDecodeDelegate="$DOCDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035161 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
35162 EchoDelegate="$EchoDelegateDefault"
35163 EditorDelegate="$EditorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035164 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000035165 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035166 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
35167 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
35168 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
35169 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000035170 JXRDecodeDelegate="$JXRDecodeDelegateDefault"
35171 JXREncodeDelegate="$JXREncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035172 LPDelegate="$LPDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035173 LaunchDelegate="$LaunchDelegateDefault"
35174 MANDelegate="$MANDelegateDefault"
35175 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
35176 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035177 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000035178 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
35179 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035180 PCLDelegate="$PCLDelegateDefault"
35181 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
35182 POVDelegate="$POVDelegateDefault"
35183 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035184 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
35185 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000035186 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035187 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
cristyec6934f2012-08-14 18:38:40 +000035188 SVGDecodeDelegate="$SVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035189 ShowImageDelegate="$ShowImageDelegateDefault"
35190 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000035191 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy86e86092013-08-04 17:43:57 +000035192 WebPDecodeDelegate="$WebPDecodeDelegateDefault"
35193 WebPEncodeDelegate="$WebPEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035194 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
35195 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
35196 XPSDelegate="$XPSDelegateDefault"
35197 ZipDelegate="$ZipDelegateDefault"
35198fi
35199
35200# Delegate substitutions
35201
35202
35203
35204
35205
35206
35207
35208
35209
35210
35211
35212
35213
35214
35215
35216
35217
35218
35219
35220
35221
35222
35223
35224
35225
35226
35227
35228
35229
35230
35231
35232
35233
35234
35235
35236
35237
35238
35239
35240
cristy71f53d52013-04-27 13:33:59 +000035241
35242
cristy16b412d2014-12-15 11:09:48 +000035243
35244
cristy3ed852e2009-09-05 21:47:34 +000035245#
35246# RPM support.
35247#
35248RPM=''
35249for ac_prog in gnutar gtar tar
35250do
35251 # Extract the first word of "$ac_prog", so it can be a program name with args.
35252set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035254$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035255if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035256 $as_echo_n "(cached) " >&6
35257else
35258 if test -n "$TAR"; then
35259 ac_cv_prog_TAR="$TAR" # Let the user override the test.
35260else
35261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35262for as_dir in $PATH
35263do
35264 IFS=$as_save_IFS
35265 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035266 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035268 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035270 break 2
35271 fi
35272done
cristy8b350f62009-11-15 23:12:43 +000035273 done
cristy3ed852e2009-09-05 21:47:34 +000035274IFS=$as_save_IFS
35275
35276fi
35277fi
35278TAR=$ac_cv_prog_TAR
35279if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000035280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000035281$as_echo "$TAR" >&6; }
35282else
cristy8b350f62009-11-15 23:12:43 +000035283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035284$as_echo "no" >&6; }
35285fi
35286
35287
35288 test -n "$TAR" && break
35289done
35290
35291for ac_prog in perl
35292do
35293 # Extract the first word of "$ac_prog", so it can be a program name with args.
35294set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035296$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035297if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035298 $as_echo_n "(cached) " >&6
35299else
35300 if test -n "$PERL"; then
35301 ac_cv_prog_PERL="$PERL" # Let the user override the test.
35302else
35303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35304for as_dir in $PATH
35305do
35306 IFS=$as_save_IFS
35307 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035308 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035310 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035312 break 2
35313 fi
35314done
cristy8b350f62009-11-15 23:12:43 +000035315 done
cristy3ed852e2009-09-05 21:47:34 +000035316IFS=$as_save_IFS
35317
35318fi
35319fi
35320PERL=$ac_cv_prog_PERL
35321if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000035322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035323$as_echo "$PERL" >&6; }
35324else
cristy8b350f62009-11-15 23:12:43 +000035325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035326$as_echo "no" >&6; }
35327fi
35328
35329
35330 test -n "$PERL" && break
35331done
35332
35333for ac_prog in rpmbuild rpm
35334do
35335 # Extract the first word of "$ac_prog", so it can be a program name with args.
35336set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035338$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035339if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035340 $as_echo_n "(cached) " >&6
35341else
35342 if test -n "$RPM"; then
35343 ac_cv_prog_RPM="$RPM" # Let the user override the test.
35344else
35345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35346for as_dir in $PATH
35347do
35348 IFS=$as_save_IFS
35349 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035350 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035352 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035354 break 2
35355 fi
35356done
cristy8b350f62009-11-15 23:12:43 +000035357 done
cristy3ed852e2009-09-05 21:47:34 +000035358IFS=$as_save_IFS
35359
35360fi
35361fi
35362RPM=$ac_cv_prog_RPM
35363if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000035364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000035365$as_echo "$RPM" >&6; }
35366else
cristy8b350f62009-11-15 23:12:43 +000035367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035368$as_echo "no" >&6; }
35369fi
35370
35371
35372 test -n "$RPM" && break
35373done
35374
35375
cristy73bd4a52010-10-05 11:24:23 +000035376ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
35377
35378
35379AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
35380
35381
35382AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
35383
35384
35385AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
35386
35387
35388 if test "x$RPM" != "x" ; then
35389 RPM_DELEGATE_TRUE=
35390 RPM_DELEGATE_FALSE='#'
35391else
35392 RPM_DELEGATE_TRUE='#'
35393 RPM_DELEGATE_FALSE=
35394fi
35395
cristy3ed852e2009-09-05 21:47:34 +000035396
35397#
35398# 7ZIP support (http://p7zip.sourceforge.net/)
35399#
35400P7ZIP=''
35401for ac_prog in 7za
35402do
35403 # Extract the first word of "$ac_prog", so it can be a program name with args.
35404set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035406$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035407if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035408 $as_echo_n "(cached) " >&6
35409else
35410 if test -n "$P7ZIP"; then
35411 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
35412else
35413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35414for as_dir in $PATH
35415do
35416 IFS=$as_save_IFS
35417 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035418 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035420 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035422 break 2
35423 fi
35424done
cristy8b350f62009-11-15 23:12:43 +000035425 done
cristy3ed852e2009-09-05 21:47:34 +000035426IFS=$as_save_IFS
35427
35428fi
35429fi
35430P7ZIP=$ac_cv_prog_P7ZIP
35431if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000035432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000035433$as_echo "$P7ZIP" >&6; }
35434else
cristy8b350f62009-11-15 23:12:43 +000035435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035436$as_echo "no" >&6; }
35437fi
35438
35439
35440 test -n "$P7ZIP" && break
35441done
35442
35443
cristy73bd4a52010-10-05 11:24:23 +000035444 if test "x$P7ZIP" != "x" ; then
35445 P7ZIP_DELEGATE_TRUE=
35446 P7ZIP_DELEGATE_FALSE='#'
35447else
35448 P7ZIP_DELEGATE_TRUE='#'
35449 P7ZIP_DELEGATE_FALSE=
35450fi
35451
cristy3ed852e2009-09-05 21:47:34 +000035452
35453#
35454# ZIP support (http://www.info-zip.org/Zip.html)
35455#
35456ZIP=''
35457for ac_prog in zip
35458do
35459 # Extract the first word of "$ac_prog", so it can be a program name with args.
35460set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035462$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035463if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035464 $as_echo_n "(cached) " >&6
35465else
35466 if test -n "$ZIP"; then
35467 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
35468else
35469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35470for as_dir in $PATH
35471do
35472 IFS=$as_save_IFS
35473 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035474 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035476 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035478 break 2
35479 fi
35480done
cristy8b350f62009-11-15 23:12:43 +000035481 done
cristy3ed852e2009-09-05 21:47:34 +000035482IFS=$as_save_IFS
35483
35484fi
35485fi
35486ZIP=$ac_cv_prog_ZIP
35487if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000035488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000035489$as_echo "$ZIP" >&6; }
35490else
cristy8b350f62009-11-15 23:12:43 +000035491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035492$as_echo "no" >&6; }
35493fi
35494
35495
35496 test -n "$ZIP" && break
35497done
35498
35499
cristy73bd4a52010-10-05 11:24:23 +000035500 if test "x$ZIP" != "x" ; then
35501 ZIP_DELEGATE_TRUE=
35502 ZIP_DELEGATE_FALSE='#'
35503else
35504 ZIP_DELEGATE_TRUE='#'
35505 ZIP_DELEGATE_FALSE=
35506fi
35507
cristy3ed852e2009-09-05 21:47:34 +000035508
35509#
35510# GhostPCL related configuration.
35511#
35512PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000035513PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000035514PCLMonoDevice=pbmraw
35515if test -z "$PCLVersion"; then
35516 PCLVersion='unknown'
35517fi
35518if test $have_pcl = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35520$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035522$as_echo_n "checking for PCL... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35524$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035525 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000035526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035527$as_echo_n "checking for pcl color device... " >&6; }
35528 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35529 :
35530 else
35531 PCLColorDevice=ppmraw
35532 fi
cristyad38abe2012-12-23 23:03:21 +000035533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
35534$as_echo "$PCLColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035535
35536 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035538$as_echo_n "checking for pcl CMYK device... " >&6; }
35539 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35540 :
35541 else
35542 PCLCMYKDevice=$PCLColorDevice
35543 fi
cristyad38abe2012-12-23 23:03:21 +000035544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
35545$as_echo "$PCLCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035546
35547 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035549$as_echo_n "checking for pcl mono device... " >&6; }
35550 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35551 :
35552 else
35553 PCLMonoDevice=$PCLColorDevice
35554 fi
cristyad38abe2012-12-23 23:03:21 +000035555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
35556$as_echo "$PCLMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035557fi
35558
35559
35560
35561
35562
35563
35564#
35565# GhostXPS related configuration.
35566#
35567XPSColorDevice=ppmraw
35568XPSCMYKDevice=bmpsep8
35569XPSMonoDevice=pbmraw
35570if test -z "$XPSVersion"; then
35571 XPSVersion='unknown'
35572fi
35573if test $have_xps = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35575$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000035577$as_echo_n "checking for XPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35579$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035580 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035582$as_echo_n "checking for xps color device... " >&6; }
35583 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35584 :
35585 else
35586 XPSColorDevice=ppmraw
35587 fi
cristyad38abe2012-12-23 23:03:21 +000035588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
35589$as_echo "$XPSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035590
35591 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035593$as_echo_n "checking for xps CMYK device... " >&6; }
35594 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35595 :
35596 else
35597 XPSCMYKDevice=$XPSColorDevice
35598 fi
cristyad38abe2012-12-23 23:03:21 +000035599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
35600$as_echo "$XPSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035601
35602 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035604$as_echo_n "checking for xps mono device... " >&6; }
35605 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35606 :
35607 else
35608 XPSMonoDevice=$XPSColorDevice
35609 fi
cristyad38abe2012-12-23 23:03:21 +000035610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
35611$as_echo "$XPSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035612fi
35613
35614
35615
35616
35617
35618
35619#
35620# Ghostscript related configuration.
35621#
cristya97426c2011-02-04 01:41:27 +000035622GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000035623GSColorDevice=pnmraw
35624GSCMYKDevice=pam
35625GSMonoDevice=pbmraw
35626GSPDFDevice=pdfwrite
cristyb096ea52013-10-26 20:56:38 +000035627GSPSDevice=ps2write
cristy3ed852e2009-09-05 21:47:34 +000035628GSEPSDevice=epswrite
35629GSVersion='unknown'
35630if test $have_gs = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35632$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000035634$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35636$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000035638$as_echo_n "checking for Ghostscript version... " >&6; }
35639 if GSVersion=`$PSDelegate --version`; then
35640 :
35641 else
35642 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
35643 fi
cristyad38abe2012-12-23 23:03:21 +000035644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
35645$as_echo "$GSVersion" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035646
35647 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000035648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035649$as_echo_n "checking for gs alpha device... " >&6; }
35650 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35651 :
35652 else
35653 GSAlphaDevice=pnmraw
35654 fi
cristyad38abe2012-12-23 23:03:21 +000035655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
35656$as_echo "$GSAlphaDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035657
35658 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035660$as_echo_n "checking for gs color device... " >&6; }
35661 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35662 :
35663 else
35664 GSColorDevice=pnmraw
35665 fi
cristyad38abe2012-12-23 23:03:21 +000035666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
35667$as_echo "$GSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035668
35669 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035671$as_echo_n "checking for gs CMYK device... " >&6; }
35672 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35673 :
35674 else
35675 GSCMYKDevice=bmpsep8
35676 fi
cristyad38abe2012-12-23 23:03:21 +000035677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
35678$as_echo "$GSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035679
35680 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035682$as_echo_n "checking for gs mono device... " >&6; }
35683 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35684 :
35685 else
35686 GSMonoDevice=$GSColorDevice
35687 fi
cristyad38abe2012-12-23 23:03:21 +000035688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
35689$as_echo "$GSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035690
35691 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000035692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035693$as_echo_n "checking for gs PDF writing device... " >&6; }
35694 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35695 :
35696 else
35697 GSPDFDevice=nodevice
35698 fi
cristyad38abe2012-12-23 23:03:21 +000035699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
35700$as_echo "$GSPDFDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035701
35702 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000035703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035704$as_echo_n "checking for gs PS writing device... " >&6; }
35705 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35706 :
35707 else
35708 GSPSDevice=nodevice
35709 fi
cristyad38abe2012-12-23 23:03:21 +000035710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
35711$as_echo "$GSPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035712
35713 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000035714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035715$as_echo_n "checking for gs EPS writing device... " >&6; }
35716 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35717 :
35718 else
35719 GSEPSDevice=nodevice
35720 fi
cristyad38abe2012-12-23 23:03:21 +000035721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
35722$as_echo "$GSEPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035723fi
35724
35725
35726
35727
35728
35729
35730
35731
35732
35733
35734#
35735# PerlMagick-related configuration
35736#
35737
35738# Look for PERL if PerlMagick requested
35739# If name/path of desired PERL interpreter is specified, look for that one first
35740have_perl='no'
35741if test "$with_perl" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000035742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35743$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035745$as_echo_n "checking for Perl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35747$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035748 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035750$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035751if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035752 $as_echo_n "(cached) " >&6
35753else
35754 ac_cv_path_PERL="$with_perl"
35755fi
cristy8b350f62009-11-15 23:12:43 +000035756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035757$as_echo "$ac_cv_path_PERL" >&6; };
35758 PERL=$ac_cv_path_PERL
35759 have_perl="$ac_cv_path_PERL"
35760 else
35761 for ac_prog in perl perl5
35762do
35763 # Extract the first word of "$ac_prog", so it can be a program name with args.
35764set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035766$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035767if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035768 $as_echo_n "(cached) " >&6
35769else
35770 case $PERL in
35771 [\\/]* | ?:[\\/]*)
35772 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
35773 ;;
35774 *)
35775 as_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_path_PERL="$as_dir/$ac_word$ac_exec_ext"
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
35790 ;;
35791esac
35792fi
35793PERL=$ac_cv_path_PERL
35794if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000035795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035796$as_echo "$PERL" >&6; }
35797else
cristy8b350f62009-11-15 23:12:43 +000035798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035799$as_echo "no" >&6; }
35800fi
35801
35802
35803 test -n "$PERL" && break
35804done
35805 if test "$ac_cv_path_PERL"; then
35806 have_perl="$ac_cv_path_PERL"
35807 fi
35808 fi
35809fi
35810
cristy949301e2010-01-06 01:38:40 +000035811if test "$with_perl" != 'yes' ; then
35812 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
35813fi
35814
35815PERL_SUPPORTS_DESTDIR='no'
35816
cristy3ed852e2009-09-05 21:47:34 +000035817with_perl_static='no'
35818with_perl_dynamic='no'
35819if test "$have_perl" != 'no'; then
35820 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
35821 with_perl_static='yes'
35822 fi
35823 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
35824 with_perl_dynamic='yes'
35825 fi
35826 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000035827
35828
35829
35830
35831 if test -n "$PERL"; then :
35832
35833 ax_perl_version="5.8.1"
35834
35835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
35836$as_echo_n "checking for perl version... " >&6; }
35837
cristy17491be2014-06-24 01:10:53 +000035838 perl_version=`$PERL --version 2>&1 \
35839 | $SED -n -e '/This is perl/b inspect
35840b
35841: inspect
35842s/.* (\{0,1\}v\([0-9]*\.[0-9]*\.[0-9]*\))\{0,1\} .*/\1/;p'`
cristy73bd4a52010-10-05 11:24:23 +000035843
35844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
35845$as_echo "$perl_version" >&6; }
35846
35847 PERL_VERSION=$perl_version
35848
35849
35850
35851
35852
35853 # Used to indicate true or false condition
35854 ax_compare_version=false
35855
35856 # Convert the two version strings to be compared into a format that
35857 # allows a simple string comparison. The end result is that a version
35858 # string of the form 1.12.5-r617 will be converted to the form
35859 # 0001001200050617. In other words, each number is zero padded to four
35860 # digits, and non digits are removed.
35861
35862 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35863 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35864 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35865 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35866 -e 's/[^0-9]//g'`
35867
35868
35869 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35870 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35871 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35872 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35873 -e 's/[^0-9]//g'`
35874
35875
35876 ax_compare_version=`echo "x$ax_compare_version_A
35877x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
35878
35879
35880
35881 if test "$ax_compare_version" = "true" ; then
35882
35883 :
35884 PERL_SUPPORTS_DESTDIR='yes'
35885
35886 else
35887 :
35888 PERL_SUPPORTS_DESTDIR='no'
35889
35890 fi
35891
35892
35893else
35894
35895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
35896$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
35897 PERL_SUPPORTS_DESTDIR='no'
35898
cristy3ed852e2009-09-05 21:47:34 +000035899fi
cristy73bd4a52010-10-05 11:24:23 +000035900
35901fi
35902 if test "$have_perl" != 'no'; then
35903 WITH_PERL_TRUE=
35904 WITH_PERL_FALSE='#'
35905else
35906 WITH_PERL_TRUE='#'
35907 WITH_PERL_FALSE=
35908fi
35909
35910 if test $with_perl_static = 'yes'; then
35911 WITH_PERL_STATIC_TRUE=
35912 WITH_PERL_STATIC_FALSE='#'
35913else
35914 WITH_PERL_STATIC_TRUE='#'
35915 WITH_PERL_STATIC_FALSE=
35916fi
35917
35918 if test $with_perl_dynamic = 'yes'; then
35919 WITH_PERL_DYNAMIC_TRUE=
35920 WITH_PERL_DYNAMIC_FALSE='#'
35921else
35922 WITH_PERL_DYNAMIC_TRUE='#'
35923 WITH_PERL_DYNAMIC_FALSE=
35924fi
35925
cristy3ed852e2009-09-05 21:47:34 +000035926
35927
35928# Determine path to pick up MagickCore library from for use with building PerlMagick
35929MAGICKCORE_PATH="${LIB_DIR}"
35930if test $with_perl_static = 'yes'; then
35931 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
35932 libtool_objdir=$objdir
35933
35934 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000035935 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000035936fi
35937
35938
cristy2a3eb392012-12-17 13:39:20 +000035939# Create a simple string containing format names for all delegate libraries.
cristy422d5502012-12-22 22:20:57 +000035940MAGICK_DELEGATES=''
cristy2a3eb392012-12-17 13:39:20 +000035941if test "$have_autotrace" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035942 MAGICK_DELEGATES="$MAGICK_DELEGATES autotrace"
cristy3ed852e2009-09-05 21:47:34 +000035943fi
cristy2a3eb392012-12-17 13:39:20 +000035944if test "$have_bzlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035945 MAGICK_DELEGATES="$MAGICK_DELEGATES bzlib"
cristy2a3eb392012-12-17 13:39:20 +000035946fi
35947if test "$have_dps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035948 MAGICK_DELEGATES="$MAGICK_DELEGATES dps"
cristy2a3eb392012-12-17 13:39:20 +000035949fi
35950if test "$have_djvu" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035951 MAGICK_DELEGATES="$MAGICK_DELEGATES djvu"
cristy2a3eb392012-12-17 13:39:20 +000035952fi
cristy81ab5af2013-10-06 18:28:39 +000035953if test "$have_avconv" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035954 MAGICK_DELEGATES="$MAGICK_DELEGATES mpeg"
cristy2a3eb392012-12-17 13:39:20 +000035955fi
35956if test "$have_fftw" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035957 MAGICK_DELEGATES="$MAGICK_DELEGATES fftw"
cristy2a3eb392012-12-17 13:39:20 +000035958fi
cristy2a3eb392012-12-17 13:39:20 +000035959if test "$have_fpx" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035960 MAGICK_DELEGATES="$MAGICK_DELEGATES fpx"
cristy2a3eb392012-12-17 13:39:20 +000035961fi
35962if test "$have_fontconfig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035963 MAGICK_DELEGATES="$MAGICK_DELEGATES fontconfig"
cristy2a3eb392012-12-17 13:39:20 +000035964fi
35965if test "$have_freetype" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035966 MAGICK_DELEGATES="$MAGICK_DELEGATES freetype"
cristy2a3eb392012-12-17 13:39:20 +000035967fi
35968if test "$have_gslib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035969 MAGICK_DELEGATES="$MAGICK_DELEGATES gslib"
cristy2a3eb392012-12-17 13:39:20 +000035970fi
35971if test "$have_jbig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035972 MAGICK_DELEGATES="$MAGICK_DELEGATES jbig"
cristy2a3eb392012-12-17 13:39:20 +000035973fi
35974if test "$have_png$have_jpeg" = 'yesyes' ; then
cristy422d5502012-12-22 22:20:57 +000035975 MAGICK_DELEGATES="$MAGICK_DELEGATES jng"
cristy2a3eb392012-12-17 13:39:20 +000035976fi
35977if test "$have_jp2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035978 MAGICK_DELEGATES="$MAGICK_DELEGATES jp2"
cristy2a3eb392012-12-17 13:39:20 +000035979fi
35980if test "$have_jpeg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035981 MAGICK_DELEGATES="$MAGICK_DELEGATES jpeg"
cristy2a3eb392012-12-17 13:39:20 +000035982fi
35983if test "$have_lcms" = 'yes' || test "$have_lcms2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035984 MAGICK_DELEGATES="$MAGICK_DELEGATES lcms"
cristy2a3eb392012-12-17 13:39:20 +000035985fi
35986if test "$have_lqr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035987 MAGICK_DELEGATES="$MAGICK_DELEGATES lqr"
cristy2a3eb392012-12-17 13:39:20 +000035988fi
35989if test "$have_lzma" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035990 MAGICK_DELEGATES="$MAGICK_DELEGATES lzma"
cristy2a3eb392012-12-17 13:39:20 +000035991fi
35992if test "$have_openexr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035993 MAGICK_DELEGATES="$MAGICK_DELEGATES openexr"
cristy2a3eb392012-12-17 13:39:20 +000035994fi
cristy99db3872014-01-01 15:11:34 +000035995if test "$have_openjp2" = 'yes' ; then
35996 MAGICK_DELEGATES="$MAGICK_DELEGATES openjp2"
cristy3fe09452014-01-01 12:29:14 +000035997fi
cristy2a3eb392012-12-17 13:39:20 +000035998if test "$have_pango" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035999 MAGICK_DELEGATES="$MAGICK_DELEGATES pango"
cristy2a3eb392012-12-17 13:39:20 +000036000fi
36001if test "$have_png" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036002 MAGICK_DELEGATES="$MAGICK_DELEGATES png"
cristy2a3eb392012-12-17 13:39:20 +000036003fi
36004have_ps='no'
36005if test "$have_dps" = 'yes' || \
36006 test "$have_gs" = 'yes' || \
36007 test "${native_win32_build}" = 'yes' ; then
36008 have_ps='yes'
36009fi
36010if test "$have_ps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036011 MAGICK_DELEGATES="$MAGICK_DELEGATES ps"
cristy2a3eb392012-12-17 13:39:20 +000036012fi
cristy2a3eb392012-12-17 13:39:20 +000036013if test "$have_ra_ppm" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036014 MAGICK_DELEGATES="$MAGICK_DELEGATES rad"
cristy2a3eb392012-12-17 13:39:20 +000036015fi
36016if test "$have_rsvg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036017 MAGICK_DELEGATES="$MAGICK_DELEGATES rsvg"
cristy2a3eb392012-12-17 13:39:20 +000036018fi
36019if test "$have_tiff" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036020 MAGICK_DELEGATES="$MAGICK_DELEGATES tiff"
cristy2a3eb392012-12-17 13:39:20 +000036021fi
36022if test "$have_ttf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036023 MAGICK_DELEGATES="$MAGICK_DELEGATES ttf"
cristy2a3eb392012-12-17 13:39:20 +000036024fi
cristy3b640ed2013-07-29 00:27:59 +000036025if test "$have_webp" = 'yes' ; then
36026 MAGICK_DELEGATES="$MAGICK_DELEGATES webp"
36027fi
cristy2a3eb392012-12-17 13:39:20 +000036028if test "$have_wmf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036029 MAGICK_DELEGATES="$MAGICK_DELEGATES wmf"
cristy2a3eb392012-12-17 13:39:20 +000036030fi
36031if test "$have_x" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036032 MAGICK_DELEGATES="$MAGICK_DELEGATES x"
cristy2a3eb392012-12-17 13:39:20 +000036033fi
36034if test "$have_xml" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036035 MAGICK_DELEGATES="$MAGICK_DELEGATES xml"
cristy2a3eb392012-12-17 13:39:20 +000036036fi
36037if test "$have_zlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036038 MAGICK_DELEGATES="$MAGICK_DELEGATES zlib"
cristy2a3eb392012-12-17 13:39:20 +000036039fi
cristy2a3eb392012-12-17 13:39:20 +000036040# Remove extraneous spaces from output variables (asthetic)
cristy422d5502012-12-22 22:20:57 +000036041MAGICK_DELEGATES=`echo $MAGICK_DELEGATES | sed -e 's/ */ /g'`
cristy2a3eb392012-12-17 13:39:20 +000036042MAGICK_FEATURES=`echo $MAGICK_FEATURES | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000036043
36044
cristyfa161182012-12-19 15:45:28 +000036045
cristy3ed852e2009-09-05 21:47:34 +000036046#
36047# Handle special compiler flags
36048#
36049
36050# Add '-p' if prof source profiling support enabled
36051if test "$enable_prof" = 'yes'; then
36052 CFLAGS="-p $CFLAGS"
36053 CXXFLAGS="-p $CXXFLAGS"
36054 LDFLAGS="-p $LDFLAGS"
36055fi
36056
36057# Add '-pg' if gprof source profiling support enabled
36058if test "$enable_gprof" = 'yes'; then
36059 CFLAGS="-pg $CFLAGS"
36060 CXXFLAGS="-pg $CXXFLAGS"
36061 LDFLAGS="-pg $LDFLAGS"
36062fi
36063
36064# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
36065# This is a gcc-specific feature
36066if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000036067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000036068$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000036069if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000036070 $as_echo_n "(cached) " >&6
36071else
36072 ac_check_lib_save_LIBS=$LIBS
36073LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000036074cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000036075/* end confdefs.h. */
36076
36077/* Override any GCC internal prototype to avoid an error.
36078 Use char because int might match the return type of a GCC
36079 builtin and then its argument prototype would still apply. */
36080#ifdef __cplusplus
36081extern "C"
36082#endif
36083char _gcov_init ();
36084int
36085main ()
36086{
36087return _gcov_init ();
36088 ;
36089 return 0;
36090}
36091_ACEOF
cristy8b350f62009-11-15 23:12:43 +000036092if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000036093 ac_cv_lib_gcov__gcov_init=yes
36094else
cristy8b350f62009-11-15 23:12:43 +000036095 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000036096fi
cristy8b350f62009-11-15 23:12:43 +000036097rm -f core conftest.err conftest.$ac_objext \
36098 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000036099LIBS=$ac_check_lib_save_LIBS
36100fi
cristy8b350f62009-11-15 23:12:43 +000036101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000036102$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000036103if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000036104 cat >>confdefs.h <<_ACEOF
36105#define HAVE_LIBGCOV 1
36106_ACEOF
36107
36108 LIBS="-lgcov $LIBS"
36109
36110fi
36111
cristy8b350f62009-11-15 23:12:43 +000036112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000036113$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000036114if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000036115 $as_echo_n "(cached) " >&6
36116else
36117 ac_check_lib_save_LIBS=$LIBS
36118LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000036119cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000036120/* end confdefs.h. */
36121
36122/* Override any GCC internal prototype to avoid an error.
36123 Use char because int might match the return type of a GCC
36124 builtin and then its argument prototype would still apply. */
36125#ifdef __cplusplus
36126extern "C"
36127#endif
36128char __gcov_init ();
36129int
36130main ()
36131{
36132return __gcov_init ();
36133 ;
36134 return 0;
36135}
36136_ACEOF
cristy8b350f62009-11-15 23:12:43 +000036137if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000036138 ac_cv_lib_gcov___gcov_init=yes
36139else
cristy8b350f62009-11-15 23:12:43 +000036140 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000036141fi
cristy8b350f62009-11-15 23:12:43 +000036142rm -f core conftest.err conftest.$ac_objext \
36143 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000036144LIBS=$ac_check_lib_save_LIBS
36145fi
cristy8b350f62009-11-15 23:12:43 +000036146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000036147$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000036148if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000036149 cat >>confdefs.h <<_ACEOF
36150#define HAVE_LIBGCOV 1
36151_ACEOF
36152
36153 LIBS="-lgcov $LIBS"
36154
36155fi
36156
36157 case "$target_os" in
36158 darwin*)
36159 OSX_GCOV_LDFLAG="-Wl,-single_module"
36160 ;;
36161 *)
36162 OSX_GCOV_LDFLAG=""
36163 ;;
36164 esac
36165
36166 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
36167 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
36168 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
36169fi
36170
36171#
36172# Build library dependency list for libMagickCore
36173#
36174
cristyc6722092012-10-14 00:19:31 +000036175if test "$build_modules" != 'no'; then
cristy3b0097d2014-11-04 15:34:47 +000036176 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 +000036177else
cristy3b0097d2014-11-04 15:34:47 +000036178 MAGICK_DEP_LIBS="$USER_LIBS $JBIG_LIBS $LCMS_LIBS $TIFF_LIBS $FREETYPE_LIBS $JPEG_LIBS $GS_LIBS $LQR_LIBS $PNG_LIBS $AUTOTRACE_LIBS $DJVU_LIBS $FFTW_LIBS $FPX_LIBS $FONTCONFIG_LIBS $WEBP_LIBS $WMF_LIBS $DPS_LIBS $XEXT_LIBS $XT_LIBS $IPC_LIBS $X11_LIBS $LZMA_LIBS $BZLIB_LIBS $OPENEXR_LIBS $OPENJPEG_LIBS $PANGO_LIBS $RSVG_LIBS $XML_LIBS $GVC_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $GOMP_LIBS $CL_LIBS $UMEM_LIBS $JEMALLOC_LIBS $THREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000036179fi
36180
36181
36182#
36183# Remove extraneous spaces from output variables (asthetic)
36184#
36185X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
36186X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
36187X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
36188X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
36189
36190CC=`echo $CC | sed -e 's/ */ /g'`
36191CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
36192CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
36193CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000036194DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
36195LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
36196TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
36197MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
36198#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
36199
36200# Pass only user-provided LIBS as "global" libraries
36201LIBS=$USER_LIBS
36202
36203#AC_SUBST(CPPFLAGS)
36204
36205#AC_SUBST(LDFLAGS)
36206#AC_SUBST(X_PRE_LIBS)
36207#AC_SUBST(X_LIBS)
36208#AC_SUBST(X_EXTRA_LIBS)
36209
36210MAGICK_CFLAGS=$CFLAGS
36211MAGICK_CXXFLAGS="$CXXFLAGS"
36212MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
36213MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
36214MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
cristy31b9e072013-10-17 15:02:53 +000036215MAGICK_LIBS="$MAGICK_DEP_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000036216
36217
36218
36219
36220
36221
36222
36223
36224# Set configured scripts to executable.
36225ac_config_commands="$ac_config_commands default"
36226
cristy2bd4b6e2012-07-22 15:29:11 +000036227ac_config_commands="$ac_config_commands magick.sh.in"
36228
cristy3ed852e2009-09-05 21:47:34 +000036229ac_config_commands="$ac_config_commands MagickCore-config.in"
36230
cristy3ed852e2009-09-05 21:47:34 +000036231ac_config_commands="$ac_config_commands MagickWand-config.in"
36232
cristy3ed852e2009-09-05 21:47:34 +000036233ac_config_commands="$ac_config_commands Magick++-config.in"
36234
36235ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
36236
36237
cristyad38abe2012-12-23 23:03:21 +000036238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
36239$as_echo "-------------------------------------------------------------" >&6; }
36240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
36241$as_echo "Update ImageMagick configuration" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000036242cat >confcache <<\_ACEOF
36243# This file is a shell script that caches the results of configure
36244# tests run on this system so they can be shared between configure
36245# scripts and configure runs, see configure's option --config-cache.
36246# It is not useful on other systems. If it contains results you don't
36247# want to keep, you may remove or edit it.
36248#
36249# config.status only pays attention to the cache file if you give it
36250# the --recheck option to rerun configure.
36251#
36252# `ac_cv_env_foo' variables (set or unset) will be overridden when
36253# loading this file, other *unset* `ac_cv_foo' will be assigned the
36254# following values.
36255
36256_ACEOF
36257
36258# The following way of writing the cache mishandles newlines in values,
36259# but we know of no workaround that is simple, portable, and efficient.
36260# So, we kill variables containing newlines.
36261# Ultrix sh set writes to stderr and can't be redirected directly,
36262# and sets the high bit in the cache file unless we assign to the vars.
36263(
36264 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
36265 eval ac_val=\$$ac_var
36266 case $ac_val in #(
36267 *${as_nl}*)
36268 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000036269 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000036270$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
36271 esac
36272 case $ac_var in #(
36273 _ | IFS | as_nl) ;; #(
36274 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000036275 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000036276 esac ;;
36277 esac
36278 done
36279
36280 (set) 2>&1 |
36281 case $as_nl`(ac_space=' '; set) 2>&1` in #(
36282 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000036283 # `set' does not quote correctly, so add quotes: double-quote
36284 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000036285 sed -n \
36286 "s/'/'\\\\''/g;
36287 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
36288 ;; #(
36289 *)
36290 # `set' quotes correctly as required by POSIX, so do not add quotes.
36291 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
36292 ;;
36293 esac |
36294 sort
36295) |
36296 sed '
36297 /^ac_cv_env_/b end
36298 t clear
36299 :clear
36300 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
36301 t end
36302 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
36303 :end' >>confcache
36304if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
36305 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000036306 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000036307 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000036308$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000036309 if test ! -f "$cache_file" || test -h "$cache_file"; then
36310 cat confcache >"$cache_file"
36311 else
36312 case $cache_file in #(
36313 */* | ?:*)
36314 mv -f confcache "$cache_file"$$ &&
36315 mv -f "$cache_file"$$ "$cache_file" ;; #(
36316 *)
36317 mv -f confcache "$cache_file" ;;
36318 esac
36319 fi
36320 fi
cristy3ed852e2009-09-05 21:47:34 +000036321 else
cristy8b350f62009-11-15 23:12:43 +000036322 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000036323$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
36324 fi
36325fi
36326rm -f confcache
36327
36328test "x$prefix" = xNONE && prefix=$ac_default_prefix
36329# Let make expand exec_prefix.
36330test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
36331
36332DEFS=-DHAVE_CONFIG_H
36333
36334ac_libobjs=
36335ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000036336U=
cristy3ed852e2009-09-05 21:47:34 +000036337for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
36338 # 1. Remove the extension, and $U if already installed.
36339 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
36340 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
36341 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
36342 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000036343 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
36344 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000036345done
36346LIBOBJS=$ac_libobjs
36347
36348LTLIBOBJS=$ac_ltlibobjs
36349
36350
cristyc0890a62012-07-19 00:18:20 +000036351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
36352$as_echo_n "checking that generated files are newer than configure... " >&6; }
36353 if test -n "$am_sleep_pid"; then
36354 # Hide warnings about reused PIDs.
36355 wait $am_sleep_pid 2>/dev/null
36356 fi
36357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
36358$as_echo "done" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000036359 if test -n "$EXEEXT"; then
36360 am__EXEEXT_TRUE=
36361 am__EXEEXT_FALSE='#'
36362else
36363 am__EXEEXT_TRUE='#'
36364 am__EXEEXT_FALSE=
36365fi
cristy3ed852e2009-09-05 21:47:34 +000036366
cristy73bd4a52010-10-05 11:24:23 +000036367if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036368 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036369Usually this means the macro was only invoked conditionally." "$LINENO" 5
36370fi
36371if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036372 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036373Usually this means the macro was only invoked conditionally." "$LINENO" 5
36374fi
36375if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036376 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036377Usually this means the macro was only invoked conditionally." "$LINENO" 5
36378fi
36379if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036380 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036381Usually this means the macro was only invoked conditionally." "$LINENO" 5
36382fi
cristy9b86f202012-11-28 21:55:35 +000036383if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
36384 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
36385Usually this means the macro was only invoked conditionally." "$LINENO" 5
36386fi
cristy73bd4a52010-10-05 11:24:23 +000036387if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036388 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036389Usually this means the macro was only invoked conditionally." "$LINENO" 5
36390fi
36391if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036392 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036393Usually this means the macro was only invoked conditionally." "$LINENO" 5
36394fi
36395if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036396 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036397Usually this means the macro was only invoked conditionally." "$LINENO" 5
36398fi
36399if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036400 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036401Usually this means the macro was only invoked conditionally." "$LINENO" 5
36402fi
cristy73bd4a52010-10-05 11:24:23 +000036403if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036404 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036405Usually this means the macro was only invoked conditionally." "$LINENO" 5
36406fi
36407if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036408 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036409Usually this means the macro was only invoked conditionally." "$LINENO" 5
36410fi
cristy73bd4a52010-10-05 11:24:23 +000036411if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036412 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036413Usually this means the macro was only invoked conditionally." "$LINENO" 5
36414fi
cristy71d8c202012-03-20 17:05:01 +000036415if test -z "${LEGACY_SUPPORT_TRUE}" && test -z "${LEGACY_SUPPORT_FALSE}"; then
36416 as_fn_error $? "conditional \"LEGACY_SUPPORT\" was never defined.
36417Usually this means the macro was only invoked conditionally." "$LINENO" 5
36418fi
cristy73bd4a52010-10-05 11:24:23 +000036419
36420if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036421 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036422Usually this means the macro was only invoked conditionally." "$LINENO" 5
36423fi
36424if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036425 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036426Usually this means the macro was only invoked conditionally." "$LINENO" 5
36427fi
cristy3b0097d2014-11-04 15:34:47 +000036428if test -z "${HasJEMALLOC_TRUE}" && test -z "${HasJEMALLOC_FALSE}"; then
36429 as_fn_error $? "conditional \"HasJEMALLOC\" was never defined.
36430Usually this means the macro was only invoked conditionally." "$LINENO" 5
36431fi
cristy73bd4a52010-10-05 11:24:23 +000036432if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036433 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036434Usually this means the macro was only invoked conditionally." "$LINENO" 5
36435fi
36436if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036437 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036438Usually this means the macro was only invoked conditionally." "$LINENO" 5
36439fi
36440if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036441 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036442Usually this means the macro was only invoked conditionally." "$LINENO" 5
36443fi
36444if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036445 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036446Usually this means the macro was only invoked conditionally." "$LINENO" 5
36447fi
cristy5eef09f2012-10-16 12:08:28 +000036448if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
36449 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
36450Usually this means the macro was only invoked conditionally." "$LINENO" 5
36451fi
cristy73bd4a52010-10-05 11:24:23 +000036452if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036453 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036454Usually this means the macro was only invoked conditionally." "$LINENO" 5
36455fi
36456if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036457 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036458Usually this means the macro was only invoked conditionally." "$LINENO" 5
36459fi
cristy73bd4a52010-10-05 11:24:23 +000036460if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036461 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036462Usually this means the macro was only invoked conditionally." "$LINENO" 5
36463fi
36464if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036465 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036466Usually this means the macro was only invoked conditionally." "$LINENO" 5
36467fi
cristy853d9902014-08-21 18:50:43 +000036468if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
36469 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
36470Usually this means the macro was only invoked conditionally." "$LINENO" 5
36471fi
cristy73bd4a52010-10-05 11:24:23 +000036472if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036473 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036474Usually this means the macro was only invoked conditionally." "$LINENO" 5
36475fi
36476if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036477 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036478Usually this means the macro was only invoked conditionally." "$LINENO" 5
36479fi
36480if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036481 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036482Usually this means the macro was only invoked conditionally." "$LINENO" 5
36483fi
36484if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036485 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036486Usually this means the macro was only invoked conditionally." "$LINENO" 5
36487fi
36488if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036489 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036490Usually this means the macro was only invoked conditionally." "$LINENO" 5
36491fi
36492if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036493 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036494Usually this means the macro was only invoked conditionally." "$LINENO" 5
36495fi
cristy73bd4a52010-10-05 11:24:23 +000036496if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036497 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036498Usually this means the macro was only invoked conditionally." "$LINENO" 5
36499fi
cristy99db3872014-01-01 15:11:34 +000036500if test -z "${LIBOPENJP2_DELEGATE_TRUE}" && test -z "${LIBOPENJP2_DELEGATE_FALSE}"; then
36501 as_fn_error $? "conditional \"LIBOPENJP2_DELEGATE\" was never defined.
36502Usually this means the macro was only invoked conditionally." "$LINENO" 5
36503fi
cristy73bd4a52010-10-05 11:24:23 +000036504if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036505 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036506Usually this means the macro was only invoked conditionally." "$LINENO" 5
36507fi
cristyfbb0ef02010-12-19 02:32:11 +000036508if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
36509 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
36510Usually this means the macro was only invoked conditionally." "$LINENO" 5
36511fi
cristy73bd4a52010-10-05 11:24:23 +000036512if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036513 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036514Usually this means the macro was only invoked conditionally." "$LINENO" 5
36515fi
cristy41cbe8a2011-10-27 01:35:18 +000036516if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
36517 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
36518Usually this means the macro was only invoked conditionally." "$LINENO" 5
36519fi
cristya054b762012-03-26 23:16:00 +000036520if test -z "${PANGOCAIRO_DELEGATE_TRUE}" && test -z "${PANGOCAIRO_DELEGATE_FALSE}"; then
36521 as_fn_error $? "conditional \"PANGOCAIRO_DELEGATE\" was never defined.
cristy41cbe8a2011-10-27 01:35:18 +000036522Usually this means the macro was only invoked conditionally." "$LINENO" 5
36523fi
cristy73bd4a52010-10-05 11:24:23 +000036524if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036525 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036526Usually this means the macro was only invoked conditionally." "$LINENO" 5
36527fi
36528if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036529 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036530Usually this means the macro was only invoked conditionally." "$LINENO" 5
36531fi
36532if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036533 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036534Usually this means the macro was only invoked conditionally." "$LINENO" 5
36535fi
36536if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036537 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036538Usually this means the macro was only invoked conditionally." "$LINENO" 5
36539fi
cristyb1860752011-03-14 00:27:46 +000036540if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
36541 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
36542Usually this means the macro was only invoked conditionally." "$LINENO" 5
36543fi
cristy73bd4a52010-10-05 11:24:23 +000036544if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036545 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036546Usually this means the macro was only invoked conditionally." "$LINENO" 5
36547fi
36548if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036549 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036550Usually this means the macro was only invoked conditionally." "$LINENO" 5
36551fi
cristydd17feb2014-03-05 02:06:32 +000036552if test -z "${INSTALL_DOC_TRUE}" && test -z "${INSTALL_DOC_FALSE}"; then
36553 as_fn_error $? "conditional \"INSTALL_DOC\" was never defined.
36554Usually this means the macro was only invoked conditionally." "$LINENO" 5
36555fi
cristy73bd4a52010-10-05 11:24:23 +000036556if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036557 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036558Usually this means the macro was only invoked conditionally." "$LINENO" 5
36559fi
36560if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036561 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036562Usually this means the macro was only invoked conditionally." "$LINENO" 5
36563fi
36564if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036565 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036566Usually this means the macro was only invoked conditionally." "$LINENO" 5
36567fi
36568if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036569 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036570Usually this means the macro was only invoked conditionally." "$LINENO" 5
36571fi
36572if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036573 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036574Usually this means the macro was only invoked conditionally." "$LINENO" 5
36575fi
36576if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036577 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036578Usually this means the macro was only invoked conditionally." "$LINENO" 5
36579fi
cristy3ed852e2009-09-05 21:47:34 +000036580
cristyda16f162011-02-19 23:52:17 +000036581: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000036582ac_write_fail=0
36583ac_clean_files_save=$ac_clean_files
36584ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000036585{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000036586$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000036587as_write_fail=0
36588cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036589#! $SHELL
36590# Generated by $as_me.
36591# Run this file to recreate the current configuration.
36592# Compiler output produced by configure, useful for debugging
36593# configure, is in config.log if it exists.
36594
36595debug=false
36596ac_cs_recheck=false
36597ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000036598
cristy8b350f62009-11-15 23:12:43 +000036599SHELL=\${CONFIG_SHELL-$SHELL}
36600export SHELL
36601_ASEOF
36602cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
36603## -------------------- ##
36604## M4sh Initialization. ##
36605## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000036606
36607# Be more Bourne compatible
36608DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000036609if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000036610 emulate sh
36611 NULLCMD=:
36612 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
36613 # is contrary to our usage. Disable this feature.
36614 alias -g '${1+"$@"}'='"$@"'
36615 setopt NO_GLOB_SUBST
36616else
cristy8b350f62009-11-15 23:12:43 +000036617 case `(set -o) 2>/dev/null` in #(
36618 *posix*) :
36619 set -o posix ;; #(
36620 *) :
36621 ;;
cristy3ed852e2009-09-05 21:47:34 +000036622esac
cristy3ed852e2009-09-05 21:47:34 +000036623fi
36624
36625
cristy3ed852e2009-09-05 21:47:34 +000036626as_nl='
36627'
36628export as_nl
36629# Printing a long string crashes Solaris 7 /usr/bin/printf.
36630as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
36631as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
36632as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000036633# Prefer a ksh shell builtin over an external printf program on Solaris,
36634# but without wasting forks for bash or zsh.
36635if test -z "$BASH_VERSION$ZSH_VERSION" \
36636 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
36637 as_echo='print -r --'
36638 as_echo_n='print -rn --'
36639elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000036640 as_echo='printf %s\n'
36641 as_echo_n='printf %s'
36642else
36643 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
36644 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
36645 as_echo_n='/usr/ucb/echo -n'
36646 else
36647 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
36648 as_echo_n_body='eval
36649 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000036650 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000036651 *"$as_nl"*)
36652 expr "X$arg" : "X\\(.*\\)$as_nl";
36653 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
36654 esac;
36655 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
36656 '
36657 export as_echo_n_body
36658 as_echo_n='sh -c $as_echo_n_body as_echo'
36659 fi
36660 export as_echo_body
36661 as_echo='sh -c $as_echo_body as_echo'
36662fi
36663
36664# The user is always right.
36665if test "${PATH_SEPARATOR+set}" != set; then
36666 PATH_SEPARATOR=:
36667 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
36668 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
36669 PATH_SEPARATOR=';'
36670 }
36671fi
36672
cristy3ed852e2009-09-05 21:47:34 +000036673
36674# IFS
36675# We need space, tab and new line, in precisely that order. Quoting is
36676# there to prevent editors from complaining about space-tab.
36677# (If _AS_PATH_WALK were called with IFS unset, it would disable word
36678# splitting by setting IFS to empty value.)
36679IFS=" "" $as_nl"
36680
36681# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000036682as_myself=
cristy8b350f62009-11-15 23:12:43 +000036683case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000036684 *[\\/]* ) as_myself=$0 ;;
36685 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36686for as_dir in $PATH
36687do
36688 IFS=$as_save_IFS
36689 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000036690 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
36691 done
cristy3ed852e2009-09-05 21:47:34 +000036692IFS=$as_save_IFS
36693
36694 ;;
36695esac
36696# We did not find ourselves, most probably we were run as `sh COMMAND'
36697# in which case we are not to be found in the path.
36698if test "x$as_myself" = x; then
36699 as_myself=$0
36700fi
36701if test ! -f "$as_myself"; then
36702 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000036703 exit 1
cristy3ed852e2009-09-05 21:47:34 +000036704fi
36705
cristy8b350f62009-11-15 23:12:43 +000036706# Unset variables that we do not need and which cause bugs (e.g. in
36707# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
36708# suppresses any "Segmentation fault" message there. '((' could
36709# trigger a bug in pdksh 5.2.14.
36710for as_var in BASH_ENV ENV MAIL MAILPATH
36711do eval test x\${$as_var+set} = xset \
36712 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000036713done
36714PS1='$ '
36715PS2='> '
36716PS4='+ '
36717
36718# NLS nuisances.
36719LC_ALL=C
36720export LC_ALL
36721LANGUAGE=C
36722export LANGUAGE
36723
cristy8b350f62009-11-15 23:12:43 +000036724# CDPATH.
36725(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36726
36727
cristy98dddb52010-11-04 00:30:15 +000036728# as_fn_error STATUS ERROR [LINENO LOG_FD]
36729# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000036730# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
36731# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000036732# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000036733as_fn_error ()
36734{
cristy98dddb52010-11-04 00:30:15 +000036735 as_status=$1; test $as_status -eq 0 && as_status=1
36736 if test "$4"; then
36737 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
36738 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000036739 fi
cristy98dddb52010-11-04 00:30:15 +000036740 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000036741 as_fn_exit $as_status
36742} # as_fn_error
36743
36744
36745# as_fn_set_status STATUS
36746# -----------------------
36747# Set $? to STATUS, without forking.
36748as_fn_set_status ()
36749{
36750 return $1
36751} # as_fn_set_status
36752
36753# as_fn_exit STATUS
36754# -----------------
36755# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
36756as_fn_exit ()
36757{
36758 set +e
36759 as_fn_set_status $1
36760 exit $1
36761} # as_fn_exit
36762
36763# as_fn_unset VAR
36764# ---------------
36765# Portably unset VAR.
36766as_fn_unset ()
36767{
36768 { eval $1=; unset $1;}
36769}
36770as_unset=as_fn_unset
36771# as_fn_append VAR VALUE
36772# ----------------------
36773# Append the text in VALUE to the end of the definition contained in VAR. Take
36774# advantage of any shell optimizations that allow amortized linear growth over
36775# repeated appends, instead of the typical quadratic growth present in naive
36776# implementations.
36777if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
36778 eval 'as_fn_append ()
36779 {
36780 eval $1+=\$2
36781 }'
36782else
36783 as_fn_append ()
36784 {
36785 eval $1=\$$1\$2
36786 }
36787fi # as_fn_append
36788
36789# as_fn_arith ARG...
36790# ------------------
36791# Perform arithmetic evaluation on the ARGs, and store the result in the
36792# global $as_val. Take advantage of shells that can avoid forks. The arguments
36793# must be portable across $(()) and expr.
36794if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
36795 eval 'as_fn_arith ()
36796 {
36797 as_val=$(( $* ))
36798 }'
36799else
36800 as_fn_arith ()
36801 {
36802 as_val=`expr "$@" || test $? -eq 1`
36803 }
36804fi # as_fn_arith
36805
36806
cristy3ed852e2009-09-05 21:47:34 +000036807if expr a : '\(a\)' >/dev/null 2>&1 &&
36808 test "X`expr 00001 : '.*\(...\)'`" = X001; then
36809 as_expr=expr
36810else
36811 as_expr=false
36812fi
36813
36814if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
36815 as_basename=basename
36816else
36817 as_basename=false
36818fi
36819
cristy8b350f62009-11-15 23:12:43 +000036820if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
36821 as_dirname=dirname
36822else
36823 as_dirname=false
36824fi
cristy3ed852e2009-09-05 21:47:34 +000036825
cristy3ed852e2009-09-05 21:47:34 +000036826as_me=`$as_basename -- "$0" ||
36827$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
36828 X"$0" : 'X\(//\)$' \| \
36829 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
36830$as_echo X/"$0" |
36831 sed '/^.*\/\([^/][^/]*\)\/*$/{
36832 s//\1/
36833 q
36834 }
36835 /^X\/\(\/\/\)$/{
36836 s//\1/
36837 q
36838 }
36839 /^X\/\(\/\).*/{
36840 s//\1/
36841 q
36842 }
36843 s/.*/./; q'`
36844
cristy8b350f62009-11-15 23:12:43 +000036845# Avoid depending upon Character Ranges.
36846as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36847as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36848as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36849as_cr_digits='0123456789'
36850as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000036851
36852ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000036853case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000036854-n*)
cristy8b350f62009-11-15 23:12:43 +000036855 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000036856 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000036857 xy) ECHO_C='\c';;
36858 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
36859 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000036860 esac;;
36861*)
36862 ECHO_N='-n';;
36863esac
cristy3ed852e2009-09-05 21:47:34 +000036864
36865rm -f conf$$ conf$$.exe conf$$.file
36866if test -d conf$$.dir; then
36867 rm -f conf$$.dir/conf$$.file
36868else
36869 rm -f conf$$.dir
36870 mkdir conf$$.dir 2>/dev/null
36871fi
36872if (echo >conf$$.file) 2>/dev/null; then
36873 if ln -s conf$$.file conf$$ 2>/dev/null; then
36874 as_ln_s='ln -s'
36875 # ... but there are two gotchas:
36876 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
36877 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cristy14fefe52012-05-21 00:59:18 +000036878 # In both cases, we have to default to `cp -pR'.
cristy3ed852e2009-09-05 21:47:34 +000036879 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cristy14fefe52012-05-21 00:59:18 +000036880 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036881 elif ln conf$$.file conf$$ 2>/dev/null; then
36882 as_ln_s=ln
36883 else
cristy14fefe52012-05-21 00:59:18 +000036884 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036885 fi
36886else
cristy14fefe52012-05-21 00:59:18 +000036887 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036888fi
36889rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
36890rmdir conf$$.dir 2>/dev/null
36891
cristy8b350f62009-11-15 23:12:43 +000036892
36893# as_fn_mkdir_p
36894# -------------
36895# Create "$as_dir" as a directory, including parents if necessary.
36896as_fn_mkdir_p ()
36897{
36898
36899 case $as_dir in #(
36900 -*) as_dir=./$as_dir;;
36901 esac
36902 test -d "$as_dir" || eval $as_mkdir_p || {
36903 as_dirs=
36904 while :; do
36905 case $as_dir in #(
36906 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
36907 *) as_qdir=$as_dir;;
36908 esac
36909 as_dirs="'$as_qdir' $as_dirs"
36910 as_dir=`$as_dirname -- "$as_dir" ||
36911$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36912 X"$as_dir" : 'X\(//\)[^/]' \| \
36913 X"$as_dir" : 'X\(//\)$' \| \
36914 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36915$as_echo X"$as_dir" |
36916 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36917 s//\1/
36918 q
36919 }
36920 /^X\(\/\/\)[^/].*/{
36921 s//\1/
36922 q
36923 }
36924 /^X\(\/\/\)$/{
36925 s//\1/
36926 q
36927 }
36928 /^X\(\/\).*/{
36929 s//\1/
36930 q
36931 }
36932 s/.*/./; q'`
36933 test -d "$as_dir" && break
36934 done
36935 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000036936 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000036937
36938
36939} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000036940if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000036941 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000036942else
36943 test -d ./-p && rmdir ./-p
36944 as_mkdir_p=false
36945fi
36946
cristy14fefe52012-05-21 00:59:18 +000036947
36948# as_fn_executable_p FILE
36949# -----------------------
36950# Test if FILE is an executable regular file.
36951as_fn_executable_p ()
36952{
36953 test -f "$1" && test -x "$1"
36954} # as_fn_executable_p
36955as_test_x='test -x'
36956as_executable_p=as_fn_executable_p
cristy3ed852e2009-09-05 21:47:34 +000036957
36958# Sed expression to map a string onto a valid CPP name.
36959as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
36960
36961# Sed expression to map a string onto a valid variable name.
36962as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
36963
36964
36965exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000036966## ----------------------------------- ##
36967## Main body of $CONFIG_STATUS script. ##
36968## ----------------------------------- ##
36969_ASEOF
36970test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036971
cristy8b350f62009-11-15 23:12:43 +000036972cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36973# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000036974# report actual input values of CONFIG_FILES etc. instead of their
36975# values after options handling.
36976ac_log="
cristy29eb34e2011-10-16 00:46:08 +000036977This file was extended by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +000036978generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000036979
36980 CONFIG_FILES = $CONFIG_FILES
36981 CONFIG_HEADERS = $CONFIG_HEADERS
36982 CONFIG_LINKS = $CONFIG_LINKS
36983 CONFIG_COMMANDS = $CONFIG_COMMANDS
36984 $ $0 $@
36985
36986on `(hostname || uname -n) 2>/dev/null | sed 1q`
36987"
36988
36989_ACEOF
36990
36991case $ac_config_files in *"
36992"*) set x $ac_config_files; shift; ac_config_files=$*;;
36993esac
36994
36995case $ac_config_headers in *"
36996"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
36997esac
36998
36999
37000cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37001# Files that config.status was made for.
37002config_files="$ac_config_files"
37003config_headers="$ac_config_headers"
37004config_commands="$ac_config_commands"
37005
37006_ACEOF
37007
37008cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37009ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000037010\`$as_me' instantiates files and other configuration actions
37011from templates according to the current configuration. Unless the files
37012and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000037013
cristy8b350f62009-11-15 23:12:43 +000037014Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000037015
37016 -h, --help print this help, then exit
37017 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000037018 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000037019 -q, --quiet, --silent
37020 do not print progress messages
37021 -d, --debug don't remove temporary files
37022 --recheck update $as_me by reconfiguring in the same conditions
37023 --file=FILE[:TEMPLATE]
37024 instantiate the configuration file FILE
37025 --header=FILE[:TEMPLATE]
37026 instantiate the configuration header FILE
37027
37028Configuration files:
37029$config_files
37030
37031Configuration headers:
37032$config_headers
37033
37034Configuration commands:
37035$config_commands
37036
cristy8b350f62009-11-15 23:12:43 +000037037Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000037038
37039_ACEOF
37040cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000037041ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000037042ac_cs_version="\\
cristy29eb34e2011-10-16 00:46:08 +000037043ImageMagick config.status 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +000037044configured by $0, generated by GNU Autoconf 2.69,
cristycd4c5312009-11-22 01:19:08 +000037045 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000037046
cristy14fefe52012-05-21 00:59:18 +000037047Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000037048This config.status script is free software; the Free Software Foundation
37049gives unlimited permission to copy, distribute and modify it."
37050
37051ac_pwd='$ac_pwd'
37052srcdir='$srcdir'
37053INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000037054MKDIR_P='$MKDIR_P'
37055AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000037056test -n "\$AWK" || AWK=awk
37057_ACEOF
37058
37059cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37060# The default lists apply if the user does not specify any file.
37061ac_need_defaults=:
37062while test $# != 0
37063do
37064 case $1 in
cristyda16f162011-02-19 23:52:17 +000037065 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000037066 ac_option=`expr "X$1" : 'X\([^=]*\)='`
37067 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
37068 ac_shift=:
37069 ;;
cristyda16f162011-02-19 23:52:17 +000037070 --*=)
37071 ac_option=`expr "X$1" : 'X\([^=]*\)='`
37072 ac_optarg=
37073 ac_shift=:
37074 ;;
cristy3ed852e2009-09-05 21:47:34 +000037075 *)
37076 ac_option=$1
37077 ac_optarg=$2
37078 ac_shift=shift
37079 ;;
37080 esac
37081
37082 case $ac_option in
37083 # Handling of the options.
37084 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
37085 ac_cs_recheck=: ;;
37086 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
37087 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000037088 --config | --confi | --conf | --con | --co | --c )
37089 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000037090 --debug | --debu | --deb | --de | --d | -d )
37091 debug=: ;;
37092 --file | --fil | --fi | --f )
37093 $ac_shift
37094 case $ac_optarg in
37095 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000037096 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000037097 esac
cristy8b350f62009-11-15 23:12:43 +000037098 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000037099 ac_need_defaults=false;;
37100 --header | --heade | --head | --hea )
37101 $ac_shift
37102 case $ac_optarg in
37103 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
37104 esac
cristy8b350f62009-11-15 23:12:43 +000037105 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000037106 ac_need_defaults=false;;
37107 --he | --h)
37108 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000037109 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000037110Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000037111 --help | --hel | -h )
37112 $as_echo "$ac_cs_usage"; exit ;;
37113 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
37114 | -silent | --silent | --silen | --sile | --sil | --si | --s)
37115 ac_cs_silent=: ;;
37116
37117 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000037118 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000037119Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000037120
cristy8b350f62009-11-15 23:12:43 +000037121 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000037122 ac_need_defaults=false ;;
37123
37124 esac
37125 shift
37126done
37127
37128ac_configure_extra_args=
37129
37130if $ac_cs_silent; then
37131 exec 6>/dev/null
37132 ac_configure_extra_args="$ac_configure_extra_args --silent"
37133fi
37134
37135_ACEOF
37136cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37137if \$ac_cs_recheck; then
cristy14fefe52012-05-21 00:59:18 +000037138 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
cristy3ed852e2009-09-05 21:47:34 +000037139 shift
37140 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
37141 CONFIG_SHELL='$SHELL'
37142 export CONFIG_SHELL
37143 exec "\$@"
37144fi
37145
37146_ACEOF
37147cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37148exec 5>>config.log
37149{
37150 echo
37151 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
37152## Running $as_me. ##
37153_ASBOX
37154 $as_echo "$ac_log"
37155} >&5
37156
37157_ACEOF
37158cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000037159#
37160# INIT-COMMANDS
37161#
37162PACKAGE="$PACKAGE"
37163AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
37164
37165
37166# The HP-UX ksh and POSIX shell print the target directory to stdout
37167# if CDPATH is set.
37168(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
37169
37170sed_quote_subst='$sed_quote_subst'
37171double_quote_subst='$double_quote_subst'
37172delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000037173SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
37174Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
37175GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
37176EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
37177FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
37178SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
37179ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
37180LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
37181macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
37182macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
37183AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
37184DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
37185OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
37186enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
37187enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
37188pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
37189enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
cristy99bd5232011-12-07 14:38:20 +000037190PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037191host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
37192host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
37193host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
37194build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
37195build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
37196build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
37197NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
37198LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
37199max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
37200ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
37201exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
37202lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
37203lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
37204lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037205lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
37206lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037207reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
37208reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
37209deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
37210file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037211file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
37212want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
37213sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037214AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
37215AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037216archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037217STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
37218RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
37219old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
37220old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
37221old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
37222lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
37223CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
37224CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
37225compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
37226GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
37227lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
37228lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
37229lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
37230lt_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 +000037231nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
37232lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037233objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
37234MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
37235lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037236lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037237lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037238lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
37239lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
37240need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037241MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037242DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
37243NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
37244LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
37245OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
37246OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
37247libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
37248shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
37249extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
37250archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
37251enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
37252export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
37253whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
37254compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
37255old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
37256old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
37257archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
37258archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
37259module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
37260module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
37261with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
37262allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
37263no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
37264hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037265hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
37266hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
37267hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
37268hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
37269hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
37270hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
37271inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
37272link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037273always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
37274export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
37275exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
37276include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
37277prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037278postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037279file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
37280variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
37281need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
37282need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
37283version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
37284runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
37285shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
37286shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
37287libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
37288library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
37289soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
37290install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
37291postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
37292postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
37293finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
37294finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
37295hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
37296sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
37297sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
37298hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
37299enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
37300enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
37301enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
37302old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
37303striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
37304compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
37305predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
37306postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
37307predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
37308postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
37309compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
37310LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
37311reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
37312reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37313old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37314compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
37315GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
37316lt_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 +000037317lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037318lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037319lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
37320lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
37321archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
37322enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
37323export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
37324whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
37325compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
37326old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37327old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37328archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37329archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37330module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37331module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37332with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
37333allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
37334no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
37335hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037336hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
37337hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
37338hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
37339hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
37340hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
37341hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
37342inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
37343link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037344always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
37345export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37346exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
37347include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
37348prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037349postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037350file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
37351hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
37352compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
37353predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
37354postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
37355predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
37356postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
37357compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000037358
37359LTCC='$LTCC'
37360LTCFLAGS='$LTCFLAGS'
37361compiler='$compiler_DEFAULT'
37362
cristy0c60a692010-11-04 01:09:47 +000037363# A function that is used when there is no print builtin or printf.
37364func_fallback_echo ()
37365{
37366 eval 'cat <<_LTECHO_EOF
37367\$1
37368_LTECHO_EOF'
37369}
37370
cristy73bd4a52010-10-05 11:24:23 +000037371# Quote evaled strings.
37372for var in SED \
37373GREP \
37374EGREP \
37375FGREP \
cristy0c60a692010-11-04 01:09:47 +000037376SHELL \
37377ECHO \
cristy73bd4a52010-10-05 11:24:23 +000037378LD \
cristy0c60a692010-11-04 01:09:47 +000037379AS \
37380DLLTOOL \
37381OBJDUMP \
cristy99bd5232011-12-07 14:38:20 +000037382PATH_SEPARATOR \
cristy73bd4a52010-10-05 11:24:23 +000037383NM \
37384LN_S \
37385lt_SP2NL \
37386lt_NL2SP \
37387reload_flag \
37388deplibs_check_method \
37389file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000037390file_magic_glob \
37391want_nocaseglob \
37392sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000037393AR \
37394AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000037395archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000037396STRIP \
37397RANLIB \
37398CC \
37399CFLAGS \
37400compiler \
37401lt_cv_sys_global_symbol_pipe \
37402lt_cv_sys_global_symbol_to_cdecl \
37403lt_cv_sys_global_symbol_to_c_name_address \
37404lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000037405nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000037406lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000037407lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000037408lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000037409lt_prog_compiler_static \
37410lt_cv_prog_compiler_c_o \
37411need_locks \
cristyda16f162011-02-19 23:52:17 +000037412MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000037413DSYMUTIL \
37414NMEDIT \
37415LIPO \
37416OTOOL \
37417OTOOL64 \
37418shrext_cmds \
37419export_dynamic_flag_spec \
37420whole_archive_flag_spec \
37421compiler_needs_object \
37422with_gnu_ld \
37423allow_undefined_flag \
37424no_undefined_flag \
37425hardcode_libdir_flag_spec \
cristy73bd4a52010-10-05 11:24:23 +000037426hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000037427exclude_expsyms \
37428include_expsyms \
37429file_list_spec \
37430variables_saved_for_relink \
37431libname_spec \
37432library_names_spec \
37433soname_spec \
cristy0c60a692010-11-04 01:09:47 +000037434install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000037435finish_eval \
37436old_striplib \
37437striplib \
37438compiler_lib_search_dirs \
37439predep_objects \
37440postdep_objects \
37441predeps \
37442postdeps \
37443compiler_lib_search_path \
37444LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000037445reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037446compiler_CXX \
37447lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037448lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000037449lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037450lt_prog_compiler_static_CXX \
37451lt_cv_prog_compiler_c_o_CXX \
37452export_dynamic_flag_spec_CXX \
37453whole_archive_flag_spec_CXX \
37454compiler_needs_object_CXX \
37455with_gnu_ld_CXX \
37456allow_undefined_flag_CXX \
37457no_undefined_flag_CXX \
37458hardcode_libdir_flag_spec_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037459hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037460exclude_expsyms_CXX \
37461include_expsyms_CXX \
37462file_list_spec_CXX \
37463compiler_lib_search_dirs_CXX \
37464predep_objects_CXX \
37465postdep_objects_CXX \
37466predeps_CXX \
37467postdeps_CXX \
37468compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000037469 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000037470 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000037471 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000037472 ;;
37473 *)
37474 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37475 ;;
37476 esac
37477done
37478
37479# Double-quote double-evaled strings.
37480for var in reload_cmds \
37481old_postinstall_cmds \
37482old_postuninstall_cmds \
37483old_archive_cmds \
37484extract_expsyms_cmds \
37485old_archive_from_new_cmds \
37486old_archive_from_expsyms_cmds \
37487archive_cmds \
37488archive_expsym_cmds \
37489module_cmds \
37490module_expsym_cmds \
37491export_symbols_cmds \
37492prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000037493postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000037494postinstall_cmds \
37495postuninstall_cmds \
37496finish_cmds \
37497sys_lib_search_path_spec \
37498sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000037499reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037500old_archive_cmds_CXX \
37501old_archive_from_new_cmds_CXX \
37502old_archive_from_expsyms_cmds_CXX \
37503archive_cmds_CXX \
37504archive_expsym_cmds_CXX \
37505module_cmds_CXX \
37506module_expsym_cmds_CXX \
37507export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000037508prelink_cmds_CXX \
37509postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000037510 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000037511 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000037512 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000037513 ;;
37514 *)
37515 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37516 ;;
37517 esac
37518done
37519
cristy73bd4a52010-10-05 11:24:23 +000037520ac_aux_dir='$ac_aux_dir'
37521xsi_shell='$xsi_shell'
37522lt_shell_append='$lt_shell_append'
37523
37524# See if we are running on zsh, and set the options which allow our
37525# commands through without removal of \ escapes INIT.
37526if test -n "\${ZSH_VERSION+set}" ; then
37527 setopt NO_GLOB_SUBST
37528fi
37529
37530
37531 PACKAGE='$PACKAGE'
37532 VERSION='$VERSION'
37533 TIMESTAMP='$TIMESTAMP'
37534 RM='$RM'
37535 ofile='$ofile'
37536
37537
37538
37539
37540
37541
cristy3ed852e2009-09-05 21:47:34 +000037542_ACEOF
37543
37544cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37545
37546# Handling of arguments.
37547for ac_config_target in $ac_config_targets
37548do
37549 case $ac_config_target in
37550 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy01ff9f32012-12-01 18:15:29 +000037551 "MagickCore/magick-baseconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-baseconfig.h" ;;
cristy305c5dd2012-09-13 00:30:13 +000037552 "common.shi") CONFIG_FILES="$CONFIG_FILES common.shi" ;;
cristy3ed852e2009-09-05 21:47:34 +000037553 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
37554 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
37555 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
37556 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
37557 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy2df32802012-09-17 01:15:28 +000037558 "config/Magick++.dox") CONFIG_FILES="$CONFIG_FILES config/Magick++.dox" ;;
cristy5a3dc992014-12-05 19:50:04 +000037559 "config/type-apple.xml") CONFIG_FILES="$CONFIG_FILES config/type-apple.xml" ;;
cristy430a7312010-01-21 20:44:04 +000037560 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000037561 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
37562 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
37563 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
37564 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
37565 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000037566 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000037567 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000037568 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
37569 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
37570 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000037571 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
37572 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
cristy3ed852e2009-09-05 21:47:34 +000037573 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
cristy8d0ff762013-03-10 20:33:28 +000037574 "PerlMagick/default/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Magick.pm" ;;
cristy3e049f82013-02-13 13:26:53 +000037575 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
cristy8d0ff762013-03-10 20:33:28 +000037576 "PerlMagick/default/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Makefile.PL" ;;
cristycf0cbcc2013-02-13 23:32:58 +000037577 "PerlMagick/quantum/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/Makefile.PL" ;;
37578 "PerlMagick/quantum/quantum.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.pm" ;;
37579 "PerlMagick/quantum/quantum.xs") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.xs" ;;
37580 "PerlMagick/quantum/typemap") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/typemap" ;;
cristy3ed852e2009-09-05 21:47:34 +000037581 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
37582 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
37583 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
37584 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
37585 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
37586 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
37587 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
37588 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
37589 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
37590 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
37591 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
37592 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000037593 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
37594 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000037595 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
37596 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000037597 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
cristy2bd4b6e2012-07-22 15:29:11 +000037598 "magick.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS magick.sh.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037599 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037600 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037601 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
37602 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
37603
cristy98dddb52010-11-04 00:30:15 +000037604 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037605 esac
37606done
37607
37608
37609# If the user did not use the arguments to specify the items to instantiate,
37610# then the envvar interface is used. Set only those that are not.
37611# We use the long form for the default assignment because of an extremely
37612# bizarre bug on SunOS 4.1.3.
37613if $ac_need_defaults; then
37614 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
37615 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
37616 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
37617fi
37618
37619# Have a temporary directory for convenience. Make it in the build tree
37620# simply because there is no reason against having it here, and in addition,
37621# creating and moving files from /tmp can sometimes cause problems.
37622# Hook for its removal unless debugging.
37623# Note that there is a small window in which the directory will not be cleaned:
37624# after its creation but before its name has been assigned to `$tmp'.
37625$debug ||
37626{
cristyda16f162011-02-19 23:52:17 +000037627 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000037628 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000037629 : "${ac_tmp:=$tmp}"
37630 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000037631' 0
cristy8b350f62009-11-15 23:12:43 +000037632 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000037633}
37634# Create a (secure) tmp directory for tmp files.
37635
37636{
37637 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000037638 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000037639} ||
37640{
37641 tmp=./conf$$-$RANDOM
37642 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000037643} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037644ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000037645
37646# Set up the scripts for CONFIG_FILES section.
37647# No need to generate them if there are no CONFIG_FILES.
37648# This happens for instance with `./config.status config.h'.
37649if test -n "$CONFIG_FILES"; then
37650
37651
cristy8b350f62009-11-15 23:12:43 +000037652ac_cr=`echo X | tr X '\015'`
37653# On cygwin, bash can eat \r inside `` if the user requested igncr.
37654# But we know of no other shell where ac_cr would be empty at this
37655# point, so we can use a bashism as a fallback.
37656if test "x$ac_cr" = x; then
37657 eval ac_cr=\$\'\\r\'
37658fi
cristy3ed852e2009-09-05 21:47:34 +000037659ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
37660if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000037661 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000037662else
37663 ac_cs_awk_cr=$ac_cr
37664fi
37665
cristyda16f162011-02-19 23:52:17 +000037666echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000037667_ACEOF
37668
37669
37670{
37671 echo "cat >conf$$subs.awk <<_ACEOF" &&
37672 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
37673 echo "_ACEOF"
37674} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037675 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
37676ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000037677ac_delim='%!_!# '
37678for ac_last_try in false false false false false :; do
37679 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037680 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037681
37682 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
37683 if test $ac_delim_n = $ac_delim_num; then
37684 break
37685 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037686 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037687 else
37688 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37689 fi
37690done
37691rm -f conf$$subs.sh
37692
37693cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000037694cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037695_ACEOF
37696sed -n '
37697h
37698s/^/S["/; s/!.*/"]=/
37699p
37700g
37701s/^[^!]*!//
37702:repl
37703t repl
37704s/'"$ac_delim"'$//
37705t delim
37706:nl
37707h
cristycd4c5312009-11-22 01:19:08 +000037708s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037709t more1
37710s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
37711p
37712n
37713b repl
37714:more1
37715s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37716p
37717g
37718s/.\{148\}//
37719t nl
37720:delim
37721h
cristycd4c5312009-11-22 01:19:08 +000037722s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037723t more2
37724s/["\\]/\\&/g; s/^/"/; s/$/"/
37725p
37726b
37727:more2
37728s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37729p
37730g
37731s/.\{148\}//
37732t delim
37733' <conf$$subs.awk | sed '
37734/^[^""]/{
37735 N
37736 s/\n//
37737}
37738' >>$CONFIG_STATUS || ac_write_fail=1
37739rm -f conf$$subs.awk
37740cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37741_ACAWK
cristyda16f162011-02-19 23:52:17 +000037742cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037743 for (key in S) S_is_set[key] = 1
37744 FS = ""
37745
37746}
37747{
37748 line = $ 0
37749 nfields = split(line, field, "@")
37750 substed = 0
37751 len = length(field[1])
37752 for (i = 2; i < nfields; i++) {
37753 key = field[i]
37754 keylen = length(key)
37755 if (S_is_set[key]) {
37756 value = S[key]
37757 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
37758 len += length(value) + length(field[++i])
37759 substed = 1
37760 } else
37761 len += 1 + keylen
37762 }
37763
37764 print line
37765}
37766
37767_ACAWK
37768_ACEOF
37769cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37770if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
37771 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
37772else
37773 cat
cristyda16f162011-02-19 23:52:17 +000037774fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000037775 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037776_ACEOF
37777
cristy98dddb52010-11-04 00:30:15 +000037778# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
37779# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000037780# trailing colons and then remove the whole line if VPATH becomes empty
37781# (actually we leave an empty line to preserve line numbers).
37782if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000037783 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
37784h
37785s///
37786s/^/:/
37787s/[ ]*$/:/
37788s/:\$(srcdir):/:/g
37789s/:\${srcdir}:/:/g
37790s/:@srcdir@:/:/g
37791s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000037792s/:*$//
cristy98dddb52010-11-04 00:30:15 +000037793x
37794s/\(=[ ]*\).*/\1/
37795G
37796s/\n//
cristy3ed852e2009-09-05 21:47:34 +000037797s/^[^=]*=[ ]*$//
37798}'
37799fi
37800
37801cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37802fi # test -n "$CONFIG_FILES"
37803
37804# Set up the scripts for CONFIG_HEADERS section.
37805# No need to generate them if there are no CONFIG_HEADERS.
37806# This happens for instance with `./config.status Makefile'.
37807if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000037808cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000037809BEGIN {
37810_ACEOF
37811
37812# Transform confdefs.h into an awk script `defines.awk', embedded as
37813# here-document in config.status, that substitutes the proper values into
37814# config.h.in to produce config.h.
37815
37816# Create a delimiter string that does not exist in confdefs.h, to ease
37817# handling of long lines.
37818ac_delim='%!_!# '
37819for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000037820 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
37821 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000037822 break
37823 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037824 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037825 else
37826 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37827 fi
37828done
37829
37830# For the awk script, D is an array of macro values keyed by name,
37831# likewise P contains macro parameters if any. Preserve backslash
37832# newline sequences.
37833
37834ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
37835sed -n '
37836s/.\{148\}/&'"$ac_delim"'/g
37837t rset
37838:rset
37839s/^[ ]*#[ ]*define[ ][ ]*/ /
37840t def
37841d
37842:def
37843s/\\$//
37844t bsnl
37845s/["\\]/\\&/g
37846s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37847D["\1"]=" \3"/p
37848s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
37849d
37850:bsnl
37851s/["\\]/\\&/g
37852s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37853D["\1"]=" \3\\\\\\n"\\/p
37854t cont
37855s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
37856t cont
37857d
37858:cont
37859n
37860s/.\{148\}/&'"$ac_delim"'/g
37861t clear
37862:clear
37863s/\\$//
37864t bsnlc
37865s/["\\]/\\&/g; s/^/"/; s/$/"/p
37866d
37867:bsnlc
37868s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
37869b cont
37870' <confdefs.h | sed '
37871s/'"$ac_delim"'/"\\\
37872"/g' >>$CONFIG_STATUS || ac_write_fail=1
37873
37874cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37875 for (key in D) D_is_set[key] = 1
37876 FS = ""
37877}
37878/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
37879 line = \$ 0
37880 split(line, arg, " ")
37881 if (arg[1] == "#") {
37882 defundef = arg[2]
37883 mac1 = arg[3]
37884 } else {
37885 defundef = substr(arg[1], 2)
37886 mac1 = arg[2]
37887 }
37888 split(mac1, mac2, "(") #)
37889 macro = mac2[1]
37890 prefix = substr(line, 1, index(line, defundef) - 1)
37891 if (D_is_set[macro]) {
37892 # Preserve the white space surrounding the "#".
37893 print prefix "define", macro P[macro] D[macro]
37894 next
37895 } else {
37896 # Replace #undef with comments. This is necessary, for example,
37897 # in the case of _POSIX_SOURCE, which is predefined and required
37898 # on some systems where configure will not decide to define it.
37899 if (defundef == "undef") {
37900 print "/*", prefix defundef, macro, "*/"
37901 next
37902 }
37903 }
37904}
37905{ print }
37906_ACAWK
37907_ACEOF
37908cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000037909 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037910fi # test -n "$CONFIG_HEADERS"
37911
37912
37913eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
37914shift
37915for ac_tag
37916do
37917 case $ac_tag in
37918 :[FHLC]) ac_mode=$ac_tag; continue;;
37919 esac
37920 case $ac_mode$ac_tag in
37921 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000037922 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037923 :[FH]-) ac_tag=-:-;;
37924 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
37925 esac
37926 ac_save_IFS=$IFS
37927 IFS=:
37928 set x $ac_tag
37929 IFS=$ac_save_IFS
37930 shift
37931 ac_file=$1
37932 shift
37933
37934 case $ac_mode in
37935 :L) ac_source=$1;;
37936 :[FH])
37937 ac_file_inputs=
37938 for ac_f
37939 do
37940 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000037941 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000037942 *) # Look for the file first in the build tree, then in the source tree
37943 # (if the path is not absolute). The absolute path cannot be DOS-style,
37944 # because $ac_f cannot contain `:'.
37945 test -f "$ac_f" ||
37946 case $ac_f in
37947 [\\/$]*) false;;
37948 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
37949 esac ||
cristy98dddb52010-11-04 00:30:15 +000037950 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037951 esac
37952 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000037953 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000037954 done
37955
37956 # Let's still pretend it is `configure' which instantiates (i.e., don't
37957 # use $as_me), people would be surprised to read:
37958 # /* config.h. Generated by config.status. */
37959 configure_input='Generated from '`
37960 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
37961 `' by configure.'
37962 if test x"$ac_file" != x-; then
37963 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000037964 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000037965$as_echo "$as_me: creating $ac_file" >&6;}
37966 fi
37967 # Neutralize special characters interpreted by sed in replacement strings.
37968 case $configure_input in #(
37969 *\&* | *\|* | *\\* )
37970 ac_sed_conf_input=`$as_echo "$configure_input" |
37971 sed 's/[\\\\&|]/\\\\&/g'`;; #(
37972 *) ac_sed_conf_input=$configure_input;;
37973 esac
37974
37975 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000037976 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000037977 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000037978 esac
37979 ;;
37980 esac
37981
37982 ac_dir=`$as_dirname -- "$ac_file" ||
37983$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37984 X"$ac_file" : 'X\(//\)[^/]' \| \
37985 X"$ac_file" : 'X\(//\)$' \| \
37986 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
37987$as_echo X"$ac_file" |
37988 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37989 s//\1/
37990 q
37991 }
37992 /^X\(\/\/\)[^/].*/{
37993 s//\1/
37994 q
37995 }
37996 /^X\(\/\/\)$/{
37997 s//\1/
37998 q
37999 }
38000 /^X\(\/\).*/{
38001 s//\1/
38002 q
38003 }
38004 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000038005 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000038006 ac_builddir=.
38007
38008case "$ac_dir" in
38009.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
38010*)
38011 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
38012 # A ".." for each directory in $ac_dir_suffix.
38013 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
38014 case $ac_top_builddir_sub in
38015 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
38016 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
38017 esac ;;
38018esac
38019ac_abs_top_builddir=$ac_pwd
38020ac_abs_builddir=$ac_pwd$ac_dir_suffix
38021# for backward compatibility:
38022ac_top_builddir=$ac_top_build_prefix
38023
38024case $srcdir in
38025 .) # We are building in place.
38026 ac_srcdir=.
38027 ac_top_srcdir=$ac_top_builddir_sub
38028 ac_abs_top_srcdir=$ac_pwd ;;
38029 [\\/]* | ?:[\\/]* ) # Absolute name.
38030 ac_srcdir=$srcdir$ac_dir_suffix;
38031 ac_top_srcdir=$srcdir
38032 ac_abs_top_srcdir=$srcdir ;;
38033 *) # Relative name.
38034 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
38035 ac_top_srcdir=$ac_top_build_prefix$srcdir
38036 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
38037esac
38038ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
38039
38040
38041 case $ac_mode in
38042 :F)
38043 #
38044 # CONFIG_FILE
38045 #
38046
38047 case $INSTALL in
38048 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
38049 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
38050 esac
cristy73bd4a52010-10-05 11:24:23 +000038051 ac_MKDIR_P=$MKDIR_P
38052 case $MKDIR_P in
38053 [\\/$]* | ?:[\\/]* ) ;;
38054 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
38055 esac
cristy3ed852e2009-09-05 21:47:34 +000038056_ACEOF
38057
38058cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38059# If the template does not know about datarootdir, expand it.
38060# FIXME: This hack should be removed a few years after 2.60.
38061ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000038062ac_sed_dataroot='
38063/datarootdir/ {
38064 p
38065 q
38066}
38067/@datadir@/p
38068/@docdir@/p
38069/@infodir@/p
38070/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000038071/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000038072case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
38073*datarootdir*) ac_datarootdir_seen=yes;;
38074*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000038075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000038076$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
38077_ACEOF
38078cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38079 ac_datarootdir_hack='
38080 s&@datadir@&$datadir&g
38081 s&@docdir@&$docdir&g
38082 s&@infodir@&$infodir&g
38083 s&@localedir@&$localedir&g
38084 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000038085 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000038086esac
38087_ACEOF
38088
38089# Neutralize VPATH when `$srcdir' = `.'.
38090# Shell code in configure.ac might set extrasub.
38091# FIXME: do we really want to maintain this feature?
38092cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38093ac_sed_extra="$ac_vpsub
38094$extrasub
38095_ACEOF
38096cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38097:t
38098/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
38099s|@configure_input@|$ac_sed_conf_input|;t t
38100s&@top_builddir@&$ac_top_builddir_sub&;t t
38101s&@top_build_prefix@&$ac_top_build_prefix&;t t
38102s&@srcdir@&$ac_srcdir&;t t
38103s&@abs_srcdir@&$ac_abs_srcdir&;t t
38104s&@top_srcdir@&$ac_top_srcdir&;t t
38105s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
38106s&@builddir@&$ac_builddir&;t t
38107s&@abs_builddir@&$ac_abs_builddir&;t t
38108s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
38109s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000038110s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000038111$ac_datarootdir_hack
38112"
cristyda16f162011-02-19 23:52:17 +000038113eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
38114 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038115
38116test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000038117 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
38118 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
38119 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000038120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000038121which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000038122$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000038123which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000038124
cristyda16f162011-02-19 23:52:17 +000038125 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000038126 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000038127 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
38128 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000038129 esac \
cristy98dddb52010-11-04 00:30:15 +000038130 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038131 ;;
38132 :H)
38133 #
38134 # CONFIG_HEADER
38135 #
38136 if test x"$ac_file" != x-; then
38137 {
38138 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000038139 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
38140 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000038141 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000038142 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000038143 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000038144$as_echo "$as_me: $ac_file is unchanged" >&6;}
38145 else
38146 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000038147 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000038148 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038149 fi
38150 else
38151 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000038152 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000038153 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038154 fi
cristy73bd4a52010-10-05 11:24:23 +000038155# Compute "$ac_file"'s index in $config_headers.
38156_am_arg="$ac_file"
38157_am_stamp_count=1
38158for _am_header in $config_headers :; do
38159 case $_am_header in
38160 $_am_arg | $_am_arg:* )
38161 break ;;
38162 * )
38163 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
38164 esac
38165done
38166echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
38167$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38168 X"$_am_arg" : 'X\(//\)[^/]' \| \
38169 X"$_am_arg" : 'X\(//\)$' \| \
38170 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
38171$as_echo X"$_am_arg" |
38172 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38173 s//\1/
38174 q
38175 }
38176 /^X\(\/\/\)[^/].*/{
38177 s//\1/
38178 q
38179 }
38180 /^X\(\/\/\)$/{
38181 s//\1/
38182 q
38183 }
38184 /^X\(\/\).*/{
38185 s//\1/
38186 q
38187 }
38188 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000038189 ;;
38190
cristy8b350f62009-11-15 23:12:43 +000038191 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000038192$as_echo "$as_me: executing $ac_file commands" >&6;}
38193 ;;
38194 esac
38195
38196
38197 case $ac_file$ac_mode in
cristy01ff9f32012-12-01 18:15:29 +000038198 "MagickCore/magick-baseconfig.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-baseconfig.h`
cristy73bd4a52010-10-05 11:24:23 +000038199ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
38200ac_prefix_conf_PKG=`echo MagickCore`
38201ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
38202ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
38203ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
38204if test ".$ac_prefix_conf_INP" = "."; then
38205 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
38206 case "$ac_file" in
38207 *.h) ac_prefix_conf_INP=$ac_file ;;
38208 *)
38209 esac
38210 test ".$ac_prefix_conf_INP" != "." && break
38211 done
38212fi
38213if test ".$ac_prefix_conf_INP" = "."; then
38214 case "$ac_prefix_conf_OUT" in
38215 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
38216 ;;
38217 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
38218 ;;
38219 *) ac_prefix_conf_INP=config.h
38220 ;;
38221 esac
38222fi
38223if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000038224 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000038225else
38226 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
38227 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
38228 fi fi
38229 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
38230$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
38231 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000038232 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
38233 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
38234 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
38235 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
38236 $as_echo "#endif/" >> conftest.prefix
38237 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
38238 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
38239 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000038240 # now executing _script on _DEF input to create _OUT output file
38241 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
38242 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
38243 echo ' ' >>$tmp/pconfig.h
38244 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
38245
38246 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
38247 echo ' ' >>$tmp/pconfig.h
38248 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
38249 echo "#endif" >>$tmp/pconfig.h
38250 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
38251 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
38252$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
38253 else
38254 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
38255$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38256 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
38257 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
38258 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
38259$as_echo X"$ac_prefix_conf_OUT" |
38260 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38261 s//\1/
38262 q
38263 }
38264 /^X\(\/\/\)[^/].*/{
38265 s//\1/
38266 q
38267 }
38268 /^X\(\/\/\)$/{
38269 s//\1/
38270 q
38271 }
38272 /^X\(\/\).*/{
38273 s//\1/
38274 q
38275 }
38276 s/.*/./; q'`
38277 as_dir="$ac_dir"; as_fn_mkdir_p
38278 rm -f "$ac_prefix_conf_OUT"
38279 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
38280 fi
cristy73bd4a52010-10-05 11:24:23 +000038281 else
cristy98dddb52010-11-04 00:30:15 +000038282 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 +000038283 fi
38284 rm -f conftest.*
38285fi
38286 ;;
38287 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
cristy58d34aa2013-01-24 15:11:54 +000038288 # Older Autoconf quotes --file arguments for eval, but not when files
cristy73bd4a52010-10-05 11:24:23 +000038289 # are listed without --file. Let's play safe and only enable the eval
38290 # if we detect the quoting.
38291 case $CONFIG_FILES in
38292 *\'*) eval set x "$CONFIG_FILES" ;;
38293 *) set x $CONFIG_FILES ;;
38294 esac
38295 shift
38296 for mf
38297 do
38298 # Strip MF so we end up with the name of the file.
38299 mf=`echo "$mf" | sed -e 's/:.*$//'`
38300 # Check whether this is an Automake generated Makefile or not.
cristyc0890a62012-07-19 00:18:20 +000038301 # We used to match only the files named 'Makefile.in', but
cristy73bd4a52010-10-05 11:24:23 +000038302 # some people rename them; so instead we look at the file content.
38303 # Grep'ing the first line is not enough: some people post-process
38304 # each Makefile.in and add a new line on top of each file to say so.
38305 # Grep'ing the whole file is not good either: AIX grep has a line
38306 # limit of 2048, but all sed's we know have understand at least 4000.
38307 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
38308 dirpart=`$as_dirname -- "$mf" ||
38309$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38310 X"$mf" : 'X\(//\)[^/]' \| \
38311 X"$mf" : 'X\(//\)$' \| \
38312 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
38313$as_echo X"$mf" |
38314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38315 s//\1/
38316 q
38317 }
38318 /^X\(\/\/\)[^/].*/{
38319 s//\1/
38320 q
38321 }
38322 /^X\(\/\/\)$/{
38323 s//\1/
38324 q
38325 }
38326 /^X\(\/\).*/{
38327 s//\1/
38328 q
38329 }
38330 s/.*/./; q'`
38331 else
38332 continue
38333 fi
38334 # Extract the definition of DEPDIR, am__include, and am__quote
cristyc0890a62012-07-19 00:18:20 +000038335 # from the Makefile without running 'make'.
cristy73bd4a52010-10-05 11:24:23 +000038336 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
38337 test -z "$DEPDIR" && continue
38338 am__include=`sed -n 's/^am__include = //p' < "$mf"`
cristybced8142013-05-31 01:23:57 +000038339 test -z "$am__include" && continue
cristy73bd4a52010-10-05 11:24:23 +000038340 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
cristy73bd4a52010-10-05 11:24:23 +000038341 # Find all dependency output files, they are included files with
38342 # $(DEPDIR) in their names. We invoke sed twice because it is the
38343 # simplest approach to changing $(DEPDIR) to its actual value in the
38344 # expansion.
38345 for file in `sed -n "
38346 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
cristyc0890a62012-07-19 00:18:20 +000038347 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
cristy73bd4a52010-10-05 11:24:23 +000038348 # Make sure the directory exists.
38349 test -f "$dirpart/$file" && continue
38350 fdir=`$as_dirname -- "$file" ||
38351$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38352 X"$file" : 'X\(//\)[^/]' \| \
38353 X"$file" : 'X\(//\)$' \| \
38354 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
38355$as_echo X"$file" |
38356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38357 s//\1/
38358 q
38359 }
38360 /^X\(\/\/\)[^/].*/{
38361 s//\1/
38362 q
38363 }
38364 /^X\(\/\/\)$/{
38365 s//\1/
38366 q
38367 }
38368 /^X\(\/\).*/{
38369 s//\1/
38370 q
38371 }
38372 s/.*/./; q'`
38373 as_dir=$dirpart/$fdir; as_fn_mkdir_p
38374 # echo "creating $dirpart/$file"
38375 echo '# dummy' > "$dirpart/$file"
38376 done
38377 done
38378}
38379 ;;
38380 "libtool":C)
38381
38382 # See if we are running on zsh, and set the options which allow our
38383 # commands through without removal of \ escapes.
38384 if test -n "${ZSH_VERSION+set}" ; then
38385 setopt NO_GLOB_SUBST
38386 fi
38387
38388 cfgfile="${ofile}T"
38389 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
38390 $RM "$cfgfile"
38391
38392 cat <<_LT_EOF >> "$cfgfile"
38393#! $SHELL
38394
38395# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
38396# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
38397# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
38398# NOTE: Changes made to this file will be lost: look at ltmain.sh.
38399#
38400# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy99bd5232011-12-07 14:38:20 +000038401# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
38402# Foundation, Inc.
cristy73bd4a52010-10-05 11:24:23 +000038403# Written by Gordon Matzigkeit, 1996
38404#
38405# This file is part of GNU Libtool.
38406#
38407# GNU Libtool is free software; you can redistribute it and/or
38408# modify it under the terms of the GNU General Public License as
38409# published by the Free Software Foundation; either version 2 of
38410# the License, or (at your option) any later version.
38411#
38412# As a special exception to the GNU General Public License,
38413# if you distribute this file as part of a program or library that
38414# is built using GNU Libtool, you may include this file under the
38415# same distribution terms that you use for the rest of that program.
38416#
38417# GNU Libtool is distributed in the hope that it will be useful,
38418# but WITHOUT ANY WARRANTY; without even the implied warranty of
38419# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
38420# GNU General Public License for more details.
38421#
38422# You should have received a copy of the GNU General Public License
38423# along with GNU Libtool; see the file COPYING. If not, a copy
38424# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
38425# obtained by writing to the Free Software Foundation, Inc.,
38426# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
38427
38428
38429# The names of the tagged configurations supported by this script.
38430available_tags="CXX "
38431
38432# ### BEGIN LIBTOOL CONFIG
38433
38434# A sed program that does not truncate output.
38435SED=$lt_SED
38436
38437# Sed that helps us avoid accidentally triggering echo(1) options like -n.
38438Xsed="\$SED -e 1s/^X//"
38439
38440# A grep program that handles long lines.
38441GREP=$lt_GREP
38442
38443# An ERE matcher.
38444EGREP=$lt_EGREP
38445
38446# A literal string matcher.
38447FGREP=$lt_FGREP
38448
cristy0c60a692010-11-04 01:09:47 +000038449# Shell to use when invoking shell scripts.
38450SHELL=$lt_SHELL
38451
38452# An echo program that protects backslashes.
38453ECHO=$lt_ECHO
38454
cristy73bd4a52010-10-05 11:24:23 +000038455# Which release of libtool.m4 was used?
38456macro_version=$macro_version
38457macro_revision=$macro_revision
38458
38459# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000038460AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000038461
38462# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000038463DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000038464
38465# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000038466OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000038467
38468# Whether or not to build shared libraries.
38469build_libtool_libs=$enable_shared
38470
38471# Whether or not to build static libraries.
38472build_old_libs=$enable_static
38473
38474# What type of objects to build.
38475pic_mode=$pic_mode
38476
38477# Whether or not to optimize for fast installation.
38478fast_install=$enable_fast_install
38479
cristy99bd5232011-12-07 14:38:20 +000038480# The PATH separator for the build system.
38481PATH_SEPARATOR=$lt_PATH_SEPARATOR
38482
cristy73bd4a52010-10-05 11:24:23 +000038483# The host system.
38484host_alias=$host_alias
38485host=$host
38486host_os=$host_os
38487
38488# The build system.
38489build_alias=$build_alias
38490build=$build
38491build_os=$build_os
38492
38493# A BSD- or MS-compatible name lister.
38494NM=$lt_NM
38495
38496# Whether we need soft or hard links.
38497LN_S=$lt_LN_S
38498
38499# What is the maximum length of a command?
38500max_cmd_len=$max_cmd_len
38501
38502# Object file suffix (normally "o").
38503objext=$ac_objext
38504
38505# Executable file suffix (normally "").
38506exeext=$exeext
38507
38508# whether the shell understands "unset".
38509lt_unset=$lt_unset
38510
38511# turn spaces into newlines.
38512SP2NL=$lt_lt_SP2NL
38513
38514# turn newlines into spaces.
38515NL2SP=$lt_lt_NL2SP
38516
cristyda16f162011-02-19 23:52:17 +000038517# convert \$build file names to \$host format.
38518to_host_file_cmd=$lt_cv_to_host_file_cmd
38519
38520# convert \$build files to toolchain format.
38521to_tool_file_cmd=$lt_cv_to_tool_file_cmd
38522
cristy73bd4a52010-10-05 11:24:23 +000038523# Method to check whether dependent libraries are shared objects.
38524deplibs_check_method=$lt_deplibs_check_method
38525
cristyda16f162011-02-19 23:52:17 +000038526# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000038527file_magic_cmd=$lt_file_magic_cmd
38528
cristyda16f162011-02-19 23:52:17 +000038529# How to find potential files when deplibs_check_method = "file_magic".
38530file_magic_glob=$lt_file_magic_glob
38531
38532# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
38533want_nocaseglob=$lt_want_nocaseglob
38534
38535# Command to associate shared and link libraries.
38536sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
38537
cristy73bd4a52010-10-05 11:24:23 +000038538# The archiver.
38539AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000038540
38541# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000038542AR_FLAGS=$lt_AR_FLAGS
38543
cristyda16f162011-02-19 23:52:17 +000038544# How to feed a file listing to the archiver.
38545archiver_list_spec=$lt_archiver_list_spec
38546
cristy73bd4a52010-10-05 11:24:23 +000038547# A symbol stripping program.
38548STRIP=$lt_STRIP
38549
38550# Commands used to install an old-style archive.
38551RANLIB=$lt_RANLIB
38552old_postinstall_cmds=$lt_old_postinstall_cmds
38553old_postuninstall_cmds=$lt_old_postuninstall_cmds
38554
cristy0c60a692010-11-04 01:09:47 +000038555# Whether to use a lock for old archive extraction.
38556lock_old_archive_extraction=$lock_old_archive_extraction
38557
cristy73bd4a52010-10-05 11:24:23 +000038558# A C compiler.
38559LTCC=$lt_CC
38560
38561# LTCC compiler flags.
38562LTCFLAGS=$lt_CFLAGS
38563
38564# Take the output of nm and produce a listing of raw symbols and C names.
38565global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
38566
38567# Transform the output of nm in a proper C declaration.
38568global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
38569
38570# Transform the output of nm in a C name address pair.
38571global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
38572
38573# Transform the output of nm in a C name address pair when lib prefix is needed.
38574global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
38575
cristyda16f162011-02-19 23:52:17 +000038576# Specify filename containing input files for \$NM.
38577nm_file_list_spec=$lt_nm_file_list_spec
38578
38579# The root where to search for dependent libraries,and in which our libraries should be installed.
38580lt_sysroot=$lt_sysroot
38581
cristy73bd4a52010-10-05 11:24:23 +000038582# The name of the directory that contains temporary libtool files.
38583objdir=$objdir
38584
cristy73bd4a52010-10-05 11:24:23 +000038585# Used to examine libraries when file_magic_cmd begins with "file".
38586MAGIC_CMD=$MAGIC_CMD
38587
38588# Must we lock files when doing compilation?
38589need_locks=$lt_need_locks
38590
cristyda16f162011-02-19 23:52:17 +000038591# Manifest tool.
38592MANIFEST_TOOL=$lt_MANIFEST_TOOL
38593
cristy73bd4a52010-10-05 11:24:23 +000038594# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
38595DSYMUTIL=$lt_DSYMUTIL
38596
38597# Tool to change global to local symbols on Mac OS X.
38598NMEDIT=$lt_NMEDIT
38599
38600# Tool to manipulate fat objects and archives on Mac OS X.
38601LIPO=$lt_LIPO
38602
38603# ldd/readelf like tool for Mach-O binaries on Mac OS X.
38604OTOOL=$lt_OTOOL
38605
38606# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
38607OTOOL64=$lt_OTOOL64
38608
38609# Old archive suffix (normally "a").
38610libext=$libext
38611
38612# Shared library suffix (normally ".so").
38613shrext_cmds=$lt_shrext_cmds
38614
38615# The commands to extract the exported symbol list from a shared archive.
38616extract_expsyms_cmds=$lt_extract_expsyms_cmds
38617
38618# Variables whose values should be saved in libtool wrapper scripts and
38619# restored at link time.
38620variables_saved_for_relink=$lt_variables_saved_for_relink
38621
38622# Do we need the "lib" prefix for modules?
38623need_lib_prefix=$need_lib_prefix
38624
38625# Do we need a version for libraries?
38626need_version=$need_version
38627
38628# Library versioning type.
38629version_type=$version_type
38630
38631# Shared library runtime path variable.
38632runpath_var=$runpath_var
38633
38634# Shared library path variable.
38635shlibpath_var=$shlibpath_var
38636
38637# Is shlibpath searched before the hard-coded library search path?
38638shlibpath_overrides_runpath=$shlibpath_overrides_runpath
38639
38640# Format of library name prefix.
38641libname_spec=$lt_libname_spec
38642
38643# List of archive names. First name is the real one, the rest are links.
38644# The last name is the one that the linker finds with -lNAME
38645library_names_spec=$lt_library_names_spec
38646
38647# The coded name of the library, if different from the real name.
38648soname_spec=$lt_soname_spec
38649
cristy0c60a692010-11-04 01:09:47 +000038650# Permission mode override for installation of shared libraries.
38651install_override_mode=$lt_install_override_mode
38652
cristy73bd4a52010-10-05 11:24:23 +000038653# Command to use after installation of a shared archive.
38654postinstall_cmds=$lt_postinstall_cmds
38655
38656# Command to use after uninstallation of a shared archive.
38657postuninstall_cmds=$lt_postuninstall_cmds
38658
38659# Commands used to finish a libtool library installation in a directory.
38660finish_cmds=$lt_finish_cmds
38661
38662# As "finish_cmds", except a single script fragment to be evaled but
38663# not shown.
38664finish_eval=$lt_finish_eval
38665
38666# Whether we should hardcode library paths into libraries.
38667hardcode_into_libs=$hardcode_into_libs
38668
38669# Compile-time system search path for libraries.
38670sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
38671
38672# Run-time system search path for libraries.
38673sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
38674
38675# Whether dlopen is supported.
38676dlopen_support=$enable_dlopen
38677
38678# Whether dlopen of programs is supported.
38679dlopen_self=$enable_dlopen_self
38680
38681# Whether dlopen of statically linked programs is supported.
38682dlopen_self_static=$enable_dlopen_self_static
38683
38684# Commands to strip libraries.
38685old_striplib=$lt_old_striplib
38686striplib=$lt_striplib
38687
38688
38689# The linker used to build libraries.
38690LD=$lt_LD
38691
cristy0c60a692010-11-04 01:09:47 +000038692# How to create reloadable object files.
38693reload_flag=$lt_reload_flag
38694reload_cmds=$lt_reload_cmds
38695
cristy73bd4a52010-10-05 11:24:23 +000038696# Commands used to build an old-style archive.
38697old_archive_cmds=$lt_old_archive_cmds
38698
38699# A language specific compiler.
38700CC=$lt_compiler
38701
38702# Is the compiler the GNU compiler?
38703with_gcc=$GCC
38704
38705# Compiler flag to turn off builtin functions.
38706no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
38707
cristy73bd4a52010-10-05 11:24:23 +000038708# Additional compiler flags for building library objects.
38709pic_flag=$lt_lt_prog_compiler_pic
38710
cristyda16f162011-02-19 23:52:17 +000038711# How to pass a linker flag through the compiler.
38712wl=$lt_lt_prog_compiler_wl
38713
cristy73bd4a52010-10-05 11:24:23 +000038714# Compiler flag to prevent dynamic linking.
38715link_static_flag=$lt_lt_prog_compiler_static
38716
38717# Does compiler simultaneously support -c and -o options?
38718compiler_c_o=$lt_lt_cv_prog_compiler_c_o
38719
38720# Whether or not to add -lc for building shared libraries.
38721build_libtool_need_lc=$archive_cmds_need_lc
38722
38723# Whether or not to disallow shared libs when runtime libs are static.
38724allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
38725
38726# Compiler flag to allow reflexive dlopens.
38727export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
38728
38729# Compiler flag to generate shared objects directly from archives.
38730whole_archive_flag_spec=$lt_whole_archive_flag_spec
38731
38732# Whether the compiler copes with passing no objects directly.
38733compiler_needs_object=$lt_compiler_needs_object
38734
38735# Create an old-style archive from a shared archive.
38736old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
38737
38738# Create a temporary old-style archive to link instead of a shared archive.
38739old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
38740
38741# Commands used to build a shared archive.
38742archive_cmds=$lt_archive_cmds
38743archive_expsym_cmds=$lt_archive_expsym_cmds
38744
38745# Commands used to build a loadable module if different from building
38746# a shared archive.
38747module_cmds=$lt_module_cmds
38748module_expsym_cmds=$lt_module_expsym_cmds
38749
38750# Whether we are building with GNU ld or not.
38751with_gnu_ld=$lt_with_gnu_ld
38752
38753# Flag that allows shared libraries with undefined symbols to be built.
38754allow_undefined_flag=$lt_allow_undefined_flag
38755
38756# Flag that enforces no undefined symbols.
38757no_undefined_flag=$lt_no_undefined_flag
38758
38759# Flag to hardcode \$libdir into a binary during linking.
38760# This must work even if \$libdir does not exist
38761hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
38762
cristy73bd4a52010-10-05 11:24:23 +000038763# Whether we need a single "-rpath" flag with a separated argument.
38764hardcode_libdir_separator=$lt_hardcode_libdir_separator
38765
38766# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38767# DIR into the resulting binary.
38768hardcode_direct=$hardcode_direct
38769
38770# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38771# DIR into the resulting binary and the resulting library dependency is
38772# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38773# library is relocated.
38774hardcode_direct_absolute=$hardcode_direct_absolute
38775
38776# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38777# into the resulting binary.
38778hardcode_minus_L=$hardcode_minus_L
38779
38780# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38781# into the resulting binary.
38782hardcode_shlibpath_var=$hardcode_shlibpath_var
38783
38784# Set to "yes" if building a shared library automatically hardcodes DIR
38785# into the library and all subsequent libraries and executables linked
38786# against it.
38787hardcode_automatic=$hardcode_automatic
38788
38789# Set to yes if linker adds runtime paths of dependent libraries
38790# to runtime path list.
38791inherit_rpath=$inherit_rpath
38792
38793# Whether libtool must link a program against all its dependency libraries.
38794link_all_deplibs=$link_all_deplibs
38795
cristy73bd4a52010-10-05 11:24:23 +000038796# Set to "yes" if exported symbols are required.
38797always_export_symbols=$always_export_symbols
38798
38799# The commands to list exported symbols.
38800export_symbols_cmds=$lt_export_symbols_cmds
38801
38802# Symbols that should not be listed in the preloaded symbols.
38803exclude_expsyms=$lt_exclude_expsyms
38804
38805# Symbols that must always be exported.
38806include_expsyms=$lt_include_expsyms
38807
38808# Commands necessary for linking programs (against libraries) with templates.
38809prelink_cmds=$lt_prelink_cmds
38810
cristyda16f162011-02-19 23:52:17 +000038811# Commands necessary for finishing linking programs.
38812postlink_cmds=$lt_postlink_cmds
38813
cristy73bd4a52010-10-05 11:24:23 +000038814# Specify filename containing input files.
38815file_list_spec=$lt_file_list_spec
38816
38817# How to hardcode a shared library path into an executable.
38818hardcode_action=$hardcode_action
38819
38820# The directories searched by this compiler when creating a shared library.
38821compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
38822
38823# Dependencies to place before and after the objects being linked to
38824# create a shared library.
38825predep_objects=$lt_predep_objects
38826postdep_objects=$lt_postdep_objects
38827predeps=$lt_predeps
38828postdeps=$lt_postdeps
38829
38830# The library search path used internally by the compiler when linking
38831# a shared library.
38832compiler_lib_search_path=$lt_compiler_lib_search_path
38833
38834# ### END LIBTOOL CONFIG
38835
38836_LT_EOF
38837
38838 case $host_os in
38839 aix3*)
38840 cat <<\_LT_EOF >> "$cfgfile"
38841# AIX sometimes has problems with the GCC collect2 program. For some
38842# reason, if we set the COLLECT_NAMES environment variable, the problems
38843# vanish in a puff of smoke.
38844if test "X${COLLECT_NAMES+set}" != Xset; then
38845 COLLECT_NAMES=
38846 export COLLECT_NAMES
38847fi
38848_LT_EOF
38849 ;;
38850 esac
38851
38852
38853ltmain="$ac_aux_dir/ltmain.sh"
38854
38855
38856 # We use sed instead of cat because bash on DJGPP gets confused if
38857 # if finds mixed CR/LF and LF-only lines. Since sed operates in
38858 # text mode, it properly converts lines to CR/LF. This bash problem
38859 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000038860 sed '$q' "$ltmain" >> "$cfgfile" \
38861 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000038862
cristyda16f162011-02-19 23:52:17 +000038863 if test x"$xsi_shell" = xyes; then
38864 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
38865func_dirname ()\
38866{\
38867\ case ${1} in\
38868\ */*) func_dirname_result="${1%/*}${2}" ;;\
38869\ * ) func_dirname_result="${3}" ;;\
38870\ esac\
38871} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
38872 && mv -f "$cfgfile.tmp" "$cfgfile" \
38873 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38874test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038875
38876
cristyda16f162011-02-19 23:52:17 +000038877 sed -e '/^func_basename ()$/,/^} # func_basename /c\
38878func_basename ()\
38879{\
38880\ func_basename_result="${1##*/}"\
38881} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
38882 && mv -f "$cfgfile.tmp" "$cfgfile" \
38883 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38884test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038885
38886
cristyda16f162011-02-19 23:52:17 +000038887 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
38888func_dirname_and_basename ()\
38889{\
38890\ case ${1} in\
38891\ */*) func_dirname_result="${1%/*}${2}" ;;\
38892\ * ) func_dirname_result="${3}" ;;\
38893\ esac\
38894\ func_basename_result="${1##*/}"\
38895} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
38896 && mv -f "$cfgfile.tmp" "$cfgfile" \
38897 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38898test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038899
cristyda16f162011-02-19 23:52:17 +000038900
38901 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
38902func_stripname ()\
38903{\
38904\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
38905\ # positional parameters, so assign one to ordinary parameter first.\
38906\ func_stripname_result=${3}\
38907\ func_stripname_result=${func_stripname_result#"${1}"}\
38908\ func_stripname_result=${func_stripname_result%"${2}"}\
38909} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
38910 && mv -f "$cfgfile.tmp" "$cfgfile" \
38911 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38912test 0 -eq $? || _lt_function_replace_fail=:
38913
38914
38915 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
38916func_split_long_opt ()\
38917{\
38918\ func_split_long_opt_name=${1%%=*}\
38919\ func_split_long_opt_arg=${1#*=}\
38920} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
38921 && mv -f "$cfgfile.tmp" "$cfgfile" \
38922 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38923test 0 -eq $? || _lt_function_replace_fail=:
38924
38925
38926 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
38927func_split_short_opt ()\
38928{\
38929\ func_split_short_opt_arg=${1#??}\
38930\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
38931} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
38932 && mv -f "$cfgfile.tmp" "$cfgfile" \
38933 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38934test 0 -eq $? || _lt_function_replace_fail=:
38935
38936
38937 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
38938func_lo2o ()\
38939{\
38940\ case ${1} in\
38941\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
38942\ *) func_lo2o_result=${1} ;;\
38943\ esac\
38944} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
38945 && mv -f "$cfgfile.tmp" "$cfgfile" \
38946 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38947test 0 -eq $? || _lt_function_replace_fail=:
38948
38949
38950 sed -e '/^func_xform ()$/,/^} # func_xform /c\
38951func_xform ()\
38952{\
38953 func_xform_result=${1%.*}.lo\
38954} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
38955 && mv -f "$cfgfile.tmp" "$cfgfile" \
38956 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38957test 0 -eq $? || _lt_function_replace_fail=:
38958
38959
38960 sed -e '/^func_arith ()$/,/^} # func_arith /c\
38961func_arith ()\
38962{\
38963 func_arith_result=$(( $* ))\
38964} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
38965 && mv -f "$cfgfile.tmp" "$cfgfile" \
38966 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38967test 0 -eq $? || _lt_function_replace_fail=:
38968
38969
38970 sed -e '/^func_len ()$/,/^} # func_len /c\
38971func_len ()\
38972{\
38973 func_len_result=${#1}\
38974} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
38975 && mv -f "$cfgfile.tmp" "$cfgfile" \
38976 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38977test 0 -eq $? || _lt_function_replace_fail=:
38978
38979fi
38980
38981if test x"$lt_shell_append" = xyes; then
38982 sed -e '/^func_append ()$/,/^} # func_append /c\
38983func_append ()\
38984{\
38985 eval "${1}+=\\${2}"\
38986} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
38987 && mv -f "$cfgfile.tmp" "$cfgfile" \
38988 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38989test 0 -eq $? || _lt_function_replace_fail=:
38990
38991
38992 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
38993func_append_quoted ()\
38994{\
38995\ func_quote_for_eval "${2}"\
38996\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
38997} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
38998 && mv -f "$cfgfile.tmp" "$cfgfile" \
38999 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39000test 0 -eq $? || _lt_function_replace_fail=:
39001
39002
39003 # Save a `func_append' function call where possible by direct use of '+='
39004 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
39005 && mv -f "$cfgfile.tmp" "$cfgfile" \
39006 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39007 test 0 -eq $? || _lt_function_replace_fail=:
39008else
39009 # Save a `func_append' function call even when '+=' is not available
39010 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
39011 && mv -f "$cfgfile.tmp" "$cfgfile" \
39012 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39013 test 0 -eq $? || _lt_function_replace_fail=:
39014fi
39015
39016if test x"$_lt_function_replace_fail" = x":"; then
39017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
39018$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
39019fi
39020
39021
39022 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000039023 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
39024 chmod +x "$ofile"
39025
39026
39027 cat <<_LT_EOF >> "$ofile"
39028
39029# ### BEGIN LIBTOOL TAG CONFIG: CXX
39030
39031# The linker used to build libraries.
39032LD=$lt_LD_CXX
39033
cristy0c60a692010-11-04 01:09:47 +000039034# How to create reloadable object files.
39035reload_flag=$lt_reload_flag_CXX
39036reload_cmds=$lt_reload_cmds_CXX
39037
cristy73bd4a52010-10-05 11:24:23 +000039038# Commands used to build an old-style archive.
39039old_archive_cmds=$lt_old_archive_cmds_CXX
39040
39041# A language specific compiler.
39042CC=$lt_compiler_CXX
39043
39044# Is the compiler the GNU compiler?
39045with_gcc=$GCC_CXX
39046
39047# Compiler flag to turn off builtin functions.
39048no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
39049
cristy73bd4a52010-10-05 11:24:23 +000039050# Additional compiler flags for building library objects.
39051pic_flag=$lt_lt_prog_compiler_pic_CXX
39052
cristyda16f162011-02-19 23:52:17 +000039053# How to pass a linker flag through the compiler.
39054wl=$lt_lt_prog_compiler_wl_CXX
39055
cristy73bd4a52010-10-05 11:24:23 +000039056# Compiler flag to prevent dynamic linking.
39057link_static_flag=$lt_lt_prog_compiler_static_CXX
39058
39059# Does compiler simultaneously support -c and -o options?
39060compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
39061
39062# Whether or not to add -lc for building shared libraries.
39063build_libtool_need_lc=$archive_cmds_need_lc_CXX
39064
39065# Whether or not to disallow shared libs when runtime libs are static.
39066allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
39067
39068# Compiler flag to allow reflexive dlopens.
39069export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
39070
39071# Compiler flag to generate shared objects directly from archives.
39072whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
39073
39074# Whether the compiler copes with passing no objects directly.
39075compiler_needs_object=$lt_compiler_needs_object_CXX
39076
39077# Create an old-style archive from a shared archive.
39078old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
39079
39080# Create a temporary old-style archive to link instead of a shared archive.
39081old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
39082
39083# Commands used to build a shared archive.
39084archive_cmds=$lt_archive_cmds_CXX
39085archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
39086
39087# Commands used to build a loadable module if different from building
39088# a shared archive.
39089module_cmds=$lt_module_cmds_CXX
39090module_expsym_cmds=$lt_module_expsym_cmds_CXX
39091
39092# Whether we are building with GNU ld or not.
39093with_gnu_ld=$lt_with_gnu_ld_CXX
39094
39095# Flag that allows shared libraries with undefined symbols to be built.
39096allow_undefined_flag=$lt_allow_undefined_flag_CXX
39097
39098# Flag that enforces no undefined symbols.
39099no_undefined_flag=$lt_no_undefined_flag_CXX
39100
39101# Flag to hardcode \$libdir into a binary during linking.
39102# This must work even if \$libdir does not exist
39103hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
39104
cristy73bd4a52010-10-05 11:24:23 +000039105# Whether we need a single "-rpath" flag with a separated argument.
39106hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
39107
39108# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
39109# DIR into the resulting binary.
39110hardcode_direct=$hardcode_direct_CXX
39111
39112# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
39113# DIR into the resulting binary and the resulting library dependency is
39114# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
39115# library is relocated.
39116hardcode_direct_absolute=$hardcode_direct_absolute_CXX
39117
39118# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
39119# into the resulting binary.
39120hardcode_minus_L=$hardcode_minus_L_CXX
39121
39122# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
39123# into the resulting binary.
39124hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
39125
39126# Set to "yes" if building a shared library automatically hardcodes DIR
39127# into the library and all subsequent libraries and executables linked
39128# against it.
39129hardcode_automatic=$hardcode_automatic_CXX
39130
39131# Set to yes if linker adds runtime paths of dependent libraries
39132# to runtime path list.
39133inherit_rpath=$inherit_rpath_CXX
39134
39135# Whether libtool must link a program against all its dependency libraries.
39136link_all_deplibs=$link_all_deplibs_CXX
39137
cristy73bd4a52010-10-05 11:24:23 +000039138# Set to "yes" if exported symbols are required.
39139always_export_symbols=$always_export_symbols_CXX
39140
39141# The commands to list exported symbols.
39142export_symbols_cmds=$lt_export_symbols_cmds_CXX
39143
39144# Symbols that should not be listed in the preloaded symbols.
39145exclude_expsyms=$lt_exclude_expsyms_CXX
39146
39147# Symbols that must always be exported.
39148include_expsyms=$lt_include_expsyms_CXX
39149
39150# Commands necessary for linking programs (against libraries) with templates.
39151prelink_cmds=$lt_prelink_cmds_CXX
39152
cristyda16f162011-02-19 23:52:17 +000039153# Commands necessary for finishing linking programs.
39154postlink_cmds=$lt_postlink_cmds_CXX
39155
cristy73bd4a52010-10-05 11:24:23 +000039156# Specify filename containing input files.
39157file_list_spec=$lt_file_list_spec_CXX
39158
39159# How to hardcode a shared library path into an executable.
39160hardcode_action=$hardcode_action_CXX
39161
39162# The directories searched by this compiler when creating a shared library.
39163compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
39164
39165# Dependencies to place before and after the objects being linked to
39166# create a shared library.
39167predep_objects=$lt_predep_objects_CXX
39168postdep_objects=$lt_postdep_objects_CXX
39169predeps=$lt_predeps_CXX
39170postdeps=$lt_postdeps_CXX
39171
39172# The library search path used internally by the compiler when linking
39173# a shared library.
39174compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
39175
39176# ### END LIBTOOL TAG CONFIG: CXX
39177_LT_EOF
39178
39179 ;;
cristy2bd4b6e2012-07-22 15:29:11 +000039180 "magick.sh.in":C) chmod +x magick.sh ;;
cristy4c08aed2011-07-01 19:47:50 +000039181 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000039182 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000039183 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
39184 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
39185
39186 esac
39187done # for ac_tag
39188
39189
cristy8b350f62009-11-15 23:12:43 +000039190as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000039191_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000039192ac_clean_files=$ac_clean_files_save
39193
39194test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000039195 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000039196
39197
39198# configure is writing to config.log, and then calls config.status.
39199# config.status does its own redirection, appending to config.log.
39200# Unfortunately, on DOS this fails, as config.log is still kept open
39201# by configure, so config.status won't be able to write to it; its
39202# output is simply discarded. So we exec the FD to /dev/null,
39203# effectively closing config.log, so it can be properly (re)opened and
39204# appended to by config.status. When coming back to configure, we
39205# need to make the FD available again.
39206if test "$no_create" != yes; then
39207 ac_cs_success=:
39208 ac_config_status_args=
39209 test "$silent" = yes &&
39210 ac_config_status_args="$ac_config_status_args --quiet"
39211 exec 5>/dev/null
39212 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
39213 exec 5>>config.log
39214 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
39215 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000039216 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000039217fi
39218if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000039219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000039220$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
39221fi
39222
39223
39224rm -f magick-version
39225
cristy430a7312010-01-21 20:44:04 +000039226result_dejavu_font_dir='none'
39227if test "${dejavu_font_dir}x" != 'x'; then
39228 result_dejavu_font_dir=$dejavu_font_dir
39229fi
39230
cristy3ed852e2009-09-05 21:47:34 +000039231result_ghostscript_font_dir='none'
39232if test "${ghostscript_font_dir}x" != 'x'; then
39233 result_ghostscript_font_dir=$ghostscript_font_dir
39234fi
39235
39236result_windows_font_dir='none'
39237if test "${windows_font_dir}x" != 'x'; then
39238 result_windows_font_dir=${windows_font_dir}
39239fi
39240
cristyad38abe2012-12-23 23:03:21 +000039241{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
cristy3ed852e2009-09-05 21:47:34 +000039242ImageMagick is configured as follows. Please verify that this configuration
39243matches your expectations.
39244
39245Host system type: $host
39246Build system type: $build
39247
39248 Option Value
39249-------------------------------------------------------------------------------
39250Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
39251Static libraries --enable-static=$enable_static $libtool_build_static_libs
cristyc6722092012-10-14 00:19:31 +000039252Module support --with-modules=$build_modules $build_modules
cristy3ed852e2009-09-05 21:47:34 +000039253GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
39254Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
39255High Dynamic Range Imagery
39256 --enable-hdri=$enable_hdri $enable_hdri
39257
cristy5a3dc992014-12-05 19:50:04 +000039258Delegate Library Configuration:
cristy3ed852e2009-09-05 21:47:34 +000039259BZLIB --with-bzlib=$with_bzlib $have_bzlib
39260Autotrace --with-autotrace=$with_autotrace $have_autotrace
39261DJVU --with-djvu=$with_djvu $have_djvu
39262DPS --with-dps=$with_dps $have_dps
39263FFTW --with-fftw=$with_fftw $have_fftw
39264FlashPIX --with-fpx=$with_fpx $have_fpx
39265FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
39266FreeType --with-freetype=$with_freetype $have_freetype
cristy3ed852e2009-09-05 21:47:34 +000039267Ghostscript lib --with-gslib=$with_gslib $have_gslib
39268Graphviz --with-gvc=$with_gvc $have_gvc
39269JBIG --with-jbig=$with_jbig $have_jbig
39270JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
39271JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000039272LCMS v1 --with-lcms=$with_lcms $have_lcms
39273LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy99db3872014-01-01 15:11:34 +000039274LIBJPEG2 --with-openjp2=$with_openjp2 $have_openjp2
cristy3ed852e2009-09-05 21:47:34 +000039275LQR --with-lqr=$with_lqr $have_lqr
cristy5eef09f2012-10-16 12:08:28 +000039276LTDL --with-ltdl=$with_ltdl $have_ltdl
cristyfbb0ef02010-12-19 02:32:11 +000039277LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000039278Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
39279OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000039280PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000039281PERL --with-perl=$with_perl $have_perl
39282PNG --with-png=$with_png $have_png
39283RSVG --with-rsvg=$with_rsvg $have_rsvg
39284TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000039285WEBP --with-webp=$with_webp $have_webp
cristy01ff9f32012-12-01 18:15:29 +000039286WMF --with-wmf=$with_wmf $have_wmf
cristy3ed852e2009-09-05 21:47:34 +000039287X11 --with-x=$with_x $have_x
39288XML --with-xml=$with_xml $have_xml
39289ZLIB --with-zlib=$with_zlib $have_zlib
39290
cristy5a3dc992014-12-05 19:50:04 +000039291Delegate Program Configuration:
39292GhostPCL None $PCLDelegate ($PCLVersion)
39293GhostXPS None $XPSDelegate ($XPSVersion)
39294Ghostscript None $PSDelegate ($GSVersion)
39295
39296Font Configuration:
39297Apple fonts --with-apple-font-dir=$with_apple_font_dir $result_apple_font_dir
39298Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
39299Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
39300Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
39301
cristy3ed852e2009-09-05 21:47:34 +000039302X11 Configuration:
39303 X_CFLAGS = $X_CFLAGS
39304 X_PRE_LIBS = $X_PRE_LIBS
39305 X_LIBS = $X_LIBS
39306 X_EXTRA_LIBS = $X_EXTRA_LIBS
39307
39308Options used to compile and link:
39309 PREFIX = $PREFIX_DIR
39310 EXEC-PREFIX = $EXEC_PREFIX_DIR
39311 VERSION = $PACKAGE_VERSION
39312 CC = $CC
39313 CFLAGS = $CFLAGS
cristy03ae99f2014-04-28 16:34:55 +000039314 CPPFLAGS = $CPPFLAGS
39315 PCFLAGS = $PCFLAGS
cristy3ed852e2009-09-05 21:47:34 +000039316 DEFS = $DEFS
39317 LDFLAGS = $LDFLAGS
cristy03ae99f2014-04-28 16:34:55 +000039318 LIBS = $LIBS
cristy3ed852e2009-09-05 21:47:34 +000039319 CXX = $CXX
39320 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000039321 FEATURES = $MAGICK_FEATURES
cristy422d5502012-12-22 22:20:57 +000039322 DELEGATES = $MAGICK_DELEGATES
cristy3ed852e2009-09-05 21:47:34 +000039323" >&5
cristyad38abe2012-12-23 23:03:21 +000039324$as_echo "
cristy3ed852e2009-09-05 21:47:34 +000039325ImageMagick is configured as follows. Please verify that this configuration
39326matches your expectations.
39327
39328Host system type: $host
39329Build system type: $build
39330
39331 Option Value
39332-------------------------------------------------------------------------------
39333Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
39334Static libraries --enable-static=$enable_static $libtool_build_static_libs
cristyc6722092012-10-14 00:19:31 +000039335Module support --with-modules=$build_modules $build_modules
cristy3ed852e2009-09-05 21:47:34 +000039336GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
39337Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
39338High Dynamic Range Imagery
39339 --enable-hdri=$enable_hdri $enable_hdri
39340
cristy5a3dc992014-12-05 19:50:04 +000039341Delegate Library Configuration:
cristy3ed852e2009-09-05 21:47:34 +000039342BZLIB --with-bzlib=$with_bzlib $have_bzlib
39343Autotrace --with-autotrace=$with_autotrace $have_autotrace
39344DJVU --with-djvu=$with_djvu $have_djvu
39345DPS --with-dps=$with_dps $have_dps
39346FFTW --with-fftw=$with_fftw $have_fftw
39347FlashPIX --with-fpx=$with_fpx $have_fpx
39348FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
39349FreeType --with-freetype=$with_freetype $have_freetype
cristy3ed852e2009-09-05 21:47:34 +000039350Ghostscript lib --with-gslib=$with_gslib $have_gslib
39351Graphviz --with-gvc=$with_gvc $have_gvc
39352JBIG --with-jbig=$with_jbig $have_jbig
39353JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
39354JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000039355LCMS v1 --with-lcms=$with_lcms $have_lcms
39356LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy99db3872014-01-01 15:11:34 +000039357LIBJPEG2 --with-openjp2=$with_openjp2 $have_openjp2
cristy3ed852e2009-09-05 21:47:34 +000039358LQR --with-lqr=$with_lqr $have_lqr
cristy5eef09f2012-10-16 12:08:28 +000039359LTDL --with-ltdl=$with_ltdl $have_ltdl
cristyfbb0ef02010-12-19 02:32:11 +000039360LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000039361Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
39362OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000039363PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000039364PERL --with-perl=$with_perl $have_perl
39365PNG --with-png=$with_png $have_png
39366RSVG --with-rsvg=$with_rsvg $have_rsvg
39367TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000039368WEBP --with-webp=$with_webp $have_webp
cristy01ff9f32012-12-01 18:15:29 +000039369WMF --with-wmf=$with_wmf $have_wmf
cristy3ed852e2009-09-05 21:47:34 +000039370X11 --with-x=$with_x $have_x
39371XML --with-xml=$with_xml $have_xml
39372ZLIB --with-zlib=$with_zlib $have_zlib
39373
cristy5a3dc992014-12-05 19:50:04 +000039374Delegate Program Configuration:
39375GhostPCL None $PCLDelegate ($PCLVersion)
39376GhostXPS None $XPSDelegate ($XPSVersion)
39377Ghostscript None $PSDelegate ($GSVersion)
39378
39379Font Configuration:
39380Apple fonts --with-apple-font-dir=$with_apple_font_dir $result_apple_font_dir
39381Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
39382Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
39383Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
39384
cristy3ed852e2009-09-05 21:47:34 +000039385X11 Configuration:
39386 X_CFLAGS = $X_CFLAGS
39387 X_PRE_LIBS = $X_PRE_LIBS
39388 X_LIBS = $X_LIBS
39389 X_EXTRA_LIBS = $X_EXTRA_LIBS
39390
39391Options used to compile and link:
39392 PREFIX = $PREFIX_DIR
39393 EXEC-PREFIX = $EXEC_PREFIX_DIR
39394 VERSION = $PACKAGE_VERSION
39395 CC = $CC
39396 CFLAGS = $CFLAGS
cristy03ae99f2014-04-28 16:34:55 +000039397 CPPFLAGS = $CPPFLAGS
39398 PCFLAGS = $PCFLAGS
cristy3ed852e2009-09-05 21:47:34 +000039399 DEFS = $DEFS
39400 LDFLAGS = $LDFLAGS
cristy03ae99f2014-04-28 16:34:55 +000039401 LIBS = $LIBS
cristy3ed852e2009-09-05 21:47:34 +000039402 CXX = $CXX
39403 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000039404 FEATURES = $MAGICK_FEATURES
cristy422d5502012-12-22 22:20:57 +000039405 DELEGATES = $MAGICK_DELEGATES
cristyad38abe2012-12-23 23:03:21 +000039406" >&6; }